From fc771fdea1b3aad6b407ac90e6de2874ee699335 Mon Sep 17 00:00:00 2001 From: SciLor Date: Tue, 22 Oct 2024 19:06:40 +0000 Subject: [PATCH] Update frontend (make web) --- .../{index-CZeCp9g2.js => index-CoQmkkWc.js} | 258 +++++++++--------- contrib/data/www/web/index.html | 2 +- contrib/data/www/web/web_version.json | 6 +- teddycloud_web | 2 +- 4 files changed, 134 insertions(+), 134 deletions(-) rename contrib/data/www/web/assets/{index-CZeCp9g2.js => index-CoQmkkWc.js} (78%) diff --git a/contrib/data/www/web/assets/index-CZeCp9g2.js b/contrib/data/www/web/assets/index-CoQmkkWc.js similarity index 78% rename from contrib/data/www/web/assets/index-CZeCp9g2.js rename to contrib/data/www/web/assets/index-CoQmkkWc.js index 0d07786a..d618a615 100644 --- a/contrib/data/www/web/assets/index-CZeCp9g2.js +++ b/contrib/data/www/web/assets/index-CoQmkkWc.js @@ -1,5 +1,5 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/esp32-BPYaDt9v.js","assets/rom-Caghk6Eh.js","assets/esp32c2-CtjOOsCE.js","assets/esp32c3-DDsZSfEd.js","assets/esp32c6-BRG5ZpJ8.js","assets/esp32h2-Cf8JbGZQ.js","assets/esp32s3-DkgZlzv1.js","assets/esp32s2-BOsRKhcm.js","assets/esp8266-8VKmCx7J.js","assets/esp32p4-DfBdIAkh.js"])))=>i.map(i=>d[i]); -var JZ=Object.defineProperty;var eQ=(e,t,n)=>t in e?JZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var tQ=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Ll=(e,t,n)=>eQ(e,typeof t!="symbol"?t+"":t,n);var IVe=tQ((vo,bo)=>{function A_(e,t){for(var n=0;nr[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(a){if(a.ep)return;a.ep=!0;const o=n(a);fetch(a.href,o)}})();var ya=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ma(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var JB={exports:{}},Hb={},e7={exports:{}},fn={};/** +var JZ=Object.defineProperty;var eQ=(e,t,n)=>t in e?JZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var tQ=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Ll=(e,t,n)=>eQ(e,typeof t!="symbol"?t+"":t,n);var IVe=tQ((bo,yo)=>{function M_(e,t){for(var n=0;nr[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(a){if(a.ep)return;a.ep=!0;const o=n(a);fetch(a.href,o)}})();var xa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Pa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var JB={exports:{}},Ub={},e7={exports:{}},fn={};/** * @license React * react.production.min.js * @@ -7,7 +7,7 @@ var JZ=Object.defineProperty;var eQ=(e,t,n)=>t in e?JZ(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Dg=Symbol.for("react.element"),nQ=Symbol.for("react.portal"),rQ=Symbol.for("react.fragment"),aQ=Symbol.for("react.strict_mode"),oQ=Symbol.for("react.profiler"),iQ=Symbol.for("react.provider"),sQ=Symbol.for("react.context"),lQ=Symbol.for("react.forward_ref"),cQ=Symbol.for("react.suspense"),uQ=Symbol.for("react.memo"),dQ=Symbol.for("react.lazy"),Lk=Symbol.iterator;function fQ(e){return e===null||typeof e!="object"?null:(e=Lk&&e[Lk]||e["@@iterator"],typeof e=="function"?e:null)}var t7={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},n7=Object.assign,r7={};function Ld(e,t,n){this.props=e,this.context=t,this.refs=r7,this.updater=n||t7}Ld.prototype.isReactComponent={};Ld.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};Ld.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function a7(){}a7.prototype=Ld.prototype;function M_(e,t,n){this.props=e,this.context=t,this.refs=r7,this.updater=n||t7}var P_=M_.prototype=new a7;P_.constructor=M_;n7(P_,Ld.prototype);P_.isPureReactComponent=!0;var Fk=Array.isArray,o7=Object.prototype.hasOwnProperty,D_={current:null},i7={key:!0,ref:!0,__self:!0,__source:!0};function s7(e,t,n){var r,a={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)o7.call(t,r)&&!i7.hasOwnProperty(r)&&(a[r]=t[r]);var s=arguments.length-2;if(s===1)a.children=n;else if(1t in e?JZ(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var vQ=l,bQ=Symbol.for("react.element"),yQ=Symbol.for("react.fragment"),SQ=Object.prototype.hasOwnProperty,xQ=vQ.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,wQ={key:!0,ref:!0,__self:!0,__source:!0};function c7(e,t,n){var r,a={},o=null,i=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)SQ.call(t,r)&&!wQ.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)a[r]===void 0&&(a[r]=t[r]);return{$$typeof:bQ,type:e,key:o,ref:i,props:a,_owner:xQ.current}}Hb.Fragment=yQ;Hb.jsx=c7;Hb.jsxs=c7;JB.exports=Hb;var m=JB.exports,SI={},u7={exports:{}},wo={},d7={exports:{}},f7={};/** + */var vQ=l,bQ=Symbol.for("react.element"),yQ=Symbol.for("react.fragment"),SQ=Object.prototype.hasOwnProperty,xQ=vQ.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,wQ={key:!0,ref:!0,__self:!0,__source:!0};function c7(e,t,n){var r,a={},o=null,i=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)SQ.call(t,r)&&!wQ.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)a[r]===void 0&&(a[r]=t[r]);return{$$typeof:bQ,type:e,key:o,ref:i,props:a,_owner:xQ.current}}Ub.Fragment=yQ;Ub.jsx=c7;Ub.jsxs=c7;JB.exports=Ub;var m=JB.exports,xI={},u7={exports:{}},Co={},d7={exports:{}},f7={};/** * @license React * scheduler.production.min.js * @@ -23,7 +23,7 @@ var JZ=Object.defineProperty;var eQ=(e,t,n)=>t in e?JZ(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(M,L){var F=M.length;M.push(L);e:for(;0>>1,B=M[j];if(0>>1;ja(V,F))tea(Y,V)?(M[j]=Y,M[te]=F,j=te):(M[j]=V,M[H]=F,j=H);else if(tea(Y,F))M[j]=Y,M[te]=F,j=te;else break e}}return L}function a(M,L){var F=M.sortIndex-L.sortIndex;return F!==0?F:M.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var c=[],u=[],d=1,f=null,p=3,g=!1,h=!1,b=!1,y=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(M){for(var L=n(u);L!==null;){if(L.callback===null)r(u);else if(L.startTime<=M)r(u),L.sortIndex=L.expirationTime,t(c,L);else break;L=n(u)}}function C(M){if(b=!1,x(M),!h)if(n(c)!==null)h=!0,N(w);else{var L=n(u);L!==null&&k(C,L.startTime-M)}}function w(M,L){h=!1,b&&(b=!1,S(T),T=-1),g=!0;var F=p;try{for(x(L),f=n(c);f!==null&&(!(f.expirationTime>L)||M&&!$());){var j=f.callback;if(typeof j=="function"){f.callback=null,p=f.priorityLevel;var B=j(f.expirationTime<=L);L=e.unstable_now(),typeof B=="function"?f.callback=B:f===n(c)&&r(c),x(L)}else r(c);f=n(c)}if(f!==null)var z=!0;else{var H=n(u);H!==null&&k(C,H.startTime-L),z=!1}return z}finally{f=null,p=F,g=!1}}var E=!1,I=null,T=-1,R=5,_=-1;function $(){return!(e.unstable_now()-_M||125j?(M.sortIndex=F,t(u,M),n(c)===null&&M===n(u)&&(b?(S(T),T=-1):b=!0,k(C,F-j))):(M.sortIndex=B,t(c,M),h||g||(h=!0,N(w))),M},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(M){var L=p;return function(){var F=p;p=L;try{return M.apply(this,arguments)}finally{p=F}}}})(f7);d7.exports=f7;var CQ=d7.exports;/** + */(function(e){function t(M,L){var F=M.length;M.push(L);e:for(;0>>1,B=M[j];if(0>>1;ja(V,F))tea(Y,V)?(M[j]=Y,M[te]=F,j=te):(M[j]=V,M[H]=F,j=H);else if(tea(Y,F))M[j]=Y,M[te]=F,j=te;else break e}}return L}function a(M,L){var F=M.sortIndex-L.sortIndex;return F!==0?F:M.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var c=[],u=[],d=1,f=null,p=3,g=!1,h=!1,b=!1,y=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(M){for(var L=n(u);L!==null;){if(L.callback===null)r(u);else if(L.startTime<=M)r(u),L.sortIndex=L.expirationTime,t(c,L);else break;L=n(u)}}function w(M){if(b=!1,x(M),!h)if(n(c)!==null)h=!0,N(C);else{var L=n(u);L!==null&&k(w,L.startTime-M)}}function C(M,L){h=!1,b&&(b=!1,S(T),T=-1),g=!0;var F=p;try{for(x(L),f=n(c);f!==null&&(!(f.expirationTime>L)||M&&!$());){var j=f.callback;if(typeof j=="function"){f.callback=null,p=f.priorityLevel;var B=j(f.expirationTime<=L);L=e.unstable_now(),typeof B=="function"?f.callback=B:f===n(c)&&r(c),x(L)}else r(c);f=n(c)}if(f!==null)var z=!0;else{var H=n(u);H!==null&&k(w,H.startTime-L),z=!1}return z}finally{f=null,p=F,g=!1}}var E=!1,I=null,T=-1,R=5,_=-1;function $(){return!(e.unstable_now()-_M||125j?(M.sortIndex=F,t(u,M),n(c)===null&&M===n(u)&&(b?(S(T),T=-1):b=!0,k(w,F-j))):(M.sortIndex=B,t(c,M),h||g||(h=!0,N(C))),M},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(M){var L=p;return function(){var F=p;p=L;try{return M.apply(this,arguments)}finally{p=F}}}})(f7);d7.exports=f7;var CQ=d7.exports;/** * @license React * react-dom.production.min.js * @@ -31,19 +31,19 @@ var JZ=Object.defineProperty;var eQ=(e,t,n)=>t in e?JZ(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var EQ=l,So=CQ;function dt(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xI=Object.prototype.hasOwnProperty,IQ=/^[: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]*$/,Bk={},zk={};function TQ(e){return xI.call(zk,e)?!0:xI.call(Bk,e)?!1:IQ.test(e)?zk[e]=!0:(Bk[e]=!0,!1)}function RQ(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function _Q(e,t,n,r){if(t===null||typeof t>"u"||RQ(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Da(e,t,n,r,a,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var ca={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ca[e]=new Da(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ca[t]=new Da(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ca[e]=new Da(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ca[e]=new Da(e,2,!1,e,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(e){ca[e]=new Da(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ca[e]=new Da(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ca[e]=new Da(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ca[e]=new Da(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ca[e]=new Da(e,5,!1,e.toLowerCase(),null,!1,!1)});var F_=/[\-:]([a-z])/g;function j_(e){return e[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(e){var t=e.replace(F_,j_);ca[t]=new Da(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(F_,j_);ca[t]=new Da(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(F_,j_);ca[t]=new Da(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ca[e]=new Da(e,1,!1,e.toLowerCase(),null,!1,!1)});ca.xlinkHref=new Da("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ca[e]=new Da(e,1,!1,e.toLowerCase(),null,!0,!0)});function B_(e,t,n,r){var a=ca.hasOwnProperty(t)?ca[t]:null;(a!==null?a.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wI=Object.prototype.hasOwnProperty,IQ=/^[: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]*$/,Bk={},zk={};function TQ(e){return wI.call(zk,e)?!0:wI.call(Bk,e)?!1:IQ.test(e)?zk[e]=!0:(Bk[e]=!0,!1)}function RQ(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function _Q(e,t,n,r){if(t===null||typeof t>"u"||RQ(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function La(e,t,n,r,a,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var da={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){da[e]=new La(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];da[t]=new La(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){da[e]=new La(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){da[e]=new La(e,2,!1,e,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(e){da[e]=new La(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){da[e]=new La(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){da[e]=new La(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){da[e]=new La(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){da[e]=new La(e,5,!1,e.toLowerCase(),null,!1,!1)});var j_=/[\-:]([a-z])/g;function B_(e){return e[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(e){var t=e.replace(j_,B_);da[t]=new La(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(j_,B_);da[t]=new La(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(j_,B_);da[t]=new La(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){da[e]=new La(e,1,!1,e.toLowerCase(),null,!1,!1)});da.xlinkHref=new La("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){da[e]=new La(e,1,!1,e.toLowerCase(),null,!0,!0)});function z_(e,t,n,r){var a=da.hasOwnProperty(t)?da[t]:null;(a!==null?a.type!==0:r||!(2s||a[i]!==o[s]){var c=` -`+a[i].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=i&&0<=s);break}}}finally{Qy=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Hf(e):""}function $Q(e){switch(e.tag){case 5:return Hf(e.type);case 16:return Hf("Lazy");case 13:return Hf("Suspense");case 19:return Hf("SuspenseList");case 0:case 2:case 15:return e=Jy(e.type,!1),e;case 11:return e=Jy(e.type.render,!1),e;case 1:return e=Jy(e.type,!0),e;default:return""}}function II(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Tu:return"Fragment";case Iu:return"Portal";case wI:return"Profiler";case z_:return"StrictMode";case CI:return"Suspense";case EI:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case m7:return(e.displayName||"Context")+".Consumer";case g7:return(e._context.displayName||"Context")+".Provider";case H_:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case U_:return t=e.displayName||null,t!==null?t:II(e.type)||"Memo";case Hs:t=e._payload,e=e._init;try{return II(e(t))}catch{}}return null}function OQ(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return II(t);case 8:return t===z_?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function vl(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function v7(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function NQ(e){var t=v7(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Am(e){e._valueTracker||(e._valueTracker=NQ(e))}function b7(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=v7(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Rv(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function TI(e,t){var n=t.checked;return hr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Uk(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=vl(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function y7(e,t){t=t.checked,t!=null&&B_(e,"checked",t,!1)}function RI(e,t){y7(e,t);var n=vl(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?_I(e,t.type,n):t.hasOwnProperty("defaultValue")&&_I(e,t.type,vl(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Vk(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function _I(e,t,n){(t!=="number"||Rv(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Uf=Array.isArray;function qu(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=Mm.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Pp(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ap={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},kQ=["Webkit","ms","Moz","O"];Object.keys(ap).forEach(function(e){kQ.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ap[t]=ap[e]})});function C7(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ap.hasOwnProperty(e)&&ap[e]?(""+t).trim():t+"px"}function E7(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,a=C7(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}var AQ=hr({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 NI(e,t){if(t){if(AQ[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(dt(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(dt(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(dt(61))}if(t.style!=null&&typeof t.style!="object")throw Error(dt(62))}}function kI(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){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 AI=null;function V_(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var MI=null,Ku=null,Yu=null;function qk(e){if(e=Bg(e)){if(typeof MI!="function")throw Error(dt(280));var t=e.stateNode;t&&(t=qb(t),MI(e.stateNode,e.type,t))}}function I7(e){Ku?Yu?Yu.push(e):Yu=[e]:Ku=e}function T7(){if(Ku){var e=Ku,t=Yu;if(Yu=Ku=null,qk(e),t)for(e=0;e>>=0,e===0?32:31-(VQ(e)/WQ|0)|0}var Pm=64,Dm=4194304;function Vf(e){switch(e&-e){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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Nv(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,a=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var s=i&~a;s!==0?r=Vf(s):(o&=i,o!==0&&(r=Vf(o)))}else i=n&~a,i!==0?r=Vf(i):o!==0&&(r=Vf(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&a)&&(a=r&-r,o=t&-t,a>=o||a===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Fg(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-si(t),e[t]=n}function YQ(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=ip),nA=" ",rA=!1;function G7(e,t){switch(e){case"keyup":return CJ.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function q7(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ru=!1;function IJ(e,t){switch(e){case"compositionend":return q7(t);case"keypress":return t.which!==32?null:(rA=!0,nA);case"textInput":return e=t.data,e===nA&&rA?null:e;default:return null}}function TJ(e,t){if(Ru)return e==="compositionend"||!Q_&&G7(e,t)?(e=V7(),Kh=Y_=Ys=null,Ru=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=sA(n)}}function Z7(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Z7(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Q7(){for(var e=window,t=Rv();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Rv(e.document)}return t}function J_(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function PJ(e){var t=Q7(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Z7(n.ownerDocument.documentElement,n)){if(r!==null&&J_(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=n.textContent.length,o=Math.min(r.start,a);r=r.end===void 0?o:Math.min(r.end,a),!e.extend&&o>r&&(a=r,r=o,o=a),a=lA(n,o);var i=lA(n,r);a&&i&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,_u=null,BI=null,lp=null,zI=!1;function cA(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;zI||_u==null||_u!==Rv(r)||(r=_u,"selectionStart"in r&&J_(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),lp&&zp(lp,r)||(lp=r,r=Mv(BI,"onSelect"),0Nu||(e.current=qI[Nu],qI[Nu]=null,Nu--)}function Kn(e,t){Nu++,qI[Nu]=e.current,e.current=t}var bl={},Sa=Tl(bl),Ka=Tl(!1),mc=bl;function sd(e,t){var n=e.type.contextTypes;if(!n)return bl;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a={},o;for(o in n)a[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Ya(e){return e=e.childContextTypes,e!=null}function Dv(){or(Ka),or(Sa)}function hA(e,t,n){if(Sa.current!==bl)throw Error(dt(168));Kn(Sa,t),Kn(Ka,n)}function sz(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var a in r)if(!(a in t))throw Error(dt(108,OQ(e)||"Unknown",a));return hr({},n,r)}function Lv(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||bl,mc=Sa.current,Kn(Sa,e),Kn(Ka,Ka.current),!0}function vA(e,t,n){var r=e.stateNode;if(!r)throw Error(dt(169));n?(e=sz(e,t,mc),r.__reactInternalMemoizedMergedChildContext=e,or(Ka),or(Sa),Kn(Sa,e)):or(Ka),Kn(Ka,n)}var is=null,Kb=!1,pS=!1;function lz(e){is===null?is=[e]:is.push(e)}function qJ(e){Kb=!0,lz(e)}function Rl(){if(!pS&&is!==null){pS=!0;var e=0,t=Mn;try{var n=is;for(Mn=1;e>=i,a-=i,ds=1<<32-si(t)+a|n<T?(R=I,I=null):R=I.sibling;var _=p(S,I,x[T],C);if(_===null){I===null&&(I=R);break}e&&I&&_.alternate===null&&t(S,I),v=o(_,v,T),E===null?w=_:E.sibling=_,E=_,I=R}if(T===x.length)return n(S,I),lr&&Ul(S,T),w;if(I===null){for(;TT?(R=I,I=null):R=I.sibling;var $=p(S,I,_.value,C);if($===null){I===null&&(I=R);break}e&&I&&$.alternate===null&&t(S,I),v=o($,v,T),E===null?w=$:E.sibling=$,E=$,I=R}if(_.done)return n(S,I),lr&&Ul(S,T),w;if(I===null){for(;!_.done;T++,_=x.next())_=f(S,_.value,C),_!==null&&(v=o(_,v,T),E===null?w=_:E.sibling=_,E=_);return lr&&Ul(S,T),w}for(I=r(S,I);!_.done;T++,_=x.next())_=g(I,S,T,_.value,C),_!==null&&(e&&_.alternate!==null&&I.delete(_.key===null?T:_.key),v=o(_,v,T),E===null?w=_:E.sibling=_,E=_);return e&&I.forEach(function(P){return t(S,P)}),lr&&Ul(S,T),w}function y(S,v,x,C){if(typeof x=="object"&&x!==null&&x.type===Tu&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case km:e:{for(var w=x.key,E=v;E!==null;){if(E.key===w){if(w=x.type,w===Tu){if(E.tag===7){n(S,E.sibling),v=a(E,x.props.children),v.return=S,S=v;break e}}else if(E.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Hs&&SA(w)===E.type){n(S,E.sibling),v=a(E,x.props),v.ref=wf(S,E,x),v.return=S,S=v;break e}n(S,E);break}else t(S,E);E=E.sibling}x.type===Tu?(v=sc(x.props.children,S.mode,C,x.key),v.return=S,S=v):(C=nv(x.type,x.key,x.props,null,S.mode,C),C.ref=wf(S,v,x),C.return=S,S=C)}return i(S);case Iu:e:{for(E=x.key;v!==null;){if(v.key===E)if(v.tag===4&&v.stateNode.containerInfo===x.containerInfo&&v.stateNode.implementation===x.implementation){n(S,v.sibling),v=a(v,x.children||[]),v.return=S,S=v;break e}else{n(S,v);break}else t(S,v);v=v.sibling}v=xS(x,S.mode,C),v.return=S,S=v}return i(S);case Hs:return E=x._init,y(S,v,E(x._payload),C)}if(Uf(x))return h(S,v,x,C);if(vf(x))return b(S,v,x,C);Um(S,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,v!==null&&v.tag===6?(n(S,v.sibling),v=a(v,x),v.return=S,S=v):(n(S,v),v=SS(x,S.mode,C),v.return=S,S=v),i(S)):n(S,v)}return y}var cd=fz(!0),pz=fz(!1),Bv=Tl(null),zv=null,Mu=null,r$=null;function a$(){r$=Mu=zv=null}function o$(e){var t=Bv.current;or(Bv),e._currentValue=t}function XI(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Zu(e,t){zv=e,r$=Mu=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Wa=!0),e.firstContext=null)}function jo(e){var t=e._currentValue;if(r$!==e)if(e={context:e,memoizedValue:t,next:null},Mu===null){if(zv===null)throw Error(dt(308));Mu=e,zv.dependencies={lanes:0,firstContext:e}}else Mu=Mu.next=e;return t}var Yl=null;function i$(e){Yl===null?Yl=[e]:Yl.push(e)}function gz(e,t,n,r){var a=t.interleaved;return a===null?(n.next=n,i$(t)):(n.next=a.next,a.next=n),t.interleaved=n,Ss(e,r)}function Ss(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Us=!1;function s$(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function mz(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ps(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function sl(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Cn&2){var a=r.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),r.pending=t,Ss(e,n)}return a=r.interleaved,a===null?(t.next=t,i$(r)):(t.next=a.next,a.next=t),r.interleaved=t,Ss(e,n)}function Xh(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,G_(e,n)}}function xA(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var a=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?a=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?a=o=t:o=o.next=t}else a=o=t;n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Hv(e,t,n,r){var a=e.updateQueue;Us=!1;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,s=a.shared.pending;if(s!==null){a.shared.pending=null;var c=s,u=c.next;c.next=null,i===null?o=u:i.next=u,i=c;var d=e.alternate;d!==null&&(d=d.updateQueue,s=d.lastBaseUpdate,s!==i&&(s===null?d.firstBaseUpdate=u:s.next=u,d.lastBaseUpdate=c))}if(o!==null){var f=a.baseState;i=0,d=u=c=null,s=o;do{var p=s.lane,g=s.eventTime;if((r&p)===p){d!==null&&(d=d.next={eventTime:g,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,b=s;switch(p=t,g=n,b.tag){case 1:if(h=b.payload,typeof h=="function"){f=h.call(g,f,p);break e}f=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=b.payload,p=typeof h=="function"?h.call(g,f,p):h,p==null)break e;f=hr({},f,p);break e;case 2:Us=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=a.effects,p===null?a.effects=[s]:p.push(s))}else g={eventTime:g,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(u=d=g,c=f):d=d.next=g,i|=p;if(s=s.next,s===null){if(s=a.shared.pending,s===null)break;p=s,s=p.next,p.next=null,a.lastBaseUpdate=p,a.shared.pending=null}}while(!0);if(d===null&&(c=f),a.baseState=c,a.firstBaseUpdate=u,a.lastBaseUpdate=d,t=a.shared.interleaved,t!==null){a=t;do i|=a.lane,a=a.next;while(a!==t)}else o===null&&(a.shared.lanes=0);bc|=i,e.lanes=i,e.memoizedState=f}}function wA(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=mS.transition;mS.transition={};try{e(!1),t()}finally{Mn=n,mS.transition=r}}function kz(){return Bo().memoizedState}function ZJ(e,t,n){var r=cl(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Az(e))Mz(t,n);else if(n=gz(e,t,n,r),n!==null){var a=Aa();li(n,e,r,a),Pz(n,t,r)}}function QJ(e,t,n){var r=cl(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Az(e))Mz(t,a);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,s=o(i,n);if(a.hasEagerState=!0,a.eagerState=s,pi(s,i)){var c=t.interleaved;c===null?(a.next=a,i$(t)):(a.next=c.next,c.next=a),t.interleaved=a;return}}catch{}finally{}n=gz(e,t,a,r),n!==null&&(a=Aa(),li(n,e,r,a),Pz(n,t,r))}}function Az(e){var t=e.alternate;return e===mr||t!==null&&t===mr}function Mz(e,t){cp=Vv=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Pz(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,G_(e,n)}}var Wv={readContext:jo,useCallback:da,useContext:da,useEffect:da,useImperativeHandle:da,useInsertionEffect:da,useLayoutEffect:da,useMemo:da,useReducer:da,useRef:da,useState:da,useDebugValue:da,useDeferredValue:da,useTransition:da,useMutableSource:da,useSyncExternalStore:da,useId:da,unstable_isNewReconciler:!1},JJ={readContext:jo,useCallback:function(e,t){return _i().memoizedState=[e,t===void 0?null:t],e},useContext:jo,useEffect:EA,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Qh(4194308,4,Rz.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Qh(4194308,4,e,t)},useInsertionEffect:function(e,t){return Qh(4,2,e,t)},useMemo:function(e,t){var n=_i();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=_i();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ZJ.bind(null,mr,e),[r.memoizedState,e]},useRef:function(e){var t=_i();return e={current:e},t.memoizedState=e},useState:CA,useDebugValue:m$,useDeferredValue:function(e){return _i().memoizedState=e},useTransition:function(){var e=CA(!1),t=e[0];return e=XJ.bind(null,e[1]),_i().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=mr,a=_i();if(lr){if(n===void 0)throw Error(dt(407));n=n()}else{if(n=t(),Yr===null)throw Error(dt(349));vc&30||yz(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,EA(xz.bind(null,r,o,e),[e]),r.flags|=2048,Yp(9,Sz.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=_i(),t=Yr.identifierPrefix;if(lr){var n=fs,r=ds;n=(r&~(1<<32-si(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=qp++,0")&&(c=c.replace("",e.displayName)),c}while(1<=i&&0<=s);break}}}finally{Jy=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Vf(e):""}function $Q(e){switch(e.tag){case 5:return Vf(e.type);case 16:return Vf("Lazy");case 13:return Vf("Suspense");case 19:return Vf("SuspenseList");case 0:case 2:case 15:return e=eS(e.type,!1),e;case 11:return e=eS(e.type.render,!1),e;case 1:return e=eS(e.type,!0),e;default:return""}}function TI(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Tu:return"Fragment";case Iu:return"Portal";case CI:return"Profiler";case H_:return"StrictMode";case EI:return"Suspense";case II:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case m7:return(e.displayName||"Context")+".Consumer";case g7:return(e._context.displayName||"Context")+".Provider";case U_:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case V_:return t=e.displayName||null,t!==null?t:TI(e.type)||"Memo";case Hs:t=e._payload,e=e._init;try{return TI(e(t))}catch{}}return null}function OQ(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return TI(t);case 8:return t===H_?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function vl(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function v7(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function NQ(e){var t=v7(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Pm(e){e._valueTracker||(e._valueTracker=NQ(e))}function b7(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=v7(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function _v(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function RI(e,t){var n=t.checked;return hr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Uk(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=vl(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function y7(e,t){t=t.checked,t!=null&&z_(e,"checked",t,!1)}function _I(e,t){y7(e,t);var n=vl(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?$I(e,t.type,n):t.hasOwnProperty("defaultValue")&&$I(e,t.type,vl(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Vk(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function $I(e,t,n){(t!=="number"||_v(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Wf=Array.isArray;function qu(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=Dm.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Lp(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ip={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},kQ=["Webkit","ms","Moz","O"];Object.keys(ip).forEach(function(e){kQ.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ip[t]=ip[e]})});function C7(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ip.hasOwnProperty(e)&&ip[e]?(""+t).trim():t+"px"}function E7(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,a=C7(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}var AQ=hr({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 kI(e,t){if(t){if(AQ[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(dt(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(dt(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(dt(61))}if(t.style!=null&&typeof t.style!="object")throw Error(dt(62))}}function AI(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){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 MI=null;function W_(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var PI=null,Ku=null,Yu=null;function qk(e){if(e=Hg(e)){if(typeof PI!="function")throw Error(dt(280));var t=e.stateNode;t&&(t=Kb(t),PI(e.stateNode,e.type,t))}}function I7(e){Ku?Yu?Yu.push(e):Yu=[e]:Ku=e}function T7(){if(Ku){var e=Ku,t=Yu;if(Yu=Ku=null,qk(e),t)for(e=0;e>>=0,e===0?32:31-(VQ(e)/WQ|0)|0}var Lm=64,Fm=4194304;function Gf(e){switch(e&-e){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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function kv(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,a=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var s=i&~a;s!==0?r=Gf(s):(o&=i,o!==0&&(r=Gf(o)))}else i=n&~a,i!==0?r=Gf(i):o!==0&&(r=Gf(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&a)&&(a=r&-r,o=t&-t,a>=o||a===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Bg(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-li(t),e[t]=n}function YQ(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=lp),nA=" ",rA=!1;function G7(e,t){switch(e){case"keyup":return CJ.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function q7(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ru=!1;function IJ(e,t){switch(e){case"compositionend":return q7(t);case"keypress":return t.which!==32?null:(rA=!0,nA);case"textInput":return e=t.data,e===nA&&rA?null:e;default:return null}}function TJ(e,t){if(Ru)return e==="compositionend"||!J_&&G7(e,t)?(e=V7(),Yh=X_=Ys=null,Ru=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=sA(n)}}function Z7(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Z7(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Q7(){for(var e=window,t=_v();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=_v(e.document)}return t}function e$(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function PJ(e){var t=Q7(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Z7(n.ownerDocument.documentElement,n)){if(r!==null&&e$(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=n.textContent.length,o=Math.min(r.start,a);r=r.end===void 0?o:Math.min(r.end,a),!e.extend&&o>r&&(a=r,r=o,o=a),a=lA(n,o);var i=lA(n,r);a&&i&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,_u=null,zI=null,up=null,HI=!1;function cA(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;HI||_u==null||_u!==_v(r)||(r=_u,"selectionStart"in r&&e$(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),up&&Up(up,r)||(up=r,r=Pv(zI,"onSelect"),0Nu||(e.current=KI[Nu],KI[Nu]=null,Nu--)}function Kn(e,t){Nu++,KI[Nu]=e.current,e.current=t}var bl={},wa=Tl(bl),Ya=Tl(!1),mc=bl;function sd(e,t){var n=e.type.contextTypes;if(!n)return bl;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a={},o;for(o in n)a[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Xa(e){return e=e.childContextTypes,e!=null}function Lv(){ir(Ya),ir(wa)}function hA(e,t,n){if(wa.current!==bl)throw Error(dt(168));Kn(wa,t),Kn(Ya,n)}function sz(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var a in r)if(!(a in t))throw Error(dt(108,OQ(e)||"Unknown",a));return hr({},n,r)}function Fv(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||bl,mc=wa.current,Kn(wa,e),Kn(Ya,Ya.current),!0}function vA(e,t,n){var r=e.stateNode;if(!r)throw Error(dt(169));n?(e=sz(e,t,mc),r.__reactInternalMemoizedMergedChildContext=e,ir(Ya),ir(wa),Kn(wa,e)):ir(Ya),Kn(Ya,n)}var ss=null,Yb=!1,gS=!1;function lz(e){ss===null?ss=[e]:ss.push(e)}function qJ(e){Yb=!0,lz(e)}function Rl(){if(!gS&&ss!==null){gS=!0;var e=0,t=Mn;try{var n=ss;for(Mn=1;e>=i,a-=i,fs=1<<32-li(t)+a|n<T?(R=I,I=null):R=I.sibling;var _=p(S,I,x[T],w);if(_===null){I===null&&(I=R);break}e&&I&&_.alternate===null&&t(S,I),v=o(_,v,T),E===null?C=_:E.sibling=_,E=_,I=R}if(T===x.length)return n(S,I),lr&&Ul(S,T),C;if(I===null){for(;TT?(R=I,I=null):R=I.sibling;var $=p(S,I,_.value,w);if($===null){I===null&&(I=R);break}e&&I&&$.alternate===null&&t(S,I),v=o($,v,T),E===null?C=$:E.sibling=$,E=$,I=R}if(_.done)return n(S,I),lr&&Ul(S,T),C;if(I===null){for(;!_.done;T++,_=x.next())_=f(S,_.value,w),_!==null&&(v=o(_,v,T),E===null?C=_:E.sibling=_,E=_);return lr&&Ul(S,T),C}for(I=r(S,I);!_.done;T++,_=x.next())_=g(I,S,T,_.value,w),_!==null&&(e&&_.alternate!==null&&I.delete(_.key===null?T:_.key),v=o(_,v,T),E===null?C=_:E.sibling=_,E=_);return e&&I.forEach(function(P){return t(S,P)}),lr&&Ul(S,T),C}function y(S,v,x,w){if(typeof x=="object"&&x!==null&&x.type===Tu&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Mm:e:{for(var C=x.key,E=v;E!==null;){if(E.key===C){if(C=x.type,C===Tu){if(E.tag===7){n(S,E.sibling),v=a(E,x.props.children),v.return=S,S=v;break e}}else if(E.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Hs&&SA(C)===E.type){n(S,E.sibling),v=a(E,x.props),v.ref=Cf(S,E,x),v.return=S,S=v;break e}n(S,E);break}else t(S,E);E=E.sibling}x.type===Tu?(v=sc(x.props.children,S.mode,w,x.key),v.return=S,S=v):(w=rv(x.type,x.key,x.props,null,S.mode,w),w.ref=Cf(S,v,x),w.return=S,S=w)}return i(S);case Iu:e:{for(E=x.key;v!==null;){if(v.key===E)if(v.tag===4&&v.stateNode.containerInfo===x.containerInfo&&v.stateNode.implementation===x.implementation){n(S,v.sibling),v=a(v,x.children||[]),v.return=S,S=v;break e}else{n(S,v);break}else t(S,v);v=v.sibling}v=wS(x,S.mode,w),v.return=S,S=v}return i(S);case Hs:return E=x._init,y(S,v,E(x._payload),w)}if(Wf(x))return h(S,v,x,w);if(bf(x))return b(S,v,x,w);Wm(S,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,v!==null&&v.tag===6?(n(S,v.sibling),v=a(v,x),v.return=S,S=v):(n(S,v),v=xS(x,S.mode,w),v.return=S,S=v),i(S)):n(S,v)}return y}var cd=fz(!0),pz=fz(!1),zv=Tl(null),Hv=null,Mu=null,a$=null;function o$(){a$=Mu=Hv=null}function i$(e){var t=zv.current;ir(zv),e._currentValue=t}function ZI(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Zu(e,t){Hv=e,a$=Mu=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ga=!0),e.firstContext=null)}function Bo(e){var t=e._currentValue;if(a$!==e)if(e={context:e,memoizedValue:t,next:null},Mu===null){if(Hv===null)throw Error(dt(308));Mu=e,Hv.dependencies={lanes:0,firstContext:e}}else Mu=Mu.next=e;return t}var Yl=null;function s$(e){Yl===null?Yl=[e]:Yl.push(e)}function gz(e,t,n,r){var a=t.interleaved;return a===null?(n.next=n,s$(t)):(n.next=a.next,a.next=n),t.interleaved=n,xs(e,r)}function xs(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Us=!1;function l$(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function mz(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function gs(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function sl(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Cn&2){var a=r.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),r.pending=t,xs(e,n)}return a=r.interleaved,a===null?(t.next=t,s$(r)):(t.next=a.next,a.next=t),r.interleaved=t,xs(e,n)}function Zh(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,q_(e,n)}}function xA(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var a=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?a=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?a=o=t:o=o.next=t}else a=o=t;n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Uv(e,t,n,r){var a=e.updateQueue;Us=!1;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,s=a.shared.pending;if(s!==null){a.shared.pending=null;var c=s,u=c.next;c.next=null,i===null?o=u:i.next=u,i=c;var d=e.alternate;d!==null&&(d=d.updateQueue,s=d.lastBaseUpdate,s!==i&&(s===null?d.firstBaseUpdate=u:s.next=u,d.lastBaseUpdate=c))}if(o!==null){var f=a.baseState;i=0,d=u=c=null,s=o;do{var p=s.lane,g=s.eventTime;if((r&p)===p){d!==null&&(d=d.next={eventTime:g,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,b=s;switch(p=t,g=n,b.tag){case 1:if(h=b.payload,typeof h=="function"){f=h.call(g,f,p);break e}f=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=b.payload,p=typeof h=="function"?h.call(g,f,p):h,p==null)break e;f=hr({},f,p);break e;case 2:Us=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=a.effects,p===null?a.effects=[s]:p.push(s))}else g={eventTime:g,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(u=d=g,c=f):d=d.next=g,i|=p;if(s=s.next,s===null){if(s=a.shared.pending,s===null)break;p=s,s=p.next,p.next=null,a.lastBaseUpdate=p,a.shared.pending=null}}while(!0);if(d===null&&(c=f),a.baseState=c,a.firstBaseUpdate=u,a.lastBaseUpdate=d,t=a.shared.interleaved,t!==null){a=t;do i|=a.lane,a=a.next;while(a!==t)}else o===null&&(a.shared.lanes=0);bc|=i,e.lanes=i,e.memoizedState=f}}function wA(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=hS.transition;hS.transition={};try{e(!1),t()}finally{Mn=n,hS.transition=r}}function kz(){return zo().memoizedState}function ZJ(e,t,n){var r=cl(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Az(e))Mz(t,n);else if(n=gz(e,t,n,r),n!==null){var a=Ma();ci(n,e,r,a),Pz(n,t,r)}}function QJ(e,t,n){var r=cl(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Az(e))Mz(t,a);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,s=o(i,n);if(a.hasEagerState=!0,a.eagerState=s,gi(s,i)){var c=t.interleaved;c===null?(a.next=a,s$(t)):(a.next=c.next,c.next=a),t.interleaved=a;return}}catch{}finally{}n=gz(e,t,a,r),n!==null&&(a=Ma(),ci(n,e,r,a),Pz(n,t,r))}}function Az(e){var t=e.alternate;return e===mr||t!==null&&t===mr}function Mz(e,t){dp=Wv=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Pz(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,q_(e,n)}}var Gv={readContext:Bo,useCallback:pa,useContext:pa,useEffect:pa,useImperativeHandle:pa,useInsertionEffect:pa,useLayoutEffect:pa,useMemo:pa,useReducer:pa,useRef:pa,useState:pa,useDebugValue:pa,useDeferredValue:pa,useTransition:pa,useMutableSource:pa,useSyncExternalStore:pa,useId:pa,unstable_isNewReconciler:!1},JJ={readContext:Bo,useCallback:function(e,t){return $i().memoizedState=[e,t===void 0?null:t],e},useContext:Bo,useEffect:EA,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Jh(4194308,4,Rz.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Jh(4194308,4,e,t)},useInsertionEffect:function(e,t){return Jh(4,2,e,t)},useMemo:function(e,t){var n=$i();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=$i();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ZJ.bind(null,mr,e),[r.memoizedState,e]},useRef:function(e){var t=$i();return e={current:e},t.memoizedState=e},useState:CA,useDebugValue:h$,useDeferredValue:function(e){return $i().memoizedState=e},useTransition:function(){var e=CA(!1),t=e[0];return e=XJ.bind(null,e[1]),$i().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=mr,a=$i();if(lr){if(n===void 0)throw Error(dt(407));n=n()}else{if(n=t(),Zr===null)throw Error(dt(349));vc&30||yz(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,EA(xz.bind(null,r,o,e),[e]),r.flags|=2048,Zp(9,Sz.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=$i(),t=Zr.identifierPrefix;if(lr){var n=ps,r=fs;n=(r&~(1<<32-li(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Yp++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[ki]=t,e[Vp]=r,Wz(e,t,!1,!1),t.stateNode=e;e:{switch(i=kI(n,r),n){case"dialog":nr("cancel",e),nr("close",e),a=r;break;case"iframe":case"object":case"embed":nr("load",e),a=r;break;case"video":case"audio":for(a=0;afd&&(t.flags|=128,r=!0,Cf(o,!1),t.lanes=4194304)}else{if(!r)if(e=Uv(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Cf(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!lr)return fa(t),null}else 2*wr()-o.renderingStartTime>fd&&n!==1073741824&&(t.flags|=128,r=!0,Cf(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=wr(),t.sibling=null,n=gr.current,Kn(gr,r?n&1|2:n&1),t):(fa(t),null);case 22:case 23:return x$(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?co&1073741824&&(fa(t),t.subtreeFlags&6&&(t.flags|=8192)):fa(t),null;case 24:return null;case 25:return null}throw Error(dt(156,t.tag))}function see(e,t){switch(t$(t),t.tag){case 1:return Ya(t.type)&&Dv(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ud(),or(Ka),or(Sa),u$(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return c$(t),null;case 13:if(or(gr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(dt(340));ld()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return or(gr),null;case 4:return ud(),null;case 10:return o$(t.type._context),null;case 22:case 23:return x$(),null;case 24:return null;default:return null}}var Wm=!1,ha=!1,lee=typeof WeakSet=="function"?WeakSet:Set,Mt=null;function Pu(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){br(e,t,r)}else n.current=null}function oT(e,t,n){try{n()}catch(r){br(e,t,r)}}var PA=!1;function cee(e,t){if(HI=kv,e=Q7(),J_(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,s=-1,c=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var g;f!==n||a!==0&&f.nodeType!==3||(s=i+a),f!==o||r!==0&&f.nodeType!==3||(c=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(g=f.firstChild)!==null;)p=f,f=g;for(;;){if(f===e)break t;if(p===n&&++u===a&&(s=i),p===o&&++d===r&&(c=i),(g=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=g}n=s===-1||c===-1?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(UI={focusedElem:e,selectionRange:n},kv=!1,Mt=t;Mt!==null;)if(t=Mt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Mt=e;else for(;Mt!==null;){t=Mt;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var b=h.memoizedProps,y=h.memoizedState,S=t.stateNode,v=S.getSnapshotBeforeUpdate(t.elementType===t.type?b:ti(t.type,b),y);S.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(dt(163))}}catch(C){br(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,Mt=e;break}Mt=t.return}return h=PA,PA=!1,h}function up(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&e)===e){var o=a.destroy;a.destroy=void 0,o!==void 0&&oT(t,n,o)}a=a.next}while(a!==r)}}function Zb(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function iT(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Kz(e){var t=e.alternate;t!==null&&(e.alternate=null,Kz(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ki],delete t[Vp],delete t[GI],delete t[WJ],delete t[GJ])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Yz(e){return e.tag===5||e.tag===3||e.tag===4}function DA(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Yz(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function sT(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Pv));else if(r!==4&&(e=e.child,e!==null))for(sT(e,t,n),e=e.sibling;e!==null;)sT(e,t,n),e=e.sibling}function lT(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(lT(e,t,n),e=e.sibling;e!==null;)lT(e,t,n),e=e.sibling}var aa=null,ni=!1;function Ms(e,t,n){for(n=n.child;n!==null;)Xz(e,t,n),n=n.sibling}function Xz(e,t,n){if(Li&&typeof Li.onCommitFiberUnmount=="function")try{Li.onCommitFiberUnmount(Ub,n)}catch{}switch(n.tag){case 5:ha||Pu(n,t);case 6:var r=aa,a=ni;aa=null,Ms(e,t,n),aa=r,ni=a,aa!==null&&(ni?(e=aa,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):aa.removeChild(n.stateNode));break;case 18:aa!==null&&(ni?(e=aa,n=n.stateNode,e.nodeType===8?fS(e.parentNode,n):e.nodeType===1&&fS(e,n),jp(e)):fS(aa,n.stateNode));break;case 4:r=aa,a=ni,aa=n.stateNode.containerInfo,ni=!0,Ms(e,t,n),aa=r,ni=a;break;case 0:case 11:case 14:case 15:if(!ha&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){a=r=r.next;do{var o=a,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&oT(n,t,i),a=a.next}while(a!==r)}Ms(e,t,n);break;case 1:if(!ha&&(Pu(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){br(n,t,s)}Ms(e,t,n);break;case 21:Ms(e,t,n);break;case 22:n.mode&1?(ha=(r=ha)||n.memoizedState!==null,Ms(e,t,n),ha=r):Ms(e,t,n);break;default:Ms(e,t,n)}}function LA(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new lee),t.forEach(function(r){var a=bee.bind(null,e,r);n.has(r)||(n.add(r),r.then(a,a))})}}function Xo(e,t){var n=t.deletions;if(n!==null)for(var r=0;ra&&(a=i),r&=~o}if(r=a,r=wr()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*dee(r/1960))-r,10e?16:e,Xs===null)var r=!1;else{if(e=Xs,Xs=null,Kv=0,Cn&6)throw Error(dt(331));var a=Cn;for(Cn|=4,Mt=e.current;Mt!==null;){var o=Mt,i=o.child;if(Mt.flags&16){var s=o.deletions;if(s!==null){for(var c=0;cwr()-y$?ic(e,0):b$|=n),Xa(e,t)}function a9(e,t){t===0&&(e.mode&1?(t=Dm,Dm<<=1,!(Dm&130023424)&&(Dm=4194304)):t=1);var n=Aa();e=Ss(e,t),e!==null&&(Fg(e,t,n),Xa(e,n))}function vee(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),a9(e,n)}function bee(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(dt(314))}r!==null&&r.delete(t),a9(e,n)}var o9;o9=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ka.current)Wa=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Wa=!1,oee(e,t,n);Wa=!!(e.flags&131072)}else Wa=!1,lr&&t.flags&1048576&&cz(t,jv,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Jh(e,t),e=t.pendingProps;var a=sd(t,Sa.current);Zu(t,n),a=f$(null,t,r,e,a,n);var o=p$();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ya(r)?(o=!0,Lv(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,s$(t),a.updater=Xb,t.stateNode=a,a._reactInternals=t,QI(t,r,e,n),t=tT(null,t,r,!0,o,n)):(t.tag=0,lr&&o&&e$(t),_a(null,t,a,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Jh(e,t),e=t.pendingProps,a=r._init,r=a(r._payload),t.type=r,a=t.tag=See(r),e=ti(r,e),a){case 0:t=eT(null,t,r,e,n);break e;case 1:t=kA(null,t,r,e,n);break e;case 11:t=OA(null,t,r,e,n);break e;case 14:t=NA(null,t,r,ti(r.type,e),n);break e}throw Error(dt(306,r,""))}return t;case 0:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:ti(r,a),eT(e,t,r,a,n);case 1:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:ti(r,a),kA(e,t,r,a,n);case 3:e:{if(Hz(t),e===null)throw Error(dt(387));r=t.pendingProps,o=t.memoizedState,a=o.element,mz(e,t),Hv(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=dd(Error(dt(423)),t),t=AA(e,t,r,n,a);break e}else if(r!==a){a=dd(Error(dt(424)),t),t=AA(e,t,r,n,a);break e}else for(uo=il(t.stateNode.containerInfo.firstChild),yo=t,lr=!0,oi=null,n=pz(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ld(),r===a){t=xs(e,t,n);break e}_a(e,t,r,n)}t=t.child}return t;case 5:return hz(t),e===null&&YI(t),r=t.type,a=t.pendingProps,o=e!==null?e.memoizedProps:null,i=a.children,VI(r,a)?i=null:o!==null&&VI(r,o)&&(t.flags|=32),zz(e,t),_a(e,t,i,n),t.child;case 6:return e===null&&YI(t),null;case 13:return Uz(e,t,n);case 4:return l$(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=cd(t,null,r,n):_a(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:ti(r,a),OA(e,t,r,a,n);case 7:return _a(e,t,t.pendingProps,n),t.child;case 8:return _a(e,t,t.pendingProps.children,n),t.child;case 12:return _a(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,o=t.memoizedProps,i=a.value,Kn(Bv,r._currentValue),r._currentValue=i,o!==null)if(pi(o.value,i)){if(o.children===a.children&&!Ka.current){t=xs(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){i=o.child;for(var c=s.firstContext;c!==null;){if(c.context===r){if(o.tag===1){c=ps(-1,n&-n),c.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),XI(o.return,n,t),s.lanes|=n;break}c=c.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(dt(341));i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),XI(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}_a(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=t.pendingProps.children,Zu(t,n),a=jo(a),r=r(a),t.flags|=1,_a(e,t,r,n),t.child;case 14:return r=t.type,a=ti(r,t.pendingProps),a=ti(r.type,a),NA(e,t,r,a,n);case 15:return jz(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:ti(r,a),Jh(e,t),t.tag=1,Ya(r)?(e=!0,Lv(t)):e=!1,Zu(t,n),Dz(t,r,a),QI(t,r,a,n),tT(null,t,r,!0,e,n);case 19:return Vz(e,t,n);case 22:return Bz(e,t,n)}throw Error(dt(156,t.tag))};function i9(e,t){return A7(e,t)}function yee(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Lo(e,t,n,r){return new yee(e,t,n,r)}function C$(e){return e=e.prototype,!(!e||!e.isReactComponent)}function See(e){if(typeof e=="function")return C$(e)?1:0;if(e!=null){if(e=e.$$typeof,e===H_)return 11;if(e===U_)return 14}return 2}function ul(e,t){var n=e.alternate;return n===null?(n=Lo(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function nv(e,t,n,r,a,o){var i=2;if(r=e,typeof e=="function")C$(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Tu:return sc(n.children,a,o,t);case z_:i=8,a|=8;break;case wI:return e=Lo(12,n,t,a|2),e.elementType=wI,e.lanes=o,e;case CI:return e=Lo(13,n,t,a),e.elementType=CI,e.lanes=o,e;case EI:return e=Lo(19,n,t,a),e.elementType=EI,e.lanes=o,e;case h7:return Jb(n,a,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case g7:i=10;break e;case m7:i=9;break e;case H_:i=11;break e;case U_:i=14;break e;case Hs:i=16,r=null;break e}throw Error(dt(130,e==null?e:typeof e,""))}return t=Lo(i,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function sc(e,t,n,r){return e=Lo(7,e,r,t),e.lanes=n,e}function Jb(e,t,n,r){return e=Lo(22,e,r,t),e.elementType=h7,e.lanes=n,e.stateNode={isHidden:!1},e}function SS(e,t,n){return e=Lo(6,e,null,t),e.lanes=n,e}function xS(e,t,n){return t=Lo(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function xee(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=tS(0),this.expirationTimes=tS(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tS(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function E$(e,t,n,r,a,o,i,s,c){return e=new xee(e,t,n,s,c),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Lo(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},s$(o),e}function wee(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u9)}catch(e){console.error(e)}}u9(),u7.exports=wo;var Lr=u7.exports;const Zp=Ma(Lr),Ree=A_({__proto__:null,default:Zp},[Lr]);var WA=Lr;SI.createRoot=WA.createRoot,SI.hydrateRoot=WA.hydrateRoot;const _ee={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Zv{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||_ee,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r{this.observers[r]||(this.observers[r]=new Map);const a=this.observers[r].get(n)||0;this.observers[r].set(n,a+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a{let[s,c]=i;for(let u=0;u{let[s,c]=i;for(let u=0;u{let e,t;const n=new Promise((r,a)=>{e=r,t=a});return n.resolve=e,n.reject=t,n},GA=e=>e==null?"":""+e,$ee=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},Oee=/###/g,qA=e=>e&&e.indexOf("###")>-1?e.replace(Oee,"."):e,KA=e=>!e||typeof e=="string",pp=(e,t,n)=>{const r=typeof t!="string"?t:t.split(".");let a=0;for(;a{const{obj:r,k:a}=pp(e,t,Object);if(r!==void 0||t.length===1){r[a]=n;return}let o=t[t.length-1],i=t.slice(0,t.length-1),s=pp(e,i,Object);for(;s.obj===void 0&&i.length;)o=`${i[i.length-1]}.${o}`,i=i.slice(0,i.length-1),s=pp(e,i,Object),s&&s.obj&&typeof s.obj[`${s.k}.${o}`]<"u"&&(s.obj=void 0);s.obj[`${s.k}.${o}`]=n},Nee=(e,t,n,r)=>{const{obj:a,k:o}=pp(e,t,Object);a[o]=a[o]||[],a[o].push(n)},Qv=(e,t)=>{const{obj:n,k:r}=pp(e,t);if(n)return n[r]},kee=(e,t,n)=>{const r=Qv(e,n);return r!==void 0?r:Qv(t,n)},d9=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):d9(e[r],t[r],n):e[r]=t[r]);return e},eu=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Aee={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const Mee=e=>typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>Aee[t]):e;class Pee{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const Dee=[" ",",","?","!",";"],Lee=new Pee(20),Fee=(e,t,n)=>{t=t||"",n=n||"";const r=Dee.filter(i=>t.indexOf(i)<0&&n.indexOf(i)<0);if(r.length===0)return!0;const a=Lee.getRegExp(`(${r.map(i=>i==="?"?"\\?":i).join("|")})`);let o=!a.test(e);if(!o){const i=e.indexOf(n);i>0&&!a.test(e.substring(0,i))&&(o=!0)}return o},pT=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let a=e;for(let o=0;o-1&&ce&&e.indexOf("_")>0?e.replace("_","-"):e;class XA extends a0{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,i=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;t.indexOf(".")>-1?s=t.split("."):(s=[t,n],r&&(Array.isArray(r)?s.push(...r):typeof r=="string"&&o?s.push(...r.split(o)):s.push(r)));const c=Qv(this.data,s);return!c&&!n&&!r&&t.indexOf(".")>-1&&(t=s[0],n=s[1],r=s.slice(2).join(".")),c||!i||typeof r!="string"?c:pT(this.data&&this.data[t]&&this.data[t][n],r,o)}addResource(t,n,r,a){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let s=[t,n];r&&(s=s.concat(i?r.split(i):r)),t.indexOf(".")>-1&&(s=t.split("."),a=n,n=s[1]),this.addNamespaces(n),YA(this.data,s,a),o.silent||this.emit("added",t,n,r,a)}addResources(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in r)(typeof r[o]=="string"||Array.isArray(r[o]))&&this.addResource(t,n,o,r[o],{silent:!0});a.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,a,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},s=[t,n];t.indexOf(".")>-1&&(s=t.split("."),a=r,r=n,n=s[1]),this.addNamespaces(n);let c=Qv(this.data,s)||{};i.skipCopy||(r=JSON.parse(JSON.stringify(r))),a?d9(c,r,o):c={...c,...r},YA(this.data,s,c),i.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(a=>n[a]&&Object.keys(n[a]).length>0)}toJSON(){return this.data}}var f9={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,a){return e.forEach(o=>{this.processors[o]&&(t=this.processors[o].process(t,n,r,a))}),t}};const ZA={};class eb extends a0{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),$ee(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Mi.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let o=n.ns||this.options.defaultNS||[];const i=r&&t.indexOf(r)>-1,s=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!Fee(t,r,a);if(i&&!s){const c=t.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:t,namespaces:o};const u=t.split(r);(r!==a||r===a&&this.options.ns.indexOf(u[0])>-1)&&(o=u.shift()),t=u.join(a)}return typeof o=="string"&&(o=[o]),{key:t,namespaces:o}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const a=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:i,namespaces:s}=this.extractFromKey(t[t.length-1],n),c=s[s.length-1],u=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(d){const C=n.nsSeparator||this.options.nsSeparator;return a?{res:`${c}${C}${i}`,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:`${c}${C}${i}`}return a?{res:i,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:i}const f=this.resolve(t,n);let p=f&&f.res;const g=f&&f.usedKey||i,h=f&&f.exactUsedKey||i,b=Object.prototype.toString.apply(p),y=["[object Number]","[object Function]","[object RegExp]"],S=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject;if(v&&p&&(typeof p!="string"&&typeof p!="boolean"&&typeof p!="number")&&y.indexOf(b)<0&&!(typeof S=="string"&&Array.isArray(p))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const C=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,p,{...n,ns:s}):`key '${i} (${this.language})' returned an object instead of string.`;return a?(f.res=C,f.usedParams=this.getUsedParamsDetails(n),f):C}if(o){const C=Array.isArray(p),w=C?[]:{},E=C?h:g;for(const I in p)if(Object.prototype.hasOwnProperty.call(p,I)){const T=`${E}${o}${I}`;w[I]=this.translate(T,{...n,joinArrays:!1,ns:s}),w[I]===T&&(w[I]=p[I])}p=w}}else if(v&&typeof S=="string"&&Array.isArray(p))p=p.join(S),p&&(p=this.extendTranslation(p,t,n,r));else{let C=!1,w=!1;const E=n.count!==void 0&&typeof n.count!="string",I=eb.hasDefaultValue(n),T=E?this.pluralResolver.getSuffix(u,n.count,n):"",R=n.ordinal&&E?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",_=E&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),$=_&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${T}`]||n[`defaultValue${R}`]||n.defaultValue;!this.isValidLookup(p)&&I&&(C=!0,p=$),this.isValidLookup(p)||(w=!0,p=i);const D=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&w?void 0:p,A=I&&$!==p&&this.options.updateMissing;if(w||C||A){if(this.logger.log(A?"updateKey":"missingKey",u,c,i,A?$:p),o){const M=this.resolve(i,{...n,keySeparator:!1});M&&M.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let O=[];const N=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&N&&N[0])for(let M=0;M{const j=I&&F!==p?F:D;this.options.missingKeyHandler?this.options.missingKeyHandler(M,c,L,j,A,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(M,c,L,j,A,n),this.emit("missingKey",M,c,L,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&E?O.forEach(M=>{const L=this.pluralResolver.getSuffixes(M,n);_&&n[`defaultValue${this.options.pluralSeparator}zero`]&&L.indexOf(`${this.options.pluralSeparator}zero`)<0&&L.push(`${this.options.pluralSeparator}zero`),L.forEach(F=>{k([M],i+F,n[`defaultValue${F}`]||$)})}):k(O,i,$))}p=this.extendTranslation(p,t,n,f,r),w&&p===i&&this.options.appendNamespaceToMissingKey&&(p=`${c}:${i}`),(w||C)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${i}`:i,C?p:void 0):p=this.options.parseMissingKeyHandler(p))}return a?(f.res=p,f.usedParams=this.getUsedParamsDetails(n),f):p}extendTranslation(t,n,r,a,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=typeof t=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(u){const p=t.match(this.interpolator.nestingRegexp);d=p&&p.length}let f=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),t=this.interpolator.interpolate(t,f,r.lng||this.language||a.usedLng,r),u){const p=t.match(this.interpolator.nestingRegexp),g=p&&p.length;d1&&arguments[1]!==void 0?arguments[1]:{},r,a,o,i,s;return typeof t=="string"&&(t=[t]),t.forEach(c=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(c,n),d=u.key;a=d;let f=u.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const p=n.count!==void 0&&typeof n.count!="string",g=p&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),h=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",b=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);f.forEach(y=>{this.isValidLookup(r)||(s=y,!ZA[`${b[0]}-${y}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(ZA[`${b[0]}-${y}`]=!0,this.logger.warn(`key "${a}" for languages "${b.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),b.forEach(S=>{if(this.isValidLookup(r))return;i=S;const v=[d];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(v,d,S,y,n);else{let C;p&&(C=this.pluralResolver.getSuffix(S,n.count,n));const w=`${this.options.pluralSeparator}zero`,E=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(v.push(d+C),n.ordinal&&C.indexOf(E)===0&&v.push(d+C.replace(E,this.options.pluralSeparator)),g&&v.push(d+w)),h){const I=`${d}${this.options.contextSeparator}${n.context}`;v.push(I),p&&(v.push(I+C),n.ordinal&&C.indexOf(E)===0&&v.push(I+C.replace(E,this.options.pluralSeparator)),g&&v.push(I+w))}}let x;for(;x=v.pop();)this.isValidLookup(r)||(o=x,r=this.getResource(S,y,x,n))}))})}),{res:r,usedKey:a,exactUsedKey:o,usedLng:i,usedNS:s}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,a):this.resourceStore.getResource(t,n,r,a)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&typeof t.replace!="string";let a=r?t.replace:t;if(r&&typeof t.count<"u"&&(a.count=t.count),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!r){a={...a};for(const o of n)delete a[o]}return a}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}const wS=e=>e.charAt(0).toUpperCase()+e.slice(1);class QA{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Mi.create("languageUtils")}getScriptPartFromCode(t){if(t=Jv(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Jv(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(a=>a.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=wS(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=wS(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=wS(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const a=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(a))&&(n=a)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const a=this.getLanguagePartFromCode(r);if(this.isSupportedCode(a))return n=a;n=this.options.supportedLngs.find(o=>{if(o===a)return o;if(!(o.indexOf("-")<0&&a.indexOf("-")<0)&&(o.indexOf("-")>0&&a.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===a||o.indexOf(a)===0&&a.length>1))return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),a=[],o=i=>{i&&(this.isSupportedCode(i)?a.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):typeof t=="string"&&o(this.formatLanguageCode(t)),r.forEach(i=>{a.indexOf(i)<0&&o(this.formatLanguageCode(i))}),a}}let jee=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Bee={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const zee=["v1","v2","v3"],Hee=["v4"],JA={zero:0,one:1,two:2,few:3,many:4,other:5},Uee=()=>{const e={};return jee.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:Bee[t.fc]}})}),e};class Vee{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Mi.create("pluralResolver"),(!this.options.compatibilityJSON||Hee.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Uee(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{const r=Jv(t==="dev"?"en":t),a=n.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:r,type:a});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];const i=new Intl.PluralRules(r,{type:a});return this.pluralRulesCache[o]=i,i}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(a=>`${n}${a}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((a,o)=>JA[a]-JA[o]).map(a=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${a}`):r.numbers.map(a=>this.getSuffix(t,a,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const a=this.getRule(t,r);return a?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${a.select(n)}`:this.getSuffixRetroCompatible(a,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let a=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));const o=()=>this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString();return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?`_plural_${a.toString()}`:o():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!zee.includes(this.options.compatibilityJSON)}}const e3=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=kee(e,t,n);return!o&&a&&typeof n=="string"&&(o=pT(e,n,r),o===void 0&&(o=pT(t,n,r))),o},CS=e=>e.replace(/\$/g,"$$$$");class Wee{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Mi.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:a,prefix:o,prefixEscaped:i,suffix:s,suffixEscaped:c,formatSeparator:u,unescapeSuffix:d,unescapePrefix:f,nestingPrefix:p,nestingPrefixEscaped:g,nestingSuffix:h,nestingSuffixEscaped:b,nestingOptionsSeparator:y,maxReplaces:S,alwaysFormat:v}=t.interpolation;this.escape=n!==void 0?n:Mee,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=a!==void 0?a:!1,this.prefix=o?eu(o):i||"{{",this.suffix=s?eu(s):c||"}}",this.formatSeparator=u||",",this.unescapePrefix=d?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=p?eu(p):g||eu("$t("),this.nestingSuffix=h?eu(h):b||eu(")"),this.nestingOptionsSeparator=y||",",this.maxReplaces=S||1e3,this.alwaysFormat=v!==void 0?v:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,a){let o,i,s;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=g=>{if(g.indexOf(this.formatSeparator)<0){const S=e3(n,c,g,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(S,void 0,r,{...a,...n,interpolationkey:g}):S}const h=g.split(this.formatSeparator),b=h.shift().trim(),y=h.join(this.formatSeparator).trim();return this.format(e3(n,c,b,this.options.keySeparator,this.options.ignoreJSONStructure),y,r,{...a,...n,interpolationkey:b})};this.resetRegExp();const d=a&&a.missingInterpolationHandler||this.options.missingInterpolationHandler,f=a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:g=>CS(g)},{regex:this.regexp,safeValue:g=>this.escapeValue?CS(this.escape(g)):CS(g)}].forEach(g=>{for(s=0;o=g.regex.exec(t);){const h=o[1].trim();if(i=u(h),i===void 0)if(typeof d=="function"){const y=d(t,o,a);i=typeof y=="string"?y:""}else if(a&&Object.prototype.hasOwnProperty.call(a,h))i="";else if(f){i=o[0];continue}else this.logger.warn(`missed to pass in variable ${h} for interpolating ${t}`),i="";else typeof i!="string"&&!this.useRawValueToEscape&&(i=GA(i));const b=g.safeValue(i);if(t=t.replace(o[0],b),f?(g.regex.lastIndex+=i.length,g.regex.lastIndex-=o[0].length):g.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,o,i;const s=(c,u)=>{const d=this.nestingOptionsSeparator;if(c.indexOf(d)<0)return c;const f=c.split(new RegExp(`${d}[ ]*{`));let p=`{${f[1]}`;c=f[0],p=this.interpolate(p,i);const g=p.match(/'/g),h=p.match(/"/g);(g&&g.length%2===0&&!h||h.length%2!==0)&&(p=p.replace(/'/g,'"'));try{i=JSON.parse(p),u&&(i={...u,...i})}catch(b){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,b),`${c}${d}${p}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,c};for(;a=this.nestingRegexp.exec(t);){let c=[];i={...r},i=i.replace&&typeof i.replace!="string"?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let u=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){const d=a[1].split(this.formatSeparator).map(f=>f.trim());a[1]=d.shift(),c=d,u=!0}if(o=n(s.call(this,a[1].trim(),i),i),o&&a[0]===t&&typeof o!="string")return o;typeof o!="string"&&(o=GA(o)),o||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${t}`),o=""),u&&(o=c.reduce((d,f)=>this.format(d,f,r.lng,{...r,interpolationkey:a[1].trim()}),o.trim())),t=t.replace(a[0],o),this.regexp.lastIndex=0}return t}}const Gee=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const a=r[1].substring(0,r[1].length-1);t==="currency"&&a.indexOf(":")<0?n.currency||(n.currency=a.trim()):t==="relativetime"&&a.indexOf(":")<0?n.range||(n.range=a.trim()):a.split(";").forEach(i=>{if(i){const[s,...c]=i.split(":"),u=c.join(":").trim().replace(/^'+|'+$/g,""),d=s.trim();n[d]||(n[d]=u),u==="false"&&(n[d]=!1),u==="true"&&(n[d]=!0),isNaN(u)||(n[d]=parseInt(u,10))}})}return{formatName:t,formatOptions:n}},tu=e=>{const t={};return(n,r,a)=>{let o=a;a&&a.interpolationkey&&a.formatParams&&a.formatParams[a.interpolationkey]&&a[a.interpolationkey]&&(o={...o,[a.interpolationkey]:void 0});const i=r+JSON.stringify(o);let s=t[i];return s||(s=e(Jv(r),a),t[i]=s),s(n)}};class qee{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Mi.create("formatter"),this.options=t,this.formats={number:tu((n,r)=>{const a=new Intl.NumberFormat(n,{...r});return o=>a.format(o)}),currency:tu((n,r)=>{const a=new Intl.NumberFormat(n,{...r,style:"currency"});return o=>a.format(o)}),datetime:tu((n,r)=>{const a=new Intl.DateTimeFormat(n,{...r});return o=>a.format(o)}),relativetime:tu((n,r)=>{const a=new Intl.RelativeTimeFormat(n,{...r});return o=>a.format(o,r.range||"day")}),list:tu((n,r)=>{const a=new Intl.ListFormat(n,{...r});return o=>a.format(o)})},this.init(t)}init(t){const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=tu(n)}format(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=n.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(s=>s.indexOf(")")>-1)){const s=o.findIndex(c=>c.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,s)].join(this.formatSeparator)}return o.reduce((s,c)=>{const{formatName:u,formatOptions:d}=Gee(c);if(this.formats[u]){let f=s;try{const p=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},g=p.locale||p.lng||a.locale||a.lng||r;f=this.formats[u](s,g,{...d,...a,...p})}catch(p){this.logger.warn(p)}return f}else this.logger.warn(`there was no format function for ${u}`);return s},t)}}const Kee=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class Yee extends a0{constructor(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=a,this.logger=Mi.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=a.maxParallelReads||10,this.readingCalls=0,this.maxRetries=a.maxRetries>=0?a.maxRetries:5,this.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,a.backend,a)}queueLoad(t,n,r,a){const o={},i={},s={},c={};return t.forEach(u=>{let d=!0;n.forEach(f=>{const p=`${u}|${f}`;!r.reload&&this.store.hasResourceBundle(u,f)?this.state[p]=2:this.state[p]<0||(this.state[p]===1?i[p]===void 0&&(i[p]=!0):(this.state[p]=1,d=!1,i[p]===void 0&&(i[p]=!0),o[p]===void 0&&(o[p]=!0),c[f]===void 0&&(c[f]=!0)))}),d||(s[u]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(c)}}loaded(t,n,r){const a=t.split("|"),o=a[0],i=a[1];n&&this.emit("failedLoading",o,i,n),!n&&r&&this.store.addResourceBundle(o,i,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const s={};this.queue.forEach(c=>{Nee(c.loaded,[o],i),Kee(c,t),n&&c.errors.push(n),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(u=>{s[u]||(s[u]={});const d=c.loaded[u];d.length&&d.forEach(f=>{s[u][f]===void 0&&(s[u][f]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(c=>!c.done)}read(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!t.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:a,wait:o,callback:i});return}this.readingCalls++;const s=(u,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(u&&d&&a{this.read.call(this,t,n,r,a+1,o*2,i)},o);return}i(u,d)},c=this.backend[r].bind(this.backend);if(c.length===2){try{const u=c(t,n);u&&typeof u.then=="function"?u.then(d=>s(null,d)).catch(s):s(null,u)}catch(u){s(u)}return}return c(t,n,s)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const o=this.queueLoad(t,n,r,a);if(!o.toLoad.length)return o.pending.length||a(),null;o.toLoad.forEach(i=>{this.loadOne(i)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),a=r[0],o=r[1];this.read(a,o,"read",void 0,void 0,(i,s)=>{i&&this.logger.warn(`${n}loading namespace ${o} for language ${a} failed`,i),!i&&s&&this.logger.log(`${n}loaded namespace ${o} for language ${a}`,s),this.loaded(t,i,s)})}saveMissing(t,n,r,a,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const c={...i,isUpdate:o},u=this.backend.create.bind(this.backend);if(u.length<6)try{let d;u.length===5?d=u(t,n,r,a,c):d=u(t,n,r,a),d&&typeof d.then=="function"?d.then(f=>s(null,f)).catch(s):s(null,d)}catch(d){s(d)}else u(t,n,r,a,s,c)}!t||!t[0]||this.store.addResource(t[0],n,r,a)}}}const t3=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),n3=e=>(typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),Km=()=>{},Xee=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class Qp extends a0{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=n3(t),this.services={},this.logger=Mi,this.modules={external:[]},Xee(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const a=t3();this.options={...a,...this.options,...n3(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...a.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const o=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?Mi.init(o(this.modules.logger),this.options):Mi.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=qee);const f=new QA(this.options);this.store=new XA(this.options.resources,this.options);const p=this.services;p.logger=Mi,p.resourceStore=this.store,p.languageUtils=f,p.pluralResolver=new Vee(f,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(p.formatter=o(d),p.formatter.init(p,this.options),this.options.interpolation.format=p.formatter.format.bind(p.formatter)),p.interpolator=new Wee(this.options),p.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},p.backendConnector=new Yee(o(this.modules.backend),p.resourceStore,p,this.options),p.backendConnector.on("*",function(g){for(var h=arguments.length,b=new Array(h>1?h-1:0),y=1;y1?h-1:0),y=1;y{g.init&&g.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Km),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=function(){return t.store[d](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=function(){return t.store[d](...arguments),t}});const c=If(),u=()=>{const d=(f,p)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),c.resolve(p),r(f,p)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),c}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Km;const a=typeof t=="string"?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(a&&a.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const o=[],i=s=>{if(!s||s==="cimode")return;this.services.languageUtils.toResolveHierarchy(s).forEach(u=>{u!=="cimode"&&o.indexOf(u)<0&&o.push(u)})};a?i(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>i(c)),this.options.preload&&this.options.preload.forEach(s=>i(s)),this.services.backendConnector.load(o,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(s)})}else r(null)}reloadResources(t,n,r){const a=If();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=Km),this.services.backendConnector.reload(t,n,o=>{a.resolve(),r(o)}),a}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&f9.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const a=If();this.emit("languageChanging",t);const o=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},i=(c,u)=>{u?(o(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,a.resolve(function(){return r.t(...arguments)}),n&&n(c,function(){return r.t(...arguments)})},s=c=>{!t&&!c&&this.services.languageDetector&&(c=[]);const u=typeof c=="string"?c:this.services.languageUtils.getBestMatchFromCodes(c);u&&(this.language||o(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,d=>{i(d,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),a}getFixedT(t,n,r){var a=this;const o=function(i,s){let c;if(typeof s!="object"){for(var u=arguments.length,d=new Array(u>2?u-2:0),f=2;f`${c.keyPrefix}${p}${h}`):g=c.keyPrefix?`${c.keyPrefix}${p}${i}`:i,a.t(g,c)};return typeof t=="string"?o.lng=t:o.lngs=t,o.ns=n,o.keyPrefix=r,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],a=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const i=(s,c)=>{const u=this.services.backendConnector.state[`${s}|${c}`];return u===-1||u===0||u===2};if(n.precheck){const s=n.precheck(this,i);if(s!==void 0)return s}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(r,t)&&(!a||i(o,t)))}loadNamespaces(t,n){const r=If();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(a=>{this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=If();typeof t=="string"&&(t=[t]);const a=this.options.preload||[],o=t.filter(i=>a.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return o.length?(this.options.preload=a.concat(o),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new QA(t3());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new Qp(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Km;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const a={...this.options,...t,isClone:!0},o=new Qp(a);return(t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(s=>{o[s]=this[s]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r&&(o.store=new XA(this.store.data,a),o.services.resourceStore=o.store),o.translator=new eb(o.services,a),o.translator.on("*",function(s){for(var c=arguments.length,u=new Array(c>1?c-1:0),d=1;d{console!=null&&console.warn&&(lc(e[0])&&(e[0]=`react-i18next:: ${e[0]}`),console.warn(...e))},r3={},gT=(...e)=>{lc(e[0])&&r3[e[0]]||(lc(e[0])&&(r3[e[0]]=new Date),Zee(...e))},p9=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},a3=(e,t,n)=>{e.loadNamespaces(t,p9(e,n))},o3=(e,t,n,r)=>{lc(n)&&(n=[n]),n.forEach(a=>{e.options.ns.indexOf(a)<0&&e.options.ns.push(a)}),e.loadLanguages(t,p9(e,r))},Qee=(e,t,n={})=>!t.languages||!t.languages.length?(gT("i18n.languages were undefined or empty",t.languages),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(r,a)=>{var o;if(((o=n.bindI18n)==null?void 0:o.indexOf("languageChanging"))>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!a(r.isLanguageChangingTo,e))return!1}}),lc=e=>typeof e=="string",Jee=e=>typeof e=="object"&&e!==null,ete=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,tte={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},nte=e=>tte[e],rte=e=>e.replace(ete,nte);let mT={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:rte};const ate=(e={})=>{mT={...mT,...e}},ote=()=>mT;let g9;const ite=e=>{g9=e},ste=()=>g9,lte={type:"3rdParty",init(e){ate(e.options.react),ite(e)}},cte=l.createContext();class ute{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{var r;(r=this.usedNamespaces)[n]??(r[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const dte=(e,t)=>{const n=l.useRef();return l.useEffect(()=>{n.current=e},[e,t]),n.current},m9=(e,t,n,r)=>e.getFixedT(t,n,r),fte=(e,t,n,r)=>l.useCallback(m9(e,t,n,r),[e,t,n,r]),Nt=(e,t={})=>{var C,w,E,I;const{i18n:n}=t,{i18n:r,defaultNS:a}=l.useContext(cte)||{},o=n||r||ste();if(o&&!o.reportNamespaces&&(o.reportNamespaces=new ute),!o){gT("You will need to pass in an i18next instance by using initReactI18next");const T=(_,$)=>lc($)?$:Jee($)&&lc($.defaultValue)?$.defaultValue:Array.isArray(_)?_[_.length-1]:_,R=[T,{},!1];return R.t=T,R.i18n={},R.ready=!1,R}(C=o.options.react)!=null&&C.wait&&gT("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const i={...ote(),...o.options.react,...t},{useSuspense:s,keyPrefix:c}=i;let u=a||((w=o.options)==null?void 0:w.defaultNS);u=lc(u)?[u]:u||["translation"],(I=(E=o.reportNamespaces).addUsedNamespaces)==null||I.call(E,u);const d=(o.isInitialized||o.initializedStoreOnce)&&u.every(T=>Qee(T,o,i)),f=fte(o,t.lng||null,i.nsMode==="fallback"?u:u[0],c),p=()=>f,g=()=>m9(o,t.lng||null,i.nsMode==="fallback"?u:u[0],c),[h,b]=l.useState(p);let y=u.join();t.lng&&(y=`${t.lng}${y}`);const S=dte(y),v=l.useRef(!0);l.useEffect(()=>{const{bindI18n:T,bindI18nStore:R}=i;v.current=!0,!d&&!s&&(t.lng?o3(o,t.lng,u,()=>{v.current&&b(g)}):a3(o,u,()=>{v.current&&b(g)})),d&&S&&S!==y&&v.current&&b(g);const _=()=>{v.current&&b(g)};return T&&(o==null||o.on(T,_)),R&&(o==null||o.store.on(R,_)),()=>{v.current=!1,o&&(T==null||T.split(" ").forEach($=>o.off($,_))),R&&o&&R.split(" ").forEach($=>o.store.off($,_))}},[o,y]),l.useEffect(()=>{v.current&&d&&b(p)},[o,c,d]);const x=[h,o,d];if(x.t=h,x.i18n=o,x.ready=d,d||!d&&!s)return x;throw new Promise(T=>{t.lng?o3(o,t.lng,u,()=>T()):a3(o,u,()=>T())})};function hT(e){"@babel/helpers - typeof";return hT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hT(e)}function h9(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":hT(XMLHttpRequest))==="object"}function pte(e){return!!e&&typeof e.then=="function"}function gte(e){return pte(e)?e:Promise.resolve(e)}function mte(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var vT={exports:{}},Ym={exports:{}},i3;function hte(){return i3||(i3=1,function(e,t){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof ya<"u"&&ya,r=function(){function o(){this.fetch=!1,this.DOMException=n.DOMException}return o.prototype=n,new o}();(function(o){(function(i){var s=typeof o<"u"&&o||typeof self<"u"&&self||typeof s<"u"&&s,c={searchParams:"URLSearchParams"in s,iterable:"Symbol"in s&&"iterator"in Symbol,blob:"FileReader"in s&&"Blob"in s&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in s,arrayBuffer:"ArrayBuffer"in s};function u(O){return O&&DataView.prototype.isPrototypeOf(O)}if(c.arrayBuffer)var d=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],f=ArrayBuffer.isView||function(O){return O&&d.indexOf(Object.prototype.toString.call(O))>-1};function p(O){if(typeof O!="string"&&(O=String(O)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(O)||O==="")throw new TypeError('Invalid character in header field name: "'+O+'"');return O.toLowerCase()}function g(O){return typeof O!="string"&&(O=String(O)),O}function h(O){var N={next:function(){var k=O.shift();return{done:k===void 0,value:k}}};return c.iterable&&(N[Symbol.iterator]=function(){return N}),N}function b(O){this.map={},O instanceof b?O.forEach(function(N,k){this.append(k,N)},this):Array.isArray(O)?O.forEach(function(N){this.append(N[0],N[1])},this):O&&Object.getOwnPropertyNames(O).forEach(function(N){this.append(N,O[N])},this)}b.prototype.append=function(O,N){O=p(O),N=g(N);var k=this.map[O];this.map[O]=k?k+", "+N:N},b.prototype.delete=function(O){delete this.map[p(O)]},b.prototype.get=function(O){return O=p(O),this.has(O)?this.map[O]:null},b.prototype.has=function(O){return this.map.hasOwnProperty(p(O))},b.prototype.set=function(O,N){this.map[p(O)]=g(N)},b.prototype.forEach=function(O,N){for(var k in this.map)this.map.hasOwnProperty(k)&&O.call(N,this.map[k],k,this)},b.prototype.keys=function(){var O=[];return this.forEach(function(N,k){O.push(k)}),h(O)},b.prototype.values=function(){var O=[];return this.forEach(function(N){O.push(N)}),h(O)},b.prototype.entries=function(){var O=[];return this.forEach(function(N,k){O.push([k,N])}),h(O)},c.iterable&&(b.prototype[Symbol.iterator]=b.prototype.entries);function y(O){if(O.bodyUsed)return Promise.reject(new TypeError("Already read"));O.bodyUsed=!0}function S(O){return new Promise(function(N,k){O.onload=function(){N(O.result)},O.onerror=function(){k(O.error)}})}function v(O){var N=new FileReader,k=S(N);return N.readAsArrayBuffer(O),k}function x(O){var N=new FileReader,k=S(N);return N.readAsText(O),k}function C(O){for(var N=new Uint8Array(O),k=new Array(N.length),M=0;M-1?N:O}function R(O,N){if(!(this instanceof R))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');N=N||{};var k=N.body;if(O instanceof R){if(O.bodyUsed)throw new TypeError("Already read");this.url=O.url,this.credentials=O.credentials,N.headers||(this.headers=new b(O.headers)),this.method=O.method,this.mode=O.mode,this.signal=O.signal,!k&&O._bodyInit!=null&&(k=O._bodyInit,O.bodyUsed=!0)}else this.url=String(O);if(this.credentials=N.credentials||this.credentials||"same-origin",(N.headers||!this.headers)&&(this.headers=new b(N.headers)),this.method=T(N.method||this.method||"GET"),this.mode=N.mode||this.mode||null,this.signal=N.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&k)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(k),(this.method==="GET"||this.method==="HEAD")&&(N.cache==="no-store"||N.cache==="no-cache")){var M=/([?&])_=[^&]*/;if(M.test(this.url))this.url=this.url.replace(M,"$1_="+new Date().getTime());else{var L=/\?/;this.url+=(L.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}R.prototype.clone=function(){return new R(this,{body:this._bodyInit})};function _(O){var N=new FormData;return O.trim().split("&").forEach(function(k){if(k){var M=k.split("="),L=M.shift().replace(/\+/g," "),F=M.join("=").replace(/\+/g," ");N.append(decodeURIComponent(L),decodeURIComponent(F))}}),N}function $(O){var N=new b,k=O.replace(/\r?\n[\t ]+/g," ");return k.split("\r").map(function(M){return M.indexOf(` -`)===0?M.substr(1,M.length):M}).forEach(function(M){var L=M.split(":"),F=L.shift().trim();if(F){var j=L.join(":").trim();N.append(F,j)}}),N}E.call(R.prototype);function P(O,N){if(!(this instanceof P))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');N||(N={}),this.type="default",this.status=N.status===void 0?200:N.status,this.ok=this.status>=200&&this.status<300,this.statusText=N.statusText===void 0?"":""+N.statusText,this.headers=new b(N.headers),this.url=N.url||"",this._initBody(O)}E.call(P.prototype),P.prototype.clone=function(){return new P(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new b(this.headers),url:this.url})},P.error=function(){var O=new P(null,{status:0,statusText:""});return O.type="error",O};var D=[301,302,303,307,308];P.redirect=function(O,N){if(D.indexOf(N)===-1)throw new RangeError("Invalid status code");return new P(null,{status:N,headers:{location:O}})},i.DOMException=s.DOMException;try{new i.DOMException}catch{i.DOMException=function(N,k){this.message=N,this.name=k;var M=Error(N);this.stack=M.stack},i.DOMException.prototype=Object.create(Error.prototype),i.DOMException.prototype.constructor=i.DOMException}function A(O,N){return new Promise(function(k,M){var L=new R(O,N);if(L.signal&&L.signal.aborted)return M(new i.DOMException("Aborted","AbortError"));var F=new XMLHttpRequest;function j(){F.abort()}F.onload=function(){var z={status:F.status,statusText:F.statusText,headers:$(F.getAllResponseHeaders()||"")};z.url="responseURL"in F?F.responseURL:z.headers.get("X-Request-URL");var H="response"in F?F.response:F.responseText;setTimeout(function(){k(new P(H,z))},0)},F.onerror=function(){setTimeout(function(){M(new TypeError("Network request failed"))},0)},F.ontimeout=function(){setTimeout(function(){M(new TypeError("Network request failed"))},0)},F.onabort=function(){setTimeout(function(){M(new i.DOMException("Aborted","AbortError"))},0)};function B(z){try{return z===""&&s.location.href?s.location.href:z}catch{return z}}F.open(L.method,B(L.url),!0),L.credentials==="include"?F.withCredentials=!0:L.credentials==="omit"&&(F.withCredentials=!1),"responseType"in F&&(c.blob?F.responseType="blob":c.arrayBuffer&&L.headers.get("Content-Type")&&L.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(F.responseType="arraybuffer")),N&&typeof N.headers=="object"&&!(N.headers instanceof b)?Object.getOwnPropertyNames(N.headers).forEach(function(z){F.setRequestHeader(z,g(N.headers[z]))}):L.headers.forEach(function(z,H){F.setRequestHeader(H,z)}),L.signal&&(L.signal.addEventListener("abort",j),F.onreadystatechange=function(){F.readyState===4&&L.signal.removeEventListener("abort",j)}),F.send(typeof L._bodyInit>"u"?null:L._bodyInit)})}return A.polyfill=!0,s.fetch||(s.fetch=A,s.Headers=b,s.Request=R,s.Response=P),i.Headers=b,i.Request=R,i.Response=P,i.fetch=A,i})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var a=n.fetch?n:r;t=a.fetch,t.default=a.fetch,t.fetch=a.fetch,t.Headers=a.Headers,t.Request=a.Request,t.Response=a.Response,e.exports=t}(Ym,Ym.exports)),Ym.exports}(function(e,t){var n;if(typeof fetch=="function"&&(typeof ya<"u"&&ya.fetch?n=ya.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof mte<"u"&&typeof window>"u"){var r=n||hte();r.default&&(r=r.default),t.default=r,e.exports=t.default}})(vT,vT.exports);var v9=vT.exports;const b9=Ma(v9),s3=A_({__proto__:null,default:b9},[v9]);function l3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function c3(e){for(var t=1;t"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(o["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),r&&(o["Content-Type"]="application/json");var i=typeof t.requestOptions=="function"?t.requestOptions(r):t.requestOptions,s=c3({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:o},d3?{}:i),c=typeof t.alternateFetch=="function"&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{u3(n,s,a,c)}catch(u){if(!i||Object.keys(i).length===0||!u.message||u.message.indexOf("not implemented")<0)return a(u);try{Object.keys(i).forEach(function(d){delete s[d]}),u3(n,s,a,c),d3=!0}catch(d){a(d)}}},xte=function(t,n,r,a){r&&Sc(r)==="object"&&(r=bT("",r).slice(1)),t.queryStringParams&&(n=bT(n,t.queryStringParams));try{var o;Jp?o=new Jp:o=new tb("MSXML2.XMLHTTP.3.0"),o.open(r?"POST":"GET",n,1),t.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!t.withCredentials,r&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var i=t.customHeaders;if(i=typeof i=="function"?i():i,i)for(var s in i)o.setRequestHeader(s,i[s]);o.onreadystatechange=function(){o.readyState>3&&a(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(r)}catch(c){console&&console.log(c)}},wte=function(t,n,r,a){if(typeof r=="function"&&(a=r,r=void 0),a=a||function(){},gs&&n.indexOf("file:")!==0)return Ste(t,n,r,a);if(h9()||typeof ActiveXObject=="function")return xte(t,n,r,a);a(new Error("No fetch and no xhr implementation found!"))};function pd(e){"@babel/helpers - typeof";return pd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pd(e)}function f3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ES(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Cte(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return Ite(e,[{key:"init",value:function(n){var r=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=n,this.options=ES(ES(ES({},Rte()),this.options||{}),a),this.allOptions=o,this.services&&this.options.reloadInterval){var i=setInterval(function(){return r.reload()},this.options.reloadInterval);pd(i)==="object"&&typeof i.unref=="function"&&i.unref()}}},{key:"readMulti",value:function(n,r,a){this._readAny(n,n,r,r,a)}},{key:"read",value:function(n,r,a){this._readAny([n],n,[r],r,a)}},{key:"_readAny",value:function(n,r,a,o,i){var s=this,c=this.options.loadPath;typeof this.options.loadPath=="function"&&(c=this.options.loadPath(n,a)),c=gte(c),c.then(function(u){if(!u)return i(null,{});var d=s.services.interpolator.interpolate(u,{lng:n.join("+"),ns:a.join("+")});s.loadUrl(d,i,r,o)})}},{key:"loadUrl",value:function(n,r,a,o){var i=this,s=typeof a=="string"?[a]:a,c=typeof o=="string"?[o]:o,u=this.options.parseLoadPayload(s,c);this.options.request(this.options,n,u,function(d,f){if(f&&(f.status>=500&&f.status<600||!f.status))return r("failed loading "+n+"; status code: "+f.status,!0);if(f&&f.status>=400&&f.status<500)return r("failed loading "+n+"; status code: "+f.status,!1);if(!f&&d&&d.message&&d.message.toLowerCase().indexOf("failed")>-1&&(d.message.indexOf("fetch")>-1||d.message.toLowerCase().indexOf("network")>-1))return r("failed loading "+n+": "+d.message,!0);if(d)return r(d,!1);var p,g;try{typeof f.data=="string"?p=i.options.parse(f.data,a,o):p=f.data}catch{g="failed parsing "+n+" to json"}if(g)return r(g,!1);r(null,p)})}},{key:"create",value:function(n,r,a,o,i){var s=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var c=this.options.parsePayload(r,a,o),u=0,d=[],f=[];n.forEach(function(p){var g=s.options.addPath;typeof s.options.addPath=="function"&&(g=s.options.addPath(p,r));var h=s.services.interpolator.interpolate(g,{lng:p,ns:r});s.options.request(s.options,h,c,function(b,y){u+=1,d.push(b),f.push(y),u===n.length&&typeof i=="function"&&i(d,f)})})}}},{key:"reload",value:function(){var n=this,r=this.services,a=r.backendConnector,o=r.languageUtils,i=r.logger,s=a.language;if(!(s&&s.toLowerCase()==="cimode")){var c=[],u=function(f){var p=o.toResolveHierarchy(f);p.forEach(function(g){c.indexOf(g)<0&&c.push(g)})};u(s),this.allOptions.preload&&this.allOptions.preload.forEach(function(d){return u(d)}),c.forEach(function(d){n.allOptions.ns.forEach(function(f){a.read(d,f,"read",null,null,function(p,g){p&&i.warn("loading namespace ".concat(f," for language ").concat(d," failed"),p),!p&&g&&i.log("loaded namespace ".concat(f," for language ").concat(d),g),a.loaded("".concat(d,"|").concat(f),p,g)})})})}}}])}();x9.type="backend";const{slice:_te,forEach:$te}=[];function Ote(e){return $te.call(_te.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}const p3=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Nte=(e,t,n)=>{const r=n||{};r.path=r.path||"/";const a=encodeURIComponent(t);let o=`${e}=${a}`;if(r.maxAge>0){const i=r.maxAge-0;if(Number.isNaN(i))throw new Error("maxAge should be a Number");o+=`; Max-Age=${Math.floor(i)}`}if(r.domain){if(!p3.test(r.domain))throw new TypeError("option domain is invalid");o+=`; Domain=${r.domain}`}if(r.path){if(!p3.test(r.path))throw new TypeError("option path is invalid");o+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");o+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return o},g3={create(e,t,n,r){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(a.expires=new Date,a.expires.setTime(a.expires.getTime()+n*60*1e3)),r&&(a.domain=r),document.cookie=Nte(e,encodeURIComponent(t),a)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r-1&&(a=window.location.hash.substring(window.location.hash.indexOf("?")));const i=a.substring(1).split("&");for(let s=0;s0&&i[s].substring(0,c)===t&&(n=i[s].substring(c+1))}}return n}};let Rf=null;const m3=()=>{if(Rf!==null)return Rf;try{Rf=window!=="undefined"&&window.localStorage!==null;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{Rf=!1}return Rf};var Mte={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&m3())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&m3()&&window.localStorage.setItem(n,e)}};let _f=null;const h3=()=>{if(_f!==null)return _f;try{_f=window!=="undefined"&&window.sessionStorage!==null;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{_f=!1}return _f};var Pte={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&h3())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&h3()&&window.sessionStorage.setItem(n,e)}},Dte={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:a}=navigator;if(n)for(let o=0;o0?t:void 0}},Lte={name:"htmlTag",lookup(e){let{htmlTag:t}=e,n;const r=t||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},Fte={name:"path",lookup(e){var a;let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?(a=n[typeof t=="number"?t:0])==null?void 0:a.replace("/",""):void 0}},jte={name:"subdomain",lookup(e){var a,o;let{lookupFromSubdomainIndex:t}=e;const n=typeof t=="number"?t+1:1,r=typeof window<"u"&&((o=(a=window.location)==null?void 0:a.hostname)==null?void 0:o.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(r)return r[n]}};function Bte(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e}}class w9{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t||{languageUtils:{}},this.options=Ote(n,this.options||{},Bte()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=a=>a.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(kte),this.addDetector(Ate),this.addDetector(Mte),this.addDetector(Pte),this.addDetector(Dte),this.addDetector(Lte),this.addDetector(Fte),this.addDetector(jte)}addDetector(t){return this.detectors[t.name]=t,this}detect(t){t||(t=this.options.order);let n=[];return t.forEach(r=>{if(this.detectors[r]){let a=this.detectors[r].lookup(this.options);a&&typeof a=="string"&&(a=[a]),a&&(n=n.concat(a))}}),n=n.map(r=>this.options.convertDetectedLanguage(r)),this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(t,n){n||(n=this.options.caches),n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(t,this.options)}))}}w9.type="languageDetector";kr.use(x9).use(w9).use(lte).init({supportedLngs:["en","de","fr","es"],fallbackLng:"en",ns:["teddycloud"],defaultNS:"teddycloud",debug:!1,backend:{queryStringParams:{v:"2023072701"},loadPath:"/web/translations/{{lng}}.json"},interpolation:{escapeValue:!1}});var C9={exports:{}};/*! +`+o.stack}return{value:e,source:t,stack:a,digest:null}}function yS(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function eT(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var nee=typeof WeakMap=="function"?WeakMap:Map;function Lz(e,t,n){n=gs(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Kv||(Kv=!0,uT=r),eT(e,t)},n}function Fz(e,t,n){n=gs(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var a=t.value;n.payload=function(){return r(a)},n.callback=function(){eT(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){eT(e,t),typeof r!="function"&&(ll===null?ll=new Set([this]):ll.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function RA(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new nee;var a=new Set;r.set(t,a)}else a=r.get(t),a===void 0&&(a=new Set,r.set(t,a));a.has(n)||(a.add(n),e=hee.bind(null,e,t,n),t.then(e,e))}function _A(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function $A(e,t,n,r,a){return e.mode&1?(e.flags|=65536,e.lanes=a,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=gs(-1,1),t.tag=2,sl(n,t,1))),n.lanes|=1),e)}var ree=$s.ReactCurrentOwner,Ga=!1;function Oa(e,t,n,r){t.child=e===null?pz(t,null,n,r):cd(t,e.child,n,r)}function OA(e,t,n,r,a){n=n.render;var o=t.ref;return Zu(t,a),r=p$(e,t,n,r,o,a),n=g$(),e!==null&&!Ga?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,ws(e,t,a)):(lr&&n&&t$(t),t.flags|=1,Oa(e,t,r,a),t.child)}function NA(e,t,n,r,a){if(e===null){var o=n.type;return typeof o=="function"&&!E$(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,jz(e,t,o,r,a)):(e=rv(n.type,null,r,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&a)){var i=o.memoizedProps;if(n=n.compare,n=n!==null?n:Up,n(i,r)&&e.ref===t.ref)return ws(e,t,a)}return t.flags|=1,e=ul(o,r),e.ref=t.ref,e.return=t,t.child=e}function jz(e,t,n,r,a){if(e!==null){var o=e.memoizedProps;if(Up(o,r)&&e.ref===t.ref)if(Ga=!1,t.pendingProps=r=o,(e.lanes&a)!==0)e.flags&131072&&(Ga=!0);else return t.lanes=e.lanes,ws(e,t,a)}return tT(e,t,n,r,a)}function Bz(e,t,n){var r=t.pendingProps,a=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Kn(Du,uo),uo|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Kn(Du,uo),uo|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Kn(Du,uo),uo|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Kn(Du,uo),uo|=r;return Oa(e,t,a,n),t.child}function zz(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function tT(e,t,n,r,a){var o=Xa(n)?mc:wa.current;return o=sd(t,o),Zu(t,a),n=p$(e,t,n,r,o,a),r=g$(),e!==null&&!Ga?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,ws(e,t,a)):(lr&&r&&t$(t),t.flags|=1,Oa(e,t,n,a),t.child)}function kA(e,t,n,r,a){if(Xa(n)){var o=!0;Fv(t)}else o=!1;if(Zu(t,a),t.stateNode===null)ev(e,t),Dz(t,n,r),JI(t,n,r,a),r=!0;else if(e===null){var i=t.stateNode,s=t.memoizedProps;i.props=s;var c=i.context,u=n.contextType;typeof u=="object"&&u!==null?u=Bo(u):(u=Xa(n)?mc:wa.current,u=sd(t,u));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function";f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==r||c!==u)&&TA(t,i,r,u),Us=!1;var p=t.memoizedState;i.state=p,Uv(t,r,i,a),c=t.memoizedState,s!==r||p!==c||Ya.current||Us?(typeof d=="function"&&(QI(t,n,d,r),c=t.memoizedState),(s=Us||IA(t,n,s,r,p,c,u))?(f||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),i.props=r,i.state=c,i.context=u,r=s):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,mz(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:ni(t.type,s),i.props=u,f=t.pendingProps,p=i.context,c=n.contextType,typeof c=="object"&&c!==null?c=Bo(c):(c=Xa(n)?mc:wa.current,c=sd(t,c));var g=n.getDerivedStateFromProps;(d=typeof g=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==f||p!==c)&&TA(t,i,r,c),Us=!1,p=t.memoizedState,i.state=p,Uv(t,r,i,a);var h=t.memoizedState;s!==f||p!==h||Ya.current||Us?(typeof g=="function"&&(QI(t,n,g,r),h=t.memoizedState),(u=Us||IA(t,n,u,r,p,h,c)||!1)?(d||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,h,c),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,h,c)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),i.props=r,i.state=h,i.context=c,r=u):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return nT(e,t,n,r,o,a)}function nT(e,t,n,r,a,o){zz(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return a&&vA(t,n,!1),ws(e,t,o);r=t.stateNode,ree.current=t;var s=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=cd(t,e.child,null,o),t.child=cd(t,null,s,o)):Oa(e,t,s,o),t.memoizedState=r.state,a&&vA(t,n,!0),t.child}function Hz(e){var t=e.stateNode;t.pendingContext?hA(e,t.pendingContext,t.pendingContext!==t.context):t.context&&hA(e,t.context,!1),c$(e,t.containerInfo)}function AA(e,t,n,r,a){return ld(),r$(a),t.flags|=256,Oa(e,t,n,r),t.child}var rT={dehydrated:null,treeContext:null,retryLane:0};function aT(e){return{baseLanes:e,cachePool:null,transitions:null}}function Uz(e,t,n){var r=t.pendingProps,a=gr.current,o=!1,i=(t.flags&128)!==0,s;if((s=i)||(s=e!==null&&e.memoizedState===null?!1:(a&2)!==0),s?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),Kn(gr,a&1),e===null)return XI(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,o?(r=t.mode,o=t.child,i={mode:"hidden",children:i},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=e0(i,r,0,null),e=sc(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=aT(n),t.memoizedState=rT,e):v$(t,i));if(a=e.memoizedState,a!==null&&(s=a.dehydrated,s!==null))return aee(e,t,i,r,s,a,n);if(o){o=r.fallback,i=t.mode,a=e.child,s=a.sibling;var c={mode:"hidden",children:r.children};return!(i&1)&&t.child!==a?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=ul(a,c),r.subtreeFlags=a.subtreeFlags&14680064),s!==null?o=ul(s,o):(o=sc(o,i,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,i=e.child.memoizedState,i=i===null?aT(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~n,t.memoizedState=rT,r}return o=e.child,e=o.sibling,r=ul(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function v$(e,t){return t=e0({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Gm(e,t,n,r){return r!==null&&r$(r),cd(t,e.child,null,n),e=v$(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function aee(e,t,n,r,a,o,i){if(n)return t.flags&256?(t.flags&=-257,r=yS(Error(dt(422))),Gm(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,a=t.mode,r=e0({mode:"visible",children:r.children},a,0,null),o=sc(o,a,i,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&cd(t,e.child,null,i),t.child.memoizedState=aT(i),t.memoizedState=rT,o);if(!(t.mode&1))return Gm(e,t,i,null);if(a.data==="$!"){if(r=a.nextSibling&&a.nextSibling.dataset,r)var s=r.dgst;return r=s,o=Error(dt(419)),r=yS(o,r,void 0),Gm(e,t,i,r)}if(s=(i&e.childLanes)!==0,Ga||s){if(r=Zr,r!==null){switch(i&-i){case 4:a=2;break;case 16:a=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:a=32;break;case 536870912:a=268435456;break;default:a=0}a=a&(r.suspendedLanes|i)?0:a,a!==0&&a!==o.retryLane&&(o.retryLane=a,xs(e,a),ci(r,e,a,-1))}return C$(),r=yS(Error(dt(421))),Gm(e,t,i,r)}return a.data==="$?"?(t.flags|=128,t.child=e.child,t=vee.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,fo=il(a.nextSibling),So=t,lr=!0,ii=null,e!==null&&(Po[Do++]=fs,Po[Do++]=ps,Po[Do++]=hc,fs=e.id,ps=e.overflow,hc=t),t=v$(t,r.children),t.flags|=4096,t)}function MA(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ZI(e.return,t,n)}function SS(e,t,n,r,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=a)}function Vz(e,t,n){var r=t.pendingProps,a=r.revealOrder,o=r.tail;if(Oa(e,t,r.children,n),r=gr.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&MA(e,n,t);else if(e.tag===19)MA(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Kn(gr,r),!(t.mode&1))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;n!==null;)e=n.alternate,e!==null&&Vv(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),SS(t,!1,a,n,o);break;case"backwards":for(n=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&Vv(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}SS(t,!0,n,null,o);break;case"together":SS(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ev(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ws(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),bc|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(dt(153));if(t.child!==null){for(e=t.child,n=ul(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ul(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function oee(e,t,n){switch(t.tag){case 3:Hz(t),ld();break;case 5:hz(t);break;case 1:Xa(t.type)&&Fv(t);break;case 4:c$(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,a=t.memoizedProps.value;Kn(zv,r._currentValue),r._currentValue=a;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Kn(gr,gr.current&1),t.flags|=128,null):n&t.child.childLanes?Uz(e,t,n):(Kn(gr,gr.current&1),e=ws(e,t,n),e!==null?e.sibling:null);Kn(gr,gr.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Vz(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Kn(gr,gr.current),r)break;return null;case 22:case 23:return t.lanes=0,Bz(e,t,n)}return ws(e,t,n)}var Wz,oT,Gz,qz;Wz=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};oT=function(){};Gz=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,Xl(ji.current);var o=null;switch(n){case"input":a=RI(e,a),r=RI(e,r),o=[];break;case"select":a=hr({},a,{value:void 0}),r=hr({},r,{value:void 0}),o=[];break;case"textarea":a=OI(e,a),r=OI(e,r),o=[];break;default:typeof a.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Dv)}kI(n,r);var i;n=null;for(u in a)if(!r.hasOwnProperty(u)&&a.hasOwnProperty(u)&&a[u]!=null)if(u==="style"){var s=a[u];for(i in s)s.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Dp.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var c=r[u];if(s=a!=null?a[u]:void 0,r.hasOwnProperty(u)&&c!==s&&(c!=null||s!=null))if(u==="style")if(s){for(i in s)!s.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&s[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(o||(o=[]),o.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,s=s?s.__html:void 0,c!=null&&s!==c&&(o=o||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(o=o||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Dp.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&rr("scroll",e),o||s===c||(o=[])):(o=o||[]).push(u,c))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};qz=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ef(e,t){if(!lr)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ga(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags&14680064,r|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function iee(e,t,n){var r=t.pendingProps;switch(n$(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ga(t),null;case 1:return Xa(t.type)&&Lv(),ga(t),null;case 3:return r=t.stateNode,ud(),ir(Ya),ir(wa),d$(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Vm(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ii!==null&&(pT(ii),ii=null))),oT(e,t),ga(t),null;case 5:u$(t);var a=Xl(Kp.current);if(n=t.type,e!==null&&t.stateNode!=null)Gz(e,t,n,r,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(dt(166));return ga(t),null}if(e=Xl(ji.current),Vm(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Ai]=t,r[Gp]=o,e=(t.mode&1)!==0,n){case"dialog":rr("cancel",r),rr("close",r);break;case"iframe":case"object":case"embed":rr("load",r);break;case"video":case"audio":for(a=0;a<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Ai]=t,e[Gp]=r,Wz(e,t,!1,!1),t.stateNode=e;e:{switch(i=AI(n,r),n){case"dialog":rr("cancel",e),rr("close",e),a=r;break;case"iframe":case"object":case"embed":rr("load",e),a=r;break;case"video":case"audio":for(a=0;afd&&(t.flags|=128,r=!0,Ef(o,!1),t.lanes=4194304)}else{if(!r)if(e=Vv(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ef(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!lr)return ga(t),null}else 2*wr()-o.renderingStartTime>fd&&n!==1073741824&&(t.flags|=128,r=!0,Ef(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=wr(),t.sibling=null,n=gr.current,Kn(gr,r?n&1|2:n&1),t):(ga(t),null);case 22:case 23:return w$(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?uo&1073741824&&(ga(t),t.subtreeFlags&6&&(t.flags|=8192)):ga(t),null;case 24:return null;case 25:return null}throw Error(dt(156,t.tag))}function see(e,t){switch(n$(t),t.tag){case 1:return Xa(t.type)&&Lv(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ud(),ir(Ya),ir(wa),d$(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return u$(t),null;case 13:if(ir(gr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(dt(340));ld()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ir(gr),null;case 4:return ud(),null;case 10:return i$(t.type._context),null;case 22:case 23:return w$(),null;case 24:return null;default:return null}}var qm=!1,ba=!1,lee=typeof WeakSet=="function"?WeakSet:Set,Mt=null;function Pu(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){br(e,t,r)}else n.current=null}function iT(e,t,n){try{n()}catch(r){br(e,t,r)}}var PA=!1;function cee(e,t){if(UI=Av,e=Q7(),e$(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,s=-1,c=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var g;f!==n||a!==0&&f.nodeType!==3||(s=i+a),f!==o||r!==0&&f.nodeType!==3||(c=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(g=f.firstChild)!==null;)p=f,f=g;for(;;){if(f===e)break t;if(p===n&&++u===a&&(s=i),p===o&&++d===r&&(c=i),(g=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=g}n=s===-1||c===-1?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(VI={focusedElem:e,selectionRange:n},Av=!1,Mt=t;Mt!==null;)if(t=Mt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Mt=e;else for(;Mt!==null;){t=Mt;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var b=h.memoizedProps,y=h.memoizedState,S=t.stateNode,v=S.getSnapshotBeforeUpdate(t.elementType===t.type?b:ni(t.type,b),y);S.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(dt(163))}}catch(w){br(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,Mt=e;break}Mt=t.return}return h=PA,PA=!1,h}function fp(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&e)===e){var o=a.destroy;a.destroy=void 0,o!==void 0&&iT(t,n,o)}a=a.next}while(a!==r)}}function Qb(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function sT(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Kz(e){var t=e.alternate;t!==null&&(e.alternate=null,Kz(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ai],delete t[Gp],delete t[qI],delete t[WJ],delete t[GJ])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Yz(e){return e.tag===5||e.tag===3||e.tag===4}function DA(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Yz(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function lT(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Dv));else if(r!==4&&(e=e.child,e!==null))for(lT(e,t,n),e=e.sibling;e!==null;)lT(e,t,n),e=e.sibling}function cT(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(cT(e,t,n),e=e.sibling;e!==null;)cT(e,t,n),e=e.sibling}var ia=null,ri=!1;function Ps(e,t,n){for(n=n.child;n!==null;)Xz(e,t,n),n=n.sibling}function Xz(e,t,n){if(Fi&&typeof Fi.onCommitFiberUnmount=="function")try{Fi.onCommitFiberUnmount(Vb,n)}catch{}switch(n.tag){case 5:ba||Pu(n,t);case 6:var r=ia,a=ri;ia=null,Ps(e,t,n),ia=r,ri=a,ia!==null&&(ri?(e=ia,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ia.removeChild(n.stateNode));break;case 18:ia!==null&&(ri?(e=ia,n=n.stateNode,e.nodeType===8?pS(e.parentNode,n):e.nodeType===1&&pS(e,n),zp(e)):pS(ia,n.stateNode));break;case 4:r=ia,a=ri,ia=n.stateNode.containerInfo,ri=!0,Ps(e,t,n),ia=r,ri=a;break;case 0:case 11:case 14:case 15:if(!ba&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){a=r=r.next;do{var o=a,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&iT(n,t,i),a=a.next}while(a!==r)}Ps(e,t,n);break;case 1:if(!ba&&(Pu(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){br(n,t,s)}Ps(e,t,n);break;case 21:Ps(e,t,n);break;case 22:n.mode&1?(ba=(r=ba)||n.memoizedState!==null,Ps(e,t,n),ba=r):Ps(e,t,n);break;default:Ps(e,t,n)}}function LA(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new lee),t.forEach(function(r){var a=bee.bind(null,e,r);n.has(r)||(n.add(r),r.then(a,a))})}}function Zo(e,t){var n=t.deletions;if(n!==null)for(var r=0;ra&&(a=i),r&=~o}if(r=a,r=wr()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*dee(r/1960))-r,10e?16:e,Xs===null)var r=!1;else{if(e=Xs,Xs=null,Yv=0,Cn&6)throw Error(dt(331));var a=Cn;for(Cn|=4,Mt=e.current;Mt!==null;){var o=Mt,i=o.child;if(Mt.flags&16){var s=o.deletions;if(s!==null){for(var c=0;cwr()-S$?ic(e,0):y$|=n),Za(e,t)}function a9(e,t){t===0&&(e.mode&1?(t=Fm,Fm<<=1,!(Fm&130023424)&&(Fm=4194304)):t=1);var n=Ma();e=xs(e,t),e!==null&&(Bg(e,t,n),Za(e,n))}function vee(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),a9(e,n)}function bee(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(dt(314))}r!==null&&r.delete(t),a9(e,n)}var o9;o9=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ya.current)Ga=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ga=!1,oee(e,t,n);Ga=!!(e.flags&131072)}else Ga=!1,lr&&t.flags&1048576&&cz(t,Bv,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ev(e,t),e=t.pendingProps;var a=sd(t,wa.current);Zu(t,n),a=p$(null,t,r,e,a,n);var o=g$();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Xa(r)?(o=!0,Fv(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,l$(t),a.updater=Zb,t.stateNode=a,a._reactInternals=t,JI(t,r,e,n),t=nT(null,t,r,!0,o,n)):(t.tag=0,lr&&o&&t$(t),Oa(null,t,a,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ev(e,t),e=t.pendingProps,a=r._init,r=a(r._payload),t.type=r,a=t.tag=See(r),e=ni(r,e),a){case 0:t=tT(null,t,r,e,n);break e;case 1:t=kA(null,t,r,e,n);break e;case 11:t=OA(null,t,r,e,n);break e;case 14:t=NA(null,t,r,ni(r.type,e),n);break e}throw Error(dt(306,r,""))}return t;case 0:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:ni(r,a),tT(e,t,r,a,n);case 1:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:ni(r,a),kA(e,t,r,a,n);case 3:e:{if(Hz(t),e===null)throw Error(dt(387));r=t.pendingProps,o=t.memoizedState,a=o.element,mz(e,t),Uv(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=dd(Error(dt(423)),t),t=AA(e,t,r,n,a);break e}else if(r!==a){a=dd(Error(dt(424)),t),t=AA(e,t,r,n,a);break e}else for(fo=il(t.stateNode.containerInfo.firstChild),So=t,lr=!0,ii=null,n=pz(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ld(),r===a){t=ws(e,t,n);break e}Oa(e,t,r,n)}t=t.child}return t;case 5:return hz(t),e===null&&XI(t),r=t.type,a=t.pendingProps,o=e!==null?e.memoizedProps:null,i=a.children,WI(r,a)?i=null:o!==null&&WI(r,o)&&(t.flags|=32),zz(e,t),Oa(e,t,i,n),t.child;case 6:return e===null&&XI(t),null;case 13:return Uz(e,t,n);case 4:return c$(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=cd(t,null,r,n):Oa(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:ni(r,a),OA(e,t,r,a,n);case 7:return Oa(e,t,t.pendingProps,n),t.child;case 8:return Oa(e,t,t.pendingProps.children,n),t.child;case 12:return Oa(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,o=t.memoizedProps,i=a.value,Kn(zv,r._currentValue),r._currentValue=i,o!==null)if(gi(o.value,i)){if(o.children===a.children&&!Ya.current){t=ws(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){i=o.child;for(var c=s.firstContext;c!==null;){if(c.context===r){if(o.tag===1){c=gs(-1,n&-n),c.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),ZI(o.return,n,t),s.lanes|=n;break}c=c.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(dt(341));i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),ZI(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}Oa(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=t.pendingProps.children,Zu(t,n),a=Bo(a),r=r(a),t.flags|=1,Oa(e,t,r,n),t.child;case 14:return r=t.type,a=ni(r,t.pendingProps),a=ni(r.type,a),NA(e,t,r,a,n);case 15:return jz(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:ni(r,a),ev(e,t),t.tag=1,Xa(r)?(e=!0,Fv(t)):e=!1,Zu(t,n),Dz(t,r,a),JI(t,r,a,n),nT(null,t,r,!0,e,n);case 19:return Vz(e,t,n);case 22:return Bz(e,t,n)}throw Error(dt(156,t.tag))};function i9(e,t){return A7(e,t)}function yee(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Fo(e,t,n,r){return new yee(e,t,n,r)}function E$(e){return e=e.prototype,!(!e||!e.isReactComponent)}function See(e){if(typeof e=="function")return E$(e)?1:0;if(e!=null){if(e=e.$$typeof,e===U_)return 11;if(e===V_)return 14}return 2}function ul(e,t){var n=e.alternate;return n===null?(n=Fo(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function rv(e,t,n,r,a,o){var i=2;if(r=e,typeof e=="function")E$(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Tu:return sc(n.children,a,o,t);case H_:i=8,a|=8;break;case CI:return e=Fo(12,n,t,a|2),e.elementType=CI,e.lanes=o,e;case EI:return e=Fo(13,n,t,a),e.elementType=EI,e.lanes=o,e;case II:return e=Fo(19,n,t,a),e.elementType=II,e.lanes=o,e;case h7:return e0(n,a,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case g7:i=10;break e;case m7:i=9;break e;case U_:i=11;break e;case V_:i=14;break e;case Hs:i=16,r=null;break e}throw Error(dt(130,e==null?e:typeof e,""))}return t=Fo(i,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function sc(e,t,n,r){return e=Fo(7,e,r,t),e.lanes=n,e}function e0(e,t,n,r){return e=Fo(22,e,r,t),e.elementType=h7,e.lanes=n,e.stateNode={isHidden:!1},e}function xS(e,t,n){return e=Fo(6,e,null,t),e.lanes=n,e}function wS(e,t,n){return t=Fo(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function xee(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=nS(0),this.expirationTimes=nS(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nS(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function I$(e,t,n,r,a,o,i,s,c){return e=new xee(e,t,n,s,c),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Fo(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},l$(o),e}function wee(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u9)}catch(e){console.error(e)}}u9(),u7.exports=Co;var Lr=u7.exports;const Jp=Pa(Lr),Ree=M_({__proto__:null,default:Jp},[Lr]);var WA=Lr;xI.createRoot=WA.createRoot,xI.hydrateRoot=WA.hydrateRoot;const _ee={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Qv{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||_ee,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r{this.observers[r]||(this.observers[r]=new Map);const a=this.observers[r].get(n)||0;this.observers[r].set(n,a+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a{let[s,c]=i;for(let u=0;u{let[s,c]=i;for(let u=0;u{let e,t;const n=new Promise((r,a)=>{e=r,t=a});return n.resolve=e,n.reject=t,n},GA=e=>e==null?"":""+e,$ee=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},Oee=/###/g,qA=e=>e&&e.indexOf("###")>-1?e.replace(Oee,"."):e,KA=e=>!e||typeof e=="string",mp=(e,t,n)=>{const r=typeof t!="string"?t:t.split(".");let a=0;for(;a{const{obj:r,k:a}=mp(e,t,Object);if(r!==void 0||t.length===1){r[a]=n;return}let o=t[t.length-1],i=t.slice(0,t.length-1),s=mp(e,i,Object);for(;s.obj===void 0&&i.length;)o=`${i[i.length-1]}.${o}`,i=i.slice(0,i.length-1),s=mp(e,i,Object),s&&s.obj&&typeof s.obj[`${s.k}.${o}`]<"u"&&(s.obj=void 0);s.obj[`${s.k}.${o}`]=n},Nee=(e,t,n,r)=>{const{obj:a,k:o}=mp(e,t,Object);a[o]=a[o]||[],a[o].push(n)},Jv=(e,t)=>{const{obj:n,k:r}=mp(e,t);if(n)return n[r]},kee=(e,t,n)=>{const r=Jv(e,n);return r!==void 0?r:Jv(t,n)},d9=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):d9(e[r],t[r],n):e[r]=t[r]);return e},eu=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Aee={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const Mee=e=>typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>Aee[t]):e;class Pee{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const Dee=[" ",",","?","!",";"],Lee=new Pee(20),Fee=(e,t,n)=>{t=t||"",n=n||"";const r=Dee.filter(i=>t.indexOf(i)<0&&n.indexOf(i)<0);if(r.length===0)return!0;const a=Lee.getRegExp(`(${r.map(i=>i==="?"?"\\?":i).join("|")})`);let o=!a.test(e);if(!o){const i=e.indexOf(n);i>0&&!a.test(e.substring(0,i))&&(o=!0)}return o},gT=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let a=e;for(let o=0;o-1&&ce&&e.indexOf("_")>0?e.replace("_","-"):e;class XA extends o0{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,i=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;t.indexOf(".")>-1?s=t.split("."):(s=[t,n],r&&(Array.isArray(r)?s.push(...r):typeof r=="string"&&o?s.push(...r.split(o)):s.push(r)));const c=Jv(this.data,s);return!c&&!n&&!r&&t.indexOf(".")>-1&&(t=s[0],n=s[1],r=s.slice(2).join(".")),c||!i||typeof r!="string"?c:gT(this.data&&this.data[t]&&this.data[t][n],r,o)}addResource(t,n,r,a){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let s=[t,n];r&&(s=s.concat(i?r.split(i):r)),t.indexOf(".")>-1&&(s=t.split("."),a=n,n=s[1]),this.addNamespaces(n),YA(this.data,s,a),o.silent||this.emit("added",t,n,r,a)}addResources(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in r)(typeof r[o]=="string"||Array.isArray(r[o]))&&this.addResource(t,n,o,r[o],{silent:!0});a.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,a,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},s=[t,n];t.indexOf(".")>-1&&(s=t.split("."),a=r,r=n,n=s[1]),this.addNamespaces(n);let c=Jv(this.data,s)||{};i.skipCopy||(r=JSON.parse(JSON.stringify(r))),a?d9(c,r,o):c={...c,...r},YA(this.data,s,c),i.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(a=>n[a]&&Object.keys(n[a]).length>0)}toJSON(){return this.data}}var f9={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,a){return e.forEach(o=>{this.processors[o]&&(t=this.processors[o].process(t,n,r,a))}),t}};const ZA={};class tb extends o0{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),$ee(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Pi.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let o=n.ns||this.options.defaultNS||[];const i=r&&t.indexOf(r)>-1,s=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!Fee(t,r,a);if(i&&!s){const c=t.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:t,namespaces:o};const u=t.split(r);(r!==a||r===a&&this.options.ns.indexOf(u[0])>-1)&&(o=u.shift()),t=u.join(a)}return typeof o=="string"&&(o=[o]),{key:t,namespaces:o}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const a=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:i,namespaces:s}=this.extractFromKey(t[t.length-1],n),c=s[s.length-1],u=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(d){const w=n.nsSeparator||this.options.nsSeparator;return a?{res:`${c}${w}${i}`,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:`${c}${w}${i}`}return a?{res:i,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:i}const f=this.resolve(t,n);let p=f&&f.res;const g=f&&f.usedKey||i,h=f&&f.exactUsedKey||i,b=Object.prototype.toString.apply(p),y=["[object Number]","[object Function]","[object RegExp]"],S=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject;if(v&&p&&(typeof p!="string"&&typeof p!="boolean"&&typeof p!="number")&&y.indexOf(b)<0&&!(typeof S=="string"&&Array.isArray(p))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const w=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,p,{...n,ns:s}):`key '${i} (${this.language})' returned an object instead of string.`;return a?(f.res=w,f.usedParams=this.getUsedParamsDetails(n),f):w}if(o){const w=Array.isArray(p),C=w?[]:{},E=w?h:g;for(const I in p)if(Object.prototype.hasOwnProperty.call(p,I)){const T=`${E}${o}${I}`;C[I]=this.translate(T,{...n,joinArrays:!1,ns:s}),C[I]===T&&(C[I]=p[I])}p=C}}else if(v&&typeof S=="string"&&Array.isArray(p))p=p.join(S),p&&(p=this.extendTranslation(p,t,n,r));else{let w=!1,C=!1;const E=n.count!==void 0&&typeof n.count!="string",I=tb.hasDefaultValue(n),T=E?this.pluralResolver.getSuffix(u,n.count,n):"",R=n.ordinal&&E?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",_=E&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),$=_&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${T}`]||n[`defaultValue${R}`]||n.defaultValue;!this.isValidLookup(p)&&I&&(w=!0,p=$),this.isValidLookup(p)||(C=!0,p=i);const D=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&C?void 0:p,A=I&&$!==p&&this.options.updateMissing;if(C||w||A){if(this.logger.log(A?"updateKey":"missingKey",u,c,i,A?$:p),o){const M=this.resolve(i,{...n,keySeparator:!1});M&&M.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let O=[];const N=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&N&&N[0])for(let M=0;M{const j=I&&F!==p?F:D;this.options.missingKeyHandler?this.options.missingKeyHandler(M,c,L,j,A,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(M,c,L,j,A,n),this.emit("missingKey",M,c,L,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&E?O.forEach(M=>{const L=this.pluralResolver.getSuffixes(M,n);_&&n[`defaultValue${this.options.pluralSeparator}zero`]&&L.indexOf(`${this.options.pluralSeparator}zero`)<0&&L.push(`${this.options.pluralSeparator}zero`),L.forEach(F=>{k([M],i+F,n[`defaultValue${F}`]||$)})}):k(O,i,$))}p=this.extendTranslation(p,t,n,f,r),C&&p===i&&this.options.appendNamespaceToMissingKey&&(p=`${c}:${i}`),(C||w)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${i}`:i,w?p:void 0):p=this.options.parseMissingKeyHandler(p))}return a?(f.res=p,f.usedParams=this.getUsedParamsDetails(n),f):p}extendTranslation(t,n,r,a,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=typeof t=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(u){const p=t.match(this.interpolator.nestingRegexp);d=p&&p.length}let f=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),t=this.interpolator.interpolate(t,f,r.lng||this.language||a.usedLng,r),u){const p=t.match(this.interpolator.nestingRegexp),g=p&&p.length;d1&&arguments[1]!==void 0?arguments[1]:{},r,a,o,i,s;return typeof t=="string"&&(t=[t]),t.forEach(c=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(c,n),d=u.key;a=d;let f=u.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const p=n.count!==void 0&&typeof n.count!="string",g=p&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),h=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",b=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);f.forEach(y=>{this.isValidLookup(r)||(s=y,!ZA[`${b[0]}-${y}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(ZA[`${b[0]}-${y}`]=!0,this.logger.warn(`key "${a}" for languages "${b.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),b.forEach(S=>{if(this.isValidLookup(r))return;i=S;const v=[d];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(v,d,S,y,n);else{let w;p&&(w=this.pluralResolver.getSuffix(S,n.count,n));const C=`${this.options.pluralSeparator}zero`,E=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(v.push(d+w),n.ordinal&&w.indexOf(E)===0&&v.push(d+w.replace(E,this.options.pluralSeparator)),g&&v.push(d+C)),h){const I=`${d}${this.options.contextSeparator}${n.context}`;v.push(I),p&&(v.push(I+w),n.ordinal&&w.indexOf(E)===0&&v.push(I+w.replace(E,this.options.pluralSeparator)),g&&v.push(I+C))}}let x;for(;x=v.pop();)this.isValidLookup(r)||(o=x,r=this.getResource(S,y,x,n))}))})}),{res:r,usedKey:a,exactUsedKey:o,usedLng:i,usedNS:s}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,a):this.resourceStore.getResource(t,n,r,a)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&typeof t.replace!="string";let a=r?t.replace:t;if(r&&typeof t.count<"u"&&(a.count=t.count),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!r){a={...a};for(const o of n)delete a[o]}return a}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}const CS=e=>e.charAt(0).toUpperCase()+e.slice(1);class QA{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Pi.create("languageUtils")}getScriptPartFromCode(t){if(t=eb(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=eb(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(a=>a.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=CS(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=CS(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=CS(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const a=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(a))&&(n=a)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const a=this.getLanguagePartFromCode(r);if(this.isSupportedCode(a))return n=a;n=this.options.supportedLngs.find(o=>{if(o===a)return o;if(!(o.indexOf("-")<0&&a.indexOf("-")<0)&&(o.indexOf("-")>0&&a.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===a||o.indexOf(a)===0&&a.length>1))return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),a=[],o=i=>{i&&(this.isSupportedCode(i)?a.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):typeof t=="string"&&o(this.formatLanguageCode(t)),r.forEach(i=>{a.indexOf(i)<0&&o(this.formatLanguageCode(i))}),a}}let jee=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Bee={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const zee=["v1","v2","v3"],Hee=["v4"],JA={zero:0,one:1,two:2,few:3,many:4,other:5},Uee=()=>{const e={};return jee.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:Bee[t.fc]}})}),e};class Vee{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Pi.create("pluralResolver"),(!this.options.compatibilityJSON||Hee.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Uee(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{const r=eb(t==="dev"?"en":t),a=n.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:r,type:a});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];const i=new Intl.PluralRules(r,{type:a});return this.pluralRulesCache[o]=i,i}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(a=>`${n}${a}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((a,o)=>JA[a]-JA[o]).map(a=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${a}`):r.numbers.map(a=>this.getSuffix(t,a,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const a=this.getRule(t,r);return a?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${a.select(n)}`:this.getSuffixRetroCompatible(a,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let a=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));const o=()=>this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString();return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?`_plural_${a.toString()}`:o():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!zee.includes(this.options.compatibilityJSON)}}const e3=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=kee(e,t,n);return!o&&a&&typeof n=="string"&&(o=gT(e,n,r),o===void 0&&(o=gT(t,n,r))),o},ES=e=>e.replace(/\$/g,"$$$$");class Wee{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Pi.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:a,prefix:o,prefixEscaped:i,suffix:s,suffixEscaped:c,formatSeparator:u,unescapeSuffix:d,unescapePrefix:f,nestingPrefix:p,nestingPrefixEscaped:g,nestingSuffix:h,nestingSuffixEscaped:b,nestingOptionsSeparator:y,maxReplaces:S,alwaysFormat:v}=t.interpolation;this.escape=n!==void 0?n:Mee,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=a!==void 0?a:!1,this.prefix=o?eu(o):i||"{{",this.suffix=s?eu(s):c||"}}",this.formatSeparator=u||",",this.unescapePrefix=d?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=p?eu(p):g||eu("$t("),this.nestingSuffix=h?eu(h):b||eu(")"),this.nestingOptionsSeparator=y||",",this.maxReplaces=S||1e3,this.alwaysFormat=v!==void 0?v:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,a){let o,i,s;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=g=>{if(g.indexOf(this.formatSeparator)<0){const S=e3(n,c,g,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(S,void 0,r,{...a,...n,interpolationkey:g}):S}const h=g.split(this.formatSeparator),b=h.shift().trim(),y=h.join(this.formatSeparator).trim();return this.format(e3(n,c,b,this.options.keySeparator,this.options.ignoreJSONStructure),y,r,{...a,...n,interpolationkey:b})};this.resetRegExp();const d=a&&a.missingInterpolationHandler||this.options.missingInterpolationHandler,f=a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:g=>ES(g)},{regex:this.regexp,safeValue:g=>this.escapeValue?ES(this.escape(g)):ES(g)}].forEach(g=>{for(s=0;o=g.regex.exec(t);){const h=o[1].trim();if(i=u(h),i===void 0)if(typeof d=="function"){const y=d(t,o,a);i=typeof y=="string"?y:""}else if(a&&Object.prototype.hasOwnProperty.call(a,h))i="";else if(f){i=o[0];continue}else this.logger.warn(`missed to pass in variable ${h} for interpolating ${t}`),i="";else typeof i!="string"&&!this.useRawValueToEscape&&(i=GA(i));const b=g.safeValue(i);if(t=t.replace(o[0],b),f?(g.regex.lastIndex+=i.length,g.regex.lastIndex-=o[0].length):g.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,o,i;const s=(c,u)=>{const d=this.nestingOptionsSeparator;if(c.indexOf(d)<0)return c;const f=c.split(new RegExp(`${d}[ ]*{`));let p=`{${f[1]}`;c=f[0],p=this.interpolate(p,i);const g=p.match(/'/g),h=p.match(/"/g);(g&&g.length%2===0&&!h||h.length%2!==0)&&(p=p.replace(/'/g,'"'));try{i=JSON.parse(p),u&&(i={...u,...i})}catch(b){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,b),`${c}${d}${p}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,c};for(;a=this.nestingRegexp.exec(t);){let c=[];i={...r},i=i.replace&&typeof i.replace!="string"?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let u=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){const d=a[1].split(this.formatSeparator).map(f=>f.trim());a[1]=d.shift(),c=d,u=!0}if(o=n(s.call(this,a[1].trim(),i),i),o&&a[0]===t&&typeof o!="string")return o;typeof o!="string"&&(o=GA(o)),o||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${t}`),o=""),u&&(o=c.reduce((d,f)=>this.format(d,f,r.lng,{...r,interpolationkey:a[1].trim()}),o.trim())),t=t.replace(a[0],o),this.regexp.lastIndex=0}return t}}const Gee=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const a=r[1].substring(0,r[1].length-1);t==="currency"&&a.indexOf(":")<0?n.currency||(n.currency=a.trim()):t==="relativetime"&&a.indexOf(":")<0?n.range||(n.range=a.trim()):a.split(";").forEach(i=>{if(i){const[s,...c]=i.split(":"),u=c.join(":").trim().replace(/^'+|'+$/g,""),d=s.trim();n[d]||(n[d]=u),u==="false"&&(n[d]=!1),u==="true"&&(n[d]=!0),isNaN(u)||(n[d]=parseInt(u,10))}})}return{formatName:t,formatOptions:n}},tu=e=>{const t={};return(n,r,a)=>{let o=a;a&&a.interpolationkey&&a.formatParams&&a.formatParams[a.interpolationkey]&&a[a.interpolationkey]&&(o={...o,[a.interpolationkey]:void 0});const i=r+JSON.stringify(o);let s=t[i];return s||(s=e(eb(r),a),t[i]=s),s(n)}};class qee{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Pi.create("formatter"),this.options=t,this.formats={number:tu((n,r)=>{const a=new Intl.NumberFormat(n,{...r});return o=>a.format(o)}),currency:tu((n,r)=>{const a=new Intl.NumberFormat(n,{...r,style:"currency"});return o=>a.format(o)}),datetime:tu((n,r)=>{const a=new Intl.DateTimeFormat(n,{...r});return o=>a.format(o)}),relativetime:tu((n,r)=>{const a=new Intl.RelativeTimeFormat(n,{...r});return o=>a.format(o,r.range||"day")}),list:tu((n,r)=>{const a=new Intl.ListFormat(n,{...r});return o=>a.format(o)})},this.init(t)}init(t){const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=tu(n)}format(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=n.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(s=>s.indexOf(")")>-1)){const s=o.findIndex(c=>c.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,s)].join(this.formatSeparator)}return o.reduce((s,c)=>{const{formatName:u,formatOptions:d}=Gee(c);if(this.formats[u]){let f=s;try{const p=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},g=p.locale||p.lng||a.locale||a.lng||r;f=this.formats[u](s,g,{...d,...a,...p})}catch(p){this.logger.warn(p)}return f}else this.logger.warn(`there was no format function for ${u}`);return s},t)}}const Kee=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class Yee extends o0{constructor(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=a,this.logger=Pi.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=a.maxParallelReads||10,this.readingCalls=0,this.maxRetries=a.maxRetries>=0?a.maxRetries:5,this.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,a.backend,a)}queueLoad(t,n,r,a){const o={},i={},s={},c={};return t.forEach(u=>{let d=!0;n.forEach(f=>{const p=`${u}|${f}`;!r.reload&&this.store.hasResourceBundle(u,f)?this.state[p]=2:this.state[p]<0||(this.state[p]===1?i[p]===void 0&&(i[p]=!0):(this.state[p]=1,d=!1,i[p]===void 0&&(i[p]=!0),o[p]===void 0&&(o[p]=!0),c[f]===void 0&&(c[f]=!0)))}),d||(s[u]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(c)}}loaded(t,n,r){const a=t.split("|"),o=a[0],i=a[1];n&&this.emit("failedLoading",o,i,n),!n&&r&&this.store.addResourceBundle(o,i,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const s={};this.queue.forEach(c=>{Nee(c.loaded,[o],i),Kee(c,t),n&&c.errors.push(n),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(u=>{s[u]||(s[u]={});const d=c.loaded[u];d.length&&d.forEach(f=>{s[u][f]===void 0&&(s[u][f]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(c=>!c.done)}read(t,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!t.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:a,wait:o,callback:i});return}this.readingCalls++;const s=(u,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(u&&d&&a{this.read.call(this,t,n,r,a+1,o*2,i)},o);return}i(u,d)},c=this.backend[r].bind(this.backend);if(c.length===2){try{const u=c(t,n);u&&typeof u.then=="function"?u.then(d=>s(null,d)).catch(s):s(null,u)}catch(u){s(u)}return}return c(t,n,s)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const o=this.queueLoad(t,n,r,a);if(!o.toLoad.length)return o.pending.length||a(),null;o.toLoad.forEach(i=>{this.loadOne(i)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),a=r[0],o=r[1];this.read(a,o,"read",void 0,void 0,(i,s)=>{i&&this.logger.warn(`${n}loading namespace ${o} for language ${a} failed`,i),!i&&s&&this.logger.log(`${n}loaded namespace ${o} for language ${a}`,s),this.loaded(t,i,s)})}saveMissing(t,n,r,a,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const c={...i,isUpdate:o},u=this.backend.create.bind(this.backend);if(u.length<6)try{let d;u.length===5?d=u(t,n,r,a,c):d=u(t,n,r,a),d&&typeof d.then=="function"?d.then(f=>s(null,f)).catch(s):s(null,d)}catch(d){s(d)}else u(t,n,r,a,s,c)}!t||!t[0]||this.store.addResource(t[0],n,r,a)}}}const t3=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),n3=e=>(typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),Xm=()=>{},Xee=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class eg extends o0{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=n3(t),this.services={},this.logger=Pi,this.modules={external:[]},Xee(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const a=t3();this.options={...a,...this.options,...n3(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...a.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const o=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?Pi.init(o(this.modules.logger),this.options):Pi.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=qee);const f=new QA(this.options);this.store=new XA(this.options.resources,this.options);const p=this.services;p.logger=Pi,p.resourceStore=this.store,p.languageUtils=f,p.pluralResolver=new Vee(f,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(p.formatter=o(d),p.formatter.init(p,this.options),this.options.interpolation.format=p.formatter.format.bind(p.formatter)),p.interpolator=new Wee(this.options),p.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},p.backendConnector=new Yee(o(this.modules.backend),p.resourceStore,p,this.options),p.backendConnector.on("*",function(g){for(var h=arguments.length,b=new Array(h>1?h-1:0),y=1;y1?h-1:0),y=1;y{g.init&&g.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Xm),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=function(){return t.store[d](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=function(){return t.store[d](...arguments),t}});const c=Tf(),u=()=>{const d=(f,p)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),c.resolve(p),r(f,p)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),c}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Xm;const a=typeof t=="string"?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(a&&a.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const o=[],i=s=>{if(!s||s==="cimode")return;this.services.languageUtils.toResolveHierarchy(s).forEach(u=>{u!=="cimode"&&o.indexOf(u)<0&&o.push(u)})};a?i(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>i(c)),this.options.preload&&this.options.preload.forEach(s=>i(s)),this.services.backendConnector.load(o,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(s)})}else r(null)}reloadResources(t,n,r){const a=Tf();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=Xm),this.services.backendConnector.reload(t,n,o=>{a.resolve(),r(o)}),a}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&f9.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const a=Tf();this.emit("languageChanging",t);const o=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},i=(c,u)=>{u?(o(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,a.resolve(function(){return r.t(...arguments)}),n&&n(c,function(){return r.t(...arguments)})},s=c=>{!t&&!c&&this.services.languageDetector&&(c=[]);const u=typeof c=="string"?c:this.services.languageUtils.getBestMatchFromCodes(c);u&&(this.language||o(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,d=>{i(d,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),a}getFixedT(t,n,r){var a=this;const o=function(i,s){let c;if(typeof s!="object"){for(var u=arguments.length,d=new Array(u>2?u-2:0),f=2;f`${c.keyPrefix}${p}${h}`):g=c.keyPrefix?`${c.keyPrefix}${p}${i}`:i,a.t(g,c)};return typeof t=="string"?o.lng=t:o.lngs=t,o.ns=n,o.keyPrefix=r,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],a=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const i=(s,c)=>{const u=this.services.backendConnector.state[`${s}|${c}`];return u===-1||u===0||u===2};if(n.precheck){const s=n.precheck(this,i);if(s!==void 0)return s}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(r,t)&&(!a||i(o,t)))}loadNamespaces(t,n){const r=Tf();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(a=>{this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=Tf();typeof t=="string"&&(t=[t]);const a=this.options.preload||[],o=t.filter(i=>a.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return o.length?(this.options.preload=a.concat(o),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new QA(t3());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new eg(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Xm;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const a={...this.options,...t,isClone:!0},o=new eg(a);return(t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(s=>{o[s]=this[s]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r&&(o.store=new XA(this.store.data,a),o.services.resourceStore=o.store),o.translator=new tb(o.services,a),o.translator.on("*",function(s){for(var c=arguments.length,u=new Array(c>1?c-1:0),d=1;d{console!=null&&console.warn&&(lc(e[0])&&(e[0]=`react-i18next:: ${e[0]}`),console.warn(...e))},r3={},mT=(...e)=>{lc(e[0])&&r3[e[0]]||(lc(e[0])&&(r3[e[0]]=new Date),Zee(...e))},p9=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},a3=(e,t,n)=>{e.loadNamespaces(t,p9(e,n))},o3=(e,t,n,r)=>{lc(n)&&(n=[n]),n.forEach(a=>{e.options.ns.indexOf(a)<0&&e.options.ns.push(a)}),e.loadLanguages(t,p9(e,r))},Qee=(e,t,n={})=>!t.languages||!t.languages.length?(mT("i18n.languages were undefined or empty",t.languages),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(r,a)=>{var o;if(((o=n.bindI18n)==null?void 0:o.indexOf("languageChanging"))>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!a(r.isLanguageChangingTo,e))return!1}}),lc=e=>typeof e=="string",Jee=e=>typeof e=="object"&&e!==null,ete=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,tte={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},nte=e=>tte[e],rte=e=>e.replace(ete,nte);let hT={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:rte};const ate=(e={})=>{hT={...hT,...e}},ote=()=>hT;let g9;const ite=e=>{g9=e},ste=()=>g9,lte={type:"3rdParty",init(e){ate(e.options.react),ite(e)}},cte=l.createContext();class ute{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{var r;(r=this.usedNamespaces)[n]??(r[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const dte=(e,t)=>{const n=l.useRef();return l.useEffect(()=>{n.current=e},[e,t]),n.current},m9=(e,t,n,r)=>e.getFixedT(t,n,r),fte=(e,t,n,r)=>l.useCallback(m9(e,t,n,r),[e,t,n,r]),Nt=(e,t={})=>{var w,C,E,I;const{i18n:n}=t,{i18n:r,defaultNS:a}=l.useContext(cte)||{},o=n||r||ste();if(o&&!o.reportNamespaces&&(o.reportNamespaces=new ute),!o){mT("You will need to pass in an i18next instance by using initReactI18next");const T=(_,$)=>lc($)?$:Jee($)&&lc($.defaultValue)?$.defaultValue:Array.isArray(_)?_[_.length-1]:_,R=[T,{},!1];return R.t=T,R.i18n={},R.ready=!1,R}(w=o.options.react)!=null&&w.wait&&mT("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const i={...ote(),...o.options.react,...t},{useSuspense:s,keyPrefix:c}=i;let u=a||((C=o.options)==null?void 0:C.defaultNS);u=lc(u)?[u]:u||["translation"],(I=(E=o.reportNamespaces).addUsedNamespaces)==null||I.call(E,u);const d=(o.isInitialized||o.initializedStoreOnce)&&u.every(T=>Qee(T,o,i)),f=fte(o,t.lng||null,i.nsMode==="fallback"?u:u[0],c),p=()=>f,g=()=>m9(o,t.lng||null,i.nsMode==="fallback"?u:u[0],c),[h,b]=l.useState(p);let y=u.join();t.lng&&(y=`${t.lng}${y}`);const S=dte(y),v=l.useRef(!0);l.useEffect(()=>{const{bindI18n:T,bindI18nStore:R}=i;v.current=!0,!d&&!s&&(t.lng?o3(o,t.lng,u,()=>{v.current&&b(g)}):a3(o,u,()=>{v.current&&b(g)})),d&&S&&S!==y&&v.current&&b(g);const _=()=>{v.current&&b(g)};return T&&(o==null||o.on(T,_)),R&&(o==null||o.store.on(R,_)),()=>{v.current=!1,o&&(T==null||T.split(" ").forEach($=>o.off($,_))),R&&o&&R.split(" ").forEach($=>o.store.off($,_))}},[o,y]),l.useEffect(()=>{v.current&&d&&b(p)},[o,c,d]);const x=[h,o,d];if(x.t=h,x.i18n=o,x.ready=d,d||!d&&!s)return x;throw new Promise(T=>{t.lng?o3(o,t.lng,u,()=>T()):a3(o,u,()=>T())})};function vT(e){"@babel/helpers - typeof";return vT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vT(e)}function h9(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":vT(XMLHttpRequest))==="object"}function pte(e){return!!e&&typeof e.then=="function"}function gte(e){return pte(e)?e:Promise.resolve(e)}function mte(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var bT={exports:{}},Zm={exports:{}},i3;function hte(){return i3||(i3=1,function(e,t){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof xa<"u"&&xa,r=function(){function o(){this.fetch=!1,this.DOMException=n.DOMException}return o.prototype=n,new o}();(function(o){(function(i){var s=typeof o<"u"&&o||typeof self<"u"&&self||typeof s<"u"&&s,c={searchParams:"URLSearchParams"in s,iterable:"Symbol"in s&&"iterator"in Symbol,blob:"FileReader"in s&&"Blob"in s&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in s,arrayBuffer:"ArrayBuffer"in s};function u(O){return O&&DataView.prototype.isPrototypeOf(O)}if(c.arrayBuffer)var d=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],f=ArrayBuffer.isView||function(O){return O&&d.indexOf(Object.prototype.toString.call(O))>-1};function p(O){if(typeof O!="string"&&(O=String(O)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(O)||O==="")throw new TypeError('Invalid character in header field name: "'+O+'"');return O.toLowerCase()}function g(O){return typeof O!="string"&&(O=String(O)),O}function h(O){var N={next:function(){var k=O.shift();return{done:k===void 0,value:k}}};return c.iterable&&(N[Symbol.iterator]=function(){return N}),N}function b(O){this.map={},O instanceof b?O.forEach(function(N,k){this.append(k,N)},this):Array.isArray(O)?O.forEach(function(N){this.append(N[0],N[1])},this):O&&Object.getOwnPropertyNames(O).forEach(function(N){this.append(N,O[N])},this)}b.prototype.append=function(O,N){O=p(O),N=g(N);var k=this.map[O];this.map[O]=k?k+", "+N:N},b.prototype.delete=function(O){delete this.map[p(O)]},b.prototype.get=function(O){return O=p(O),this.has(O)?this.map[O]:null},b.prototype.has=function(O){return this.map.hasOwnProperty(p(O))},b.prototype.set=function(O,N){this.map[p(O)]=g(N)},b.prototype.forEach=function(O,N){for(var k in this.map)this.map.hasOwnProperty(k)&&O.call(N,this.map[k],k,this)},b.prototype.keys=function(){var O=[];return this.forEach(function(N,k){O.push(k)}),h(O)},b.prototype.values=function(){var O=[];return this.forEach(function(N){O.push(N)}),h(O)},b.prototype.entries=function(){var O=[];return this.forEach(function(N,k){O.push([k,N])}),h(O)},c.iterable&&(b.prototype[Symbol.iterator]=b.prototype.entries);function y(O){if(O.bodyUsed)return Promise.reject(new TypeError("Already read"));O.bodyUsed=!0}function S(O){return new Promise(function(N,k){O.onload=function(){N(O.result)},O.onerror=function(){k(O.error)}})}function v(O){var N=new FileReader,k=S(N);return N.readAsArrayBuffer(O),k}function x(O){var N=new FileReader,k=S(N);return N.readAsText(O),k}function w(O){for(var N=new Uint8Array(O),k=new Array(N.length),M=0;M-1?N:O}function R(O,N){if(!(this instanceof R))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');N=N||{};var k=N.body;if(O instanceof R){if(O.bodyUsed)throw new TypeError("Already read");this.url=O.url,this.credentials=O.credentials,N.headers||(this.headers=new b(O.headers)),this.method=O.method,this.mode=O.mode,this.signal=O.signal,!k&&O._bodyInit!=null&&(k=O._bodyInit,O.bodyUsed=!0)}else this.url=String(O);if(this.credentials=N.credentials||this.credentials||"same-origin",(N.headers||!this.headers)&&(this.headers=new b(N.headers)),this.method=T(N.method||this.method||"GET"),this.mode=N.mode||this.mode||null,this.signal=N.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&k)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(k),(this.method==="GET"||this.method==="HEAD")&&(N.cache==="no-store"||N.cache==="no-cache")){var M=/([?&])_=[^&]*/;if(M.test(this.url))this.url=this.url.replace(M,"$1_="+new Date().getTime());else{var L=/\?/;this.url+=(L.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}R.prototype.clone=function(){return new R(this,{body:this._bodyInit})};function _(O){var N=new FormData;return O.trim().split("&").forEach(function(k){if(k){var M=k.split("="),L=M.shift().replace(/\+/g," "),F=M.join("=").replace(/\+/g," ");N.append(decodeURIComponent(L),decodeURIComponent(F))}}),N}function $(O){var N=new b,k=O.replace(/\r?\n[\t ]+/g," ");return k.split("\r").map(function(M){return M.indexOf(` +`)===0?M.substr(1,M.length):M}).forEach(function(M){var L=M.split(":"),F=L.shift().trim();if(F){var j=L.join(":").trim();N.append(F,j)}}),N}E.call(R.prototype);function P(O,N){if(!(this instanceof P))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');N||(N={}),this.type="default",this.status=N.status===void 0?200:N.status,this.ok=this.status>=200&&this.status<300,this.statusText=N.statusText===void 0?"":""+N.statusText,this.headers=new b(N.headers),this.url=N.url||"",this._initBody(O)}E.call(P.prototype),P.prototype.clone=function(){return new P(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new b(this.headers),url:this.url})},P.error=function(){var O=new P(null,{status:0,statusText:""});return O.type="error",O};var D=[301,302,303,307,308];P.redirect=function(O,N){if(D.indexOf(N)===-1)throw new RangeError("Invalid status code");return new P(null,{status:N,headers:{location:O}})},i.DOMException=s.DOMException;try{new i.DOMException}catch{i.DOMException=function(N,k){this.message=N,this.name=k;var M=Error(N);this.stack=M.stack},i.DOMException.prototype=Object.create(Error.prototype),i.DOMException.prototype.constructor=i.DOMException}function A(O,N){return new Promise(function(k,M){var L=new R(O,N);if(L.signal&&L.signal.aborted)return M(new i.DOMException("Aborted","AbortError"));var F=new XMLHttpRequest;function j(){F.abort()}F.onload=function(){var z={status:F.status,statusText:F.statusText,headers:$(F.getAllResponseHeaders()||"")};z.url="responseURL"in F?F.responseURL:z.headers.get("X-Request-URL");var H="response"in F?F.response:F.responseText;setTimeout(function(){k(new P(H,z))},0)},F.onerror=function(){setTimeout(function(){M(new TypeError("Network request failed"))},0)},F.ontimeout=function(){setTimeout(function(){M(new TypeError("Network request failed"))},0)},F.onabort=function(){setTimeout(function(){M(new i.DOMException("Aborted","AbortError"))},0)};function B(z){try{return z===""&&s.location.href?s.location.href:z}catch{return z}}F.open(L.method,B(L.url),!0),L.credentials==="include"?F.withCredentials=!0:L.credentials==="omit"&&(F.withCredentials=!1),"responseType"in F&&(c.blob?F.responseType="blob":c.arrayBuffer&&L.headers.get("Content-Type")&&L.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(F.responseType="arraybuffer")),N&&typeof N.headers=="object"&&!(N.headers instanceof b)?Object.getOwnPropertyNames(N.headers).forEach(function(z){F.setRequestHeader(z,g(N.headers[z]))}):L.headers.forEach(function(z,H){F.setRequestHeader(H,z)}),L.signal&&(L.signal.addEventListener("abort",j),F.onreadystatechange=function(){F.readyState===4&&L.signal.removeEventListener("abort",j)}),F.send(typeof L._bodyInit>"u"?null:L._bodyInit)})}return A.polyfill=!0,s.fetch||(s.fetch=A,s.Headers=b,s.Request=R,s.Response=P),i.Headers=b,i.Request=R,i.Response=P,i.fetch=A,i})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var a=n.fetch?n:r;t=a.fetch,t.default=a.fetch,t.fetch=a.fetch,t.Headers=a.Headers,t.Request=a.Request,t.Response=a.Response,e.exports=t}(Zm,Zm.exports)),Zm.exports}(function(e,t){var n;if(typeof fetch=="function"&&(typeof xa<"u"&&xa.fetch?n=xa.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof mte<"u"&&typeof window>"u"){var r=n||hte();r.default&&(r=r.default),t.default=r,e.exports=t.default}})(bT,bT.exports);var v9=bT.exports;const b9=Pa(v9),s3=M_({__proto__:null,default:b9},[v9]);function l3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function c3(e){for(var t=1;t"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(o["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),r&&(o["Content-Type"]="application/json");var i=typeof t.requestOptions=="function"?t.requestOptions(r):t.requestOptions,s=c3({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:o},d3?{}:i),c=typeof t.alternateFetch=="function"&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{u3(n,s,a,c)}catch(u){if(!i||Object.keys(i).length===0||!u.message||u.message.indexOf("not implemented")<0)return a(u);try{Object.keys(i).forEach(function(d){delete s[d]}),u3(n,s,a,c),d3=!0}catch(d){a(d)}}},xte=function(t,n,r,a){r&&Sc(r)==="object"&&(r=yT("",r).slice(1)),t.queryStringParams&&(n=yT(n,t.queryStringParams));try{var o;tg?o=new tg:o=new nb("MSXML2.XMLHTTP.3.0"),o.open(r?"POST":"GET",n,1),t.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!t.withCredentials,r&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var i=t.customHeaders;if(i=typeof i=="function"?i():i,i)for(var s in i)o.setRequestHeader(s,i[s]);o.onreadystatechange=function(){o.readyState>3&&a(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(r)}catch(c){console&&console.log(c)}},wte=function(t,n,r,a){if(typeof r=="function"&&(a=r,r=void 0),a=a||function(){},ms&&n.indexOf("file:")!==0)return Ste(t,n,r,a);if(h9()||typeof ActiveXObject=="function")return xte(t,n,r,a);a(new Error("No fetch and no xhr implementation found!"))};function pd(e){"@babel/helpers - typeof";return pd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pd(e)}function f3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function IS(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Cte(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return Ite(e,[{key:"init",value:function(n){var r=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=n,this.options=IS(IS(IS({},Rte()),this.options||{}),a),this.allOptions=o,this.services&&this.options.reloadInterval){var i=setInterval(function(){return r.reload()},this.options.reloadInterval);pd(i)==="object"&&typeof i.unref=="function"&&i.unref()}}},{key:"readMulti",value:function(n,r,a){this._readAny(n,n,r,r,a)}},{key:"read",value:function(n,r,a){this._readAny([n],n,[r],r,a)}},{key:"_readAny",value:function(n,r,a,o,i){var s=this,c=this.options.loadPath;typeof this.options.loadPath=="function"&&(c=this.options.loadPath(n,a)),c=gte(c),c.then(function(u){if(!u)return i(null,{});var d=s.services.interpolator.interpolate(u,{lng:n.join("+"),ns:a.join("+")});s.loadUrl(d,i,r,o)})}},{key:"loadUrl",value:function(n,r,a,o){var i=this,s=typeof a=="string"?[a]:a,c=typeof o=="string"?[o]:o,u=this.options.parseLoadPayload(s,c);this.options.request(this.options,n,u,function(d,f){if(f&&(f.status>=500&&f.status<600||!f.status))return r("failed loading "+n+"; status code: "+f.status,!0);if(f&&f.status>=400&&f.status<500)return r("failed loading "+n+"; status code: "+f.status,!1);if(!f&&d&&d.message&&d.message.toLowerCase().indexOf("failed")>-1&&(d.message.indexOf("fetch")>-1||d.message.toLowerCase().indexOf("network")>-1))return r("failed loading "+n+": "+d.message,!0);if(d)return r(d,!1);var p,g;try{typeof f.data=="string"?p=i.options.parse(f.data,a,o):p=f.data}catch{g="failed parsing "+n+" to json"}if(g)return r(g,!1);r(null,p)})}},{key:"create",value:function(n,r,a,o,i){var s=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var c=this.options.parsePayload(r,a,o),u=0,d=[],f=[];n.forEach(function(p){var g=s.options.addPath;typeof s.options.addPath=="function"&&(g=s.options.addPath(p,r));var h=s.services.interpolator.interpolate(g,{lng:p,ns:r});s.options.request(s.options,h,c,function(b,y){u+=1,d.push(b),f.push(y),u===n.length&&typeof i=="function"&&i(d,f)})})}}},{key:"reload",value:function(){var n=this,r=this.services,a=r.backendConnector,o=r.languageUtils,i=r.logger,s=a.language;if(!(s&&s.toLowerCase()==="cimode")){var c=[],u=function(f){var p=o.toResolveHierarchy(f);p.forEach(function(g){c.indexOf(g)<0&&c.push(g)})};u(s),this.allOptions.preload&&this.allOptions.preload.forEach(function(d){return u(d)}),c.forEach(function(d){n.allOptions.ns.forEach(function(f){a.read(d,f,"read",null,null,function(p,g){p&&i.warn("loading namespace ".concat(f," for language ").concat(d," failed"),p),!p&&g&&i.log("loaded namespace ".concat(f," for language ").concat(d),g),a.loaded("".concat(d,"|").concat(f),p,g)})})})}}}])}();x9.type="backend";const{slice:_te,forEach:$te}=[];function Ote(e){return $te.call(_te.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}const p3=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Nte=(e,t,n)=>{const r=n||{};r.path=r.path||"/";const a=encodeURIComponent(t);let o=`${e}=${a}`;if(r.maxAge>0){const i=r.maxAge-0;if(Number.isNaN(i))throw new Error("maxAge should be a Number");o+=`; Max-Age=${Math.floor(i)}`}if(r.domain){if(!p3.test(r.domain))throw new TypeError("option domain is invalid");o+=`; Domain=${r.domain}`}if(r.path){if(!p3.test(r.path))throw new TypeError("option path is invalid");o+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");o+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return o},g3={create(e,t,n,r){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(a.expires=new Date,a.expires.setTime(a.expires.getTime()+n*60*1e3)),r&&(a.domain=r),document.cookie=Nte(e,encodeURIComponent(t),a)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r-1&&(a=window.location.hash.substring(window.location.hash.indexOf("?")));const i=a.substring(1).split("&");for(let s=0;s0&&i[s].substring(0,c)===t&&(n=i[s].substring(c+1))}}return n}};let _f=null;const m3=()=>{if(_f!==null)return _f;try{_f=window!=="undefined"&&window.localStorage!==null;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{_f=!1}return _f};var Mte={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&m3())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&m3()&&window.localStorage.setItem(n,e)}};let $f=null;const h3=()=>{if($f!==null)return $f;try{$f=window!=="undefined"&&window.sessionStorage!==null;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{$f=!1}return $f};var Pte={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&h3())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&h3()&&window.sessionStorage.setItem(n,e)}},Dte={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:a}=navigator;if(n)for(let o=0;o0?t:void 0}},Lte={name:"htmlTag",lookup(e){let{htmlTag:t}=e,n;const r=t||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},Fte={name:"path",lookup(e){var a;let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?(a=n[typeof t=="number"?t:0])==null?void 0:a.replace("/",""):void 0}},jte={name:"subdomain",lookup(e){var a,o;let{lookupFromSubdomainIndex:t}=e;const n=typeof t=="number"?t+1:1,r=typeof window<"u"&&((o=(a=window.location)==null?void 0:a.hostname)==null?void 0:o.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(r)return r[n]}};function Bte(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e}}class w9{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t||{languageUtils:{}},this.options=Ote(n,this.options||{},Bte()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=a=>a.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(kte),this.addDetector(Ate),this.addDetector(Mte),this.addDetector(Pte),this.addDetector(Dte),this.addDetector(Lte),this.addDetector(Fte),this.addDetector(jte)}addDetector(t){return this.detectors[t.name]=t,this}detect(t){t||(t=this.options.order);let n=[];return t.forEach(r=>{if(this.detectors[r]){let a=this.detectors[r].lookup(this.options);a&&typeof a=="string"&&(a=[a]),a&&(n=n.concat(a))}}),n=n.map(r=>this.options.convertDetectedLanguage(r)),this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(t,n){n||(n=this.options.caches),n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(t,this.options)}))}}w9.type="languageDetector";kr.use(x9).use(w9).use(lte).init({supportedLngs:["en","de","fr","es"],fallbackLng:"en",ns:["teddycloud"],defaultNS:"teddycloud",debug:!1,backend:{queryStringParams:{v:"2023072701"},loadPath:"/web/translations/{{lng}}.json"},interpolation:{escapeValue:!1}});var C9={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",i=0;i1&&arguments[1]!==void 0?arguments[1]:{},n=[];return se.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(vr(r)):gp.isFragment(r)&&r.props?n=n.concat(vr(r.props.children,t)):n.push(r))}),n}var yT={},Vte=function(t){};function Wte(e,t){}function Gte(e,t){}function qte(){yT={}}function T9(e,t,n){!t&&!yT[n]&&(e(!1,n),yT[n]=!0)}function vn(e,t){T9(Wte,e,t)}function R9(e,t){T9(Gte,e,t)}vn.preMessage=Vte;vn.resetWarned=qte;vn.noteOnce=R9;function ht(e){"@babel/helpers - typeof";return ht=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ht(e)}function Kte(e,t){if(ht(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ht(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _9(e){var t=Kte(e,"string");return ht(t)=="symbol"?t:t+""}function W(e,t,n){return(t=_9(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Z(e){for(var t=1;t=19;var xT=l.createContext(null);function Xte(e){var t=e.children,n=e.onBatchResize,r=l.useRef(0),a=l.useRef([]),o=l.useContext(xT),i=l.useCallback(function(s,c,u){r.current+=1;var d=r.current;a.current.push({size:s,element:c,data:u}),Promise.resolve().then(function(){d===r.current&&(n==null||n(a.current),a.current=[])}),o==null||o(s,c,u)},[n,o]);return l.createElement(xT.Provider,{value:i},t)}var O9=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(a,o){return a[0]===n?(r=o,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),a=this.__entries__[r];return a&&a[1]},t.prototype.set=function(n,r){var a=e(this.__entries__,n);~a?this.__entries__[a][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,a=e(r,n);~a&&r.splice(a,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var a=0,o=this.__entries__;a0},e.prototype.connect_=function(){!wT||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),nne?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!wT||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,a=tne.some(function(o){return!!~r.indexOf(o)});a&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),N9=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof gd(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new dne(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof gd(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new fne(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),A9=typeof WeakMap<"u"?new WeakMap:new O9,M9=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=rne.getInstance(),r=new pne(t,n,this);A9.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){M9.prototype[e]=function(){var t;return(t=A9.get(this))[e].apply(t,arguments)}});var gne=function(){return typeof nb.ResizeObserver<"u"?nb.ResizeObserver:M9}(),Zs=new Map;function mne(e){e.forEach(function(t){var n,r=t.target;(n=Zs.get(r))===null||n===void 0||n.forEach(function(a){return a(r)})})}var P9=new gne(mne);function hne(e,t){Zs.has(e)||(Zs.set(e,new Set),P9.observe(e)),Zs.get(e).add(t)}function vne(e,t){Zs.has(e)&&(Zs.get(e).delete(t),Zs.get(e).size||(P9.unobserve(e),Zs.delete(e)))}function Xn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y3(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&arguments[1]!==void 0?arguments[1]:1;S3+=1;var r=S3;function a(o){if(o===0)B9(r),t();else{var i=F9(function(){a(o-1)});N$.set(r,i)}}return a(n),r};Ut.cancel=function(e){var t=N$.get(e);return B9(e),j9(t)};function z9(e){if(Array.isArray(e))return e}function Ine(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,i,s=[],c=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw a}}return s}}function H9(){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 re(e,t){return z9(e)||Ine(e,t)||O$(e,t)||H9()}function rg(e){for(var t=0,n,r=0,a=e.length;a>=4;++r,a-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function Xr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function ET(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var x3="data-rc-order",w3="data-rc-priority",Tne="rc-util-key",IT=new Map;function U9(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Tne}function v0(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Rne(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function k$(e){return Array.from((IT.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function V9(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Xr())return null;var n=t.csp,r=t.prepend,a=t.priority,o=a===void 0?0:a,i=Rne(r),s=i==="prependQueue",c=document.createElement("style");c.setAttribute(x3,i),s&&o&&c.setAttribute(w3,"".concat(o)),n!=null&&n.nonce&&(c.nonce=n==null?void 0:n.nonce),c.innerHTML=e;var u=v0(t),d=u.firstChild;if(r){if(s){var f=(t.styles||k$(u)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(x3)))return!1;var g=Number(p.getAttribute(w3)||0);return o>=g});if(f.length)return u.insertBefore(c,f[f.length-1].nextSibling),c}u.insertBefore(c,d)}else u.appendChild(c);return c}function W9(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=v0(t);return(t.styles||k$(n)).find(function(r){return r.getAttribute(U9(t))===e})}function ag(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=W9(e,t);if(n){var r=v0(t);r.removeChild(n)}}function _ne(e,t){var n=IT.get(e);if(!n||!ET(document,n)){var r=V9("",t),a=r.parentNode;IT.set(e,a),e.removeChild(r)}}function ms(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=v0(n),a=k$(r),o=Z(Z({},n),{},{styles:a});_ne(r,o);var i=W9(t,o);if(i){var s,c;if((s=o.csp)!==null&&s!==void 0&&s.nonce&&i.nonce!==((c=o.csp)===null||c===void 0?void 0:c.nonce)){var u;i.nonce=(u=o.csp)===null||u===void 0?void 0:u.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var d=V9(e,o);return d.setAttribute(U9(o),t),d}function $ne(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function xt(e,t){if(e==null)return{};var n,r,a=$ne(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function a(o,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=r.has(o);if(vn(!c,"Warning: There may be circular references"),c)return!1;if(o===i)return!0;if(n&&s>1)return!1;r.add(o);var u=s+1;if(Array.isArray(o)){if(!Array.isArray(i)||o.length!==i.length)return!1;for(var d=0;d1&&arguments[1]!==void 0?arguments[1]:!1,i={map:this.cache};return n.forEach(function(s){if(!i)i=void 0;else{var c;i=(c=i)===null||c===void 0||(c=c.map)===null||c===void 0?void 0:c.get(s)}}),(r=i)!==null&&r!==void 0&&r.value&&o&&(i.value[1]=this.cacheCallTimes++),(a=i)===null||a===void 0?void 0:a.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var a=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(u,d){var f=re(u,2),p=f[1];return a.internalGet(d)[1]0,void 0),C3+=1}return Zn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,a){return a(n,r)},void 0)}}]),e}(),IS=new A$;function og(e){var t=Array.isArray(e)?e:[e];return IS.has(t)||IS.set(t,new G9(t)),IS.get(t)}var Mne=new WeakMap,TS={};function Pne(e,t){for(var n=Mne,r=0;r1&&arguments[1]!==void 0?arguments[1]:!1,n=E3.get(e)||"";return n||(Object.keys(e).forEach(function(r){var a=e[r];n+=r,a instanceof G9?n+=a.id:a&&ht(a)==="object"?n+=hp(a,t):n+=a}),t&&(n=rg(n)),E3.set(e,n)),n}function I3(e,t){return rg("".concat(t,"_").concat(hp(e,!0)))}var RT=Xr();function K(e){return typeof e=="number"?"".concat(e,"px"):e}function ab(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(a)return e;var o=Z(Z({},r),{},W(W({},md,t),ci,n)),i=Object.keys(o).map(function(s){var c=o[s];return c?"".concat(s,'="').concat(c,'"'):null}).filter(function(s){return s}).join(" ");return"")}var rv=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).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()},Dne=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(a){var o=re(a,2),i=o[0],s=o[1];return"".concat(i,":").concat(s,";")}).join(""),"}"):""},q9=function(t,n,r){var a={},o={};return Object.entries(t).forEach(function(i){var s,c,u=re(i,2),d=u[0],f=u[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[d])o[d]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(c=r.ignore)!==null&&c!==void 0&&c[d])){var p,g=rv(d,r==null?void 0:r.prefix);a[g]=typeof f=="number"&&!(r!=null&&(p=r.unitless)!==null&&p!==void 0&&p[d])?"".concat(f,"px"):String(f),o[d]="var(".concat(g,")")}}),[o,Dne(a,n,{scope:r==null?void 0:r.scope})]},T3=Xr()?l.useLayoutEffect:l.useEffect,Xt=function(t,n){var r=l.useRef(!0);T3(function(){return t(r.current)},n),T3(function(){return r.current=!1,function(){r.current=!0}},[])},cc=function(t,n){Xt(function(r){if(!r)return t()},n)},Lne=Z({},Lg),R3=Lne.useInsertionEffect,Fne=function(t,n,r){l.useMemo(t,r),Xt(function(){return n(!0)},r)},jne=R3?function(e,t,n){return R3(function(){return e(),t()},n)}:Fne,Bne=Z({},Lg),zne=Bne.useInsertionEffect,Hne=function(t){var n=[],r=!1;function a(o){r||n.push(o)}return l.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(o){return o()})}},t),a},Une=function(){return function(t){t()}},Vne=typeof zne<"u"?Hne:Une;function M$(e,t,n,r,a){var o=l.useContext(b0),i=o.cache,s=[e].concat(De(t)),c=TT(s),u=Vne([c]),d=function(h){i.opUpdate(c,function(b){var y=b||[void 0,void 0],S=re(y,2),v=S[0],x=v===void 0?0:v,C=S[1],w=C,E=w||n(),I=[x,E];return h?h(I):I})};l.useMemo(function(){d()},[c]);var f=i.opGet(c),p=f[1];return jne(function(){a==null||a(p)},function(g){return d(function(h){var b=re(h,2),y=b[0],S=b[1];return g&&y===0&&(a==null||a(p)),[y+1,S]}),function(){i.opUpdate(c,function(h){var b=h||[],y=re(b,2),S=y[0],v=S===void 0?0:S,x=y[1],C=v-1;return C===0?(u(function(){(g||!i.opGet(c))&&(r==null||r(x,!1))}),null):[v-1,x]})}},[c]),p}var Wne={},Gne="css",ql=new Map;function qne(e){ql.set(e,(ql.get(e)||0)+1)}function Kne(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(md,'="').concat(e,'"]'));n.forEach(function(r){if(r[Qs]===t){var a;(a=r.parentNode)===null||a===void 0||a.removeChild(r)}})}}var Yne=0;function Xne(e,t){ql.set(e,(ql.get(e)||0)-1);var n=Array.from(ql.keys()),r=n.filter(function(a){var o=ql.get(a)||0;return o<=0});n.length-r.length>Yne&&r.forEach(function(a){Kne(a,t),ql.delete(a)})}var K9=function(t,n,r,a){var o=r.getDerivativeToken(t),i=Z(Z({},o),n);return a&&(i=a(i)),i},Y9="token";function Zne(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=l.useContext(b0),a=r.cache.instanceId,o=r.container,i=n.salt,s=i===void 0?"":i,c=n.override,u=c===void 0?Wne:c,d=n.formatToken,f=n.getComputedToken,p=n.cssVar,g=Pne(function(){return Object.assign.apply(Object,[{}].concat(De(t)))},t),h=hp(g),b=hp(u),y=p?hp(p):"",S=M$(Y9,[s,e.id,h,b,y],function(){var v,x=f?f(g,u,e):K9(g,u,e,d),C=Z({},x),w="";if(p){var E=q9(x,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),I=re(E,2);x=I[0],w=I[1]}var T=I3(x,s);x._tokenKey=T,C._tokenKey=I3(C,s);var R=(v=p==null?void 0:p.key)!==null&&v!==void 0?v:T;x._themeKey=R,qne(R);var _="".concat(Gne,"-").concat(rg(T));return x._hashId=_,[x,_,C,w,(p==null?void 0:p.key)||""]},function(v){Xne(v[0]._themeKey,a)},function(v){var x=re(v,4),C=x[0],w=x[3];if(p&&w){var E=ms(w,rg("css-variables-".concat(C._themeKey)),{mark:ci,prepend:"queue",attachTo:o,priority:-999});E[Qs]=a,E.setAttribute(md,C._themeKey)}});return S}var Qne=function(t,n,r){var a=re(t,5),o=a[2],i=a[3],s=a[4],c=r||{},u=c.plain;if(!i)return null;var d=o._tokenKey,f=-999,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},g=ab(i,s,d,p,u);return[f,d,g]},Jne={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},X9="comm",Z9="rule",Q9="decl",ere="@import",tre="@keyframes",nre="@layer",J9=Math.abs,P$=String.fromCharCode;function eH(e){return e.trim()}function av(e,t,n){return e.replace(t,n)}function rre(e,t,n){return e.indexOf(t,n)}function ig(e,t){return e.charCodeAt(t)|0}function hd(e,t,n){return e.slice(t,n)}function $i(e){return e.length}function are(e){return e.length}function Xm(e,t){return t.push(e),e}var y0=1,vd=1,tH=0,Ho=0,Tr=0,Bd="";function D$(e,t,n,r,a,o,i,s){return{value:e,root:t,parent:n,type:r,props:a,children:o,line:y0,column:vd,length:i,return:"",siblings:s}}function ore(){return Tr}function ire(){return Tr=Ho>0?ig(Bd,--Ho):0,vd--,Tr===10&&(vd=1,y0--),Tr}function ui(){return Tr=Ho2||sg(Tr)>3?"":" "}function ure(e,t){for(;--t&&ui()&&!(Tr<48||Tr>102||Tr>57&&Tr<65||Tr>70&&Tr<97););return S0(e,ov()+(t<6&&Js()==32&&ui()==32))}function _T(e){for(;ui();)switch(Tr){case e:return Ho;case 34:case 39:e!==34&&e!==39&&_T(Tr);break;case 40:e===41&&_T(e);break;case 92:ui();break}return Ho}function dre(e,t){for(;ui()&&e+Tr!==57;)if(e+Tr===84&&Js()===47)break;return"/*"+S0(t,Ho-1)+"*"+P$(e===47?e:ui())}function fre(e){for(;!sg(Js());)ui();return S0(e,Ho)}function pre(e){return lre(iv("",null,null,null,[""],e=sre(e),0,[0],e))}function iv(e,t,n,r,a,o,i,s,c){for(var u=0,d=0,f=i,p=0,g=0,h=0,b=1,y=1,S=1,v=0,x="",C=a,w=o,E=r,I=x;y;)switch(h=v,v=ui()){case 40:if(h!=108&&ig(I,f-1)==58){rre(I+=av(RS(v),"&","&\f"),"&\f",J9(u?s[u-1]:0))!=-1&&(S=-1);break}case 34:case 39:case 91:I+=RS(v);break;case 9:case 10:case 13:case 32:I+=cre(h);break;case 92:I+=ure(ov()-1,7);continue;case 47:switch(Js()){case 42:case 47:Xm(gre(dre(ui(),ov()),t,n,c),c),(sg(h||1)==5||sg(Js()||1)==5)&&$i(I)&&hd(I,-1,void 0)!==" "&&(I+=" ");break;default:I+="/"}break;case 123*b:s[u++]=$i(I)*S;case 125*b:case 59:case 0:switch(v){case 0:case 125:y=0;case 59+d:S==-1&&(I=av(I,/\f/g,"")),g>0&&($i(I)-f||b===0&&h===47)&&Xm(g>32?$3(I+";",r,n,f-1,c):$3(av(I," ","")+";",r,n,f-2,c),c);break;case 59:I+=";";default:if(Xm(E=_3(I,t,n,u,d,a,s,x,C=[],w=[],f,o),o),v===123)if(d===0)iv(I,t,E,E,C,o,f,s,w);else switch(p===99&&ig(I,3)===110?100:p){case 100:case 108:case 109:case 115:iv(e,E,E,r&&Xm(_3(e,E,E,0,0,a,s,x,a,C=[],f,w),w),a,w,f,s,r?C:w);break;default:iv(I,E,E,E,[""],w,0,s,w)}}u=d=g=0,b=S=1,x=I="",f=i;break;case 58:f=1+$i(I),g=h;default:if(b<1){if(v==123)--b;else if(v==125&&b++==0&&ire()==125)continue}switch(I+=P$(v),v*b){case 38:S=d>0?1:(I+="\f",-1);break;case 44:s[u++]=($i(I)-1)*S,S=1;break;case 64:Js()===45&&(I+=RS(ui())),p=Js(),d=f=$i(x=I+=fre(ov())),v++;break;case 45:h===45&&$i(I)==2&&(b=0)}}return o}function _3(e,t,n,r,a,o,i,s,c,u,d,f){for(var p=a-1,g=a===0?o:[""],h=are(g),b=0,y=0,S=0;b0?g[v]+" "+x:av(x,/&\f/g,g[v])))&&(c[S++]=C);return D$(e,t,n,a===0?Z9:s,c,u,d,f)}function gre(e,t,n,r){return D$(e,t,n,X9,P$(ore()),hd(e,2,-2),0,r)}function $3(e,t,n,r,a){return D$(e,t,n,Q9,hd(e,0,r),hd(e,r+1,-1),r,a)}function $T(e,t){for(var n="",r=0;r1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},a=r.root,o=r.injectHash,i=r.parentSelectors,s=n.hashId,c=n.layer;n.path;var u=n.hashPriority,d=n.transformers,f=d===void 0?[]:d;n.linters;var p="",g={};function h(S){var v=S.getName(s);if(!g[v]){var x=e(S.style,n,{root:!1,parentSelectors:i}),C=re(x,1),w=C[0];g[v]="@keyframes ".concat(S.getName(s)).concat(w)}}function b(S){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return S.forEach(function(x){Array.isArray(x)?b(x,v):x&&v.push(x)}),v}var y=b(Array.isArray(t)?t:[t]);return y.forEach(function(S){var v=typeof S=="string"&&!a?{}:S;if(typeof v=="string")p+="".concat(v,` -`);else if(v._keyframe)h(v);else{var x=f.reduce(function(C,w){var E;return(w==null||(E=w.visit)===null||E===void 0?void 0:E.call(w,C))||C},v);Object.keys(x).forEach(function(C){var w=x[C];if(ht(w)==="object"&&w&&(C!=="animationName"||!w._keyframe)&&!Sre(w)){var E=!1,I=C.trim(),T=!1;(a||o)&&s?I.startsWith("@")?E=!0:I==="&"?I=N3("",s,u):I=N3(C,s,u):a&&!s&&(I==="&"||I==="")&&(I="",T=!0);var R=e(w,n,{root:T,injectHash:E,parentSelectors:[].concat(De(i),[I])}),_=re(R,2),$=_[0],P=_[1];g=Z(Z({},g),P),p+="".concat(I).concat($)}else{let O=function(N,k){var M=N.replace(/[A-Z]/g,function(F){return"-".concat(F.toLowerCase())}),L=k;!Jne[N]&&typeof L=="number"&&L!==0&&(L="".concat(L,"px")),N==="animationName"&&k!==null&&k!==void 0&&k._keyframe&&(h(k),L=k.getName(s)),p+="".concat(M,":").concat(L,";")};var D,A=(D=w==null?void 0:w.value)!==null&&D!==void 0?D:w;ht(w)==="object"&&w!==null&&w!==void 0&&w[aH]&&Array.isArray(A)?A.forEach(function(N){O(C,N)}):O(C,A)}})}}),a?c&&(p="@layer ".concat(c.name," {").concat(p,"}"),c.dependencies&&(g["@layer ".concat(c.name)]=c.dependencies.map(function(S){return"@layer ".concat(S,", ").concat(c.name,";")}).join(` -`))):p="{".concat(p,"}"),[p,g]};function oH(e,t){return rg("".concat(e.join("%")).concat(t))}function wre(){return null}var iH="style";function OT(e,t){var n=e.token,r=e.path,a=e.hashId,o=e.layer,i=e.nonce,s=e.clientOnly,c=e.order,u=c===void 0?0:c,d=l.useContext(b0),f=d.autoClear;d.mock;var p=d.defaultCache,g=d.hashPriority,h=d.container,b=d.ssrInline,y=d.transformers,S=d.linters,v=d.cache,x=d.layer,C=n._tokenKey,w=[C];x&&w.push("layer"),w.push.apply(w,De(r));var E=RT,I=M$(iH,w,function(){var P=w.join("|");if(vre(P)){var D=bre(P),A=re(D,2),O=A[0],N=A[1];if(O)return[O,C,N,{},s,u]}var k=t(),M=xre(k,{hashId:a,hashPriority:g,layer:x?o:void 0,path:r.join("-"),transformers:y,linters:S}),L=re(M,2),F=L[0],j=L[1],B=sv(F),z=oH(w,B);return[B,C,z,j,s,u]},function(P,D){var A=re(P,3),O=A[2];(D||f)&&RT&&ag(O,{mark:ci})},function(P){var D=re(P,4),A=D[0];D[1];var O=D[2],N=D[3];if(E&&A!==nH){var k={mark:ci,prepend:x?!1:"queue",attachTo:h,priority:u},M=typeof i=="function"?i():i;M&&(k.csp={nonce:M});var L=[],F=[];Object.keys(N).forEach(function(B){B.startsWith("@layer")?L.push(B):F.push(B)}),L.forEach(function(B){ms(sv(N[B]),"_layer-".concat(B),Z(Z({},k),{},{prepend:!0}))});var j=ms(A,O,k);j[Qs]=v.instanceId,j.setAttribute(md,C),F.forEach(function(B){ms(sv(N[B]),"_effect-".concat(B),k)})}}),T=re(I,3),R=T[0],_=T[1],$=T[2];return function(P){var D;return!b||E||!p?D=l.createElement(wre,null):D=l.createElement("style",pe({},W(W({},md,_),ci,$),{dangerouslySetInnerHTML:{__html:R}})),l.createElement(l.Fragment,null,D,P)}}var Cre=function(t,n,r){var a=re(t,6),o=a[0],i=a[1],s=a[2],c=a[3],u=a[4],d=a[5],f=r||{},p=f.plain;if(u)return null;var g=o,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return g=ab(o,i,s,h,p),c&&Object.keys(c).forEach(function(b){if(!n[b]){n[b]=!0;var y=sv(c[b]),S=ab(y,i,"_effect-".concat(b),h,p);b.startsWith("@layer")?g=S+g:g+=S}}),[d,s,g]},sH="cssVar",Ere=function(t,n){var r=t.key,a=t.prefix,o=t.unitless,i=t.ignore,s=t.token,c=t.scope,u=c===void 0?"":c,d=l.useContext(b0),f=d.cache.instanceId,p=d.container,g=s._tokenKey,h=[].concat(De(t.path),[r,u,g]),b=M$(sH,h,function(){var y=n(),S=q9(y,r,{prefix:a,unitless:o,ignore:i,scope:u}),v=re(S,2),x=v[0],C=v[1],w=oH(h,C);return[x,C,w,r]},function(y){var S=re(y,3),v=S[2];RT&&ag(v,{mark:ci})},function(y){var S=re(y,3),v=S[1],x=S[2];if(v){var C=ms(v,x,{mark:ci,prepend:"queue",attachTo:p,priority:-999});C[Qs]=f,C.setAttribute(md,r)}});return b},Ire=function(t,n,r){var a=re(t,4),o=a[1],i=a[2],s=a[3],c=r||{},u=c.plain;if(!o)return null;var d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},p=ab(o,s,i,f,u);return[d,i,p]};W(W(W({},iH,Cre),Y9,Qne),sH,Ire);var un=function(){function e(t,n){Xn(this,e),W(this,"name",void 0),W(this,"style",void 0),W(this,"_keyframe",!0),this.name=t,this.style=n}return Zn(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function nu(e){return e.notSplit=!0,e}nu(["borderTop","borderBottom"]),nu(["borderTop"]),nu(["borderBottom"]),nu(["borderLeft","borderRight"]),nu(["borderLeft"]),nu(["borderRight"]);var L$=l.createContext({});function lH(e){return z9(e)||L9(e)||O$(e)||H9()}function fo(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!fo(e,t.slice(0,-1))?e:cH(e,t,n,r)}function Tre(e){return ht(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function k3(e){return Array.isArray(e)?[]:{}}var Rre=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Lu(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=_re,e},uH=l.createContext(void 0);var dH={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"},Ore={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},Nre=Z(Z({},Ore),{},{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 fH={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},ob={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"]},Nre),timePickerLocale:Object.assign({},fH)},ro="${label} is not a valid ${type}",Uo={locale:"en",Pagination:dH,DatePicker:ob,TimePicker:fH,Calendar:ob,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:ro,method:ro,array:ro,object:ro,number:ro,date:ro,boolean:ro,integer:ro,float:ro,regexp:ro,email:ro,url:ro,hex:ro},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",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let lv=Object.assign({},Uo.Modal),cv=[];const A3=()=>cv.reduce((e,t)=>Object.assign(Object.assign({},e),t),Uo.Modal);function kre(e){if(e){const t=Object.assign({},e);return cv.push(t),lv=A3(),()=>{cv=cv.filter(n=>n!==t),lv=A3()}}lv=Object.assign({},Uo.Modal)}function pH(){return lv}const F$=l.createContext(void 0),qi=(e,t)=>{const n=l.useContext(F$),r=l.useMemo(()=>{var o;const i=t||Uo[e],s=(o=n==null?void 0:n[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof i=="function"?i():i),s||{})},[e,t,n]),a=l.useMemo(()=>{const o=n==null?void 0:n.locale;return n!=null&&n.exist&&!o?Uo.locale:o},[n]);return[r,a]},Are="internalMark",Mre=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;l.useEffect(()=>kre(t==null?void 0:t.Modal),[t]);const a=l.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return l.createElement(F$.Provider,{value:a},n)};function la(e,t){Pre(e)&&(e="100%");var n=Dre(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Zm(e){return Math.min(1,Math.max(0,e))}function Pre(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Dre(e){return typeof e=="string"&&e.indexOf("%")!==-1}function gH(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Qm(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Zl(e){return e.length===1?"0"+e:String(e)}function Lre(e,t,n){return{r:la(e,255)*255,g:la(t,255)*255,b:la(n,255)*255}}function M3(e,t,n){e=la(e,255),t=la(t,255),n=la(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),o=0,i=0,s=(r+a)/2;if(r===a)i=0,o=0;else{var c=r-a;switch(i=s>.5?c/(2-r-a):c/(r+a),r){case e:o=(t-n)/c+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Fre(e,t,n){var r,a,o;if(e=la(e,360),t=la(t,100),n=la(n,100),t===0)a=n,o=n,r=n;else{var i=n<.5?n*(1+t):n+t-n*t,s=2*n-i;r=_S(s,i,e+1/3),a=_S(s,i,e),o=_S(s,i,e-1/3)}return{r:r*255,g:a*255,b:o*255}}function NT(e,t,n){e=la(e,255),t=la(t,255),n=la(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),o=0,i=r,s=r-a,c=r===0?0:s/r;if(r===a)o=0;else{switch(r){case e:o=(t-n)/s+(t>16,g:(e&65280)>>8,b:e&255}}var AT={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 Cu(e){var t={r:0,g:0,b:0},n=1,r=null,a=null,o=null,i=!1,s=!1;return typeof e=="string"&&(e=Wre(e)),typeof e=="object"&&(Zi(e.r)&&Zi(e.g)&&Zi(e.b)?(t=Lre(e.r,e.g,e.b),i=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Zi(e.h)&&Zi(e.s)&&Zi(e.v)?(r=Qm(e.s),a=Qm(e.v),t=jre(e.h,r,a),i=!0,s="hsv"):Zi(e.h)&&Zi(e.s)&&Zi(e.l)&&(r=Qm(e.s),o=Qm(e.l),t=Fre(e.h,r,o),i=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=gH(n),{ok:i,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var Ure="[-\\+]?\\d+%?",Vre="[-\\+]?\\d*\\.\\d+%?",el="(?:".concat(Vre,")|(?:").concat(Ure,")"),$S="[\\s|\\(]+(".concat(el,")[,|\\s]+(").concat(el,")[,|\\s]+(").concat(el,")\\s*\\)?"),OS="[\\s|\\(]+(".concat(el,")[,|\\s]+(").concat(el,")[,|\\s]+(").concat(el,")[,|\\s]+(").concat(el,")\\s*\\)?"),Jo={CSS_UNIT:new RegExp(el),rgb:new RegExp("rgb"+$S),rgba:new RegExp("rgba"+OS),hsl:new RegExp("hsl"+$S),hsla:new RegExp("hsla"+OS),hsv:new RegExp("hsv"+$S),hsva:new RegExp("hsva"+OS),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 Wre(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(AT[e])e=AT[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Jo.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Jo.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Jo.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Jo.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Jo.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Jo.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Jo.hex8.exec(e),n?{r:oo(n[1]),g:oo(n[2]),b:oo(n[3]),a:P3(n[4]),format:t?"name":"hex8"}:(n=Jo.hex6.exec(e),n?{r:oo(n[1]),g:oo(n[2]),b:oo(n[3]),format:t?"name":"hex"}:(n=Jo.hex4.exec(e),n?{r:oo(n[1]+n[1]),g:oo(n[2]+n[2]),b:oo(n[3]+n[3]),a:P3(n[4]+n[4]),format:t?"name":"hex8"}:(n=Jo.hex3.exec(e),n?{r:oo(n[1]+n[1]),g:oo(n[2]+n[2]),b:oo(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Zi(e){return!!Jo.CSS_UNIT.exec(String(e))}var an=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=Hre(t)),this.originalInput=t;var a=Cu(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:a.format,this.gradientType=n.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=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,a,o=t.r/255,i=t.g/255,s=t.b/255;return o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),s<=.03928?a=s/12.92:a=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=gH(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=NT(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=NT(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=M3(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=M3(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),kT(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),Bre(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(la(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(la(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+kT(this.r,this.g,this.b,!1),n=0,r=Object.entries(AT);n=0,o=!n&&a&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Zm(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Zm(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Zm(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Zm(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),a=new e(t).toRgb(),o=n/100,i={r:(a.r-r.r)*o+r.r,g:(a.g-r.g)*o+r.g,b:(a.b-r.b)*o+r.b,a:(a.a-r.a)*o+r.a};return new e(i)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),a=360/n,o=[this];for(r.h=(r.h-(a*t>>1)+720)%360;--t;)r.h=(r.h+a)%360,o.push(new e(r));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,a=n.s,o=n.v,i=[],s=1/t;t--;)i.push(new e({h:r,s:a,v:o})),o=(o+s)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),a=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/a,g:(n.g*n.a+r.g*r.a*(1-n.a))/a,b:(n.b*n.a+r.b*r.a*(1-n.a))/a,a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,a=[this],o=360/t,i=1;i=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Jm*t:Math.round(e.h)+Jm*t:r=n?Math.round(e.h)+Jm*t:Math.round(e.h)-Jm*t,r<0?r+=360:r>=360&&(r-=360),r}function j3(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-D3*t:t===hH?r=e.s+D3:r=e.s+Gre*t,r>1&&(r=1),n&&t===mH&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function B3(e,t,n){var r;return n?r=e.v+qre*t:r=e.v-Kre*t,r>1&&(r=1),Number(r.toFixed(2))}function wc(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Cu(e),a=mH;a>0;a-=1){var o=L3(r),i=eh(Cu({h:F3(o,a,!0),s:j3(o,a,!0),v:B3(o,a,!0)}));n.push(i)}n.push(eh(r));for(var s=1;s<=hH;s+=1){var c=L3(r),u=eh(Cu({h:F3(c,s),s:j3(c,s),v:B3(c,s)}));n.push(u)}return t.theme==="dark"?Yre.map(function(d){var f=d.index,p=d.opacity,g=eh(Xre(Cu(t.backgroundColor||"#141414"),Cu(n[f]),p*100));return g}):n}var Ju={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"},MT=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];MT.primary=MT[5];var PT=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];PT.primary=PT[5];var DT=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];DT.primary=DT[5];var ib=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];ib.primary=ib[5];var LT=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];LT.primary=LT[5];var FT=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];FT.primary=FT[5];var jT=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];jT.primary=jT[5];var BT=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];BT.primary=BT[5];var bd=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];bd.primary=bd[5];var zT=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];zT.primary=zT[5];var HT=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];HT.primary=HT[5];var UT=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];UT.primary=UT[5];var VT=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];VT.primary=VT[5];var NS={red:MT,volcano:PT,orange:DT,gold:ib,yellow:LT,lime:FT,green:jT,cyan:BT,blue:bd,geekblue:zT,purple:HT,magenta:UT,grey:VT};const j$={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"},yd=Object.assign(Object.assign({},j$),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, + */var $$=Symbol.for("react.element"),O$=Symbol.for("react.portal"),i0=Symbol.for("react.fragment"),s0=Symbol.for("react.strict_mode"),l0=Symbol.for("react.profiler"),c0=Symbol.for("react.provider"),u0=Symbol.for("react.context"),Hte=Symbol.for("react.server_context"),d0=Symbol.for("react.forward_ref"),f0=Symbol.for("react.suspense"),p0=Symbol.for("react.suspense_list"),g0=Symbol.for("react.memo"),m0=Symbol.for("react.lazy"),Ute=Symbol.for("react.offscreen"),I9;I9=Symbol.for("react.module.reference");function Ko(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case $$:switch(e=e.type,e){case i0:case l0:case s0:case f0:case p0:return e;default:switch(e=e&&e.$$typeof,e){case Hte:case u0:case d0:case m0:case g0:case c0:return e;default:return t}}case O$:return t}}}Pn.ContextConsumer=u0;Pn.ContextProvider=c0;Pn.Element=$$;Pn.ForwardRef=d0;Pn.Fragment=i0;Pn.Lazy=m0;Pn.Memo=g0;Pn.Portal=O$;Pn.Profiler=l0;Pn.StrictMode=s0;Pn.Suspense=f0;Pn.SuspenseList=p0;Pn.isAsyncMode=function(){return!1};Pn.isConcurrentMode=function(){return!1};Pn.isContextConsumer=function(e){return Ko(e)===u0};Pn.isContextProvider=function(e){return Ko(e)===c0};Pn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===$$};Pn.isForwardRef=function(e){return Ko(e)===d0};Pn.isFragment=function(e){return Ko(e)===i0};Pn.isLazy=function(e){return Ko(e)===m0};Pn.isMemo=function(e){return Ko(e)===g0};Pn.isPortal=function(e){return Ko(e)===O$};Pn.isProfiler=function(e){return Ko(e)===l0};Pn.isStrictMode=function(e){return Ko(e)===s0};Pn.isSuspense=function(e){return Ko(e)===f0};Pn.isSuspenseList=function(e){return Ko(e)===p0};Pn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===i0||e===l0||e===s0||e===f0||e===p0||e===Ute||typeof e=="object"&&e!==null&&(e.$$typeof===m0||e.$$typeof===g0||e.$$typeof===c0||e.$$typeof===u0||e.$$typeof===d0||e.$$typeof===I9||e.getModuleId!==void 0)};Pn.typeOf=Ko;E9.exports=Pn;var hp=E9.exports;function vr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return se.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(vr(r)):hp.isFragment(r)&&r.props?n=n.concat(vr(r.props.children,t)):n.push(r))}),n}var ST={},Vte=function(t){};function Wte(e,t){}function Gte(e,t){}function qte(){ST={}}function T9(e,t,n){!t&&!ST[n]&&(e(!1,n),ST[n]=!0)}function vn(e,t){T9(Wte,e,t)}function R9(e,t){T9(Gte,e,t)}vn.preMessage=Vte;vn.resetWarned=qte;vn.noteOnce=R9;function mt(e){"@babel/helpers - typeof";return mt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mt(e)}function Kte(e,t){if(mt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(mt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _9(e){var t=Kte(e,"string");return mt(t)=="symbol"?t:t+""}function W(e,t,n){return(t=_9(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Z(e){for(var t=1;t=19;var wT=l.createContext(null);function Xte(e){var t=e.children,n=e.onBatchResize,r=l.useRef(0),a=l.useRef([]),o=l.useContext(wT),i=l.useCallback(function(s,c,u){r.current+=1;var d=r.current;a.current.push({size:s,element:c,data:u}),Promise.resolve().then(function(){d===r.current&&(n==null||n(a.current),a.current=[])}),o==null||o(s,c,u)},[n,o]);return l.createElement(wT.Provider,{value:i},t)}var O9=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(a,o){return a[0]===n?(r=o,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),a=this.__entries__[r];return a&&a[1]},t.prototype.set=function(n,r){var a=e(this.__entries__,n);~a?this.__entries__[a][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,a=e(r,n);~a&&r.splice(a,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var a=0,o=this.__entries__;a0},e.prototype.connect_=function(){!CT||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),nne?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!CT||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,a=tne.some(function(o){return!!~r.indexOf(o)});a&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),N9=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof gd(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new dne(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof gd(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new fne(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),A9=typeof WeakMap<"u"?new WeakMap:new O9,M9=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=rne.getInstance(),r=new pne(t,n,this);A9.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){M9.prototype[e]=function(){var t;return(t=A9.get(this))[e].apply(t,arguments)}});var gne=function(){return typeof rb.ResizeObserver<"u"?rb.ResizeObserver:M9}(),Zs=new Map;function mne(e){e.forEach(function(t){var n,r=t.target;(n=Zs.get(r))===null||n===void 0||n.forEach(function(a){return a(r)})})}var P9=new gne(mne);function hne(e,t){Zs.has(e)||(Zs.set(e,new Set),P9.observe(e)),Zs.get(e).add(t)}function vne(e,t){Zs.has(e)&&(Zs.get(e).delete(t),Zs.get(e).size||(P9.unobserve(e),Zs.delete(e)))}function Xn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y3(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&arguments[1]!==void 0?arguments[1]:1;S3+=1;var r=S3;function a(o){if(o===0)B9(r),t();else{var i=F9(function(){a(o-1)});k$.set(r,i)}}return a(n),r};Ut.cancel=function(e){var t=k$.get(e);return B9(e),j9(t)};function z9(e){if(Array.isArray(e))return e}function Ine(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,i,s=[],c=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw a}}return s}}function H9(){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 re(e,t){return z9(e)||Ine(e,t)||N$(e,t)||H9()}function og(e){for(var t=0,n,r=0,a=e.length;a>=4;++r,a-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function Qr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function IT(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var x3="data-rc-order",w3="data-rc-priority",Tne="rc-util-key",TT=new Map;function U9(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Tne}function b0(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Rne(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function A$(e){return Array.from((TT.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function V9(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Qr())return null;var n=t.csp,r=t.prepend,a=t.priority,o=a===void 0?0:a,i=Rne(r),s=i==="prependQueue",c=document.createElement("style");c.setAttribute(x3,i),s&&o&&c.setAttribute(w3,"".concat(o)),n!=null&&n.nonce&&(c.nonce=n==null?void 0:n.nonce),c.innerHTML=e;var u=b0(t),d=u.firstChild;if(r){if(s){var f=(t.styles||A$(u)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(x3)))return!1;var g=Number(p.getAttribute(w3)||0);return o>=g});if(f.length)return u.insertBefore(c,f[f.length-1].nextSibling),c}u.insertBefore(c,d)}else u.appendChild(c);return c}function W9(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=b0(t);return(t.styles||A$(n)).find(function(r){return r.getAttribute(U9(t))===e})}function ig(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=W9(e,t);if(n){var r=b0(t);r.removeChild(n)}}function _ne(e,t){var n=TT.get(e);if(!n||!IT(document,n)){var r=V9("",t),a=r.parentNode;TT.set(e,a),e.removeChild(r)}}function hs(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=b0(n),a=A$(r),o=Z(Z({},n),{},{styles:a});_ne(r,o);var i=W9(t,o);if(i){var s,c;if((s=o.csp)!==null&&s!==void 0&&s.nonce&&i.nonce!==((c=o.csp)===null||c===void 0?void 0:c.nonce)){var u;i.nonce=(u=o.csp)===null||u===void 0?void 0:u.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var d=V9(e,o);return d.setAttribute(U9(o),t),d}function $ne(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function xt(e,t){if(e==null)return{};var n,r,a=$ne(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function a(o,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=r.has(o);if(vn(!c,"Warning: There may be circular references"),c)return!1;if(o===i)return!0;if(n&&s>1)return!1;r.add(o);var u=s+1;if(Array.isArray(o)){if(!Array.isArray(i)||o.length!==i.length)return!1;for(var d=0;d1&&arguments[1]!==void 0?arguments[1]:!1,i={map:this.cache};return n.forEach(function(s){if(!i)i=void 0;else{var c;i=(c=i)===null||c===void 0||(c=c.map)===null||c===void 0?void 0:c.get(s)}}),(r=i)!==null&&r!==void 0&&r.value&&o&&(i.value[1]=this.cacheCallTimes++),(a=i)===null||a===void 0?void 0:a.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var a=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(u,d){var f=re(u,2),p=f[1];return a.internalGet(d)[1]0,void 0),C3+=1}return Zn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,a){return a(n,r)},void 0)}}]),e}(),TS=new M$;function sg(e){var t=Array.isArray(e)?e:[e];return TS.has(t)||TS.set(t,new G9(t)),TS.get(t)}var Mne=new WeakMap,RS={};function Pne(e,t){for(var n=Mne,r=0;r1&&arguments[1]!==void 0?arguments[1]:!1,n=E3.get(e)||"";return n||(Object.keys(e).forEach(function(r){var a=e[r];n+=r,a instanceof G9?n+=a.id:a&&mt(a)==="object"?n+=bp(a,t):n+=a}),t&&(n=og(n)),E3.set(e,n)),n}function I3(e,t){return og("".concat(t,"_").concat(bp(e,!0)))}var _T=Qr();function K(e){return typeof e=="number"?"".concat(e,"px"):e}function ob(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(a)return e;var o=Z(Z({},r),{},W(W({},md,t),ui,n)),i=Object.keys(o).map(function(s){var c=o[s];return c?"".concat(s,'="').concat(c,'"'):null}).filter(function(s){return s}).join(" ");return"")}var av=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).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()},Dne=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(a){var o=re(a,2),i=o[0],s=o[1];return"".concat(i,":").concat(s,";")}).join(""),"}"):""},q9=function(t,n,r){var a={},o={};return Object.entries(t).forEach(function(i){var s,c,u=re(i,2),d=u[0],f=u[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[d])o[d]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(c=r.ignore)!==null&&c!==void 0&&c[d])){var p,g=av(d,r==null?void 0:r.prefix);a[g]=typeof f=="number"&&!(r!=null&&(p=r.unitless)!==null&&p!==void 0&&p[d])?"".concat(f,"px"):String(f),o[d]="var(".concat(g,")")}}),[o,Dne(a,n,{scope:r==null?void 0:r.scope})]},T3=Qr()?l.useLayoutEffect:l.useEffect,Xt=function(t,n){var r=l.useRef(!0);T3(function(){return t(r.current)},n),T3(function(){return r.current=!1,function(){r.current=!0}},[])},cc=function(t,n){Xt(function(r){if(!r)return t()},n)},Lne=Z({},jg),R3=Lne.useInsertionEffect,Fne=function(t,n,r){l.useMemo(t,r),Xt(function(){return n(!0)},r)},jne=R3?function(e,t,n){return R3(function(){return e(),t()},n)}:Fne,Bne=Z({},jg),zne=Bne.useInsertionEffect,Hne=function(t){var n=[],r=!1;function a(o){r||n.push(o)}return l.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(o){return o()})}},t),a},Une=function(){return function(t){t()}},Vne=typeof zne<"u"?Hne:Une;function P$(e,t,n,r,a){var o=l.useContext(y0),i=o.cache,s=[e].concat(Pe(t)),c=RT(s),u=Vne([c]),d=function(h){i.opUpdate(c,function(b){var y=b||[void 0,void 0],S=re(y,2),v=S[0],x=v===void 0?0:v,w=S[1],C=w,E=C||n(),I=[x,E];return h?h(I):I})};l.useMemo(function(){d()},[c]);var f=i.opGet(c),p=f[1];return jne(function(){a==null||a(p)},function(g){return d(function(h){var b=re(h,2),y=b[0],S=b[1];return g&&y===0&&(a==null||a(p)),[y+1,S]}),function(){i.opUpdate(c,function(h){var b=h||[],y=re(b,2),S=y[0],v=S===void 0?0:S,x=y[1],w=v-1;return w===0?(u(function(){(g||!i.opGet(c))&&(r==null||r(x,!1))}),null):[v-1,x]})}},[c]),p}var Wne={},Gne="css",ql=new Map;function qne(e){ql.set(e,(ql.get(e)||0)+1)}function Kne(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(md,'="').concat(e,'"]'));n.forEach(function(r){if(r[Qs]===t){var a;(a=r.parentNode)===null||a===void 0||a.removeChild(r)}})}}var Yne=0;function Xne(e,t){ql.set(e,(ql.get(e)||0)-1);var n=Array.from(ql.keys()),r=n.filter(function(a){var o=ql.get(a)||0;return o<=0});n.length-r.length>Yne&&r.forEach(function(a){Kne(a,t),ql.delete(a)})}var K9=function(t,n,r,a){var o=r.getDerivativeToken(t),i=Z(Z({},o),n);return a&&(i=a(i)),i},Y9="token";function Zne(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=l.useContext(y0),a=r.cache.instanceId,o=r.container,i=n.salt,s=i===void 0?"":i,c=n.override,u=c===void 0?Wne:c,d=n.formatToken,f=n.getComputedToken,p=n.cssVar,g=Pne(function(){return Object.assign.apply(Object,[{}].concat(Pe(t)))},t),h=bp(g),b=bp(u),y=p?bp(p):"",S=P$(Y9,[s,e.id,h,b,y],function(){var v,x=f?f(g,u,e):K9(g,u,e,d),w=Z({},x),C="";if(p){var E=q9(x,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),I=re(E,2);x=I[0],C=I[1]}var T=I3(x,s);x._tokenKey=T,w._tokenKey=I3(w,s);var R=(v=p==null?void 0:p.key)!==null&&v!==void 0?v:T;x._themeKey=R,qne(R);var _="".concat(Gne,"-").concat(og(T));return x._hashId=_,[x,_,w,C,(p==null?void 0:p.key)||""]},function(v){Xne(v[0]._themeKey,a)},function(v){var x=re(v,4),w=x[0],C=x[3];if(p&&C){var E=hs(C,og("css-variables-".concat(w._themeKey)),{mark:ui,prepend:"queue",attachTo:o,priority:-999});E[Qs]=a,E.setAttribute(md,w._themeKey)}});return S}var Qne=function(t,n,r){var a=re(t,5),o=a[2],i=a[3],s=a[4],c=r||{},u=c.plain;if(!i)return null;var d=o._tokenKey,f=-999,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},g=ob(i,s,d,p,u);return[f,d,g]},Jne={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},X9="comm",Z9="rule",Q9="decl",ere="@import",tre="@keyframes",nre="@layer",J9=Math.abs,D$=String.fromCharCode;function eH(e){return e.trim()}function ov(e,t,n){return e.replace(t,n)}function rre(e,t,n){return e.indexOf(t,n)}function lg(e,t){return e.charCodeAt(t)|0}function hd(e,t,n){return e.slice(t,n)}function Oi(e){return e.length}function are(e){return e.length}function Qm(e,t){return t.push(e),e}var S0=1,vd=1,tH=0,Uo=0,Tr=0,Bd="";function L$(e,t,n,r,a,o,i,s){return{value:e,root:t,parent:n,type:r,props:a,children:o,line:S0,column:vd,length:i,return:"",siblings:s}}function ore(){return Tr}function ire(){return Tr=Uo>0?lg(Bd,--Uo):0,vd--,Tr===10&&(vd=1,S0--),Tr}function di(){return Tr=Uo2||cg(Tr)>3?"":" "}function ure(e,t){for(;--t&&di()&&!(Tr<48||Tr>102||Tr>57&&Tr<65||Tr>70&&Tr<97););return x0(e,iv()+(t<6&&Js()==32&&di()==32))}function $T(e){for(;di();)switch(Tr){case e:return Uo;case 34:case 39:e!==34&&e!==39&&$T(Tr);break;case 40:e===41&&$T(e);break;case 92:di();break}return Uo}function dre(e,t){for(;di()&&e+Tr!==57;)if(e+Tr===84&&Js()===47)break;return"/*"+x0(t,Uo-1)+"*"+D$(e===47?e:di())}function fre(e){for(;!cg(Js());)di();return x0(e,Uo)}function pre(e){return lre(sv("",null,null,null,[""],e=sre(e),0,[0],e))}function sv(e,t,n,r,a,o,i,s,c){for(var u=0,d=0,f=i,p=0,g=0,h=0,b=1,y=1,S=1,v=0,x="",w=a,C=o,E=r,I=x;y;)switch(h=v,v=di()){case 40:if(h!=108&&lg(I,f-1)==58){rre(I+=ov(_S(v),"&","&\f"),"&\f",J9(u?s[u-1]:0))!=-1&&(S=-1);break}case 34:case 39:case 91:I+=_S(v);break;case 9:case 10:case 13:case 32:I+=cre(h);break;case 92:I+=ure(iv()-1,7);continue;case 47:switch(Js()){case 42:case 47:Qm(gre(dre(di(),iv()),t,n,c),c),(cg(h||1)==5||cg(Js()||1)==5)&&Oi(I)&&hd(I,-1,void 0)!==" "&&(I+=" ");break;default:I+="/"}break;case 123*b:s[u++]=Oi(I)*S;case 125*b:case 59:case 0:switch(v){case 0:case 125:y=0;case 59+d:S==-1&&(I=ov(I,/\f/g,"")),g>0&&(Oi(I)-f||b===0&&h===47)&&Qm(g>32?$3(I+";",r,n,f-1,c):$3(ov(I," ","")+";",r,n,f-2,c),c);break;case 59:I+=";";default:if(Qm(E=_3(I,t,n,u,d,a,s,x,w=[],C=[],f,o),o),v===123)if(d===0)sv(I,t,E,E,w,o,f,s,C);else switch(p===99&&lg(I,3)===110?100:p){case 100:case 108:case 109:case 115:sv(e,E,E,r&&Qm(_3(e,E,E,0,0,a,s,x,a,w=[],f,C),C),a,C,f,s,r?w:C);break;default:sv(I,E,E,E,[""],C,0,s,C)}}u=d=g=0,b=S=1,x=I="",f=i;break;case 58:f=1+Oi(I),g=h;default:if(b<1){if(v==123)--b;else if(v==125&&b++==0&&ire()==125)continue}switch(I+=D$(v),v*b){case 38:S=d>0?1:(I+="\f",-1);break;case 44:s[u++]=(Oi(I)-1)*S,S=1;break;case 64:Js()===45&&(I+=_S(di())),p=Js(),d=f=Oi(x=I+=fre(iv())),v++;break;case 45:h===45&&Oi(I)==2&&(b=0)}}return o}function _3(e,t,n,r,a,o,i,s,c,u,d,f){for(var p=a-1,g=a===0?o:[""],h=are(g),b=0,y=0,S=0;b0?g[v]+" "+x:ov(x,/&\f/g,g[v])))&&(c[S++]=w);return L$(e,t,n,a===0?Z9:s,c,u,d,f)}function gre(e,t,n,r){return L$(e,t,n,X9,D$(ore()),hd(e,2,-2),0,r)}function $3(e,t,n,r,a){return L$(e,t,n,Q9,hd(e,0,r),hd(e,r+1,-1),r,a)}function OT(e,t){for(var n="",r=0;r1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},a=r.root,o=r.injectHash,i=r.parentSelectors,s=n.hashId,c=n.layer;n.path;var u=n.hashPriority,d=n.transformers,f=d===void 0?[]:d;n.linters;var p="",g={};function h(S){var v=S.getName(s);if(!g[v]){var x=e(S.style,n,{root:!1,parentSelectors:i}),w=re(x,1),C=w[0];g[v]="@keyframes ".concat(S.getName(s)).concat(C)}}function b(S){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return S.forEach(function(x){Array.isArray(x)?b(x,v):x&&v.push(x)}),v}var y=b(Array.isArray(t)?t:[t]);return y.forEach(function(S){var v=typeof S=="string"&&!a?{}:S;if(typeof v=="string")p+="".concat(v,` +`);else if(v._keyframe)h(v);else{var x=f.reduce(function(w,C){var E;return(C==null||(E=C.visit)===null||E===void 0?void 0:E.call(C,w))||w},v);Object.keys(x).forEach(function(w){var C=x[w];if(mt(C)==="object"&&C&&(w!=="animationName"||!C._keyframe)&&!Sre(C)){var E=!1,I=w.trim(),T=!1;(a||o)&&s?I.startsWith("@")?E=!0:I==="&"?I=N3("",s,u):I=N3(w,s,u):a&&!s&&(I==="&"||I==="")&&(I="",T=!0);var R=e(C,n,{root:T,injectHash:E,parentSelectors:[].concat(Pe(i),[I])}),_=re(R,2),$=_[0],P=_[1];g=Z(Z({},g),P),p+="".concat(I).concat($)}else{let O=function(N,k){var M=N.replace(/[A-Z]/g,function(F){return"-".concat(F.toLowerCase())}),L=k;!Jne[N]&&typeof L=="number"&&L!==0&&(L="".concat(L,"px")),N==="animationName"&&k!==null&&k!==void 0&&k._keyframe&&(h(k),L=k.getName(s)),p+="".concat(M,":").concat(L,";")};var D,A=(D=C==null?void 0:C.value)!==null&&D!==void 0?D:C;mt(C)==="object"&&C!==null&&C!==void 0&&C[aH]&&Array.isArray(A)?A.forEach(function(N){O(w,N)}):O(w,A)}})}}),a?c&&(p="@layer ".concat(c.name," {").concat(p,"}"),c.dependencies&&(g["@layer ".concat(c.name)]=c.dependencies.map(function(S){return"@layer ".concat(S,", ").concat(c.name,";")}).join(` +`))):p="{".concat(p,"}"),[p,g]};function oH(e,t){return og("".concat(e.join("%")).concat(t))}function wre(){return null}var iH="style";function NT(e,t){var n=e.token,r=e.path,a=e.hashId,o=e.layer,i=e.nonce,s=e.clientOnly,c=e.order,u=c===void 0?0:c,d=l.useContext(y0),f=d.autoClear;d.mock;var p=d.defaultCache,g=d.hashPriority,h=d.container,b=d.ssrInline,y=d.transformers,S=d.linters,v=d.cache,x=d.layer,w=n._tokenKey,C=[w];x&&C.push("layer"),C.push.apply(C,Pe(r));var E=_T,I=P$(iH,C,function(){var P=C.join("|");if(vre(P)){var D=bre(P),A=re(D,2),O=A[0],N=A[1];if(O)return[O,w,N,{},s,u]}var k=t(),M=xre(k,{hashId:a,hashPriority:g,layer:x?o:void 0,path:r.join("-"),transformers:y,linters:S}),L=re(M,2),F=L[0],j=L[1],B=lv(F),z=oH(C,B);return[B,w,z,j,s,u]},function(P,D){var A=re(P,3),O=A[2];(D||f)&&_T&&ig(O,{mark:ui})},function(P){var D=re(P,4),A=D[0];D[1];var O=D[2],N=D[3];if(E&&A!==nH){var k={mark:ui,prepend:x?!1:"queue",attachTo:h,priority:u},M=typeof i=="function"?i():i;M&&(k.csp={nonce:M});var L=[],F=[];Object.keys(N).forEach(function(B){B.startsWith("@layer")?L.push(B):F.push(B)}),L.forEach(function(B){hs(lv(N[B]),"_layer-".concat(B),Z(Z({},k),{},{prepend:!0}))});var j=hs(A,O,k);j[Qs]=v.instanceId,j.setAttribute(md,w),F.forEach(function(B){hs(lv(N[B]),"_effect-".concat(B),k)})}}),T=re(I,3),R=T[0],_=T[1],$=T[2];return function(P){var D;return!b||E||!p?D=l.createElement(wre,null):D=l.createElement("style",pe({},W(W({},md,_),ui,$),{dangerouslySetInnerHTML:{__html:R}})),l.createElement(l.Fragment,null,D,P)}}var Cre=function(t,n,r){var a=re(t,6),o=a[0],i=a[1],s=a[2],c=a[3],u=a[4],d=a[5],f=r||{},p=f.plain;if(u)return null;var g=o,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return g=ob(o,i,s,h,p),c&&Object.keys(c).forEach(function(b){if(!n[b]){n[b]=!0;var y=lv(c[b]),S=ob(y,i,"_effect-".concat(b),h,p);b.startsWith("@layer")?g=S+g:g+=S}}),[d,s,g]},sH="cssVar",Ere=function(t,n){var r=t.key,a=t.prefix,o=t.unitless,i=t.ignore,s=t.token,c=t.scope,u=c===void 0?"":c,d=l.useContext(y0),f=d.cache.instanceId,p=d.container,g=s._tokenKey,h=[].concat(Pe(t.path),[r,u,g]),b=P$(sH,h,function(){var y=n(),S=q9(y,r,{prefix:a,unitless:o,ignore:i,scope:u}),v=re(S,2),x=v[0],w=v[1],C=oH(h,w);return[x,w,C,r]},function(y){var S=re(y,3),v=S[2];_T&&ig(v,{mark:ui})},function(y){var S=re(y,3),v=S[1],x=S[2];if(v){var w=hs(v,x,{mark:ui,prepend:"queue",attachTo:p,priority:-999});w[Qs]=f,w.setAttribute(md,r)}});return b},Ire=function(t,n,r){var a=re(t,4),o=a[1],i=a[2],s=a[3],c=r||{},u=c.plain;if(!o)return null;var d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},p=ob(o,s,i,f,u);return[d,i,p]};W(W(W({},iH,Cre),Y9,Qne),sH,Ire);var un=function(){function e(t,n){Xn(this,e),W(this,"name",void 0),W(this,"style",void 0),W(this,"_keyframe",!0),this.name=t,this.style=n}return Zn(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function nu(e){return e.notSplit=!0,e}nu(["borderTop","borderBottom"]),nu(["borderTop"]),nu(["borderBottom"]),nu(["borderLeft","borderRight"]),nu(["borderLeft"]),nu(["borderRight"]);var F$=l.createContext({});function lH(e){return z9(e)||L9(e)||N$(e)||H9()}function po(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!po(e,t.slice(0,-1))?e:cH(e,t,n,r)}function Tre(e){return mt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function k3(e){return Array.isArray(e)?[]:{}}var Rre=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Lu(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=_re,e},uH=l.createContext(void 0);var dH={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"},Ore={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},Nre=Z(Z({},Ore),{},{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 fH={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},ib={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"]},Nre),timePickerLocale:Object.assign({},fH)},ao="${label} is not a valid ${type}",Vo={locale:"en",Pagination:dH,DatePicker:ib,TimePicker:fH,Calendar:ib,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:ao,method:ao,array:ao,object:ao,number:ao,date:ao,boolean:ao,integer:ao,float:ao,regexp:ao,email:ao,url:ao,hex:ao},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",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let cv=Object.assign({},Vo.Modal),uv=[];const A3=()=>uv.reduce((e,t)=>Object.assign(Object.assign({},e),t),Vo.Modal);function kre(e){if(e){const t=Object.assign({},e);return uv.push(t),cv=A3(),()=>{uv=uv.filter(n=>n!==t),cv=A3()}}cv=Object.assign({},Vo.Modal)}function pH(){return cv}const j$=l.createContext(void 0),Ki=(e,t)=>{const n=l.useContext(j$),r=l.useMemo(()=>{var o;const i=t||Vo[e],s=(o=n==null?void 0:n[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof i=="function"?i():i),s||{})},[e,t,n]),a=l.useMemo(()=>{const o=n==null?void 0:n.locale;return n!=null&&n.exist&&!o?Vo.locale:o},[n]);return[r,a]},Are="internalMark",Mre=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;l.useEffect(()=>kre(t==null?void 0:t.Modal),[t]);const a=l.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return l.createElement(j$.Provider,{value:a},n)};function ua(e,t){Pre(e)&&(e="100%");var n=Dre(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Jm(e){return Math.min(1,Math.max(0,e))}function Pre(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Dre(e){return typeof e=="string"&&e.indexOf("%")!==-1}function gH(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function eh(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Zl(e){return e.length===1?"0"+e:String(e)}function Lre(e,t,n){return{r:ua(e,255)*255,g:ua(t,255)*255,b:ua(n,255)*255}}function M3(e,t,n){e=ua(e,255),t=ua(t,255),n=ua(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),o=0,i=0,s=(r+a)/2;if(r===a)i=0,o=0;else{var c=r-a;switch(i=s>.5?c/(2-r-a):c/(r+a),r){case e:o=(t-n)/c+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Fre(e,t,n){var r,a,o;if(e=ua(e,360),t=ua(t,100),n=ua(n,100),t===0)a=n,o=n,r=n;else{var i=n<.5?n*(1+t):n+t-n*t,s=2*n-i;r=$S(s,i,e+1/3),a=$S(s,i,e),o=$S(s,i,e-1/3)}return{r:r*255,g:a*255,b:o*255}}function kT(e,t,n){e=ua(e,255),t=ua(t,255),n=ua(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),o=0,i=r,s=r-a,c=r===0?0:s/r;if(r===a)o=0;else{switch(r){case e:o=(t-n)/s+(t>16,g:(e&65280)>>8,b:e&255}}var MT={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 Cu(e){var t={r:0,g:0,b:0},n=1,r=null,a=null,o=null,i=!1,s=!1;return typeof e=="string"&&(e=Wre(e)),typeof e=="object"&&(Qi(e.r)&&Qi(e.g)&&Qi(e.b)?(t=Lre(e.r,e.g,e.b),i=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Qi(e.h)&&Qi(e.s)&&Qi(e.v)?(r=eh(e.s),a=eh(e.v),t=jre(e.h,r,a),i=!0,s="hsv"):Qi(e.h)&&Qi(e.s)&&Qi(e.l)&&(r=eh(e.s),o=eh(e.l),t=Fre(e.h,r,o),i=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=gH(n),{ok:i,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var Ure="[-\\+]?\\d+%?",Vre="[-\\+]?\\d*\\.\\d+%?",el="(?:".concat(Vre,")|(?:").concat(Ure,")"),OS="[\\s|\\(]+(".concat(el,")[,|\\s]+(").concat(el,")[,|\\s]+(").concat(el,")\\s*\\)?"),NS="[\\s|\\(]+(".concat(el,")[,|\\s]+(").concat(el,")[,|\\s]+(").concat(el,")[,|\\s]+(").concat(el,")\\s*\\)?"),ei={CSS_UNIT:new RegExp(el),rgb:new RegExp("rgb"+OS),rgba:new RegExp("rgba"+NS),hsl:new RegExp("hsl"+OS),hsla:new RegExp("hsla"+NS),hsv:new RegExp("hsv"+OS),hsva:new RegExp("hsva"+NS),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 Wre(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(MT[e])e=MT[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=ei.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=ei.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=ei.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=ei.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=ei.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=ei.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=ei.hex8.exec(e),n?{r:io(n[1]),g:io(n[2]),b:io(n[3]),a:P3(n[4]),format:t?"name":"hex8"}:(n=ei.hex6.exec(e),n?{r:io(n[1]),g:io(n[2]),b:io(n[3]),format:t?"name":"hex"}:(n=ei.hex4.exec(e),n?{r:io(n[1]+n[1]),g:io(n[2]+n[2]),b:io(n[3]+n[3]),a:P3(n[4]+n[4]),format:t?"name":"hex8"}:(n=ei.hex3.exec(e),n?{r:io(n[1]+n[1]),g:io(n[2]+n[2]),b:io(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Qi(e){return!!ei.CSS_UNIT.exec(String(e))}var an=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=Hre(t)),this.originalInput=t;var a=Cu(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:a.format,this.gradientType=n.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=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,a,o=t.r/255,i=t.g/255,s=t.b/255;return o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),s<=.03928?a=s/12.92:a=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=gH(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=kT(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=kT(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=M3(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=M3(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),AT(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),Bre(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(ua(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(ua(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+AT(this.r,this.g,this.b,!1),n=0,r=Object.entries(MT);n=0,o=!n&&a&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Jm(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Jm(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Jm(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Jm(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),a=new e(t).toRgb(),o=n/100,i={r:(a.r-r.r)*o+r.r,g:(a.g-r.g)*o+r.g,b:(a.b-r.b)*o+r.b,a:(a.a-r.a)*o+r.a};return new e(i)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),a=360/n,o=[this];for(r.h=(r.h-(a*t>>1)+720)%360;--t;)r.h=(r.h+a)%360,o.push(new e(r));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,a=n.s,o=n.v,i=[],s=1/t;t--;)i.push(new e({h:r,s:a,v:o})),o=(o+s)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),a=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/a,g:(n.g*n.a+r.g*r.a*(1-n.a))/a,b:(n.b*n.a+r.b*r.a*(1-n.a))/a,a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,a=[this],o=360/t,i=1;i=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-th*t:Math.round(e.h)+th*t:r=n?Math.round(e.h)+th*t:Math.round(e.h)-th*t,r<0?r+=360:r>=360&&(r-=360),r}function j3(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-D3*t:t===hH?r=e.s+D3:r=e.s+Gre*t,r>1&&(r=1),n&&t===mH&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function B3(e,t,n){var r;return n?r=e.v+qre*t:r=e.v-Kre*t,r>1&&(r=1),Number(r.toFixed(2))}function wc(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Cu(e),a=mH;a>0;a-=1){var o=L3(r),i=nh(Cu({h:F3(o,a,!0),s:j3(o,a,!0),v:B3(o,a,!0)}));n.push(i)}n.push(nh(r));for(var s=1;s<=hH;s+=1){var c=L3(r),u=nh(Cu({h:F3(c,s),s:j3(c,s),v:B3(c,s)}));n.push(u)}return t.theme==="dark"?Yre.map(function(d){var f=d.index,p=d.opacity,g=nh(Xre(Cu(t.backgroundColor||"#141414"),Cu(n[f]),p*100));return g}):n}var Ju={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"},PT=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];PT.primary=PT[5];var DT=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];DT.primary=DT[5];var LT=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];LT.primary=LT[5];var sb=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];sb.primary=sb[5];var FT=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];FT.primary=FT[5];var jT=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];jT.primary=jT[5];var BT=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];BT.primary=BT[5];var zT=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];zT.primary=zT[5];var bd=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];bd.primary=bd[5];var HT=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];HT.primary=HT[5];var UT=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];UT.primary=UT[5];var VT=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];VT.primary=VT[5];var WT=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];WT.primary=WT[5];var kS={red:PT,volcano:DT,orange:LT,gold:sb,yellow:FT,lime:jT,green:BT,cyan:zT,blue:bd,geekblue:HT,purple:UT,magenta:VT,grey:WT};const B$={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"},yd=Object.assign(Object.assign({},B$),{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 vH(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:a,colorWarning:o,colorError:i,colorInfo:s,colorPrimary:c,colorBgBase:u,colorTextBase:d}=e,f=n(c),p=n(a),g=n(o),h=n(i),b=n(s),y=r(u,d),S=e.colorLink||e.colorInfo,v=n(S);return Object.assign(Object.assign({},y),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBgActive:h[3],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[10],colorInfoBg:b[1],colorInfoBgHover:b[2],colorInfoBorder:b[3],colorInfoBorderHover:b[4],colorInfoHover:b[4],colorInfo:b[6],colorInfoActive:b[7],colorInfoTextHover:b[8],colorInfoText:b[9],colorInfoTextActive:b[10],colorLinkHover:v[4],colorLink:v[6],colorLinkActive:v[7],colorBgMask:new an("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const Zre=e=>{let t=e,n=e,r=e,a=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?a=4:e>=8&&(a=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:a}};function Qre(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:a}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:a+1},Zre(r))}const bH=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function uv(e){return(e+8)/e}function Jre(e){const t=new Array(10).fill(null).map((n,r)=>{const a=r-1,o=e*Math.pow(Math.E,a/5),i=r>1?Math.floor(o):Math.ceil(o);return Math.floor(i/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:uv(n)}))}const yH=e=>{const t=Jre(e),n=t.map(d=>d.size),r=t.map(d=>d.lineHeight),a=n[1],o=n[0],i=n[2],s=r[1],c=r[0],u=r[2];return{fontSizeSM:o,fontSize:a,fontSizeLG:i,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:u,lineHeightSM:c,fontHeight:Math.round(s*a),fontHeightLG:Math.round(u*i),fontHeightSM:Math.round(c*o),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function eae(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const Qi=(e,t)=>new an(e).setAlpha(t).toRgbString(),$f=(e,t)=>new an(e).darken(t).toHexString(),tae=e=>{const t=wc(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},nae=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Qi(r,.88),colorTextSecondary:Qi(r,.65),colorTextTertiary:Qi(r,.45),colorTextQuaternary:Qi(r,.25),colorFill:Qi(r,.15),colorFillSecondary:Qi(r,.06),colorFillTertiary:Qi(r,.04),colorFillQuaternary:Qi(r,.02),colorBgLayout:$f(n,4),colorBgContainer:$f(n,0),colorBgElevated:$f(n,0),colorBgSpotlight:Qi(r,.85),colorBgBlur:"transparent",colorBorder:$f(n,15),colorBorderSecondary:$f(n,6)}};function Hg(e){Ju.pink=Ju.magenta,NS.pink=NS.magenta;const t=Object.keys(j$).map(n=>{const r=e[n]===Ju[n]?NS[n]:wc(e[n]);return new Array(10).fill(1).reduce((a,o,i)=>(a[`${n}-${i+1}`]=r[i],a[`${n}${i+1}`]=r[i],a),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),vH(e,{generateColorPalettes:tae,generateNeutralColorPalettes:nae})),yH(e.fontSize)),eae(e)),bH(e)),Qre(e))}const SH=og(Hg),lg={token:yd,override:{override:yd},hashed:!0},B$=se.createContext(lg),cg="ant",z$="anticon",rae=["outlined","borderless","filled"],aae=(e,t)=>t||(e?`${cg}-${e}`:cg),st=l.createContext({getPrefixCls:aae,iconPrefixCls:z$}),oae=`-ant-${Date.now()}-${Math.random()}`;function iae(e,t){const n={},r=(i,s)=>{let c=i.clone();return c=(s==null?void 0:s(c))||c,c.toRgbString()},a=(i,s)=>{const c=new an(i),u=wc(c.toRgbString());n[`${s}-color`]=r(c),n[`${s}-color-disabled`]=u[1],n[`${s}-color-hover`]=u[4],n[`${s}-color-active`]=u[6],n[`${s}-color-outline`]=c.clone().setAlpha(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=u[0],n[`${s}-color-deprecated-border`]=u[2]};if(t.primaryColor){a(t.primaryColor,"primary");const i=new an(t.primaryColor),s=wc(i.toRgbString());s.forEach((u,d)=>{n[`primary-${d+1}`]=u}),n["primary-color-deprecated-l-35"]=r(i,u=>u.lighten(35)),n["primary-color-deprecated-l-20"]=r(i,u=>u.lighten(20)),n["primary-color-deprecated-t-20"]=r(i,u=>u.tint(20)),n["primary-color-deprecated-t-50"]=r(i,u=>u.tint(50)),n["primary-color-deprecated-f-12"]=r(i,u=>u.setAlpha(u.getAlpha()*.12));const c=new an(s[0]);n["primary-color-active-deprecated-f-30"]=r(c,u=>u.setAlpha(u.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(c,u=>u.darken(2))}return t.successColor&&a(t.successColor,"success"),t.warningColor&&a(t.warningColor,"warning"),t.errorColor&&a(t.errorColor,"error"),t.infoColor&&a(t.infoColor,"info"),` +'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 vH(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:a,colorWarning:o,colorError:i,colorInfo:s,colorPrimary:c,colorBgBase:u,colorTextBase:d}=e,f=n(c),p=n(a),g=n(o),h=n(i),b=n(s),y=r(u,d),S=e.colorLink||e.colorInfo,v=n(S);return Object.assign(Object.assign({},y),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBgActive:h[3],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[10],colorInfoBg:b[1],colorInfoBgHover:b[2],colorInfoBorder:b[3],colorInfoBorderHover:b[4],colorInfoHover:b[4],colorInfo:b[6],colorInfoActive:b[7],colorInfoTextHover:b[8],colorInfoText:b[9],colorInfoTextActive:b[10],colorLinkHover:v[4],colorLink:v[6],colorLinkActive:v[7],colorBgMask:new an("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const Zre=e=>{let t=e,n=e,r=e,a=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?a=4:e>=8&&(a=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:a}};function Qre(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:a}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:a+1},Zre(r))}const bH=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function dv(e){return(e+8)/e}function Jre(e){const t=new Array(10).fill(null).map((n,r)=>{const a=r-1,o=e*Math.pow(Math.E,a/5),i=r>1?Math.floor(o):Math.ceil(o);return Math.floor(i/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:dv(n)}))}const yH=e=>{const t=Jre(e),n=t.map(d=>d.size),r=t.map(d=>d.lineHeight),a=n[1],o=n[0],i=n[2],s=r[1],c=r[0],u=r[2];return{fontSizeSM:o,fontSize:a,fontSizeLG:i,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:u,lineHeightSM:c,fontHeight:Math.round(s*a),fontHeightLG:Math.round(u*i),fontHeightSM:Math.round(c*o),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function eae(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const Ji=(e,t)=>new an(e).setAlpha(t).toRgbString(),Of=(e,t)=>new an(e).darken(t).toHexString(),tae=e=>{const t=wc(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},nae=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Ji(r,.88),colorTextSecondary:Ji(r,.65),colorTextTertiary:Ji(r,.45),colorTextQuaternary:Ji(r,.25),colorFill:Ji(r,.15),colorFillSecondary:Ji(r,.06),colorFillTertiary:Ji(r,.04),colorFillQuaternary:Ji(r,.02),colorBgLayout:Of(n,4),colorBgContainer:Of(n,0),colorBgElevated:Of(n,0),colorBgSpotlight:Ji(r,.85),colorBgBlur:"transparent",colorBorder:Of(n,15),colorBorderSecondary:Of(n,6)}};function Vg(e){Ju.pink=Ju.magenta,kS.pink=kS.magenta;const t=Object.keys(B$).map(n=>{const r=e[n]===Ju[n]?kS[n]:wc(e[n]);return new Array(10).fill(1).reduce((a,o,i)=>(a[`${n}-${i+1}`]=r[i],a[`${n}${i+1}`]=r[i],a),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),vH(e,{generateColorPalettes:tae,generateNeutralColorPalettes:nae})),yH(e.fontSize)),eae(e)),bH(e)),Qre(e))}const SH=sg(Vg),ug={token:yd,override:{override:yd},hashed:!0},z$=se.createContext(ug),dg="ant",H$="anticon",rae=["outlined","borderless","filled"],aae=(e,t)=>t||(e?`${dg}-${e}`:dg),st=l.createContext({getPrefixCls:aae,iconPrefixCls:H$}),oae=`-ant-${Date.now()}-${Math.random()}`;function iae(e,t){const n={},r=(i,s)=>{let c=i.clone();return c=(s==null?void 0:s(c))||c,c.toRgbString()},a=(i,s)=>{const c=new an(i),u=wc(c.toRgbString());n[`${s}-color`]=r(c),n[`${s}-color-disabled`]=u[1],n[`${s}-color-hover`]=u[4],n[`${s}-color-active`]=u[6],n[`${s}-color-outline`]=c.clone().setAlpha(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=u[0],n[`${s}-color-deprecated-border`]=u[2]};if(t.primaryColor){a(t.primaryColor,"primary");const i=new an(t.primaryColor),s=wc(i.toRgbString());s.forEach((u,d)=>{n[`primary-${d+1}`]=u}),n["primary-color-deprecated-l-35"]=r(i,u=>u.lighten(35)),n["primary-color-deprecated-l-20"]=r(i,u=>u.lighten(20)),n["primary-color-deprecated-t-20"]=r(i,u=>u.tint(20)),n["primary-color-deprecated-t-50"]=r(i,u=>u.tint(50)),n["primary-color-deprecated-f-12"]=r(i,u=>u.setAlpha(u.getAlpha()*.12));const c=new an(s[0]);n["primary-color-active-deprecated-f-30"]=r(c,u=>u.setAlpha(u.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(c,u=>u.darken(2))}return t.successColor&&a(t.successColor,"success"),t.warningColor&&a(t.warningColor,"warning"),t.errorColor&&a(t.errorColor,"error"),t.infoColor&&a(t.infoColor,"info"),` :root { ${Object.keys(n).map(i=>`--${e}-${i}: ${n[i]};`).join(` `)} } - `.trim()}function sae(e,t){const n=iae(e,t);Xr()&&ms(n,`${oae}-dynamic-theme`)}const Zr=l.createContext(!1),H$=e=>{let{children:t,disabled:n}=e;const r=l.useContext(Zr);return l.createElement(Zr.Provider,{value:n??r},t)},Cc=l.createContext(void 0),lae=e=>{let{children:t,size:n}=e;const r=l.useContext(Cc);return l.createElement(Cc.Provider,{value:n||r},t)};function cae(){const e=l.useContext(Zr),t=l.useContext(Cc);return{componentDisabled:e,componentSize:t}}var xH=Zn(function e(){Xn(this,e)}),wH="CALC_UNIT",uae=new RegExp(wH,"g");function kS(e){return typeof e=="number"?"".concat(e).concat(wH):e}var dae=function(e){Eo(n,e);var t=Ko(n);function n(r,a){var o;Xn(this,n),o=t.call(this),W(Ue(o),"result",""),W(Ue(o),"unitlessCssVar",void 0),W(Ue(o),"lowPriority",void 0);var i=ht(r);return o.unitlessCssVar=a,r instanceof n?o.result="(".concat(r.result,")"):i==="number"?o.result=kS(r):i==="string"&&(o.result=r),o}return Zn(n,[{key:"add",value:function(a){return a instanceof n?this.result="".concat(this.result," + ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," + ").concat(kS(a))),this.lowPriority=!0,this}},{key:"sub",value:function(a){return a instanceof n?this.result="".concat(this.result," - ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," - ").concat(kS(a))),this.lowPriority=!0,this}},{key:"mul",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof n?this.result="".concat(this.result," * ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," * ").concat(a)),this.lowPriority=!1,this}},{key:"div",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof n?this.result="".concat(this.result," / ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," / ").concat(a)),this.lowPriority=!1,this}},{key:"getResult",value:function(a){return this.lowPriority||a?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(a){var o=this,i=a||{},s=i.unit,c=!0;return typeof s=="boolean"?c=s:Array.from(this.unitlessCssVar).some(function(u){return o.result.includes(u)})&&(c=!1),this.result=this.result.replace(uae,c?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(xH),fae=function(e){Eo(n,e);var t=Ko(n);function n(r){var a;return Xn(this,n),a=t.call(this),W(Ue(a),"result",0),r instanceof n?a.result=r.result:typeof r=="number"&&(a.result=r),a}return Zn(n,[{key:"add",value:function(a){return a instanceof n?this.result+=a.result:typeof a=="number"&&(this.result+=a),this}},{key:"sub",value:function(a){return a instanceof n?this.result-=a.result:typeof a=="number"&&(this.result-=a),this}},{key:"mul",value:function(a){return a instanceof n?this.result*=a.result:typeof a=="number"&&(this.result*=a),this}},{key:"div",value:function(a){return a instanceof n?this.result/=a.result:typeof a=="number"&&(this.result/=a),this}},{key:"equal",value:function(){return this.result}}]),n}(xH),pae=function(t,n){var r=t==="css"?dae:fae;return function(a){return new r(a,n)}},z3=function(t,n){return"".concat([n,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Wt(e){var t=l.useRef();t.current=e;var n=l.useCallback(function(){for(var r,a=arguments.length,o=new Array(a),i=0;i1e4){var r=Date.now();this.lastAccessBeat.forEach(function(a,o){r-a>vae&&(n.map.delete(o),n.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e}(),W3=new bae;function yae(e,t){return se.useMemo(function(){var n=W3.get(t);if(n)return n;var r=e();return W3.set(t,r),r},t)}var Sae=function(){return{}};function xae(e){var t=e.useCSP,n=t===void 0?Sae:t,r=e.useToken,a=e.usePrefix,o=e.getResetStyles,i=e.getCommonStyle,s=e.getCompUnitless;function c(p,g,h,b){var y=Array.isArray(p)?p[0]:p;function S(T){return"".concat(String(y)).concat(T.slice(0,1).toUpperCase()).concat(T.slice(1))}var v=(b==null?void 0:b.unitless)||{},x=typeof s=="function"?s(p):{},C=Z(Z({},x),{},W({},S("zIndexPopup"),!0));Object.keys(v).forEach(function(T){C[S(T)]=v[T]});var w=Z(Z({},b),{},{unitless:C,prefixToken:S}),E=d(p,g,h,w),I=u(y,h,w);return function(T){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:T,_=E(T,R),$=re(_,2),P=$[1],D=I(R),A=re(D,2),O=A[0],N=A[1];return[O,P,N]}}function u(p,g,h){var b=h.unitless,y=h.injectStyle,S=y===void 0?!0:y,v=h.prefixToken,x=h.ignore,C=function(I){var T=I.rootCls,R=I.cssVar,_=R===void 0?{}:R,$=r(),P=$.realToken;return Ere({path:[p],prefix:_.prefix,key:_.key,unitless:b,ignore:x,token:P,scope:T},function(){var D=V3(p,P,g),A=H3(p,P,D,{deprecatedTokens:h==null?void 0:h.deprecatedTokens});return Object.keys(D).forEach(function(O){A[v(O)]=A[O],delete A[O]}),A}),null},w=function(I){var T=r(),R=T.cssVar;return[function(_){return S&&R?se.createElement(se.Fragment,null,se.createElement(C,{rootCls:I,cssVar:R,component:p}),_):_},R==null?void 0:R.key]};return w}function d(p,g,h){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=Array.isArray(p)?p:[p,p],S=re(y,1),v=S[0],x=y.join("-");return function(C){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:C,E=r(),I=E.theme,T=E.realToken,R=E.hashId,_=E.token,$=E.cssVar,P=a(),D=P.rootPrefixCls,A=P.iconPrefixCls,O=n(),N=$?"css":"js",k=yae(function(){var z=new Set;return $&&Object.keys(b.unitless||{}).forEach(function(H){z.add(rv(H,$.prefix)),z.add(rv(H,z3(v,$.prefix)))}),pae(N,z)},[N,v,$==null?void 0:$.prefix]),M=hae(N),L=M.max,F=M.min,j={theme:I,token:_,hashId:R,nonce:function(){return O.nonce},clientOnly:b.clientOnly,layer:{name:"antd"},order:b.order||-999};OT(Z(Z({},j),{},{clientOnly:!1,path:["Shared",D]}),function(){return typeof o=="function"?o(_):[]});var B=OT(Z(Z({},j),{},{path:[x,C,A]}),function(){if(b.injectStyle===!1)return[];var z=mae(_),H=z.token,V=z.flush,te=V3(v,T,h),Y=".".concat(C),J=H3(v,T,te,{deprecatedTokens:b.deprecatedTokens});$&&ht(te)==="object"&&Object.keys(te).forEach(function(X){te[X]="var(".concat(rv(X,z3(v,$.prefix)),")")});var G=zt(H,{componentCls:Y,prefixCls:C,iconCls:".".concat(A),antCls:".".concat(D),calc:k,max:L,min:F},$?te:J),U=g(G,{hashId:R,prefixCls:C,rootPrefixCls:D,iconPrefixCls:A});V(v,J);var q=typeof i=="function"?i(G,C,w,b.resetFont):null;return[b.resetStyle===!1?null:q,U]});return[B,R]}}function f(p,g,h){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=d(p,g,h,Z({resetStyle:!1,order:-998},b)),S=function(x){var C=x.prefixCls,w=x.rootCls,E=w===void 0?C:w;return y(C,E),null};return S}return{genStyleHooks:c,genSubStyleComponent:f,genComponentStyleHook:d}}const ug=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],wae="5.20.6";function MS(e){return e>=0&&e<=255}function th(e,t){const{r:n,g:r,b:a,a:o}=new an(e).toRgb();if(o<1)return e;const{r:i,g:s,b:c}=new an(t).toRgb();for(let u=.01;u<=1;u+=.01){const d=Math.round((n-i*(1-u))/u),f=Math.round((r-s*(1-u))/u),p=Math.round((a-c*(1-u))/u);if(MS(d)&&MS(f)&&MS(p))return new an({r:d,g:f,b:p,a:Math.round(u*100)/100}).toRgbString()}return new an({r:n,g:r,b:a,a:1}).toRgbString()}var Cae=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{delete r[p]});const a=Object.assign(Object.assign({},n),r),o=480,i=576,s=768,c=992,u=1200,d=1600;if(a.motion===!1){const p="0s";a.motionDurationFast=p,a.motionDurationMid=p,a.motionDurationSlow=p}return Object.assign(Object.assign(Object.assign({},a),{colorFillContent:a.colorFillSecondary,colorFillContentHover:a.colorFill,colorFillAlter:a.colorFillQuaternary,colorBgContainerDisabled:a.colorFillTertiary,colorBorderBg:a.colorBgContainer,colorSplit:th(a.colorBorderSecondary,a.colorBgContainer),colorTextPlaceholder:a.colorTextQuaternary,colorTextDisabled:a.colorTextQuaternary,colorTextHeading:a.colorText,colorTextLabel:a.colorTextSecondary,colorTextDescription:a.colorTextTertiary,colorTextLightSolid:a.colorWhite,colorHighlight:a.colorError,colorBgTextHover:a.colorFillSecondary,colorBgTextActive:a.colorFill,colorIcon:a.colorTextTertiary,colorIconHover:a.colorText,colorErrorOutline:th(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:th(a.colorWarningBg,a.colorBgContainer),fontSizeIcon:a.fontSizeSM,lineWidthFocus:a.lineWidth*4,lineWidth:a.lineWidth,controlOutlineWidth:a.lineWidth*2,controlInteractiveSize:a.controlHeight/2,controlItemBgHover:a.colorFillTertiary,controlItemBgActive:a.colorPrimaryBg,controlItemBgActiveHover:a.colorPrimaryBgHover,controlItemBgActiveDisabled:a.colorFill,controlTmpOutline:a.colorFillQuaternary,controlOutline:th(a.colorPrimaryBg,a.colorBgContainer),lineType:a.lineType,borderRadius:a.borderRadius,borderRadiusXS:a.borderRadiusXS,borderRadiusSM:a.borderRadiusSM,borderRadiusLG:a.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:a.sizeXXS,paddingXS:a.sizeXS,paddingSM:a.sizeSM,padding:a.size,paddingMD:a.sizeMD,paddingLG:a.sizeLG,paddingXL:a.sizeXL,paddingContentHorizontalLG:a.sizeLG,paddingContentVerticalLG:a.sizeMS,paddingContentHorizontal:a.sizeMS,paddingContentVertical:a.sizeSM,paddingContentHorizontalSM:a.size,paddingContentVerticalSM:a.sizeXS,marginXXS:a.sizeXXS,marginXS:a.sizeXS,marginSM:a.sizeSM,margin:a.size,marginMD:a.sizeMD,marginLG:a.sizeLG,marginXL:a.sizeXL,marginXXL:a.sizeXXL,boxShadow:` + `.trim()}function sae(e,t){const n=iae(e,t);Qr()&&hs(n,`${oae}-dynamic-theme`)}const Jr=l.createContext(!1),U$=e=>{let{children:t,disabled:n}=e;const r=l.useContext(Jr);return l.createElement(Jr.Provider,{value:n??r},t)},Cc=l.createContext(void 0),lae=e=>{let{children:t,size:n}=e;const r=l.useContext(Cc);return l.createElement(Cc.Provider,{value:n||r},t)};function cae(){const e=l.useContext(Jr),t=l.useContext(Cc);return{componentDisabled:e,componentSize:t}}var xH=Zn(function e(){Xn(this,e)}),wH="CALC_UNIT",uae=new RegExp(wH,"g");function AS(e){return typeof e=="number"?"".concat(e).concat(wH):e}var dae=function(e){Io(n,e);var t=Yo(n);function n(r,a){var o;Xn(this,n),o=t.call(this),W(Ue(o),"result",""),W(Ue(o),"unitlessCssVar",void 0),W(Ue(o),"lowPriority",void 0);var i=mt(r);return o.unitlessCssVar=a,r instanceof n?o.result="(".concat(r.result,")"):i==="number"?o.result=AS(r):i==="string"&&(o.result=r),o}return Zn(n,[{key:"add",value:function(a){return a instanceof n?this.result="".concat(this.result," + ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," + ").concat(AS(a))),this.lowPriority=!0,this}},{key:"sub",value:function(a){return a instanceof n?this.result="".concat(this.result," - ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," - ").concat(AS(a))),this.lowPriority=!0,this}},{key:"mul",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof n?this.result="".concat(this.result," * ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," * ").concat(a)),this.lowPriority=!1,this}},{key:"div",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof n?this.result="".concat(this.result," / ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," / ").concat(a)),this.lowPriority=!1,this}},{key:"getResult",value:function(a){return this.lowPriority||a?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(a){var o=this,i=a||{},s=i.unit,c=!0;return typeof s=="boolean"?c=s:Array.from(this.unitlessCssVar).some(function(u){return o.result.includes(u)})&&(c=!1),this.result=this.result.replace(uae,c?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(xH),fae=function(e){Io(n,e);var t=Yo(n);function n(r){var a;return Xn(this,n),a=t.call(this),W(Ue(a),"result",0),r instanceof n?a.result=r.result:typeof r=="number"&&(a.result=r),a}return Zn(n,[{key:"add",value:function(a){return a instanceof n?this.result+=a.result:typeof a=="number"&&(this.result+=a),this}},{key:"sub",value:function(a){return a instanceof n?this.result-=a.result:typeof a=="number"&&(this.result-=a),this}},{key:"mul",value:function(a){return a instanceof n?this.result*=a.result:typeof a=="number"&&(this.result*=a),this}},{key:"div",value:function(a){return a instanceof n?this.result/=a.result:typeof a=="number"&&(this.result/=a),this}},{key:"equal",value:function(){return this.result}}]),n}(xH),pae=function(t,n){var r=t==="css"?dae:fae;return function(a){return new r(a,n)}},z3=function(t,n){return"".concat([n,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Wt(e){var t=l.useRef();t.current=e;var n=l.useCallback(function(){for(var r,a=arguments.length,o=new Array(a),i=0;i1e4){var r=Date.now();this.lastAccessBeat.forEach(function(a,o){r-a>vae&&(n.map.delete(o),n.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e}(),W3=new bae;function yae(e,t){return se.useMemo(function(){var n=W3.get(t);if(n)return n;var r=e();return W3.set(t,r),r},t)}var Sae=function(){return{}};function xae(e){var t=e.useCSP,n=t===void 0?Sae:t,r=e.useToken,a=e.usePrefix,o=e.getResetStyles,i=e.getCommonStyle,s=e.getCompUnitless;function c(p,g,h,b){var y=Array.isArray(p)?p[0]:p;function S(T){return"".concat(String(y)).concat(T.slice(0,1).toUpperCase()).concat(T.slice(1))}var v=(b==null?void 0:b.unitless)||{},x=typeof s=="function"?s(p):{},w=Z(Z({},x),{},W({},S("zIndexPopup"),!0));Object.keys(v).forEach(function(T){w[S(T)]=v[T]});var C=Z(Z({},b),{},{unitless:w,prefixToken:S}),E=d(p,g,h,C),I=u(y,h,C);return function(T){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:T,_=E(T,R),$=re(_,2),P=$[1],D=I(R),A=re(D,2),O=A[0],N=A[1];return[O,P,N]}}function u(p,g,h){var b=h.unitless,y=h.injectStyle,S=y===void 0?!0:y,v=h.prefixToken,x=h.ignore,w=function(I){var T=I.rootCls,R=I.cssVar,_=R===void 0?{}:R,$=r(),P=$.realToken;return Ere({path:[p],prefix:_.prefix,key:_.key,unitless:b,ignore:x,token:P,scope:T},function(){var D=V3(p,P,g),A=H3(p,P,D,{deprecatedTokens:h==null?void 0:h.deprecatedTokens});return Object.keys(D).forEach(function(O){A[v(O)]=A[O],delete A[O]}),A}),null},C=function(I){var T=r(),R=T.cssVar;return[function(_){return S&&R?se.createElement(se.Fragment,null,se.createElement(w,{rootCls:I,cssVar:R,component:p}),_):_},R==null?void 0:R.key]};return C}function d(p,g,h){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=Array.isArray(p)?p:[p,p],S=re(y,1),v=S[0],x=y.join("-");return function(w){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w,E=r(),I=E.theme,T=E.realToken,R=E.hashId,_=E.token,$=E.cssVar,P=a(),D=P.rootPrefixCls,A=P.iconPrefixCls,O=n(),N=$?"css":"js",k=yae(function(){var z=new Set;return $&&Object.keys(b.unitless||{}).forEach(function(H){z.add(av(H,$.prefix)),z.add(av(H,z3(v,$.prefix)))}),pae(N,z)},[N,v,$==null?void 0:$.prefix]),M=hae(N),L=M.max,F=M.min,j={theme:I,token:_,hashId:R,nonce:function(){return O.nonce},clientOnly:b.clientOnly,layer:{name:"antd"},order:b.order||-999};NT(Z(Z({},j),{},{clientOnly:!1,path:["Shared",D]}),function(){return typeof o=="function"?o(_):[]});var B=NT(Z(Z({},j),{},{path:[x,w,A]}),function(){if(b.injectStyle===!1)return[];var z=mae(_),H=z.token,V=z.flush,te=V3(v,T,h),Y=".".concat(w),J=H3(v,T,te,{deprecatedTokens:b.deprecatedTokens});$&&mt(te)==="object"&&Object.keys(te).forEach(function(X){te[X]="var(".concat(av(X,z3(v,$.prefix)),")")});var G=zt(H,{componentCls:Y,prefixCls:w,iconCls:".".concat(A),antCls:".".concat(D),calc:k,max:L,min:F},$?te:J),U=g(G,{hashId:R,prefixCls:w,rootPrefixCls:D,iconPrefixCls:A});V(v,J);var q=typeof i=="function"?i(G,w,C,b.resetFont):null;return[b.resetStyle===!1?null:q,U]});return[B,R]}}function f(p,g,h){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=d(p,g,h,Z({resetStyle:!1,order:-998},b)),S=function(x){var w=x.prefixCls,C=x.rootCls,E=C===void 0?w:C;return y(w,E),null};return S}return{genStyleHooks:c,genSubStyleComponent:f,genComponentStyleHook:d}}const fg=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],wae="5.20.6";function PS(e){return e>=0&&e<=255}function rh(e,t){const{r:n,g:r,b:a,a:o}=new an(e).toRgb();if(o<1)return e;const{r:i,g:s,b:c}=new an(t).toRgb();for(let u=.01;u<=1;u+=.01){const d=Math.round((n-i*(1-u))/u),f=Math.round((r-s*(1-u))/u),p=Math.round((a-c*(1-u))/u);if(PS(d)&&PS(f)&&PS(p))return new an({r:d,g:f,b:p,a:Math.round(u*100)/100}).toRgbString()}return new an({r:n,g:r,b:a,a:1}).toRgbString()}var Cae=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{delete r[p]});const a=Object.assign(Object.assign({},n),r),o=480,i=576,s=768,c=992,u=1200,d=1600;if(a.motion===!1){const p="0s";a.motionDurationFast=p,a.motionDurationMid=p,a.motionDurationSlow=p}return Object.assign(Object.assign(Object.assign({},a),{colorFillContent:a.colorFillSecondary,colorFillContentHover:a.colorFill,colorFillAlter:a.colorFillQuaternary,colorBgContainerDisabled:a.colorFillTertiary,colorBorderBg:a.colorBgContainer,colorSplit:rh(a.colorBorderSecondary,a.colorBgContainer),colorTextPlaceholder:a.colorTextQuaternary,colorTextDisabled:a.colorTextQuaternary,colorTextHeading:a.colorText,colorTextLabel:a.colorTextSecondary,colorTextDescription:a.colorTextTertiary,colorTextLightSolid:a.colorWhite,colorHighlight:a.colorError,colorBgTextHover:a.colorFillSecondary,colorBgTextActive:a.colorFill,colorIcon:a.colorTextTertiary,colorIconHover:a.colorText,colorErrorOutline:rh(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:rh(a.colorWarningBg,a.colorBgContainer),fontSizeIcon:a.fontSizeSM,lineWidthFocus:a.lineWidth*4,lineWidth:a.lineWidth,controlOutlineWidth:a.lineWidth*2,controlInteractiveSize:a.controlHeight/2,controlItemBgHover:a.colorFillTertiary,controlItemBgActive:a.colorPrimaryBg,controlItemBgActiveHover:a.colorPrimaryBgHover,controlItemBgActiveDisabled:a.colorFill,controlTmpOutline:a.colorFillQuaternary,controlOutline:rh(a.colorPrimaryBg,a.colorBgContainer),lineType:a.lineType,borderRadius:a.borderRadius,borderRadiusXS:a.borderRadiusXS,borderRadiusSM:a.borderRadiusSM,borderRadiusLG:a.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:a.sizeXXS,paddingXS:a.sizeXS,paddingSM:a.sizeSM,padding:a.size,paddingMD:a.sizeMD,paddingLG:a.sizeLG,paddingXL:a.sizeXL,paddingContentHorizontalLG:a.sizeLG,paddingContentVerticalLG:a.sizeMS,paddingContentHorizontal:a.sizeMS,paddingContentVertical:a.sizeSM,paddingContentHorizontalSM:a.size,paddingContentVerticalSM:a.sizeXS,marginXXS:a.sizeXXS,marginXS:a.sizeXS,marginSM:a.sizeSM,margin:a.size,marginMD:a.sizeMD,marginLG:a.sizeLG,marginXL:a.sizeXL,marginXXL:a.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) @@ -94,7 +94,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho 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)"}),r)}var G3=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const r=n.getDerivativeToken(e),{override:a}=t,o=G3(t,["override"]);let i=Object.assign(Object.assign({},r),{override:a});return i=U$(i),o&&Object.entries(o).forEach(s=>{let[c,u]=s;const{theme:d}=u,f=G3(u,["theme"]);let p=f;d&&(p=IH(Object.assign(Object.assign({},i),f),{override:f},d)),i[c]=p}),i};function ta(){const{token:e,hashed:t,theme:n,override:r,cssVar:a}=se.useContext(B$),o=`${wae}-${t||""}`,i=n||SH,[s,c,u]=Zne(i,[yd,e],{salt:o,override:r,getComputedToken:IH,formatToken:U$,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:EH,ignore:Eae,preserve:Iae}});return[i,u,t?c:"",s,a]}const V$=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),xo={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},nn=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},zd=()=>({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"}}),mi=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Tae=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),Rae=(e,t,n,r)=>{const a=`[class^="${t}"], [class*=" ${t}"]`,o=n?`.${n}`:a,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},s),i),{[a]:i})}},ws=e=>({outline:`${K(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),zi=e=>({"&:focus-visible":Object.assign({},ws(e))}),TH=(e,t)=>{const[n,r]=ta();return OT({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[{[`.${e}`]:Object.assign(Object.assign({},zd()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},{genStyleHooks:on,genComponentStyleHook:_ae,genSubStyleComponent:Hd}=xae({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=l.useContext(st);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,a]=ta();return{theme:e,realToken:t,hashId:n,token:r,cssVar:a}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=l.useContext(st);return TH(t,e),e??{}},getResetStyles:e=>[{"&":Tae(e)}],getCommonStyle:Rae,getCompUnitless:()=>EH});function RH(e,t){return ug.reduce((n,r)=>{const a=e[`${r}1`],o=e[`${r}3`],i=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:a,lightBorderColor:o,darkColor:i,textColor:s}))},{})}const $ae=Object.assign({},Lg),{useId:q3}=$ae,Oae=()=>"",Nae=typeof q3>"u"?Oae:q3;function kae(e,t,n){var r;$l();const a=e||{},o=a.inherit===!1||!t?Object.assign(Object.assign({},lg),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:lg.hashed,cssVar:t==null?void 0:t.cssVar}):t,i=Nae();return _l(()=>{var s,c;if(!e)return t;const u=Object.assign({},o.components);Object.keys(e.components||{}).forEach(p=>{u[p]=Object.assign(Object.assign({},u[p]),e.components[p])});const d=`css-var-${i.replace(/:/g,"")}`,f=((s=a.cssVar)!==null&&s!==void 0?s:o.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof o.cssVar=="object"?o.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((c=a.cssVar)===null||c===void 0?void 0:c.key)||d});return Object.assign(Object.assign(Object.assign({},o),a),{token:Object.assign(Object.assign({},o.token),a.token),components:u,cssVar:f})},[a,o],(s,c)=>s.some((u,d)=>{const f=c[d];return!zo(u,f,!0)}))}var Aae=["children"],_H=l.createContext({});function Mae(e){var t=e.children,n=xt(e,Aae);return l.createElement(_H.Provider,{value:n},t)}var Pae=function(e){Eo(n,e);var t=Ko(n);function n(){return Xn(this,n),t.apply(this,arguments)}return Zn(n,[{key:"render",value:function(){return this.props.children}}]),n}(l.Component);function Dae(e){var t=l.useReducer(function(s){return s+1},0),n=re(t,2),r=n[1],a=l.useRef(e),o=Wt(function(){return a.current}),i=Wt(function(s){a.current=typeof s=="function"?s(a.current):s,r()});return[o,i]}var js="none",nh="appear",rh="enter",ah="leave",K3="none",ai="prepare",Fu="start",ju="active",W$="end",$H="prepared";function Y3(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function Lae(e,t){var n={animationend:Y3("Animation","AnimationEnd"),transitionend:Y3("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var Fae=Lae(Xr(),typeof window<"u"?window:{}),OH={};if(Xr()){var jae=document.createElement("div");OH=jae.style}var oh={};function NH(e){if(oh[e])return oh[e];var t=Fae[e];if(t)for(var n=Object.keys(t),r=n.length,a=0;a1&&arguments[1]!==void 0?arguments[1]:2;t();var o=Ut(function(){a<=1?r({isCanceled:function(){return o!==e.current}}):n(r,a-1)});e.current=o}return l.useEffect(function(){return function(){t()}},[]),[n,t]};var Hae=[ai,Fu,ju,W$],Uae=[ai,$H],DH=!1,Vae=!0;function LH(e){return e===ju||e===W$}const Wae=function(e,t,n){var r=Ec(K3),a=re(r,2),o=a[0],i=a[1],s=zae(),c=re(s,2),u=c[0],d=c[1];function f(){i(ai,!0)}var p=t?Uae:Hae;return PH(function(){if(o!==K3&&o!==W$){var g=p.indexOf(o),h=p[g+1],b=n(o);b===DH?i(h,!0):h&&u(function(y){function S(){y.isCanceled()||i(h,!0)}b===!0?S():Promise.resolve(b).then(S)})}},[e,o]),l.useEffect(function(){return function(){d()}},[]),[f,o]};function Gae(e,t,n,r){var a=r.motionEnter,o=a===void 0?!0:a,i=r.motionAppear,s=i===void 0?!0:i,c=r.motionLeave,u=c===void 0?!0:c,d=r.motionDeadline,f=r.motionLeaveImmediately,p=r.onAppearPrepare,g=r.onEnterPrepare,h=r.onLeavePrepare,b=r.onAppearStart,y=r.onEnterStart,S=r.onLeaveStart,v=r.onAppearActive,x=r.onEnterActive,C=r.onLeaveActive,w=r.onAppearEnd,E=r.onEnterEnd,I=r.onLeaveEnd,T=r.onVisibleChanged,R=Ec(),_=re(R,2),$=_[0],P=_[1],D=Dae(js),A=re(D,2),O=A[0],N=A[1],k=Ec(null),M=re(k,2),L=M[0],F=M[1],j=O(),B=l.useRef(!1),z=l.useRef(null);function H(){return n()}var V=l.useRef(!1);function te(){N(js),F(null,!0)}var Y=Wt(function(Se){var ve=O();if(ve!==js){var ae=H();if(!(Se&&!Se.deadline&&Se.target!==ae)){var ie=V.current,ue;ve===nh&&ie?ue=w==null?void 0:w(ae,Se):ve===rh&&ie?ue=E==null?void 0:E(ae,Se):ve===ah&&ie&&(ue=I==null?void 0:I(ae,Se)),ie&&ue!==!1&&te()}}}),J=Bae(Y),G=re(J,1),U=G[0],q=function(ve){switch(ve){case nh:return W(W(W({},ai,p),Fu,b),ju,v);case rh:return W(W(W({},ai,g),Fu,y),ju,x);case ah:return W(W(W({},ai,h),Fu,S),ju,C);default:return{}}},X=l.useMemo(function(){return q(j)},[j]),Q=Wae(j,!e,function(Se){if(Se===ai){var ve=X[ai];return ve?ve(H()):DH}if(le in X){var ae;F(((ae=X[le])===null||ae===void 0?void 0:ae.call(X,H(),null))||null)}return le===ju&&j!==js&&(U(H()),d>0&&(clearTimeout(z.current),z.current=setTimeout(function(){Y({deadline:!0})},d))),le===$H&&te(),Vae}),ee=re(Q,2),oe=ee[0],le=ee[1],fe=LH(le);V.current=fe,PH(function(){P(t);var Se=B.current;B.current=!0;var ve;!Se&&t&&s&&(ve=nh),Se&&t&&o&&(ve=rh),(Se&&!t&&u||!Se&&f&&!t&&u)&&(ve=ah);var ae=q(ve);ve&&(e||ae[ai])?(N(ve),oe()):N(js)},[t]),l.useEffect(function(){(j===nh&&!s||j===rh&&!o||j===ah&&!u)&&N(js)},[s,o,u]),l.useEffect(function(){return function(){B.current=!1,clearTimeout(z.current)}},[]);var ce=l.useRef(!1);l.useEffect(function(){$&&(ce.current=!0),$!==void 0&&j===js&&((ce.current||$)&&(T==null||T($)),ce.current=!0)},[$,j]);var Te=L;return X[ai]&&le===Fu&&(Te=Z({transition:"none"},Te)),[j,le,Te,$??t]}function qae(e){var t=e;ht(e)==="object"&&(t=e.transitionSupport);function n(a,o){return!!(a.motionName&&t&&o!==!1)}var r=l.forwardRef(function(a,o){var i=a.visible,s=i===void 0?!0:i,c=a.removeOnLeave,u=c===void 0?!0:c,d=a.forceRender,f=a.children,p=a.motionName,g=a.leavedClassName,h=a.eventProps,b=l.useContext(_H),y=b.motion,S=n(a,y),v=l.useRef(),x=l.useRef();function C(){try{return v.current instanceof HTMLElement?v.current:mp(x.current)}catch{return null}}var w=Gae(S,s,C,a),E=re(w,4),I=E[0],T=E[1],R=E[2],_=E[3],$=l.useRef(_);_&&($.current=!0);var P=l.useCallback(function(L){v.current=L,tg(o,L)},[o]),D,A=Z(Z({},h),{},{visible:s});if(!f)D=null;else if(I===js)_?D=f(Z({},A),P):!u&&$.current&&g?D=f(Z(Z({},A),{},{className:g}),P):d||!u&&!g?D=f(Z(Z({},A),{},{style:{display:"none"}}),P):D=null;else{var O;T===ai?O="prepare":LH(T)?O="active":T===Fu&&(O="start");var N=Q3(p,"".concat(I,"-").concat(O));D=f(Z(Z({},A),{},{className:ne(Q3(p,I),W(W({},N,N&&O),p,typeof p=="string")),style:R}),P)}if(l.isValidElement(D)&&gi(D)){var k=D,M=k.ref;M||(D=l.cloneElement(D,{ref:P}))}return l.createElement(Pae,{ref:x},D)});return r.displayName="CSSMotion",r}const Qr=qae(MH);var GT="add",qT="keep",KT="remove",PS="removed";function Kae(e){var t;return e&&ht(e)==="object"&&"key"in e?t=e:t={key:e},Z(Z({},t),{},{key:String(t.key)})}function YT(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(Kae)}function Yae(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,a=t.length,o=YT(e),i=YT(t);o.forEach(function(u){for(var d=!1,f=r;f1});return c.forEach(function(u){n=n.filter(function(d){var f=d.key,p=d.status;return f!==u||p!==KT}),n.forEach(function(d){d.key===u&&(d.status=qT)})}),n}var Xae=["component","children","onVisibleChanged","onAllRemoved"],Zae=["status"],Qae=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Jae(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qr,n=function(r){Eo(o,r);var a=Ko(o);function o(){var i;Xn(this,o);for(var s=arguments.length,c=new Array(s),u=0;unull;var noe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);at.endsWith("Color"))}const ioe=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:a}=e;t!==void 0&&(sb=t),n!==void 0&&(FH=n),"holderRender"in e&&(BH=a),r&&(ooe(r)?sae(dv(),r):jH=r)},zH=()=>({getPrefixCls:(e,t)=>t||(e?`${dv()}-${e}`:dv()),getIconPrefixCls:aoe,getRootPrefixCls:()=>sb||dv(),getTheme:()=>jH,holderRender:BH}),soe=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:a,anchor:o,form:i,locale:s,componentSize:c,direction:u,space:d,virtual:f,dropdownMatchSelectWidth:p,popupMatchSelectWidth:g,popupOverflow:h,legacyLocale:b,parentContext:y,iconPrefixCls:S,theme:v,componentDisabled:x,segmented:C,statistic:w,spin:E,calendar:I,carousel:T,cascader:R,collapse:_,typography:$,checkbox:P,descriptions:D,divider:A,drawer:O,skeleton:N,steps:k,image:M,layout:L,list:F,mentions:j,modal:B,progress:z,result:H,slider:V,breadcrumb:te,menu:Y,pagination:J,input:G,textArea:U,empty:q,badge:X,radio:Q,rate:ee,switch:oe,transfer:le,avatar:fe,message:ce,tag:Te,table:Se,card:ve,tabs:ae,timeline:ie,timePicker:ue,upload:ye,notification:Ee,tree:Me,colorPicker:Ie,datePicker:Ce,rangePicker:me,flex:we,wave:_e,dropdown:Ne,warning:he,tour:ke,floatButtonGroup:xe,variant:ge,inputNumber:Pe,treeSelect:Ve}=e,Ae=l.useCallback((ft,qe)=>{const{prefixCls:We}=e;if(qe)return qe;const Qe=We||y.getPrefixCls("");return ft?`${Qe}-${ft}`:Qe},[y.getPrefixCls,e.prefixCls]),be=S||y.iconPrefixCls||z$,Oe=n||y.csp;TH(be,Oe);const Fe=kae(v,y.theme,{prefixCls:Ae("")}),Ke={csp:Oe,autoInsertSpaceInButton:r,alert:a,anchor:o,locale:s||b,direction:u,space:d,virtual:f,popupMatchSelectWidth:g??p,popupOverflow:h,getPrefixCls:Ae,iconPrefixCls:be,theme:Fe,segmented:C,statistic:w,spin:E,calendar:I,carousel:T,cascader:R,collapse:_,typography:$,checkbox:P,descriptions:D,divider:A,drawer:O,skeleton:N,steps:k,image:M,input:G,textArea:U,layout:L,list:F,mentions:j,modal:B,progress:z,result:H,slider:V,breadcrumb:te,menu:Y,pagination:J,empty:q,badge:X,radio:Q,rate:ee,switch:oe,transfer:le,avatar:fe,message:ce,tag:Te,table:Se,card:ve,tabs:ae,timeline:ie,timePicker:ue,upload:ye,notification:Ee,tree:Me,colorPicker:Ie,datePicker:Ce,rangePicker:me,flex:we,wave:_e,dropdown:Ne,warning:he,tour:ke,floatButtonGroup:xe,variant:ge,inputNumber:Pe,treeSelect:Ve},He=Object.assign({},y);Object.keys(Ke).forEach(ft=>{Ke[ft]!==void 0&&(He[ft]=Ke[ft])}),roe.forEach(ft=>{const qe=e[ft];qe&&(He[ft]=qe)}),typeof r<"u"&&(He.button=Object.assign({autoInsertSpace:r},He.button));const ze=_l(()=>He,He,(ft,qe)=>{const We=Object.keys(ft),Qe=Object.keys(qe);return We.length!==Qe.length||We.some(ct=>ft[ct]!==qe[ct])}),Ze=l.useMemo(()=>({prefixCls:be,csp:Oe}),[be,Oe]);let je=l.createElement(l.Fragment,null,l.createElement(toe,{dropdownMatchSelectWidth:p}),t);const Je=l.useMemo(()=>{var ft,qe,We,Qe;return Lu(((ft=Uo.Form)===null||ft===void 0?void 0:ft.defaultValidateMessages)||{},((We=(qe=ze.locale)===null||qe===void 0?void 0:qe.Form)===null||We===void 0?void 0:We.defaultValidateMessages)||{},((Qe=ze.form)===null||Qe===void 0?void 0:Qe.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[ze,i==null?void 0:i.validateMessages]);Object.keys(Je).length>0&&(je=l.createElement(uH.Provider,{value:Je},je)),s&&(je=l.createElement(Mre,{locale:s,_ANT_MARK__:Are},je)),(be||Oe)&&(je=l.createElement(L$.Provider,{value:Ze},je)),c&&(je=l.createElement(lae,{size:c},je)),je=l.createElement(eoe,null,je);const mt=l.useMemo(()=>{const ft=Fe||{},{algorithm:qe,token:We,components:Qe,cssVar:ct}=ft,Rt=noe(ft,["algorithm","token","components","cssVar"]),$t=qe&&(!Array.isArray(qe)||qe.length>0)?og(qe):SH,vt={};Object.entries(Qe||{}).forEach(ot=>{let[et,bt]=ot;const rt=Object.assign({},bt);"algorithm"in rt&&(rt.algorithm===!0?rt.theme=$t:(Array.isArray(rt.algorithm)||typeof rt.algorithm=="function")&&(rt.theme=og(rt.algorithm)),delete rt.algorithm),vt[et]=rt});const lt=Object.assign(Object.assign({},yd),We);return Object.assign(Object.assign({},Rt),{theme:$t,token:lt,components:vt,override:Object.assign({override:lt},vt),cssVar:ct})},[Fe]);return v&&(je=l.createElement(B$.Provider,{value:mt},je)),ze.warning&&(je=l.createElement($re.Provider,{value:ze.warning},je)),x!==void 0&&(je=l.createElement(H$,{disabled:x},je)),l.createElement(st.Provider,{value:ze},je)},yi=e=>{const t=l.useContext(st),n=l.useContext(F$);return l.createElement(soe,Object.assign({parentContext:t,legacyLocale:n},e))};yi.ConfigContext=st;yi.SizeContext=Cc;yi.config=ioe;yi.useConfig=cae;Object.defineProperty(yi,"SizeContext",{get:()=>Cc});var loe={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 HH(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function coe(e){return HH(e)instanceof ShadowRoot}function lb(e){return coe(e)?HH(e):null}function uoe(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function doe(e,t){vn(e,"[@ant-design/icons] ".concat(t))}function J3(e){return ht(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(ht(e.icon)==="object"||typeof e.icon=="function")}function eM(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[uoe(n)]=r}return t},{})}function XT(e,t,n){return n?se.createElement(e.tag,Z(Z({key:t},eM(e.attrs)),n),(e.children||[]).map(function(r,a){return XT(r,"".concat(t,"-").concat(e.tag,"-").concat(a))})):se.createElement(e.tag,Z({key:t},eM(e.attrs)),(e.children||[]).map(function(r,a){return XT(r,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function UH(e){return wc(e)[0]}function VH(e){return e?Array.isArray(e)?e:[e]:[]}var foe=` + `,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)"}),r)}var G3=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const r=n.getDerivativeToken(e),{override:a}=t,o=G3(t,["override"]);let i=Object.assign(Object.assign({},r),{override:a});return i=V$(i),o&&Object.entries(o).forEach(s=>{let[c,u]=s;const{theme:d}=u,f=G3(u,["theme"]);let p=f;d&&(p=IH(Object.assign(Object.assign({},i),f),{override:f},d)),i[c]=p}),i};function ra(){const{token:e,hashed:t,theme:n,override:r,cssVar:a}=se.useContext(z$),o=`${wae}-${t||""}`,i=n||SH,[s,c,u]=Zne(i,[yd,e],{salt:o,override:r,getComputedToken:IH,formatToken:V$,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:EH,ignore:Eae,preserve:Iae}});return[i,u,t?c:"",s,a]}const W$=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),wo={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},nn=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},zd=()=>({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"}}),hi=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Tae=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),Rae=(e,t,n,r)=>{const a=`[class^="${t}"], [class*=" ${t}"]`,o=n?`.${n}`:a,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},s),i),{[a]:i})}},Cs=e=>({outline:`${K(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Hi=e=>({"&:focus-visible":Object.assign({},Cs(e))}),TH=(e,t)=>{const[n,r]=ra();return NT({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[{[`.${e}`]:Object.assign(Object.assign({},zd()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},{genStyleHooks:on,genComponentStyleHook:_ae,genSubStyleComponent:Hd}=xae({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=l.useContext(st);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,a]=ra();return{theme:e,realToken:t,hashId:n,token:r,cssVar:a}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=l.useContext(st);return TH(t,e),e??{}},getResetStyles:e=>[{"&":Tae(e)}],getCommonStyle:Rae,getCompUnitless:()=>EH});function RH(e,t){return fg.reduce((n,r)=>{const a=e[`${r}1`],o=e[`${r}3`],i=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:a,lightBorderColor:o,darkColor:i,textColor:s}))},{})}const $ae=Object.assign({},jg),{useId:q3}=$ae,Oae=()=>"",Nae=typeof q3>"u"?Oae:q3;function kae(e,t,n){var r;$l();const a=e||{},o=a.inherit===!1||!t?Object.assign(Object.assign({},ug),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:ug.hashed,cssVar:t==null?void 0:t.cssVar}):t,i=Nae();return _l(()=>{var s,c;if(!e)return t;const u=Object.assign({},o.components);Object.keys(e.components||{}).forEach(p=>{u[p]=Object.assign(Object.assign({},u[p]),e.components[p])});const d=`css-var-${i.replace(/:/g,"")}`,f=((s=a.cssVar)!==null&&s!==void 0?s:o.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof o.cssVar=="object"?o.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((c=a.cssVar)===null||c===void 0?void 0:c.key)||d});return Object.assign(Object.assign(Object.assign({},o),a),{token:Object.assign(Object.assign({},o.token),a.token),components:u,cssVar:f})},[a,o],(s,c)=>s.some((u,d)=>{const f=c[d];return!Ho(u,f,!0)}))}var Aae=["children"],_H=l.createContext({});function Mae(e){var t=e.children,n=xt(e,Aae);return l.createElement(_H.Provider,{value:n},t)}var Pae=function(e){Io(n,e);var t=Yo(n);function n(){return Xn(this,n),t.apply(this,arguments)}return Zn(n,[{key:"render",value:function(){return this.props.children}}]),n}(l.Component);function Dae(e){var t=l.useReducer(function(s){return s+1},0),n=re(t,2),r=n[1],a=l.useRef(e),o=Wt(function(){return a.current}),i=Wt(function(s){a.current=typeof s=="function"?s(a.current):s,r()});return[o,i]}var js="none",ah="appear",oh="enter",ih="leave",K3="none",oi="prepare",Fu="start",ju="active",G$="end",$H="prepared";function Y3(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function Lae(e,t){var n={animationend:Y3("Animation","AnimationEnd"),transitionend:Y3("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var Fae=Lae(Qr(),typeof window<"u"?window:{}),OH={};if(Qr()){var jae=document.createElement("div");OH=jae.style}var sh={};function NH(e){if(sh[e])return sh[e];var t=Fae[e];if(t)for(var n=Object.keys(t),r=n.length,a=0;a1&&arguments[1]!==void 0?arguments[1]:2;t();var o=Ut(function(){a<=1?r({isCanceled:function(){return o!==e.current}}):n(r,a-1)});e.current=o}return l.useEffect(function(){return function(){t()}},[]),[n,t]};var Hae=[oi,Fu,ju,G$],Uae=[oi,$H],DH=!1,Vae=!0;function LH(e){return e===ju||e===G$}const Wae=function(e,t,n){var r=Ec(K3),a=re(r,2),o=a[0],i=a[1],s=zae(),c=re(s,2),u=c[0],d=c[1];function f(){i(oi,!0)}var p=t?Uae:Hae;return PH(function(){if(o!==K3&&o!==G$){var g=p.indexOf(o),h=p[g+1],b=n(o);b===DH?i(h,!0):h&&u(function(y){function S(){y.isCanceled()||i(h,!0)}b===!0?S():Promise.resolve(b).then(S)})}},[e,o]),l.useEffect(function(){return function(){d()}},[]),[f,o]};function Gae(e,t,n,r){var a=r.motionEnter,o=a===void 0?!0:a,i=r.motionAppear,s=i===void 0?!0:i,c=r.motionLeave,u=c===void 0?!0:c,d=r.motionDeadline,f=r.motionLeaveImmediately,p=r.onAppearPrepare,g=r.onEnterPrepare,h=r.onLeavePrepare,b=r.onAppearStart,y=r.onEnterStart,S=r.onLeaveStart,v=r.onAppearActive,x=r.onEnterActive,w=r.onLeaveActive,C=r.onAppearEnd,E=r.onEnterEnd,I=r.onLeaveEnd,T=r.onVisibleChanged,R=Ec(),_=re(R,2),$=_[0],P=_[1],D=Dae(js),A=re(D,2),O=A[0],N=A[1],k=Ec(null),M=re(k,2),L=M[0],F=M[1],j=O(),B=l.useRef(!1),z=l.useRef(null);function H(){return n()}var V=l.useRef(!1);function te(){N(js),F(null,!0)}var Y=Wt(function(be){var he=O();if(he!==js){var ae=H();if(!(be&&!be.deadline&&be.target!==ae)){var ie=V.current,ue;he===ah&&ie?ue=C==null?void 0:C(ae,be):he===oh&&ie?ue=E==null?void 0:E(ae,be):he===ih&&ie&&(ue=I==null?void 0:I(ae,be)),ie&&ue!==!1&&te()}}}),J=Bae(Y),G=re(J,1),U=G[0],q=function(he){switch(he){case ah:return W(W(W({},oi,p),Fu,b),ju,v);case oh:return W(W(W({},oi,g),Fu,y),ju,x);case ih:return W(W(W({},oi,h),Fu,S),ju,w);default:return{}}},X=l.useMemo(function(){return q(j)},[j]),Q=Wae(j,!e,function(be){if(be===oi){var he=X[oi];return he?he(H()):DH}if(le in X){var ae;F(((ae=X[le])===null||ae===void 0?void 0:ae.call(X,H(),null))||null)}return le===ju&&j!==js&&(U(H()),d>0&&(clearTimeout(z.current),z.current=setTimeout(function(){Y({deadline:!0})},d))),le===$H&&te(),Vae}),ee=re(Q,2),oe=ee[0],le=ee[1],fe=LH(le);V.current=fe,PH(function(){P(t);var be=B.current;B.current=!0;var he;!be&&t&&s&&(he=ah),be&&t&&o&&(he=oh),(be&&!t&&u||!be&&f&&!t&&u)&&(he=ih);var ae=q(he);he&&(e||ae[oi])?(N(he),oe()):N(js)},[t]),l.useEffect(function(){(j===ah&&!s||j===oh&&!o||j===ih&&!u)&&N(js)},[s,o,u]),l.useEffect(function(){return function(){B.current=!1,clearTimeout(z.current)}},[]);var ce=l.useRef(!1);l.useEffect(function(){$&&(ce.current=!0),$!==void 0&&j===js&&((ce.current||$)&&(T==null||T($)),ce.current=!0)},[$,j]);var Ie=L;return X[oi]&&le===Fu&&(Ie=Z({transition:"none"},Ie)),[j,le,Ie,$??t]}function qae(e){var t=e;mt(e)==="object"&&(t=e.transitionSupport);function n(a,o){return!!(a.motionName&&t&&o!==!1)}var r=l.forwardRef(function(a,o){var i=a.visible,s=i===void 0?!0:i,c=a.removeOnLeave,u=c===void 0?!0:c,d=a.forceRender,f=a.children,p=a.motionName,g=a.leavedClassName,h=a.eventProps,b=l.useContext(_H),y=b.motion,S=n(a,y),v=l.useRef(),x=l.useRef();function w(){try{return v.current instanceof HTMLElement?v.current:vp(x.current)}catch{return null}}var C=Gae(S,s,w,a),E=re(C,4),I=E[0],T=E[1],R=E[2],_=E[3],$=l.useRef(_);_&&($.current=!0);var P=l.useCallback(function(L){v.current=L,rg(o,L)},[o]),D,A=Z(Z({},h),{},{visible:s});if(!f)D=null;else if(I===js)_?D=f(Z({},A),P):!u&&$.current&&g?D=f(Z(Z({},A),{},{className:g}),P):d||!u&&!g?D=f(Z(Z({},A),{},{style:{display:"none"}}),P):D=null;else{var O;T===oi?O="prepare":LH(T)?O="active":T===Fu&&(O="start");var N=Q3(p,"".concat(I,"-").concat(O));D=f(Z(Z({},A),{},{className:ne(Q3(p,I),W(W({},N,N&&O),p,typeof p=="string")),style:R}),P)}if(l.isValidElement(D)&&mi(D)){var k=D,M=k.ref;M||(D=l.cloneElement(D,{ref:P}))}return l.createElement(Pae,{ref:x},D)});return r.displayName="CSSMotion",r}const ea=qae(MH);var qT="add",KT="keep",YT="remove",DS="removed";function Kae(e){var t;return e&&mt(e)==="object"&&"key"in e?t=e:t={key:e},Z(Z({},t),{},{key:String(t.key)})}function XT(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(Kae)}function Yae(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,a=t.length,o=XT(e),i=XT(t);o.forEach(function(u){for(var d=!1,f=r;f1});return c.forEach(function(u){n=n.filter(function(d){var f=d.key,p=d.status;return f!==u||p!==YT}),n.forEach(function(d){d.key===u&&(d.status=KT)})}),n}var Xae=["component","children","onVisibleChanged","onAllRemoved"],Zae=["status"],Qae=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Jae(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ea,n=function(r){Io(o,r);var a=Yo(o);function o(){var i;Xn(this,o);for(var s=arguments.length,c=new Array(s),u=0;unull;var noe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);at.endsWith("Color"))}const ioe=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:a}=e;t!==void 0&&(lb=t),n!==void 0&&(FH=n),"holderRender"in e&&(BH=a),r&&(ooe(r)?sae(fv(),r):jH=r)},zH=()=>({getPrefixCls:(e,t)=>t||(e?`${fv()}-${e}`:fv()),getIconPrefixCls:aoe,getRootPrefixCls:()=>lb||fv(),getTheme:()=>jH,holderRender:BH}),soe=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:a,anchor:o,form:i,locale:s,componentSize:c,direction:u,space:d,virtual:f,dropdownMatchSelectWidth:p,popupMatchSelectWidth:g,popupOverflow:h,legacyLocale:b,parentContext:y,iconPrefixCls:S,theme:v,componentDisabled:x,segmented:w,statistic:C,spin:E,calendar:I,carousel:T,cascader:R,collapse:_,typography:$,checkbox:P,descriptions:D,divider:A,drawer:O,skeleton:N,steps:k,image:M,layout:L,list:F,mentions:j,modal:B,progress:z,result:H,slider:V,breadcrumb:te,menu:Y,pagination:J,input:G,textArea:U,empty:q,badge:X,radio:Q,rate:ee,switch:oe,transfer:le,avatar:fe,message:ce,tag:Ie,table:be,card:he,tabs:ae,timeline:ie,timePicker:ue,upload:xe,notification:we,tree:Me,colorPicker:Ce,datePicker:De,rangePicker:ye,flex:ve,wave:$e,dropdown:Ee,warning:ge,tour:Ne,floatButtonGroup:Re,variant:me,inputNumber:_e,treeSelect:Ze}=e,Oe=l.useCallback((ft,qe)=>{const{prefixCls:We}=e;if(qe)return qe;const Qe=We||y.getPrefixCls("");return ft?`${Qe}-${ft}`:Qe},[y.getPrefixCls,e.prefixCls]),Se=S||y.iconPrefixCls||H$,Ae=n||y.csp;TH(Se,Ae);const Fe=kae(v,y.theme,{prefixCls:Oe("")}),Ve={csp:Ae,autoInsertSpaceInButton:r,alert:a,anchor:o,locale:s||b,direction:u,space:d,virtual:f,popupMatchSelectWidth:g??p,popupOverflow:h,getPrefixCls:Oe,iconPrefixCls:Se,theme:Fe,segmented:w,statistic:C,spin:E,calendar:I,carousel:T,cascader:R,collapse:_,typography:$,checkbox:P,descriptions:D,divider:A,drawer:O,skeleton:N,steps:k,image:M,input:G,textArea:U,layout:L,list:F,mentions:j,modal:B,progress:z,result:H,slider:V,breadcrumb:te,menu:Y,pagination:J,empty:q,badge:X,radio:Q,rate:ee,switch:oe,transfer:le,avatar:fe,message:ce,tag:Ie,table:be,card:he,tabs:ae,timeline:ie,timePicker:ue,upload:xe,notification:we,tree:Me,colorPicker:Ce,datePicker:De,rangePicker:ye,flex:ve,wave:$e,dropdown:Ee,warning:ge,tour:Ne,floatButtonGroup:Re,variant:me,inputNumber:_e,treeSelect:Ze},He=Object.assign({},y);Object.keys(Ve).forEach(ft=>{Ve[ft]!==void 0&&(He[ft]=Ve[ft])}),roe.forEach(ft=>{const qe=e[ft];qe&&(He[ft]=qe)}),typeof r<"u"&&(He.button=Object.assign({autoInsertSpace:r},He.button));const ze=_l(()=>He,He,(ft,qe)=>{const We=Object.keys(ft),Qe=Object.keys(qe);return We.length!==Qe.length||We.some(ut=>ft[ut]!==qe[ut])}),Xe=l.useMemo(()=>({prefixCls:Se,csp:Ae}),[Se,Ae]);let je=l.createElement(l.Fragment,null,l.createElement(toe,{dropdownMatchSelectWidth:p}),t);const Je=l.useMemo(()=>{var ft,qe,We,Qe;return Lu(((ft=Vo.Form)===null||ft===void 0?void 0:ft.defaultValidateMessages)||{},((We=(qe=ze.locale)===null||qe===void 0?void 0:qe.Form)===null||We===void 0?void 0:We.defaultValidateMessages)||{},((Qe=ze.form)===null||Qe===void 0?void 0:Qe.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[ze,i==null?void 0:i.validateMessages]);Object.keys(Je).length>0&&(je=l.createElement(uH.Provider,{value:Je},je)),s&&(je=l.createElement(Mre,{locale:s,_ANT_MARK__:Are},je)),(Se||Ae)&&(je=l.createElement(F$.Provider,{value:Xe},je)),c&&(je=l.createElement(lae,{size:c},je)),je=l.createElement(eoe,null,je);const gt=l.useMemo(()=>{const ft=Fe||{},{algorithm:qe,token:We,components:Qe,cssVar:ut}=ft,Rt=noe(ft,["algorithm","token","components","cssVar"]),$t=qe&&(!Array.isArray(qe)||qe.length>0)?sg(qe):SH,ht={};Object.entries(Qe||{}).forEach(ot=>{let[et,vt]=ot;const rt=Object.assign({},vt);"algorithm"in rt&&(rt.algorithm===!0?rt.theme=$t:(Array.isArray(rt.algorithm)||typeof rt.algorithm=="function")&&(rt.theme=sg(rt.algorithm)),delete rt.algorithm),ht[et]=rt});const lt=Object.assign(Object.assign({},yd),We);return Object.assign(Object.assign({},Rt),{theme:$t,token:lt,components:ht,override:Object.assign({override:lt},ht),cssVar:ut})},[Fe]);return v&&(je=l.createElement(z$.Provider,{value:gt},je)),ze.warning&&(je=l.createElement($re.Provider,{value:ze.warning},je)),x!==void 0&&(je=l.createElement(U$,{disabled:x},je)),l.createElement(st.Provider,{value:ze},je)},Si=e=>{const t=l.useContext(st),n=l.useContext(j$);return l.createElement(soe,Object.assign({parentContext:t,legacyLocale:n},e))};Si.ConfigContext=st;Si.SizeContext=Cc;Si.config=ioe;Si.useConfig=cae;Object.defineProperty(Si,"SizeContext",{get:()=>Cc});var loe={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 HH(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function coe(e){return HH(e)instanceof ShadowRoot}function cb(e){return coe(e)?HH(e):null}function uoe(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function doe(e,t){vn(e,"[@ant-design/icons] ".concat(t))}function J3(e){return mt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(mt(e.icon)==="object"||typeof e.icon=="function")}function eM(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[uoe(n)]=r}return t},{})}function ZT(e,t,n){return n?se.createElement(e.tag,Z(Z({key:t},eM(e.attrs)),n),(e.children||[]).map(function(r,a){return ZT(r,"".concat(t,"-").concat(e.tag,"-").concat(a))})):se.createElement(e.tag,Z({key:t},eM(e.attrs)),(e.children||[]).map(function(r,a){return ZT(r,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function UH(e){return wc(e)[0]}function VH(e){return e?Array.isArray(e)?e:[e]:[]}var foe=` .anticon { display: inline-flex; align-items: center; @@ -149,7 +149,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho transform: rotate(360deg); } } -`,poe=function(t){var n=l.useContext(L$),r=n.csp,a=n.prefixCls,o=foe;a&&(o=o.replace(/anticon/g,a)),l.useEffect(function(){var i=t.current,s=lb(i);ms(o,"@ant-design-icons",{prepend:!0,csp:r,attachTo:s})},[])},goe=["icon","className","onClick","style","primaryColor","secondaryColor"],vp={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function moe(e){var t=e.primaryColor,n=e.secondaryColor;vp.primaryColor=t,vp.secondaryColor=n||UH(t),vp.calculated=!!n}function hoe(){return Z({},vp)}var Ud=function(t){var n=t.icon,r=t.className,a=t.onClick,o=t.style,i=t.primaryColor,s=t.secondaryColor,c=xt(t,goe),u=l.useRef(),d=vp;if(i&&(d={primaryColor:i,secondaryColor:s||UH(i)}),poe(u),doe(J3(n),"icon should be icon definiton, but got ".concat(n)),!J3(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=Z(Z({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),XT(f.icon,"svg-".concat(f.name),Z(Z({className:r,onClick:a,style:o,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:u}))};Ud.displayName="IconReact";Ud.getTwoToneColors=hoe;Ud.setTwoToneColors=moe;function WH(e){var t=VH(e),n=re(t,2),r=n[0],a=n[1];return Ud.setTwoToneColors({primaryColor:r,secondaryColor:a})}function voe(){var e=Ud.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var boe=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];WH(bd.primary);var nt=l.forwardRef(function(e,t){var n=e.className,r=e.icon,a=e.spin,o=e.rotate,i=e.tabIndex,s=e.onClick,c=e.twoToneColor,u=xt(e,boe),d=l.useContext(L$),f=d.prefixCls,p=f===void 0?"anticon":f,g=d.rootClassName,h=ne(g,p,W(W({},"".concat(p,"-").concat(r.name),!!r.name),"".concat(p,"-spin"),!!a||r.name==="loading"),n),b=i;b===void 0&&s&&(b=-1);var y=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,S=VH(c),v=re(S,2),x=v[0],C=v[1];return l.createElement("span",pe({role:"img","aria-label":r.name},u,{ref:t,tabIndex:b,onClick:s,className:h}),l.createElement(Ud,{icon:r,primaryColor:x,secondaryColor:C,style:y}))});nt.displayName="AntdIcon";nt.getTwoToneColor=voe;nt.setTwoToneColor=WH;var yoe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:loe}))},Ug=l.forwardRef(yoe),Soe={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"},xoe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Soe}))},Pc=l.forwardRef(xoe),woe={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"},Coe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:woe}))},Jr=l.forwardRef(Coe),Eoe={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"},Ioe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Eoe}))},x0=l.forwardRef(Ioe),Toe={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"},Roe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Toe}))},q$=l.forwardRef(Roe),_oe=`accept acceptCharset accessKey action allowFullScreen allowTransparency +`,poe=function(t){var n=l.useContext(F$),r=n.csp,a=n.prefixCls,o=foe;a&&(o=o.replace(/anticon/g,a)),l.useEffect(function(){var i=t.current,s=cb(i);hs(o,"@ant-design-icons",{prepend:!0,csp:r,attachTo:s})},[])},goe=["icon","className","onClick","style","primaryColor","secondaryColor"],yp={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function moe(e){var t=e.primaryColor,n=e.secondaryColor;yp.primaryColor=t,yp.secondaryColor=n||UH(t),yp.calculated=!!n}function hoe(){return Z({},yp)}var Ud=function(t){var n=t.icon,r=t.className,a=t.onClick,o=t.style,i=t.primaryColor,s=t.secondaryColor,c=xt(t,goe),u=l.useRef(),d=yp;if(i&&(d={primaryColor:i,secondaryColor:s||UH(i)}),poe(u),doe(J3(n),"icon should be icon definiton, but got ".concat(n)),!J3(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=Z(Z({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),ZT(f.icon,"svg-".concat(f.name),Z(Z({className:r,onClick:a,style:o,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:u}))};Ud.displayName="IconReact";Ud.getTwoToneColors=hoe;Ud.setTwoToneColors=moe;function WH(e){var t=VH(e),n=re(t,2),r=n[0],a=n[1];return Ud.setTwoToneColors({primaryColor:r,secondaryColor:a})}function voe(){var e=Ud.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var boe=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];WH(bd.primary);var nt=l.forwardRef(function(e,t){var n=e.className,r=e.icon,a=e.spin,o=e.rotate,i=e.tabIndex,s=e.onClick,c=e.twoToneColor,u=xt(e,boe),d=l.useContext(F$),f=d.prefixCls,p=f===void 0?"anticon":f,g=d.rootClassName,h=ne(g,p,W(W({},"".concat(p,"-").concat(r.name),!!r.name),"".concat(p,"-spin"),!!a||r.name==="loading"),n),b=i;b===void 0&&s&&(b=-1);var y=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,S=VH(c),v=re(S,2),x=v[0],w=v[1];return l.createElement("span",pe({role:"img","aria-label":r.name},u,{ref:t,tabIndex:b,onClick:s,className:h}),l.createElement(Ud,{icon:r,primaryColor:x,secondaryColor:w,style:y}))});nt.displayName="AntdIcon";nt.getTwoToneColor=voe;nt.setTwoToneColor=WH;var yoe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:loe}))},Wg=l.forwardRef(yoe),Soe={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"},xoe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Soe}))},Pc=l.forwardRef(xoe),woe={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"},Coe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:woe}))},ta=l.forwardRef(Coe),Eoe={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"},Ioe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Eoe}))},w0=l.forwardRef(Ioe),Toe={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"},Roe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Toe}))},K$=l.forwardRef(Roe),_oe=`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 @@ -166,82 +166,82 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho 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`,Ooe="".concat(_oe," ").concat($oe).split(/[\s\n]+/),Noe="aria-",koe="data-";function tM(e,t){return e.indexOf(t)===0}function Yn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=Z({},t);var r={};return Object.keys(e).forEach(function(a){(n.aria&&(a==="role"||tM(a,Noe))||n.data&&tM(a,koe)||n.attr&&Ooe.includes(a))&&(r[a]=e[a])}),r}function GH(e){return e&&se.isValidElement(e)&&e.type===se.Fragment}const K$=(e,t,n)=>se.isValidElement(e)?se.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function Cr(e,t){return K$(e,e,t)}const ih=(e,t,n,r,a)=>({background:e,border:`${K(r.lineWidth)} ${r.lineType} ${t}`,[`${a}-icon`]:{color:n}}),Aoe=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:a,fontSize:o,fontSizeLG:i,lineHeight:s,borderRadiusLG:c,motionEaseInOutCirc:u,withDescriptionIconSize:d,colorText:f,colorTextHeading:p,withDescriptionPadding:g,defaultPadding:h}=e;return{[t]:Object.assign(Object.assign({},nn(e)),{position:"relative",display:"flex",alignItems:"center",padding:h,wordWrap:"break-word",borderRadius:c,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:o,lineHeight:s},"&-message":{color:p},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${u}, opacity ${n} ${u}, + onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Ooe="".concat(_oe," ").concat($oe).split(/[\s\n]+/),Noe="aria-",koe="data-";function tM(e,t){return e.indexOf(t)===0}function Yn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=Z({},t);var r={};return Object.keys(e).forEach(function(a){(n.aria&&(a==="role"||tM(a,Noe))||n.data&&tM(a,koe)||n.attr&&Ooe.includes(a))&&(r[a]=e[a])}),r}function GH(e){return e&&se.isValidElement(e)&&e.type===se.Fragment}const Y$=(e,t,n)=>se.isValidElement(e)?se.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function Cr(e,t){return Y$(e,e,t)}const lh=(e,t,n,r,a)=>({background:e,border:`${K(r.lineWidth)} ${r.lineType} ${t}`,[`${a}-icon`]:{color:n}}),Aoe=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:a,fontSize:o,fontSizeLG:i,lineHeight:s,borderRadiusLG:c,motionEaseInOutCirc:u,withDescriptionIconSize:d,colorText:f,colorTextHeading:p,withDescriptionPadding:g,defaultPadding:h}=e;return{[t]:Object.assign(Object.assign({},nn(e)),{position:"relative",display:"flex",alignItems:"center",padding:h,wordWrap:"break-word",borderRadius:c,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:o,lineHeight:s},"&-message":{color:p},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${u}, opacity ${n} ${u}, padding-top ${n} ${u}, padding-bottom ${n} ${u}, - margin-bottom ${n} ${u}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:g,[`${t}-icon`]:{marginInlineEnd:a,fontSize:d,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:p,fontSize:i},[`${t}-description`]:{display:"block",color:f}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},Moe=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:a,colorWarning:o,colorWarningBorder:i,colorWarningBg:s,colorError:c,colorErrorBorder:u,colorErrorBg:d,colorInfo:f,colorInfoBorder:p,colorInfoBg:g}=e;return{[t]:{"&-success":ih(a,r,n,e,t),"&-info":ih(g,p,f,e,t),"&-warning":ih(s,i,o,e,t),"&-error":Object.assign(Object.assign({},ih(d,u,c,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},Poe=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:a,fontSizeIcon:o,colorIcon:i,colorIconHover:s}=e;return{[t]:{"&-action":{marginInlineStart:a},[`${t}-close-icon`]:{marginInlineStart:a,padding:0,overflow:"hidden",fontSize:o,lineHeight:K(o),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:i,transition:`color ${r}`,"&:hover":{color:s}}},"&-close-text":{color:i,transition:`color ${r}`,"&:hover":{color:s}}}}},Doe=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),Loe=on("Alert",e=>[Aoe(e),Moe(e),Poe(e)],Doe);var nM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{icon:t,prefixCls:n,type:r}=e,a=Foe[r]||null;return t?K$(t,l.createElement("span",{className:`${n}-icon`},t),()=>({className:ne(`${n}-icon`,{[t.props.className]:t.props.className})})):l.createElement(a,{className:`${n}-icon`})},Boe=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:a,ariaProps:o}=e,i=r===!0||r===void 0?l.createElement(Jr,null):r;return t?l.createElement("button",Object.assign({type:"button",onClick:a,className:`${n}-close-icon`,tabIndex:0},o),i):null},qH=l.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:a,banner:o,className:i,rootClassName:s,style:c,onMouseEnter:u,onMouseLeave:d,onClick:f,afterClose:p,showIcon:g,closable:h,closeText:b,closeIcon:y,action:S,id:v}=e,x=nM(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[C,w]=l.useState(!1),E=l.useRef(null);l.useImperativeHandle(t,()=>({nativeElement:E.current}));const{getPrefixCls:I,direction:T,alert:R}=l.useContext(st),_=I("alert",r),[$,P,D]=Loe(_),A=B=>{var z;w(!0),(z=e.onClose)===null||z===void 0||z.call(e,B)},O=l.useMemo(()=>e.type!==void 0?e.type:o?"warning":"info",[e.type,o]),N=l.useMemo(()=>typeof h=="object"&&h.closeIcon||b?!0:typeof h=="boolean"?h:y!==!1&&y!==null&&y!==void 0?!0:!!(R!=null&&R.closable),[b,y,h,R==null?void 0:R.closable]),k=o&&g===void 0?!0:g,M=ne(_,`${_}-${O}`,{[`${_}-with-description`]:!!n,[`${_}-no-icon`]:!k,[`${_}-banner`]:!!o,[`${_}-rtl`]:T==="rtl"},R==null?void 0:R.className,i,s,D,P),L=Yn(x,{aria:!0,data:!0}),F=l.useMemo(()=>{var B,z;return typeof h=="object"&&h.closeIcon?h.closeIcon:b||(y!==void 0?y:typeof(R==null?void 0:R.closable)=="object"&&(!((B=R==null?void 0:R.closable)===null||B===void 0)&&B.closeIcon)?(z=R==null?void 0:R.closable)===null||z===void 0?void 0:z.closeIcon:R==null?void 0:R.closeIcon)},[y,h,b,R==null?void 0:R.closeIcon]),j=l.useMemo(()=>{const B=h??(R==null?void 0:R.closable);return typeof B=="object"?nM(B,["closeIcon"]):{}},[h,R==null?void 0:R.closable]);return $(l.createElement(Qr,{visible:!C,motionName:`${_}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:B=>({maxHeight:B.offsetHeight}),onLeaveEnd:p},(B,z)=>{let{className:H,style:V}=B;return l.createElement("div",Object.assign({id:v,ref:ea(E,z),"data-show":!C,className:ne(M,H),style:Object.assign(Object.assign(Object.assign({},R==null?void 0:R.style),c),V),onMouseEnter:u,onMouseLeave:d,onClick:f,role:"alert"},L),k?l.createElement(joe,{description:n,icon:e.icon,prefixCls:_,type:O}):null,l.createElement("div",{className:`${_}-content`},a?l.createElement("div",{className:`${_}-message`},a):null,n?l.createElement("div",{className:`${_}-description`},n):null),S?l.createElement("div",{className:`${_}-action`},S):null,l.createElement(Boe,{isClosable:N,prefixCls:_,closeIcon:F,handleClose:A,ariaProps:j}))}))});function zoe(e,t,n){return t=xc(t),D9(e,h0()?Reflect.construct(t,n||[],xc(e).constructor):t.apply(e,n))}let Hoe=function(e){function t(){var n;return Xn(this,t),n=zoe(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return Eo(t,e),Zn(t,[{key:"componentDidCatch",value:function(r,a){this.setState({error:r,info:a})}},{key:"render",value:function(){const{message:r,description:a,id:o,children:i}=this.props,{error:s,info:c}=this.state,u=(c==null?void 0:c.componentStack)||null,d=typeof r>"u"?(s||"").toString():r,f=typeof a>"u"?u:a;return s?l.createElement(qH,{id:o,type:"error",message:d,description:l.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},f)}):i}}])}(l.Component);const An=qH;An.ErrorBoundary=Hoe;const rM=e=>typeof e=="object"&&e!=null&&e.nodeType===1,aM=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",DS=(e,t)=>{if(e.clientHeight{const a=(o=>{if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!a&&(a.clientHeightot||o>e&&i=t&&s>=n?o-e-r:i>t&&sn?i-t+a:0,Uoe=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},oM=(e,t)=>{var n,r,a,o;if(typeof document>"u")return[];const{scrollMode:i,block:s,inline:c,boundary:u,skipOverflowHiddenElements:d}=t,f=typeof u=="function"?u:N=>N!==u;if(!rM(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,g=[];let h=e;for(;rM(h)&&f(h);){if(h=Uoe(h),h===p){g.push(h);break}h!=null&&h===document.body&&DS(h)&&!DS(document.documentElement)||h!=null&&DS(h,d)&&g.push(h)}const b=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,y=(o=(a=window.visualViewport)==null?void 0:a.height)!=null?o:innerHeight,{scrollX:S,scrollY:v}=window,{height:x,width:C,top:w,right:E,bottom:I,left:T}=e.getBoundingClientRect(),{top:R,right:_,bottom:$,left:P}=(N=>{const k=window.getComputedStyle(N);return{top:parseFloat(k.scrollMarginTop)||0,right:parseFloat(k.scrollMarginRight)||0,bottom:parseFloat(k.scrollMarginBottom)||0,left:parseFloat(k.scrollMarginLeft)||0}})(e);let D=s==="start"||s==="nearest"?w-R:s==="end"?I+$:w+x/2-R+$,A=c==="center"?T+C/2-P+_:c==="end"?E+_:T-P;const O=[];for(let N=0;N=0&&T>=0&&I<=y&&E<=b&&w>=F&&I<=B&&T>=z&&E<=j)return O;const H=getComputedStyle(k),V=parseInt(H.borderLeftWidth,10),te=parseInt(H.borderTopWidth,10),Y=parseInt(H.borderRightWidth,10),J=parseInt(H.borderBottomWidth,10);let G=0,U=0;const q="offsetWidth"in k?k.offsetWidth-k.clientWidth-V-Y:0,X="offsetHeight"in k?k.offsetHeight-k.clientHeight-te-J:0,Q="offsetWidth"in k?k.offsetWidth===0?0:L/k.offsetWidth:0,ee="offsetHeight"in k?k.offsetHeight===0?0:M/k.offsetHeight:0;if(p===k)G=s==="start"?D:s==="end"?D-y:s==="nearest"?sh(v,v+y,y,te,J,v+D,v+D+x,x):D-y/2,U=c==="start"?A:c==="center"?A-b/2:c==="end"?A-b:sh(S,S+b,b,V,Y,S+A,S+A+C,C),G=Math.max(0,G+v),U=Math.max(0,U+S);else{G=s==="start"?D-F-te:s==="end"?D-B+J+X:s==="nearest"?sh(F,B,M,te,J+X,D,D+x,x):D-(F+M/2)+X/2,U=c==="start"?A-z-V:c==="center"?A-(z+L/2)+q/2:c==="end"?A-j+Y+q:sh(z,j,L,V,Y+q,A,A+C,C);const{scrollLeft:oe,scrollTop:le}=k;G=ee===0?0:Math.max(0,Math.min(le+G/ee,k.scrollHeight-M/ee+X)),U=Q===0?0:Math.max(0,Math.min(oe+U/Q,k.scrollWidth-L/Q+q)),D+=le-G,A+=oe-U}O.push({el:k,top:G,left:U})}return O},Voe=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function Woe(e,t){if(!e.isConnected||!(a=>{let o=a;for(;o&&o.parentNode;){if(o.parentNode===document)return!0;o=o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode}return!1})(e))return;const n=(a=>{const o=window.getComputedStyle(a);return{top:parseFloat(o.scrollMarginTop)||0,right:parseFloat(o.scrollMarginRight)||0,bottom:parseFloat(o.scrollMarginBottom)||0,left:parseFloat(o.scrollMarginLeft)||0}})(e);if((a=>typeof a=="object"&&typeof a.behavior=="function")(t))return t.behavior(oM(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:a,top:o,left:i}of oM(e,Voe(t))){const s=o-n.top+n.bottom,c=i-n.left+n.right;a.scroll({top:s,left:c,behavior:r})}}function ZT(e){return e!=null&&e===e.window}const Goe=e=>{var t,n;if(typeof window>"u")return 0;let r=0;return ZT(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!ZT(e)&&typeof r!="number"&&(r=(n=((t=e.ownerDocument)!==null&&t!==void 0?t:e).documentElement)===null||n===void 0?void 0:n.scrollTop),r};function qoe(e,t,n,r){const a=n-t;return e/=r/2,e<1?a/2*e*e*e+t:a/2*((e-=2)*e*e+2)+t}function Koe(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:r,duration:a=450}=t,o=n(),i=Goe(o),s=Date.now(),c=()=>{const d=Date.now()-s,f=qoe(d>a?a:d,i,e,a);ZT(o)?o.scrollTo(window.pageXOffset,f):o instanceof Document||o.constructor.name==="HTMLDocument"?o.documentElement.scrollTop=f:o.scrollTop=f,d{const[,,,,t]=ta();return t?`${e}-css-var`:""};var Le={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(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=Le.F1&&n<=Le.F12)return!1;switch(n){case Le.ALT:case Le.CAPS_LOCK:case Le.CONTEXT_MENU:case Le.CTRL:case Le.DOWN:case Le.END:case Le.ESC:case Le.HOME:case Le.INSERT:case Le.LEFT:case Le.MAC_FF_META:case Le.META:case Le.NUMLOCK:case Le.NUM_CENTER:case Le.PAGE_DOWN:case Le.PAGE_UP:case Le.PAUSE:case Le.PRINT_SCREEN:case Le.RIGHT:case Le.SHIFT:case Le.UP:case Le.WIN_KEY:case Le.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=Le.ZERO&&t<=Le.NINE||t>=Le.NUM_ZERO&&t<=Le.NUM_MULTIPLY||t>=Le.A&&t<=Le.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case Le.SPACE:case Le.QUESTION_MARK:case Le.NUM_PLUS:case Le.NUM_MINUS:case Le.NUM_PERIOD:case Le.NUM_DIVISION:case Le.SEMICOLON:case Le.DASH:case Le.EQUALS:case Le.COMMA:case Le.PERIOD:case Le.SLASH:case Le.APOSTROPHE:case Le.SINGLE_QUOTE:case Le.OPEN_SQUARE_BRACKET:case Le.BACKSLASH:case Le.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},KH=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,a=e.className,o=e.duration,i=o===void 0?4.5:o,s=e.showProgress,c=e.pauseOnHover,u=c===void 0?!0:c,d=e.eventKey,f=e.content,p=e.closable,g=e.closeIcon,h=g===void 0?"x":g,b=e.props,y=e.onClick,S=e.onNoticeClose,v=e.times,x=e.hovering,C=l.useState(!1),w=re(C,2),E=w[0],I=w[1],T=l.useState(0),R=re(T,2),_=R[0],$=R[1],P=l.useState(0),D=re(P,2),A=D[0],O=D[1],N=x||E,k=i>0&&s,M=function(){S(d)},L=function(V){(V.key==="Enter"||V.code==="Enter"||V.keyCode===Le.ENTER)&&M()};l.useEffect(function(){if(!N&&i>0){var H=Date.now()-A,V=setTimeout(function(){M()},i*1e3-A);return function(){u&&clearTimeout(V),O(Date.now()-H)}}},[i,N,v]),l.useEffect(function(){if(!N&&k&&(u||A===0)){var H=performance.now(),V,te=function Y(){cancelAnimationFrame(V),V=requestAnimationFrame(function(J){var G=J+A-H,U=Math.min(G/(i*1e3),1);$(U*100),U<1&&Y()})};return te(),function(){u&&cancelAnimationFrame(V)}}},[i,A,N,k,v]);var F=l.useMemo(function(){return ht(p)==="object"&&p!==null?p:p?{closeIcon:h}:{}},[p,h]),j=Yn(F,!0),B=100-(!_||_<0?0:_>100?100:_),z="".concat(n,"-notice");return l.createElement("div",pe({},b,{ref:t,className:ne(z,a,W({},"".concat(z,"-closable"),p)),style:r,onMouseEnter:function(V){var te;I(!0),b==null||(te=b.onMouseEnter)===null||te===void 0||te.call(b,V)},onMouseLeave:function(V){var te;I(!1),b==null||(te=b.onMouseLeave)===null||te===void 0||te.call(b,V)},onClick:y}),l.createElement("div",{className:"".concat(z,"-content")},f),p&&l.createElement("a",pe({tabIndex:0,className:"".concat(z,"-close"),onKeyDown:L,"aria-label":"Close"},j,{onClick:function(V){V.preventDefault(),V.stopPropagation(),M()}}),F.closeIcon),k&&l.createElement("progress",{className:"".concat(z,"-progress"),max:"100",value:B},B+"%"))}),YH=se.createContext({}),Yoe=function(t){var n=t.children,r=t.classNames;return se.createElement(YH.Provider,{value:{classNames:r}},n)},iM=8,sM=3,lM=16,Xoe=function(t){var n={offset:iM,threshold:sM,gap:lM};if(t&&ht(t)==="object"){var r,a,o;n.offset=(r=t.offset)!==null&&r!==void 0?r:iM,n.threshold=(a=t.threshold)!==null&&a!==void 0?a:sM,n.gap=(o=t.gap)!==null&&o!==void 0?o:lM}return[!!t,n]},Zoe=["className","style","classNames","styles"],Qoe=function(t){var n=t.configList,r=t.placement,a=t.prefixCls,o=t.className,i=t.style,s=t.motion,c=t.onAllNoticeRemoved,u=t.onNoticeClose,d=t.stack,f=l.useContext(YH),p=f.classNames,g=l.useRef({}),h=l.useState(null),b=re(h,2),y=b[0],S=b[1],v=l.useState([]),x=re(v,2),C=x[0],w=x[1],E=n.map(function(N){return{config:N,key:String(N.key)}}),I=Xoe(d),T=re(I,2),R=T[0],_=T[1],$=_.offset,P=_.threshold,D=_.gap,A=R&&(C.length>0||E.length<=P),O=typeof s=="function"?s(r):s;return l.useEffect(function(){R&&C.length>1&&w(function(N){return N.filter(function(k){return E.some(function(M){var L=M.key;return k===L})})})},[C,E,R]),l.useEffect(function(){var N;if(R&&g.current[(N=E[E.length-1])===null||N===void 0?void 0:N.key]){var k;S(g.current[(k=E[E.length-1])===null||k===void 0?void 0:k.key])}},[E,R]),se.createElement(G$,pe({key:r,className:ne(a,"".concat(a,"-").concat(r),p==null?void 0:p.list,o,W(W({},"".concat(a,"-stack"),!!R),"".concat(a,"-stack-expanded"),A)),style:i,keys:E,motionAppear:!0},O,{onAllRemoved:function(){c(r)}}),function(N,k){var M=N.config,L=N.className,F=N.style,j=N.index,B=M,z=B.key,H=B.times,V=String(z),te=M,Y=te.className,J=te.style,G=te.classNames,U=te.styles,q=xt(te,Zoe),X=E.findIndex(function(ue){return ue.key===V}),Q={};if(R){var ee=E.length-1-(X>-1?X:j-1),oe=r==="top"||r==="bottom"?"-50%":"0";if(ee>0){var le,fe,ce;Q.height=A?(le=g.current[V])===null||le===void 0?void 0:le.offsetHeight:y==null?void 0:y.offsetHeight;for(var Te=0,Se=0;Se-1?g.current[V]=ye:delete g.current[V]},prefixCls:a,classNames:G,styles:U,className:ne(Y,p==null?void 0:p.notice),style:J,times:H,key:z,eventKey:z,onNoticeClose:u,hovering:R&&C.length>0})))})},Joe=l.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,a=e.container,o=e.motion,i=e.maxCount,s=e.className,c=e.style,u=e.onAllRemoved,d=e.stack,f=e.renderNotifications,p=l.useState([]),g=re(p,2),h=g[0],b=g[1],y=function(R){var _,$=h.find(function(P){return P.key===R});$==null||(_=$.onClose)===null||_===void 0||_.call($),b(function(P){return P.filter(function(D){return D.key!==R})})};l.useImperativeHandle(t,function(){return{open:function(R){b(function(_){var $=De(_),P=$.findIndex(function(O){return O.key===R.key}),D=Z({},R);if(P>=0){var A;D.times=(((A=_[P])===null||A===void 0?void 0:A.times)||0)+1,$[P]=D}else D.times=0,$.push(D);return i>0&&$.length>i&&($=$.slice(-i)),$})},close:function(R){y(R)},destroy:function(){b([])}}});var S=l.useState({}),v=re(S,2),x=v[0],C=v[1];l.useEffect(function(){var T={};h.forEach(function(R){var _=R.placement,$=_===void 0?"topRight":_;$&&(T[$]=T[$]||[],T[$].push(R))}),Object.keys(x).forEach(function(R){T[R]=T[R]||[]}),C(T)},[h]);var w=function(R){C(function(_){var $=Z({},_),P=$[R]||[];return P.length||delete $[R],$})},E=l.useRef(!1);if(l.useEffect(function(){Object.keys(x).length>0?E.current=!0:E.current&&(u==null||u(),E.current=!1)},[x]),!a)return null;var I=Object.keys(x);return Lr.createPortal(l.createElement(l.Fragment,null,I.map(function(T){var R=x[T],_=l.createElement(Qoe,{key:T,configList:R,placement:T,prefixCls:r,className:s==null?void 0:s(T),style:c==null?void 0:c(T),motion:o,onNoticeClose:y,onAllNoticeRemoved:w,stack:d});return f?f(_,{prefixCls:r,key:T}):_})),a)}),eie=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],tie=function(){return document.body},cM=0;function nie(){for(var e={},t=arguments.length,n=new Array(t),r=0;r0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?tie:t,r=e.motion,a=e.prefixCls,o=e.maxCount,i=e.className,s=e.style,c=e.onAllRemoved,u=e.stack,d=e.renderNotifications,f=xt(e,eie),p=l.useState(),g=re(p,2),h=g[0],b=g[1],y=l.useRef(),S=l.createElement(Joe,{container:h,ref:y,prefixCls:a,motion:r,maxCount:o,className:i,style:s,onAllRemoved:c,stack:u,renderNotifications:d}),v=l.useState([]),x=re(v,2),C=x[0],w=x[1],E=l.useMemo(function(){return{open:function(T){var R=nie(f,T);(R.key===null||R.key===void 0)&&(R.key="rc-notification-".concat(cM),cM+=1),w(function(_){return[].concat(De(_),[{type:"open",config:R}])})},close:function(T){w(function(R){return[].concat(De(R),[{type:"close",key:T}])})},destroy:function(){w(function(T){return[].concat(De(T),[{type:"destroy"}])})}}},[]);return l.useEffect(function(){b(n())}),l.useEffect(function(){y.current&&C.length&&(C.forEach(function(I){switch(I.type){case"open":y.current.open(I.config);break;case"close":y.current.close(I.key);break;case"destroy":y.current.destroy();break}}),w(function(I){return I.filter(function(T){return!C.includes(T)})}))},[C]),[E,S]}var aie={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"},oie=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:aie}))},Hi=l.forwardRef(oie);const Vg=se.createContext(void 0),Wl=100,iie=10,XH=Wl*iie,ZH={Modal:Wl,Drawer:Wl,Popover:Wl,Popconfirm:Wl,Tooltip:Wl,Tour:Wl},sie={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function lie(e){return e in ZH}function Si(e,t){const[,n]=ta(),r=se.useContext(Vg),a=lie(e);let o;if(t!==void 0)o=[t,t];else{let i=r??0;a?i+=(r?0:n.zIndexPopupBase)+ZH[e]:i+=sie[e],o=[r===void 0?t:i,i]}return o}const cie=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:a,colorSuccess:o,colorError:i,colorWarning:s,colorInfo:c,fontSizeLG:u,motionEaseInOutCirc:d,motionDurationSlow:f,marginXS:p,paddingXS:g,borderRadiusLG:h,zIndexPopup:b,contentPadding:y,contentBg:S}=e,v=`${t}-notice`,x=new un("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:g,transform:"translateY(0)",opacity:1}}),C=new un("MessageMoveOut",{"0%":{maxHeight:e.height,padding:g,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),w={padding:g,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:p,fontSize:u},[`${v}-content`]:{display:"inline-block",padding:y,background:S,borderRadius:h,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:o},[`${t}-error > ${n}`]:{color:i},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n}, + margin-bottom ${n} ${u}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:g,[`${t}-icon`]:{marginInlineEnd:a,fontSize:d,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:p,fontSize:i},[`${t}-description`]:{display:"block",color:f}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},Moe=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:a,colorWarning:o,colorWarningBorder:i,colorWarningBg:s,colorError:c,colorErrorBorder:u,colorErrorBg:d,colorInfo:f,colorInfoBorder:p,colorInfoBg:g}=e;return{[t]:{"&-success":lh(a,r,n,e,t),"&-info":lh(g,p,f,e,t),"&-warning":lh(s,i,o,e,t),"&-error":Object.assign(Object.assign({},lh(d,u,c,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},Poe=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:a,fontSizeIcon:o,colorIcon:i,colorIconHover:s}=e;return{[t]:{"&-action":{marginInlineStart:a},[`${t}-close-icon`]:{marginInlineStart:a,padding:0,overflow:"hidden",fontSize:o,lineHeight:K(o),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:i,transition:`color ${r}`,"&:hover":{color:s}}},"&-close-text":{color:i,transition:`color ${r}`,"&:hover":{color:s}}}}},Doe=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),Loe=on("Alert",e=>[Aoe(e),Moe(e),Poe(e)],Doe);var nM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{icon:t,prefixCls:n,type:r}=e,a=Foe[r]||null;return t?Y$(t,l.createElement("span",{className:`${n}-icon`},t),()=>({className:ne(`${n}-icon`,{[t.props.className]:t.props.className})})):l.createElement(a,{className:`${n}-icon`})},Boe=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:a,ariaProps:o}=e,i=r===!0||r===void 0?l.createElement(ta,null):r;return t?l.createElement("button",Object.assign({type:"button",onClick:a,className:`${n}-close-icon`,tabIndex:0},o),i):null},qH=l.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:a,banner:o,className:i,rootClassName:s,style:c,onMouseEnter:u,onMouseLeave:d,onClick:f,afterClose:p,showIcon:g,closable:h,closeText:b,closeIcon:y,action:S,id:v}=e,x=nM(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[w,C]=l.useState(!1),E=l.useRef(null);l.useImperativeHandle(t,()=>({nativeElement:E.current}));const{getPrefixCls:I,direction:T,alert:R}=l.useContext(st),_=I("alert",r),[$,P,D]=Loe(_),A=B=>{var z;C(!0),(z=e.onClose)===null||z===void 0||z.call(e,B)},O=l.useMemo(()=>e.type!==void 0?e.type:o?"warning":"info",[e.type,o]),N=l.useMemo(()=>typeof h=="object"&&h.closeIcon||b?!0:typeof h=="boolean"?h:y!==!1&&y!==null&&y!==void 0?!0:!!(R!=null&&R.closable),[b,y,h,R==null?void 0:R.closable]),k=o&&g===void 0?!0:g,M=ne(_,`${_}-${O}`,{[`${_}-with-description`]:!!n,[`${_}-no-icon`]:!k,[`${_}-banner`]:!!o,[`${_}-rtl`]:T==="rtl"},R==null?void 0:R.className,i,s,D,P),L=Yn(x,{aria:!0,data:!0}),F=l.useMemo(()=>{var B,z;return typeof h=="object"&&h.closeIcon?h.closeIcon:b||(y!==void 0?y:typeof(R==null?void 0:R.closable)=="object"&&(!((B=R==null?void 0:R.closable)===null||B===void 0)&&B.closeIcon)?(z=R==null?void 0:R.closable)===null||z===void 0?void 0:z.closeIcon:R==null?void 0:R.closeIcon)},[y,h,b,R==null?void 0:R.closeIcon]),j=l.useMemo(()=>{const B=h??(R==null?void 0:R.closable);return typeof B=="object"?nM(B,["closeIcon"]):{}},[h,R==null?void 0:R.closable]);return $(l.createElement(ea,{visible:!w,motionName:`${_}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:B=>({maxHeight:B.offsetHeight}),onLeaveEnd:p},(B,z)=>{let{className:H,style:V}=B;return l.createElement("div",Object.assign({id:v,ref:na(E,z),"data-show":!w,className:ne(M,H),style:Object.assign(Object.assign(Object.assign({},R==null?void 0:R.style),c),V),onMouseEnter:u,onMouseLeave:d,onClick:f,role:"alert"},L),k?l.createElement(joe,{description:n,icon:e.icon,prefixCls:_,type:O}):null,l.createElement("div",{className:`${_}-content`},a?l.createElement("div",{className:`${_}-message`},a):null,n?l.createElement("div",{className:`${_}-description`},n):null),S?l.createElement("div",{className:`${_}-action`},S):null,l.createElement(Boe,{isClosable:N,prefixCls:_,closeIcon:F,handleClose:A,ariaProps:j}))}))});function zoe(e,t,n){return t=xc(t),D9(e,v0()?Reflect.construct(t,n||[],xc(e).constructor):t.apply(e,n))}let Hoe=function(e){function t(){var n;return Xn(this,t),n=zoe(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return Io(t,e),Zn(t,[{key:"componentDidCatch",value:function(r,a){this.setState({error:r,info:a})}},{key:"render",value:function(){const{message:r,description:a,id:o,children:i}=this.props,{error:s,info:c}=this.state,u=(c==null?void 0:c.componentStack)||null,d=typeof r>"u"?(s||"").toString():r,f=typeof a>"u"?u:a;return s?l.createElement(qH,{id:o,type:"error",message:d,description:l.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},f)}):i}}])}(l.Component);const An=qH;An.ErrorBoundary=Hoe;const rM=e=>typeof e=="object"&&e!=null&&e.nodeType===1,aM=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",LS=(e,t)=>{if(e.clientHeight{const a=(o=>{if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!a&&(a.clientHeightot||o>e&&i=t&&s>=n?o-e-r:i>t&&sn?i-t+a:0,Uoe=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},oM=(e,t)=>{var n,r,a,o;if(typeof document>"u")return[];const{scrollMode:i,block:s,inline:c,boundary:u,skipOverflowHiddenElements:d}=t,f=typeof u=="function"?u:N=>N!==u;if(!rM(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,g=[];let h=e;for(;rM(h)&&f(h);){if(h=Uoe(h),h===p){g.push(h);break}h!=null&&h===document.body&&LS(h)&&!LS(document.documentElement)||h!=null&&LS(h,d)&&g.push(h)}const b=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,y=(o=(a=window.visualViewport)==null?void 0:a.height)!=null?o:innerHeight,{scrollX:S,scrollY:v}=window,{height:x,width:w,top:C,right:E,bottom:I,left:T}=e.getBoundingClientRect(),{top:R,right:_,bottom:$,left:P}=(N=>{const k=window.getComputedStyle(N);return{top:parseFloat(k.scrollMarginTop)||0,right:parseFloat(k.scrollMarginRight)||0,bottom:parseFloat(k.scrollMarginBottom)||0,left:parseFloat(k.scrollMarginLeft)||0}})(e);let D=s==="start"||s==="nearest"?C-R:s==="end"?I+$:C+x/2-R+$,A=c==="center"?T+w/2-P+_:c==="end"?E+_:T-P;const O=[];for(let N=0;N=0&&T>=0&&I<=y&&E<=b&&C>=F&&I<=B&&T>=z&&E<=j)return O;const H=getComputedStyle(k),V=parseInt(H.borderLeftWidth,10),te=parseInt(H.borderTopWidth,10),Y=parseInt(H.borderRightWidth,10),J=parseInt(H.borderBottomWidth,10);let G=0,U=0;const q="offsetWidth"in k?k.offsetWidth-k.clientWidth-V-Y:0,X="offsetHeight"in k?k.offsetHeight-k.clientHeight-te-J:0,Q="offsetWidth"in k?k.offsetWidth===0?0:L/k.offsetWidth:0,ee="offsetHeight"in k?k.offsetHeight===0?0:M/k.offsetHeight:0;if(p===k)G=s==="start"?D:s==="end"?D-y:s==="nearest"?ch(v,v+y,y,te,J,v+D,v+D+x,x):D-y/2,U=c==="start"?A:c==="center"?A-b/2:c==="end"?A-b:ch(S,S+b,b,V,Y,S+A,S+A+w,w),G=Math.max(0,G+v),U=Math.max(0,U+S);else{G=s==="start"?D-F-te:s==="end"?D-B+J+X:s==="nearest"?ch(F,B,M,te,J+X,D,D+x,x):D-(F+M/2)+X/2,U=c==="start"?A-z-V:c==="center"?A-(z+L/2)+q/2:c==="end"?A-j+Y+q:ch(z,j,L,V,Y+q,A,A+w,w);const{scrollLeft:oe,scrollTop:le}=k;G=ee===0?0:Math.max(0,Math.min(le+G/ee,k.scrollHeight-M/ee+X)),U=Q===0?0:Math.max(0,Math.min(oe+U/Q,k.scrollWidth-L/Q+q)),D+=le-G,A+=oe-U}O.push({el:k,top:G,left:U})}return O},Voe=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function Woe(e,t){if(!e.isConnected||!(a=>{let o=a;for(;o&&o.parentNode;){if(o.parentNode===document)return!0;o=o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode}return!1})(e))return;const n=(a=>{const o=window.getComputedStyle(a);return{top:parseFloat(o.scrollMarginTop)||0,right:parseFloat(o.scrollMarginRight)||0,bottom:parseFloat(o.scrollMarginBottom)||0,left:parseFloat(o.scrollMarginLeft)||0}})(e);if((a=>typeof a=="object"&&typeof a.behavior=="function")(t))return t.behavior(oM(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:a,top:o,left:i}of oM(e,Voe(t))){const s=o-n.top+n.bottom,c=i-n.left+n.right;a.scroll({top:s,left:c,behavior:r})}}function QT(e){return e!=null&&e===e.window}const Goe=e=>{var t,n;if(typeof window>"u")return 0;let r=0;return QT(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!QT(e)&&typeof r!="number"&&(r=(n=((t=e.ownerDocument)!==null&&t!==void 0?t:e).documentElement)===null||n===void 0?void 0:n.scrollTop),r};function qoe(e,t,n,r){const a=n-t;return e/=r/2,e<1?a/2*e*e*e+t:a/2*((e-=2)*e*e+2)+t}function Koe(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:r,duration:a=450}=t,o=n(),i=Goe(o),s=Date.now(),c=()=>{const d=Date.now()-s,f=qoe(d>a?a:d,i,e,a);QT(o)?o.scrollTo(window.pageXOffset,f):o instanceof Document||o.constructor.name==="HTMLDocument"?o.documentElement.scrollTop=f:o.scrollTop=f,d{const[,,,,t]=ra();return t?`${e}-css-var`:""};var Le={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(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=Le.F1&&n<=Le.F12)return!1;switch(n){case Le.ALT:case Le.CAPS_LOCK:case Le.CONTEXT_MENU:case Le.CTRL:case Le.DOWN:case Le.END:case Le.ESC:case Le.HOME:case Le.INSERT:case Le.LEFT:case Le.MAC_FF_META:case Le.META:case Le.NUMLOCK:case Le.NUM_CENTER:case Le.PAGE_DOWN:case Le.PAGE_UP:case Le.PAUSE:case Le.PRINT_SCREEN:case Le.RIGHT:case Le.SHIFT:case Le.UP:case Le.WIN_KEY:case Le.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=Le.ZERO&&t<=Le.NINE||t>=Le.NUM_ZERO&&t<=Le.NUM_MULTIPLY||t>=Le.A&&t<=Le.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case Le.SPACE:case Le.QUESTION_MARK:case Le.NUM_PLUS:case Le.NUM_MINUS:case Le.NUM_PERIOD:case Le.NUM_DIVISION:case Le.SEMICOLON:case Le.DASH:case Le.EQUALS:case Le.COMMA:case Le.PERIOD:case Le.SLASH:case Le.APOSTROPHE:case Le.SINGLE_QUOTE:case Le.OPEN_SQUARE_BRACKET:case Le.BACKSLASH:case Le.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},KH=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,a=e.className,o=e.duration,i=o===void 0?4.5:o,s=e.showProgress,c=e.pauseOnHover,u=c===void 0?!0:c,d=e.eventKey,f=e.content,p=e.closable,g=e.closeIcon,h=g===void 0?"x":g,b=e.props,y=e.onClick,S=e.onNoticeClose,v=e.times,x=e.hovering,w=l.useState(!1),C=re(w,2),E=C[0],I=C[1],T=l.useState(0),R=re(T,2),_=R[0],$=R[1],P=l.useState(0),D=re(P,2),A=D[0],O=D[1],N=x||E,k=i>0&&s,M=function(){S(d)},L=function(V){(V.key==="Enter"||V.code==="Enter"||V.keyCode===Le.ENTER)&&M()};l.useEffect(function(){if(!N&&i>0){var H=Date.now()-A,V=setTimeout(function(){M()},i*1e3-A);return function(){u&&clearTimeout(V),O(Date.now()-H)}}},[i,N,v]),l.useEffect(function(){if(!N&&k&&(u||A===0)){var H=performance.now(),V,te=function Y(){cancelAnimationFrame(V),V=requestAnimationFrame(function(J){var G=J+A-H,U=Math.min(G/(i*1e3),1);$(U*100),U<1&&Y()})};return te(),function(){u&&cancelAnimationFrame(V)}}},[i,A,N,k,v]);var F=l.useMemo(function(){return mt(p)==="object"&&p!==null?p:p?{closeIcon:h}:{}},[p,h]),j=Yn(F,!0),B=100-(!_||_<0?0:_>100?100:_),z="".concat(n,"-notice");return l.createElement("div",pe({},b,{ref:t,className:ne(z,a,W({},"".concat(z,"-closable"),p)),style:r,onMouseEnter:function(V){var te;I(!0),b==null||(te=b.onMouseEnter)===null||te===void 0||te.call(b,V)},onMouseLeave:function(V){var te;I(!1),b==null||(te=b.onMouseLeave)===null||te===void 0||te.call(b,V)},onClick:y}),l.createElement("div",{className:"".concat(z,"-content")},f),p&&l.createElement("a",pe({tabIndex:0,className:"".concat(z,"-close"),onKeyDown:L,"aria-label":"Close"},j,{onClick:function(V){V.preventDefault(),V.stopPropagation(),M()}}),F.closeIcon),k&&l.createElement("progress",{className:"".concat(z,"-progress"),max:"100",value:B},B+"%"))}),YH=se.createContext({}),Yoe=function(t){var n=t.children,r=t.classNames;return se.createElement(YH.Provider,{value:{classNames:r}},n)},iM=8,sM=3,lM=16,Xoe=function(t){var n={offset:iM,threshold:sM,gap:lM};if(t&&mt(t)==="object"){var r,a,o;n.offset=(r=t.offset)!==null&&r!==void 0?r:iM,n.threshold=(a=t.threshold)!==null&&a!==void 0?a:sM,n.gap=(o=t.gap)!==null&&o!==void 0?o:lM}return[!!t,n]},Zoe=["className","style","classNames","styles"],Qoe=function(t){var n=t.configList,r=t.placement,a=t.prefixCls,o=t.className,i=t.style,s=t.motion,c=t.onAllNoticeRemoved,u=t.onNoticeClose,d=t.stack,f=l.useContext(YH),p=f.classNames,g=l.useRef({}),h=l.useState(null),b=re(h,2),y=b[0],S=b[1],v=l.useState([]),x=re(v,2),w=x[0],C=x[1],E=n.map(function(N){return{config:N,key:String(N.key)}}),I=Xoe(d),T=re(I,2),R=T[0],_=T[1],$=_.offset,P=_.threshold,D=_.gap,A=R&&(w.length>0||E.length<=P),O=typeof s=="function"?s(r):s;return l.useEffect(function(){R&&w.length>1&&C(function(N){return N.filter(function(k){return E.some(function(M){var L=M.key;return k===L})})})},[w,E,R]),l.useEffect(function(){var N;if(R&&g.current[(N=E[E.length-1])===null||N===void 0?void 0:N.key]){var k;S(g.current[(k=E[E.length-1])===null||k===void 0?void 0:k.key])}},[E,R]),se.createElement(q$,pe({key:r,className:ne(a,"".concat(a,"-").concat(r),p==null?void 0:p.list,o,W(W({},"".concat(a,"-stack"),!!R),"".concat(a,"-stack-expanded"),A)),style:i,keys:E,motionAppear:!0},O,{onAllRemoved:function(){c(r)}}),function(N,k){var M=N.config,L=N.className,F=N.style,j=N.index,B=M,z=B.key,H=B.times,V=String(z),te=M,Y=te.className,J=te.style,G=te.classNames,U=te.styles,q=xt(te,Zoe),X=E.findIndex(function(ue){return ue.key===V}),Q={};if(R){var ee=E.length-1-(X>-1?X:j-1),oe=r==="top"||r==="bottom"?"-50%":"0";if(ee>0){var le,fe,ce;Q.height=A?(le=g.current[V])===null||le===void 0?void 0:le.offsetHeight:y==null?void 0:y.offsetHeight;for(var Ie=0,be=0;be-1?g.current[V]=xe:delete g.current[V]},prefixCls:a,classNames:G,styles:U,className:ne(Y,p==null?void 0:p.notice),style:J,times:H,key:z,eventKey:z,onNoticeClose:u,hovering:R&&w.length>0})))})},Joe=l.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,a=e.container,o=e.motion,i=e.maxCount,s=e.className,c=e.style,u=e.onAllRemoved,d=e.stack,f=e.renderNotifications,p=l.useState([]),g=re(p,2),h=g[0],b=g[1],y=function(R){var _,$=h.find(function(P){return P.key===R});$==null||(_=$.onClose)===null||_===void 0||_.call($),b(function(P){return P.filter(function(D){return D.key!==R})})};l.useImperativeHandle(t,function(){return{open:function(R){b(function(_){var $=Pe(_),P=$.findIndex(function(O){return O.key===R.key}),D=Z({},R);if(P>=0){var A;D.times=(((A=_[P])===null||A===void 0?void 0:A.times)||0)+1,$[P]=D}else D.times=0,$.push(D);return i>0&&$.length>i&&($=$.slice(-i)),$})},close:function(R){y(R)},destroy:function(){b([])}}});var S=l.useState({}),v=re(S,2),x=v[0],w=v[1];l.useEffect(function(){var T={};h.forEach(function(R){var _=R.placement,$=_===void 0?"topRight":_;$&&(T[$]=T[$]||[],T[$].push(R))}),Object.keys(x).forEach(function(R){T[R]=T[R]||[]}),w(T)},[h]);var C=function(R){w(function(_){var $=Z({},_),P=$[R]||[];return P.length||delete $[R],$})},E=l.useRef(!1);if(l.useEffect(function(){Object.keys(x).length>0?E.current=!0:E.current&&(u==null||u(),E.current=!1)},[x]),!a)return null;var I=Object.keys(x);return Lr.createPortal(l.createElement(l.Fragment,null,I.map(function(T){var R=x[T],_=l.createElement(Qoe,{key:T,configList:R,placement:T,prefixCls:r,className:s==null?void 0:s(T),style:c==null?void 0:c(T),motion:o,onNoticeClose:y,onAllNoticeRemoved:C,stack:d});return f?f(_,{prefixCls:r,key:T}):_})),a)}),eie=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],tie=function(){return document.body},cM=0;function nie(){for(var e={},t=arguments.length,n=new Array(t),r=0;r0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?tie:t,r=e.motion,a=e.prefixCls,o=e.maxCount,i=e.className,s=e.style,c=e.onAllRemoved,u=e.stack,d=e.renderNotifications,f=xt(e,eie),p=l.useState(),g=re(p,2),h=g[0],b=g[1],y=l.useRef(),S=l.createElement(Joe,{container:h,ref:y,prefixCls:a,motion:r,maxCount:o,className:i,style:s,onAllRemoved:c,stack:u,renderNotifications:d}),v=l.useState([]),x=re(v,2),w=x[0],C=x[1],E=l.useMemo(function(){return{open:function(T){var R=nie(f,T);(R.key===null||R.key===void 0)&&(R.key="rc-notification-".concat(cM),cM+=1),C(function(_){return[].concat(Pe(_),[{type:"open",config:R}])})},close:function(T){C(function(R){return[].concat(Pe(R),[{type:"close",key:T}])})},destroy:function(){C(function(T){return[].concat(Pe(T),[{type:"destroy"}])})}}},[]);return l.useEffect(function(){b(n())}),l.useEffect(function(){y.current&&w.length&&(w.forEach(function(I){switch(I.type){case"open":y.current.open(I.config);break;case"close":y.current.close(I.key);break;case"destroy":y.current.destroy();break}}),C(function(I){return I.filter(function(T){return!w.includes(T)})}))},[w]),[E,S]}var aie={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"},oie=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:aie}))},Ui=l.forwardRef(oie);const Gg=se.createContext(void 0),Wl=100,iie=10,XH=Wl*iie,ZH={Modal:Wl,Drawer:Wl,Popover:Wl,Popconfirm:Wl,Tooltip:Wl,Tour:Wl},sie={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function lie(e){return e in ZH}function xi(e,t){const[,n]=ra(),r=se.useContext(Gg),a=lie(e);let o;if(t!==void 0)o=[t,t];else{let i=r??0;a?i+=(r?0:n.zIndexPopupBase)+ZH[e]:i+=sie[e],o=[r===void 0?t:i,i]}return o}const cie=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:a,colorSuccess:o,colorError:i,colorWarning:s,colorInfo:c,fontSizeLG:u,motionEaseInOutCirc:d,motionDurationSlow:f,marginXS:p,paddingXS:g,borderRadiusLG:h,zIndexPopup:b,contentPadding:y,contentBg:S}=e,v=`${t}-notice`,x=new un("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:g,transform:"translateY(0)",opacity:1}}),w=new un("MessageMoveOut",{"0%":{maxHeight:e.height,padding:g,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),C={padding:g,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:p,fontSize:u},[`${v}-content`]:{display:"inline-block",padding:y,background:S,borderRadius:h,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:o},[`${t}-error > ${n}`]:{color:i},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n}, ${t}-loading > ${n}`]:{color:c}};return[{[t]:Object.assign(Object.assign({},nn(e)),{color:a,position:"fixed",top:p,width:"100%",pointerEvents:"none",zIndex:b,[`${t}-move-up`]:{animationFillMode:"forwards"},[` ${t}-move-up-appear, ${t}-move-up-enter `]:{animationName:x,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[` ${t}-move-up-appear${t}-move-up-appear-active, ${t}-move-up-enter${t}-move-up-enter-active - `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:C,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${v}-wrapper`]:Object.assign({},w)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},w),{padding:0,textAlign:"start"})}]},uie=e=>({zIndexPopup:e.zIndexPopupBase+XH+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),QH=on("Message",e=>{const t=zt(e,{height:150});return[cie(t)]},uie);var die=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{let{prefixCls:t,type:n,icon:r,children:a}=e;return l.createElement("div",{className:ne(`${t}-custom-content`,`${t}-${n}`)},r||fie[n],l.createElement("span",null,a))},pie=e=>{const{prefixCls:t,className:n,type:r,icon:a,content:o}=e,i=die(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=l.useContext(st),c=t||s("message"),u=Un(c),[d,f,p]=QH(c,u);return d(l.createElement(KH,Object.assign({},i,{prefixCls:c,className:ne(n,f,`${c}-notice-pure-panel`,p,u),eventKey:"pure",duration:null,content:l.createElement(JH,{prefixCls:c,type:r,icon:a},o)})))};function gie(e,t){return{motionName:t??`${e}-move-up`}}function Y$(e){let t;const n=new Promise(a=>{t=e(()=>{a(!0)})}),r=()=>{t==null||t()};return r.then=(a,o)=>n.then(a,o),r.promise=n,r}var mie=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{let{children:t,prefixCls:n}=e;const r=Un(n),[a,o,i]=QH(n,r);return a(l.createElement(Yoe,{classNames:{list:ne(o,i,r)}},t))},yie=(e,t)=>{let{prefixCls:n,key:r}=t;return l.createElement(bie,{prefixCls:n,key:r},e)},Sie=l.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:a,maxCount:o,duration:i=vie,rtl:s,transitionName:c,onAllRemoved:u}=e,{getPrefixCls:d,getPopupContainer:f,message:p,direction:g}=l.useContext(st),h=r||d("message"),b=()=>({left:"50%",transform:"translateX(-50%)",top:n??hie}),y=()=>ne({[`${h}-rtl`]:s??g==="rtl"}),S=()=>gie(h,c),v=l.createElement("span",{className:`${h}-close-x`},l.createElement(Jr,{className:`${h}-close-icon`})),[x,C]=rie({prefixCls:h,style:b,className:y,motion:S,closable:!1,closeIcon:v,duration:i,getContainer:()=>(a==null?void 0:a())||(f==null?void 0:f())||document.body,maxCount:o,onAllRemoved:u,renderNotifications:yie});return l.useImperativeHandle(t,()=>Object.assign(Object.assign({},x),{prefixCls:h,message:p})),C});let uM=0;function eU(e){const t=l.useRef(null);return $l(),[l.useMemo(()=>{const r=c=>{var u;(u=t.current)===null||u===void 0||u.close(c)},a=c=>{if(!t.current){const E=()=>{};return E.then=()=>{},E}const{open:u,prefixCls:d,message:f}=t.current,p=`${d}-notice`,{content:g,icon:h,type:b,key:y,className:S,style:v,onClose:x}=c,C=mie(c,["content","icon","type","key","className","style","onClose"]);let w=y;return w==null&&(uM+=1,w=`antd-message-${uM}`),Y$(E=>(u(Object.assign(Object.assign({},C),{key:w,content:l.createElement(JH,{prefixCls:d,type:b,icon:h},g),placement:"top",className:ne(b&&`${p}-${b}`,S,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),v),onClose:()=>{x==null||x(),E()}})),()=>{r(w)}))},i={open:a,destroy:c=>{var u;c!==void 0?r(c):(u=t.current)===null||u===void 0||u.destroy()}};return["info","success","warning","error","loading"].forEach(c=>{const u=(d,f,p)=>{let g;d&&typeof d=="object"&&"content"in d?g=d:g={content:d};let h,b;typeof f=="function"?b=f:(h=f,b=p);const y=Object.assign(Object.assign({onClose:b,duration:h},g),{type:c});return a(y)};i[c]=u}),i},[]),l.createElement(Sie,Object.assign({key:"message-holder"},e,{ref:t}))]}function xie(e){return eU(e)}function wie(){const[e,t]=l.useState([]),n=l.useCallback(r=>(t(a=>[].concat(De(a),[r])),()=>{t(a=>a.filter(o=>o!==r))}),[]);return[e,n]}function Hn(){Hn=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(N,k,M){N[k]=M.value},o=typeof Symbol=="function"?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(N,k,M){return Object.defineProperty(N,k,{value:M,enumerable:!0,configurable:!0,writable:!0}),N[k]}try{u({},"")}catch{u=function(M,L,F){return M[L]=F}}function d(N,k,M,L){var F=k&&k.prototype instanceof S?k:S,j=Object.create(F.prototype),B=new A(L||[]);return a(j,"_invoke",{value:_(N,M,B)}),j}function f(N,k,M){try{return{type:"normal",arg:N.call(k,M)}}catch(L){return{type:"throw",arg:L}}}t.wrap=d;var p="suspendedStart",g="suspendedYield",h="executing",b="completed",y={};function S(){}function v(){}function x(){}var C={};u(C,i,function(){return this});var w=Object.getPrototypeOf,E=w&&w(w(O([])));E&&E!==n&&r.call(E,i)&&(C=E);var I=x.prototype=S.prototype=Object.create(C);function T(N){["next","throw","return"].forEach(function(k){u(N,k,function(M){return this._invoke(k,M)})})}function R(N,k){function M(F,j,B,z){var H=f(N[F],N,j);if(H.type!=="throw"){var V=H.arg,te=V.value;return te&&ht(te)=="object"&&r.call(te,"__await")?k.resolve(te.__await).then(function(Y){M("next",Y,B,z)},function(Y){M("throw",Y,B,z)}):k.resolve(te).then(function(Y){V.value=Y,B(V)},function(Y){return M("throw",Y,B,z)})}z(H.arg)}var L;a(this,"_invoke",{value:function(j,B){function z(){return new k(function(H,V){M(j,B,H,V)})}return L=L?L.then(z,z):z()}})}function _(N,k,M){var L=p;return function(F,j){if(L===h)throw Error("Generator is already running");if(L===b){if(F==="throw")throw j;return{value:e,done:!0}}for(M.method=F,M.arg=j;;){var B=M.delegate;if(B){var z=$(B,M);if(z){if(z===y)continue;return z}}if(M.method==="next")M.sent=M._sent=M.arg;else if(M.method==="throw"){if(L===p)throw L=b,M.arg;M.dispatchException(M.arg)}else M.method==="return"&&M.abrupt("return",M.arg);L=h;var H=f(N,k,M);if(H.type==="normal"){if(L=M.done?b:g,H.arg===y)continue;return{value:H.arg,done:M.done}}H.type==="throw"&&(L=b,M.method="throw",M.arg=H.arg)}}}function $(N,k){var M=k.method,L=N.iterator[M];if(L===e)return k.delegate=null,M==="throw"&&N.iterator.return&&(k.method="return",k.arg=e,$(N,k),k.method==="throw")||M!=="return"&&(k.method="throw",k.arg=new TypeError("The iterator does not provide a '"+M+"' method")),y;var F=f(L,N.iterator,k.arg);if(F.type==="throw")return k.method="throw",k.arg=F.arg,k.delegate=null,y;var j=F.arg;return j?j.done?(k[N.resultName]=j.value,k.next=N.nextLoc,k.method!=="return"&&(k.method="next",k.arg=e),k.delegate=null,y):j:(k.method="throw",k.arg=new TypeError("iterator result is not an object"),k.delegate=null,y)}function P(N){var k={tryLoc:N[0]};1 in N&&(k.catchLoc=N[1]),2 in N&&(k.finallyLoc=N[2],k.afterLoc=N[3]),this.tryEntries.push(k)}function D(N){var k=N.completion||{};k.type="normal",delete k.arg,N.completion=k}function A(N){this.tryEntries=[{tryLoc:"root"}],N.forEach(P,this),this.reset(!0)}function O(N){if(N||N===""){var k=N[i];if(k)return k.call(N);if(typeof N.next=="function")return N;if(!isNaN(N.length)){var M=-1,L=function F(){for(;++M=0;--F){var j=this.tryEntries[F],B=j.completion;if(j.tryLoc==="root")return L("end");if(j.tryLoc<=this.prev){var z=r.call(j,"catchLoc"),H=r.call(j,"finallyLoc");if(z&&H){if(this.prev=0;--L){var F=this.tryEntries[L];if(F.tryLoc<=this.prev&&r.call(F,"finallyLoc")&&this.prev=0;--M){var L=this.tryEntries[M];if(L.finallyLoc===k)return this.complete(L.completion,L.afterLoc),D(L),y}},catch:function(k){for(var M=this.tryEntries.length-1;M>=0;--M){var L=this.tryEntries[M];if(L.tryLoc===k){var F=L.completion;if(F.type==="throw"){var j=F.arg;D(L)}return j}}throw Error("illegal catch attempt")},delegateYield:function(k,M,L){return this.delegate={iterator:O(k),resultName:M,nextLoc:L},this.method==="next"&&(this.arg=e),y}},t}function dM(e,t,n,r,a,o,i){try{var s=e[o](i),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,a)}function po(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var o=e.apply(t,n);function i(c){dM(o,r,a,i,s,"next",c)}function s(c){dM(o,r,a,i,s,"throw",c)}i(void 0)})}}var Wg=Z({},Ree),Cie=Wg.version,Eie=Wg.render,Iie=Wg.unmountComponentAtNode,w0;try{var Tie=Number((Cie||"").split(".")[0]);Tie>=18&&(w0=Wg.createRoot)}catch{}function fM(e){var t=Wg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&ht(t)==="object"&&(t.usingClientEntryPoint=e)}var cb="__rc_react_root__";function Rie(e,t){fM(!0);var n=t[cb]||w0(t);fM(!1),n.render(e),t[cb]=n}function _ie(e,t){Eie(e,t)}function X$(e,t){if(w0){Rie(e,t);return}_ie(e,t)}function $ie(e){return QT.apply(this,arguments)}function QT(){return QT=po(Hn().mark(function e(t){return Hn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var a;(a=t[cb])===null||a===void 0||a.unmount(),delete t[cb]}));case 1:case"end":return r.stop()}},e)})),QT.apply(this,arguments)}function Oie(e){Iie(e)}function tU(e){return JT.apply(this,arguments)}function JT(){return JT=po(Hn().mark(function e(t){return Hn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(w0===void 0){r.next=2;break}return r.abrupt("return",$ie(t));case 2:Oie(t);case 3:case"end":return r.stop()}},e)})),JT.apply(this,arguments)}const LS=()=>({height:0,opacity:0}),pM=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},Nie=e=>({height:e?e.offsetHeight:0}),FS=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",Sd=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:cg}-motion-collapse`,onAppearStart:LS,onEnterStart:LS,onAppearActive:pM,onEnterActive:pM,onLeaveStart:Nie,onLeaveActive:LS,onAppearEnd:FS,onEnterEnd:FS,onLeaveEnd:FS,motionDeadline:500}},xa=(e,t,n)=>n!==void 0?n:`${e}-${t}`,Vd=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var a=e.getBoundingClientRect(),o=a.width,i=a.height;if(o||i)return!0}}return!1},kie=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},Aie=_ae("Wave",e=>[kie(e)]),C0=`${cg}-wave-target`;function Mie(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}function jS(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&Mie(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function Pie(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return jS(t)?t:jS(n)?n:jS(r)?r:null}function BS(e){return Number.isNaN(e)?0:e}const Die=e=>{const{className:t,target:n,component:r}=e,a=l.useRef(null),[o,i]=l.useState(null),[s,c]=l.useState([]),[u,d]=l.useState(0),[f,p]=l.useState(0),[g,h]=l.useState(0),[b,y]=l.useState(0),[S,v]=l.useState(!1),x={left:u,top:f,width:g,height:b,borderRadius:s.map(E=>`${E}px`).join(" ")};o&&(x["--wave-color"]=o);function C(){const E=getComputedStyle(n);i(Pie(n));const I=E.position==="static",{borderLeftWidth:T,borderTopWidth:R}=E;d(I?n.offsetLeft:BS(-parseFloat(T))),p(I?n.offsetTop:BS(-parseFloat(R))),h(n.offsetWidth),y(n.offsetHeight);const{borderTopLeftRadius:_,borderTopRightRadius:$,borderBottomLeftRadius:P,borderBottomRightRadius:D}=E;c([_,$,D,P].map(A=>BS(parseFloat(A))))}if(l.useEffect(()=>{if(n){const E=Ut(()=>{C(),v(!0)});let I;return typeof ResizeObserver<"u"&&(I=new ResizeObserver(C),I.observe(n)),()=>{Ut.cancel(E),I==null||I.disconnect()}}},[]),!S)return null;const w=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(C0));return l.createElement(Qr,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(E,I)=>{var T;if(I.deadline||I.propertyName==="opacity"){const R=(T=a.current)===null||T===void 0?void 0:T.parentElement;tU(R).then(()=>{R==null||R.remove()})}return!1}},(E,I)=>{let{className:T}=E;return l.createElement("div",{ref:ea(a,I),className:ne(t,T,{"wave-quick":w}),style:x})})},Lie=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const a=document.createElement("div");a.style.position="absolute",a.style.left="0px",a.style.top="0px",e==null||e.insertBefore(a,e==null?void 0:e.firstChild),X$(l.createElement(Die,Object.assign({},t,{target:e})),a)},Fie=(e,t,n)=>{const{wave:r}=l.useContext(st),[,a,o]=ta(),i=Wt(u=>{const d=e.current;if(r!=null&&r.disabled||!d)return;const f=d.querySelector(`.${C0}`)||d,{showEffect:p}=r||{};(p||Lie)(f,{className:t,token:a,component:n,event:u,hashId:o})}),s=l.useRef();return u=>{Ut.cancel(s.current),s.current=Ut(()=>{i(u)})}},Gg=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:a}=l.useContext(st),o=l.useRef(null),i=a("wave"),[,s]=Aie(i),c=Fie(o,ne(i,s),r);if(se.useEffect(()=>{const d=o.current;if(!d||d.nodeType!==1||n)return;const f=p=>{!Vd(p.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")||d.className.includes("-leave")||c(p)};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[n]),!se.isValidElement(t))return t??null;const u=gi(t)?ea(t.ref,o):o;return Cr(t,{ref:u})},Er=e=>{const t=se.useContext(Cc);return se.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},jie=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},Bie=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{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"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},zie=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},nU=on("Space",e=>{const t=zt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[Bie(t),zie(t),jie(t)]},()=>({}),{resetStyle:!1});var rU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const n=l.useContext(E0),r=l.useMemo(()=>{if(!n)return"";const{compactDirection:a,isFirstItem:o,isLastItem:i}=n,s=a==="vertical"?"-vertical-":"-";return ne(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:o,[`${e}-compact${s}last-item`]:i,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},Hie=e=>{let{children:t}=e;return l.createElement(E0.Provider,{value:null},t)},Uie=e=>{var{children:t}=e,n=rU(e,["children"]);return l.createElement(E0.Provider,{value:n},t)},Vie=e=>{const{getPrefixCls:t,direction:n}=l.useContext(st),{size:r,direction:a,block:o,prefixCls:i,className:s,rootClassName:c,children:u}=e,d=rU(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=Er(x=>r??x),p=t("space-compact",i),[g,h]=nU(p),b=ne(p,h,{[`${p}-rtl`]:n==="rtl",[`${p}-block`]:o,[`${p}-vertical`]:a==="vertical"},s,c),y=l.useContext(E0),S=vr(u),v=l.useMemo(()=>S.map((x,C)=>{const w=(x==null?void 0:x.key)||`${p}-item-${C}`;return l.createElement(Uie,{key:w,compactSize:f,compactDirection:a,isFirstItem:C===0&&(!y||(y==null?void 0:y.isFirstItem)),isLastItem:C===S.length-1&&(!y||(y==null?void 0:y.isLastItem))},x)}),[r,S,y]);return S.length===0?null:g(l.createElement("div",Object.assign({className:b},d),v))};var Wie=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:t,direction:n}=l.useContext(st),{prefixCls:r,size:a,className:o}=e,i=Wie(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,c]=ta();let u="";switch(a){case"large":u="lg";break;case"small":u="sm";break}const d=ne(s,{[`${s}-${u}`]:u,[`${s}-rtl`]:n==="rtl"},o,c);return l.createElement(aU.Provider,{value:a},l.createElement("div",Object.assign({},i,{className:d})))},gM=/^[\u4e00-\u9fa5]{2}$/,eR=gM.test.bind(gM);function oU(e){return e==="danger"?{danger:!0}:{type:e}}function mM(e){return typeof e=="string"}function zS(e){return e==="text"||e==="link"}function qie(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&mM(e.type)&&eR(e.props.children)?Cr(e,{children:e.props.children.split("").join(n)}):mM(e)?eR(e)?se.createElement("span",null,e.split("").join(n)):se.createElement("span",null,e):GH(e)?se.createElement("span",null,e):e}function Kie(e,t){let n=!1;const r=[];return se.Children.forEach(e,a=>{const o=typeof a,i=o==="string"||o==="number";if(n&&i){const s=r.length-1,c=r[s];r[s]=`${c}${a}`}else r.push(a);n=i}),se.Children.map(r,a=>qie(a,t))}const iU=l.forwardRef((e,t)=>{const{className:n,style:r,children:a,prefixCls:o}=e,i=ne(`${o}-icon`,n);return se.createElement("span",{ref:t,className:i,style:r},a)}),hM=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:a,iconClassName:o}=e,i=ne(`${n}-loading-icon`,r);return se.createElement(iU,{prefixCls:n,className:i,style:a,ref:t},se.createElement(Hi,{className:o}))}),HS=()=>({width:0,opacity:0,transform:"scale(0)"}),US=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Yie=e=>{const{prefixCls:t,loading:n,existIcon:r,className:a,style:o}=e,i=!!n;return r?se.createElement(hM,{prefixCls:t,className:a,style:o}):se.createElement(Qr,{visible:i,motionName:`${t}-loading-icon-motion`,motionLeave:i,removeOnLeave:!0,onAppearStart:HS,onAppearActive:US,onEnterStart:HS,onEnterActive:US,onLeaveStart:US,onLeaveActive:HS},(s,c)=>{let{className:u,style:d}=s;return se.createElement(hM,{prefixCls:t,className:a,style:Object.assign(Object.assign({},o),d),ref:c,iconClassName:u})})},vM=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Xie=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:a,colorErrorHover:o}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},vM(`${t}-primary`,a),vM(`${t}-danger`,o)]}},sU=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return zt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},lU=e=>{var t,n,r,a,o,i;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,c=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,u=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,d=(a=e.contentLineHeight)!==null&&a!==void 0?a:uv(s),f=(o=e.contentLineHeightSM)!==null&&o!==void 0?o:uv(c),p=(i=e.contentLineHeightLG)!==null&&i!==void 0?i:uv(u);return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,contentFontSize:s,contentFontSizeSM:c,contentFontSizeLG:u,contentLineHeight:d,contentLineHeightSM:f,contentLineHeightLG:p,paddingBlock:Math.max((e.controlHeight-s*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-u*p)/2-e.lineWidth,0)}},Zie=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${K(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:1},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},zi(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},Cs=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),Qie=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),Jie=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),ese=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),dg=(e,t,n,r,a,o,i,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},Cs(e,Object.assign({background:t},i),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:a||void 0,borderColor:o||void 0}})}),Z$=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},ese(e))}),cU=e=>Object.assign({},Z$(e)),ub=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),uU=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},cU(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),Cs(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),dg(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},Cs(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),dg(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),Z$(e))}),tse=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},cU(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),Cs(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),dg(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},Cs(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),dg(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Z$(e))}),nse=e=>Object.assign(Object.assign({},uU(e)),{borderStyle:"dashed"}),rse=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},Cs(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),ub(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Cs(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),ub(e))}),ase=e=>Object.assign(Object.assign(Object.assign({},Cs(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),ub(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},ub(e)),Cs(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))}),ose=e=>{const{componentCls:t}=e;return{[`${t}-default`]:uU(e),[`${t}-primary`]:tse(e),[`${t}-dashed`]:nse(e),[`${t}-link`]:rse(e),[`${t}-text`]:ase(e),[`${t}-ghost`]:dg(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},Q$=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:a,lineHeight:o,borderRadius:i,buttonPaddingHorizontal:s,iconCls:c,buttonPaddingVertical:u}=e,d=`${n}-icon-only`;return[{[t]:{fontSize:a,lineHeight:o,height:r,padding:`${K(u)} ${K(s)}`,borderRadius:i,[`&${d}`]:{width:r,paddingInline:0,[`&${n}-compact-item`]:{flex:"none"},[`&${n}-round`]:{width:"auto"},[c]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:Qie(e)},{[`${n}${n}-round${t}`]:Jie(e)}]},ise=e=>{const t=zt(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return Q$(t,e.componentCls)},sse=e=>{const t=zt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Q$(t,`${e.componentCls}-sm`)},lse=e=>{const t=zt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Q$(t,`${e.componentCls}-lg`)},cse=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},use=on("Button",e=>{const t=sU(e);return[Zie(t),ise(t),sse(t),lse(t),cse(t),ose(t),Xie(t)]},lU,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function dse(e,t,n){const{focusElCls:r,focus:a,borderElCls:o}=n,i=o?"> *":"",s=["hover",a?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${i}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${i}`]:{zIndex:0}})}}function fse(e,t,n){const{borderElCls:r}=n,a=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${a}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function qg(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},dse(e,r,t)),fse(n,r,t))}}function pse(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function gse(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function mse(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},pse(e,t)),gse(e.componentCls,t))}}const hse=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${K(e.lineWidth)} * 2)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${K(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},vse=Hd(["Button","compact"],e=>{const t=sU(e);return[qg(t),mse(t),hse(t)]},lU);var bse=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r,a;const{loading:o=!1,prefixCls:i,type:s,danger:c=!1,shape:u="default",size:d,styles:f,disabled:p,className:g,rootClassName:h,children:b,icon:y,iconPosition:S="start",ghost:v=!1,block:x=!1,htmlType:C="button",classNames:w,style:E={},autoInsertSpace:I}=e,T=bse(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),R=s||"default",{getPrefixCls:_,direction:$,button:P}=l.useContext(st),D=(n=I??(P==null?void 0:P.autoInsertSpace))!==null&&n!==void 0?n:!0,A=_("btn",i),[O,N,k]=use(A),M=l.useContext(Zr),L=p??M,F=l.useContext(aU),j=l.useMemo(()=>yse(o),[o]),[B,z]=l.useState(j.loading),[H,V]=l.useState(!1),Y=ea(t,l.createRef()),J=l.Children.count(b)===1&&!y&&!zS(R);l.useEffect(()=>{let ue=null;j.delay>0?ue=setTimeout(()=>{ue=null,z(!0)},j.delay):z(j.loading);function ye(){ue&&(clearTimeout(ue),ue=null)}return ye},[j]),l.useEffect(()=>{if(!Y||!Y.current||!D)return;const ue=Y.current.textContent;J&&eR(ue)?H||V(!0):H&&V(!1)},[Y]);const G=ue=>{const{onClick:ye}=e;if(B||L){ue.preventDefault();return}ye==null||ye(ue)},{compactSize:U,compactItemClassnames:q}=Os(A,$),X={large:"lg",small:"sm",middle:void 0},Q=Er(ue=>{var ye,Ee;return(Ee=(ye=d??U)!==null&&ye!==void 0?ye:F)!==null&&Ee!==void 0?Ee:ue}),ee=Q&&X[Q]||"",oe=B?"loading":y,le=On(T,["navigate"]),fe=ne(A,N,k,{[`${A}-${u}`]:u!=="default"&&u,[`${A}-${R}`]:R,[`${A}-${ee}`]:ee,[`${A}-icon-only`]:!b&&b!==0&&!!oe,[`${A}-background-ghost`]:v&&!zS(R),[`${A}-loading`]:B,[`${A}-two-chinese-chars`]:H&&D&&!B,[`${A}-block`]:x,[`${A}-dangerous`]:c,[`${A}-rtl`]:$==="rtl",[`${A}-icon-end`]:S==="end"},q,g,h,P==null?void 0:P.className),ce=Object.assign(Object.assign({},P==null?void 0:P.style),E),Te=ne(w==null?void 0:w.icon,(r=P==null?void 0:P.classNames)===null||r===void 0?void 0:r.icon),Se=Object.assign(Object.assign({},(f==null?void 0:f.icon)||{}),((a=P==null?void 0:P.styles)===null||a===void 0?void 0:a.icon)||{}),ve=y&&!B?se.createElement(iU,{prefixCls:A,className:Te,style:Se},y):se.createElement(Yie,{existIcon:!!y,prefixCls:A,loading:B}),ae=b||b===0?Kie(b,J&&D):null;if(le.href!==void 0)return O(se.createElement("a",Object.assign({},le,{className:ne(fe,{[`${A}-disabled`]:L}),href:L?void 0:le.href,style:ce,onClick:G,ref:Y,tabIndex:L?-1:0}),ve,ae));let ie=se.createElement("button",Object.assign({},T,{type:C,className:fe,style:ce,onClick:G,disabled:L,ref:Y}),ve,ae,!!q&&se.createElement(vse,{key:"compact",prefixCls:A}));return zS(R)||(ie=se.createElement(Gg,{component:"Button",disabled:B},ie)),O(ie)}),ut=Sse;ut.Group=Gie;ut.__ANT_BUTTON=!0;function VS(e){return!!(e!=null&&e.then)}const dU=e=>{const{type:t,children:n,prefixCls:r,buttonProps:a,close:o,autoFocus:i,emitEvent:s,isSilent:c,quitOnNullishReturnValue:u,actionFn:d}=e,f=l.useRef(!1),p=l.useRef(null),[g,h]=Ec(!1),b=function(){o==null||o.apply(void 0,arguments)};l.useEffect(()=>{let v=null;return i&&(v=setTimeout(()=>{var x;(x=p.current)===null||x===void 0||x.focus()})),()=>{v&&clearTimeout(v)}},[]);const y=v=>{VS(v)&&(h(!0),v.then(function(){h(!1,!0),b.apply(void 0,arguments),f.current=!1},x=>{if(h(!1,!0),f.current=!1,!(c!=null&&c()))return Promise.reject(x)}))},S=v=>{if(f.current)return;if(f.current=!0,!d){b();return}let x;if(s){if(x=d(v),u&&!VS(x)){f.current=!1,b(v);return}}else if(d.length)x=d(o),f.current=!1;else if(x=d(),!VS(x)){b();return}y(x)};return l.createElement(ut,Object.assign({},oU(t),{onClick:S,loading:g,prefixCls:r},a,{ref:p}),n)},Kg=se.createContext({}),{Provider:fU}=Kg,bM=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:a,rootPrefixCls:o,close:i,onCancel:s,onConfirm:c}=l.useContext(Kg);return a?se.createElement(dU,{isSilent:r,actionFn:s,close:function(){i==null||i.apply(void 0,arguments),c==null||c(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${o}-btn`},n):null},yM=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:a,okTextLocale:o,okType:i,onConfirm:s,onOk:c}=l.useContext(Kg);return se.createElement(dU,{isSilent:n,type:i||"primary",actionFn:c,close:function(){t==null||t.apply(void 0,arguments),s==null||s(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${a}-btn`},o)};var pU=l.createContext(null),SM=[];function xse(e,t){var n=l.useState(function(){if(!Xr())return null;var h=document.createElement("div");return h}),r=re(n,1),a=r[0],o=l.useRef(!1),i=l.useContext(pU),s=l.useState(SM),c=re(s,2),u=c[0],d=c[1],f=i||(o.current?void 0:function(h){d(function(b){var y=[h].concat(De(b));return y})});function p(){a.parentElement||document.body.appendChild(a),o.current=!0}function g(){var h;(h=a.parentElement)===null||h===void 0||h.removeChild(a),o.current=!1}return Xt(function(){return e?i?i(p):p():g(),g},[e]),Xt(function(){u.length&&(u.forEach(function(h){return h()}),d(SM))},[u]),[a,f]}var WS;function gU(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var a,o;if(e){var i=getComputedStyle(e);r.scrollbarColor=i.scrollbarColor,r.scrollbarWidth=i.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(s.width,10),u=parseInt(s.height,10);try{var d=c?"width: ".concat(s.width,";"):"",f=u?"height: ".concat(s.height,";"):"";ms(` + `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:w,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${v}-wrapper`]:Object.assign({},C)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},C),{padding:0,textAlign:"start"})}]},uie=e=>({zIndexPopup:e.zIndexPopupBase+XH+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),QH=on("Message",e=>{const t=zt(e,{height:150});return[cie(t)]},uie);var die=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{let{prefixCls:t,type:n,icon:r,children:a}=e;return l.createElement("div",{className:ne(`${t}-custom-content`,`${t}-${n}`)},r||fie[n],l.createElement("span",null,a))},pie=e=>{const{prefixCls:t,className:n,type:r,icon:a,content:o}=e,i=die(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=l.useContext(st),c=t||s("message"),u=Un(c),[d,f,p]=QH(c,u);return d(l.createElement(KH,Object.assign({},i,{prefixCls:c,className:ne(n,f,`${c}-notice-pure-panel`,p,u),eventKey:"pure",duration:null,content:l.createElement(JH,{prefixCls:c,type:r,icon:a},o)})))};function gie(e,t){return{motionName:t??`${e}-move-up`}}function X$(e){let t;const n=new Promise(a=>{t=e(()=>{a(!0)})}),r=()=>{t==null||t()};return r.then=(a,o)=>n.then(a,o),r.promise=n,r}var mie=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{let{children:t,prefixCls:n}=e;const r=Un(n),[a,o,i]=QH(n,r);return a(l.createElement(Yoe,{classNames:{list:ne(o,i,r)}},t))},yie=(e,t)=>{let{prefixCls:n,key:r}=t;return l.createElement(bie,{prefixCls:n,key:r},e)},Sie=l.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:a,maxCount:o,duration:i=vie,rtl:s,transitionName:c,onAllRemoved:u}=e,{getPrefixCls:d,getPopupContainer:f,message:p,direction:g}=l.useContext(st),h=r||d("message"),b=()=>({left:"50%",transform:"translateX(-50%)",top:n??hie}),y=()=>ne({[`${h}-rtl`]:s??g==="rtl"}),S=()=>gie(h,c),v=l.createElement("span",{className:`${h}-close-x`},l.createElement(ta,{className:`${h}-close-icon`})),[x,w]=rie({prefixCls:h,style:b,className:y,motion:S,closable:!1,closeIcon:v,duration:i,getContainer:()=>(a==null?void 0:a())||(f==null?void 0:f())||document.body,maxCount:o,onAllRemoved:u,renderNotifications:yie});return l.useImperativeHandle(t,()=>Object.assign(Object.assign({},x),{prefixCls:h,message:p})),w});let uM=0;function eU(e){const t=l.useRef(null);return $l(),[l.useMemo(()=>{const r=c=>{var u;(u=t.current)===null||u===void 0||u.close(c)},a=c=>{if(!t.current){const E=()=>{};return E.then=()=>{},E}const{open:u,prefixCls:d,message:f}=t.current,p=`${d}-notice`,{content:g,icon:h,type:b,key:y,className:S,style:v,onClose:x}=c,w=mie(c,["content","icon","type","key","className","style","onClose"]);let C=y;return C==null&&(uM+=1,C=`antd-message-${uM}`),X$(E=>(u(Object.assign(Object.assign({},w),{key:C,content:l.createElement(JH,{prefixCls:d,type:b,icon:h},g),placement:"top",className:ne(b&&`${p}-${b}`,S,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),v),onClose:()=>{x==null||x(),E()}})),()=>{r(C)}))},i={open:a,destroy:c=>{var u;c!==void 0?r(c):(u=t.current)===null||u===void 0||u.destroy()}};return["info","success","warning","error","loading"].forEach(c=>{const u=(d,f,p)=>{let g;d&&typeof d=="object"&&"content"in d?g=d:g={content:d};let h,b;typeof f=="function"?b=f:(h=f,b=p);const y=Object.assign(Object.assign({onClose:b,duration:h},g),{type:c});return a(y)};i[c]=u}),i},[]),l.createElement(Sie,Object.assign({key:"message-holder"},e,{ref:t}))]}function xie(e){return eU(e)}function wie(){const[e,t]=l.useState([]),n=l.useCallback(r=>(t(a=>[].concat(Pe(a),[r])),()=>{t(a=>a.filter(o=>o!==r))}),[]);return[e,n]}function Hn(){Hn=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(N,k,M){N[k]=M.value},o=typeof Symbol=="function"?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(N,k,M){return Object.defineProperty(N,k,{value:M,enumerable:!0,configurable:!0,writable:!0}),N[k]}try{u({},"")}catch{u=function(M,L,F){return M[L]=F}}function d(N,k,M,L){var F=k&&k.prototype instanceof S?k:S,j=Object.create(F.prototype),B=new A(L||[]);return a(j,"_invoke",{value:_(N,M,B)}),j}function f(N,k,M){try{return{type:"normal",arg:N.call(k,M)}}catch(L){return{type:"throw",arg:L}}}t.wrap=d;var p="suspendedStart",g="suspendedYield",h="executing",b="completed",y={};function S(){}function v(){}function x(){}var w={};u(w,i,function(){return this});var C=Object.getPrototypeOf,E=C&&C(C(O([])));E&&E!==n&&r.call(E,i)&&(w=E);var I=x.prototype=S.prototype=Object.create(w);function T(N){["next","throw","return"].forEach(function(k){u(N,k,function(M){return this._invoke(k,M)})})}function R(N,k){function M(F,j,B,z){var H=f(N[F],N,j);if(H.type!=="throw"){var V=H.arg,te=V.value;return te&&mt(te)=="object"&&r.call(te,"__await")?k.resolve(te.__await).then(function(Y){M("next",Y,B,z)},function(Y){M("throw",Y,B,z)}):k.resolve(te).then(function(Y){V.value=Y,B(V)},function(Y){return M("throw",Y,B,z)})}z(H.arg)}var L;a(this,"_invoke",{value:function(j,B){function z(){return new k(function(H,V){M(j,B,H,V)})}return L=L?L.then(z,z):z()}})}function _(N,k,M){var L=p;return function(F,j){if(L===h)throw Error("Generator is already running");if(L===b){if(F==="throw")throw j;return{value:e,done:!0}}for(M.method=F,M.arg=j;;){var B=M.delegate;if(B){var z=$(B,M);if(z){if(z===y)continue;return z}}if(M.method==="next")M.sent=M._sent=M.arg;else if(M.method==="throw"){if(L===p)throw L=b,M.arg;M.dispatchException(M.arg)}else M.method==="return"&&M.abrupt("return",M.arg);L=h;var H=f(N,k,M);if(H.type==="normal"){if(L=M.done?b:g,H.arg===y)continue;return{value:H.arg,done:M.done}}H.type==="throw"&&(L=b,M.method="throw",M.arg=H.arg)}}}function $(N,k){var M=k.method,L=N.iterator[M];if(L===e)return k.delegate=null,M==="throw"&&N.iterator.return&&(k.method="return",k.arg=e,$(N,k),k.method==="throw")||M!=="return"&&(k.method="throw",k.arg=new TypeError("The iterator does not provide a '"+M+"' method")),y;var F=f(L,N.iterator,k.arg);if(F.type==="throw")return k.method="throw",k.arg=F.arg,k.delegate=null,y;var j=F.arg;return j?j.done?(k[N.resultName]=j.value,k.next=N.nextLoc,k.method!=="return"&&(k.method="next",k.arg=e),k.delegate=null,y):j:(k.method="throw",k.arg=new TypeError("iterator result is not an object"),k.delegate=null,y)}function P(N){var k={tryLoc:N[0]};1 in N&&(k.catchLoc=N[1]),2 in N&&(k.finallyLoc=N[2],k.afterLoc=N[3]),this.tryEntries.push(k)}function D(N){var k=N.completion||{};k.type="normal",delete k.arg,N.completion=k}function A(N){this.tryEntries=[{tryLoc:"root"}],N.forEach(P,this),this.reset(!0)}function O(N){if(N||N===""){var k=N[i];if(k)return k.call(N);if(typeof N.next=="function")return N;if(!isNaN(N.length)){var M=-1,L=function F(){for(;++M=0;--F){var j=this.tryEntries[F],B=j.completion;if(j.tryLoc==="root")return L("end");if(j.tryLoc<=this.prev){var z=r.call(j,"catchLoc"),H=r.call(j,"finallyLoc");if(z&&H){if(this.prev=0;--L){var F=this.tryEntries[L];if(F.tryLoc<=this.prev&&r.call(F,"finallyLoc")&&this.prev=0;--M){var L=this.tryEntries[M];if(L.finallyLoc===k)return this.complete(L.completion,L.afterLoc),D(L),y}},catch:function(k){for(var M=this.tryEntries.length-1;M>=0;--M){var L=this.tryEntries[M];if(L.tryLoc===k){var F=L.completion;if(F.type==="throw"){var j=F.arg;D(L)}return j}}throw Error("illegal catch attempt")},delegateYield:function(k,M,L){return this.delegate={iterator:O(k),resultName:M,nextLoc:L},this.method==="next"&&(this.arg=e),y}},t}function dM(e,t,n,r,a,o,i){try{var s=e[o](i),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,a)}function go(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var o=e.apply(t,n);function i(c){dM(o,r,a,i,s,"next",c)}function s(c){dM(o,r,a,i,s,"throw",c)}i(void 0)})}}var qg=Z({},Ree),Cie=qg.version,Eie=qg.render,Iie=qg.unmountComponentAtNode,C0;try{var Tie=Number((Cie||"").split(".")[0]);Tie>=18&&(C0=qg.createRoot)}catch{}function fM(e){var t=qg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&mt(t)==="object"&&(t.usingClientEntryPoint=e)}var ub="__rc_react_root__";function Rie(e,t){fM(!0);var n=t[ub]||C0(t);fM(!1),n.render(e),t[ub]=n}function _ie(e,t){Eie(e,t)}function Z$(e,t){if(C0){Rie(e,t);return}_ie(e,t)}function $ie(e){return JT.apply(this,arguments)}function JT(){return JT=go(Hn().mark(function e(t){return Hn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var a;(a=t[ub])===null||a===void 0||a.unmount(),delete t[ub]}));case 1:case"end":return r.stop()}},e)})),JT.apply(this,arguments)}function Oie(e){Iie(e)}function tU(e){return eR.apply(this,arguments)}function eR(){return eR=go(Hn().mark(function e(t){return Hn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(C0===void 0){r.next=2;break}return r.abrupt("return",$ie(t));case 2:Oie(t);case 3:case"end":return r.stop()}},e)})),eR.apply(this,arguments)}const FS=()=>({height:0,opacity:0}),pM=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},Nie=e=>({height:e?e.offsetHeight:0}),jS=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",Sd=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:dg}-motion-collapse`,onAppearStart:FS,onEnterStart:FS,onAppearActive:pM,onEnterActive:pM,onLeaveStart:Nie,onLeaveActive:FS,onAppearEnd:jS,onEnterEnd:jS,onLeaveEnd:jS,motionDeadline:500}},Ca=(e,t,n)=>n!==void 0?n:`${e}-${t}`,Vd=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var a=e.getBoundingClientRect(),o=a.width,i=a.height;if(o||i)return!0}}return!1},kie=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},Aie=_ae("Wave",e=>[kie(e)]),E0=`${dg}-wave-target`;function Mie(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}function BS(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&Mie(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function Pie(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return BS(t)?t:BS(n)?n:BS(r)?r:null}function zS(e){return Number.isNaN(e)?0:e}const Die=e=>{const{className:t,target:n,component:r}=e,a=l.useRef(null),[o,i]=l.useState(null),[s,c]=l.useState([]),[u,d]=l.useState(0),[f,p]=l.useState(0),[g,h]=l.useState(0),[b,y]=l.useState(0),[S,v]=l.useState(!1),x={left:u,top:f,width:g,height:b,borderRadius:s.map(E=>`${E}px`).join(" ")};o&&(x["--wave-color"]=o);function w(){const E=getComputedStyle(n);i(Pie(n));const I=E.position==="static",{borderLeftWidth:T,borderTopWidth:R}=E;d(I?n.offsetLeft:zS(-parseFloat(T))),p(I?n.offsetTop:zS(-parseFloat(R))),h(n.offsetWidth),y(n.offsetHeight);const{borderTopLeftRadius:_,borderTopRightRadius:$,borderBottomLeftRadius:P,borderBottomRightRadius:D}=E;c([_,$,D,P].map(A=>zS(parseFloat(A))))}if(l.useEffect(()=>{if(n){const E=Ut(()=>{w(),v(!0)});let I;return typeof ResizeObserver<"u"&&(I=new ResizeObserver(w),I.observe(n)),()=>{Ut.cancel(E),I==null||I.disconnect()}}},[]),!S)return null;const C=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(E0));return l.createElement(ea,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(E,I)=>{var T;if(I.deadline||I.propertyName==="opacity"){const R=(T=a.current)===null||T===void 0?void 0:T.parentElement;tU(R).then(()=>{R==null||R.remove()})}return!1}},(E,I)=>{let{className:T}=E;return l.createElement("div",{ref:na(a,I),className:ne(t,T,{"wave-quick":C}),style:x})})},Lie=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const a=document.createElement("div");a.style.position="absolute",a.style.left="0px",a.style.top="0px",e==null||e.insertBefore(a,e==null?void 0:e.firstChild),Z$(l.createElement(Die,Object.assign({},t,{target:e})),a)},Fie=(e,t,n)=>{const{wave:r}=l.useContext(st),[,a,o]=ra(),i=Wt(u=>{const d=e.current;if(r!=null&&r.disabled||!d)return;const f=d.querySelector(`.${E0}`)||d,{showEffect:p}=r||{};(p||Lie)(f,{className:t,token:a,component:n,event:u,hashId:o})}),s=l.useRef();return u=>{Ut.cancel(s.current),s.current=Ut(()=>{i(u)})}},Kg=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:a}=l.useContext(st),o=l.useRef(null),i=a("wave"),[,s]=Aie(i),c=Fie(o,ne(i,s),r);if(se.useEffect(()=>{const d=o.current;if(!d||d.nodeType!==1||n)return;const f=p=>{!Vd(p.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")||d.className.includes("-leave")||c(p)};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[n]),!se.isValidElement(t))return t??null;const u=mi(t)?na(t.ref,o):o;return Cr(t,{ref:u})},Er=e=>{const t=se.useContext(Cc);return se.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},jie=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},Bie=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{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"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},zie=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},nU=on("Space",e=>{const t=zt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[Bie(t),zie(t),jie(t)]},()=>({}),{resetStyle:!1});var rU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const n=l.useContext(I0),r=l.useMemo(()=>{if(!n)return"";const{compactDirection:a,isFirstItem:o,isLastItem:i}=n,s=a==="vertical"?"-vertical-":"-";return ne(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:o,[`${e}-compact${s}last-item`]:i,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},Hie=e=>{let{children:t}=e;return l.createElement(I0.Provider,{value:null},t)},Uie=e=>{var{children:t}=e,n=rU(e,["children"]);return l.createElement(I0.Provider,{value:n},t)},Vie=e=>{const{getPrefixCls:t,direction:n}=l.useContext(st),{size:r,direction:a,block:o,prefixCls:i,className:s,rootClassName:c,children:u}=e,d=rU(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=Er(x=>r??x),p=t("space-compact",i),[g,h]=nU(p),b=ne(p,h,{[`${p}-rtl`]:n==="rtl",[`${p}-block`]:o,[`${p}-vertical`]:a==="vertical"},s,c),y=l.useContext(I0),S=vr(u),v=l.useMemo(()=>S.map((x,w)=>{const C=(x==null?void 0:x.key)||`${p}-item-${w}`;return l.createElement(Uie,{key:C,compactSize:f,compactDirection:a,isFirstItem:w===0&&(!y||(y==null?void 0:y.isFirstItem)),isLastItem:w===S.length-1&&(!y||(y==null?void 0:y.isLastItem))},x)}),[r,S,y]);return S.length===0?null:g(l.createElement("div",Object.assign({className:b},d),v))};var Wie=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:t,direction:n}=l.useContext(st),{prefixCls:r,size:a,className:o}=e,i=Wie(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,c]=ra();let u="";switch(a){case"large":u="lg";break;case"small":u="sm";break}const d=ne(s,{[`${s}-${u}`]:u,[`${s}-rtl`]:n==="rtl"},o,c);return l.createElement(aU.Provider,{value:a},l.createElement("div",Object.assign({},i,{className:d})))},gM=/^[\u4e00-\u9fa5]{2}$/,tR=gM.test.bind(gM);function oU(e){return e==="danger"?{danger:!0}:{type:e}}function mM(e){return typeof e=="string"}function HS(e){return e==="text"||e==="link"}function qie(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&mM(e.type)&&tR(e.props.children)?Cr(e,{children:e.props.children.split("").join(n)}):mM(e)?tR(e)?se.createElement("span",null,e.split("").join(n)):se.createElement("span",null,e):GH(e)?se.createElement("span",null,e):e}function Kie(e,t){let n=!1;const r=[];return se.Children.forEach(e,a=>{const o=typeof a,i=o==="string"||o==="number";if(n&&i){const s=r.length-1,c=r[s];r[s]=`${c}${a}`}else r.push(a);n=i}),se.Children.map(r,a=>qie(a,t))}const iU=l.forwardRef((e,t)=>{const{className:n,style:r,children:a,prefixCls:o}=e,i=ne(`${o}-icon`,n);return se.createElement("span",{ref:t,className:i,style:r},a)}),hM=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:a,iconClassName:o}=e,i=ne(`${n}-loading-icon`,r);return se.createElement(iU,{prefixCls:n,className:i,style:a,ref:t},se.createElement(Ui,{className:o}))}),US=()=>({width:0,opacity:0,transform:"scale(0)"}),VS=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Yie=e=>{const{prefixCls:t,loading:n,existIcon:r,className:a,style:o}=e,i=!!n;return r?se.createElement(hM,{prefixCls:t,className:a,style:o}):se.createElement(ea,{visible:i,motionName:`${t}-loading-icon-motion`,motionLeave:i,removeOnLeave:!0,onAppearStart:US,onAppearActive:VS,onEnterStart:US,onEnterActive:VS,onLeaveStart:VS,onLeaveActive:US},(s,c)=>{let{className:u,style:d}=s;return se.createElement(hM,{prefixCls:t,className:a,style:Object.assign(Object.assign({},o),d),ref:c,iconClassName:u})})},vM=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Xie=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:a,colorErrorHover:o}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},vM(`${t}-primary`,a),vM(`${t}-danger`,o)]}},sU=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return zt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},lU=e=>{var t,n,r,a,o,i;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,c=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,u=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,d=(a=e.contentLineHeight)!==null&&a!==void 0?a:dv(s),f=(o=e.contentLineHeightSM)!==null&&o!==void 0?o:dv(c),p=(i=e.contentLineHeightLG)!==null&&i!==void 0?i:dv(u);return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,contentFontSize:s,contentFontSizeSM:c,contentFontSizeLG:u,contentLineHeight:d,contentLineHeightSM:f,contentLineHeightLG:p,paddingBlock:Math.max((e.controlHeight-s*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-u*p)/2-e.lineWidth,0)}},Zie=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${K(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:1},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},Hi(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},Es=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),Qie=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),Jie=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),ese=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),pg=(e,t,n,r,a,o,i,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},Es(e,Object.assign({background:t},i),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:a||void 0,borderColor:o||void 0}})}),Q$=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},ese(e))}),cU=e=>Object.assign({},Q$(e)),db=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),uU=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},cU(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),Es(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),pg(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},Es(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),pg(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),Q$(e))}),tse=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},cU(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),Es(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),pg(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},Es(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),pg(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Q$(e))}),nse=e=>Object.assign(Object.assign({},uU(e)),{borderStyle:"dashed"}),rse=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},Es(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),db(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Es(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),db(e))}),ase=e=>Object.assign(Object.assign(Object.assign({},Es(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),db(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},db(e)),Es(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))}),ose=e=>{const{componentCls:t}=e;return{[`${t}-default`]:uU(e),[`${t}-primary`]:tse(e),[`${t}-dashed`]:nse(e),[`${t}-link`]:rse(e),[`${t}-text`]:ase(e),[`${t}-ghost`]:pg(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},J$=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:a,lineHeight:o,borderRadius:i,buttonPaddingHorizontal:s,iconCls:c,buttonPaddingVertical:u}=e,d=`${n}-icon-only`;return[{[t]:{fontSize:a,lineHeight:o,height:r,padding:`${K(u)} ${K(s)}`,borderRadius:i,[`&${d}`]:{width:r,paddingInline:0,[`&${n}-compact-item`]:{flex:"none"},[`&${n}-round`]:{width:"auto"},[c]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:Qie(e)},{[`${n}${n}-round${t}`]:Jie(e)}]},ise=e=>{const t=zt(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return J$(t,e.componentCls)},sse=e=>{const t=zt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return J$(t,`${e.componentCls}-sm`)},lse=e=>{const t=zt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return J$(t,`${e.componentCls}-lg`)},cse=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},use=on("Button",e=>{const t=sU(e);return[Zie(t),ise(t),sse(t),lse(t),cse(t),ose(t),Xie(t)]},lU,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function dse(e,t,n){const{focusElCls:r,focus:a,borderElCls:o}=n,i=o?"> *":"",s=["hover",a?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${i}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${i}`]:{zIndex:0}})}}function fse(e,t,n){const{borderElCls:r}=n,a=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${a}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Yg(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},dse(e,r,t)),fse(n,r,t))}}function pse(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function gse(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function mse(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},pse(e,t)),gse(e.componentCls,t))}}const hse=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${K(e.lineWidth)} * 2)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${K(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},vse=Hd(["Button","compact"],e=>{const t=sU(e);return[Yg(t),mse(t),hse(t)]},lU);var bse=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r,a;const{loading:o=!1,prefixCls:i,type:s,danger:c=!1,shape:u="default",size:d,styles:f,disabled:p,className:g,rootClassName:h,children:b,icon:y,iconPosition:S="start",ghost:v=!1,block:x=!1,htmlType:w="button",classNames:C,style:E={},autoInsertSpace:I}=e,T=bse(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),R=s||"default",{getPrefixCls:_,direction:$,button:P}=l.useContext(st),D=(n=I??(P==null?void 0:P.autoInsertSpace))!==null&&n!==void 0?n:!0,A=_("btn",i),[O,N,k]=use(A),M=l.useContext(Jr),L=p??M,F=l.useContext(aU),j=l.useMemo(()=>yse(o),[o]),[B,z]=l.useState(j.loading),[H,V]=l.useState(!1),Y=na(t,l.createRef()),J=l.Children.count(b)===1&&!y&&!HS(R);l.useEffect(()=>{let ue=null;j.delay>0?ue=setTimeout(()=>{ue=null,z(!0)},j.delay):z(j.loading);function xe(){ue&&(clearTimeout(ue),ue=null)}return xe},[j]),l.useEffect(()=>{if(!Y||!Y.current||!D)return;const ue=Y.current.textContent;J&&tR(ue)?H||V(!0):H&&V(!1)},[Y]);const G=ue=>{const{onClick:xe}=e;if(B||L){ue.preventDefault();return}xe==null||xe(ue)},{compactSize:U,compactItemClassnames:q}=Ns(A,$),X={large:"lg",small:"sm",middle:void 0},Q=Er(ue=>{var xe,we;return(we=(xe=d??U)!==null&&xe!==void 0?xe:F)!==null&&we!==void 0?we:ue}),ee=Q&&X[Q]||"",oe=B?"loading":y,le=On(T,["navigate"]),fe=ne(A,N,k,{[`${A}-${u}`]:u!=="default"&&u,[`${A}-${R}`]:R,[`${A}-${ee}`]:ee,[`${A}-icon-only`]:!b&&b!==0&&!!oe,[`${A}-background-ghost`]:v&&!HS(R),[`${A}-loading`]:B,[`${A}-two-chinese-chars`]:H&&D&&!B,[`${A}-block`]:x,[`${A}-dangerous`]:c,[`${A}-rtl`]:$==="rtl",[`${A}-icon-end`]:S==="end"},q,g,h,P==null?void 0:P.className),ce=Object.assign(Object.assign({},P==null?void 0:P.style),E),Ie=ne(C==null?void 0:C.icon,(r=P==null?void 0:P.classNames)===null||r===void 0?void 0:r.icon),be=Object.assign(Object.assign({},(f==null?void 0:f.icon)||{}),((a=P==null?void 0:P.styles)===null||a===void 0?void 0:a.icon)||{}),he=y&&!B?se.createElement(iU,{prefixCls:A,className:Ie,style:be},y):se.createElement(Yie,{existIcon:!!y,prefixCls:A,loading:B}),ae=b||b===0?Kie(b,J&&D):null;if(le.href!==void 0)return O(se.createElement("a",Object.assign({},le,{className:ne(fe,{[`${A}-disabled`]:L}),href:L?void 0:le.href,style:ce,onClick:G,ref:Y,tabIndex:L?-1:0}),he,ae));let ie=se.createElement("button",Object.assign({},T,{type:w,className:fe,style:ce,onClick:G,disabled:L,ref:Y}),he,ae,!!q&&se.createElement(vse,{key:"compact",prefixCls:A}));return HS(R)||(ie=se.createElement(Kg,{component:"Button",disabled:B},ie)),O(ie)}),ct=Sse;ct.Group=Gie;ct.__ANT_BUTTON=!0;function WS(e){return!!(e!=null&&e.then)}const dU=e=>{const{type:t,children:n,prefixCls:r,buttonProps:a,close:o,autoFocus:i,emitEvent:s,isSilent:c,quitOnNullishReturnValue:u,actionFn:d}=e,f=l.useRef(!1),p=l.useRef(null),[g,h]=Ec(!1),b=function(){o==null||o.apply(void 0,arguments)};l.useEffect(()=>{let v=null;return i&&(v=setTimeout(()=>{var x;(x=p.current)===null||x===void 0||x.focus()})),()=>{v&&clearTimeout(v)}},[]);const y=v=>{WS(v)&&(h(!0),v.then(function(){h(!1,!0),b.apply(void 0,arguments),f.current=!1},x=>{if(h(!1,!0),f.current=!1,!(c!=null&&c()))return Promise.reject(x)}))},S=v=>{if(f.current)return;if(f.current=!0,!d){b();return}let x;if(s){if(x=d(v),u&&!WS(x)){f.current=!1,b(v);return}}else if(d.length)x=d(o),f.current=!1;else if(x=d(),!WS(x)){b();return}y(x)};return l.createElement(ct,Object.assign({},oU(t),{onClick:S,loading:g,prefixCls:r},a,{ref:p}),n)},Xg=se.createContext({}),{Provider:fU}=Xg,bM=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:a,rootPrefixCls:o,close:i,onCancel:s,onConfirm:c}=l.useContext(Xg);return a?se.createElement(dU,{isSilent:r,actionFn:s,close:function(){i==null||i.apply(void 0,arguments),c==null||c(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${o}-btn`},n):null},yM=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:a,okTextLocale:o,okType:i,onConfirm:s,onOk:c}=l.useContext(Xg);return se.createElement(dU,{isSilent:n,type:i||"primary",actionFn:c,close:function(){t==null||t.apply(void 0,arguments),s==null||s(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${a}-btn`},o)};var pU=l.createContext(null),SM=[];function xse(e,t){var n=l.useState(function(){if(!Qr())return null;var h=document.createElement("div");return h}),r=re(n,1),a=r[0],o=l.useRef(!1),i=l.useContext(pU),s=l.useState(SM),c=re(s,2),u=c[0],d=c[1],f=i||(o.current?void 0:function(h){d(function(b){var y=[h].concat(Pe(b));return y})});function p(){a.parentElement||document.body.appendChild(a),o.current=!0}function g(){var h;(h=a.parentElement)===null||h===void 0||h.removeChild(a),o.current=!1}return Xt(function(){return e?i?i(p):p():g(),g},[e]),Xt(function(){u.length&&(u.forEach(function(h){return h()}),d(SM))},[u]),[a,f]}var GS;function gU(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var a,o;if(e){var i=getComputedStyle(e);r.scrollbarColor=i.scrollbarColor,r.scrollbarWidth=i.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(s.width,10),u=parseInt(s.height,10);try{var d=c?"width: ".concat(s.width,";"):"",f=u?"height: ".concat(s.height,";"):"";hs(` #`.concat(t,`::-webkit-scrollbar { `).concat(d,` `).concat(f,` -}`),t)}catch(h){console.error(h),a=c,o=u}}document.body.appendChild(n);var p=e&&a&&!isNaN(a)?a:n.offsetWidth-n.clientWidth,g=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),ag(t),{width:p,height:g}}function xM(e){return typeof document>"u"?0:(WS===void 0&&(WS=gU()),WS.width)}function tR(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:gU(e)}function wse(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Cse="rc-util-locker-".concat(Date.now()),wM=0;function Ese(e){var t=!!e,n=l.useState(function(){return wM+=1,"".concat(Cse,"_").concat(wM)}),r=re(n,1),a=r[0];Xt(function(){if(t){var o=tR(document.body).width,i=wse();ms(` +}`),t)}catch(h){console.error(h),a=c,o=u}}document.body.appendChild(n);var p=e&&a&&!isNaN(a)?a:n.offsetWidth-n.clientWidth,g=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),ig(t),{width:p,height:g}}function xM(e){return typeof document>"u"?0:(GS===void 0&&(GS=gU()),GS.width)}function nR(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:gU(e)}function wse(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Cse="rc-util-locker-".concat(Date.now()),wM=0;function Ese(e){var t=!!e,n=l.useState(function(){return wM+=1,"".concat(Cse,"_").concat(wM)}),r=re(n,1),a=r[0];Xt(function(){if(t){var o=nR(document.body).width,i=wse();hs(` html body { overflow-y: hidden; `.concat(i?"width: calc(100% - ".concat(o,"px);"):"",` -}`),a)}else ag(a);return function(){ag(a)}},[t,a])}var Ise=!1;function Tse(e){return Ise}var CM=function(t){return t===!1?!1:!Xr()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Yg=l.forwardRef(function(e,t){var n=e.open,r=e.autoLock,a=e.getContainer;e.debug;var o=e.autoDestroy,i=o===void 0?!0:o,s=e.children,c=l.useState(n),u=re(c,2),d=u[0],f=u[1],p=d||n;l.useEffect(function(){(i||n)&&f(n)},[n,i]);var g=l.useState(function(){return CM(a)}),h=re(g,2),b=h[0],y=h[1];l.useEffect(function(){var $=CM(a);y($??null)});var S=xse(p&&!b),v=re(S,2),x=v[0],C=v[1],w=b??x;Ese(r&&n&&Xr()&&(w===x||w===document.body));var E=null;if(s&&gi(s)&&t){var I=s;E=I.ref}var T=$s(E,t);if(!p||!Xr()||b===void 0)return null;var R=w===!1||Tse(),_=s;return t&&(_=l.cloneElement(s,{ref:T})),l.createElement(pU.Provider,{value:C},R?_:Lr.createPortal(_,w))}),mU=l.createContext({});function Rse(){var e=Z({},Lg);return e.useId}var EM=0,IM=Rse();const hU=IM?function(t){var n=IM();return t||n}:function(t){var n=l.useState("ssr-id"),r=re(n,2),a=r[0],o=r[1];return l.useEffect(function(){var i=EM;EM+=1,o("rc_unique_".concat(i))},[]),t||a};function TM(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function RM(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var a=e.document;n=a.documentElement[r],typeof n!="number"&&(n=a.body[r])}return n}function _se(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,a=r.defaultView||r.parentWindow;return n.left+=RM(a),n.top+=RM(a,!0),n}const $se=l.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var _M={width:0,height:0,overflow:"hidden",outline:"none"},Ose={outline:"none"},vU=se.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,o=e.title,i=e.ariaId,s=e.footer,c=e.closable,u=e.closeIcon,d=e.onClose,f=e.children,p=e.bodyStyle,g=e.bodyProps,h=e.modalRender,b=e.onMouseDown,y=e.onMouseUp,S=e.holderRef,v=e.visible,x=e.forceRender,C=e.width,w=e.height,E=e.classNames,I=e.styles,T=se.useContext(mU),R=T.panel,_=$s(S,R),$=l.useRef(),P=l.useRef(),D=l.useRef();se.useImperativeHandle(t,function(){return{focus:function(){var z;(z=D.current)===null||z===void 0||z.focus({preventScroll:!0})},changeActive:function(z){var H=document,V=H.activeElement;z&&V===P.current?$.current.focus({preventScroll:!0}):!z&&V===$.current&&P.current.focus({preventScroll:!0})}}});var A={};C!==void 0&&(A.width=C),w!==void 0&&(A.height=w);var O=s?se.createElement("div",{className:ne("".concat(n,"-footer"),E==null?void 0:E.footer),style:Z({},I==null?void 0:I.footer)},s):null,N=o?se.createElement("div",{className:ne("".concat(n,"-header"),E==null?void 0:E.header),style:Z({},I==null?void 0:I.header)},se.createElement("div",{className:"".concat(n,"-title"),id:i},o)):null,k=l.useMemo(function(){return ht(c)==="object"&&c!==null?c:c?{closeIcon:u??se.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[c,u,n]),M=Yn(k,!0),L=ht(c)==="object"&&c.disabled,F=c?se.createElement("button",pe({type:"button",onClick:d,"aria-label":"Close"},M,{className:"".concat(n,"-close"),disabled:L}),k.closeIcon):null,j=se.createElement("div",{className:ne("".concat(n,"-content"),E==null?void 0:E.content),style:I==null?void 0:I.content},F,N,se.createElement("div",pe({className:ne("".concat(n,"-body"),E==null?void 0:E.body),style:Z(Z({},p),I==null?void 0:I.body)},g),f),O);return se.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":o?i:null,"aria-modal":"true",ref:_,style:Z(Z({},a),A),className:ne(n,r),onMouseDown:b,onMouseUp:y},se.createElement("div",{tabIndex:0,ref:$,style:_M,"aria-hidden":"true"}),se.createElement("div",{ref:D,tabIndex:-1,style:Ose},se.createElement($se,{shouldUpdate:v||x},h?h(j):j)),se.createElement("div",{tabIndex:0,ref:P,style:_M,"aria-hidden":"true"}))}),bU=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,a=e.style,o=e.className,i=e.visible,s=e.forceRender,c=e.destroyOnClose,u=e.motionName,d=e.ariaId,f=e.onVisibleChanged,p=e.mousePosition,g=l.useRef(),h=l.useState(),b=re(h,2),y=b[0],S=b[1],v={};y&&(v.transformOrigin=y);function x(){var C=_se(g.current);S(p&&(p.x||p.y)?"".concat(p.x-C.left,"px ").concat(p.y-C.top,"px"):"")}return l.createElement(Qr,{visible:i,onVisibleChanged:f,onAppearPrepare:x,onEnterPrepare:x,forceRender:s,motionName:u,removeOnLeave:c,ref:g},function(C,w){var E=C.className,I=C.style;return l.createElement(vU,pe({},e,{ref:t,title:r,ariaId:d,prefixCls:n,holderRef:w,style:Z(Z(Z({},I),a),v),className:ne(o,E)}))})});bU.displayName="Content";var Nse=function(t){var n=t.prefixCls,r=t.style,a=t.visible,o=t.maskProps,i=t.motionName,s=t.className;return l.createElement(Qr,{key:"mask",visible:a,motionName:i,leavedClassName:"".concat(n,"-mask-hidden")},function(c,u){var d=c.className,f=c.style;return l.createElement("div",pe({ref:u,style:Z(Z({},f),r),className:ne("".concat(n,"-mask"),d,s)},o))})},kse=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,a=t.zIndex,o=t.visible,i=o===void 0?!1:o,s=t.keyboard,c=s===void 0?!0:s,u=t.focusTriggerAfterClose,d=u===void 0?!0:u,f=t.wrapStyle,p=t.wrapClassName,g=t.wrapProps,h=t.onClose,b=t.afterOpenChange,y=t.afterClose,S=t.transitionName,v=t.animation,x=t.closable,C=x===void 0?!0:x,w=t.mask,E=w===void 0?!0:w,I=t.maskTransitionName,T=t.maskAnimation,R=t.maskClosable,_=R===void 0?!0:R,$=t.maskStyle,P=t.maskProps,D=t.rootClassName,A=t.classNames,O=t.styles,N=l.useRef(),k=l.useRef(),M=l.useRef(),L=l.useState(i),F=re(L,2),j=F[0],B=F[1],z=hU();function H(){ET(k.current,document.activeElement)||(N.current=document.activeElement)}function V(){if(!ET(k.current,document.activeElement)){var oe;(oe=M.current)===null||oe===void 0||oe.focus()}}function te(oe){if(oe)V();else{if(B(!1),E&&N.current&&d){try{N.current.focus({preventScroll:!0})}catch{}N.current=null}j&&(y==null||y())}b==null||b(oe)}function Y(oe){h==null||h(oe)}var J=l.useRef(!1),G=l.useRef(),U=function(){clearTimeout(G.current),J.current=!0},q=function(){G.current=setTimeout(function(){J.current=!1})},X=null;_&&(X=function(le){J.current?J.current=!1:k.current===le.target&&Y(le)});function Q(oe){if(c&&oe.keyCode===Le.ESC){oe.stopPropagation(),Y(oe);return}i&&oe.keyCode===Le.TAB&&M.current.changeActive(!oe.shiftKey)}l.useEffect(function(){i&&(B(!0),H())},[i]),l.useEffect(function(){return function(){clearTimeout(G.current)}},[]);var ee=Z(Z(Z({zIndex:a},f),O==null?void 0:O.wrapper),{},{display:j?null:"none"});return l.createElement("div",pe({className:ne("".concat(r,"-root"),D)},Yn(t,{data:!0})),l.createElement(Nse,{prefixCls:r,visible:E&&i,motionName:TM(r,I,T),style:Z(Z({zIndex:a},$),O==null?void 0:O.mask),maskProps:P,className:A==null?void 0:A.mask}),l.createElement("div",pe({tabIndex:-1,onKeyDown:Q,className:ne("".concat(r,"-wrap"),p,A==null?void 0:A.wrapper),ref:k,onClick:X,style:ee},g),l.createElement(bU,pe({},t,{onMouseDown:U,onMouseUp:q,ref:M,closable:C,ariaId:z,prefixCls:r,visible:i&&j,onClose:Y,onVisibleChanged:te,motionName:TM(r,S,v)}))))},J$=function(t){var n=t.visible,r=t.getContainer,a=t.forceRender,o=t.destroyOnClose,i=o===void 0?!1:o,s=t.afterClose,c=t.panelRef,u=l.useState(n),d=re(u,2),f=d[0],p=d[1],g=l.useMemo(function(){return{panel:c}},[c]);return l.useEffect(function(){n&&p(!0)},[n]),!a&&i&&!f?null:l.createElement(mU.Provider,{value:g},l.createElement(Yg,{open:n||a||f,autoDestroy:!1,getContainer:r,autoLock:n||f},l.createElement(kse,pe({},t,{destroyOnClose:i,afterClose:function(){s==null||s(),p(!1)}}))))};J$.displayName="Dialog";var Ql="RC_FORM_INTERNAL_HOOKS",Fn=function(){vn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Ic=l.createContext({getFieldValue:Fn,getFieldsValue:Fn,getFieldError:Fn,getFieldWarning:Fn,getFieldsError:Fn,isFieldsTouched:Fn,isFieldTouched:Fn,isFieldValidating:Fn,isFieldsValidating:Fn,resetFields:Fn,setFields:Fn,setFieldValue:Fn,setFieldsValue:Fn,validateFields:Fn,submit:Fn,getInternalHooks:function(){return Fn(),{dispatch:Fn,initEntityValue:Fn,registerField:Fn,useSubscribe:Fn,setInitialValues:Fn,destroyForm:Fn,setCallbacks:Fn,registerWatch:Fn,getFields:Fn,setValidateMessages:Fn,setPreserve:Fn,getInitialValue:Fn}}}),fg=l.createContext(null);function nR(e){return e==null?[]:Array.isArray(e)?e:[e]}function Ase(e){return e&&!!e._init}function rR(){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 t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var aR=rR();function Mse(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Pse(e,t,n){if(h0())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var a=new(e.bind.apply(e,r));return n&&ng(a,n.prototype),a}function oR(e){var t=typeof Map=="function"?new Map:void 0;return oR=function(r){if(r===null||!Mse(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,a)}function a(){return Pse(r,arguments,xc(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),ng(a,r)},oR(e)}var Dse=/%[sdj%]/g,Lse=function(){};function iR(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function go(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=o)return s;switch(s){case"%s":return String(n[a++]);case"%d":return Number(n[a++]);case"%j":try{return JSON.stringify(n[a++])}catch{return"[Circular]"}break;default:return s}});return i}return e}function Fse(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Br(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Fse(t)&&typeof e=="string"&&!e)}function jse(e,t,n){var r=[],a=0,o=e.length;function i(s){r.push.apply(r,De(s||[])),a++,a===o&&n(r)}e.forEach(function(s){t(s,i)})}function $M(e,t,n){var r=0,a=e.length;function o(i){if(i&&i.length){n(i);return}var s=r;r=r+1,st.max?a.push(go(o.messages[f].max,t.fullField,t.max)):s&&c&&(dt.max)&&a.push(go(o.messages[f].range,t.fullField,t.min,t.max))},yU=function(t,n,r,a,o,i){t.required&&(!r.hasOwnProperty(t.field)||Br(n,i||t.type))&&a.push(go(o.messages.required,t.fullField))},lh;const qse=function(){if(lh)return lh;var e="[a-fA-F\\d:]",t=function(E){return E&&E.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?: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}",r="[a-fA-F\\d]{1,4}",a=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],o="(?:%[0-9a-zA-Z]{1,})?",i="(?:".concat(a.join("|"),")").concat(o),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),c=new RegExp("^".concat(n,"$")),u=new RegExp("^".concat(i,"$")),d=function(E){return E&&E.exact?s:new RegExp("(?:".concat(t(E)).concat(n).concat(t(E),")|(?:").concat(t(E)).concat(i).concat(t(E),")"),"g")};d.v4=function(w){return w&&w.exact?c:new RegExp("".concat(t(w)).concat(n).concat(t(w)),"g")},d.v6=function(w){return w&&w.exact?u:new RegExp("".concat(t(w)).concat(i).concat(t(w)),"g")};var f="(?:(?:[a-z]+:)?//)",p="(?:\\S+(?::\\S*)?@)?",g=d.v4().source,h=d.v6().source,b="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",y="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",S="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",v="(?::\\d{2,5})?",x='(?:[/?#][^\\s"]*)?',C="(?:".concat(f,"|www\\.)").concat(p,"(?:localhost|").concat(g,"|").concat(h,"|").concat(b).concat(y).concat(S,")").concat(v).concat(x);return lh=new RegExp("(?:^".concat(C,"$)"),"i"),lh};var AM={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},Gf={integer:function(t){return Gf.number(t)&&parseInt(t,10)===t},float:function(t){return Gf.number(t)&&!Gf.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return ht(t)==="object"&&!Gf.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(AM.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(qse())},hex:function(t){return typeof t=="string"&&!!t.match(AM.hex)}},Kse=function(t,n,r,a,o){if(t.required&&n===void 0){yU(t,n,r,a,o);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;i.indexOf(s)>-1?Gf[s](n)||a.push(go(o.messages.types[s],t.fullField,t.type)):s&&ht(n)!==t.type&&a.push(go(o.messages.types[s],t.fullField,t.type))},Yse=function(t,n,r,a,o){(/^\s+$/.test(n)||n==="")&&a.push(go(o.messages.whitespace,t.fullField))};const gn={required:yU,whitespace:Yse,type:Kse,range:Gse,enum:Vse,pattern:Wse};var Xse=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Br(n)&&!t.required)return r();gn.required(t,n,a,i,o)}r(i)},Zse=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();gn.required(t,n,a,i,o,"array"),n!=null&&(gn.type(t,n,a,i,o),gn.range(t,n,a,i,o))}r(i)},Qse=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Br(n)&&!t.required)return r();gn.required(t,n,a,i,o),n!==void 0&&gn.type(t,n,a,i,o)}r(i)},Jse=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Br(n,"date")&&!t.required)return r();if(gn.required(t,n,a,i,o),!Br(n,"date")){var c;n instanceof Date?c=n:c=new Date(n),gn.type(t,c,a,i,o),c&&gn.range(t,c.getTime(),a,i,o)}}r(i)},ele="enum",tle=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Br(n)&&!t.required)return r();gn.required(t,n,a,i,o),n!==void 0&&gn[ele](t,n,a,i,o)}r(i)},nle=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Br(n)&&!t.required)return r();gn.required(t,n,a,i,o),n!==void 0&&(gn.type(t,n,a,i,o),gn.range(t,n,a,i,o))}r(i)},rle=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Br(n)&&!t.required)return r();gn.required(t,n,a,i,o),n!==void 0&&(gn.type(t,n,a,i,o),gn.range(t,n,a,i,o))}r(i)},ale=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Br(n)&&!t.required)return r();gn.required(t,n,a,i,o),n!==void 0&&gn.type(t,n,a,i,o)}r(i)},ole=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),Br(n)&&!t.required)return r();gn.required(t,n,a,i,o),n!==void 0&&(gn.type(t,n,a,i,o),gn.range(t,n,a,i,o))}r(i)},ile=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Br(n)&&!t.required)return r();gn.required(t,n,a,i,o),n!==void 0&&gn.type(t,n,a,i,o)}r(i)},sle=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Br(n,"string")&&!t.required)return r();gn.required(t,n,a,i,o),Br(n,"string")||gn.pattern(t,n,a,i,o)}r(i)},lle=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Br(n)&&!t.required)return r();gn.required(t,n,a,i,o),Br(n)||gn.type(t,n,a,i,o)}r(i)},cle=function(t,n,r,a,o){var i=[],s=Array.isArray(n)?"array":ht(n);gn.required(t,n,a,i,o,s),r(i)},ule=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Br(n,"string")&&!t.required)return r();gn.required(t,n,a,i,o,"string"),Br(n,"string")||(gn.type(t,n,a,i,o),gn.range(t,n,a,i,o),gn.pattern(t,n,a,i,o),t.whitespace===!0&&gn.whitespace(t,n,a,i,o))}r(i)},GS=function(t,n,r,a,o){var i=t.type,s=[],c=t.required||!t.required&&a.hasOwnProperty(t.field);if(c){if(Br(n,i)&&!t.required)return r();gn.required(t,n,a,s,o,i),Br(n,i)||gn.type(t,n,a,s,o)}r(s)};const bp={string:ule,method:ale,number:ole,boolean:Qse,regexp:lle,integer:rle,float:nle,array:Zse,object:ile,enum:tle,pattern:sle,date:Jse,url:GS,hex:GS,email:GS,required:cle,any:Xse};var Xg=function(){function e(t){Xn(this,e),W(this,"rules",null),W(this,"_messages",aR),this.define(t)}return Zn(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(ht(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(a){var o=n[a];r.rules[a]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(n){return n&&(this._messages=kM(rR(),n)),this._messages}},{key:"validate",value:function(n){var r=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},i=n,s=a,c=o;if(typeof s=="function"&&(c=s,s={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,i),Promise.resolve(i);function u(h){var b=[],y={};function S(x){if(Array.isArray(x)){var C;b=(C=b).concat.apply(C,De(x))}else b.push(x)}for(var v=0;v0&&arguments[0]!==void 0?arguments[0]:[],T=Array.isArray(I)?I:[I];!s.suppressWarning&&T.length&&e.warning("async-validator:",T),T.length&&y.message!==void 0&&(T=[].concat(y.message));var R=T.map(NM(y,i));if(s.first&&R.length)return g[y.field]=1,b(R);if(!S)b(R);else{if(y.required&&!h.value)return y.message!==void 0?R=[].concat(y.message).map(NM(y,i)):s.error&&(R=[s.error(y,go(s.messages.required,y.field))]),b(R);var _={};y.defaultField&&Object.keys(h.value).map(function(D){_[D]=y.defaultField}),_=Z(Z({},_),h.rule.fields);var $={};Object.keys(_).forEach(function(D){var A=_[D],O=Array.isArray(A)?A:[A];$[D]=O.map(v.bind(null,D))});var P=new e($);P.messages(s.messages),h.rule.options&&(h.rule.options.messages=s.messages,h.rule.options.error=s.error),P.validate(h.value,h.rule.options||s,function(D){var A=[];R&&R.length&&A.push.apply(A,De(R)),D&&D.length&&A.push.apply(A,De(D)),b(A.length?A:null)})}}var C;if(y.asyncValidator)C=y.asyncValidator(y,h.value,x,h.source,s);else if(y.validator){try{C=y.validator(y,h.value,x,h.source,s)}catch(I){var w,E;(w=(E=console).error)===null||w===void 0||w.call(E,I),s.suppressValidatorError||setTimeout(function(){throw I},0),x(I.message)}C===!0?x():C===!1?x(typeof y.message=="function"?y.message(y.fullField||y.field):y.message||"".concat(y.fullField||y.field," fails")):C instanceof Array?x(C):C instanceof Error&&x(C.message)}C&&C.then&&C.then(function(){return x()},function(I){return x(I)})},function(h){u(h)},i)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!bp.hasOwnProperty(n.type))throw new Error(go("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),a=r.indexOf("message");return a!==-1&&r.splice(a,1),r.length===1&&r[0]==="required"?bp.required:bp[this.getType(n)]||void 0}}]),e}();W(Xg,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");bp[t]=n});W(Xg,"warning",Lse);W(Xg,"messages",aR);W(Xg,"validators",bp);var ao="'${name}' is not a valid ${type}",SU={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:ao,method:ao,array:ao,object:ao,number:ao,date:ao,boolean:ao,integer:ao,float:ao,regexp:ao,email:ao,url:ao,hex:ao},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}"}},MM=Xg;function dle(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var PM="CODE_LOGIC_ERROR";function sR(e,t,n,r,a){return lR.apply(this,arguments)}function lR(){return lR=po(Hn().mark(function e(t,n,r,a,o){var i,s,c,u,d,f,p,g,h;return Hn().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return i=Z({},r),delete i.ruleIndex,MM.warning=function(){},i.validator&&(s=i.validator,i.validator=function(){try{return s.apply(void 0,arguments)}catch(S){return console.error(S),Promise.reject(PM)}}),c=null,i&&i.type==="array"&&i.defaultField&&(c=i.defaultField,delete i.defaultField),u=new MM(W({},t,[i])),d=Lu(SU,a.validateMessages),u.messages(d),f=[],y.prev=10,y.next=13,Promise.resolve(u.validate(W({},t,n),Z({},a)));case 13:y.next=18;break;case 15:y.prev=15,y.t0=y.catch(10),y.t0.errors&&(f=y.t0.errors.map(function(S,v){var x=S.message,C=x===PM?d.default:x;return l.isValidElement(C)?l.cloneElement(C,{key:"error_".concat(v)}):C}));case 18:if(!(!f.length&&c)){y.next=23;break}return y.next=21,Promise.all(n.map(function(S,v){return sR("".concat(t,".").concat(v),S,c,a,o)}));case 21:return p=y.sent,y.abrupt("return",p.reduce(function(S,v){return[].concat(De(S),De(v))},[]));case 23:return g=Z(Z({},r),{},{name:t,enum:(r.enum||[]).join(", ")},o),h=f.map(function(S){return typeof S=="string"?dle(S,g):S}),y.abrupt("return",h);case 26:case"end":return y.stop()}},e,null,[[10,15]])})),lR.apply(this,arguments)}function fle(e,t,n,r,a,o){var i=e.join("."),s=n.map(function(d,f){var p=d.validator,g=Z(Z({},d),{},{ruleIndex:f});return p&&(g.validator=function(h,b,y){var S=!1,v=function(){for(var w=arguments.length,E=new Array(w),I=0;I2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return xU(t,r,n)})}function xU(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,a){return e[a]===r})}function mle(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||ht(e)!=="object"||ht(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),a=new Set([].concat(n,r));return De(a).every(function(o){var i=e[o],s=t[o];return typeof i=="function"&&typeof s=="function"?!0:i===s})}function hle(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&ht(t.target)==="object"&&e in t.target?t.target[e]:t}function LM(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var a=e[t],o=t-n;return o>0?[].concat(De(e.slice(0,n)),[a],De(e.slice(n,t)),De(e.slice(t+1,r))):o<0?[].concat(De(e.slice(0,t)),De(e.slice(t+1,n+1)),[a],De(e.slice(n+1,r))):e}var vle=["name"],To=[];function qS(e,t,n,r,a,o){return typeof e=="function"?e(t,n,"source"in o?{source:o.source}:{}):r!==a}var eO=function(e){Eo(n,e);var t=Ko(n);function n(r){var a;if(Xn(this,n),a=t.call(this,r),W(Ue(a),"state",{resetCount:0}),W(Ue(a),"cancelRegisterFunc",null),W(Ue(a),"mounted",!1),W(Ue(a),"touched",!1),W(Ue(a),"dirty",!1),W(Ue(a),"validatePromise",void 0),W(Ue(a),"prevValidating",void 0),W(Ue(a),"errors",To),W(Ue(a),"warnings",To),W(Ue(a),"cancelRegister",function(){var c=a.props,u=c.preserve,d=c.isListField,f=c.name;a.cancelRegisterFunc&&a.cancelRegisterFunc(d,u,xr(f)),a.cancelRegisterFunc=null}),W(Ue(a),"getNamePath",function(){var c=a.props,u=c.name,d=c.fieldContext,f=d.prefixName,p=f===void 0?[]:f;return u!==void 0?[].concat(De(p),De(u)):[]}),W(Ue(a),"getRules",function(){var c=a.props,u=c.rules,d=u===void 0?[]:u,f=c.fieldContext;return d.map(function(p){return typeof p=="function"?p(f):p})}),W(Ue(a),"refresh",function(){a.mounted&&a.setState(function(c){var u=c.resetCount;return{resetCount:u+1}})}),W(Ue(a),"metaCache",null),W(Ue(a),"triggerMetaEvent",function(c){var u=a.props.onMetaChange;if(u){var d=Z(Z({},a.getMeta()),{},{destroy:c});zo(a.metaCache,d)||u(d),a.metaCache=d}else a.metaCache=null}),W(Ue(a),"onStoreChange",function(c,u,d){var f=a.props,p=f.shouldUpdate,g=f.dependencies,h=g===void 0?[]:g,b=f.onReset,y=d.store,S=a.getNamePath(),v=a.getValue(c),x=a.getValue(y),C=u&&ed(u,S);switch(d.type==="valueUpdate"&&d.source==="external"&&!zo(v,x)&&(a.touched=!0,a.dirty=!0,a.validatePromise=null,a.errors=To,a.warnings=To,a.triggerMetaEvent()),d.type){case"reset":if(!u||C){a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.errors=To,a.warnings=To,a.triggerMetaEvent(),b==null||b(),a.refresh();return}break;case"remove":{if(p&&qS(p,c,y,v,x,d)){a.reRender();return}break}case"setField":{var w=d.data;if(C){"touched"in w&&(a.touched=w.touched),"validating"in w&&!("originRCField"in w)&&(a.validatePromise=w.validating?Promise.resolve([]):null),"errors"in w&&(a.errors=w.errors||To),"warnings"in w&&(a.warnings=w.warnings||To),a.dirty=!0,a.triggerMetaEvent(),a.reRender();return}else if("value"in w&&ed(u,S,!0)){a.reRender();return}if(p&&!S.length&&qS(p,c,y,v,x,d)){a.reRender();return}break}case"dependenciesUpdate":{var E=h.map(xr);if(E.some(function(I){return ed(d.relatedFields,I)})){a.reRender();return}break}default:if(C||(!h.length||S.length||p)&&qS(p,c,y,v,x,d)){a.reRender();return}break}p===!0&&a.reRender()}),W(Ue(a),"validateRules",function(c){var u=a.getNamePath(),d=a.getValue(),f=c||{},p=f.triggerName,g=f.validateOnly,h=g===void 0?!1:g,b=Promise.resolve().then(po(Hn().mark(function y(){var S,v,x,C,w,E,I;return Hn().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:if(a.mounted){R.next=2;break}return R.abrupt("return",[]);case 2:if(S=a.props,v=S.validateFirst,x=v===void 0?!1:v,C=S.messageVariables,w=S.validateDebounce,E=a.getRules(),p&&(E=E.filter(function(_){return _}).filter(function(_){var $=_.validateTrigger;if(!$)return!0;var P=nR($);return P.includes(p)})),!(w&&p)){R.next=10;break}return R.next=8,new Promise(function(_){setTimeout(_,w)});case 8:if(a.validatePromise===b){R.next=10;break}return R.abrupt("return",[]);case 10:return I=fle(u,d,E,c,x,C),I.catch(function(_){return _}).then(function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:To;if(a.validatePromise===b){var $;a.validatePromise=null;var P=[],D=[];($=_.forEach)===null||$===void 0||$.call(_,function(A){var O=A.rule.warningOnly,N=A.errors,k=N===void 0?To:N;O?D.push.apply(D,De(k)):P.push.apply(P,De(k))}),a.errors=P,a.warnings=D,a.triggerMetaEvent(),a.reRender()}}),R.abrupt("return",I);case 13:case"end":return R.stop()}},y)})));return h||(a.validatePromise=b,a.dirty=!0,a.errors=To,a.warnings=To,a.triggerMetaEvent(),a.reRender()),b}),W(Ue(a),"isFieldValidating",function(){return!!a.validatePromise}),W(Ue(a),"isFieldTouched",function(){return a.touched}),W(Ue(a),"isFieldDirty",function(){if(a.dirty||a.props.initialValue!==void 0)return!0;var c=a.props.fieldContext,u=c.getInternalHooks(Ql),d=u.getInitialValue;return d(a.getNamePath())!==void 0}),W(Ue(a),"getErrors",function(){return a.errors}),W(Ue(a),"getWarnings",function(){return a.warnings}),W(Ue(a),"isListField",function(){return a.props.isListField}),W(Ue(a),"isList",function(){return a.props.isList}),W(Ue(a),"isPreserve",function(){return a.props.preserve}),W(Ue(a),"getMeta",function(){a.prevValidating=a.isFieldValidating();var c={touched:a.isFieldTouched(),validating:a.prevValidating,errors:a.errors,warnings:a.warnings,name:a.getNamePath(),validated:a.validatePromise===null};return c}),W(Ue(a),"getOnlyChild",function(c){if(typeof c=="function"){var u=a.getMeta();return Z(Z({},a.getOnlyChild(c(a.getControlled(),u,a.props.fieldContext))),{},{isFunction:!0})}var d=vr(c);return d.length!==1||!l.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),W(Ue(a),"getValue",function(c){var u=a.props.fieldContext.getFieldsValue,d=a.getNamePath();return fo(c||u(!0),d)}),W(Ue(a),"getControlled",function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=a.props,d=u.name,f=u.trigger,p=u.validateTrigger,g=u.getValueFromEvent,h=u.normalize,b=u.valuePropName,y=u.getValueProps,S=u.fieldContext,v=p!==void 0?p:S.validateTrigger,x=a.getNamePath(),C=S.getInternalHooks,w=S.getFieldsValue,E=C(Ql),I=E.dispatch,T=a.getValue(),R=y||function(A){return W({},b,A)},_=c[f],$=d!==void 0?R(T):{},P=Z(Z({},c),$);P[f]=function(){a.touched=!0,a.dirty=!0,a.triggerMetaEvent();for(var A,O=arguments.length,N=new Array(O),k=0;k=0&&_<=$.length?(d.keys=[].concat(De(d.keys.slice(0,_)),[d.id],De(d.keys.slice(_))),x([].concat(De($.slice(0,_)),[R],De($.slice(_))))):(d.keys=[].concat(De(d.keys),[d.id]),x([].concat(De($),[R]))),d.id+=1},remove:function(R){var _=w(),$=new Set(Array.isArray(R)?R:[R]);$.size<=0||(d.keys=d.keys.filter(function(P,D){return!$.has(D)}),x(_.filter(function(P,D){return!$.has(D)})))},move:function(R,_){if(R!==_){var $=w();R<0||R>=$.length||_<0||_>=$.length||(d.keys=LM(d.keys,R,_),x(LM($,R,_)))}}},I=v||[];return Array.isArray(I)||(I=[]),r(I.map(function(T,R){var _=d.keys[R];return _===void 0&&(d.keys[R]=d.id,_=d.keys[R],d.id+=1),{name:R,key:_,isListField:!0}}),E,y)})))}function ble(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(a,o){e.forEach(function(i,s){i.catch(function(c){return t=!0,c}).then(function(c){n-=1,r[s]=c,!(n>0)&&(t&&o(r),a(r))})})}):Promise.resolve([])}var CU="__@field_split__";function KS(e){return e.map(function(t){return"".concat(ht(t),":").concat(t)}).join(CU)}var au=function(){function e(){Xn(this,e),W(this,"kvs",new Map)}return Zn(e,[{key:"set",value:function(n,r){this.kvs.set(KS(n),r)}},{key:"get",value:function(n){return this.kvs.get(KS(n))}},{key:"update",value:function(n,r){var a=this.get(n),o=r(a);o?this.set(n,o):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(KS(n))}},{key:"map",value:function(n){return De(this.kvs.entries()).map(function(r){var a=re(r,2),o=a[0],i=a[1],s=o.split(CU);return n({key:s.map(function(c){var u=c.match(/^([^:]*):(.*)$/),d=re(u,3),f=d[1],p=d[2];return f==="number"?Number(p):p}),value:i})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var a=r.key,o=r.value;return n[a.join(".")]=o,null}),n}}]),e}(),yle=["name"],Sle=Zn(function e(t){var n=this;Xn(this,e),W(this,"formHooked",!1),W(this,"forceRootUpdate",void 0),W(this,"subscribable",!0),W(this,"store",{}),W(this,"fieldEntities",[]),W(this,"initialValues",{}),W(this,"callbacks",{}),W(this,"validateMessages",null),W(this,"preserve",null),W(this,"lastValidatePromise",null),W(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),W(this,"getInternalHooks",function(r){return r===Ql?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(vn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),W(this,"useSubscribe",function(r){n.subscribable=r}),W(this,"prevWithoutPreserves",null),W(this,"setInitialValues",function(r,a){if(n.initialValues=r||{},a){var o,i=Lu(r,n.store);(o=n.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var c=s.key;i=ri(i,c,fo(r,c))}),n.prevWithoutPreserves=null,n.updateStore(i)}}),W(this,"destroyForm",function(r){if(r)n.updateStore({});else{var a=new au;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||a.set(o.getNamePath(),!0)}),n.prevWithoutPreserves=a}}),W(this,"getInitialValue",function(r){var a=fo(n.initialValues,r);return r.length?Lu(a):a}),W(this,"setCallbacks",function(r){n.callbacks=r}),W(this,"setValidateMessages",function(r){n.validateMessages=r}),W(this,"setPreserve",function(r){n.preserve=r}),W(this,"watchList",[]),W(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(a){return a!==r})}}),W(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var a=n.getFieldsValue(),o=n.getFieldsValue(!0);n.watchList.forEach(function(i){i(a,o,r)})}}),W(this,"timeoutId",null),W(this,"warningUnhooked",function(){}),W(this,"updateStore",function(r){n.store=r}),W(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(a){return a.getNamePath().length}):n.fieldEntities}),W(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,a=new au;return n.getFieldEntities(r).forEach(function(o){var i=o.getNamePath();a.set(i,o)}),a}),W(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var a=n.getFieldsMap(!0);return r.map(function(o){var i=xr(o);return a.get(i)||{INVALIDATE_NAME_PATH:xr(o)}})}),W(this,"getFieldsValue",function(r,a){n.warningUnhooked();var o,i,s;if(r===!0||Array.isArray(r)?(o=r,i=a):r&&ht(r)==="object"&&(s=r.strict,i=r.filter),o===!0&&!i)return n.store;var c=n.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),u=[];return c.forEach(function(d){var f,p,g="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(s){var h,b;if((h=(b=d).isList)!==null&&h!==void 0&&h.call(b))return}else if(!o&&(f=(p=d).isListField)!==null&&f!==void 0&&f.call(p))return;if(!i)u.push(g);else{var y="getMeta"in d?d.getMeta():null;i(y)&&u.push(g)}}),DM(n.store,u.map(xr))}),W(this,"getFieldValue",function(r){n.warningUnhooked();var a=xr(r);return fo(n.store,a)}),W(this,"getFieldsError",function(r){n.warningUnhooked();var a=n.getFieldEntitiesForNamePathList(r);return a.map(function(o,i){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:xr(r[i]),errors:[],warnings:[]}})}),W(this,"getFieldError",function(r){n.warningUnhooked();var a=xr(r),o=n.getFieldsError([a])[0];return o.errors}),W(this,"getFieldWarning",function(r){n.warningUnhooked();var a=xr(r),o=n.getFieldsError([a])[0];return o.warnings}),W(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,a=new Array(r),o=0;o0&&arguments[0]!==void 0?arguments[0]:{},a=new au,o=n.getFieldEntities(!0);o.forEach(function(c){var u=c.props.initialValue,d=c.getNamePath();if(u!==void 0){var f=a.get(d)||new Set;f.add({entity:c,value:u}),a.set(d,f)}});var i=function(u){u.forEach(function(d){var f=d.props.initialValue;if(f!==void 0){var p=d.getNamePath(),g=n.getInitialValue(p);if(g!==void 0)vn(!1,"Form already set 'initialValues' with path '".concat(p.join("."),"'. Field can not overwrite it."));else{var h=a.get(p);if(h&&h.size>1)vn(!1,"Multiple Field with path '".concat(p.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var b=n.getFieldValue(p),y=d.isListField();!y&&(!r.skipExist||b===void 0)&&n.updateStore(ri(n.store,p,De(h)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(c){var u=a.get(c);if(u){var d;(d=s).push.apply(d,De(De(u).map(function(f){return f.entity})))}})):s=o,i(s)}),W(this,"resetFields",function(r){n.warningUnhooked();var a=n.store;if(!r){n.updateStore(Lu(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(a,null,{type:"reset"}),n.notifyWatch();return}var o=r.map(xr);o.forEach(function(i){var s=n.getInitialValue(i);n.updateStore(ri(n.store,i,s))}),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(a,o,{type:"reset"}),n.notifyWatch(o)}),W(this,"setFields",function(r){n.warningUnhooked();var a=n.store,o=[];r.forEach(function(i){var s=i.name,c=xt(i,yle),u=xr(s);o.push(u),"value"in c&&n.updateStore(ri(n.store,u,c.value)),n.notifyObservers(a,[u],{type:"setField",data:i})}),n.notifyWatch(o)}),W(this,"getFields",function(){var r=n.getFieldEntities(!0),a=r.map(function(o){var i=o.getNamePath(),s=o.getMeta(),c=Z(Z({},s),{},{name:i,value:n.getFieldValue(i)});return Object.defineProperty(c,"originRCField",{value:!0}),c});return a}),W(this,"initEntityValue",function(r){var a=r.props.initialValue;if(a!==void 0){var o=r.getNamePath(),i=fo(n.store,o);i===void 0&&n.updateStore(ri(n.store,o,a))}}),W(this,"isMergedPreserve",function(r){var a=r!==void 0?r:n.preserve;return a??!0}),W(this,"registerField",function(r){n.fieldEntities.push(r);var a=r.getNamePath();if(n.notifyWatch([a]),r.props.initialValue!==void 0){var o=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(o,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(i,s){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(s)&&(!i||c.length>1)){var u=i?void 0:n.getInitialValue(a);if(a.length&&n.getFieldValue(a)!==u&&n.fieldEntities.every(function(f){return!xU(f.getNamePath(),a)})){var d=n.store;n.updateStore(ri(d,a,u,!0)),n.notifyObservers(d,[a],{type:"remove"}),n.triggerDependenciesUpdate(d,a)}}n.notifyWatch([a])}}),W(this,"dispatch",function(r){switch(r.type){case"updateValue":{var a=r.namePath,o=r.value;n.updateValue(a,o);break}case"validateField":{var i=r.namePath,s=r.triggerName;n.validateFields([i],{triggerName:s});break}}}),W(this,"notifyObservers",function(r,a,o){if(n.subscribable){var i=Z(Z({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var c=s.onStoreChange;c(r,a,i)})}else n.forceRootUpdate()}),W(this,"triggerDependenciesUpdate",function(r,a){var o=n.getDependencyChildrenFields(a);return o.length&&n.validateFields(o),n.notifyObservers(r,o,{type:"dependenciesUpdate",relatedFields:[a].concat(De(o))}),o}),W(this,"updateValue",function(r,a){var o=xr(r),i=n.store;n.updateStore(ri(n.store,o,a)),n.notifyObservers(i,[o],{type:"valueUpdate",source:"internal"}),n.notifyWatch([o]);var s=n.triggerDependenciesUpdate(i,o),c=n.callbacks.onValuesChange;if(c){var u=DM(n.store,[o]);c(u,n.getFieldsValue())}n.triggerOnFieldsChange([o].concat(De(s)))}),W(this,"setFieldsValue",function(r){n.warningUnhooked();var a=n.store;if(r){var o=Lu(n.store,r);n.updateStore(o)}n.notifyObservers(a,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),W(this,"setFieldValue",function(r,a){n.setFields([{name:r,value:a}])}),W(this,"getDependencyChildrenFields",function(r){var a=new Set,o=[],i=new au;n.getFieldEntities().forEach(function(c){var u=c.props.dependencies;(u||[]).forEach(function(d){var f=xr(d);i.update(f,function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return p.add(c),p})})});var s=function c(u){var d=i.get(u)||new Set;d.forEach(function(f){if(!a.has(f)){a.add(f);var p=f.getNamePath();f.isFieldDirty()&&p.length&&(o.push(p),c(p))}})};return s(r),o}),W(this,"triggerOnFieldsChange",function(r,a){var o=n.callbacks.onFieldsChange;if(o){var i=n.getFields();if(a){var s=new au;a.forEach(function(u){var d=u.name,f=u.errors;s.set(d,f)}),i.forEach(function(u){u.errors=s.get(u.name)||u.errors})}var c=i.filter(function(u){var d=u.name;return ed(r,d)});c.length&&o(c,i)}}),W(this,"validateFields",function(r,a){n.warningUnhooked();var o,i;Array.isArray(r)||typeof r=="string"||typeof a=="string"?(o=r,i=a):i=r;var s=!!o,c=s?o.map(xr):[],u=[],d=String(Date.now()),f=new Set,p=i||{},g=p.recursive,h=p.dirty;n.getFieldEntities(!0).forEach(function(v){if(s||c.push(v.getNamePath()),!(!v.props.rules||!v.props.rules.length)&&!(h&&!v.isFieldDirty())){var x=v.getNamePath();if(f.add(x.join(d)),!s||ed(c,x,g)){var C=v.validateRules(Z({validateMessages:Z(Z({},SU),n.validateMessages)},i));u.push(C.then(function(){return{name:x,errors:[],warnings:[]}}).catch(function(w){var E,I=[],T=[];return(E=w.forEach)===null||E===void 0||E.call(w,function(R){var _=R.rule.warningOnly,$=R.errors;_?T.push.apply(T,De($)):I.push.apply(I,De($))}),I.length?Promise.reject({name:x,errors:I,warnings:T}):{name:x,errors:I,warnings:T}}))}}});var b=ble(u);n.lastValidatePromise=b,b.catch(function(v){return v}).then(function(v){var x=v.map(function(C){var w=C.name;return w});n.notifyObservers(n.store,x,{type:"validateFinish"}),n.triggerOnFieldsChange(x,v)});var y=b.then(function(){return n.lastValidatePromise===b?Promise.resolve(n.getFieldsValue(c)):Promise.reject([])}).catch(function(v){var x=v.filter(function(C){return C&&C.errors.length});return Promise.reject({values:n.getFieldsValue(c),errorFields:x,outOfDate:n.lastValidatePromise!==b})});y.catch(function(v){return v});var S=c.filter(function(v){return f.has(v.join(d))});return n.triggerOnFieldsChange(S),y}),W(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var a=n.callbacks.onFinish;if(a)try{a(r)}catch(o){console.error(o)}}).catch(function(r){var a=n.callbacks.onFinishFailed;a&&a(r)})}),this.forceRootUpdate=t});function nO(e){var t=l.useRef(),n=l.useState({}),r=re(n,2),a=r[1];if(!t.current)if(e)t.current=e;else{var o=function(){a({})},i=new Sle(o);t.current=i.getForm()}return[t.current]}var dR=l.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),EU=function(t){var n=t.validateMessages,r=t.onFormChange,a=t.onFormFinish,o=t.children,i=l.useContext(dR),s=l.useRef({});return l.createElement(dR.Provider,{value:Z(Z({},i),{},{validateMessages:Z(Z({},i.validateMessages),n),triggerFormChange:function(u,d){r&&r(u,{changedFields:d,forms:s.current}),i.triggerFormChange(u,d)},triggerFormFinish:function(u,d){a&&a(u,{values:d,forms:s.current}),i.triggerFormFinish(u,d)},registerForm:function(u,d){u&&(s.current=Z(Z({},s.current),{},W({},u,d))),i.registerForm(u,d)},unregisterForm:function(u){var d=Z({},s.current);delete d[u],s.current=d,i.unregisterForm(u)}})},o)},xle=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],wle=function(t,n){var r=t.name,a=t.initialValues,o=t.fields,i=t.form,s=t.preserve,c=t.children,u=t.component,d=u===void 0?"form":u,f=t.validateMessages,p=t.validateTrigger,g=p===void 0?"onChange":p,h=t.onValuesChange,b=t.onFieldsChange,y=t.onFinish,S=t.onFinishFailed,v=t.clearOnDestroy,x=xt(t,xle),C=l.useRef(null),w=l.useContext(dR),E=nO(i),I=re(E,1),T=I[0],R=T.getInternalHooks(Ql),_=R.useSubscribe,$=R.setInitialValues,P=R.setCallbacks,D=R.setValidateMessages,A=R.setPreserve,O=R.destroyForm;l.useImperativeHandle(n,function(){return Z(Z({},T),{},{nativeElement:C.current})}),l.useEffect(function(){return w.registerForm(r,T),function(){w.unregisterForm(r)}},[w,T,r]),D(Z(Z({},w.validateMessages),f)),P({onValuesChange:h,onFieldsChange:function(H){if(w.triggerFormChange(r,H),b){for(var V=arguments.length,te=new Array(V>1?V-1:0),Y=1;Y{}}),TU=l.createContext(null),RU=e=>{const t=On(e,["prefixCls"]);return l.createElement(EU,Object.assign({},t))},rO=l.createContext({prefixCls:""}),zr=l.createContext({}),Ele=e=>{let{children:t,status:n,override:r}=e;const a=l.useContext(zr),o=l.useMemo(()=>{const i=Object.assign({},a);return r&&delete i.isFormItemInput,n&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[n,r,a]);return l.createElement(zr.Provider,{value:o},t)},_U=l.createContext(void 0),Ui=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let a=r;return n&&(a=se.createElement(Ele,{override:!0,status:!0},a)),t&&(a=se.createElement(Hie,null,a)),a};function xd(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function jM(e){const{closable:t,closeIcon:n}=e||{};return se.useMemo(()=>{if(!t&&(t===!1||n===!1||n===null))return!1;if(t===void 0&&n===void 0)return null;let r={closeIcon:typeof n!="boolean"&&n!==null?n:void 0};return t&&typeof t=="object"&&(r=Object.assign(Object.assign({},r),t)),r},[t,n])}function BM(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r{a&&Object.keys(a).forEach(o=>{a[o]!==void 0&&(e[o]=a[o])})}),e}const Ile={};function aO(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ile;const r=jM(e),a=jM(t),o=se.useMemo(()=>Object.assign({closeIcon:se.createElement(Jr,null)},n),[n]),i=se.useMemo(()=>r===!1?!1:r?BM(o,a,r):a===!1?!1:a?BM(o,a):o.closable?o:!1,[r,a,o]);return se.useMemo(()=>{if(i===!1)return[!1,null];const{closeIconRender:s}=o,{closeIcon:c}=i;let u=c;if(u!=null){s&&(u=s(c));const d=Yn(i,!0);Object.keys(d).length&&(u=se.isValidElement(u)?se.cloneElement(u,d):se.createElement("span",Object.assign({},d),u))}return[!0,u]},[i,o])}var $U=function(t){if(Xr()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(a){return a in r.style})}return!1},Tle=function(t,n){if(!$U(t))return!1;var r=document.createElement("div"),a=r.style[t];return r.style[t]=n,r.style[t]!==a};function fR(e,t){return!Array.isArray(e)&&t!==void 0?Tle(e,t):$U(e)}const Rle=()=>Xr()&&window.document.documentElement,I0=e=>{const{prefixCls:t,className:n,style:r,size:a,shape:o}=e,i=ne({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),s=ne({[`${t}-circle`]:o==="circle",[`${t}-square`]:o==="square",[`${t}-round`]:o==="round"}),c=l.useMemo(()=>typeof a=="number"?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return l.createElement("span",{className:ne(t,i,s,n),style:Object.assign(Object.assign({},c),r)})},_le=new un("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),T0=e=>({height:e,lineHeight:K(e)}),td=e=>Object.assign({width:e},T0(e)),$le=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:_le,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),YS=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},T0(e)),Ole=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:a,controlHeightSM:o}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},td(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},td(a)),[`${t}${t}-sm`]:Object.assign({},td(o))}},Nle=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:a,controlHeightSM:o,gradientFromColor:i,calc:s}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:n},YS(t,s)),[`${r}-lg`]:Object.assign({},YS(a,s)),[`${r}-sm`]:Object.assign({},YS(o,s))}},zM=e=>Object.assign({width:e},T0(e)),kle=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:a,calc:o}=e;return{[t]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:a},zM(o(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},zM(n)),{maxWidth:o(n).mul(4).equal(),maxHeight:o(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},XS=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},ZS=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},T0(e)),Ale=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:a,controlHeightSM:o,gradientFromColor:i,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal()},ZS(r,s))},XS(e,r,n)),{[`${n}-lg`]:Object.assign({},ZS(a,s))}),XS(e,a,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},ZS(o,s))}),XS(e,o,`${n}-sm`))},Mle=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:a,skeletonButtonCls:o,skeletonInputCls:i,skeletonImageCls:s,controlHeight:c,controlHeightLG:u,controlHeightSM:d,gradientFromColor:f,padding:p,marginSM:g,borderRadius:h,titleHeight:b,blockRadius:y,paragraphLiHeight:S,controlHeightXS:v,paragraphMarginTop:x}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:p,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},td(c)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},td(u)),[`${n}-sm`]:Object.assign({},td(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:b,background:f,borderRadius:y,[`+ ${a}`]:{marginBlockStart:d}},[a]:{padding:0,"> li":{width:"100%",height:S,listStyle:"none",background:f,borderRadius:y,"+ li":{marginBlockStart:v}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${a} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:g,[`+ ${a}`]:{marginBlockStart:x}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Ale(e)),Ole(e)),Nle(e)),kle(e)),[`${t}${t}-block`]:{width:"100%",[o]:{width:"100%"},[i]:{width:"100%"}},[`${t}${t}-active`]:{[` +}`),a)}else ig(a);return function(){ig(a)}},[t,a])}var Ise=!1;function Tse(e){return Ise}var CM=function(t){return t===!1?!1:!Qr()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Zg=l.forwardRef(function(e,t){var n=e.open,r=e.autoLock,a=e.getContainer;e.debug;var o=e.autoDestroy,i=o===void 0?!0:o,s=e.children,c=l.useState(n),u=re(c,2),d=u[0],f=u[1],p=d||n;l.useEffect(function(){(i||n)&&f(n)},[n,i]);var g=l.useState(function(){return CM(a)}),h=re(g,2),b=h[0],y=h[1];l.useEffect(function(){var $=CM(a);y($??null)});var S=xse(p&&!b),v=re(S,2),x=v[0],w=v[1],C=b??x;Ese(r&&n&&Qr()&&(C===x||C===document.body));var E=null;if(s&&mi(s)&&t){var I=s;E=I.ref}var T=Os(E,t);if(!p||!Qr()||b===void 0)return null;var R=C===!1||Tse(),_=s;return t&&(_=l.cloneElement(s,{ref:T})),l.createElement(pU.Provider,{value:w},R?_:Lr.createPortal(_,C))}),mU=l.createContext({});function Rse(){var e=Z({},jg);return e.useId}var EM=0,IM=Rse();const hU=IM?function(t){var n=IM();return t||n}:function(t){var n=l.useState("ssr-id"),r=re(n,2),a=r[0],o=r[1];return l.useEffect(function(){var i=EM;EM+=1,o("rc_unique_".concat(i))},[]),t||a};function TM(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function RM(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var a=e.document;n=a.documentElement[r],typeof n!="number"&&(n=a.body[r])}return n}function _se(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,a=r.defaultView||r.parentWindow;return n.left+=RM(a),n.top+=RM(a,!0),n}const $se=l.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var _M={width:0,height:0,overflow:"hidden",outline:"none"},Ose={outline:"none"},vU=se.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,o=e.title,i=e.ariaId,s=e.footer,c=e.closable,u=e.closeIcon,d=e.onClose,f=e.children,p=e.bodyStyle,g=e.bodyProps,h=e.modalRender,b=e.onMouseDown,y=e.onMouseUp,S=e.holderRef,v=e.visible,x=e.forceRender,w=e.width,C=e.height,E=e.classNames,I=e.styles,T=se.useContext(mU),R=T.panel,_=Os(S,R),$=l.useRef(),P=l.useRef(),D=l.useRef();se.useImperativeHandle(t,function(){return{focus:function(){var z;(z=D.current)===null||z===void 0||z.focus({preventScroll:!0})},changeActive:function(z){var H=document,V=H.activeElement;z&&V===P.current?$.current.focus({preventScroll:!0}):!z&&V===$.current&&P.current.focus({preventScroll:!0})}}});var A={};w!==void 0&&(A.width=w),C!==void 0&&(A.height=C);var O=s?se.createElement("div",{className:ne("".concat(n,"-footer"),E==null?void 0:E.footer),style:Z({},I==null?void 0:I.footer)},s):null,N=o?se.createElement("div",{className:ne("".concat(n,"-header"),E==null?void 0:E.header),style:Z({},I==null?void 0:I.header)},se.createElement("div",{className:"".concat(n,"-title"),id:i},o)):null,k=l.useMemo(function(){return mt(c)==="object"&&c!==null?c:c?{closeIcon:u??se.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[c,u,n]),M=Yn(k,!0),L=mt(c)==="object"&&c.disabled,F=c?se.createElement("button",pe({type:"button",onClick:d,"aria-label":"Close"},M,{className:"".concat(n,"-close"),disabled:L}),k.closeIcon):null,j=se.createElement("div",{className:ne("".concat(n,"-content"),E==null?void 0:E.content),style:I==null?void 0:I.content},F,N,se.createElement("div",pe({className:ne("".concat(n,"-body"),E==null?void 0:E.body),style:Z(Z({},p),I==null?void 0:I.body)},g),f),O);return se.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":o?i:null,"aria-modal":"true",ref:_,style:Z(Z({},a),A),className:ne(n,r),onMouseDown:b,onMouseUp:y},se.createElement("div",{tabIndex:0,ref:$,style:_M,"aria-hidden":"true"}),se.createElement("div",{ref:D,tabIndex:-1,style:Ose},se.createElement($se,{shouldUpdate:v||x},h?h(j):j)),se.createElement("div",{tabIndex:0,ref:P,style:_M,"aria-hidden":"true"}))}),bU=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,a=e.style,o=e.className,i=e.visible,s=e.forceRender,c=e.destroyOnClose,u=e.motionName,d=e.ariaId,f=e.onVisibleChanged,p=e.mousePosition,g=l.useRef(),h=l.useState(),b=re(h,2),y=b[0],S=b[1],v={};y&&(v.transformOrigin=y);function x(){var w=_se(g.current);S(p&&(p.x||p.y)?"".concat(p.x-w.left,"px ").concat(p.y-w.top,"px"):"")}return l.createElement(ea,{visible:i,onVisibleChanged:f,onAppearPrepare:x,onEnterPrepare:x,forceRender:s,motionName:u,removeOnLeave:c,ref:g},function(w,C){var E=w.className,I=w.style;return l.createElement(vU,pe({},e,{ref:t,title:r,ariaId:d,prefixCls:n,holderRef:C,style:Z(Z(Z({},I),a),v),className:ne(o,E)}))})});bU.displayName="Content";var Nse=function(t){var n=t.prefixCls,r=t.style,a=t.visible,o=t.maskProps,i=t.motionName,s=t.className;return l.createElement(ea,{key:"mask",visible:a,motionName:i,leavedClassName:"".concat(n,"-mask-hidden")},function(c,u){var d=c.className,f=c.style;return l.createElement("div",pe({ref:u,style:Z(Z({},f),r),className:ne("".concat(n,"-mask"),d,s)},o))})},kse=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,a=t.zIndex,o=t.visible,i=o===void 0?!1:o,s=t.keyboard,c=s===void 0?!0:s,u=t.focusTriggerAfterClose,d=u===void 0?!0:u,f=t.wrapStyle,p=t.wrapClassName,g=t.wrapProps,h=t.onClose,b=t.afterOpenChange,y=t.afterClose,S=t.transitionName,v=t.animation,x=t.closable,w=x===void 0?!0:x,C=t.mask,E=C===void 0?!0:C,I=t.maskTransitionName,T=t.maskAnimation,R=t.maskClosable,_=R===void 0?!0:R,$=t.maskStyle,P=t.maskProps,D=t.rootClassName,A=t.classNames,O=t.styles,N=l.useRef(),k=l.useRef(),M=l.useRef(),L=l.useState(i),F=re(L,2),j=F[0],B=F[1],z=hU();function H(){IT(k.current,document.activeElement)||(N.current=document.activeElement)}function V(){if(!IT(k.current,document.activeElement)){var oe;(oe=M.current)===null||oe===void 0||oe.focus()}}function te(oe){if(oe)V();else{if(B(!1),E&&N.current&&d){try{N.current.focus({preventScroll:!0})}catch{}N.current=null}j&&(y==null||y())}b==null||b(oe)}function Y(oe){h==null||h(oe)}var J=l.useRef(!1),G=l.useRef(),U=function(){clearTimeout(G.current),J.current=!0},q=function(){G.current=setTimeout(function(){J.current=!1})},X=null;_&&(X=function(le){J.current?J.current=!1:k.current===le.target&&Y(le)});function Q(oe){if(c&&oe.keyCode===Le.ESC){oe.stopPropagation(),Y(oe);return}i&&oe.keyCode===Le.TAB&&M.current.changeActive(!oe.shiftKey)}l.useEffect(function(){i&&(B(!0),H())},[i]),l.useEffect(function(){return function(){clearTimeout(G.current)}},[]);var ee=Z(Z(Z({zIndex:a},f),O==null?void 0:O.wrapper),{},{display:j?null:"none"});return l.createElement("div",pe({className:ne("".concat(r,"-root"),D)},Yn(t,{data:!0})),l.createElement(Nse,{prefixCls:r,visible:E&&i,motionName:TM(r,I,T),style:Z(Z({zIndex:a},$),O==null?void 0:O.mask),maskProps:P,className:A==null?void 0:A.mask}),l.createElement("div",pe({tabIndex:-1,onKeyDown:Q,className:ne("".concat(r,"-wrap"),p,A==null?void 0:A.wrapper),ref:k,onClick:X,style:ee},g),l.createElement(bU,pe({},t,{onMouseDown:U,onMouseUp:q,ref:M,closable:w,ariaId:z,prefixCls:r,visible:i&&j,onClose:Y,onVisibleChanged:te,motionName:TM(r,S,v)}))))},eO=function(t){var n=t.visible,r=t.getContainer,a=t.forceRender,o=t.destroyOnClose,i=o===void 0?!1:o,s=t.afterClose,c=t.panelRef,u=l.useState(n),d=re(u,2),f=d[0],p=d[1],g=l.useMemo(function(){return{panel:c}},[c]);return l.useEffect(function(){n&&p(!0)},[n]),!a&&i&&!f?null:l.createElement(mU.Provider,{value:g},l.createElement(Zg,{open:n||a||f,autoDestroy:!1,getContainer:r,autoLock:n||f},l.createElement(kse,pe({},t,{destroyOnClose:i,afterClose:function(){s==null||s(),p(!1)}}))))};eO.displayName="Dialog";var Ql="RC_FORM_INTERNAL_HOOKS",Fn=function(){vn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Ic=l.createContext({getFieldValue:Fn,getFieldsValue:Fn,getFieldError:Fn,getFieldWarning:Fn,getFieldsError:Fn,isFieldsTouched:Fn,isFieldTouched:Fn,isFieldValidating:Fn,isFieldsValidating:Fn,resetFields:Fn,setFields:Fn,setFieldValue:Fn,setFieldsValue:Fn,validateFields:Fn,submit:Fn,getInternalHooks:function(){return Fn(),{dispatch:Fn,initEntityValue:Fn,registerField:Fn,useSubscribe:Fn,setInitialValues:Fn,destroyForm:Fn,setCallbacks:Fn,registerWatch:Fn,getFields:Fn,setValidateMessages:Fn,setPreserve:Fn,getInitialValue:Fn}}}),gg=l.createContext(null);function rR(e){return e==null?[]:Array.isArray(e)?e:[e]}function Ase(e){return e&&!!e._init}function aR(){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 t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var oR=aR();function Mse(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Pse(e,t,n){if(v0())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var a=new(e.bind.apply(e,r));return n&&ag(a,n.prototype),a}function iR(e){var t=typeof Map=="function"?new Map:void 0;return iR=function(r){if(r===null||!Mse(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,a)}function a(){return Pse(r,arguments,xc(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),ag(a,r)},iR(e)}var Dse=/%[sdj%]/g,Lse=function(){};function sR(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function mo(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=o)return s;switch(s){case"%s":return String(n[a++]);case"%d":return Number(n[a++]);case"%j":try{return JSON.stringify(n[a++])}catch{return"[Circular]"}break;default:return s}});return i}return e}function Fse(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Br(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Fse(t)&&typeof e=="string"&&!e)}function jse(e,t,n){var r=[],a=0,o=e.length;function i(s){r.push.apply(r,Pe(s||[])),a++,a===o&&n(r)}e.forEach(function(s){t(s,i)})}function $M(e,t,n){var r=0,a=e.length;function o(i){if(i&&i.length){n(i);return}var s=r;r=r+1,st.max?a.push(mo(o.messages[f].max,t.fullField,t.max)):s&&c&&(dt.max)&&a.push(mo(o.messages[f].range,t.fullField,t.min,t.max))},yU=function(t,n,r,a,o,i){t.required&&(!r.hasOwnProperty(t.field)||Br(n,i||t.type))&&a.push(mo(o.messages.required,t.fullField))},uh;const qse=function(){if(uh)return uh;var e="[a-fA-F\\d:]",t=function(E){return E&&E.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?: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}",r="[a-fA-F\\d]{1,4}",a=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],o="(?:%[0-9a-zA-Z]{1,})?",i="(?:".concat(a.join("|"),")").concat(o),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),c=new RegExp("^".concat(n,"$")),u=new RegExp("^".concat(i,"$")),d=function(E){return E&&E.exact?s:new RegExp("(?:".concat(t(E)).concat(n).concat(t(E),")|(?:").concat(t(E)).concat(i).concat(t(E),")"),"g")};d.v4=function(C){return C&&C.exact?c:new RegExp("".concat(t(C)).concat(n).concat(t(C)),"g")},d.v6=function(C){return C&&C.exact?u:new RegExp("".concat(t(C)).concat(i).concat(t(C)),"g")};var f="(?:(?:[a-z]+:)?//)",p="(?:\\S+(?::\\S*)?@)?",g=d.v4().source,h=d.v6().source,b="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",y="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",S="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",v="(?::\\d{2,5})?",x='(?:[/?#][^\\s"]*)?',w="(?:".concat(f,"|www\\.)").concat(p,"(?:localhost|").concat(g,"|").concat(h,"|").concat(b).concat(y).concat(S,")").concat(v).concat(x);return uh=new RegExp("(?:^".concat(w,"$)"),"i"),uh};var AM={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},Kf={integer:function(t){return Kf.number(t)&&parseInt(t,10)===t},float:function(t){return Kf.number(t)&&!Kf.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return mt(t)==="object"&&!Kf.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(AM.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(qse())},hex:function(t){return typeof t=="string"&&!!t.match(AM.hex)}},Kse=function(t,n,r,a,o){if(t.required&&n===void 0){yU(t,n,r,a,o);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;i.indexOf(s)>-1?Kf[s](n)||a.push(mo(o.messages.types[s],t.fullField,t.type)):s&&mt(n)!==t.type&&a.push(mo(o.messages.types[s],t.fullField,t.type))},Yse=function(t,n,r,a,o){(/^\s+$/.test(n)||n==="")&&a.push(mo(o.messages.whitespace,t.fullField))};const gn={required:yU,whitespace:Yse,type:Kse,range:Gse,enum:Vse,pattern:Wse};var Xse=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Br(n)&&!t.required)return r();gn.required(t,n,a,i,o)}r(i)},Zse=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();gn.required(t,n,a,i,o,"array"),n!=null&&(gn.type(t,n,a,i,o),gn.range(t,n,a,i,o))}r(i)},Qse=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Br(n)&&!t.required)return r();gn.required(t,n,a,i,o),n!==void 0&&gn.type(t,n,a,i,o)}r(i)},Jse=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Br(n,"date")&&!t.required)return r();if(gn.required(t,n,a,i,o),!Br(n,"date")){var c;n instanceof Date?c=n:c=new Date(n),gn.type(t,c,a,i,o),c&&gn.range(t,c.getTime(),a,i,o)}}r(i)},ele="enum",tle=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Br(n)&&!t.required)return r();gn.required(t,n,a,i,o),n!==void 0&&gn[ele](t,n,a,i,o)}r(i)},nle=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Br(n)&&!t.required)return r();gn.required(t,n,a,i,o),n!==void 0&&(gn.type(t,n,a,i,o),gn.range(t,n,a,i,o))}r(i)},rle=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Br(n)&&!t.required)return r();gn.required(t,n,a,i,o),n!==void 0&&(gn.type(t,n,a,i,o),gn.range(t,n,a,i,o))}r(i)},ale=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Br(n)&&!t.required)return r();gn.required(t,n,a,i,o),n!==void 0&&gn.type(t,n,a,i,o)}r(i)},ole=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),Br(n)&&!t.required)return r();gn.required(t,n,a,i,o),n!==void 0&&(gn.type(t,n,a,i,o),gn.range(t,n,a,i,o))}r(i)},ile=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Br(n)&&!t.required)return r();gn.required(t,n,a,i,o),n!==void 0&&gn.type(t,n,a,i,o)}r(i)},sle=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Br(n,"string")&&!t.required)return r();gn.required(t,n,a,i,o),Br(n,"string")||gn.pattern(t,n,a,i,o)}r(i)},lle=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Br(n)&&!t.required)return r();gn.required(t,n,a,i,o),Br(n)||gn.type(t,n,a,i,o)}r(i)},cle=function(t,n,r,a,o){var i=[],s=Array.isArray(n)?"array":mt(n);gn.required(t,n,a,i,o,s),r(i)},ule=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(Br(n,"string")&&!t.required)return r();gn.required(t,n,a,i,o,"string"),Br(n,"string")||(gn.type(t,n,a,i,o),gn.range(t,n,a,i,o),gn.pattern(t,n,a,i,o),t.whitespace===!0&&gn.whitespace(t,n,a,i,o))}r(i)},qS=function(t,n,r,a,o){var i=t.type,s=[],c=t.required||!t.required&&a.hasOwnProperty(t.field);if(c){if(Br(n,i)&&!t.required)return r();gn.required(t,n,a,s,o,i),Br(n,i)||gn.type(t,n,a,s,o)}r(s)};const Sp={string:ule,method:ale,number:ole,boolean:Qse,regexp:lle,integer:rle,float:nle,array:Zse,object:ile,enum:tle,pattern:sle,date:Jse,url:qS,hex:qS,email:qS,required:cle,any:Xse};var Qg=function(){function e(t){Xn(this,e),W(this,"rules",null),W(this,"_messages",oR),this.define(t)}return Zn(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(mt(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(a){var o=n[a];r.rules[a]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(n){return n&&(this._messages=kM(aR(),n)),this._messages}},{key:"validate",value:function(n){var r=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},i=n,s=a,c=o;if(typeof s=="function"&&(c=s,s={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,i),Promise.resolve(i);function u(h){var b=[],y={};function S(x){if(Array.isArray(x)){var w;b=(w=b).concat.apply(w,Pe(x))}else b.push(x)}for(var v=0;v0&&arguments[0]!==void 0?arguments[0]:[],T=Array.isArray(I)?I:[I];!s.suppressWarning&&T.length&&e.warning("async-validator:",T),T.length&&y.message!==void 0&&(T=[].concat(y.message));var R=T.map(NM(y,i));if(s.first&&R.length)return g[y.field]=1,b(R);if(!S)b(R);else{if(y.required&&!h.value)return y.message!==void 0?R=[].concat(y.message).map(NM(y,i)):s.error&&(R=[s.error(y,mo(s.messages.required,y.field))]),b(R);var _={};y.defaultField&&Object.keys(h.value).map(function(D){_[D]=y.defaultField}),_=Z(Z({},_),h.rule.fields);var $={};Object.keys(_).forEach(function(D){var A=_[D],O=Array.isArray(A)?A:[A];$[D]=O.map(v.bind(null,D))});var P=new e($);P.messages(s.messages),h.rule.options&&(h.rule.options.messages=s.messages,h.rule.options.error=s.error),P.validate(h.value,h.rule.options||s,function(D){var A=[];R&&R.length&&A.push.apply(A,Pe(R)),D&&D.length&&A.push.apply(A,Pe(D)),b(A.length?A:null)})}}var w;if(y.asyncValidator)w=y.asyncValidator(y,h.value,x,h.source,s);else if(y.validator){try{w=y.validator(y,h.value,x,h.source,s)}catch(I){var C,E;(C=(E=console).error)===null||C===void 0||C.call(E,I),s.suppressValidatorError||setTimeout(function(){throw I},0),x(I.message)}w===!0?x():w===!1?x(typeof y.message=="function"?y.message(y.fullField||y.field):y.message||"".concat(y.fullField||y.field," fails")):w instanceof Array?x(w):w instanceof Error&&x(w.message)}w&&w.then&&w.then(function(){return x()},function(I){return x(I)})},function(h){u(h)},i)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!Sp.hasOwnProperty(n.type))throw new Error(mo("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),a=r.indexOf("message");return a!==-1&&r.splice(a,1),r.length===1&&r[0]==="required"?Sp.required:Sp[this.getType(n)]||void 0}}]),e}();W(Qg,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Sp[t]=n});W(Qg,"warning",Lse);W(Qg,"messages",oR);W(Qg,"validators",Sp);var oo="'${name}' is not a valid ${type}",SU={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:oo,method:oo,array:oo,object:oo,number:oo,date:oo,boolean:oo,integer:oo,float:oo,regexp:oo,email:oo,url:oo,hex:oo},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}"}},MM=Qg;function dle(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var PM="CODE_LOGIC_ERROR";function lR(e,t,n,r,a){return cR.apply(this,arguments)}function cR(){return cR=go(Hn().mark(function e(t,n,r,a,o){var i,s,c,u,d,f,p,g,h;return Hn().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return i=Z({},r),delete i.ruleIndex,MM.warning=function(){},i.validator&&(s=i.validator,i.validator=function(){try{return s.apply(void 0,arguments)}catch(S){return console.error(S),Promise.reject(PM)}}),c=null,i&&i.type==="array"&&i.defaultField&&(c=i.defaultField,delete i.defaultField),u=new MM(W({},t,[i])),d=Lu(SU,a.validateMessages),u.messages(d),f=[],y.prev=10,y.next=13,Promise.resolve(u.validate(W({},t,n),Z({},a)));case 13:y.next=18;break;case 15:y.prev=15,y.t0=y.catch(10),y.t0.errors&&(f=y.t0.errors.map(function(S,v){var x=S.message,w=x===PM?d.default:x;return l.isValidElement(w)?l.cloneElement(w,{key:"error_".concat(v)}):w}));case 18:if(!(!f.length&&c)){y.next=23;break}return y.next=21,Promise.all(n.map(function(S,v){return lR("".concat(t,".").concat(v),S,c,a,o)}));case 21:return p=y.sent,y.abrupt("return",p.reduce(function(S,v){return[].concat(Pe(S),Pe(v))},[]));case 23:return g=Z(Z({},r),{},{name:t,enum:(r.enum||[]).join(", ")},o),h=f.map(function(S){return typeof S=="string"?dle(S,g):S}),y.abrupt("return",h);case 26:case"end":return y.stop()}},e,null,[[10,15]])})),cR.apply(this,arguments)}function fle(e,t,n,r,a,o){var i=e.join("."),s=n.map(function(d,f){var p=d.validator,g=Z(Z({},d),{},{ruleIndex:f});return p&&(g.validator=function(h,b,y){var S=!1,v=function(){for(var C=arguments.length,E=new Array(C),I=0;I2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return xU(t,r,n)})}function xU(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,a){return e[a]===r})}function mle(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||mt(e)!=="object"||mt(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),a=new Set([].concat(n,r));return Pe(a).every(function(o){var i=e[o],s=t[o];return typeof i=="function"&&typeof s=="function"?!0:i===s})}function hle(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&mt(t.target)==="object"&&e in t.target?t.target[e]:t}function LM(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var a=e[t],o=t-n;return o>0?[].concat(Pe(e.slice(0,n)),[a],Pe(e.slice(n,t)),Pe(e.slice(t+1,r))):o<0?[].concat(Pe(e.slice(0,t)),Pe(e.slice(t+1,n+1)),[a],Pe(e.slice(n+1,r))):e}var vle=["name"],Ro=[];function KS(e,t,n,r,a,o){return typeof e=="function"?e(t,n,"source"in o?{source:o.source}:{}):r!==a}var tO=function(e){Io(n,e);var t=Yo(n);function n(r){var a;if(Xn(this,n),a=t.call(this,r),W(Ue(a),"state",{resetCount:0}),W(Ue(a),"cancelRegisterFunc",null),W(Ue(a),"mounted",!1),W(Ue(a),"touched",!1),W(Ue(a),"dirty",!1),W(Ue(a),"validatePromise",void 0),W(Ue(a),"prevValidating",void 0),W(Ue(a),"errors",Ro),W(Ue(a),"warnings",Ro),W(Ue(a),"cancelRegister",function(){var c=a.props,u=c.preserve,d=c.isListField,f=c.name;a.cancelRegisterFunc&&a.cancelRegisterFunc(d,u,xr(f)),a.cancelRegisterFunc=null}),W(Ue(a),"getNamePath",function(){var c=a.props,u=c.name,d=c.fieldContext,f=d.prefixName,p=f===void 0?[]:f;return u!==void 0?[].concat(Pe(p),Pe(u)):[]}),W(Ue(a),"getRules",function(){var c=a.props,u=c.rules,d=u===void 0?[]:u,f=c.fieldContext;return d.map(function(p){return typeof p=="function"?p(f):p})}),W(Ue(a),"refresh",function(){a.mounted&&a.setState(function(c){var u=c.resetCount;return{resetCount:u+1}})}),W(Ue(a),"metaCache",null),W(Ue(a),"triggerMetaEvent",function(c){var u=a.props.onMetaChange;if(u){var d=Z(Z({},a.getMeta()),{},{destroy:c});Ho(a.metaCache,d)||u(d),a.metaCache=d}else a.metaCache=null}),W(Ue(a),"onStoreChange",function(c,u,d){var f=a.props,p=f.shouldUpdate,g=f.dependencies,h=g===void 0?[]:g,b=f.onReset,y=d.store,S=a.getNamePath(),v=a.getValue(c),x=a.getValue(y),w=u&&ed(u,S);switch(d.type==="valueUpdate"&&d.source==="external"&&!Ho(v,x)&&(a.touched=!0,a.dirty=!0,a.validatePromise=null,a.errors=Ro,a.warnings=Ro,a.triggerMetaEvent()),d.type){case"reset":if(!u||w){a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.errors=Ro,a.warnings=Ro,a.triggerMetaEvent(),b==null||b(),a.refresh();return}break;case"remove":{if(p&&KS(p,c,y,v,x,d)){a.reRender();return}break}case"setField":{var C=d.data;if(w){"touched"in C&&(a.touched=C.touched),"validating"in C&&!("originRCField"in C)&&(a.validatePromise=C.validating?Promise.resolve([]):null),"errors"in C&&(a.errors=C.errors||Ro),"warnings"in C&&(a.warnings=C.warnings||Ro),a.dirty=!0,a.triggerMetaEvent(),a.reRender();return}else if("value"in C&&ed(u,S,!0)){a.reRender();return}if(p&&!S.length&&KS(p,c,y,v,x,d)){a.reRender();return}break}case"dependenciesUpdate":{var E=h.map(xr);if(E.some(function(I){return ed(d.relatedFields,I)})){a.reRender();return}break}default:if(w||(!h.length||S.length||p)&&KS(p,c,y,v,x,d)){a.reRender();return}break}p===!0&&a.reRender()}),W(Ue(a),"validateRules",function(c){var u=a.getNamePath(),d=a.getValue(),f=c||{},p=f.triggerName,g=f.validateOnly,h=g===void 0?!1:g,b=Promise.resolve().then(go(Hn().mark(function y(){var S,v,x,w,C,E,I;return Hn().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:if(a.mounted){R.next=2;break}return R.abrupt("return",[]);case 2:if(S=a.props,v=S.validateFirst,x=v===void 0?!1:v,w=S.messageVariables,C=S.validateDebounce,E=a.getRules(),p&&(E=E.filter(function(_){return _}).filter(function(_){var $=_.validateTrigger;if(!$)return!0;var P=rR($);return P.includes(p)})),!(C&&p)){R.next=10;break}return R.next=8,new Promise(function(_){setTimeout(_,C)});case 8:if(a.validatePromise===b){R.next=10;break}return R.abrupt("return",[]);case 10:return I=fle(u,d,E,c,x,w),I.catch(function(_){return _}).then(function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ro;if(a.validatePromise===b){var $;a.validatePromise=null;var P=[],D=[];($=_.forEach)===null||$===void 0||$.call(_,function(A){var O=A.rule.warningOnly,N=A.errors,k=N===void 0?Ro:N;O?D.push.apply(D,Pe(k)):P.push.apply(P,Pe(k))}),a.errors=P,a.warnings=D,a.triggerMetaEvent(),a.reRender()}}),R.abrupt("return",I);case 13:case"end":return R.stop()}},y)})));return h||(a.validatePromise=b,a.dirty=!0,a.errors=Ro,a.warnings=Ro,a.triggerMetaEvent(),a.reRender()),b}),W(Ue(a),"isFieldValidating",function(){return!!a.validatePromise}),W(Ue(a),"isFieldTouched",function(){return a.touched}),W(Ue(a),"isFieldDirty",function(){if(a.dirty||a.props.initialValue!==void 0)return!0;var c=a.props.fieldContext,u=c.getInternalHooks(Ql),d=u.getInitialValue;return d(a.getNamePath())!==void 0}),W(Ue(a),"getErrors",function(){return a.errors}),W(Ue(a),"getWarnings",function(){return a.warnings}),W(Ue(a),"isListField",function(){return a.props.isListField}),W(Ue(a),"isList",function(){return a.props.isList}),W(Ue(a),"isPreserve",function(){return a.props.preserve}),W(Ue(a),"getMeta",function(){a.prevValidating=a.isFieldValidating();var c={touched:a.isFieldTouched(),validating:a.prevValidating,errors:a.errors,warnings:a.warnings,name:a.getNamePath(),validated:a.validatePromise===null};return c}),W(Ue(a),"getOnlyChild",function(c){if(typeof c=="function"){var u=a.getMeta();return Z(Z({},a.getOnlyChild(c(a.getControlled(),u,a.props.fieldContext))),{},{isFunction:!0})}var d=vr(c);return d.length!==1||!l.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),W(Ue(a),"getValue",function(c){var u=a.props.fieldContext.getFieldsValue,d=a.getNamePath();return po(c||u(!0),d)}),W(Ue(a),"getControlled",function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=a.props,d=u.name,f=u.trigger,p=u.validateTrigger,g=u.getValueFromEvent,h=u.normalize,b=u.valuePropName,y=u.getValueProps,S=u.fieldContext,v=p!==void 0?p:S.validateTrigger,x=a.getNamePath(),w=S.getInternalHooks,C=S.getFieldsValue,E=w(Ql),I=E.dispatch,T=a.getValue(),R=y||function(A){return W({},b,A)},_=c[f],$=d!==void 0?R(T):{},P=Z(Z({},c),$);P[f]=function(){a.touched=!0,a.dirty=!0,a.triggerMetaEvent();for(var A,O=arguments.length,N=new Array(O),k=0;k=0&&_<=$.length?(d.keys=[].concat(Pe(d.keys.slice(0,_)),[d.id],Pe(d.keys.slice(_))),x([].concat(Pe($.slice(0,_)),[R],Pe($.slice(_))))):(d.keys=[].concat(Pe(d.keys),[d.id]),x([].concat(Pe($),[R]))),d.id+=1},remove:function(R){var _=C(),$=new Set(Array.isArray(R)?R:[R]);$.size<=0||(d.keys=d.keys.filter(function(P,D){return!$.has(D)}),x(_.filter(function(P,D){return!$.has(D)})))},move:function(R,_){if(R!==_){var $=C();R<0||R>=$.length||_<0||_>=$.length||(d.keys=LM(d.keys,R,_),x(LM($,R,_)))}}},I=v||[];return Array.isArray(I)||(I=[]),r(I.map(function(T,R){var _=d.keys[R];return _===void 0&&(d.keys[R]=d.id,_=d.keys[R],d.id+=1),{name:R,key:_,isListField:!0}}),E,y)})))}function ble(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(a,o){e.forEach(function(i,s){i.catch(function(c){return t=!0,c}).then(function(c){n-=1,r[s]=c,!(n>0)&&(t&&o(r),a(r))})})}):Promise.resolve([])}var CU="__@field_split__";function YS(e){return e.map(function(t){return"".concat(mt(t),":").concat(t)}).join(CU)}var au=function(){function e(){Xn(this,e),W(this,"kvs",new Map)}return Zn(e,[{key:"set",value:function(n,r){this.kvs.set(YS(n),r)}},{key:"get",value:function(n){return this.kvs.get(YS(n))}},{key:"update",value:function(n,r){var a=this.get(n),o=r(a);o?this.set(n,o):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(YS(n))}},{key:"map",value:function(n){return Pe(this.kvs.entries()).map(function(r){var a=re(r,2),o=a[0],i=a[1],s=o.split(CU);return n({key:s.map(function(c){var u=c.match(/^([^:]*):(.*)$/),d=re(u,3),f=d[1],p=d[2];return f==="number"?Number(p):p}),value:i})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var a=r.key,o=r.value;return n[a.join(".")]=o,null}),n}}]),e}(),yle=["name"],Sle=Zn(function e(t){var n=this;Xn(this,e),W(this,"formHooked",!1),W(this,"forceRootUpdate",void 0),W(this,"subscribable",!0),W(this,"store",{}),W(this,"fieldEntities",[]),W(this,"initialValues",{}),W(this,"callbacks",{}),W(this,"validateMessages",null),W(this,"preserve",null),W(this,"lastValidatePromise",null),W(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),W(this,"getInternalHooks",function(r){return r===Ql?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(vn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),W(this,"useSubscribe",function(r){n.subscribable=r}),W(this,"prevWithoutPreserves",null),W(this,"setInitialValues",function(r,a){if(n.initialValues=r||{},a){var o,i=Lu(r,n.store);(o=n.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var c=s.key;i=ai(i,c,po(r,c))}),n.prevWithoutPreserves=null,n.updateStore(i)}}),W(this,"destroyForm",function(r){if(r)n.updateStore({});else{var a=new au;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||a.set(o.getNamePath(),!0)}),n.prevWithoutPreserves=a}}),W(this,"getInitialValue",function(r){var a=po(n.initialValues,r);return r.length?Lu(a):a}),W(this,"setCallbacks",function(r){n.callbacks=r}),W(this,"setValidateMessages",function(r){n.validateMessages=r}),W(this,"setPreserve",function(r){n.preserve=r}),W(this,"watchList",[]),W(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(a){return a!==r})}}),W(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var a=n.getFieldsValue(),o=n.getFieldsValue(!0);n.watchList.forEach(function(i){i(a,o,r)})}}),W(this,"timeoutId",null),W(this,"warningUnhooked",function(){}),W(this,"updateStore",function(r){n.store=r}),W(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(a){return a.getNamePath().length}):n.fieldEntities}),W(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,a=new au;return n.getFieldEntities(r).forEach(function(o){var i=o.getNamePath();a.set(i,o)}),a}),W(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var a=n.getFieldsMap(!0);return r.map(function(o){var i=xr(o);return a.get(i)||{INVALIDATE_NAME_PATH:xr(o)}})}),W(this,"getFieldsValue",function(r,a){n.warningUnhooked();var o,i,s;if(r===!0||Array.isArray(r)?(o=r,i=a):r&&mt(r)==="object"&&(s=r.strict,i=r.filter),o===!0&&!i)return n.store;var c=n.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),u=[];return c.forEach(function(d){var f,p,g="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(s){var h,b;if((h=(b=d).isList)!==null&&h!==void 0&&h.call(b))return}else if(!o&&(f=(p=d).isListField)!==null&&f!==void 0&&f.call(p))return;if(!i)u.push(g);else{var y="getMeta"in d?d.getMeta():null;i(y)&&u.push(g)}}),DM(n.store,u.map(xr))}),W(this,"getFieldValue",function(r){n.warningUnhooked();var a=xr(r);return po(n.store,a)}),W(this,"getFieldsError",function(r){n.warningUnhooked();var a=n.getFieldEntitiesForNamePathList(r);return a.map(function(o,i){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:xr(r[i]),errors:[],warnings:[]}})}),W(this,"getFieldError",function(r){n.warningUnhooked();var a=xr(r),o=n.getFieldsError([a])[0];return o.errors}),W(this,"getFieldWarning",function(r){n.warningUnhooked();var a=xr(r),o=n.getFieldsError([a])[0];return o.warnings}),W(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,a=new Array(r),o=0;o0&&arguments[0]!==void 0?arguments[0]:{},a=new au,o=n.getFieldEntities(!0);o.forEach(function(c){var u=c.props.initialValue,d=c.getNamePath();if(u!==void 0){var f=a.get(d)||new Set;f.add({entity:c,value:u}),a.set(d,f)}});var i=function(u){u.forEach(function(d){var f=d.props.initialValue;if(f!==void 0){var p=d.getNamePath(),g=n.getInitialValue(p);if(g!==void 0)vn(!1,"Form already set 'initialValues' with path '".concat(p.join("."),"'. Field can not overwrite it."));else{var h=a.get(p);if(h&&h.size>1)vn(!1,"Multiple Field with path '".concat(p.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var b=n.getFieldValue(p),y=d.isListField();!y&&(!r.skipExist||b===void 0)&&n.updateStore(ai(n.store,p,Pe(h)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(c){var u=a.get(c);if(u){var d;(d=s).push.apply(d,Pe(Pe(u).map(function(f){return f.entity})))}})):s=o,i(s)}),W(this,"resetFields",function(r){n.warningUnhooked();var a=n.store;if(!r){n.updateStore(Lu(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(a,null,{type:"reset"}),n.notifyWatch();return}var o=r.map(xr);o.forEach(function(i){var s=n.getInitialValue(i);n.updateStore(ai(n.store,i,s))}),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(a,o,{type:"reset"}),n.notifyWatch(o)}),W(this,"setFields",function(r){n.warningUnhooked();var a=n.store,o=[];r.forEach(function(i){var s=i.name,c=xt(i,yle),u=xr(s);o.push(u),"value"in c&&n.updateStore(ai(n.store,u,c.value)),n.notifyObservers(a,[u],{type:"setField",data:i})}),n.notifyWatch(o)}),W(this,"getFields",function(){var r=n.getFieldEntities(!0),a=r.map(function(o){var i=o.getNamePath(),s=o.getMeta(),c=Z(Z({},s),{},{name:i,value:n.getFieldValue(i)});return Object.defineProperty(c,"originRCField",{value:!0}),c});return a}),W(this,"initEntityValue",function(r){var a=r.props.initialValue;if(a!==void 0){var o=r.getNamePath(),i=po(n.store,o);i===void 0&&n.updateStore(ai(n.store,o,a))}}),W(this,"isMergedPreserve",function(r){var a=r!==void 0?r:n.preserve;return a??!0}),W(this,"registerField",function(r){n.fieldEntities.push(r);var a=r.getNamePath();if(n.notifyWatch([a]),r.props.initialValue!==void 0){var o=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(o,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(i,s){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(s)&&(!i||c.length>1)){var u=i?void 0:n.getInitialValue(a);if(a.length&&n.getFieldValue(a)!==u&&n.fieldEntities.every(function(f){return!xU(f.getNamePath(),a)})){var d=n.store;n.updateStore(ai(d,a,u,!0)),n.notifyObservers(d,[a],{type:"remove"}),n.triggerDependenciesUpdate(d,a)}}n.notifyWatch([a])}}),W(this,"dispatch",function(r){switch(r.type){case"updateValue":{var a=r.namePath,o=r.value;n.updateValue(a,o);break}case"validateField":{var i=r.namePath,s=r.triggerName;n.validateFields([i],{triggerName:s});break}}}),W(this,"notifyObservers",function(r,a,o){if(n.subscribable){var i=Z(Z({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var c=s.onStoreChange;c(r,a,i)})}else n.forceRootUpdate()}),W(this,"triggerDependenciesUpdate",function(r,a){var o=n.getDependencyChildrenFields(a);return o.length&&n.validateFields(o),n.notifyObservers(r,o,{type:"dependenciesUpdate",relatedFields:[a].concat(Pe(o))}),o}),W(this,"updateValue",function(r,a){var o=xr(r),i=n.store;n.updateStore(ai(n.store,o,a)),n.notifyObservers(i,[o],{type:"valueUpdate",source:"internal"}),n.notifyWatch([o]);var s=n.triggerDependenciesUpdate(i,o),c=n.callbacks.onValuesChange;if(c){var u=DM(n.store,[o]);c(u,n.getFieldsValue())}n.triggerOnFieldsChange([o].concat(Pe(s)))}),W(this,"setFieldsValue",function(r){n.warningUnhooked();var a=n.store;if(r){var o=Lu(n.store,r);n.updateStore(o)}n.notifyObservers(a,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),W(this,"setFieldValue",function(r,a){n.setFields([{name:r,value:a}])}),W(this,"getDependencyChildrenFields",function(r){var a=new Set,o=[],i=new au;n.getFieldEntities().forEach(function(c){var u=c.props.dependencies;(u||[]).forEach(function(d){var f=xr(d);i.update(f,function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return p.add(c),p})})});var s=function c(u){var d=i.get(u)||new Set;d.forEach(function(f){if(!a.has(f)){a.add(f);var p=f.getNamePath();f.isFieldDirty()&&p.length&&(o.push(p),c(p))}})};return s(r),o}),W(this,"triggerOnFieldsChange",function(r,a){var o=n.callbacks.onFieldsChange;if(o){var i=n.getFields();if(a){var s=new au;a.forEach(function(u){var d=u.name,f=u.errors;s.set(d,f)}),i.forEach(function(u){u.errors=s.get(u.name)||u.errors})}var c=i.filter(function(u){var d=u.name;return ed(r,d)});c.length&&o(c,i)}}),W(this,"validateFields",function(r,a){n.warningUnhooked();var o,i;Array.isArray(r)||typeof r=="string"||typeof a=="string"?(o=r,i=a):i=r;var s=!!o,c=s?o.map(xr):[],u=[],d=String(Date.now()),f=new Set,p=i||{},g=p.recursive,h=p.dirty;n.getFieldEntities(!0).forEach(function(v){if(s||c.push(v.getNamePath()),!(!v.props.rules||!v.props.rules.length)&&!(h&&!v.isFieldDirty())){var x=v.getNamePath();if(f.add(x.join(d)),!s||ed(c,x,g)){var w=v.validateRules(Z({validateMessages:Z(Z({},SU),n.validateMessages)},i));u.push(w.then(function(){return{name:x,errors:[],warnings:[]}}).catch(function(C){var E,I=[],T=[];return(E=C.forEach)===null||E===void 0||E.call(C,function(R){var _=R.rule.warningOnly,$=R.errors;_?T.push.apply(T,Pe($)):I.push.apply(I,Pe($))}),I.length?Promise.reject({name:x,errors:I,warnings:T}):{name:x,errors:I,warnings:T}}))}}});var b=ble(u);n.lastValidatePromise=b,b.catch(function(v){return v}).then(function(v){var x=v.map(function(w){var C=w.name;return C});n.notifyObservers(n.store,x,{type:"validateFinish"}),n.triggerOnFieldsChange(x,v)});var y=b.then(function(){return n.lastValidatePromise===b?Promise.resolve(n.getFieldsValue(c)):Promise.reject([])}).catch(function(v){var x=v.filter(function(w){return w&&w.errors.length});return Promise.reject({values:n.getFieldsValue(c),errorFields:x,outOfDate:n.lastValidatePromise!==b})});y.catch(function(v){return v});var S=c.filter(function(v){return f.has(v.join(d))});return n.triggerOnFieldsChange(S),y}),W(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var a=n.callbacks.onFinish;if(a)try{a(r)}catch(o){console.error(o)}}).catch(function(r){var a=n.callbacks.onFinishFailed;a&&a(r)})}),this.forceRootUpdate=t});function rO(e){var t=l.useRef(),n=l.useState({}),r=re(n,2),a=r[1];if(!t.current)if(e)t.current=e;else{var o=function(){a({})},i=new Sle(o);t.current=i.getForm()}return[t.current]}var fR=l.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),EU=function(t){var n=t.validateMessages,r=t.onFormChange,a=t.onFormFinish,o=t.children,i=l.useContext(fR),s=l.useRef({});return l.createElement(fR.Provider,{value:Z(Z({},i),{},{validateMessages:Z(Z({},i.validateMessages),n),triggerFormChange:function(u,d){r&&r(u,{changedFields:d,forms:s.current}),i.triggerFormChange(u,d)},triggerFormFinish:function(u,d){a&&a(u,{values:d,forms:s.current}),i.triggerFormFinish(u,d)},registerForm:function(u,d){u&&(s.current=Z(Z({},s.current),{},W({},u,d))),i.registerForm(u,d)},unregisterForm:function(u){var d=Z({},s.current);delete d[u],s.current=d,i.unregisterForm(u)}})},o)},xle=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],wle=function(t,n){var r=t.name,a=t.initialValues,o=t.fields,i=t.form,s=t.preserve,c=t.children,u=t.component,d=u===void 0?"form":u,f=t.validateMessages,p=t.validateTrigger,g=p===void 0?"onChange":p,h=t.onValuesChange,b=t.onFieldsChange,y=t.onFinish,S=t.onFinishFailed,v=t.clearOnDestroy,x=xt(t,xle),w=l.useRef(null),C=l.useContext(fR),E=rO(i),I=re(E,1),T=I[0],R=T.getInternalHooks(Ql),_=R.useSubscribe,$=R.setInitialValues,P=R.setCallbacks,D=R.setValidateMessages,A=R.setPreserve,O=R.destroyForm;l.useImperativeHandle(n,function(){return Z(Z({},T),{},{nativeElement:w.current})}),l.useEffect(function(){return C.registerForm(r,T),function(){C.unregisterForm(r)}},[C,T,r]),D(Z(Z({},C.validateMessages),f)),P({onValuesChange:h,onFieldsChange:function(H){if(C.triggerFormChange(r,H),b){for(var V=arguments.length,te=new Array(V>1?V-1:0),Y=1;Y{}}),TU=l.createContext(null),RU=e=>{const t=On(e,["prefixCls"]);return l.createElement(EU,Object.assign({},t))},aO=l.createContext({prefixCls:""}),zr=l.createContext({}),Ele=e=>{let{children:t,status:n,override:r}=e;const a=l.useContext(zr),o=l.useMemo(()=>{const i=Object.assign({},a);return r&&delete i.isFormItemInput,n&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[n,r,a]);return l.createElement(zr.Provider,{value:o},t)},_U=l.createContext(void 0),Vi=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let a=r;return n&&(a=se.createElement(Ele,{override:!0,status:!0},a)),t&&(a=se.createElement(Hie,null,a)),a};function xd(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function jM(e){const{closable:t,closeIcon:n}=e||{};return se.useMemo(()=>{if(!t&&(t===!1||n===!1||n===null))return!1;if(t===void 0&&n===void 0)return null;let r={closeIcon:typeof n!="boolean"&&n!==null?n:void 0};return t&&typeof t=="object"&&(r=Object.assign(Object.assign({},r),t)),r},[t,n])}function BM(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r{a&&Object.keys(a).forEach(o=>{a[o]!==void 0&&(e[o]=a[o])})}),e}const Ile={};function oO(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ile;const r=jM(e),a=jM(t),o=se.useMemo(()=>Object.assign({closeIcon:se.createElement(ta,null)},n),[n]),i=se.useMemo(()=>r===!1?!1:r?BM(o,a,r):a===!1?!1:a?BM(o,a):o.closable?o:!1,[r,a,o]);return se.useMemo(()=>{if(i===!1)return[!1,null];const{closeIconRender:s}=o,{closeIcon:c}=i;let u=c;if(u!=null){s&&(u=s(c));const d=Yn(i,!0);Object.keys(d).length&&(u=se.isValidElement(u)?se.cloneElement(u,d):se.createElement("span",Object.assign({},d),u))}return[!0,u]},[i,o])}var $U=function(t){if(Qr()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(a){return a in r.style})}return!1},Tle=function(t,n){if(!$U(t))return!1;var r=document.createElement("div"),a=r.style[t];return r.style[t]=n,r.style[t]!==a};function pR(e,t){return!Array.isArray(e)&&t!==void 0?Tle(e,t):$U(e)}const Rle=()=>Qr()&&window.document.documentElement,T0=e=>{const{prefixCls:t,className:n,style:r,size:a,shape:o}=e,i=ne({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),s=ne({[`${t}-circle`]:o==="circle",[`${t}-square`]:o==="square",[`${t}-round`]:o==="round"}),c=l.useMemo(()=>typeof a=="number"?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return l.createElement("span",{className:ne(t,i,s,n),style:Object.assign(Object.assign({},c),r)})},_le=new un("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),R0=e=>({height:e,lineHeight:K(e)}),td=e=>Object.assign({width:e},R0(e)),$le=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:_le,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),XS=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},R0(e)),Ole=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:a,controlHeightSM:o}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},td(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},td(a)),[`${t}${t}-sm`]:Object.assign({},td(o))}},Nle=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:a,controlHeightSM:o,gradientFromColor:i,calc:s}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:n},XS(t,s)),[`${r}-lg`]:Object.assign({},XS(a,s)),[`${r}-sm`]:Object.assign({},XS(o,s))}},zM=e=>Object.assign({width:e},R0(e)),kle=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:a,calc:o}=e;return{[t]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:a},zM(o(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},zM(n)),{maxWidth:o(n).mul(4).equal(),maxHeight:o(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},ZS=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},QS=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},R0(e)),Ale=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:a,controlHeightSM:o,gradientFromColor:i,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal()},QS(r,s))},ZS(e,r,n)),{[`${n}-lg`]:Object.assign({},QS(a,s))}),ZS(e,a,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},QS(o,s))}),ZS(e,o,`${n}-sm`))},Mle=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:a,skeletonButtonCls:o,skeletonInputCls:i,skeletonImageCls:s,controlHeight:c,controlHeightLG:u,controlHeightSM:d,gradientFromColor:f,padding:p,marginSM:g,borderRadius:h,titleHeight:b,blockRadius:y,paragraphLiHeight:S,controlHeightXS:v,paragraphMarginTop:x}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:p,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},td(c)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},td(u)),[`${n}-sm`]:Object.assign({},td(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:b,background:f,borderRadius:y,[`+ ${a}`]:{marginBlockStart:d}},[a]:{padding:0,"> li":{width:"100%",height:S,listStyle:"none",background:f,borderRadius:y,"+ li":{marginBlockStart:v}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${a} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:g,[`+ ${a}`]:{marginBlockStart:x}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Ale(e)),Ole(e)),Nle(e)),kle(e)),[`${t}${t}-block`]:{width:"100%",[o]:{width:"100%"},[i]:{width:"100%"}},[`${t}${t}-active`]:{[` ${r}, ${a} > li, ${n}, ${o}, ${i}, ${s} - `]:Object.assign({},$le(e))}}},Ple=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,a=n;return{color:r,colorGradientEnd:a,gradientFromColor:r,gradientToColor:a,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},Gd=on("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=zt(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Mle(r)]},Ple,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Dle=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,shape:o="circle",size:i="default"}=e,{getPrefixCls:s}=l.useContext(st),c=s("skeleton",t),[u,d,f]=Gd(c),p=On(e,["prefixCls","className"]),g=ne(c,`${c}-element`,{[`${c}-active`]:a},n,r,d,f);return u(l.createElement("div",{className:g},l.createElement(I0,Object.assign({prefixCls:`${c}-avatar`,shape:o,size:i},p))))},Lle=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,block:o=!1,size:i="default"}=e,{getPrefixCls:s}=l.useContext(st),c=s("skeleton",t),[u,d,f]=Gd(c),p=On(e,["prefixCls"]),g=ne(c,`${c}-element`,{[`${c}-active`]:a,[`${c}-block`]:o},n,r,d,f);return u(l.createElement("div",{className:g},l.createElement(I0,Object.assign({prefixCls:`${c}-button`,size:i},p))))},Fle="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",jle=e=>{const{prefixCls:t,className:n,rootClassName:r,style:a,active:o}=e,{getPrefixCls:i}=l.useContext(st),s=i("skeleton",t),[c,u,d]=Gd(s),f=ne(s,`${s}-element`,{[`${s}-active`]:o},n,r,u,d);return c(l.createElement("div",{className:f},l.createElement("div",{className:ne(`${s}-image`,n),style:a},l.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},l.createElement("title",null,"Image placeholder"),l.createElement("path",{d:Fle,className:`${s}-image-path`})))))},Ble=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,block:o,size:i="default"}=e,{getPrefixCls:s}=l.useContext(st),c=s("skeleton",t),[u,d,f]=Gd(c),p=On(e,["prefixCls"]),g=ne(c,`${c}-element`,{[`${c}-active`]:a,[`${c}-block`]:o},n,r,d,f);return u(l.createElement("div",{className:g},l.createElement(I0,Object.assign({prefixCls:`${c}-input`,size:i},p))))};var zle={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"},Hle=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:zle}))},Ule=l.forwardRef(Hle);const Vle=e=>{const{prefixCls:t,className:n,rootClassName:r,style:a,active:o,children:i}=e,{getPrefixCls:s}=l.useContext(st),c=s("skeleton",t),[u,d,f]=Gd(c),p=ne(c,`${c}-element`,{[`${c}-active`]:o},d,n,r,f),g=i??l.createElement(Ule,null);return u(l.createElement("div",{className:p},l.createElement("div",{className:ne(`${c}-image`,n),style:a},g)))},Wle=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},Gle=e=>{const{prefixCls:t,className:n,style:r,rows:a}=e,o=De(Array(a)).map((i,s)=>l.createElement("li",{key:s,style:{width:Wle(s,e)}}));return l.createElement("ul",{className:ne(t,n),style:r},o)},qle=e=>{let{prefixCls:t,className:n,width:r,style:a}=e;return l.createElement("h3",{className:ne(t,n),style:Object.assign({width:r},a)})};function QS(e){return e&&typeof e=="object"?e:{}}function Kle(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Yle(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function Xle(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const Ol=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:a,style:o,children:i,avatar:s=!1,title:c=!0,paragraph:u=!0,active:d,round:f}=e,{getPrefixCls:p,direction:g,skeleton:h}=l.useContext(st),b=p("skeleton",t),[y,S,v]=Gd(b);if(n||!("loading"in e)){const x=!!s,C=!!c,w=!!u;let E;if(x){const R=Object.assign(Object.assign({prefixCls:`${b}-avatar`},Kle(C,w)),QS(s));E=l.createElement("div",{className:`${b}-header`},l.createElement(I0,Object.assign({},R)))}let I;if(C||w){let R;if(C){const $=Object.assign(Object.assign({prefixCls:`${b}-title`},Yle(x,w)),QS(c));R=l.createElement(qle,Object.assign({},$))}let _;if(w){const $=Object.assign(Object.assign({prefixCls:`${b}-paragraph`},Xle(x,C)),QS(u));_=l.createElement(Gle,Object.assign({},$))}I=l.createElement("div",{className:`${b}-content`},R,_)}const T=ne(b,{[`${b}-with-avatar`]:x,[`${b}-active`]:d,[`${b}-rtl`]:g==="rtl",[`${b}-round`]:f},h==null?void 0:h.className,r,a,S,v);return y(l.createElement("div",{className:T,style:Object.assign(Object.assign({},h==null?void 0:h.style),o)},E,I))}return i??null};Ol.Button=Lle;Ol.Avatar=Dle;Ol.Input=Ble;Ol.Image=jle;Ol.Node=Vle;function HM(){}const Zle=l.createContext({add:HM,remove:HM});function OU(e){const t=l.useContext(Zle),n=l.useRef();return Wt(a=>{if(a){const o=e?a.querySelector(e):a;t.add(o),n.current=o}else t.remove(n.current)})}const UM=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=l.useContext(Kg);return se.createElement(ut,Object.assign({onClick:n},e),t)},VM=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:a}=l.useContext(Kg);return se.createElement(ut,Object.assign({},oU(n),{loading:e,onClick:a},t),r)};function NU(e,t){return se.createElement("span",{className:`${e}-close-x`},t||se.createElement(Jr,{className:`${e}-close-icon`}))}const kU=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:a,onOk:o,onCancel:i,okButtonProps:s,cancelButtonProps:c,footer:u}=e,[d]=qi("Modal",pH()),f=t||(d==null?void 0:d.okText),p=r||(d==null?void 0:d.cancelText),g={confirmLoading:a,okButtonProps:s,cancelButtonProps:c,okTextLocale:f,cancelTextLocale:p,okType:n,onOk:o,onCancel:i},h=se.useMemo(()=>g,De(Object.values(g)));let b;return typeof u=="function"||typeof u>"u"?(b=se.createElement(se.Fragment,null,se.createElement(UM,null),se.createElement(VM,null)),typeof u=="function"&&(b=u(b,{OkBtn:VM,CancelBtn:UM})),b=se.createElement(fU,{value:h},b)):b=u,se.createElement(H$,{disabled:!1},b)},Zg=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, + `]:Object.assign({},$le(e))}}},Ple=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,a=n;return{color:r,colorGradientEnd:a,gradientFromColor:r,gradientToColor:a,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},Gd=on("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=zt(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Mle(r)]},Ple,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Dle=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,shape:o="circle",size:i="default"}=e,{getPrefixCls:s}=l.useContext(st),c=s("skeleton",t),[u,d,f]=Gd(c),p=On(e,["prefixCls","className"]),g=ne(c,`${c}-element`,{[`${c}-active`]:a},n,r,d,f);return u(l.createElement("div",{className:g},l.createElement(T0,Object.assign({prefixCls:`${c}-avatar`,shape:o,size:i},p))))},Lle=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,block:o=!1,size:i="default"}=e,{getPrefixCls:s}=l.useContext(st),c=s("skeleton",t),[u,d,f]=Gd(c),p=On(e,["prefixCls"]),g=ne(c,`${c}-element`,{[`${c}-active`]:a,[`${c}-block`]:o},n,r,d,f);return u(l.createElement("div",{className:g},l.createElement(T0,Object.assign({prefixCls:`${c}-button`,size:i},p))))},Fle="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",jle=e=>{const{prefixCls:t,className:n,rootClassName:r,style:a,active:o}=e,{getPrefixCls:i}=l.useContext(st),s=i("skeleton",t),[c,u,d]=Gd(s),f=ne(s,`${s}-element`,{[`${s}-active`]:o},n,r,u,d);return c(l.createElement("div",{className:f},l.createElement("div",{className:ne(`${s}-image`,n),style:a},l.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},l.createElement("title",null,"Image placeholder"),l.createElement("path",{d:Fle,className:`${s}-image-path`})))))},Ble=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,block:o,size:i="default"}=e,{getPrefixCls:s}=l.useContext(st),c=s("skeleton",t),[u,d,f]=Gd(c),p=On(e,["prefixCls"]),g=ne(c,`${c}-element`,{[`${c}-active`]:a,[`${c}-block`]:o},n,r,d,f);return u(l.createElement("div",{className:g},l.createElement(T0,Object.assign({prefixCls:`${c}-input`,size:i},p))))};var zle={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"},Hle=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:zle}))},Ule=l.forwardRef(Hle);const Vle=e=>{const{prefixCls:t,className:n,rootClassName:r,style:a,active:o,children:i}=e,{getPrefixCls:s}=l.useContext(st),c=s("skeleton",t),[u,d,f]=Gd(c),p=ne(c,`${c}-element`,{[`${c}-active`]:o},d,n,r,f),g=i??l.createElement(Ule,null);return u(l.createElement("div",{className:p},l.createElement("div",{className:ne(`${c}-image`,n),style:a},g)))},Wle=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},Gle=e=>{const{prefixCls:t,className:n,style:r,rows:a}=e,o=Pe(Array(a)).map((i,s)=>l.createElement("li",{key:s,style:{width:Wle(s,e)}}));return l.createElement("ul",{className:ne(t,n),style:r},o)},qle=e=>{let{prefixCls:t,className:n,width:r,style:a}=e;return l.createElement("h3",{className:ne(t,n),style:Object.assign({width:r},a)})};function JS(e){return e&&typeof e=="object"?e:{}}function Kle(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Yle(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function Xle(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const Ol=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:a,style:o,children:i,avatar:s=!1,title:c=!0,paragraph:u=!0,active:d,round:f}=e,{getPrefixCls:p,direction:g,skeleton:h}=l.useContext(st),b=p("skeleton",t),[y,S,v]=Gd(b);if(n||!("loading"in e)){const x=!!s,w=!!c,C=!!u;let E;if(x){const R=Object.assign(Object.assign({prefixCls:`${b}-avatar`},Kle(w,C)),JS(s));E=l.createElement("div",{className:`${b}-header`},l.createElement(T0,Object.assign({},R)))}let I;if(w||C){let R;if(w){const $=Object.assign(Object.assign({prefixCls:`${b}-title`},Yle(x,C)),JS(c));R=l.createElement(qle,Object.assign({},$))}let _;if(C){const $=Object.assign(Object.assign({prefixCls:`${b}-paragraph`},Xle(x,w)),JS(u));_=l.createElement(Gle,Object.assign({},$))}I=l.createElement("div",{className:`${b}-content`},R,_)}const T=ne(b,{[`${b}-with-avatar`]:x,[`${b}-active`]:d,[`${b}-rtl`]:g==="rtl",[`${b}-round`]:f},h==null?void 0:h.className,r,a,S,v);return y(l.createElement("div",{className:T,style:Object.assign(Object.assign({},h==null?void 0:h.style),o)},E,I))}return i??null};Ol.Button=Lle;Ol.Avatar=Dle;Ol.Input=Ble;Ol.Image=jle;Ol.Node=Vle;function HM(){}const Zle=l.createContext({add:HM,remove:HM});function OU(e){const t=l.useContext(Zle),n=l.useRef();return Wt(a=>{if(a){const o=e?a.querySelector(e):a;t.add(o),n.current=o}else t.remove(n.current)})}const UM=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=l.useContext(Xg);return se.createElement(ct,Object.assign({onClick:n},e),t)},VM=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:a}=l.useContext(Xg);return se.createElement(ct,Object.assign({},oU(n),{loading:e,onClick:a},t),r)};function NU(e,t){return se.createElement("span",{className:`${e}-close-x`},t||se.createElement(ta,{className:`${e}-close-icon`}))}const kU=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:a,onOk:o,onCancel:i,okButtonProps:s,cancelButtonProps:c,footer:u}=e,[d]=Ki("Modal",pH()),f=t||(d==null?void 0:d.okText),p=r||(d==null?void 0:d.cancelText),g={confirmLoading:a,okButtonProps:s,cancelButtonProps:c,okTextLocale:f,cancelTextLocale:p,okType:n,onOk:o,onCancel:i},h=se.useMemo(()=>g,Pe(Object.values(g)));let b;return typeof u=="function"||typeof u>"u"?(b=se.createElement(se.Fragment,null,se.createElement(UM,null),se.createElement(VM,null)),typeof u=="function"&&(b=u(b,{OkBtn:VM,CancelBtn:UM})),b=se.createElement(fU,{value:h},b)):b=u,se.createElement(U$,{disabled:!1},b)},Jg=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, - opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),Qle=e=>({animationDuration:e,animationFillMode:"both"}),Jle=e=>({animationDuration:e,animationFillMode:"both"}),R0=function(e,t,n,r){const o=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` + opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),Qle=e=>({animationDuration:e,animationFillMode:"both"}),Jle=e=>({animationDuration:e,animationFillMode:"both"}),_0=function(e,t,n,r){const o=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` ${o}${e}-enter, ${o}${e}-appear `]:Object.assign(Object.assign({},Qle(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},Jle(r)),{animationPlayState:"paused"}),[` ${o}${e}-enter${e}-enter-active, ${o}${e}-appear${e}-appear-active - `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},ece=new un("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),tce=new un("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),oO=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,a=t?"&":"";return[R0(r,ece,tce,e.motionDurationMid,t),{[` + `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},ece=new un("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),tce=new un("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),iO=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,a=t?"&":"";return[_0(r,ece,tce,e.motionDurationMid,t),{[` ${a}${r}-enter, ${a}${r}-appear - `]:{opacity:0,animationTimingFunction:"linear"},[`${a}${r}-leave`]:{animationTimingFunction:"linear"}}]},nce=new un("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),rce=new un("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),ace=new un("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),oce=new un("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),ice=new un("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),sce=new un("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),lce=new un("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),cce=new un("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),uce={"move-up":{inKeyframes:lce,outKeyframes:cce},"move-down":{inKeyframes:nce,outKeyframes:rce},"move-left":{inKeyframes:ace,outKeyframes:oce},"move-right":{inKeyframes:ice,outKeyframes:sce}},wd=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:o}=uce[t];return[R0(r,a,o,e.motionDurationMid),{[` + `]:{opacity:0,animationTimingFunction:"linear"},[`${a}${r}-leave`]:{animationTimingFunction:"linear"}}]},nce=new un("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),rce=new un("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),ace=new un("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),oce=new un("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),ice=new un("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),sce=new un("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),lce=new un("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),cce=new un("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),uce={"move-up":{inKeyframes:lce,outKeyframes:cce},"move-down":{inKeyframes:nce,outKeyframes:rce},"move-left":{inKeyframes:ace,outKeyframes:oce},"move-right":{inKeyframes:ice,outKeyframes:sce}},wd=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:o}=uce[t];return[_0(r,a,o,e.motionDurationMid),{[` ${r}-enter, ${r}-appear - `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},_0=new un("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),$0=new un("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),O0=new un("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),N0=new un("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),dce=new un("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),fce=new un("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),pce=new un("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),gce=new un("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),mce={"slide-up":{inKeyframes:_0,outKeyframes:$0},"slide-down":{inKeyframes:O0,outKeyframes:N0},"slide-left":{inKeyframes:dce,outKeyframes:fce},"slide-right":{inKeyframes:pce,outKeyframes:gce}},Vi=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:o}=mce[t];return[R0(r,a,o,e.motionDurationMid),{[` + `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},$0=new un("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),O0=new un("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),N0=new un("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),k0=new un("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),dce=new un("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),fce=new un("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),pce=new un("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),gce=new un("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),mce={"slide-up":{inKeyframes:$0,outKeyframes:O0},"slide-down":{inKeyframes:N0,outKeyframes:k0},"slide-left":{inKeyframes:dce,outKeyframes:fce},"slide-right":{inKeyframes:pce,outKeyframes:gce}},Wi=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:o}=mce[t];return[_0(r,a,o,e.motionDurationMid),{[` ${r}-enter, ${r}-appear - `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},iO=new un("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),hce=new un("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),WM=new un("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),GM=new un("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),vce=new un("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),bce=new un("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),yce=new un("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Sce=new un("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),xce=new un("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),wce=new un("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Cce=new un("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Ece=new un("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Ice={zoom:{inKeyframes:iO,outKeyframes:hce},"zoom-big":{inKeyframes:WM,outKeyframes:GM},"zoom-big-fast":{inKeyframes:WM,outKeyframes:GM},"zoom-left":{inKeyframes:yce,outKeyframes:Sce},"zoom-right":{inKeyframes:xce,outKeyframes:wce},"zoom-up":{inKeyframes:vce,outKeyframes:bce},"zoom-down":{inKeyframes:Cce,outKeyframes:Ece}},qd=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:o}=Ice[t];return[R0(r,a,o,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` + `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},sO=new un("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),hce=new un("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),WM=new un("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),GM=new un("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),vce=new un("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),bce=new un("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),yce=new un("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Sce=new un("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),xce=new un("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),wce=new un("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Cce=new un("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Ece=new un("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Ice={zoom:{inKeyframes:sO,outKeyframes:hce},"zoom-big":{inKeyframes:WM,outKeyframes:GM},"zoom-big-fast":{inKeyframes:WM,outKeyframes:GM},"zoom-left":{inKeyframes:yce,outKeyframes:Sce},"zoom-right":{inKeyframes:xce,outKeyframes:wce},"zoom-up":{inKeyframes:vce,outKeyframes:bce},"zoom-down":{inKeyframes:Cce,outKeyframes:Ece}},qd=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:o}=Ice[t];return[_0(r,a,o,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` ${r}-enter, ${r}-appear - `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};function qM(e){return{position:e,inset:0}}const AU=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},qM("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},qM("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:oO(e)}]},Tce=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${K(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},nn(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${K(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:K(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},zi(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${K(e.borderRadiusLG)} ${K(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${K(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content, + `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};function qM(e){return{position:e,inset:0}}const AU=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},qM("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},qM("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:iO(e)}]},Tce=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${K(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},nn(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${K(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:K(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Hi(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${K(e.borderRadiusLG)} ${K(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${K(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content, ${t}-body, - ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},Rce=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},MU=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return zt(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},PU=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${K(e.paddingMD)} ${K(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${K(e.padding)} ${K(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${K(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${K(e.paddingXS)} ${K(e.padding)}`:0,footerBorderTop:e.wireframe?`${K(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${K(e.borderRadiusLG)} ${K(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${K(e.padding*2)} ${K(e.padding*2)} ${K(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),DU=on("Modal",e=>{const t=MU(e);return[Tce(t),Rce(t),AU(t),qd(t,"zoom")]},PU,{unitless:{titleLineHeight:!0}});var _ce=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{pR={x:e.pageX,y:e.pageY},setTimeout(()=>{pR=null},100)};Rle()&&document.documentElement.addEventListener("click",$ce,!0);const LU=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:a,modal:o}=l.useContext(st),i=B=>{const{onCancel:z}=e;z==null||z(B)},s=B=>{const{onOk:z}=e;z==null||z(B)},{prefixCls:c,className:u,rootClassName:d,open:f,wrapClassName:p,centered:g,getContainer:h,focusTriggerAfterClose:b=!0,style:y,visible:S,width:v=520,footer:x,classNames:C,styles:w,children:E,loading:I}=e,T=_ce(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),R=r("modal",c),_=r(),$=Un(R),[P,D,A]=DU(R,$),O=ne(p,{[`${R}-centered`]:!!g,[`${R}-wrap-rtl`]:a==="rtl"}),N=x!==null&&!I?l.createElement(kU,Object.assign({},e,{onOk:s,onCancel:i})):null,[k,M]=aO(xd(e),xd(o),{closable:!0,closeIcon:l.createElement(Jr,{className:`${R}-close-icon`}),closeIconRender:B=>NU(R,B)}),L=OU(`.${R}-content`),[F,j]=Si("Modal",T.zIndex);return P(l.createElement(Ui,{form:!0,space:!0},l.createElement(Vg.Provider,{value:j},l.createElement(J$,Object.assign({width:v},T,{zIndex:F,getContainer:h===void 0?n:h,prefixCls:R,rootClassName:ne(D,d,A,$),footer:N,visible:f??S,mousePosition:(t=T.mousePosition)!==null&&t!==void 0?t:pR,onClose:i,closable:k,closeIcon:M,focusTriggerAfterClose:b,transitionName:xa(_,"zoom",e.transitionName),maskTransitionName:xa(_,"fade",e.maskTransitionName),className:ne(D,u,o==null?void 0:o.className),style:Object.assign(Object.assign({},o==null?void 0:o.style),y),classNames:Object.assign(Object.assign(Object.assign({},o==null?void 0:o.classNames),C),{wrapper:ne(O,C==null?void 0:C.wrapper)}),styles:Object.assign(Object.assign({},o==null?void 0:o.styles),w),panelRef:L}),I?l.createElement(Ol,{active:!0,title:!1,paragraph:{rows:4},className:`${R}-body-skeleton`}):E))))},Oce=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:a,fontSize:o,lineHeight:i,modalTitleHeight:s,fontHeight:c,confirmBodyPadding:u}=e,d=`${t}-confirm`;return{[d]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${d}-body-wrapper`]:Object.assign({},mi()),[`&${t} ${t}-body`]:{padding:u},[`${d}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:a,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).sub(a).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(a).equal()).div(2).equal()}},[`${d}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS},[`${e.iconCls} + ${d}-paragraph`]:{maxWidth:`calc(100% - ${K(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${d}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${d}-content`]:{color:e.colorText,fontSize:o,lineHeight:i},[`${d}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${d}-error ${d}-body > ${e.iconCls}`]:{color:e.colorError},[`${d}-warning ${d}-body > ${e.iconCls}, - ${d}-confirm ${d}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${d}-info ${d}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${d}-success ${d}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},Nce=Hd(["Modal","confirm"],e=>{const t=MU(e);return[Oce(t)]},PU,{order:-1e3});var kce=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);av,De(Object.values(v))),C=l.createElement(l.Fragment,null,l.createElement(bM,null),l.createElement(yM,null)),w=e.title!==void 0&&e.title!==null,E=`${o}-body`;return l.createElement("div",{className:`${o}-body-wrapper`},l.createElement("div",{className:ne(E,{[`${E}-has-title`]:w})},f,l.createElement("div",{className:`${o}-paragraph`},w&&l.createElement("span",{className:`${o}-title`},e.title),l.createElement("div",{className:`${o}-content`},e.content))),c===void 0||typeof c=="function"?l.createElement(fU,{value:x},l.createElement("div",{className:`${o}-btns`},typeof c=="function"?c(C,{OkBtn:yM,CancelBtn:bM}):C)):c,l.createElement(Nce,{prefixCls:t}))}const Ace=e=>{const{close:t,zIndex:n,afterClose:r,open:a,keyboard:o,centered:i,getContainer:s,maskStyle:c,direction:u,prefixCls:d,wrapClassName:f,rootPrefixCls:p,bodyStyle:g,closable:h=!1,closeIcon:b,modalRender:y,focusTriggerAfterClose:S,onConfirm:v,styles:x}=e,C=`${d}-confirm`,w=e.width||416,E=e.style||{},I=e.mask===void 0?!0:e.mask,T=e.maskClosable===void 0?!1:e.maskClosable,R=ne(C,`${C}-${e.type}`,{[`${C}-rtl`]:u==="rtl"},e.className),[,_]=ta(),$=l.useMemo(()=>n!==void 0?n:_.zIndexPopupBase+XH,[n,_]);return l.createElement(LU,{prefixCls:d,className:R,wrapClassName:ne({[`${C}-centered`]:!!e.centered},f),onCancel:()=>{t==null||t({triggerCancel:!0}),v==null||v(!1)},open:a,title:"",footer:null,transitionName:xa(p||"","zoom",e.transitionName),maskTransitionName:xa(p||"","fade",e.maskTransitionName),mask:I,maskClosable:T,style:E,styles:Object.assign({body:g,mask:c},x),width:w,zIndex:$,afterClose:r,keyboard:o,centered:i,getContainer:s,closable:h,closeIcon:b,modalRender:y,focusTriggerAfterClose:S},l.createElement(FU,Object.assign({},e,{confirmPrefixCls:C})))},jU=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:a}=e;return l.createElement(yi,{prefixCls:t,iconPrefixCls:n,direction:r,theme:a},l.createElement(Ace,Object.assign({},e)))},Jl=[];let BU="";function zU(){return BU}const Mce=e=>{var t,n;const{prefixCls:r,getContainer:a,direction:o}=e,i=pH(),s=l.useContext(st),c=zU()||s.getPrefixCls(),u=r||`${c}-modal`;let d=a;return d===!1&&(d=void 0),se.createElement(jU,Object.assign({},e,{rootPrefixCls:c,prefixCls:u,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:o??s.direction,locale:(n=(t=s.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:i,getContainer:d}))};function Qg(e){const t=zH(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:s,open:!0}),a;function o(){for(var u,d=arguments.length,f=new Array(d),p=0;pb==null?void 0:b.triggerCancel)){var h;(u=e.onCancel)===null||u===void 0||(h=u).call.apply(h,[e,()=>{}].concat(De(f.slice(1))))}for(let b=0;b{const d=t.getPrefixCls(void 0,zU()),f=t.getIconPrefixCls(),p=t.getTheme(),g=se.createElement(Mce,Object.assign({},u));X$(se.createElement(yi,{prefixCls:d,iconPrefixCls:f,theme:p},t.holderRender?t.holderRender(g):g),n)})}function s(){for(var u=arguments.length,d=new Array(u),f=0;f{typeof e.afterClose=="function"&&e.afterClose(),o.apply(this,d)}}),r.visible&&delete r.visible,i(r)}function c(u){typeof u=="function"?r=u(r):r=Object.assign(Object.assign({},r),u),i(r)}return i(r),Jl.push(s),{destroy:s,update:c}}function HU(e){return Object.assign(Object.assign({},e),{type:"warning"})}function UU(e){return Object.assign(Object.assign({},e),{type:"info"})}function VU(e){return Object.assign(Object.assign({},e),{type:"success"})}function WU(e){return Object.assign(Object.assign({},e),{type:"error"})}function GU(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function Pce(e){let{rootPrefixCls:t}=e;BU=t}var Dce=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,{afterClose:r,config:a}=e,o=Dce(e,["afterClose","config"]);const[i,s]=l.useState(!0),[c,u]=l.useState(a),{direction:d,getPrefixCls:f}=l.useContext(st),p=f("modal"),g=f(),h=()=>{var v;r(),(v=c.afterClose)===null||v===void 0||v.call(c)},b=function(){var v;s(!1);for(var x=arguments.length,C=new Array(x),w=0;wT==null?void 0:T.triggerCancel)){var I;(v=c.onCancel)===null||v===void 0||(I=v).call.apply(I,[c,()=>{}].concat(De(C.slice(1))))}};l.useImperativeHandle(t,()=>({destroy:b,update:v=>{u(x=>Object.assign(Object.assign({},x),v))}}));const y=(n=c.okCancel)!==null&&n!==void 0?n:c.type==="confirm",[S]=qi("Modal",Uo.Modal);return l.createElement(jU,Object.assign({prefixCls:p,rootPrefixCls:g},c,{close:b,open:i,afterClose:h,okText:c.okText||(y?S==null?void 0:S.okText:S==null?void 0:S.justOkText),direction:c.direction||d,cancelText:c.cancelText||(S==null?void 0:S.cancelText)},o))},Fce=l.forwardRef(Lce);let KM=0;const jce=l.memo(l.forwardRef((e,t)=>{const[n,r]=wie();return l.useImperativeHandle(t,()=>({patchElement:r}),[]),l.createElement(l.Fragment,null,n)}));function Bce(){const e=l.useRef(null),[t,n]=l.useState([]);l.useEffect(()=>{t.length&&(De(t).forEach(i=>{i()}),n([]))},[t]);const r=l.useCallback(o=>function(s){var c;KM+=1;const u=l.createRef();let d;const f=new Promise(y=>{d=y});let p=!1,g;const h=l.createElement(Fce,{key:`modal-${KM}`,config:o(s),ref:u,afterClose:()=>{g==null||g()},isSilent:()=>p,onConfirm:y=>{d(y)}});return g=(c=e.current)===null||c===void 0?void 0:c.patchElement(h),g&&Jl.push(g),{destroy:()=>{function y(){var S;(S=u.current)===null||S===void 0||S.destroy()}u.current?y():n(S=>[].concat(De(S),[y]))},update:y=>{function S(){var v;(v=u.current)===null||v===void 0||v.update(y)}u.current?S():n(v=>[].concat(De(v),[S]))},then:y=>(p=!0,f.then(y))}},[]);return[l.useMemo(()=>({info:r(UU),success:r(VU),error:r(WU),warning:r(HU),confirm:r(GU)}),[]),l.createElement(jce,{key:"modal-holder",ref:e})]}const zce=se.createContext({});function qU(e){return t=>l.createElement(yi,{theme:{token:{motion:!1,zIndexPopupBase:0}}},l.createElement(e,Object.assign({},t)))}const Jg=(e,t,n,r)=>qU(o=>{const{prefixCls:i,style:s}=o,c=l.useRef(null),[u,d]=l.useState(0),[f,p]=l.useState(0),[g,h]=sn(!1,{value:o.open}),{getPrefixCls:b}=l.useContext(st),y=b(t||"select",i);l.useEffect(()=>{if(h(!0),typeof ResizeObserver<"u"){const x=new ResizeObserver(w=>{const E=w[0].target;d(E.offsetHeight+8),p(E.offsetWidth)}),C=setInterval(()=>{var w;const E=n?`.${n(y)}`:`.${y}-dropdown`,I=(w=c.current)===null||w===void 0?void 0:w.querySelector(E);I&&(clearInterval(C),x.observe(I))},10);return()=>{clearInterval(C),x.disconnect()}}},[]);let S=Object.assign(Object.assign({},o),{style:Object.assign(Object.assign({},s),{margin:0}),open:g,visible:g,getPopupContainer:()=>c.current});r&&(S=r(S));const v={paddingBottom:u,position:"relative",minWidth:f};return l.createElement("div",{ref:c,style:v},l.createElement(e,Object.assign({},S)))}),k0=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=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(e)||/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(e==null?void 0:e.substr(0,4))};var A0=function(t){var n=t.className,r=t.customizeIcon,a=t.customizeIconProps,o=t.children,i=t.onMouseDown,s=t.onClick,c=typeof r=="function"?r(a):r;return l.createElement("span",{className:n,onMouseDown:function(d){d.preventDefault(),i==null||i(d)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},c!==void 0?c:l.createElement("span",{className:ne(n.split(/\s+/).map(function(u){return"".concat(u,"-icon")}))},o))},Hce=function(t,n,r,a,o){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,s=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,u=se.useMemo(function(){if(ht(a)==="object")return a.clearIcon;if(o)return o},[a,o]),d=se.useMemo(function(){return!!(!i&&a&&(r.length||s)&&!(c==="combobox"&&s===""))},[a,i,r.length,s,c]);return{allowClear:d,clearIcon:se.createElement(A0,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:u},"×")}},KU=l.createContext(null);function YU(){return l.useContext(KU)}function Uce(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=l.useState(!1),n=re(t,2),r=n[0],a=n[1],o=l.useRef(null),i=function(){window.clearTimeout(o.current)};l.useEffect(function(){return i},[]);var s=function(u,d){i(),o.current=window.setTimeout(function(){a(u),d&&d()},e)};return[r,s,i]}function XU(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=l.useRef(null),n=l.useRef(null);l.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(a){(a||t.current===null)&&(t.current=a),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function Vce(e,t,n,r){var a=l.useRef(null);a.current={open:t,triggerOpen:n,customizedTrigger:r},l.useEffect(function(){function o(i){var s;if(!((s=a.current)!==null&&s!==void 0&&s.customizedTrigger)){var c=i.target;c.shadowRoot&&i.composed&&(c=i.composedPath()[0]||c),a.current.open&&e().filter(function(u){return u}).every(function(u){return!u.contains(c)&&u!==c})&&a.current.triggerOpen(!1)}}return window.addEventListener("mousedown",o),function(){return window.removeEventListener("mousedown",o)}},[])}function Wce(e){return![Le.ESC,Le.SHIFT,Le.BACKSPACE,Le.TAB,Le.WIN_KEY,Le.ALT,Le.META,Le.WIN_KEY_RIGHT,Le.CTRL,Le.SEMICOLON,Le.EQUALS,Le.CAPS_LOCK,Le.CONTEXT_MENU,Le.F1,Le.F2,Le.F3,Le.F4,Le.F5,Le.F6,Le.F7,Le.F8,Le.F9,Le.F10,Le.F11,Le.F12].includes(e)}var Gce=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],ou=void 0;function qce(e,t){var n=e.prefixCls,r=e.invalidate,a=e.item,o=e.renderItem,i=e.responsive,s=e.responsiveDisabled,c=e.registerSize,u=e.itemKey,d=e.className,f=e.style,p=e.children,g=e.display,h=e.order,b=e.component,y=b===void 0?"div":b,S=xt(e,Gce),v=i&&!g;function x(T){c(u,T)}l.useEffect(function(){return function(){x(null)}},[]);var C=o&&a!==ou?o(a):p,w;r||(w={opacity:v?0:1,height:v?0:ou,overflowY:v?"hidden":ou,order:i?h:ou,pointerEvents:v?"none":ou,position:v?"absolute":ou});var E={};v&&(E["aria-hidden"]=!0);var I=l.createElement(y,pe({className:ne(!r&&n,d),style:Z(Z({},w),f)},E,S,{ref:t}),C);return i&&(I=l.createElement(sa,{onResize:function(R){var _=R.offsetWidth;x(_)},disabled:s},I)),I}var yp=l.forwardRef(qce);yp.displayName="Item";function Kce(e){if(typeof MessageChannel>"u")Ut(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function Yce(){var e=l.useRef(null),t=function(r){e.current||(e.current=[],Kce(function(){Lr.unstable_batchedUpdates(function(){e.current.forEach(function(a){a()}),e.current=null})})),e.current.push(r)};return t}function Of(e,t){var n=l.useState(t),r=re(n,2),a=r[0],o=r[1],i=Wt(function(s){e(function(){o(s)})});return[a,i]}var db=se.createContext(null),Xce=["component"],Zce=["className"],Qce=["className"],Jce=function(t,n){var r=l.useContext(db);if(!r){var a=t.component,o=a===void 0?"div":a,i=xt(t,Xce);return l.createElement(o,pe({},i,{ref:n}))}var s=r.className,c=xt(r,Zce),u=t.className,d=xt(t,Qce);return l.createElement(db.Provider,{value:null},l.createElement(yp,pe({ref:n,className:ne(s,u)},c,d)))},ZU=l.forwardRef(Jce);ZU.displayName="RawItem";var eue=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],QU="responsive",JU="invalidate";function tue(e){return"+ ".concat(e.length," ...")}function nue(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,a=e.data,o=a===void 0?[]:a,i=e.renderItem,s=e.renderRawItem,c=e.itemKey,u=e.itemWidth,d=u===void 0?10:u,f=e.ssr,p=e.style,g=e.className,h=e.maxCount,b=e.renderRest,y=e.renderRawRest,S=e.suffix,v=e.component,x=v===void 0?"div":v,C=e.itemComponent,w=e.onVisibleChange,E=xt(e,eue),I=f==="full",T=Yce(),R=Of(T,null),_=re(R,2),$=_[0],P=_[1],D=$||0,A=Of(T,new Map),O=re(A,2),N=O[0],k=O[1],M=Of(T,0),L=re(M,2),F=L[0],j=L[1],B=Of(T,0),z=re(B,2),H=z[0],V=z[1],te=Of(T,0),Y=re(te,2),J=Y[0],G=Y[1],U=l.useState(null),q=re(U,2),X=q[0],Q=q[1],ee=l.useState(null),oe=re(ee,2),le=oe[0],fe=oe[1],ce=l.useMemo(function(){return le===null&&I?Number.MAX_SAFE_INTEGER:le||0},[le,$]),Te=l.useState(!1),Se=re(Te,2),ve=Se[0],ae=Se[1],ie="".concat(r,"-item"),ue=Math.max(F,H),ye=h===QU,Ee=o.length&&ye,Me=h===JU,Ie=Ee||typeof h=="number"&&o.length>h,Ce=l.useMemo(function(){var Ze=o;return Ee?$===null&&I?Ze=o:Ze=o.slice(0,Math.min(o.length,D/d)):typeof h=="number"&&(Ze=o.slice(0,h)),Ze},[o,d,$,h,Ee]),me=l.useMemo(function(){return Ee?o.slice(ce+1):o.slice(Ce.length)},[o,Ce,Ee,ce]),we=l.useCallback(function(Ze,je){var Je;return typeof c=="function"?c(Ze):(Je=c&&(Ze==null?void 0:Ze[c]))!==null&&Je!==void 0?Je:je},[c]),_e=l.useCallback(i||function(Ze){return Ze},[i]);function Ne(Ze,je,Je){le===Ze&&(je===void 0||je===X)||(fe(Ze),Je||(ae(ZeD){Ne(mt-1,Ze-ft-J+H);break}}S&&Pe(0)+J>D&&Q(null)}},[D,N,H,J,we,Ce]);var Ve=ve&&!!me.length,Ae={};X!==null&&Ee&&(Ae={position:"absolute",left:X,top:0});var be={prefixCls:ie,responsive:Ee,component:C,invalidate:Me},Oe=s?function(Ze,je){var Je=we(Ze,je);return l.createElement(db.Provider,{key:Je,value:Z(Z({},be),{},{order:je,item:Ze,itemKey:Je,registerSize:ke,display:je<=ce})},s(Ze,je))}:function(Ze,je){var Je=we(Ze,je);return l.createElement(yp,pe({},be,{order:je,key:Je,item:Ze,renderItem:_e,itemKey:Je,registerSize:ke,display:je<=ce}))},Fe,Ke={order:Ve?ce:Number.MAX_SAFE_INTEGER,className:"".concat(ie,"-rest"),registerSize:xe,display:Ve};if(y)y&&(Fe=l.createElement(db.Provider,{value:Z(Z({},be),Ke)},y(me)));else{var He=b||tue;Fe=l.createElement(yp,pe({},be,Ke),typeof He=="function"?He(me):He)}var ze=l.createElement(x,pe({className:ne(!Me&&r,g),style:p,ref:t},E),Ce.map(Oe),Ie?Fe:null,S&&l.createElement(yp,pe({},be,{responsive:ye,responsiveDisabled:!Ee,order:ce,className:"".concat(ie,"-suffix"),registerSize:ge,display:!0,style:Ae}),S));return ye&&(ze=l.createElement(sa,{onResize:he,disabled:!Ee},ze)),ze}var di=l.forwardRef(nue);di.displayName="Overflow";di.Item=ZU;di.RESPONSIVE=QU;di.INVALIDATE=JU;var rue=function(t,n){var r,a=t.prefixCls,o=t.id,i=t.inputElement,s=t.disabled,c=t.tabIndex,u=t.autoFocus,d=t.autoComplete,f=t.editable,p=t.activeDescendantId,g=t.value,h=t.maxLength,b=t.onKeyDown,y=t.onMouseDown,S=t.onChange,v=t.onPaste,x=t.onCompositionStart,C=t.onCompositionEnd,w=t.open,E=t.attrs,I=i||l.createElement("input",null),T=I,R=T.ref,_=T.props,$=_.onKeyDown,P=_.onChange,D=_.onMouseDown,A=_.onCompositionStart,O=_.onCompositionEnd,N=_.style;return"maxLength"in I.props,I=l.cloneElement(I,Z(Z(Z({type:"search"},_),{},{id:o,ref:ea(n,R),disabled:s,tabIndex:c,autoComplete:d||"off",autoFocus:u,className:ne("".concat(a,"-selection-search-input"),(r=I)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":w||!1,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":w?p:void 0},E),{},{value:f?g:"",maxLength:h,readOnly:!f,unselectable:f?null:"on",style:Z(Z({},N),{},{opacity:f?null:0}),onKeyDown:function(M){b(M),$&&$(M)},onMouseDown:function(M){y(M),D&&D(M)},onChange:function(M){S(M),P&&P(M)},onCompositionStart:function(M){x(M),A&&A(M)},onCompositionEnd:function(M){C(M),O&&O(M)},onPaste:v})),I},eV=l.forwardRef(rue);function tV(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var aue=typeof window<"u"&&window.document&&window.document.documentElement,oue=aue;function iue(e){return e!=null}function sue(e){return!e&&e!==0}function YM(e){return["string","number"].includes(ht(e))}function nV(e){var t=void 0;return e&&(YM(e.title)?t=e.title.toString():YM(e.label)&&(t=e.label.toString())),t}function lue(e,t){oue?l.useLayoutEffect(e,t):l.useEffect(e,t)}function cue(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var XM=function(t){t.preventDefault(),t.stopPropagation()},uue=function(t){var n=t.id,r=t.prefixCls,a=t.values,o=t.open,i=t.searchValue,s=t.autoClearSearchValue,c=t.inputRef,u=t.placeholder,d=t.disabled,f=t.mode,p=t.showSearch,g=t.autoFocus,h=t.autoComplete,b=t.activeDescendantId,y=t.tabIndex,S=t.removeIcon,v=t.maxTagCount,x=t.maxTagTextLength,C=t.maxTagPlaceholder,w=C===void 0?function(Q){return"+ ".concat(Q.length," ...")}:C,E=t.tagRender,I=t.onToggleOpen,T=t.onRemove,R=t.onInputChange,_=t.onInputPaste,$=t.onInputKeyDown,P=t.onInputMouseDown,D=t.onInputCompositionStart,A=t.onInputCompositionEnd,O=l.useRef(null),N=l.useState(0),k=re(N,2),M=k[0],L=k[1],F=l.useState(!1),j=re(F,2),B=j[0],z=j[1],H="".concat(r,"-selection"),V=o||f==="multiple"&&s===!1||f==="tags"?i:"",te=f==="tags"||f==="multiple"&&s===!1||p&&(o||B);lue(function(){L(O.current.scrollWidth)},[V]);var Y=function(ee,oe,le,fe,ce){return l.createElement("span",{title:nV(ee),className:ne("".concat(H,"-item"),W({},"".concat(H,"-item-disabled"),le))},l.createElement("span",{className:"".concat(H,"-item-content")},oe),fe&&l.createElement(A0,{className:"".concat(H,"-item-remove"),onMouseDown:XM,onClick:ce,customizeIcon:S},"×"))},J=function(ee,oe,le,fe,ce,Te){var Se=function(ae){XM(ae),I(!o)};return l.createElement("span",{onMouseDown:Se},E({label:oe,value:ee,disabled:le,closable:fe,onClose:ce,isMaxTag:!!Te}))},G=function(ee){var oe=ee.disabled,le=ee.label,fe=ee.value,ce=!d&&!oe,Te=le;if(typeof x=="number"&&(typeof le=="string"||typeof le=="number")){var Se=String(Te);Se.length>x&&(Te="".concat(Se.slice(0,x),"..."))}var ve=function(ie){ie&&ie.stopPropagation(),T(ee)};return typeof E=="function"?J(fe,Te,oe,ce,ve):Y(ee,Te,oe,ce,ve)},U=function(ee){var oe=typeof w=="function"?w(ee):w;return typeof E=="function"?J(void 0,oe,!1,!1,void 0,!0):Y({title:oe},oe,!1)},q=l.createElement("div",{className:"".concat(H,"-search"),style:{width:M},onFocus:function(){z(!0)},onBlur:function(){z(!1)}},l.createElement(eV,{ref:c,open:o,prefixCls:r,id:n,inputElement:null,disabled:d,autoFocus:g,autoComplete:h,editable:te,activeDescendantId:b,value:V,onKeyDown:$,onMouseDown:P,onChange:R,onPaste:_,onCompositionStart:D,onCompositionEnd:A,tabIndex:y,attrs:Yn(t,!0)}),l.createElement("span",{ref:O,className:"".concat(H,"-search-mirror"),"aria-hidden":!0},V," ")),X=l.createElement(di,{prefixCls:"".concat(H,"-overflow"),data:a,renderItem:G,renderRest:U,suffix:q,itemKey:cue,maxCount:v});return l.createElement(l.Fragment,null,X,!a.length&&!V&&l.createElement("span",{className:"".concat(H,"-placeholder")},u))},due=function(t){var n=t.inputElement,r=t.prefixCls,a=t.id,o=t.inputRef,i=t.disabled,s=t.autoFocus,c=t.autoComplete,u=t.activeDescendantId,d=t.mode,f=t.open,p=t.values,g=t.placeholder,h=t.tabIndex,b=t.showSearch,y=t.searchValue,S=t.activeValue,v=t.maxLength,x=t.onInputKeyDown,C=t.onInputMouseDown,w=t.onInputChange,E=t.onInputPaste,I=t.onInputCompositionStart,T=t.onInputCompositionEnd,R=t.title,_=l.useState(!1),$=re(_,2),P=$[0],D=$[1],A=d==="combobox",O=A||b,N=p[0],k=y||"";A&&S&&!P&&(k=S),l.useEffect(function(){A&&D(!1)},[A,S]);var M=d!=="combobox"&&!f&&!b?!1:!!k,L=R===void 0?nV(N):R,F=l.useMemo(function(){return N?null:l.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:M?{visibility:"hidden"}:void 0},g)},[N,M,g,r]);return l.createElement(l.Fragment,null,l.createElement("span",{className:"".concat(r,"-selection-search")},l.createElement(eV,{ref:o,prefixCls:r,id:a,open:f,inputElement:n,disabled:i,autoFocus:s,autoComplete:c,editable:O,activeDescendantId:u,value:k,onKeyDown:x,onMouseDown:C,onChange:function(B){D(!0),w(B)},onPaste:E,onCompositionStart:I,onCompositionEnd:T,tabIndex:h,attrs:Yn(t,!0),maxLength:A?v:void 0})),!A&&N?l.createElement("span",{className:"".concat(r,"-selection-item"),title:L,style:M?{visibility:"hidden"}:void 0},N.label):null,F)},fue=function(t,n){var r=l.useRef(null),a=l.useRef(!1),o=t.prefixCls,i=t.open,s=t.mode,c=t.showSearch,u=t.tokenWithEnter,d=t.disabled,f=t.autoClearSearchValue,p=t.onSearch,g=t.onSearchSubmit,h=t.onToggleOpen,b=t.onInputKeyDown,y=t.domRef;l.useImperativeHandle(n,function(){return{focus:function(M){r.current.focus(M)},blur:function(){r.current.blur()}}});var S=XU(0),v=re(S,2),x=v[0],C=v[1],w=function(M){var L=M.which;(L===Le.UP||L===Le.DOWN)&&M.preventDefault(),b&&b(M),L===Le.ENTER&&s==="tags"&&!a.current&&!i&&(g==null||g(M.target.value)),Wce(L)&&h(!0)},E=function(){C(!0)},I=l.useRef(null),T=function(M){p(M,!0,a.current)!==!1&&h(!0)},R=function(){a.current=!0},_=function(M){a.current=!1,s!=="combobox"&&T(M.target.value)},$=function(M){var L=M.target.value;if(u&&I.current&&/[\r\n]/.test(I.current)){var F=I.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");L=L.replace(F,I.current)}I.current=null,T(L)},P=function(M){var L=M.clipboardData,F=L==null?void 0:L.getData("text");I.current=F||""},D=function(M){var L=M.target;if(L!==r.current){var F=document.body.style.msTouchAction!==void 0;F?setTimeout(function(){r.current.focus()}):r.current.focus()}},A=function(M){var L=x();M.target!==r.current&&!L&&!(s==="combobox"&&d)&&M.preventDefault(),(s!=="combobox"&&(!c||!L)||!i)&&(i&&f!==!1&&p("",!0,!1),h())},O={inputRef:r,onInputKeyDown:w,onInputMouseDown:E,onInputChange:$,onInputPaste:P,onInputCompositionStart:R,onInputCompositionEnd:_},N=s==="multiple"||s==="tags"?l.createElement(uue,pe({},t,O)):l.createElement(due,pe({},t,O));return l.createElement("div",{ref:y,className:"".concat(o,"-selector"),onClick:D,onMouseDown:A},N)},pue=l.forwardRef(fue);function gue(e){var t=e.prefixCls,n=e.align,r=e.arrow,a=e.arrowPos,o=r||{},i=o.className,s=o.content,c=a.x,u=c===void 0?0:c,d=a.y,f=d===void 0?0:d,p=l.useRef();if(!n||!n.points)return null;var g={position:"absolute"};if(n.autoArrow!==!1){var h=n.points[0],b=n.points[1],y=h[0],S=h[1],v=b[0],x=b[1];y===v||!["t","b"].includes(y)?g.top=f:y==="t"?g.top=0:g.bottom=0,S===x||!["l","r"].includes(S)?g.left=u:S==="l"?g.left=0:g.right=0}return l.createElement("div",{ref:p,className:ne("".concat(t,"-arrow"),i),style:g},s)}function mue(e){var t=e.prefixCls,n=e.open,r=e.zIndex,a=e.mask,o=e.motion;return a?l.createElement(Qr,pe({},o,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(i){var s=i.className;return l.createElement("div",{style:{zIndex:r},className:ne("".concat(t,"-mask"),s)})}):null}var hue=l.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),vue=l.forwardRef(function(e,t){var n=e.popup,r=e.className,a=e.prefixCls,o=e.style,i=e.target,s=e.onVisibleChanged,c=e.open,u=e.keepDom,d=e.fresh,f=e.onClick,p=e.mask,g=e.arrow,h=e.arrowPos,b=e.align,y=e.motion,S=e.maskMotion,v=e.forceRender,x=e.getPopupContainer,C=e.autoDestroy,w=e.portal,E=e.zIndex,I=e.onMouseEnter,T=e.onMouseLeave,R=e.onPointerEnter,_=e.ready,$=e.offsetX,P=e.offsetY,D=e.offsetR,A=e.offsetB,O=e.onAlign,N=e.onPrepare,k=e.stretch,M=e.targetWidth,L=e.targetHeight,F=typeof n=="function"?n():n,j=c||u,B=(x==null?void 0:x.length)>0,z=l.useState(!x||!B),H=re(z,2),V=H[0],te=H[1];if(Xt(function(){!V&&B&&i&&te(!0)},[V,B,i]),!V)return null;var Y="auto",J={left:"-1000vw",top:"-1000vh",right:Y,bottom:Y};if(_||!c){var G,U=b.points,q=b.dynamicInset||((G=b._experimental)===null||G===void 0?void 0:G.dynamicInset),X=q&&U[0][1]==="r",Q=q&&U[0][0]==="b";X?(J.right=D,J.left=Y):(J.left=$,J.right=Y),Q?(J.bottom=A,J.top=Y):(J.top=P,J.bottom=Y)}var ee={};return k&&(k.includes("height")&&L?ee.height=L:k.includes("minHeight")&&L&&(ee.minHeight=L),k.includes("width")&&M?ee.width=M:k.includes("minWidth")&&M&&(ee.minWidth=M)),c||(ee.pointerEvents="none"),l.createElement(w,{open:v||j,getContainer:x&&function(){return x(i)},autoDestroy:C},l.createElement(mue,{prefixCls:a,open:c,zIndex:E,mask:p,motion:S}),l.createElement(sa,{onResize:O,disabled:!c},function(oe){return l.createElement(Qr,pe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:v,leavedClassName:"".concat(a,"-hidden")},y,{onAppearPrepare:N,onEnterPrepare:N,visible:c,onVisibleChanged:function(fe){var ce;y==null||(ce=y.onVisibleChanged)===null||ce===void 0||ce.call(y,fe),s(fe)}}),function(le,fe){var ce=le.className,Te=le.style,Se=ne(a,ce,r);return l.createElement("div",{ref:ea(oe,t,fe),className:Se,style:Z(Z(Z(Z({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},J),ee),Te),{},{boxSizing:"border-box",zIndex:E},o),onMouseEnter:I,onMouseLeave:T,onPointerEnter:R,onClick:f},g&&l.createElement(gue,{prefixCls:a,arrow:g,arrowPos:h,align:b}),l.createElement(hue,{cache:!c&&!d},F))})}))}),bue=l.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,a=gi(n),o=l.useCallback(function(s){tg(t,r?r(s):s)},[r]),i=$s(o,n.ref);return a?l.cloneElement(n,{ref:i}):n}),ZM=l.createContext(null);function QM(e){return e?Array.isArray(e)?e:[e]:[]}function yue(e,t,n,r){return l.useMemo(function(){var a=QM(n??t),o=QM(r??t),i=new Set(a),s=new Set(o);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[i,s]},[e,t,n,r])}function Sue(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function xue(e,t,n,r){for(var a=n.points,o=Object.keys(e),i=0;i1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Nf(e){return pg(parseFloat(e),0)}function e4(e,t){var n=Z({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var a=em(r).getComputedStyle(r),o=a.overflow,i=a.overflowClipMargin,s=a.borderTopWidth,c=a.borderBottomWidth,u=a.borderLeftWidth,d=a.borderRightWidth,f=r.getBoundingClientRect(),p=r.offsetHeight,g=r.clientHeight,h=r.offsetWidth,b=r.clientWidth,y=Nf(s),S=Nf(c),v=Nf(u),x=Nf(d),C=pg(Math.round(f.width/h*1e3)/1e3),w=pg(Math.round(f.height/p*1e3)/1e3),E=(h-b-v-x)*C,I=(p-g-y-S)*w,T=y*w,R=S*w,_=v*C,$=x*C,P=0,D=0;if(o==="clip"){var A=Nf(i);P=A*C,D=A*w}var O=f.x+_-P,N=f.y+T-D,k=O+f.width+2*P-_-$-E,M=N+f.height+2*D-T-R-I;n.left=Math.max(n.left,O),n.top=Math.max(n.top,N),n.right=Math.min(n.right,k),n.bottom=Math.min(n.bottom,M)}}),n}function t4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function n4(e,t){var n=t||[],r=re(n,2),a=r[0],o=r[1];return[t4(e.width,a),t4(e.height,o)]}function r4(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function iu(e,t){var n=t[0],r=t[1],a,o;return n==="t"?o=e.y:n==="b"?o=e.y+e.height:o=e.y+e.height/2,r==="l"?a=e.x:r==="r"?a=e.x+e.width:a=e.x+e.width/2,{x:a,y:o}}function Ps(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,a){return a===t?n[r]||"c":r}).join("")}function wue(e,t,n,r,a,o,i){var s=l.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[r]||{}}),c=re(s,2),u=c[0],d=c[1],f=l.useRef(0),p=l.useMemo(function(){return t?gR(t):[]},[t]),g=l.useRef({}),h=function(){g.current={}};e||h();var b=Wt(function(){if(t&&n&&e){let mn=function(Ia,ra){var Fa=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ue,wi=H.x+Ia,Xc=H.y+ra,At=wi+Q,Yt=Xc+X,Vn=Math.max(wi,Fa.left),pr=Math.max(Xc,Fa.top),Wn=Math.min(At,Fa.right),As=Math.min(Yt,Fa.bottom);return Math.max(0,(Wn-Vn)*(As-pr))},ua=function(){bt=H.y+Je,rt=bt+X,St=H.x+je,Et=St+Q};var yn=mn,fr=ua,v,x,C,w,E=t,I=E.ownerDocument,T=em(E),R=T.getComputedStyle(E),_=R.width,$=R.height,P=R.position,D=E.style.left,A=E.style.top,O=E.style.right,N=E.style.bottom,k=E.style.overflow,M=Z(Z({},a[r]),o),L=I.createElement("div");(v=E.parentElement)===null||v===void 0||v.appendChild(L),L.style.left="".concat(E.offsetLeft,"px"),L.style.top="".concat(E.offsetTop,"px"),L.style.position=P,L.style.height="".concat(E.offsetHeight,"px"),L.style.width="".concat(E.offsetWidth,"px"),E.style.left="0",E.style.top="0",E.style.right="auto",E.style.bottom="auto",E.style.overflow="hidden";var F;if(Array.isArray(n))F={x:n[0],y:n[1],width:0,height:0};else{var j,B,z=n.getBoundingClientRect();z.x=(j=z.x)!==null&&j!==void 0?j:z.left,z.y=(B=z.y)!==null&&B!==void 0?B:z.top,F={x:z.x,y:z.y,width:z.width,height:z.height}}var H=E.getBoundingClientRect();H.x=(x=H.x)!==null&&x!==void 0?x:H.left,H.y=(C=H.y)!==null&&C!==void 0?C:H.top;var V=I.documentElement,te=V.clientWidth,Y=V.clientHeight,J=V.scrollWidth,G=V.scrollHeight,U=V.scrollTop,q=V.scrollLeft,X=H.height,Q=H.width,ee=F.height,oe=F.width,le={left:0,top:0,right:te,bottom:Y},fe={left:-q,top:-U,right:J-q,bottom:G-U},ce=M.htmlRegion,Te="visible",Se="visibleFirst";ce!=="scroll"&&ce!==Se&&(ce=Te);var ve=ce===Se,ae=e4(fe,p),ie=e4(le,p),ue=ce===Te?ie:ae,ye=ve?ie:ue;E.style.left="auto",E.style.top="auto",E.style.right="0",E.style.bottom="0";var Ee=E.getBoundingClientRect();E.style.left=D,E.style.top=A,E.style.right=O,E.style.bottom=N,E.style.overflow=k,(w=E.parentElement)===null||w===void 0||w.removeChild(L);var Me=pg(Math.round(Q/parseFloat(_)*1e3)/1e3),Ie=pg(Math.round(X/parseFloat($)*1e3)/1e3);if(Me===0||Ie===0||eg(n)&&!Vd(n))return;var Ce=M.offset,me=M.targetOffset,we=n4(H,Ce),_e=re(we,2),Ne=_e[0],he=_e[1],ke=n4(F,me),xe=re(ke,2),ge=xe[0],Pe=xe[1];F.x-=ge,F.y-=Pe;var Ve=M.points||[],Ae=re(Ve,2),be=Ae[0],Oe=Ae[1],Fe=r4(Oe),Ke=r4(be),He=iu(F,Fe),ze=iu(H,Ke),Ze=Z({},M),je=He.x-ze.x+Ne,Je=He.y-ze.y+he,mt=mn(je,Je),ft=mn(je,Je,ie),qe=iu(F,["t","l"]),We=iu(H,["t","l"]),Qe=iu(F,["b","r"]),ct=iu(H,["b","r"]),Rt=M.overflow||{},$t=Rt.adjustX,vt=Rt.adjustY,lt=Rt.shiftX,ot=Rt.shiftY,et=function(ra){return typeof ra=="boolean"?ra:ra>=0},bt,rt,St,Et;ua();var tt=et(vt),at=Ke[0]===Fe[0];if(tt&&Ke[0]==="t"&&(rt>ye.bottom||g.current.bt)){var Ye=Je;at?Ye-=X-ee:Ye=qe.y-ct.y-he;var Ge=mn(je,Ye),yt=mn(je,Ye,ie);Ge>mt||Ge===mt&&(!ve||yt>=ft)?(g.current.bt=!0,Je=Ye,he=-he,Ze.points=[Ps(Ke,0),Ps(Fe,0)]):g.current.bt=!1}if(tt&&Ke[0]==="b"&&(btmt||Pt===mt&&(!ve||en>=ft)?(g.current.tb=!0,Je=Tt,he=-he,Ze.points=[Ps(Ke,0),Ps(Fe,0)]):g.current.tb=!1}var rn=et($t),Vt=Ke[1]===Fe[1];if(rn&&Ke[1]==="l"&&(Et>ye.right||g.current.rl)){var tn=je;Vt?tn-=Q-oe:tn=qe.x-ct.x-Ne;var It=mn(tn,Je),_t=mn(tn,Je,ie);It>mt||It===mt&&(!ve||_t>=ft)?(g.current.rl=!0,je=tn,Ne=-Ne,Ze.points=[Ps(Ke,1),Ps(Fe,1)]):g.current.rl=!1}if(rn&&Ke[1]==="r"&&(Stmt||Tn===mt&&(!ve||Qn>=ft)?(g.current.lr=!0,je=kt,Ne=-Ne,Ze.points=[Ps(Ke,1),Ps(Fe,1)]):g.current.lr=!1}ua();var cr=lt===!0?0:lt;typeof cr=="number"&&(Stie.right&&(je-=Et-ie.right-Ne,F.x>ie.right-cr&&(je+=F.x-ie.right+cr)));var Jn=ot===!0?0:ot;typeof Jn=="number"&&(btie.bottom&&(Je-=rt-ie.bottom-he,F.y>ie.bottom-Jn&&(Je+=F.y-ie.bottom+Jn)));var Hr=H.x+je,Mr=Hr+Q,er=H.y+Je,Kt=er+X,Ft=F.x,Gt=Ft+oe,jt=F.y,Bt=jt+ee,wt=Math.max(Hr,Ft),Ct=Math.min(Mr,Gt),cn=(wt+Ct)/2,Rn=cn-Hr,ur=Math.max(er,jt),dr=Math.min(Kt,Bt),yr=(ur+dr)/2,Ht=yr-er;i==null||i(t,Ze);var Lt=Ee.right-H.x-(je+H.width),pt=Ee.bottom-H.y-(Je+H.height);Me===1&&(je=Math.round(je),Lt=Math.round(Lt)),Ie===1&&(Je=Math.round(Je),pt=Math.round(pt));var Dt={ready:!0,offsetX:je/Me,offsetY:Je/Ie,offsetR:Lt/Me,offsetB:pt/Ie,arrowX:Rn/Me,arrowY:Ht/Ie,scaleX:Me,scaleY:Ie,align:Ze};d(Dt)}}),y=function(){f.current+=1;var x=f.current;Promise.resolve().then(function(){f.current===x&&b()})},S=function(){d(function(x){return Z(Z({},x),{},{ready:!1})})};return Xt(S,[r]),Xt(function(){e||S()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,y]}function Cue(e,t,n,r,a){Xt(function(){if(e&&t&&n){let p=function(){r(),a()};var f=p,o=t,i=n,s=gR(o),c=gR(i),u=em(i),d=new Set([u].concat(De(s),De(c)));return d.forEach(function(g){g.addEventListener("scroll",p,{passive:!0})}),u.addEventListener("resize",p,{passive:!0}),r(),function(){d.forEach(function(g){g.removeEventListener("scroll",p),u.removeEventListener("resize",p)})}}},[e,t,n])}function Eue(e,t,n,r,a,o,i,s){var c=l.useRef(e);c.current=e,l.useEffect(function(){if(t&&r&&(!a||o)){var u=function(g){var h;c.current&&!i(((h=g.composedPath)===null||h===void 0||(h=h.call(g))===null||h===void 0?void 0:h[0])||g.target)&&s(!1)},d=em(r);d.addEventListener("mousedown",u,!0),d.addEventListener("contextmenu",u,!0);var f=lb(n);return f&&(f.addEventListener("mousedown",u,!0),f.addEventListener("contextmenu",u,!0)),function(){d.removeEventListener("mousedown",u,!0),d.removeEventListener("contextmenu",u,!0),f&&(f.removeEventListener("mousedown",u,!0),f.removeEventListener("contextmenu",u,!0))}}},[t,n,r,a,o])}var Iue=["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 Tue(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Yg,t=l.forwardRef(function(n,r){var a=n.prefixCls,o=a===void 0?"rc-trigger-popup":a,i=n.children,s=n.action,c=s===void 0?"hover":s,u=n.showAction,d=n.hideAction,f=n.popupVisible,p=n.defaultPopupVisible,g=n.onPopupVisibleChange,h=n.afterPopupVisibleChange,b=n.mouseEnterDelay,y=n.mouseLeaveDelay,S=y===void 0?.1:y,v=n.focusDelay,x=n.blurDelay,C=n.mask,w=n.maskClosable,E=w===void 0?!0:w,I=n.getPopupContainer,T=n.forceRender,R=n.autoDestroy,_=n.destroyPopupOnHide,$=n.popup,P=n.popupClassName,D=n.popupStyle,A=n.popupPlacement,O=n.builtinPlacements,N=O===void 0?{}:O,k=n.popupAlign,M=n.zIndex,L=n.stretch,F=n.getPopupClassNameFromAlign,j=n.fresh,B=n.alignPoint,z=n.onPopupClick,H=n.onPopupAlign,V=n.arrow,te=n.popupMotion,Y=n.maskMotion,J=n.popupTransitionName,G=n.popupAnimation,U=n.maskTransitionName,q=n.maskAnimation,X=n.className,Q=n.getTriggerDOMNode,ee=xt(n,Iue),oe=R||_||!1,le=l.useState(!1),fe=re(le,2),ce=fe[0],Te=fe[1];Xt(function(){Te(k0())},[]);var Se=l.useRef({}),ve=l.useContext(ZM),ae=l.useMemo(function(){return{registerSubPopup:function(Yt,Vn){Se.current[Yt]=Vn,ve==null||ve.registerSubPopup(Yt,Vn)}}},[ve]),ie=hU(),ue=l.useState(null),ye=re(ue,2),Ee=ye[0],Me=ye[1],Ie=l.useRef(null),Ce=Wt(function(At){Ie.current=At,eg(At)&&Ee!==At&&Me(At),ve==null||ve.registerSubPopup(ie,At)}),me=l.useState(null),we=re(me,2),_e=we[0],Ne=we[1],he=l.useRef(null),ke=Wt(function(At){eg(At)&&_e!==At&&(Ne(At),he.current=At)}),xe=l.Children.only(i),ge=(xe==null?void 0:xe.props)||{},Pe={},Ve=Wt(function(At){var Yt,Vn,pr=_e;return(pr==null?void 0:pr.contains(At))||((Yt=lb(pr))===null||Yt===void 0?void 0:Yt.host)===At||At===pr||(Ee==null?void 0:Ee.contains(At))||((Vn=lb(Ee))===null||Vn===void 0?void 0:Vn.host)===At||At===Ee||Object.values(Se.current).some(function(Wn){return(Wn==null?void 0:Wn.contains(At))||At===Wn})}),Ae=JM(o,te,G,J),be=JM(o,Y,q,U),Oe=l.useState(p||!1),Fe=re(Oe,2),Ke=Fe[0],He=Fe[1],ze=f??Ke,Ze=Wt(function(At){f===void 0&&He(At)});Xt(function(){He(f||!1)},[f]);var je=l.useRef(ze);je.current=ze;var Je=l.useRef([]);Je.current=[];var mt=Wt(function(At){var Yt;Ze(At),((Yt=Je.current[Je.current.length-1])!==null&&Yt!==void 0?Yt:ze)!==At&&(Je.current.push(At),g==null||g(At))}),ft=l.useRef(),qe=function(){clearTimeout(ft.current)},We=function(Yt){var Vn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;qe(),Vn===0?mt(Yt):ft.current=setTimeout(function(){mt(Yt)},Vn*1e3)};l.useEffect(function(){return qe},[]);var Qe=l.useState(!1),ct=re(Qe,2),Rt=ct[0],$t=ct[1];Xt(function(At){(!At||ze)&&$t(!0)},[ze]);var vt=l.useState(null),lt=re(vt,2),ot=lt[0],et=lt[1],bt=l.useState(null),rt=re(bt,2),St=rt[0],Et=rt[1],tt=function(Yt){Et([Yt.clientX,Yt.clientY])},at=wue(ze,Ee,B&&St!==null?St:_e,A,N,k,H),Ye=re(at,11),Ge=Ye[0],yt=Ye[1],Tt=Ye[2],Pt=Ye[3],en=Ye[4],rn=Ye[5],Vt=Ye[6],tn=Ye[7],It=Ye[8],_t=Ye[9],kt=Ye[10],Tn=yue(ce,c,u,d),Qn=re(Tn,2),cr=Qn[0],Jn=Qn[1],Hr=cr.has("click"),Mr=Jn.has("click")||Jn.has("contextMenu"),er=Wt(function(){Rt||kt()}),Kt=function(){je.current&&B&&Mr&&We(!1)};Cue(ze,_e,Ee,er,Kt),Xt(function(){er()},[St,A]),Xt(function(){ze&&!(N!=null&&N[A])&&er()},[JSON.stringify(k)]);var Ft=l.useMemo(function(){var At=xue(N,o,_t,B);return ne(At,F==null?void 0:F(_t))},[_t,F,N,o,B]);l.useImperativeHandle(r,function(){return{nativeElement:he.current,popupElement:Ie.current,forceAlign:er}});var Gt=l.useState(0),jt=re(Gt,2),Bt=jt[0],wt=jt[1],Ct=l.useState(0),cn=re(Ct,2),Rn=cn[0],ur=cn[1],dr=function(){if(L&&_e){var Yt=_e.getBoundingClientRect();wt(Yt.width),ur(Yt.height)}},yr=function(){dr(),er()},Ht=function(Yt){$t(!1),kt(),h==null||h(Yt)},Lt=function(){return new Promise(function(Yt){dr(),et(function(){return Yt})})};Xt(function(){ot&&(kt(),ot(),et(null))},[ot]);function pt(At,Yt,Vn,pr){Pe[At]=function(Wn){var As;pr==null||pr(Wn),We(Yt,Vn);for(var Zc=arguments.length,hf=new Array(Zc>1?Zc-1:0),Qc=1;Qc1?Vn-1:0),Wn=1;Wn1?Vn-1:0),Wn=1;Wn1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,a=[],o=rV(n,!1),i=o.label,s=o.value,c=o.options,u=o.groupLabel;function d(f,p){Array.isArray(f)&&f.forEach(function(g){if(p||!(c in g)){var h=g[s];a.push({key:a4(g,a.length),groupOption:p,data:g,label:g[i],value:h})}else{var b=g[u];b===void 0&&r&&(b=g.label),a.push({key:a4(g,a.length),group:!0,data:g,label:b}),d(g[c],!0)}})}return d(e,!1),a}function hR(e){var t=Z({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return vn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var kue=function(t,n,r){if(!n||!n.length)return null;var a=!1,o=function s(c,u){var d=lH(u),f=d[0],p=d.slice(1);if(!f)return[c];var g=c.split(f);return a=a||g.length>1,g.reduce(function(h,b){return[].concat(De(h),De(s(b,p)))},[]).filter(Boolean)},i=o(t,n);return a?typeof r<"u"?i.slice(0,r):i:null},sO=l.createContext(null);function Aue(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return l.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(a){var o=a.label,i=a.value;return["number","string"].includes(ht(o))?o:i}).join(", ")),n.length>r?", ...":null)}var Mue=["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"],Pue=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],vR=function(t){return t==="tags"||t==="multiple"},aV=l.forwardRef(function(e,t){var n,r=e.id,a=e.prefixCls,o=e.className,i=e.showSearch,s=e.tagRender,c=e.direction,u=e.omitDomProps,d=e.displayValues,f=e.onDisplayValuesChange,p=e.emptyOptions,g=e.notFoundContent,h=g===void 0?"Not Found":g,b=e.onClear,y=e.mode,S=e.disabled,v=e.loading,x=e.getInputElement,C=e.getRawInputElement,w=e.open,E=e.defaultOpen,I=e.onDropdownVisibleChange,T=e.activeValue,R=e.onActiveValueChange,_=e.activeDescendantId,$=e.searchValue,P=e.autoClearSearchValue,D=e.onSearch,A=e.onSearchSplit,O=e.tokenSeparators,N=e.allowClear,k=e.suffixIcon,M=e.clearIcon,L=e.OptionList,F=e.animation,j=e.transitionName,B=e.dropdownStyle,z=e.dropdownClassName,H=e.dropdownMatchSelectWidth,V=e.dropdownRender,te=e.dropdownAlign,Y=e.placement,J=e.builtinPlacements,G=e.getPopupContainer,U=e.showAction,q=U===void 0?[]:U,X=e.onFocus,Q=e.onBlur,ee=e.onKeyUp,oe=e.onKeyDown,le=e.onMouseDown,fe=xt(e,Mue),ce=vR(y),Te=(i!==void 0?i:ce)||y==="combobox",Se=Z({},fe);Pue.forEach(function(Kt){delete Se[Kt]}),u==null||u.forEach(function(Kt){delete Se[Kt]});var ve=l.useState(!1),ae=re(ve,2),ie=ae[0],ue=ae[1];l.useEffect(function(){ue(k0())},[]);var ye=l.useRef(null),Ee=l.useRef(null),Me=l.useRef(null),Ie=l.useRef(null),Ce=l.useRef(null),me=l.useRef(!1),we=Uce(),_e=re(we,3),Ne=_e[0],he=_e[1],ke=_e[2];l.useImperativeHandle(t,function(){var Kt,Ft;return{focus:(Kt=Ie.current)===null||Kt===void 0?void 0:Kt.focus,blur:(Ft=Ie.current)===null||Ft===void 0?void 0:Ft.blur,scrollTo:function(jt){var Bt;return(Bt=Ce.current)===null||Bt===void 0?void 0:Bt.scrollTo(jt)},nativeElement:ye.current||Ee.current}});var xe=l.useMemo(function(){var Kt;if(y!=="combobox")return $;var Ft=(Kt=d[0])===null||Kt===void 0?void 0:Kt.value;return typeof Ft=="string"||typeof Ft=="number"?String(Ft):""},[$,y,d]),ge=y==="combobox"&&typeof x=="function"&&x()||null,Pe=typeof C=="function"&&C(),Ve=$s(Ee,Pe==null||(n=Pe.props)===null||n===void 0?void 0:n.ref),Ae=l.useState(!1),be=re(Ae,2),Oe=be[0],Fe=be[1];Xt(function(){Fe(!0)},[]);var Ke=sn(!1,{defaultValue:E,value:w}),He=re(Ke,2),ze=He[0],Ze=He[1],je=Oe?ze:!1,Je=!h&&p;(S||Je&&je&&y==="combobox")&&(je=!1);var mt=Je?!1:je,ft=l.useCallback(function(Kt){var Ft=Kt!==void 0?Kt:!je;S||(Ze(Ft),je!==Ft&&(I==null||I(Ft)))},[S,je,Ze,I]),qe=l.useMemo(function(){return(O||[]).some(function(Kt){return[` + ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},Rce=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},MU=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return zt(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},PU=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${K(e.paddingMD)} ${K(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${K(e.padding)} ${K(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${K(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${K(e.paddingXS)} ${K(e.padding)}`:0,footerBorderTop:e.wireframe?`${K(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${K(e.borderRadiusLG)} ${K(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${K(e.padding*2)} ${K(e.padding*2)} ${K(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),DU=on("Modal",e=>{const t=MU(e);return[Tce(t),Rce(t),AU(t),qd(t,"zoom")]},PU,{unitless:{titleLineHeight:!0}});var _ce=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{gR={x:e.pageX,y:e.pageY},setTimeout(()=>{gR=null},100)};Rle()&&document.documentElement.addEventListener("click",$ce,!0);const LU=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:a,modal:o}=l.useContext(st),i=B=>{const{onCancel:z}=e;z==null||z(B)},s=B=>{const{onOk:z}=e;z==null||z(B)},{prefixCls:c,className:u,rootClassName:d,open:f,wrapClassName:p,centered:g,getContainer:h,focusTriggerAfterClose:b=!0,style:y,visible:S,width:v=520,footer:x,classNames:w,styles:C,children:E,loading:I}=e,T=_ce(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),R=r("modal",c),_=r(),$=Un(R),[P,D,A]=DU(R,$),O=ne(p,{[`${R}-centered`]:!!g,[`${R}-wrap-rtl`]:a==="rtl"}),N=x!==null&&!I?l.createElement(kU,Object.assign({},e,{onOk:s,onCancel:i})):null,[k,M]=oO(xd(e),xd(o),{closable:!0,closeIcon:l.createElement(ta,{className:`${R}-close-icon`}),closeIconRender:B=>NU(R,B)}),L=OU(`.${R}-content`),[F,j]=xi("Modal",T.zIndex);return P(l.createElement(Vi,{form:!0,space:!0},l.createElement(Gg.Provider,{value:j},l.createElement(eO,Object.assign({width:v},T,{zIndex:F,getContainer:h===void 0?n:h,prefixCls:R,rootClassName:ne(D,d,A,$),footer:N,visible:f??S,mousePosition:(t=T.mousePosition)!==null&&t!==void 0?t:gR,onClose:i,closable:k,closeIcon:M,focusTriggerAfterClose:b,transitionName:Ca(_,"zoom",e.transitionName),maskTransitionName:Ca(_,"fade",e.maskTransitionName),className:ne(D,u,o==null?void 0:o.className),style:Object.assign(Object.assign({},o==null?void 0:o.style),y),classNames:Object.assign(Object.assign(Object.assign({},o==null?void 0:o.classNames),w),{wrapper:ne(O,w==null?void 0:w.wrapper)}),styles:Object.assign(Object.assign({},o==null?void 0:o.styles),C),panelRef:L}),I?l.createElement(Ol,{active:!0,title:!1,paragraph:{rows:4},className:`${R}-body-skeleton`}):E))))},Oce=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:a,fontSize:o,lineHeight:i,modalTitleHeight:s,fontHeight:c,confirmBodyPadding:u}=e,d=`${t}-confirm`;return{[d]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${d}-body-wrapper`]:Object.assign({},hi()),[`&${t} ${t}-body`]:{padding:u},[`${d}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:a,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).sub(a).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(a).equal()).div(2).equal()}},[`${d}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS},[`${e.iconCls} + ${d}-paragraph`]:{maxWidth:`calc(100% - ${K(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${d}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${d}-content`]:{color:e.colorText,fontSize:o,lineHeight:i},[`${d}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${d}-error ${d}-body > ${e.iconCls}`]:{color:e.colorError},[`${d}-warning ${d}-body > ${e.iconCls}, + ${d}-confirm ${d}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${d}-info ${d}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${d}-success ${d}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},Nce=Hd(["Modal","confirm"],e=>{const t=MU(e);return[Oce(t)]},PU,{order:-1e3});var kce=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);av,Pe(Object.values(v))),w=l.createElement(l.Fragment,null,l.createElement(bM,null),l.createElement(yM,null)),C=e.title!==void 0&&e.title!==null,E=`${o}-body`;return l.createElement("div",{className:`${o}-body-wrapper`},l.createElement("div",{className:ne(E,{[`${E}-has-title`]:C})},f,l.createElement("div",{className:`${o}-paragraph`},C&&l.createElement("span",{className:`${o}-title`},e.title),l.createElement("div",{className:`${o}-content`},e.content))),c===void 0||typeof c=="function"?l.createElement(fU,{value:x},l.createElement("div",{className:`${o}-btns`},typeof c=="function"?c(w,{OkBtn:yM,CancelBtn:bM}):w)):c,l.createElement(Nce,{prefixCls:t}))}const Ace=e=>{const{close:t,zIndex:n,afterClose:r,open:a,keyboard:o,centered:i,getContainer:s,maskStyle:c,direction:u,prefixCls:d,wrapClassName:f,rootPrefixCls:p,bodyStyle:g,closable:h=!1,closeIcon:b,modalRender:y,focusTriggerAfterClose:S,onConfirm:v,styles:x}=e,w=`${d}-confirm`,C=e.width||416,E=e.style||{},I=e.mask===void 0?!0:e.mask,T=e.maskClosable===void 0?!1:e.maskClosable,R=ne(w,`${w}-${e.type}`,{[`${w}-rtl`]:u==="rtl"},e.className),[,_]=ra(),$=l.useMemo(()=>n!==void 0?n:_.zIndexPopupBase+XH,[n,_]);return l.createElement(LU,{prefixCls:d,className:R,wrapClassName:ne({[`${w}-centered`]:!!e.centered},f),onCancel:()=>{t==null||t({triggerCancel:!0}),v==null||v(!1)},open:a,title:"",footer:null,transitionName:Ca(p||"","zoom",e.transitionName),maskTransitionName:Ca(p||"","fade",e.maskTransitionName),mask:I,maskClosable:T,style:E,styles:Object.assign({body:g,mask:c},x),width:C,zIndex:$,afterClose:r,keyboard:o,centered:i,getContainer:s,closable:h,closeIcon:b,modalRender:y,focusTriggerAfterClose:S},l.createElement(FU,Object.assign({},e,{confirmPrefixCls:w})))},jU=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:a}=e;return l.createElement(Si,{prefixCls:t,iconPrefixCls:n,direction:r,theme:a},l.createElement(Ace,Object.assign({},e)))},Jl=[];let BU="";function zU(){return BU}const Mce=e=>{var t,n;const{prefixCls:r,getContainer:a,direction:o}=e,i=pH(),s=l.useContext(st),c=zU()||s.getPrefixCls(),u=r||`${c}-modal`;let d=a;return d===!1&&(d=void 0),se.createElement(jU,Object.assign({},e,{rootPrefixCls:c,prefixCls:u,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:o??s.direction,locale:(n=(t=s.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:i,getContainer:d}))};function em(e){const t=zH(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:s,open:!0}),a;function o(){for(var u,d=arguments.length,f=new Array(d),p=0;pb==null?void 0:b.triggerCancel)){var h;(u=e.onCancel)===null||u===void 0||(h=u).call.apply(h,[e,()=>{}].concat(Pe(f.slice(1))))}for(let b=0;b{const d=t.getPrefixCls(void 0,zU()),f=t.getIconPrefixCls(),p=t.getTheme(),g=se.createElement(Mce,Object.assign({},u));Z$(se.createElement(Si,{prefixCls:d,iconPrefixCls:f,theme:p},t.holderRender?t.holderRender(g):g),n)})}function s(){for(var u=arguments.length,d=new Array(u),f=0;f{typeof e.afterClose=="function"&&e.afterClose(),o.apply(this,d)}}),r.visible&&delete r.visible,i(r)}function c(u){typeof u=="function"?r=u(r):r=Object.assign(Object.assign({},r),u),i(r)}return i(r),Jl.push(s),{destroy:s,update:c}}function HU(e){return Object.assign(Object.assign({},e),{type:"warning"})}function UU(e){return Object.assign(Object.assign({},e),{type:"info"})}function VU(e){return Object.assign(Object.assign({},e),{type:"success"})}function WU(e){return Object.assign(Object.assign({},e),{type:"error"})}function GU(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function Pce(e){let{rootPrefixCls:t}=e;BU=t}var Dce=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,{afterClose:r,config:a}=e,o=Dce(e,["afterClose","config"]);const[i,s]=l.useState(!0),[c,u]=l.useState(a),{direction:d,getPrefixCls:f}=l.useContext(st),p=f("modal"),g=f(),h=()=>{var v;r(),(v=c.afterClose)===null||v===void 0||v.call(c)},b=function(){var v;s(!1);for(var x=arguments.length,w=new Array(x),C=0;CT==null?void 0:T.triggerCancel)){var I;(v=c.onCancel)===null||v===void 0||(I=v).call.apply(I,[c,()=>{}].concat(Pe(w.slice(1))))}};l.useImperativeHandle(t,()=>({destroy:b,update:v=>{u(x=>Object.assign(Object.assign({},x),v))}}));const y=(n=c.okCancel)!==null&&n!==void 0?n:c.type==="confirm",[S]=Ki("Modal",Vo.Modal);return l.createElement(jU,Object.assign({prefixCls:p,rootPrefixCls:g},c,{close:b,open:i,afterClose:h,okText:c.okText||(y?S==null?void 0:S.okText:S==null?void 0:S.justOkText),direction:c.direction||d,cancelText:c.cancelText||(S==null?void 0:S.cancelText)},o))},Fce=l.forwardRef(Lce);let KM=0;const jce=l.memo(l.forwardRef((e,t)=>{const[n,r]=wie();return l.useImperativeHandle(t,()=>({patchElement:r}),[]),l.createElement(l.Fragment,null,n)}));function Bce(){const e=l.useRef(null),[t,n]=l.useState([]);l.useEffect(()=>{t.length&&(Pe(t).forEach(i=>{i()}),n([]))},[t]);const r=l.useCallback(o=>function(s){var c;KM+=1;const u=l.createRef();let d;const f=new Promise(y=>{d=y});let p=!1,g;const h=l.createElement(Fce,{key:`modal-${KM}`,config:o(s),ref:u,afterClose:()=>{g==null||g()},isSilent:()=>p,onConfirm:y=>{d(y)}});return g=(c=e.current)===null||c===void 0?void 0:c.patchElement(h),g&&Jl.push(g),{destroy:()=>{function y(){var S;(S=u.current)===null||S===void 0||S.destroy()}u.current?y():n(S=>[].concat(Pe(S),[y]))},update:y=>{function S(){var v;(v=u.current)===null||v===void 0||v.update(y)}u.current?S():n(v=>[].concat(Pe(v),[S]))},then:y=>(p=!0,f.then(y))}},[]);return[l.useMemo(()=>({info:r(UU),success:r(VU),error:r(WU),warning:r(HU),confirm:r(GU)}),[]),l.createElement(jce,{key:"modal-holder",ref:e})]}const zce=se.createContext({});function qU(e){return t=>l.createElement(Si,{theme:{token:{motion:!1,zIndexPopupBase:0}}},l.createElement(e,Object.assign({},t)))}const tm=(e,t,n,r)=>qU(o=>{const{prefixCls:i,style:s}=o,c=l.useRef(null),[u,d]=l.useState(0),[f,p]=l.useState(0),[g,h]=sn(!1,{value:o.open}),{getPrefixCls:b}=l.useContext(st),y=b(t||"select",i);l.useEffect(()=>{if(h(!0),typeof ResizeObserver<"u"){const x=new ResizeObserver(C=>{const E=C[0].target;d(E.offsetHeight+8),p(E.offsetWidth)}),w=setInterval(()=>{var C;const E=n?`.${n(y)}`:`.${y}-dropdown`,I=(C=c.current)===null||C===void 0?void 0:C.querySelector(E);I&&(clearInterval(w),x.observe(I))},10);return()=>{clearInterval(w),x.disconnect()}}},[]);let S=Object.assign(Object.assign({},o),{style:Object.assign(Object.assign({},s),{margin:0}),open:g,visible:g,getPopupContainer:()=>c.current});r&&(S=r(S));const v={paddingBottom:u,position:"relative",minWidth:f};return l.createElement("div",{ref:c,style:v},l.createElement(e,Object.assign({},S)))}),A0=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=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(e)||/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(e==null?void 0:e.substr(0,4))};var M0=function(t){var n=t.className,r=t.customizeIcon,a=t.customizeIconProps,o=t.children,i=t.onMouseDown,s=t.onClick,c=typeof r=="function"?r(a):r;return l.createElement("span",{className:n,onMouseDown:function(d){d.preventDefault(),i==null||i(d)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},c!==void 0?c:l.createElement("span",{className:ne(n.split(/\s+/).map(function(u){return"".concat(u,"-icon")}))},o))},Hce=function(t,n,r,a,o){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,s=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,u=se.useMemo(function(){if(mt(a)==="object")return a.clearIcon;if(o)return o},[a,o]),d=se.useMemo(function(){return!!(!i&&a&&(r.length||s)&&!(c==="combobox"&&s===""))},[a,i,r.length,s,c]);return{allowClear:d,clearIcon:se.createElement(M0,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:u},"×")}},KU=l.createContext(null);function YU(){return l.useContext(KU)}function Uce(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=l.useState(!1),n=re(t,2),r=n[0],a=n[1],o=l.useRef(null),i=function(){window.clearTimeout(o.current)};l.useEffect(function(){return i},[]);var s=function(u,d){i(),o.current=window.setTimeout(function(){a(u),d&&d()},e)};return[r,s,i]}function XU(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=l.useRef(null),n=l.useRef(null);l.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(a){(a||t.current===null)&&(t.current=a),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function Vce(e,t,n,r){var a=l.useRef(null);a.current={open:t,triggerOpen:n,customizedTrigger:r},l.useEffect(function(){function o(i){var s;if(!((s=a.current)!==null&&s!==void 0&&s.customizedTrigger)){var c=i.target;c.shadowRoot&&i.composed&&(c=i.composedPath()[0]||c),a.current.open&&e().filter(function(u){return u}).every(function(u){return!u.contains(c)&&u!==c})&&a.current.triggerOpen(!1)}}return window.addEventListener("mousedown",o),function(){return window.removeEventListener("mousedown",o)}},[])}function Wce(e){return![Le.ESC,Le.SHIFT,Le.BACKSPACE,Le.TAB,Le.WIN_KEY,Le.ALT,Le.META,Le.WIN_KEY_RIGHT,Le.CTRL,Le.SEMICOLON,Le.EQUALS,Le.CAPS_LOCK,Le.CONTEXT_MENU,Le.F1,Le.F2,Le.F3,Le.F4,Le.F5,Le.F6,Le.F7,Le.F8,Le.F9,Le.F10,Le.F11,Le.F12].includes(e)}var Gce=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],ou=void 0;function qce(e,t){var n=e.prefixCls,r=e.invalidate,a=e.item,o=e.renderItem,i=e.responsive,s=e.responsiveDisabled,c=e.registerSize,u=e.itemKey,d=e.className,f=e.style,p=e.children,g=e.display,h=e.order,b=e.component,y=b===void 0?"div":b,S=xt(e,Gce),v=i&&!g;function x(T){c(u,T)}l.useEffect(function(){return function(){x(null)}},[]);var w=o&&a!==ou?o(a):p,C;r||(C={opacity:v?0:1,height:v?0:ou,overflowY:v?"hidden":ou,order:i?h:ou,pointerEvents:v?"none":ou,position:v?"absolute":ou});var E={};v&&(E["aria-hidden"]=!0);var I=l.createElement(y,pe({className:ne(!r&&n,d),style:Z(Z({},C),f)},E,S,{ref:t}),w);return i&&(I=l.createElement(ca,{onResize:function(R){var _=R.offsetWidth;x(_)},disabled:s},I)),I}var xp=l.forwardRef(qce);xp.displayName="Item";function Kce(e){if(typeof MessageChannel>"u")Ut(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function Yce(){var e=l.useRef(null),t=function(r){e.current||(e.current=[],Kce(function(){Lr.unstable_batchedUpdates(function(){e.current.forEach(function(a){a()}),e.current=null})})),e.current.push(r)};return t}function Nf(e,t){var n=l.useState(t),r=re(n,2),a=r[0],o=r[1],i=Wt(function(s){e(function(){o(s)})});return[a,i]}var fb=se.createContext(null),Xce=["component"],Zce=["className"],Qce=["className"],Jce=function(t,n){var r=l.useContext(fb);if(!r){var a=t.component,o=a===void 0?"div":a,i=xt(t,Xce);return l.createElement(o,pe({},i,{ref:n}))}var s=r.className,c=xt(r,Zce),u=t.className,d=xt(t,Qce);return l.createElement(fb.Provider,{value:null},l.createElement(xp,pe({ref:n,className:ne(s,u)},c,d)))},ZU=l.forwardRef(Jce);ZU.displayName="RawItem";var eue=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],QU="responsive",JU="invalidate";function tue(e){return"+ ".concat(e.length," ...")}function nue(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,a=e.data,o=a===void 0?[]:a,i=e.renderItem,s=e.renderRawItem,c=e.itemKey,u=e.itemWidth,d=u===void 0?10:u,f=e.ssr,p=e.style,g=e.className,h=e.maxCount,b=e.renderRest,y=e.renderRawRest,S=e.suffix,v=e.component,x=v===void 0?"div":v,w=e.itemComponent,C=e.onVisibleChange,E=xt(e,eue),I=f==="full",T=Yce(),R=Nf(T,null),_=re(R,2),$=_[0],P=_[1],D=$||0,A=Nf(T,new Map),O=re(A,2),N=O[0],k=O[1],M=Nf(T,0),L=re(M,2),F=L[0],j=L[1],B=Nf(T,0),z=re(B,2),H=z[0],V=z[1],te=Nf(T,0),Y=re(te,2),J=Y[0],G=Y[1],U=l.useState(null),q=re(U,2),X=q[0],Q=q[1],ee=l.useState(null),oe=re(ee,2),le=oe[0],fe=oe[1],ce=l.useMemo(function(){return le===null&&I?Number.MAX_SAFE_INTEGER:le||0},[le,$]),Ie=l.useState(!1),be=re(Ie,2),he=be[0],ae=be[1],ie="".concat(r,"-item"),ue=Math.max(F,H),xe=h===QU,we=o.length&&xe,Me=h===JU,Ce=we||typeof h=="number"&&o.length>h,De=l.useMemo(function(){var Xe=o;return we?$===null&&I?Xe=o:Xe=o.slice(0,Math.min(o.length,D/d)):typeof h=="number"&&(Xe=o.slice(0,h)),Xe},[o,d,$,h,we]),ye=l.useMemo(function(){return we?o.slice(ce+1):o.slice(De.length)},[o,De,we,ce]),ve=l.useCallback(function(Xe,je){var Je;return typeof c=="function"?c(Xe):(Je=c&&(Xe==null?void 0:Xe[c]))!==null&&Je!==void 0?Je:je},[c]),$e=l.useCallback(i||function(Xe){return Xe},[i]);function Ee(Xe,je,Je){le===Xe&&(je===void 0||je===X)||(fe(Xe),Je||(ae(XeD){Ee(gt-1,Xe-ft-J+H);break}}S&&_e(0)+J>D&&Q(null)}},[D,N,H,J,ve,De]);var Ze=he&&!!ye.length,Oe={};X!==null&&we&&(Oe={position:"absolute",left:X,top:0});var Se={prefixCls:ie,responsive:we,component:w,invalidate:Me},Ae=s?function(Xe,je){var Je=ve(Xe,je);return l.createElement(fb.Provider,{key:Je,value:Z(Z({},Se),{},{order:je,item:Xe,itemKey:Je,registerSize:Ne,display:je<=ce})},s(Xe,je))}:function(Xe,je){var Je=ve(Xe,je);return l.createElement(xp,pe({},Se,{order:je,key:Je,item:Xe,renderItem:$e,itemKey:Je,registerSize:Ne,display:je<=ce}))},Fe,Ve={order:Ze?ce:Number.MAX_SAFE_INTEGER,className:"".concat(ie,"-rest"),registerSize:Re,display:Ze};if(y)y&&(Fe=l.createElement(fb.Provider,{value:Z(Z({},Se),Ve)},y(ye)));else{var He=b||tue;Fe=l.createElement(xp,pe({},Se,Ve),typeof He=="function"?He(ye):He)}var ze=l.createElement(x,pe({className:ne(!Me&&r,g),style:p,ref:t},E),De.map(Ae),Ce?Fe:null,S&&l.createElement(xp,pe({},Se,{responsive:xe,responsiveDisabled:!we,order:ce,className:"".concat(ie,"-suffix"),registerSize:me,display:!0,style:Oe}),S));return xe&&(ze=l.createElement(ca,{onResize:ge,disabled:!we},ze)),ze}var fi=l.forwardRef(nue);fi.displayName="Overflow";fi.Item=ZU;fi.RESPONSIVE=QU;fi.INVALIDATE=JU;var rue=function(t,n){var r,a=t.prefixCls,o=t.id,i=t.inputElement,s=t.disabled,c=t.tabIndex,u=t.autoFocus,d=t.autoComplete,f=t.editable,p=t.activeDescendantId,g=t.value,h=t.maxLength,b=t.onKeyDown,y=t.onMouseDown,S=t.onChange,v=t.onPaste,x=t.onCompositionStart,w=t.onCompositionEnd,C=t.open,E=t.attrs,I=i||l.createElement("input",null),T=I,R=T.ref,_=T.props,$=_.onKeyDown,P=_.onChange,D=_.onMouseDown,A=_.onCompositionStart,O=_.onCompositionEnd,N=_.style;return"maxLength"in I.props,I=l.cloneElement(I,Z(Z(Z({type:"search"},_),{},{id:o,ref:na(n,R),disabled:s,tabIndex:c,autoComplete:d||"off",autoFocus:u,className:ne("".concat(a,"-selection-search-input"),(r=I)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":C||!1,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":C?p:void 0},E),{},{value:f?g:"",maxLength:h,readOnly:!f,unselectable:f?null:"on",style:Z(Z({},N),{},{opacity:f?null:0}),onKeyDown:function(M){b(M),$&&$(M)},onMouseDown:function(M){y(M),D&&D(M)},onChange:function(M){S(M),P&&P(M)},onCompositionStart:function(M){x(M),A&&A(M)},onCompositionEnd:function(M){w(M),O&&O(M)},onPaste:v})),I},eV=l.forwardRef(rue);function tV(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var aue=typeof window<"u"&&window.document&&window.document.documentElement,oue=aue;function iue(e){return e!=null}function sue(e){return!e&&e!==0}function YM(e){return["string","number"].includes(mt(e))}function nV(e){var t=void 0;return e&&(YM(e.title)?t=e.title.toString():YM(e.label)&&(t=e.label.toString())),t}function lue(e,t){oue?l.useLayoutEffect(e,t):l.useEffect(e,t)}function cue(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var XM=function(t){t.preventDefault(),t.stopPropagation()},uue=function(t){var n=t.id,r=t.prefixCls,a=t.values,o=t.open,i=t.searchValue,s=t.autoClearSearchValue,c=t.inputRef,u=t.placeholder,d=t.disabled,f=t.mode,p=t.showSearch,g=t.autoFocus,h=t.autoComplete,b=t.activeDescendantId,y=t.tabIndex,S=t.removeIcon,v=t.maxTagCount,x=t.maxTagTextLength,w=t.maxTagPlaceholder,C=w===void 0?function(Q){return"+ ".concat(Q.length," ...")}:w,E=t.tagRender,I=t.onToggleOpen,T=t.onRemove,R=t.onInputChange,_=t.onInputPaste,$=t.onInputKeyDown,P=t.onInputMouseDown,D=t.onInputCompositionStart,A=t.onInputCompositionEnd,O=l.useRef(null),N=l.useState(0),k=re(N,2),M=k[0],L=k[1],F=l.useState(!1),j=re(F,2),B=j[0],z=j[1],H="".concat(r,"-selection"),V=o||f==="multiple"&&s===!1||f==="tags"?i:"",te=f==="tags"||f==="multiple"&&s===!1||p&&(o||B);lue(function(){L(O.current.scrollWidth)},[V]);var Y=function(ee,oe,le,fe,ce){return l.createElement("span",{title:nV(ee),className:ne("".concat(H,"-item"),W({},"".concat(H,"-item-disabled"),le))},l.createElement("span",{className:"".concat(H,"-item-content")},oe),fe&&l.createElement(M0,{className:"".concat(H,"-item-remove"),onMouseDown:XM,onClick:ce,customizeIcon:S},"×"))},J=function(ee,oe,le,fe,ce,Ie){var be=function(ae){XM(ae),I(!o)};return l.createElement("span",{onMouseDown:be},E({label:oe,value:ee,disabled:le,closable:fe,onClose:ce,isMaxTag:!!Ie}))},G=function(ee){var oe=ee.disabled,le=ee.label,fe=ee.value,ce=!d&&!oe,Ie=le;if(typeof x=="number"&&(typeof le=="string"||typeof le=="number")){var be=String(Ie);be.length>x&&(Ie="".concat(be.slice(0,x),"..."))}var he=function(ie){ie&&ie.stopPropagation(),T(ee)};return typeof E=="function"?J(fe,Ie,oe,ce,he):Y(ee,Ie,oe,ce,he)},U=function(ee){var oe=typeof C=="function"?C(ee):C;return typeof E=="function"?J(void 0,oe,!1,!1,void 0,!0):Y({title:oe},oe,!1)},q=l.createElement("div",{className:"".concat(H,"-search"),style:{width:M},onFocus:function(){z(!0)},onBlur:function(){z(!1)}},l.createElement(eV,{ref:c,open:o,prefixCls:r,id:n,inputElement:null,disabled:d,autoFocus:g,autoComplete:h,editable:te,activeDescendantId:b,value:V,onKeyDown:$,onMouseDown:P,onChange:R,onPaste:_,onCompositionStart:D,onCompositionEnd:A,tabIndex:y,attrs:Yn(t,!0)}),l.createElement("span",{ref:O,className:"".concat(H,"-search-mirror"),"aria-hidden":!0},V," ")),X=l.createElement(fi,{prefixCls:"".concat(H,"-overflow"),data:a,renderItem:G,renderRest:U,suffix:q,itemKey:cue,maxCount:v});return l.createElement(l.Fragment,null,X,!a.length&&!V&&l.createElement("span",{className:"".concat(H,"-placeholder")},u))},due=function(t){var n=t.inputElement,r=t.prefixCls,a=t.id,o=t.inputRef,i=t.disabled,s=t.autoFocus,c=t.autoComplete,u=t.activeDescendantId,d=t.mode,f=t.open,p=t.values,g=t.placeholder,h=t.tabIndex,b=t.showSearch,y=t.searchValue,S=t.activeValue,v=t.maxLength,x=t.onInputKeyDown,w=t.onInputMouseDown,C=t.onInputChange,E=t.onInputPaste,I=t.onInputCompositionStart,T=t.onInputCompositionEnd,R=t.title,_=l.useState(!1),$=re(_,2),P=$[0],D=$[1],A=d==="combobox",O=A||b,N=p[0],k=y||"";A&&S&&!P&&(k=S),l.useEffect(function(){A&&D(!1)},[A,S]);var M=d!=="combobox"&&!f&&!b?!1:!!k,L=R===void 0?nV(N):R,F=l.useMemo(function(){return N?null:l.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:M?{visibility:"hidden"}:void 0},g)},[N,M,g,r]);return l.createElement(l.Fragment,null,l.createElement("span",{className:"".concat(r,"-selection-search")},l.createElement(eV,{ref:o,prefixCls:r,id:a,open:f,inputElement:n,disabled:i,autoFocus:s,autoComplete:c,editable:O,activeDescendantId:u,value:k,onKeyDown:x,onMouseDown:w,onChange:function(B){D(!0),C(B)},onPaste:E,onCompositionStart:I,onCompositionEnd:T,tabIndex:h,attrs:Yn(t,!0),maxLength:A?v:void 0})),!A&&N?l.createElement("span",{className:"".concat(r,"-selection-item"),title:L,style:M?{visibility:"hidden"}:void 0},N.label):null,F)},fue=function(t,n){var r=l.useRef(null),a=l.useRef(!1),o=t.prefixCls,i=t.open,s=t.mode,c=t.showSearch,u=t.tokenWithEnter,d=t.disabled,f=t.autoClearSearchValue,p=t.onSearch,g=t.onSearchSubmit,h=t.onToggleOpen,b=t.onInputKeyDown,y=t.domRef;l.useImperativeHandle(n,function(){return{focus:function(M){r.current.focus(M)},blur:function(){r.current.blur()}}});var S=XU(0),v=re(S,2),x=v[0],w=v[1],C=function(M){var L=M.which;(L===Le.UP||L===Le.DOWN)&&M.preventDefault(),b&&b(M),L===Le.ENTER&&s==="tags"&&!a.current&&!i&&(g==null||g(M.target.value)),Wce(L)&&h(!0)},E=function(){w(!0)},I=l.useRef(null),T=function(M){p(M,!0,a.current)!==!1&&h(!0)},R=function(){a.current=!0},_=function(M){a.current=!1,s!=="combobox"&&T(M.target.value)},$=function(M){var L=M.target.value;if(u&&I.current&&/[\r\n]/.test(I.current)){var F=I.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");L=L.replace(F,I.current)}I.current=null,T(L)},P=function(M){var L=M.clipboardData,F=L==null?void 0:L.getData("text");I.current=F||""},D=function(M){var L=M.target;if(L!==r.current){var F=document.body.style.msTouchAction!==void 0;F?setTimeout(function(){r.current.focus()}):r.current.focus()}},A=function(M){var L=x();M.target!==r.current&&!L&&!(s==="combobox"&&d)&&M.preventDefault(),(s!=="combobox"&&(!c||!L)||!i)&&(i&&f!==!1&&p("",!0,!1),h())},O={inputRef:r,onInputKeyDown:C,onInputMouseDown:E,onInputChange:$,onInputPaste:P,onInputCompositionStart:R,onInputCompositionEnd:_},N=s==="multiple"||s==="tags"?l.createElement(uue,pe({},t,O)):l.createElement(due,pe({},t,O));return l.createElement("div",{ref:y,className:"".concat(o,"-selector"),onClick:D,onMouseDown:A},N)},pue=l.forwardRef(fue);function gue(e){var t=e.prefixCls,n=e.align,r=e.arrow,a=e.arrowPos,o=r||{},i=o.className,s=o.content,c=a.x,u=c===void 0?0:c,d=a.y,f=d===void 0?0:d,p=l.useRef();if(!n||!n.points)return null;var g={position:"absolute"};if(n.autoArrow!==!1){var h=n.points[0],b=n.points[1],y=h[0],S=h[1],v=b[0],x=b[1];y===v||!["t","b"].includes(y)?g.top=f:y==="t"?g.top=0:g.bottom=0,S===x||!["l","r"].includes(S)?g.left=u:S==="l"?g.left=0:g.right=0}return l.createElement("div",{ref:p,className:ne("".concat(t,"-arrow"),i),style:g},s)}function mue(e){var t=e.prefixCls,n=e.open,r=e.zIndex,a=e.mask,o=e.motion;return a?l.createElement(ea,pe({},o,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(i){var s=i.className;return l.createElement("div",{style:{zIndex:r},className:ne("".concat(t,"-mask"),s)})}):null}var hue=l.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),vue=l.forwardRef(function(e,t){var n=e.popup,r=e.className,a=e.prefixCls,o=e.style,i=e.target,s=e.onVisibleChanged,c=e.open,u=e.keepDom,d=e.fresh,f=e.onClick,p=e.mask,g=e.arrow,h=e.arrowPos,b=e.align,y=e.motion,S=e.maskMotion,v=e.forceRender,x=e.getPopupContainer,w=e.autoDestroy,C=e.portal,E=e.zIndex,I=e.onMouseEnter,T=e.onMouseLeave,R=e.onPointerEnter,_=e.ready,$=e.offsetX,P=e.offsetY,D=e.offsetR,A=e.offsetB,O=e.onAlign,N=e.onPrepare,k=e.stretch,M=e.targetWidth,L=e.targetHeight,F=typeof n=="function"?n():n,j=c||u,B=(x==null?void 0:x.length)>0,z=l.useState(!x||!B),H=re(z,2),V=H[0],te=H[1];if(Xt(function(){!V&&B&&i&&te(!0)},[V,B,i]),!V)return null;var Y="auto",J={left:"-1000vw",top:"-1000vh",right:Y,bottom:Y};if(_||!c){var G,U=b.points,q=b.dynamicInset||((G=b._experimental)===null||G===void 0?void 0:G.dynamicInset),X=q&&U[0][1]==="r",Q=q&&U[0][0]==="b";X?(J.right=D,J.left=Y):(J.left=$,J.right=Y),Q?(J.bottom=A,J.top=Y):(J.top=P,J.bottom=Y)}var ee={};return k&&(k.includes("height")&&L?ee.height=L:k.includes("minHeight")&&L&&(ee.minHeight=L),k.includes("width")&&M?ee.width=M:k.includes("minWidth")&&M&&(ee.minWidth=M)),c||(ee.pointerEvents="none"),l.createElement(C,{open:v||j,getContainer:x&&function(){return x(i)},autoDestroy:w},l.createElement(mue,{prefixCls:a,open:c,zIndex:E,mask:p,motion:S}),l.createElement(ca,{onResize:O,disabled:!c},function(oe){return l.createElement(ea,pe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:v,leavedClassName:"".concat(a,"-hidden")},y,{onAppearPrepare:N,onEnterPrepare:N,visible:c,onVisibleChanged:function(fe){var ce;y==null||(ce=y.onVisibleChanged)===null||ce===void 0||ce.call(y,fe),s(fe)}}),function(le,fe){var ce=le.className,Ie=le.style,be=ne(a,ce,r);return l.createElement("div",{ref:na(oe,t,fe),className:be,style:Z(Z(Z(Z({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},J),ee),Ie),{},{boxSizing:"border-box",zIndex:E},o),onMouseEnter:I,onMouseLeave:T,onPointerEnter:R,onClick:f},g&&l.createElement(gue,{prefixCls:a,arrow:g,arrowPos:h,align:b}),l.createElement(hue,{cache:!c&&!d},F))})}))}),bue=l.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,a=mi(n),o=l.useCallback(function(s){rg(t,r?r(s):s)},[r]),i=Os(o,n.ref);return a?l.cloneElement(n,{ref:i}):n}),ZM=l.createContext(null);function QM(e){return e?Array.isArray(e)?e:[e]:[]}function yue(e,t,n,r){return l.useMemo(function(){var a=QM(n??t),o=QM(r??t),i=new Set(a),s=new Set(o);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[i,s]},[e,t,n,r])}function Sue(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function xue(e,t,n,r){for(var a=n.points,o=Object.keys(e),i=0;i1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function kf(e){return mg(parseFloat(e),0)}function e4(e,t){var n=Z({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var a=nm(r).getComputedStyle(r),o=a.overflow,i=a.overflowClipMargin,s=a.borderTopWidth,c=a.borderBottomWidth,u=a.borderLeftWidth,d=a.borderRightWidth,f=r.getBoundingClientRect(),p=r.offsetHeight,g=r.clientHeight,h=r.offsetWidth,b=r.clientWidth,y=kf(s),S=kf(c),v=kf(u),x=kf(d),w=mg(Math.round(f.width/h*1e3)/1e3),C=mg(Math.round(f.height/p*1e3)/1e3),E=(h-b-v-x)*w,I=(p-g-y-S)*C,T=y*C,R=S*C,_=v*w,$=x*w,P=0,D=0;if(o==="clip"){var A=kf(i);P=A*w,D=A*C}var O=f.x+_-P,N=f.y+T-D,k=O+f.width+2*P-_-$-E,M=N+f.height+2*D-T-R-I;n.left=Math.max(n.left,O),n.top=Math.max(n.top,N),n.right=Math.min(n.right,k),n.bottom=Math.min(n.bottom,M)}}),n}function t4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function n4(e,t){var n=t||[],r=re(n,2),a=r[0],o=r[1];return[t4(e.width,a),t4(e.height,o)]}function r4(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function iu(e,t){var n=t[0],r=t[1],a,o;return n==="t"?o=e.y:n==="b"?o=e.y+e.height:o=e.y+e.height/2,r==="l"?a=e.x:r==="r"?a=e.x+e.width:a=e.x+e.width/2,{x:a,y:o}}function Ds(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,a){return a===t?n[r]||"c":r}).join("")}function wue(e,t,n,r,a,o,i){var s=l.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[r]||{}}),c=re(s,2),u=c[0],d=c[1],f=l.useRef(0),p=l.useMemo(function(){return t?mR(t):[]},[t]),g=l.useRef({}),h=function(){g.current={}};e||h();var b=Wt(function(){if(t&&n&&e){let mn=function(Ra,oa){var ja=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ue,Ci=H.x+Ra,Xc=H.y+oa,At=Ci+Q,Yt=Xc+X,Vn=Math.max(Ci,ja.left),pr=Math.max(Xc,ja.top),Wn=Math.min(At,ja.right),Ms=Math.min(Yt,ja.bottom);return Math.max(0,(Wn-Vn)*(Ms-pr))},fa=function(){vt=H.y+Je,rt=vt+X,St=H.x+je,Et=St+Q};var yn=mn,fr=fa,v,x,w,C,E=t,I=E.ownerDocument,T=nm(E),R=T.getComputedStyle(E),_=R.width,$=R.height,P=R.position,D=E.style.left,A=E.style.top,O=E.style.right,N=E.style.bottom,k=E.style.overflow,M=Z(Z({},a[r]),o),L=I.createElement("div");(v=E.parentElement)===null||v===void 0||v.appendChild(L),L.style.left="".concat(E.offsetLeft,"px"),L.style.top="".concat(E.offsetTop,"px"),L.style.position=P,L.style.height="".concat(E.offsetHeight,"px"),L.style.width="".concat(E.offsetWidth,"px"),E.style.left="0",E.style.top="0",E.style.right="auto",E.style.bottom="auto",E.style.overflow="hidden";var F;if(Array.isArray(n))F={x:n[0],y:n[1],width:0,height:0};else{var j,B,z=n.getBoundingClientRect();z.x=(j=z.x)!==null&&j!==void 0?j:z.left,z.y=(B=z.y)!==null&&B!==void 0?B:z.top,F={x:z.x,y:z.y,width:z.width,height:z.height}}var H=E.getBoundingClientRect();H.x=(x=H.x)!==null&&x!==void 0?x:H.left,H.y=(w=H.y)!==null&&w!==void 0?w:H.top;var V=I.documentElement,te=V.clientWidth,Y=V.clientHeight,J=V.scrollWidth,G=V.scrollHeight,U=V.scrollTop,q=V.scrollLeft,X=H.height,Q=H.width,ee=F.height,oe=F.width,le={left:0,top:0,right:te,bottom:Y},fe={left:-q,top:-U,right:J-q,bottom:G-U},ce=M.htmlRegion,Ie="visible",be="visibleFirst";ce!=="scroll"&&ce!==be&&(ce=Ie);var he=ce===be,ae=e4(fe,p),ie=e4(le,p),ue=ce===Ie?ie:ae,xe=he?ie:ue;E.style.left="auto",E.style.top="auto",E.style.right="0",E.style.bottom="0";var we=E.getBoundingClientRect();E.style.left=D,E.style.top=A,E.style.right=O,E.style.bottom=N,E.style.overflow=k,(C=E.parentElement)===null||C===void 0||C.removeChild(L);var Me=mg(Math.round(Q/parseFloat(_)*1e3)/1e3),Ce=mg(Math.round(X/parseFloat($)*1e3)/1e3);if(Me===0||Ce===0||ng(n)&&!Vd(n))return;var De=M.offset,ye=M.targetOffset,ve=n4(H,De),$e=re(ve,2),Ee=$e[0],ge=$e[1],Ne=n4(F,ye),Re=re(Ne,2),me=Re[0],_e=Re[1];F.x-=me,F.y-=_e;var Ze=M.points||[],Oe=re(Ze,2),Se=Oe[0],Ae=Oe[1],Fe=r4(Ae),Ve=r4(Se),He=iu(F,Fe),ze=iu(H,Ve),Xe=Z({},M),je=He.x-ze.x+Ee,Je=He.y-ze.y+ge,gt=mn(je,Je),ft=mn(je,Je,ie),qe=iu(F,["t","l"]),We=iu(H,["t","l"]),Qe=iu(F,["b","r"]),ut=iu(H,["b","r"]),Rt=M.overflow||{},$t=Rt.adjustX,ht=Rt.adjustY,lt=Rt.shiftX,ot=Rt.shiftY,et=function(oa){return typeof oa=="boolean"?oa:oa>=0},vt,rt,St,Et;fa();var tt=et(ht),at=Ve[0]===Fe[0];if(tt&&Ve[0]==="t"&&(rt>xe.bottom||g.current.bt)){var Ke=Je;at?Ke-=X-ee:Ke=qe.y-ut.y-ge;var Ge=mn(je,Ke),bt=mn(je,Ke,ie);Ge>gt||Ge===gt&&(!he||bt>=ft)?(g.current.bt=!0,Je=Ke,ge=-ge,Xe.points=[Ds(Ve,0),Ds(Fe,0)]):g.current.bt=!1}if(tt&&Ve[0]==="b"&&(vtgt||Pt===gt&&(!he||en>=ft)?(g.current.tb=!0,Je=Tt,ge=-ge,Xe.points=[Ds(Ve,0),Ds(Fe,0)]):g.current.tb=!1}var rn=et($t),Vt=Ve[1]===Fe[1];if(rn&&Ve[1]==="l"&&(Et>xe.right||g.current.rl)){var tn=je;Vt?tn-=Q-oe:tn=qe.x-ut.x-Ee;var It=mn(tn,Je),_t=mn(tn,Je,ie);It>gt||It===gt&&(!he||_t>=ft)?(g.current.rl=!0,je=tn,Ee=-Ee,Xe.points=[Ds(Ve,1),Ds(Fe,1)]):g.current.rl=!1}if(rn&&Ve[1]==="r"&&(Stgt||Tn===gt&&(!he||Qn>=ft)?(g.current.lr=!0,je=kt,Ee=-Ee,Xe.points=[Ds(Ve,1),Ds(Fe,1)]):g.current.lr=!1}fa();var cr=lt===!0?0:lt;typeof cr=="number"&&(Stie.right&&(je-=Et-ie.right-Ee,F.x>ie.right-cr&&(je+=F.x-ie.right+cr)));var Jn=ot===!0?0:ot;typeof Jn=="number"&&(vtie.bottom&&(Je-=rt-ie.bottom-ge,F.y>ie.bottom-Jn&&(Je+=F.y-ie.bottom+Jn)));var Hr=H.x+je,Mr=Hr+Q,er=H.y+Je,Kt=er+X,Ft=F.x,Gt=Ft+oe,jt=F.y,Bt=jt+ee,wt=Math.max(Hr,Ft),Ct=Math.min(Mr,Gt),cn=(wt+Ct)/2,Rn=cn-Hr,ur=Math.max(er,jt),dr=Math.min(Kt,Bt),yr=(ur+dr)/2,Ht=yr-er;i==null||i(t,Xe);var Lt=we.right-H.x-(je+H.width),pt=we.bottom-H.y-(Je+H.height);Me===1&&(je=Math.round(je),Lt=Math.round(Lt)),Ce===1&&(Je=Math.round(Je),pt=Math.round(pt));var Dt={ready:!0,offsetX:je/Me,offsetY:Je/Ce,offsetR:Lt/Me,offsetB:pt/Ce,arrowX:Rn/Me,arrowY:Ht/Ce,scaleX:Me,scaleY:Ce,align:Xe};d(Dt)}}),y=function(){f.current+=1;var x=f.current;Promise.resolve().then(function(){f.current===x&&b()})},S=function(){d(function(x){return Z(Z({},x),{},{ready:!1})})};return Xt(S,[r]),Xt(function(){e||S()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,y]}function Cue(e,t,n,r,a){Xt(function(){if(e&&t&&n){let p=function(){r(),a()};var f=p,o=t,i=n,s=mR(o),c=mR(i),u=nm(i),d=new Set([u].concat(Pe(s),Pe(c)));return d.forEach(function(g){g.addEventListener("scroll",p,{passive:!0})}),u.addEventListener("resize",p,{passive:!0}),r(),function(){d.forEach(function(g){g.removeEventListener("scroll",p),u.removeEventListener("resize",p)})}}},[e,t,n])}function Eue(e,t,n,r,a,o,i,s){var c=l.useRef(e);c.current=e,l.useEffect(function(){if(t&&r&&(!a||o)){var u=function(g){var h;c.current&&!i(((h=g.composedPath)===null||h===void 0||(h=h.call(g))===null||h===void 0?void 0:h[0])||g.target)&&s(!1)},d=nm(r);d.addEventListener("mousedown",u,!0),d.addEventListener("contextmenu",u,!0);var f=cb(n);return f&&(f.addEventListener("mousedown",u,!0),f.addEventListener("contextmenu",u,!0)),function(){d.removeEventListener("mousedown",u,!0),d.removeEventListener("contextmenu",u,!0),f&&(f.removeEventListener("mousedown",u,!0),f.removeEventListener("contextmenu",u,!0))}}},[t,n,r,a,o])}var Iue=["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 Tue(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Zg,t=l.forwardRef(function(n,r){var a=n.prefixCls,o=a===void 0?"rc-trigger-popup":a,i=n.children,s=n.action,c=s===void 0?"hover":s,u=n.showAction,d=n.hideAction,f=n.popupVisible,p=n.defaultPopupVisible,g=n.onPopupVisibleChange,h=n.afterPopupVisibleChange,b=n.mouseEnterDelay,y=n.mouseLeaveDelay,S=y===void 0?.1:y,v=n.focusDelay,x=n.blurDelay,w=n.mask,C=n.maskClosable,E=C===void 0?!0:C,I=n.getPopupContainer,T=n.forceRender,R=n.autoDestroy,_=n.destroyPopupOnHide,$=n.popup,P=n.popupClassName,D=n.popupStyle,A=n.popupPlacement,O=n.builtinPlacements,N=O===void 0?{}:O,k=n.popupAlign,M=n.zIndex,L=n.stretch,F=n.getPopupClassNameFromAlign,j=n.fresh,B=n.alignPoint,z=n.onPopupClick,H=n.onPopupAlign,V=n.arrow,te=n.popupMotion,Y=n.maskMotion,J=n.popupTransitionName,G=n.popupAnimation,U=n.maskTransitionName,q=n.maskAnimation,X=n.className,Q=n.getTriggerDOMNode,ee=xt(n,Iue),oe=R||_||!1,le=l.useState(!1),fe=re(le,2),ce=fe[0],Ie=fe[1];Xt(function(){Ie(A0())},[]);var be=l.useRef({}),he=l.useContext(ZM),ae=l.useMemo(function(){return{registerSubPopup:function(Yt,Vn){be.current[Yt]=Vn,he==null||he.registerSubPopup(Yt,Vn)}}},[he]),ie=hU(),ue=l.useState(null),xe=re(ue,2),we=xe[0],Me=xe[1],Ce=l.useRef(null),De=Wt(function(At){Ce.current=At,ng(At)&&we!==At&&Me(At),he==null||he.registerSubPopup(ie,At)}),ye=l.useState(null),ve=re(ye,2),$e=ve[0],Ee=ve[1],ge=l.useRef(null),Ne=Wt(function(At){ng(At)&&$e!==At&&(Ee(At),ge.current=At)}),Re=l.Children.only(i),me=(Re==null?void 0:Re.props)||{},_e={},Ze=Wt(function(At){var Yt,Vn,pr=$e;return(pr==null?void 0:pr.contains(At))||((Yt=cb(pr))===null||Yt===void 0?void 0:Yt.host)===At||At===pr||(we==null?void 0:we.contains(At))||((Vn=cb(we))===null||Vn===void 0?void 0:Vn.host)===At||At===we||Object.values(be.current).some(function(Wn){return(Wn==null?void 0:Wn.contains(At))||At===Wn})}),Oe=JM(o,te,G,J),Se=JM(o,Y,q,U),Ae=l.useState(p||!1),Fe=re(Ae,2),Ve=Fe[0],He=Fe[1],ze=f??Ve,Xe=Wt(function(At){f===void 0&&He(At)});Xt(function(){He(f||!1)},[f]);var je=l.useRef(ze);je.current=ze;var Je=l.useRef([]);Je.current=[];var gt=Wt(function(At){var Yt;Xe(At),((Yt=Je.current[Je.current.length-1])!==null&&Yt!==void 0?Yt:ze)!==At&&(Je.current.push(At),g==null||g(At))}),ft=l.useRef(),qe=function(){clearTimeout(ft.current)},We=function(Yt){var Vn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;qe(),Vn===0?gt(Yt):ft.current=setTimeout(function(){gt(Yt)},Vn*1e3)};l.useEffect(function(){return qe},[]);var Qe=l.useState(!1),ut=re(Qe,2),Rt=ut[0],$t=ut[1];Xt(function(At){(!At||ze)&&$t(!0)},[ze]);var ht=l.useState(null),lt=re(ht,2),ot=lt[0],et=lt[1],vt=l.useState(null),rt=re(vt,2),St=rt[0],Et=rt[1],tt=function(Yt){Et([Yt.clientX,Yt.clientY])},at=wue(ze,we,B&&St!==null?St:$e,A,N,k,H),Ke=re(at,11),Ge=Ke[0],bt=Ke[1],Tt=Ke[2],Pt=Ke[3],en=Ke[4],rn=Ke[5],Vt=Ke[6],tn=Ke[7],It=Ke[8],_t=Ke[9],kt=Ke[10],Tn=yue(ce,c,u,d),Qn=re(Tn,2),cr=Qn[0],Jn=Qn[1],Hr=cr.has("click"),Mr=Jn.has("click")||Jn.has("contextMenu"),er=Wt(function(){Rt||kt()}),Kt=function(){je.current&&B&&Mr&&We(!1)};Cue(ze,$e,we,er,Kt),Xt(function(){er()},[St,A]),Xt(function(){ze&&!(N!=null&&N[A])&&er()},[JSON.stringify(k)]);var Ft=l.useMemo(function(){var At=xue(N,o,_t,B);return ne(At,F==null?void 0:F(_t))},[_t,F,N,o,B]);l.useImperativeHandle(r,function(){return{nativeElement:ge.current,popupElement:Ce.current,forceAlign:er}});var Gt=l.useState(0),jt=re(Gt,2),Bt=jt[0],wt=jt[1],Ct=l.useState(0),cn=re(Ct,2),Rn=cn[0],ur=cn[1],dr=function(){if(L&&$e){var Yt=$e.getBoundingClientRect();wt(Yt.width),ur(Yt.height)}},yr=function(){dr(),er()},Ht=function(Yt){$t(!1),kt(),h==null||h(Yt)},Lt=function(){return new Promise(function(Yt){dr(),et(function(){return Yt})})};Xt(function(){ot&&(kt(),ot(),et(null))},[ot]);function pt(At,Yt,Vn,pr){_e[At]=function(Wn){var Ms;pr==null||pr(Wn),We(Yt,Vn);for(var Zc=arguments.length,vf=new Array(Zc>1?Zc-1:0),Qc=1;Qc1?Vn-1:0),Wn=1;Wn1?Vn-1:0),Wn=1;Wn1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,a=[],o=rV(n,!1),i=o.label,s=o.value,c=o.options,u=o.groupLabel;function d(f,p){Array.isArray(f)&&f.forEach(function(g){if(p||!(c in g)){var h=g[s];a.push({key:a4(g,a.length),groupOption:p,data:g,label:g[i],value:h})}else{var b=g[u];b===void 0&&r&&(b=g.label),a.push({key:a4(g,a.length),group:!0,data:g,label:b}),d(g[c],!0)}})}return d(e,!1),a}function vR(e){var t=Z({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return vn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var kue=function(t,n,r){if(!n||!n.length)return null;var a=!1,o=function s(c,u){var d=lH(u),f=d[0],p=d.slice(1);if(!f)return[c];var g=c.split(f);return a=a||g.length>1,g.reduce(function(h,b){return[].concat(Pe(h),Pe(s(b,p)))},[]).filter(Boolean)},i=o(t,n);return a?typeof r<"u"?i.slice(0,r):i:null},lO=l.createContext(null);function Aue(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return l.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(a){var o=a.label,i=a.value;return["number","string"].includes(mt(o))?o:i}).join(", ")),n.length>r?", ...":null)}var Mue=["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"],Pue=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],bR=function(t){return t==="tags"||t==="multiple"},aV=l.forwardRef(function(e,t){var n,r=e.id,a=e.prefixCls,o=e.className,i=e.showSearch,s=e.tagRender,c=e.direction,u=e.omitDomProps,d=e.displayValues,f=e.onDisplayValuesChange,p=e.emptyOptions,g=e.notFoundContent,h=g===void 0?"Not Found":g,b=e.onClear,y=e.mode,S=e.disabled,v=e.loading,x=e.getInputElement,w=e.getRawInputElement,C=e.open,E=e.defaultOpen,I=e.onDropdownVisibleChange,T=e.activeValue,R=e.onActiveValueChange,_=e.activeDescendantId,$=e.searchValue,P=e.autoClearSearchValue,D=e.onSearch,A=e.onSearchSplit,O=e.tokenSeparators,N=e.allowClear,k=e.suffixIcon,M=e.clearIcon,L=e.OptionList,F=e.animation,j=e.transitionName,B=e.dropdownStyle,z=e.dropdownClassName,H=e.dropdownMatchSelectWidth,V=e.dropdownRender,te=e.dropdownAlign,Y=e.placement,J=e.builtinPlacements,G=e.getPopupContainer,U=e.showAction,q=U===void 0?[]:U,X=e.onFocus,Q=e.onBlur,ee=e.onKeyUp,oe=e.onKeyDown,le=e.onMouseDown,fe=xt(e,Mue),ce=bR(y),Ie=(i!==void 0?i:ce)||y==="combobox",be=Z({},fe);Pue.forEach(function(Kt){delete be[Kt]}),u==null||u.forEach(function(Kt){delete be[Kt]});var he=l.useState(!1),ae=re(he,2),ie=ae[0],ue=ae[1];l.useEffect(function(){ue(A0())},[]);var xe=l.useRef(null),we=l.useRef(null),Me=l.useRef(null),Ce=l.useRef(null),De=l.useRef(null),ye=l.useRef(!1),ve=Uce(),$e=re(ve,3),Ee=$e[0],ge=$e[1],Ne=$e[2];l.useImperativeHandle(t,function(){var Kt,Ft;return{focus:(Kt=Ce.current)===null||Kt===void 0?void 0:Kt.focus,blur:(Ft=Ce.current)===null||Ft===void 0?void 0:Ft.blur,scrollTo:function(jt){var Bt;return(Bt=De.current)===null||Bt===void 0?void 0:Bt.scrollTo(jt)},nativeElement:xe.current||we.current}});var Re=l.useMemo(function(){var Kt;if(y!=="combobox")return $;var Ft=(Kt=d[0])===null||Kt===void 0?void 0:Kt.value;return typeof Ft=="string"||typeof Ft=="number"?String(Ft):""},[$,y,d]),me=y==="combobox"&&typeof x=="function"&&x()||null,_e=typeof w=="function"&&w(),Ze=Os(we,_e==null||(n=_e.props)===null||n===void 0?void 0:n.ref),Oe=l.useState(!1),Se=re(Oe,2),Ae=Se[0],Fe=Se[1];Xt(function(){Fe(!0)},[]);var Ve=sn(!1,{defaultValue:E,value:C}),He=re(Ve,2),ze=He[0],Xe=He[1],je=Ae?ze:!1,Je=!h&&p;(S||Je&&je&&y==="combobox")&&(je=!1);var gt=Je?!1:je,ft=l.useCallback(function(Kt){var Ft=Kt!==void 0?Kt:!je;S||(Xe(Ft),je!==Ft&&(I==null||I(Ft)))},[S,je,Xe,I]),qe=l.useMemo(function(){return(O||[]).some(function(Kt){return[` `,`\r -`].includes(Kt)})},[O]),We=l.useContext(sO)||{},Qe=We.maxCount,ct=We.rawValues,Rt=function(Ft,Gt,jt){if(!(ce&&mR(Qe)&&(ct==null?void 0:ct.size)>=Qe)){var Bt=!0,wt=Ft;R==null||R(null);var Ct=kue(Ft,O,mR(Qe)?Qe-ct.size:void 0),cn=jt?null:Ct;return y!=="combobox"&&cn&&(wt="",A==null||A(cn),ft(!1),Bt=!1),D&&xe!==wt&&D(wt,{source:Gt?"typing":"effect"}),Bt}},$t=function(Ft){!Ft||!Ft.trim()||D(Ft,{source:"submit"})};l.useEffect(function(){!je&&!ce&&y!=="combobox"&&Rt("",!1,!1)},[je]),l.useEffect(function(){ze&&S&&Ze(!1),S&&!me.current&&he(!1)},[S]);var vt=XU(),lt=re(vt,2),ot=lt[0],et=lt[1],bt=l.useRef(!1),rt=function(Ft){var Gt=ot(),jt=Ft.key,Bt=jt==="Enter";if(Bt&&(y!=="combobox"&&Ft.preventDefault(),je||ft(!0)),et(!!xe),jt==="Backspace"&&!Gt&&ce&&!xe&&d.length){for(var wt=De(d),Ct=null,cn=wt.length-1;cn>=0;cn-=1){var Rn=wt[cn];if(!Rn.disabled){wt.splice(cn,1),Ct=Rn;break}}Ct&&f(wt,{type:"remove",values:[Ct]})}for(var ur=arguments.length,dr=new Array(ur>1?ur-1:0),yr=1;yr1?Gt-1:0),Bt=1;Bt1?Ct-1:0),Rn=1;Rn"u"?"undefined":ht(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const iV=function(e,t,n,r){var a=l.useRef(!1),o=l.useRef(null);function i(){clearTimeout(o.current),a.current=!0,o.current=setTimeout(function(){a.current=!1},50)}var s=l.useRef({top:e,bottom:t,left:n,right:r});return s.current.top=e,s.current.bottom=t,s.current.left=n,s.current.right=r,function(c,u){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=c?u<0&&s.current.left||u>0&&s.current.right:u<0&&s.current.top||u>0&&s.current.bottom;return d&&f?(clearTimeout(o.current),a.current=!1):(!f||a.current)&&i(),!a.current&&f}};function Bue(e,t,n,r,a,o,i){var s=l.useRef(0),c=l.useRef(null),u=l.useRef(null),d=l.useRef(!1),f=iV(t,n,r,a);function p(v,x){Ut.cancel(c.current),s.current+=x,u.current=x,!f(!1,x)&&(o4||v.preventDefault(),c.current=Ut(function(){var C=d.current?10:1;i(s.current*C),s.current=0}))}function g(v,x){i(x,!0),o4||v.preventDefault()}var h=l.useRef(null),b=l.useRef(null);function y(v){if(e){Ut.cancel(b.current),b.current=Ut(function(){h.current=null},2);var x=v.deltaX,C=v.deltaY,w=v.shiftKey,E=x,I=C;(h.current==="sx"||!h.current&&w&&C&&!x)&&(E=C,I=0,h.current="sx");var T=Math.abs(E),R=Math.abs(I);h.current===null&&(h.current=o&&T>R?"x":"y"),h.current==="y"?p(v,I):g(v,E)}}function S(v){e&&(d.current=v.detail===u.current)}return[y,S]}function zue(e,t,n,r){var a=l.useMemo(function(){return[new Map,[]]},[e,n.id,r]),o=re(a,2),i=o[0],s=o[1],c=function(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d,p=i.get(d),g=i.get(f);if(p===void 0||g===void 0)for(var h=e.length,b=s.length;b0&&arguments[0]!==void 0?arguments[0]:!1;d();var h=function(){s.current.forEach(function(y,S){if(y&&y.offsetParent){var v=mp(y),x=v.offsetHeight;c.current.get(S)!==x&&c.current.set(S,v.offsetHeight)}}),i(function(y){return y+1})};g?h():u.current=Ut(h)}function p(g,h){var b=e(g);s.current.get(b),h?(s.current.set(b,h),f()):s.current.delete(b)}return l.useEffect(function(){return d},[]),[p,f,c.current,o]}var i4=14/15;function Vue(e,t,n){var r=l.useRef(!1),a=l.useRef(0),o=l.useRef(0),i=l.useRef(null),s=l.useRef(null),c,u=function(g){if(r.current){var h=Math.ceil(g.touches[0].pageX),b=Math.ceil(g.touches[0].pageY),y=a.current-h,S=o.current-b,v=Math.abs(y)>Math.abs(S);v?a.current=h:o.current=b,n(v,v?y:S)&&g.preventDefault(),clearInterval(s.current),s.current=setInterval(function(){v?y*=i4:S*=i4;var x=Math.floor(v?y:S);(!n(v,x,!0)||Math.abs(x)<=.1)&&clearInterval(s.current)},16)}},d=function(){r.current=!1,c()},f=function(g){c(),g.touches.length===1&&!r.current&&(r.current=!0,a.current=Math.ceil(g.touches[0].pageX),o.current=Math.ceil(g.touches[0].pageY),i.current=g.target,i.current.addEventListener("touchmove",u,{passive:!1}),i.current.addEventListener("touchend",d,{passive:!0}))};c=function(){i.current&&(i.current.removeEventListener("touchmove",u),i.current.removeEventListener("touchend",d))},Xt(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var p;(p=t.current)===null||p===void 0||p.removeEventListener("touchstart",f),c(),clearInterval(s.current)}},[e])}var Wue=10;function Gue(e,t,n,r,a,o,i,s){var c=l.useRef(),u=l.useState(null),d=re(u,2),f=d[0],p=d[1];return Xt(function(){if(f&&f.times=0;A-=1){var O=a(t[A]),N=n.get(O);if(N===void 0){v=!0;break}if(D-=N,D<=0)break}switch(w){case"top":C=I-y;break;case"bottom":C=T-S+y;break;default:{var k=e.current.scrollTop,M=k+S;IM&&(x="bottom")}}C!==null&&i(C),C!==f.lastTop&&(v=!0)}v&&p(Z(Z({},f),{},{times:f.times+1,targetAlign:x,lastTop:C}))}},[f,e.current]),function(g){if(g==null){s();return}if(Ut.cancel(c.current),typeof g=="number")i(g);else if(g&&ht(g)==="object"){var h,b=g.align;"index"in g?h=g.index:h=t.findIndex(function(v){return a(v)===g.key});var y=g.offset,S=y===void 0?0:y;p({times:0,index:h,offset:S,originAlign:b})}}}function s4(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]}var l4=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,a=e.scrollOffset,o=e.scrollRange,i=e.onStartMove,s=e.onStopMove,c=e.onScroll,u=e.horizontal,d=e.spinSize,f=e.containerSize,p=e.style,g=e.thumbStyle,h=l.useState(!1),b=re(h,2),y=b[0],S=b[1],v=l.useState(null),x=re(v,2),C=x[0],w=x[1],E=l.useState(null),I=re(E,2),T=I[0],R=I[1],_=!r,$=l.useRef(),P=l.useRef(),D=l.useState(!1),A=re(D,2),O=A[0],N=A[1],k=l.useRef(),M=function(){clearTimeout(k.current),N(!0),k.current=setTimeout(function(){N(!1)},3e3)},L=o-f||0,F=f-d||0,j=l.useMemo(function(){if(a===0||L===0)return 0;var U=a/L;return U*F},[a,L,F]),B=function(q){q.stopPropagation(),q.preventDefault()},z=l.useRef({top:j,dragging:y,pageY:C,startTop:T});z.current={top:j,dragging:y,pageY:C,startTop:T};var H=function(q){S(!0),w(s4(q,u)),R(z.current.top),i(),q.stopPropagation(),q.preventDefault()};l.useEffect(function(){var U=function(ee){ee.preventDefault()},q=$.current,X=P.current;return q.addEventListener("touchstart",U,{passive:!1}),X.addEventListener("touchstart",H,{passive:!1}),function(){q.removeEventListener("touchstart",U),X.removeEventListener("touchstart",H)}},[]);var V=l.useRef();V.current=L;var te=l.useRef();te.current=F,l.useEffect(function(){if(y){var U,q=function(ee){var oe=z.current,le=oe.dragging,fe=oe.pageY,ce=oe.startTop;Ut.cancel(U);var Te=$.current.getBoundingClientRect(),Se=f/(u?Te.width:Te.height);if(le){var ve=(s4(ee,u)-fe)*Se,ae=ce;!_&&u?ae-=ve:ae+=ve;var ie=V.current,ue=te.current,ye=ue?ae/ue:0,Ee=Math.ceil(ye*ie);Ee=Math.max(Ee,0),Ee=Math.min(Ee,ie),U=Ut(function(){c(Ee,u)})}},X=function(){S(!1),s()};return window.addEventListener("mousemove",q,{passive:!0}),window.addEventListener("touchmove",q,{passive:!0}),window.addEventListener("mouseup",X,{passive:!0}),window.addEventListener("touchend",X,{passive:!0}),function(){window.removeEventListener("mousemove",q),window.removeEventListener("touchmove",q),window.removeEventListener("mouseup",X),window.removeEventListener("touchend",X),Ut.cancel(U)}}},[y]),l.useEffect(function(){return M(),function(){clearTimeout(k.current)}},[a]),l.useImperativeHandle(t,function(){return{delayHidden:M}});var Y="".concat(n,"-scrollbar"),J={position:"absolute",visibility:O?null:"hidden"},G={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return u?(J.height=8,J.left=0,J.right=0,J.bottom=0,G.height="100%",G.width=d,_?G.left=j:G.right=j):(J.width=8,J.top=0,J.bottom=0,_?J.right=0:J.left=0,G.width="100%",G.height=d,G.top=j),l.createElement("div",{ref:$,className:ne(Y,W(W(W({},"".concat(Y,"-horizontal"),u),"".concat(Y,"-vertical"),!u),"".concat(Y,"-visible"),O)),style:Z(Z({},J),p),onMouseDown:B,onMouseMove:M},l.createElement("div",{ref:P,className:ne("".concat(Y,"-thumb"),W({},"".concat(Y,"-thumb-moving"),y)),style:Z(Z({},G),g),onMouseDown:H}))}),que=20;function c4(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,que),Math.floor(n)}var Kue=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],Yue=[],Xue={overflowY:"auto",overflowAnchor:"none"};function Zue(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,a=e.className,o=e.height,i=e.itemHeight,s=e.fullHeight,c=s===void 0?!0:s,u=e.style,d=e.data,f=e.children,p=e.itemKey,g=e.virtual,h=e.direction,b=e.scrollWidth,y=e.component,S=y===void 0?"div":y,v=e.onScroll,x=e.onVirtualScroll,C=e.onVisibleChange,w=e.innerProps,E=e.extraRender,I=e.styles,T=xt(e,Kue),R=l.useCallback(function(tt){return typeof p=="function"?p(tt):tt==null?void 0:tt[p]},[p]),_=Uue(R),$=re(_,4),P=$[0],D=$[1],A=$[2],O=$[3],N=!!(g!==!1&&o&&i),k=l.useMemo(function(){return Object.values(A.maps).reduce(function(tt,at){return tt+at},0)},[A.id,A.maps]),M=N&&d&&(Math.max(i*d.length,k)>o||!!b),L=h==="rtl",F=ne(r,W({},"".concat(r,"-rtl"),L),a),j=d||Yue,B=l.useRef(),z=l.useRef(),H=l.useRef(),V=l.useState(0),te=re(V,2),Y=te[0],J=te[1],G=l.useState(0),U=re(G,2),q=U[0],X=U[1],Q=l.useState(!1),ee=re(Q,2),oe=ee[0],le=ee[1],fe=function(){le(!0)},ce=function(){le(!1)},Te={getKey:R};function Se(tt){J(function(at){var Ye;typeof tt=="function"?Ye=tt(at):Ye=tt;var Ge=Oe(Ye);return B.current.scrollTop=Ge,Ge})}var ve=l.useRef({start:0,end:j.length}),ae=l.useRef(),ie=jue(j,R),ue=re(ie,1),ye=ue[0];ae.current=ye;var Ee=l.useMemo(function(){if(!N)return{scrollHeight:void 0,start:0,end:j.length-1,offset:void 0};if(!M){var tt;return{scrollHeight:((tt=z.current)===null||tt===void 0?void 0:tt.offsetHeight)||0,start:0,end:j.length-1,offset:void 0}}for(var at=0,Ye,Ge,yt,Tt=j.length,Pt=0;Pt=Y&&Ye===void 0&&(Ye=Pt,Ge=at),tn>Y+o&&yt===void 0&&(yt=Pt),at=tn}return Ye===void 0&&(Ye=0,Ge=0,yt=Math.ceil(o/i)),yt===void 0&&(yt=j.length-1),yt=Math.min(yt+1,j.length-1),{scrollHeight:at,start:Ye,end:yt,offset:Ge}},[M,N,Y,j,O,o]),Me=Ee.scrollHeight,Ie=Ee.start,Ce=Ee.end,me=Ee.offset;ve.current.start=Ie,ve.current.end=Ce;var we=l.useState({width:0,height:o}),_e=re(we,2),Ne=_e[0],he=_e[1],ke=function(at){he({width:at.offsetWidth,height:at.offsetHeight})},xe=l.useRef(),ge=l.useRef(),Pe=l.useMemo(function(){return c4(Ne.width,b)},[Ne.width,b]),Ve=l.useMemo(function(){return c4(Ne.height,Me)},[Ne.height,Me]),Ae=Me-o,be=l.useRef(Ae);be.current=Ae;function Oe(tt){var at=tt;return Number.isNaN(be.current)||(at=Math.min(at,be.current)),at=Math.max(at,0),at}var Fe=Y<=0,Ke=Y>=Ae,He=q<=0,ze=q>=b,Ze=iV(Fe,Ke,He,ze),je=function(){return{x:L?-q:q,y:Y}},Je=l.useRef(je()),mt=Wt(function(tt){if(x){var at=Z(Z({},je()),tt);(Je.current.x!==at.x||Je.current.y!==at.y)&&(x(at),Je.current=at)}});function ft(tt,at){var Ye=tt;at?(Lr.flushSync(function(){X(Ye)}),mt()):Se(Ye)}function qe(tt){var at=tt.currentTarget.scrollTop;at!==Y&&Se(at),v==null||v(tt),mt()}var We=function(at){var Ye=at,Ge=b?b-Ne.width:0;return Ye=Math.max(Ye,0),Ye=Math.min(Ye,Ge),Ye},Qe=Wt(function(tt,at){at?(Lr.flushSync(function(){X(function(Ye){var Ge=Ye+(L?-tt:tt);return We(Ge)})}),mt()):Se(function(Ye){var Ge=Ye+tt;return Ge})}),ct=Bue(N,Fe,Ke,He,ze,!!b,Qe),Rt=re(ct,2),$t=Rt[0],vt=Rt[1];Vue(N,B,function(tt,at,Ye){return Ze(tt,at,Ye)?!1:($t({preventDefault:function(){},deltaX:tt?at:0,deltaY:tt?0:at}),!0)}),Xt(function(){function tt(Ye){N&&Ye.preventDefault()}var at=B.current;return at.addEventListener("wheel",$t,{passive:!1}),at.addEventListener("DOMMouseScroll",vt,{passive:!0}),at.addEventListener("MozMousePixelScroll",tt,{passive:!1}),function(){at.removeEventListener("wheel",$t),at.removeEventListener("DOMMouseScroll",vt),at.removeEventListener("MozMousePixelScroll",tt)}},[N]),Xt(function(){if(b){var tt=We(q);X(tt),mt({x:tt})}},[Ne.width,b]);var lt=function(){var at,Ye;(at=xe.current)===null||at===void 0||at.delayHidden(),(Ye=ge.current)===null||Ye===void 0||Ye.delayHidden()},ot=Gue(B,j,A,i,R,function(){return D(!0)},Se,lt);l.useImperativeHandle(t,function(){return{nativeElement:H.current,getScrollInfo:je,scrollTo:function(at){function Ye(Ge){return Ge&&ht(Ge)==="object"&&("left"in Ge||"top"in Ge)}Ye(at)?(at.left!==void 0&&X(We(at.left)),ot(at.top)):ot(at)}}}),Xt(function(){if(C){var tt=j.slice(Ie,Ce+1);C(tt,j)}},[Ie,Ce,j]);var et=zue(j,R,A,i),bt=E==null?void 0:E({start:Ie,end:Ce,virtual:M,offsetX:q,offsetY:me,rtl:L,getSize:et}),rt=Lue(j,Ie,Ce,b,q,P,f,Te),St=null;o&&(St=Z(W({},c?"height":"maxHeight",o),Xue),N&&(St.overflowY="hidden",b&&(St.overflowX="hidden"),oe&&(St.pointerEvents="none")));var Et={};return L&&(Et.dir="rtl"),l.createElement("div",pe({ref:H,style:Z(Z({},u),{},{position:"relative"}),className:F},Et,T),l.createElement(sa,{onResize:ke},l.createElement(S,{className:"".concat(r,"-holder"),style:St,ref:B,onScroll:qe,onMouseEnter:lt},l.createElement(oV,{prefixCls:r,height:Me,offsetX:q,offsetY:me,scrollWidth:b,onInnerResize:D,ref:z,innerProps:w,rtl:L,extra:bt},rt))),M&&Me>o&&l.createElement(l4,{ref:xe,prefixCls:r,scrollOffset:Y,scrollRange:Me,rtl:L,onScroll:ft,onStartMove:fe,onStopMove:ce,spinSize:Ve,containerSize:Ne.height,style:I==null?void 0:I.verticalScrollBar,thumbStyle:I==null?void 0:I.verticalScrollBarThumb}),M&&b>Ne.width&&l.createElement(l4,{ref:ge,prefixCls:r,scrollOffset:q,scrollRange:b,rtl:L,onScroll:ft,onStartMove:fe,onStopMove:ce,spinSize:Pe,containerSize:Ne.width,horizontal:!0,style:I==null?void 0:I.horizontalScrollBar,thumbStyle:I==null?void 0:I.horizontalScrollBarThumb}))}var M0=l.forwardRef(Zue);M0.displayName="List";function Que(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Jue=["disabled","title","children","style","className"];function u4(e){return typeof e=="string"||typeof e=="number"}var ede=function(t,n){var r=YU(),a=r.prefixCls,o=r.id,i=r.open,s=r.multiple,c=r.mode,u=r.searchValue,d=r.toggleOpen,f=r.notFoundContent,p=r.onPopupScroll,g=l.useContext(sO),h=g.maxCount,b=g.flattenOptions,y=g.onActiveValue,S=g.defaultActiveFirstOption,v=g.onSelect,x=g.menuItemSelectedIcon,C=g.rawValues,w=g.fieldNames,E=g.virtual,I=g.direction,T=g.listHeight,R=g.listItemHeight,_=g.optionRender,$="".concat(a,"-item"),P=_l(function(){return b},[i,b],function(U,q){return q[0]&&U[1]!==q[1]}),D=l.useRef(null),A=l.useMemo(function(){return s&&mR(h)&&(C==null?void 0:C.size)>=h},[s,h,C==null?void 0:C.size]),O=function(q){q.preventDefault()},N=function(q){var X;(X=D.current)===null||X===void 0||X.scrollTo(typeof q=="number"?{index:q}:q)},k=function(q){for(var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Q=P.length,ee=0;ee1&&arguments[1]!==void 0?arguments[1]:!1;j(q);var Q={source:X?"keyboard":"mouse"},ee=P[q];if(!ee){y(null,-1,Q);return}y(ee.value,q,Q)};l.useEffect(function(){B(S!==!1?k(0):-1)},[P.length,u]);var z=l.useCallback(function(U){return C.has(U)&&c!=="combobox"},[c,De(C).toString(),C.size]);l.useEffect(function(){var U=setTimeout(function(){if(!s&&i&&C.size===1){var X=Array.from(C)[0],Q=P.findIndex(function(ee){var oe=ee.data;return oe.value===X});Q!==-1&&(B(Q),N(Q))}});if(i){var q;(q=D.current)===null||q===void 0||q.scrollTo(void 0)}return function(){return clearTimeout(U)}},[i,u]);var H=function(q){q!==void 0&&v(q,{selected:!C.has(q)}),s||d(!1)};if(l.useImperativeHandle(n,function(){return{onKeyDown:function(q){var X=q.which,Q=q.ctrlKey;switch(X){case Le.N:case Le.P:case Le.UP:case Le.DOWN:{var ee=0;if(X===Le.UP?ee=-1:X===Le.DOWN?ee=1:Que()&&Q&&(X===Le.N?ee=1:X===Le.P&&(ee=-1)),ee!==0){var oe=k(F+ee,ee);N(oe),B(oe,!0)}break}case Le.ENTER:{var le,fe=P[F];fe&&!(fe!=null&&(le=fe.data)!==null&&le!==void 0&&le.disabled)&&!A?H(fe.value):H(void 0),i&&q.preventDefault();break}case Le.ESC:d(!1),i&&q.stopPropagation()}},onKeyUp:function(){},scrollTo:function(q){N(q)}}}),P.length===0)return l.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat($,"-empty"),onMouseDown:O},f);var V=Object.keys(w).map(function(U){return w[U]}),te=function(q){return q.label};function Y(U,q){var X=U.group;return{role:X?"presentation":"option",id:"".concat(o,"_list_").concat(q)}}var J=function(q){var X=P[q];if(!X)return null;var Q=X.data||{},ee=Q.value,oe=X.group,le=Yn(Q,!0),fe=te(X);return X?l.createElement("div",pe({"aria-label":typeof fe=="string"&&!oe?fe:null},le,{key:q},Y(X,q),{"aria-selected":z(ee)}),ee):null},G={role:"listbox",id:"".concat(o,"_list")};return l.createElement(l.Fragment,null,E&&l.createElement("div",pe({},G,{style:{height:0,width:0,overflow:"hidden"}}),J(F-1),J(F),J(F+1)),l.createElement(M0,{itemKey:"key",ref:D,data:P,height:T,itemHeight:R,fullHeight:!1,onMouseDown:O,onScroll:p,virtual:E,direction:I,innerProps:E?null:G},function(U,q){var X=U.group,Q=U.groupOption,ee=U.data,oe=U.label,le=U.value,fe=ee.key;if(X){var ce,Te=(ce=ee.title)!==null&&ce!==void 0?ce:u4(oe)?oe.toString():void 0;return l.createElement("div",{className:ne($,"".concat($,"-group"),ee.className),title:Te},oe!==void 0?oe:fe)}var Se=ee.disabled,ve=ee.title;ee.children;var ae=ee.style,ie=ee.className,ue=xt(ee,Jue),ye=On(ue,V),Ee=z(le),Me=Se||!Ee&&A,Ie="".concat($,"-option"),Ce=ne($,Ie,ie,W(W(W(W({},"".concat(Ie,"-grouped"),Q),"".concat(Ie,"-active"),F===q&&!Me),"".concat(Ie,"-disabled"),Me),"".concat(Ie,"-selected"),Ee)),me=te(U),we=!x||typeof x=="function"||Ee,_e=typeof me=="number"?me:me||le,Ne=u4(_e)?_e.toString():void 0;return ve!==void 0&&(Ne=ve),l.createElement("div",pe({},Yn(ye),E?{}:Y(U,q),{"aria-selected":Ee,className:Ce,title:Ne,onMouseMove:function(){F===q||Me||B(q)},onClick:function(){Me||H(le)},style:ae}),l.createElement("div",{className:"".concat(Ie,"-content")},typeof _=="function"?_(U,{index:q}):_e),l.isValidElement(x)||Ee,we&&l.createElement(A0,{className:"".concat($,"-option-state"),customizeIcon:x,customizeIconProps:{value:le,disabled:Me,isSelected:Ee}},Ee?"✓":null))}))},tde=l.forwardRef(ede);const nde=function(e,t){var n=l.useRef({values:new Map,options:new Map}),r=l.useMemo(function(){var o=n.current,i=o.values,s=o.options,c=e.map(function(f){if(f.label===void 0){var p;return Z(Z({},f),{},{label:(p=i.get(f.value))===null||p===void 0?void 0:p.label})}return f}),u=new Map,d=new Map;return c.forEach(function(f){u.set(f.value,f),d.set(f.value,t.get(f.value)||s.get(f.value))}),n.current.values=u,n.current.options=d,c},[e,t]),a=l.useCallback(function(o){return t.get(o)||n.current.options.get(o)},[t]);return[r,a]};function JS(e,t){return tV(e).join("").toUpperCase().includes(t)}const rde=function(e,t,n,r,a){return l.useMemo(function(){if(!n||r===!1)return e;var o=t.options,i=t.label,s=t.value,c=[],u=typeof r=="function",d=n.toUpperCase(),f=u?r:function(g,h){return a?JS(h[a],d):h[o]?JS(h[i!=="children"?i:"label"],d):JS(h[s],d)},p=u?function(g){return hR(g)}:function(g){return g};return e.forEach(function(g){if(g[o]){var h=f(n,p(g));if(h)c.push(g);else{var b=g[o].filter(function(y){return f(n,p(y))});b.length&&c.push(Z(Z({},g),{},W({},o,b)))}return}f(n,p(g))&&c.push(g)}),c},[e,r,a,n,t])};var d4=0,ade=Xr();function ode(){var e;return ade?(e=d4,d4+=1):e="TEST_OR_SSR",e}function sV(e){var t=l.useState(),n=re(t,2),r=n[0],a=n[1];return l.useEffect(function(){a("rc_select_".concat(ode()))},[]),e||r}var ide=["children","value"],sde=["children"];function lde(e){var t=e,n=t.key,r=t.props,a=r.children,o=r.value,i=xt(r,ide);return Z({key:n,value:o!==void 0?o:n,children:a},i)}function lV(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return vr(e).map(function(n,r){if(!l.isValidElement(n)||!n.type)return null;var a=n,o=a.type.isSelectOptGroup,i=a.key,s=a.props,c=s.children,u=xt(s,sde);return t||!o?lde(n):Z(Z({key:"__RC_SELECT_GRP__".concat(i===null?r:i,"__"),label:i},u),{},{options:lV(c)})}).filter(function(n){return n})}var cde=function(t,n,r,a,o){return l.useMemo(function(){var i=t,s=!t;s&&(i=lV(n));var c=new Map,u=new Map,d=function(g,h,b){b&&typeof b=="string"&&g.set(h[b],h)},f=function p(g){for(var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,b=0;b0?qe(ct.options):ct.options}):ct})},Ne=l.useMemo(function(){return v?_e(we):we},[we,v,U]),he=l.useMemo(function(){return Nue(Ne,{fieldNames:Y,childrenAsData:V})},[Ne,Y,V]),ke=function(We){var Qe=le(We);if(Se(Qe),F&&(Qe.length!==ue.length||Qe.some(function($t,vt){var lt;return((lt=ue[vt])===null||lt===void 0?void 0:lt.value)!==($t==null?void 0:$t.value)}))){var ct=L?Qe:Qe.map(function($t){return $t.value}),Rt=Qe.map(function($t){return hR(ye($t.value))});F(H?ct:ct[0],H?Rt:Rt[0])}},xe=l.useState(null),ge=re(xe,2),Pe=ge[0],Ve=ge[1],Ae=l.useState(0),be=re(Ae,2),Oe=be[0],Fe=be[1],Ke=T!==void 0?T:r!=="combobox",He=l.useCallback(function(qe,We){var Qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ct=Qe.source,Rt=ct===void 0?"keyboard":ct;Fe(We),i&&r==="combobox"&&qe!==null&&Rt==="keyboard"&&Ve(String(qe))},[i,r]),ze=function(We,Qe,ct){var Rt=function(){var tt,at=ye(We);return[L?{label:at==null?void 0:at[Y.label],value:We,key:(tt=at==null?void 0:at.key)!==null&&tt!==void 0?tt:We}:We,hR(at)]};if(Qe&&g){var $t=Rt(),vt=re($t,2),lt=vt[0],ot=vt[1];g(lt,ot)}else if(!Qe&&h&&ct!=="clear"){var et=Rt(),bt=re(et,2),rt=bt[0],St=bt[1];h(rt,St)}},Ze=f4(function(qe,We){var Qe,ct=H?We.selected:!0;ct?Qe=H?[].concat(De(ue),[qe]):[qe]:Qe=ue.filter(function(Rt){return Rt.value!==qe}),ke(Qe),ze(qe,ct),r==="combobox"?Ve(""):(!vR||p)&&(q(""),Ve(""))}),je=function(We,Qe){ke(We);var ct=Qe.type,Rt=Qe.values;(ct==="remove"||ct==="clear")&&Rt.forEach(function($t){ze($t.value,!1,ct)})},Je=function(We,Qe){if(q(We),Ve(null),Qe.source==="submit"){var ct=(We||"").trim();if(ct){var Rt=Array.from(new Set([].concat(De(Me),[ct])));ke(Rt),ze(ct,!0),q("")}return}Qe.source!=="blur"&&(r==="combobox"&&ke(We),d==null||d(We))},mt=function(We){var Qe=We;r!=="tags"&&(Qe=We.map(function(Rt){var $t=ee.get(Rt);return $t==null?void 0:$t.value}).filter(function(Rt){return Rt!==void 0}));var ct=Array.from(new Set([].concat(De(Me),De(Qe))));ke(ct),ct.forEach(function(Rt){ze(Rt,!0)})},ft=l.useMemo(function(){var qe=_!==!1&&y!==!1;return Z(Z({},X),{},{flattenOptions:he,onActiveValue:He,defaultActiveFirstOption:Ke,onSelect:Ze,menuItemSelectedIcon:R,rawValues:Me,fieldNames:Y,virtual:qe,direction:$,listHeight:D,listItemHeight:O,childrenAsData:V,maxCount:j,optionRender:E})},[j,X,he,He,Ke,Ze,R,Me,Y,_,y,$,D,O,V,E]);return l.createElement(sO.Provider,{value:ft},l.createElement(aV,pe({},B,{id:z,prefixCls:o,ref:t,omitDomProps:dde,mode:r,displayValues:Ee,onDisplayValuesChange:je,direction:$,searchValue:U,onSearch:Je,autoClearSearchValue:p,onSearchSplit:mt,dropdownMatchSelectWidth:y,OptionList:tde,emptyOptions:!he.length,activeValue:Pe,activeDescendantId:"".concat(z,"_list_").concat(Oe)})))}),uO=pde;uO.Option=cO;uO.OptGroup=lO;function Is(e,t,n){return ne({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const Nl=(e,t)=>t||e,gde=()=>{const[,e]=ta(),n=new an(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return l.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},l.createElement("title",null,"empty image"),l.createElement("g",{fill:"none",fillRule:"evenodd"},l.createElement("g",{transform:"translate(24 31.67)"},l.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),l.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"}),l.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)"}),l.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"}),l.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"})),l.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"}),l.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},l.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),l.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},mde=()=>{const[,e]=ta(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:a}=e,{borderColor:o,shadowColor:i,contentColor:s}=l.useMemo(()=>({borderColor:new an(t).onBackground(a).toHexShortString(),shadowColor:new an(n).onBackground(a).toHexShortString(),contentColor:new an(r).onBackground(a).toHexShortString()}),[t,n,r,a]);return l.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},l.createElement("title",null,"Simple Empty"),l.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},l.createElement("ellipse",{fill:i,cx:"32",cy:"33",rx:"32",ry:"7"}),l.createElement("g",{fillRule:"nonzero",stroke:o},l.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"}),l.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:s}))))},hde=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:a,fontSize:o,lineHeight:i}=e;return{[t]:{marginInline:r,fontSize:o,lineHeight:i,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:a,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},vde=on("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,a=zt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[hde(a)]});var bde=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{className:t,rootClassName:n,prefixCls:r,image:a=cV,description:o,children:i,imageStyle:s,style:c}=e,u=bde(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:d,direction:f,empty:p}=l.useContext(st),g=d("empty",r),[h,b,y]=vde(g),[S]=qi("Empty"),v=typeof o<"u"?o:S==null?void 0:S.description,x=typeof v=="string"?v:"empty";let C=null;return typeof a=="string"?C=l.createElement("img",{alt:x,src:a}):C=a,h(l.createElement("div",Object.assign({className:ne(b,y,g,p==null?void 0:p.className,{[`${g}-normal`]:a===uV,[`${g}-rtl`]:f==="rtl"},t,n),style:Object.assign(Object.assign({},p==null?void 0:p.style),c)},u),l.createElement("div",{className:`${g}-image`,style:s},C),v&&l.createElement("div",{className:`${g}-description`},v),i&&l.createElement("div",{className:`${g}-footer`},i)))};us.PRESENTED_IMAGE_DEFAULT=cV;us.PRESENTED_IMAGE_SIMPLE=uV;const P0=e=>{const{componentName:t}=e,{getPrefixCls:n}=l.useContext(st),r=n("empty");switch(t){case"Table":case"List":return se.createElement(us,{image:us.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return se.createElement(us,{image:us.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return se.createElement(us,null)}},Dc=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,a;const{variant:o,[e]:i}=l.useContext(st),s=l.useContext(_U),c=i==null?void 0:i.variant;let u;typeof t<"u"?u=t:n===!1?u="borderless":u=(a=(r=s??c)!==null&&r!==void 0?r:o)!==null&&a!==void 0?a:"outlined";const d=rae.includes(u);return[u,d]},yde=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function dV(e,t){return e||yde(t)}const p4=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:a}=e;return{position:"relative",display:"block",minHeight:t,padding:a,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},Sde=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,a=`&${t}-slide-up-enter${t}-slide-up-enter-active`,o=`&${t}-slide-up-appear${t}-slide-up-appear-active`,i=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},nn(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[` +`].includes(Kt)})},[O]),We=l.useContext(lO)||{},Qe=We.maxCount,ut=We.rawValues,Rt=function(Ft,Gt,jt){if(!(ce&&hR(Qe)&&(ut==null?void 0:ut.size)>=Qe)){var Bt=!0,wt=Ft;R==null||R(null);var Ct=kue(Ft,O,hR(Qe)?Qe-ut.size:void 0),cn=jt?null:Ct;return y!=="combobox"&&cn&&(wt="",A==null||A(cn),ft(!1),Bt=!1),D&&Re!==wt&&D(wt,{source:Gt?"typing":"effect"}),Bt}},$t=function(Ft){!Ft||!Ft.trim()||D(Ft,{source:"submit"})};l.useEffect(function(){!je&&!ce&&y!=="combobox"&&Rt("",!1,!1)},[je]),l.useEffect(function(){ze&&S&&Xe(!1),S&&!ye.current&&ge(!1)},[S]);var ht=XU(),lt=re(ht,2),ot=lt[0],et=lt[1],vt=l.useRef(!1),rt=function(Ft){var Gt=ot(),jt=Ft.key,Bt=jt==="Enter";if(Bt&&(y!=="combobox"&&Ft.preventDefault(),je||ft(!0)),et(!!Re),jt==="Backspace"&&!Gt&&ce&&!Re&&d.length){for(var wt=Pe(d),Ct=null,cn=wt.length-1;cn>=0;cn-=1){var Rn=wt[cn];if(!Rn.disabled){wt.splice(cn,1),Ct=Rn;break}}Ct&&f(wt,{type:"remove",values:[Ct]})}for(var ur=arguments.length,dr=new Array(ur>1?ur-1:0),yr=1;yr1?Gt-1:0),Bt=1;Bt1?Ct-1:0),Rn=1;Rn"u"?"undefined":mt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const iV=function(e,t,n,r){var a=l.useRef(!1),o=l.useRef(null);function i(){clearTimeout(o.current),a.current=!0,o.current=setTimeout(function(){a.current=!1},50)}var s=l.useRef({top:e,bottom:t,left:n,right:r});return s.current.top=e,s.current.bottom=t,s.current.left=n,s.current.right=r,function(c,u){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=c?u<0&&s.current.left||u>0&&s.current.right:u<0&&s.current.top||u>0&&s.current.bottom;return d&&f?(clearTimeout(o.current),a.current=!1):(!f||a.current)&&i(),!a.current&&f}};function Bue(e,t,n,r,a,o,i){var s=l.useRef(0),c=l.useRef(null),u=l.useRef(null),d=l.useRef(!1),f=iV(t,n,r,a);function p(v,x){Ut.cancel(c.current),s.current+=x,u.current=x,!f(!1,x)&&(o4||v.preventDefault(),c.current=Ut(function(){var w=d.current?10:1;i(s.current*w),s.current=0}))}function g(v,x){i(x,!0),o4||v.preventDefault()}var h=l.useRef(null),b=l.useRef(null);function y(v){if(e){Ut.cancel(b.current),b.current=Ut(function(){h.current=null},2);var x=v.deltaX,w=v.deltaY,C=v.shiftKey,E=x,I=w;(h.current==="sx"||!h.current&&C&&w&&!x)&&(E=w,I=0,h.current="sx");var T=Math.abs(E),R=Math.abs(I);h.current===null&&(h.current=o&&T>R?"x":"y"),h.current==="y"?p(v,I):g(v,E)}}function S(v){e&&(d.current=v.detail===u.current)}return[y,S]}function zue(e,t,n,r){var a=l.useMemo(function(){return[new Map,[]]},[e,n.id,r]),o=re(a,2),i=o[0],s=o[1],c=function(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d,p=i.get(d),g=i.get(f);if(p===void 0||g===void 0)for(var h=e.length,b=s.length;b0&&arguments[0]!==void 0?arguments[0]:!1;d();var h=function(){s.current.forEach(function(y,S){if(y&&y.offsetParent){var v=vp(y),x=v.offsetHeight;c.current.get(S)!==x&&c.current.set(S,v.offsetHeight)}}),i(function(y){return y+1})};g?h():u.current=Ut(h)}function p(g,h){var b=e(g);s.current.get(b),h?(s.current.set(b,h),f()):s.current.delete(b)}return l.useEffect(function(){return d},[]),[p,f,c.current,o]}var i4=14/15;function Vue(e,t,n){var r=l.useRef(!1),a=l.useRef(0),o=l.useRef(0),i=l.useRef(null),s=l.useRef(null),c,u=function(g){if(r.current){var h=Math.ceil(g.touches[0].pageX),b=Math.ceil(g.touches[0].pageY),y=a.current-h,S=o.current-b,v=Math.abs(y)>Math.abs(S);v?a.current=h:o.current=b,n(v,v?y:S)&&g.preventDefault(),clearInterval(s.current),s.current=setInterval(function(){v?y*=i4:S*=i4;var x=Math.floor(v?y:S);(!n(v,x,!0)||Math.abs(x)<=.1)&&clearInterval(s.current)},16)}},d=function(){r.current=!1,c()},f=function(g){c(),g.touches.length===1&&!r.current&&(r.current=!0,a.current=Math.ceil(g.touches[0].pageX),o.current=Math.ceil(g.touches[0].pageY),i.current=g.target,i.current.addEventListener("touchmove",u,{passive:!1}),i.current.addEventListener("touchend",d,{passive:!0}))};c=function(){i.current&&(i.current.removeEventListener("touchmove",u),i.current.removeEventListener("touchend",d))},Xt(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var p;(p=t.current)===null||p===void 0||p.removeEventListener("touchstart",f),c(),clearInterval(s.current)}},[e])}var Wue=10;function Gue(e,t,n,r,a,o,i,s){var c=l.useRef(),u=l.useState(null),d=re(u,2),f=d[0],p=d[1];return Xt(function(){if(f&&f.times=0;A-=1){var O=a(t[A]),N=n.get(O);if(N===void 0){v=!0;break}if(D-=N,D<=0)break}switch(C){case"top":w=I-y;break;case"bottom":w=T-S+y;break;default:{var k=e.current.scrollTop,M=k+S;IM&&(x="bottom")}}w!==null&&i(w),w!==f.lastTop&&(v=!0)}v&&p(Z(Z({},f),{},{times:f.times+1,targetAlign:x,lastTop:w}))}},[f,e.current]),function(g){if(g==null){s();return}if(Ut.cancel(c.current),typeof g=="number")i(g);else if(g&&mt(g)==="object"){var h,b=g.align;"index"in g?h=g.index:h=t.findIndex(function(v){return a(v)===g.key});var y=g.offset,S=y===void 0?0:y;p({times:0,index:h,offset:S,originAlign:b})}}}function s4(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]}var l4=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,a=e.scrollOffset,o=e.scrollRange,i=e.onStartMove,s=e.onStopMove,c=e.onScroll,u=e.horizontal,d=e.spinSize,f=e.containerSize,p=e.style,g=e.thumbStyle,h=l.useState(!1),b=re(h,2),y=b[0],S=b[1],v=l.useState(null),x=re(v,2),w=x[0],C=x[1],E=l.useState(null),I=re(E,2),T=I[0],R=I[1],_=!r,$=l.useRef(),P=l.useRef(),D=l.useState(!1),A=re(D,2),O=A[0],N=A[1],k=l.useRef(),M=function(){clearTimeout(k.current),N(!0),k.current=setTimeout(function(){N(!1)},3e3)},L=o-f||0,F=f-d||0,j=l.useMemo(function(){if(a===0||L===0)return 0;var U=a/L;return U*F},[a,L,F]),B=function(q){q.stopPropagation(),q.preventDefault()},z=l.useRef({top:j,dragging:y,pageY:w,startTop:T});z.current={top:j,dragging:y,pageY:w,startTop:T};var H=function(q){S(!0),C(s4(q,u)),R(z.current.top),i(),q.stopPropagation(),q.preventDefault()};l.useEffect(function(){var U=function(ee){ee.preventDefault()},q=$.current,X=P.current;return q.addEventListener("touchstart",U,{passive:!1}),X.addEventListener("touchstart",H,{passive:!1}),function(){q.removeEventListener("touchstart",U),X.removeEventListener("touchstart",H)}},[]);var V=l.useRef();V.current=L;var te=l.useRef();te.current=F,l.useEffect(function(){if(y){var U,q=function(ee){var oe=z.current,le=oe.dragging,fe=oe.pageY,ce=oe.startTop;Ut.cancel(U);var Ie=$.current.getBoundingClientRect(),be=f/(u?Ie.width:Ie.height);if(le){var he=(s4(ee,u)-fe)*be,ae=ce;!_&&u?ae-=he:ae+=he;var ie=V.current,ue=te.current,xe=ue?ae/ue:0,we=Math.ceil(xe*ie);we=Math.max(we,0),we=Math.min(we,ie),U=Ut(function(){c(we,u)})}},X=function(){S(!1),s()};return window.addEventListener("mousemove",q,{passive:!0}),window.addEventListener("touchmove",q,{passive:!0}),window.addEventListener("mouseup",X,{passive:!0}),window.addEventListener("touchend",X,{passive:!0}),function(){window.removeEventListener("mousemove",q),window.removeEventListener("touchmove",q),window.removeEventListener("mouseup",X),window.removeEventListener("touchend",X),Ut.cancel(U)}}},[y]),l.useEffect(function(){return M(),function(){clearTimeout(k.current)}},[a]),l.useImperativeHandle(t,function(){return{delayHidden:M}});var Y="".concat(n,"-scrollbar"),J={position:"absolute",visibility:O?null:"hidden"},G={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return u?(J.height=8,J.left=0,J.right=0,J.bottom=0,G.height="100%",G.width=d,_?G.left=j:G.right=j):(J.width=8,J.top=0,J.bottom=0,_?J.right=0:J.left=0,G.width="100%",G.height=d,G.top=j),l.createElement("div",{ref:$,className:ne(Y,W(W(W({},"".concat(Y,"-horizontal"),u),"".concat(Y,"-vertical"),!u),"".concat(Y,"-visible"),O)),style:Z(Z({},J),p),onMouseDown:B,onMouseMove:M},l.createElement("div",{ref:P,className:ne("".concat(Y,"-thumb"),W({},"".concat(Y,"-thumb-moving"),y)),style:Z(Z({},G),g),onMouseDown:H}))}),que=20;function c4(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,que),Math.floor(n)}var Kue=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],Yue=[],Xue={overflowY:"auto",overflowAnchor:"none"};function Zue(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,a=e.className,o=e.height,i=e.itemHeight,s=e.fullHeight,c=s===void 0?!0:s,u=e.style,d=e.data,f=e.children,p=e.itemKey,g=e.virtual,h=e.direction,b=e.scrollWidth,y=e.component,S=y===void 0?"div":y,v=e.onScroll,x=e.onVirtualScroll,w=e.onVisibleChange,C=e.innerProps,E=e.extraRender,I=e.styles,T=xt(e,Kue),R=l.useCallback(function(tt){return typeof p=="function"?p(tt):tt==null?void 0:tt[p]},[p]),_=Uue(R),$=re(_,4),P=$[0],D=$[1],A=$[2],O=$[3],N=!!(g!==!1&&o&&i),k=l.useMemo(function(){return Object.values(A.maps).reduce(function(tt,at){return tt+at},0)},[A.id,A.maps]),M=N&&d&&(Math.max(i*d.length,k)>o||!!b),L=h==="rtl",F=ne(r,W({},"".concat(r,"-rtl"),L),a),j=d||Yue,B=l.useRef(),z=l.useRef(),H=l.useRef(),V=l.useState(0),te=re(V,2),Y=te[0],J=te[1],G=l.useState(0),U=re(G,2),q=U[0],X=U[1],Q=l.useState(!1),ee=re(Q,2),oe=ee[0],le=ee[1],fe=function(){le(!0)},ce=function(){le(!1)},Ie={getKey:R};function be(tt){J(function(at){var Ke;typeof tt=="function"?Ke=tt(at):Ke=tt;var Ge=Ae(Ke);return B.current.scrollTop=Ge,Ge})}var he=l.useRef({start:0,end:j.length}),ae=l.useRef(),ie=jue(j,R),ue=re(ie,1),xe=ue[0];ae.current=xe;var we=l.useMemo(function(){if(!N)return{scrollHeight:void 0,start:0,end:j.length-1,offset:void 0};if(!M){var tt;return{scrollHeight:((tt=z.current)===null||tt===void 0?void 0:tt.offsetHeight)||0,start:0,end:j.length-1,offset:void 0}}for(var at=0,Ke,Ge,bt,Tt=j.length,Pt=0;Pt=Y&&Ke===void 0&&(Ke=Pt,Ge=at),tn>Y+o&&bt===void 0&&(bt=Pt),at=tn}return Ke===void 0&&(Ke=0,Ge=0,bt=Math.ceil(o/i)),bt===void 0&&(bt=j.length-1),bt=Math.min(bt+1,j.length-1),{scrollHeight:at,start:Ke,end:bt,offset:Ge}},[M,N,Y,j,O,o]),Me=we.scrollHeight,Ce=we.start,De=we.end,ye=we.offset;he.current.start=Ce,he.current.end=De;var ve=l.useState({width:0,height:o}),$e=re(ve,2),Ee=$e[0],ge=$e[1],Ne=function(at){ge({width:at.offsetWidth,height:at.offsetHeight})},Re=l.useRef(),me=l.useRef(),_e=l.useMemo(function(){return c4(Ee.width,b)},[Ee.width,b]),Ze=l.useMemo(function(){return c4(Ee.height,Me)},[Ee.height,Me]),Oe=Me-o,Se=l.useRef(Oe);Se.current=Oe;function Ae(tt){var at=tt;return Number.isNaN(Se.current)||(at=Math.min(at,Se.current)),at=Math.max(at,0),at}var Fe=Y<=0,Ve=Y>=Oe,He=q<=0,ze=q>=b,Xe=iV(Fe,Ve,He,ze),je=function(){return{x:L?-q:q,y:Y}},Je=l.useRef(je()),gt=Wt(function(tt){if(x){var at=Z(Z({},je()),tt);(Je.current.x!==at.x||Je.current.y!==at.y)&&(x(at),Je.current=at)}});function ft(tt,at){var Ke=tt;at?(Lr.flushSync(function(){X(Ke)}),gt()):be(Ke)}function qe(tt){var at=tt.currentTarget.scrollTop;at!==Y&&be(at),v==null||v(tt),gt()}var We=function(at){var Ke=at,Ge=b?b-Ee.width:0;return Ke=Math.max(Ke,0),Ke=Math.min(Ke,Ge),Ke},Qe=Wt(function(tt,at){at?(Lr.flushSync(function(){X(function(Ke){var Ge=Ke+(L?-tt:tt);return We(Ge)})}),gt()):be(function(Ke){var Ge=Ke+tt;return Ge})}),ut=Bue(N,Fe,Ve,He,ze,!!b,Qe),Rt=re(ut,2),$t=Rt[0],ht=Rt[1];Vue(N,B,function(tt,at,Ke){return Xe(tt,at,Ke)?!1:($t({preventDefault:function(){},deltaX:tt?at:0,deltaY:tt?0:at}),!0)}),Xt(function(){function tt(Ke){N&&Ke.preventDefault()}var at=B.current;return at.addEventListener("wheel",$t,{passive:!1}),at.addEventListener("DOMMouseScroll",ht,{passive:!0}),at.addEventListener("MozMousePixelScroll",tt,{passive:!1}),function(){at.removeEventListener("wheel",$t),at.removeEventListener("DOMMouseScroll",ht),at.removeEventListener("MozMousePixelScroll",tt)}},[N]),Xt(function(){if(b){var tt=We(q);X(tt),gt({x:tt})}},[Ee.width,b]);var lt=function(){var at,Ke;(at=Re.current)===null||at===void 0||at.delayHidden(),(Ke=me.current)===null||Ke===void 0||Ke.delayHidden()},ot=Gue(B,j,A,i,R,function(){return D(!0)},be,lt);l.useImperativeHandle(t,function(){return{nativeElement:H.current,getScrollInfo:je,scrollTo:function(at){function Ke(Ge){return Ge&&mt(Ge)==="object"&&("left"in Ge||"top"in Ge)}Ke(at)?(at.left!==void 0&&X(We(at.left)),ot(at.top)):ot(at)}}}),Xt(function(){if(w){var tt=j.slice(Ce,De+1);w(tt,j)}},[Ce,De,j]);var et=zue(j,R,A,i),vt=E==null?void 0:E({start:Ce,end:De,virtual:M,offsetX:q,offsetY:ye,rtl:L,getSize:et}),rt=Lue(j,Ce,De,b,q,P,f,Ie),St=null;o&&(St=Z(W({},c?"height":"maxHeight",o),Xue),N&&(St.overflowY="hidden",b&&(St.overflowX="hidden"),oe&&(St.pointerEvents="none")));var Et={};return L&&(Et.dir="rtl"),l.createElement("div",pe({ref:H,style:Z(Z({},u),{},{position:"relative"}),className:F},Et,T),l.createElement(ca,{onResize:Ne},l.createElement(S,{className:"".concat(r,"-holder"),style:St,ref:B,onScroll:qe,onMouseEnter:lt},l.createElement(oV,{prefixCls:r,height:Me,offsetX:q,offsetY:ye,scrollWidth:b,onInnerResize:D,ref:z,innerProps:C,rtl:L,extra:vt},rt))),M&&Me>o&&l.createElement(l4,{ref:Re,prefixCls:r,scrollOffset:Y,scrollRange:Me,rtl:L,onScroll:ft,onStartMove:fe,onStopMove:ce,spinSize:Ze,containerSize:Ee.height,style:I==null?void 0:I.verticalScrollBar,thumbStyle:I==null?void 0:I.verticalScrollBarThumb}),M&&b>Ee.width&&l.createElement(l4,{ref:me,prefixCls:r,scrollOffset:q,scrollRange:b,rtl:L,onScroll:ft,onStartMove:fe,onStopMove:ce,spinSize:_e,containerSize:Ee.width,horizontal:!0,style:I==null?void 0:I.horizontalScrollBar,thumbStyle:I==null?void 0:I.horizontalScrollBarThumb}))}var P0=l.forwardRef(Zue);P0.displayName="List";function Que(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Jue=["disabled","title","children","style","className"];function u4(e){return typeof e=="string"||typeof e=="number"}var ede=function(t,n){var r=YU(),a=r.prefixCls,o=r.id,i=r.open,s=r.multiple,c=r.mode,u=r.searchValue,d=r.toggleOpen,f=r.notFoundContent,p=r.onPopupScroll,g=l.useContext(lO),h=g.maxCount,b=g.flattenOptions,y=g.onActiveValue,S=g.defaultActiveFirstOption,v=g.onSelect,x=g.menuItemSelectedIcon,w=g.rawValues,C=g.fieldNames,E=g.virtual,I=g.direction,T=g.listHeight,R=g.listItemHeight,_=g.optionRender,$="".concat(a,"-item"),P=_l(function(){return b},[i,b],function(U,q){return q[0]&&U[1]!==q[1]}),D=l.useRef(null),A=l.useMemo(function(){return s&&hR(h)&&(w==null?void 0:w.size)>=h},[s,h,w==null?void 0:w.size]),O=function(q){q.preventDefault()},N=function(q){var X;(X=D.current)===null||X===void 0||X.scrollTo(typeof q=="number"?{index:q}:q)},k=function(q){for(var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Q=P.length,ee=0;ee1&&arguments[1]!==void 0?arguments[1]:!1;j(q);var Q={source:X?"keyboard":"mouse"},ee=P[q];if(!ee){y(null,-1,Q);return}y(ee.value,q,Q)};l.useEffect(function(){B(S!==!1?k(0):-1)},[P.length,u]);var z=l.useCallback(function(U){return w.has(U)&&c!=="combobox"},[c,Pe(w).toString(),w.size]);l.useEffect(function(){var U=setTimeout(function(){if(!s&&i&&w.size===1){var X=Array.from(w)[0],Q=P.findIndex(function(ee){var oe=ee.data;return oe.value===X});Q!==-1&&(B(Q),N(Q))}});if(i){var q;(q=D.current)===null||q===void 0||q.scrollTo(void 0)}return function(){return clearTimeout(U)}},[i,u]);var H=function(q){q!==void 0&&v(q,{selected:!w.has(q)}),s||d(!1)};if(l.useImperativeHandle(n,function(){return{onKeyDown:function(q){var X=q.which,Q=q.ctrlKey;switch(X){case Le.N:case Le.P:case Le.UP:case Le.DOWN:{var ee=0;if(X===Le.UP?ee=-1:X===Le.DOWN?ee=1:Que()&&Q&&(X===Le.N?ee=1:X===Le.P&&(ee=-1)),ee!==0){var oe=k(F+ee,ee);N(oe),B(oe,!0)}break}case Le.ENTER:{var le,fe=P[F];fe&&!(fe!=null&&(le=fe.data)!==null&&le!==void 0&&le.disabled)&&!A?H(fe.value):H(void 0),i&&q.preventDefault();break}case Le.ESC:d(!1),i&&q.stopPropagation()}},onKeyUp:function(){},scrollTo:function(q){N(q)}}}),P.length===0)return l.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat($,"-empty"),onMouseDown:O},f);var V=Object.keys(C).map(function(U){return C[U]}),te=function(q){return q.label};function Y(U,q){var X=U.group;return{role:X?"presentation":"option",id:"".concat(o,"_list_").concat(q)}}var J=function(q){var X=P[q];if(!X)return null;var Q=X.data||{},ee=Q.value,oe=X.group,le=Yn(Q,!0),fe=te(X);return X?l.createElement("div",pe({"aria-label":typeof fe=="string"&&!oe?fe:null},le,{key:q},Y(X,q),{"aria-selected":z(ee)}),ee):null},G={role:"listbox",id:"".concat(o,"_list")};return l.createElement(l.Fragment,null,E&&l.createElement("div",pe({},G,{style:{height:0,width:0,overflow:"hidden"}}),J(F-1),J(F),J(F+1)),l.createElement(P0,{itemKey:"key",ref:D,data:P,height:T,itemHeight:R,fullHeight:!1,onMouseDown:O,onScroll:p,virtual:E,direction:I,innerProps:E?null:G},function(U,q){var X=U.group,Q=U.groupOption,ee=U.data,oe=U.label,le=U.value,fe=ee.key;if(X){var ce,Ie=(ce=ee.title)!==null&&ce!==void 0?ce:u4(oe)?oe.toString():void 0;return l.createElement("div",{className:ne($,"".concat($,"-group"),ee.className),title:Ie},oe!==void 0?oe:fe)}var be=ee.disabled,he=ee.title;ee.children;var ae=ee.style,ie=ee.className,ue=xt(ee,Jue),xe=On(ue,V),we=z(le),Me=be||!we&&A,Ce="".concat($,"-option"),De=ne($,Ce,ie,W(W(W(W({},"".concat(Ce,"-grouped"),Q),"".concat(Ce,"-active"),F===q&&!Me),"".concat(Ce,"-disabled"),Me),"".concat(Ce,"-selected"),we)),ye=te(U),ve=!x||typeof x=="function"||we,$e=typeof ye=="number"?ye:ye||le,Ee=u4($e)?$e.toString():void 0;return he!==void 0&&(Ee=he),l.createElement("div",pe({},Yn(xe),E?{}:Y(U,q),{"aria-selected":we,className:De,title:Ee,onMouseMove:function(){F===q||Me||B(q)},onClick:function(){Me||H(le)},style:ae}),l.createElement("div",{className:"".concat(Ce,"-content")},typeof _=="function"?_(U,{index:q}):$e),l.isValidElement(x)||we,ve&&l.createElement(M0,{className:"".concat($,"-option-state"),customizeIcon:x,customizeIconProps:{value:le,disabled:Me,isSelected:we}},we?"✓":null))}))},tde=l.forwardRef(ede);const nde=function(e,t){var n=l.useRef({values:new Map,options:new Map}),r=l.useMemo(function(){var o=n.current,i=o.values,s=o.options,c=e.map(function(f){if(f.label===void 0){var p;return Z(Z({},f),{},{label:(p=i.get(f.value))===null||p===void 0?void 0:p.label})}return f}),u=new Map,d=new Map;return c.forEach(function(f){u.set(f.value,f),d.set(f.value,t.get(f.value)||s.get(f.value))}),n.current.values=u,n.current.options=d,c},[e,t]),a=l.useCallback(function(o){return t.get(o)||n.current.options.get(o)},[t]);return[r,a]};function e1(e,t){return tV(e).join("").toUpperCase().includes(t)}const rde=function(e,t,n,r,a){return l.useMemo(function(){if(!n||r===!1)return e;var o=t.options,i=t.label,s=t.value,c=[],u=typeof r=="function",d=n.toUpperCase(),f=u?r:function(g,h){return a?e1(h[a],d):h[o]?e1(h[i!=="children"?i:"label"],d):e1(h[s],d)},p=u?function(g){return vR(g)}:function(g){return g};return e.forEach(function(g){if(g[o]){var h=f(n,p(g));if(h)c.push(g);else{var b=g[o].filter(function(y){return f(n,p(y))});b.length&&c.push(Z(Z({},g),{},W({},o,b)))}return}f(n,p(g))&&c.push(g)}),c},[e,r,a,n,t])};var d4=0,ade=Qr();function ode(){var e;return ade?(e=d4,d4+=1):e="TEST_OR_SSR",e}function sV(e){var t=l.useState(),n=re(t,2),r=n[0],a=n[1];return l.useEffect(function(){a("rc_select_".concat(ode()))},[]),e||r}var ide=["children","value"],sde=["children"];function lde(e){var t=e,n=t.key,r=t.props,a=r.children,o=r.value,i=xt(r,ide);return Z({key:n,value:o!==void 0?o:n,children:a},i)}function lV(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return vr(e).map(function(n,r){if(!l.isValidElement(n)||!n.type)return null;var a=n,o=a.type.isSelectOptGroup,i=a.key,s=a.props,c=s.children,u=xt(s,sde);return t||!o?lde(n):Z(Z({key:"__RC_SELECT_GRP__".concat(i===null?r:i,"__"),label:i},u),{},{options:lV(c)})}).filter(function(n){return n})}var cde=function(t,n,r,a,o){return l.useMemo(function(){var i=t,s=!t;s&&(i=lV(n));var c=new Map,u=new Map,d=function(g,h,b){b&&typeof b=="string"&&g.set(h[b],h)},f=function p(g){for(var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,b=0;b0?qe(ut.options):ut.options}):ut})},Ee=l.useMemo(function(){return v?$e(ve):ve},[ve,v,U]),ge=l.useMemo(function(){return Nue(Ee,{fieldNames:Y,childrenAsData:V})},[Ee,Y,V]),Ne=function(We){var Qe=le(We);if(be(Qe),F&&(Qe.length!==ue.length||Qe.some(function($t,ht){var lt;return((lt=ue[ht])===null||lt===void 0?void 0:lt.value)!==($t==null?void 0:$t.value)}))){var ut=L?Qe:Qe.map(function($t){return $t.value}),Rt=Qe.map(function($t){return vR(xe($t.value))});F(H?ut:ut[0],H?Rt:Rt[0])}},Re=l.useState(null),me=re(Re,2),_e=me[0],Ze=me[1],Oe=l.useState(0),Se=re(Oe,2),Ae=Se[0],Fe=Se[1],Ve=T!==void 0?T:r!=="combobox",He=l.useCallback(function(qe,We){var Qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ut=Qe.source,Rt=ut===void 0?"keyboard":ut;Fe(We),i&&r==="combobox"&&qe!==null&&Rt==="keyboard"&&Ze(String(qe))},[i,r]),ze=function(We,Qe,ut){var Rt=function(){var tt,at=xe(We);return[L?{label:at==null?void 0:at[Y.label],value:We,key:(tt=at==null?void 0:at.key)!==null&&tt!==void 0?tt:We}:We,vR(at)]};if(Qe&&g){var $t=Rt(),ht=re($t,2),lt=ht[0],ot=ht[1];g(lt,ot)}else if(!Qe&&h&&ut!=="clear"){var et=Rt(),vt=re(et,2),rt=vt[0],St=vt[1];h(rt,St)}},Xe=f4(function(qe,We){var Qe,ut=H?We.selected:!0;ut?Qe=H?[].concat(Pe(ue),[qe]):[qe]:Qe=ue.filter(function(Rt){return Rt.value!==qe}),Ne(Qe),ze(qe,ut),r==="combobox"?Ze(""):(!bR||p)&&(q(""),Ze(""))}),je=function(We,Qe){Ne(We);var ut=Qe.type,Rt=Qe.values;(ut==="remove"||ut==="clear")&&Rt.forEach(function($t){ze($t.value,!1,ut)})},Je=function(We,Qe){if(q(We),Ze(null),Qe.source==="submit"){var ut=(We||"").trim();if(ut){var Rt=Array.from(new Set([].concat(Pe(Me),[ut])));Ne(Rt),ze(ut,!0),q("")}return}Qe.source!=="blur"&&(r==="combobox"&&Ne(We),d==null||d(We))},gt=function(We){var Qe=We;r!=="tags"&&(Qe=We.map(function(Rt){var $t=ee.get(Rt);return $t==null?void 0:$t.value}).filter(function(Rt){return Rt!==void 0}));var ut=Array.from(new Set([].concat(Pe(Me),Pe(Qe))));Ne(ut),ut.forEach(function(Rt){ze(Rt,!0)})},ft=l.useMemo(function(){var qe=_!==!1&&y!==!1;return Z(Z({},X),{},{flattenOptions:ge,onActiveValue:He,defaultActiveFirstOption:Ve,onSelect:Xe,menuItemSelectedIcon:R,rawValues:Me,fieldNames:Y,virtual:qe,direction:$,listHeight:D,listItemHeight:O,childrenAsData:V,maxCount:j,optionRender:E})},[j,X,ge,He,Ve,Xe,R,Me,Y,_,y,$,D,O,V,E]);return l.createElement(lO.Provider,{value:ft},l.createElement(aV,pe({},B,{id:z,prefixCls:o,ref:t,omitDomProps:dde,mode:r,displayValues:we,onDisplayValuesChange:je,direction:$,searchValue:U,onSearch:Je,autoClearSearchValue:p,onSearchSplit:gt,dropdownMatchSelectWidth:y,OptionList:tde,emptyOptions:!ge.length,activeValue:_e,activeDescendantId:"".concat(z,"_list_").concat(Ae)})))}),dO=pde;dO.Option=uO;dO.OptGroup=cO;function Ts(e,t,n){return ne({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const Nl=(e,t)=>t||e,gde=()=>{const[,e]=ra(),n=new an(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return l.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},l.createElement("title",null,"empty image"),l.createElement("g",{fill:"none",fillRule:"evenodd"},l.createElement("g",{transform:"translate(24 31.67)"},l.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),l.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"}),l.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)"}),l.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"}),l.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"})),l.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"}),l.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},l.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),l.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},mde=()=>{const[,e]=ra(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:a}=e,{borderColor:o,shadowColor:i,contentColor:s}=l.useMemo(()=>({borderColor:new an(t).onBackground(a).toHexShortString(),shadowColor:new an(n).onBackground(a).toHexShortString(),contentColor:new an(r).onBackground(a).toHexShortString()}),[t,n,r,a]);return l.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},l.createElement("title",null,"Simple Empty"),l.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},l.createElement("ellipse",{fill:i,cx:"32",cy:"33",rx:"32",ry:"7"}),l.createElement("g",{fillRule:"nonzero",stroke:o},l.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"}),l.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:s}))))},hde=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:a,fontSize:o,lineHeight:i}=e;return{[t]:{marginInline:r,fontSize:o,lineHeight:i,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:a,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},vde=on("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,a=zt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[hde(a)]});var bde=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{className:t,rootClassName:n,prefixCls:r,image:a=cV,description:o,children:i,imageStyle:s,style:c}=e,u=bde(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:d,direction:f,empty:p}=l.useContext(st),g=d("empty",r),[h,b,y]=vde(g),[S]=Ki("Empty"),v=typeof o<"u"?o:S==null?void 0:S.description,x=typeof v=="string"?v:"empty";let w=null;return typeof a=="string"?w=l.createElement("img",{alt:x,src:a}):w=a,h(l.createElement("div",Object.assign({className:ne(b,y,g,p==null?void 0:p.className,{[`${g}-normal`]:a===uV,[`${g}-rtl`]:f==="rtl"},t,n),style:Object.assign(Object.assign({},p==null?void 0:p.style),c)},u),l.createElement("div",{className:`${g}-image`,style:s},w),v&&l.createElement("div",{className:`${g}-description`},v),i&&l.createElement("div",{className:`${g}-footer`},i)))};ds.PRESENTED_IMAGE_DEFAULT=cV;ds.PRESENTED_IMAGE_SIMPLE=uV;const D0=e=>{const{componentName:t}=e,{getPrefixCls:n}=l.useContext(st),r=n("empty");switch(t){case"Table":case"List":return se.createElement(ds,{image:ds.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return se.createElement(ds,{image:ds.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return se.createElement(ds,null)}},Dc=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,a;const{variant:o,[e]:i}=l.useContext(st),s=l.useContext(_U),c=i==null?void 0:i.variant;let u;typeof t<"u"?u=t:n===!1?u="borderless":u=(a=(r=s??c)!==null&&r!==void 0?r:o)!==null&&a!==void 0?a:"outlined";const d=rae.includes(u);return[u,d]},yde=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function dV(e,t){return e||yde(t)}const p4=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:a}=e;return{position:"relative",display:"block",minHeight:t,padding:a,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},Sde=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,a=`&${t}-slide-up-enter${t}-slide-up-enter-active`,o=`&${t}-slide-up-appear${t}-slide-up-appear-active`,i=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},nn(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[` ${a}${s}bottomLeft, ${o}${s}bottomLeft - `]:{animationName:_0},[` + `]:{animationName:$0},[` ${a}${s}topLeft, ${o}${s}topLeft, ${a}${s}topRight, ${o}${s}topRight - `]:{animationName:O0},[`${i}${s}bottomLeft`]:{animationName:$0},[` + `]:{animationName:N0},[`${i}${s}bottomLeft`]:{animationName:O0},[` ${i}${s}topLeft, ${i}${s}topRight - `]:{animationName:N0},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},p4(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},xo),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary},[`&:has(+ ${r}-option-selected:not(${r}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${r}-option-selected:not(${r}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},p4(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},Vi(e,"slide-up"),Vi(e,"slide-down"),wd(e,"move-up"),wd(e,"move-down")]},fV=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:a}=e,o=e.max(e.calc(n).sub(r).equal(),0),i=e.max(e.calc(o).sub(a).equal(),0);return{basePadding:o,containerPadding:i,itemHeight:K(t),itemLineHeight:K(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},xde=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},pV=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:a,paddingXS:o,multipleItemColorDisabled:i,multipleItemBorderColorDisabled:s,colorIcon:c,colorIconHover:u,INTERNAL_FIXED_ITEM_MARGIN:d}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:d,borderRadius:r,cursor:"default",transition:`font-size ${a}, line-height ${a}, height ${a}`,marginInlineEnd:e.calc(d).mul(2).equal(),paddingInlineStart:o,paddingInlineEnd:e.calc(o).div(2).equal(),[`${t}-disabled&`]:{color:i,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(o).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},zd()),{display:"inline-flex",alignItems:"center",color:c,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:u}})}}}},wde=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,a=`${n}-selection-overflow`,o=e.multipleSelectItemHeight,i=xde(e),s=t?`${n}-${t}`:"",c=fV(e);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},pV(e)),{[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:c.basePadding,paddingBlock:c.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${K(r)} 0`,lineHeight:K(o),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:c.itemHeight,lineHeight:K(c.itemLineHeight)},[`${a}-item + ${a}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${a}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(i).equal(),"\n &-input,\n &-mirror\n ":{height:o,fontFamily:e.fontFamily,lineHeight:K(o),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function e1(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",a={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[` + `]:{animationName:k0},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},p4(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},wo),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary},[`&:has(+ ${r}-option-selected:not(${r}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${r}-option-selected:not(${r}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},p4(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},Wi(e,"slide-up"),Wi(e,"slide-down"),wd(e,"move-up"),wd(e,"move-down")]},fV=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:a}=e,o=e.max(e.calc(n).sub(r).equal(),0),i=e.max(e.calc(o).sub(a).equal(),0);return{basePadding:o,containerPadding:i,itemHeight:K(t),itemLineHeight:K(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},xde=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},pV=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:a,paddingXS:o,multipleItemColorDisabled:i,multipleItemBorderColorDisabled:s,colorIcon:c,colorIconHover:u,INTERNAL_FIXED_ITEM_MARGIN:d}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:d,borderRadius:r,cursor:"default",transition:`font-size ${a}, line-height ${a}, height ${a}`,marginInlineEnd:e.calc(d).mul(2).equal(),paddingInlineStart:o,paddingInlineEnd:e.calc(o).div(2).equal(),[`${t}-disabled&`]:{color:i,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(o).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},zd()),{display:"inline-flex",alignItems:"center",color:c,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:u}})}}}},wde=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,a=`${n}-selection-overflow`,o=e.multipleSelectItemHeight,i=xde(e),s=t?`${n}-${t}`:"",c=fV(e);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},pV(e)),{[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:c.basePadding,paddingBlock:c.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${K(r)} 0`,lineHeight:K(o),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:c.itemHeight,lineHeight:K(c.itemLineHeight)},[`${a}-item + ${a}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${a}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(i).equal(),"\n &-input,\n &-mirror\n ":{height:o,fontFamily:e.fontFamily,lineHeight:K(o),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function t1(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",a={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[` &${n}-show-arrow ${n}-selector, &${n}-allow-clear ${n}-selector - `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[wde(e,t),a]}const Cde=e=>{const{componentCls:t}=e,n=zt(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=zt(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[e1(e),e1(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},e1(r,"lg")]};function t1(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:a}=e,o=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),i=t?`${n}-${t}`:"";return{[`${n}-single${i}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},nn(e,!0)),{display:"flex",borderRadius:a,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[` + `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[wde(e,t),a]}const Cde=e=>{const{componentCls:t}=e,n=zt(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=zt(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[t1(e),t1(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},t1(r,"lg")]};function n1(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:a}=e,o=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),i=t?`${n}-${t}`:"";return{[`${n}-single${i}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},nn(e,!0)),{display:"flex",borderRadius:a,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[` ${n}-selection-item, ${n}-selection-placeholder `]:{padding:0,lineHeight:K(o),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` &${n}-show-arrow ${n}-selection-item, &${n}-show-arrow ${n}-selection-placeholder - `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${K(r)}`,[`${n}-selection-search-input`]:{height:o},"&:after":{lineHeight:K(o)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${K(r)}`,"&:after":{display:"none"}}}}}}}function Ede(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[t1(e),t1(zt(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${K(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[` + `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${K(r)}`,[`${n}-selection-search-input`]:{height:o},"&:after":{lineHeight:K(o)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${K(r)}`,"&:after":{display:"none"}}}}}}}function Ede(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[n1(e),n1(zt(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${K(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[` &${t}-show-arrow ${t}-selection-item, &${t}-show-arrow ${t}-selection-placeholder - `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},t1(zt(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const Ide=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:a,controlHeightSM:o,controlHeightLG:i,paddingXXS:s,controlPaddingHorizontal:c,zIndexPopupBase:u,colorText:d,fontWeightStrong:f,controlItemBgActive:p,controlItemBgHover:g,colorBgContainer:h,colorFillSecondary:b,colorBgContainerDisabled:y,colorTextDisabled:S}=e,v=s*2,x=r*2,C=Math.min(a-v,a-x),w=Math.min(o-v,o-x),E=Math.min(i-v,i-x);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:u+50,optionSelectedColor:d,optionSelectedFontWeight:f,optionSelectedBg:p,optionActiveBg:g,optionPadding:`${(a-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:a,selectorBg:h,clearBg:h,singleItemHeightLG:i,multipleItemBg:b,multipleItemBorderColor:"transparent",multipleItemHeight:C,multipleItemHeightSM:w,multipleItemHeightLG:E,multipleSelectorBgDisabled:y,multipleItemColorDisabled:S,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25)}},gV=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:a}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${K(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${K(a)} ${t.activeShadowColor}`,outline:0}}}},g4=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},gV(e,t))}),Tde=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},gV(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),g4(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),g4(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeShadowColor:e.colorWarningOutline})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${K(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),mV=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${K(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},m4=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},mV(e,t))}),Rde=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},mV(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),m4(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),m4(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${K(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),_de=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",borderColor:"transparent"},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${K(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),$de=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},Tde(e)),Rde(e)),_de(e))}),Ode=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},Nde=e=>{const{componentCls:t}=e;return{[`${t}-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"}}}},kde=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:a}=e;return{[n]:Object.assign(Object.assign({},nn(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},Ode(e)),Nde(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},xo),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},xo),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},zd()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[a]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},[`&:hover ${n}-clear`]:{opacity:1,background:e.colorBgBase}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}},Ade=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},kde(e),Ede(e),Cde(e),Sde(e),{[`${t}-rtl`]:{direction:"rtl"}},qg(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},hV=on("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=zt(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Ade(r),$de(r)]},Ide,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var Mde={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"},Pde=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Mde}))},nm=l.forwardRef(Pde),Dde={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"},Lde=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Dde}))},D0=l.forwardRef(Lde),Fde={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"},jde=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Fde}))},rm=l.forwardRef(jde);function dO(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:a,loading:o,multiple:i,hasFeedback:s,prefixCls:c,showSuffixIcon:u,feedbackIcon:d,showArrow:f,componentName:p}=e;const g=n??l.createElement(Pc,null),h=v=>t===null&&!s&&!f?null:l.createElement(l.Fragment,null,u!==!1&&v,s&&d);let b=null;if(t!==void 0)b=h(t);else if(o)b=h(l.createElement(Hi,{spin:!0}));else{const v=`${c}-suffix`;b=x=>{let{open:C,showSearch:w}=x;return h(C&&w?l.createElement(rm,{className:v}):l.createElement(D0,{className:v}))}}let y=null;r!==void 0?y=r:i?y=l.createElement(nm,null):y=null;let S=null;return a!==void 0?S=a:S=l.createElement(Jr,null),{clearIcon:g,suffixIcon:b,itemIcon:y,removeIcon:S}}function vV(e,t){return t!==void 0?t:e!==null}var Bde=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const{prefixCls:r,bordered:a,className:o,rootClassName:i,getPopupContainer:s,popupClassName:c,dropdownClassName:u,listHeight:d=256,placement:f,listItemHeight:p,size:g,disabled:h,notFoundContent:b,status:y,builtinPlacements:S,dropdownMatchSelectWidth:v,popupMatchSelectWidth:x,direction:C,style:w,allowClear:E,variant:I,dropdownStyle:T,transitionName:R,tagRender:_,maxCount:$}=e,P=Bde(e,["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:D,getPrefixCls:A,renderEmpty:O,direction:N,virtual:k,popupMatchSelectWidth:M,popupOverflow:L,select:F}=l.useContext(st),[,j]=ta(),B=p??(j==null?void 0:j.controlHeight),z=A("select",r),H=A(),V=C??N,{compactSize:te,compactItemClassnames:Y}=Os(z,V),[J,G]=Dc("select",I,a),U=Un(z),[q,X,Q]=hV(z,U),ee=l.useMemo(()=>{const{mode:ge}=e;if(ge!=="combobox")return ge===bV?"combobox":ge},[e.mode]),oe=ee==="multiple"||ee==="tags",le=vV(e.suffixIcon,e.showArrow),fe=(n=x??v)!==null&&n!==void 0?n:M,{status:ce,hasFeedback:Te,isFormItemInput:Se,feedbackIcon:ve}=l.useContext(zr),ae=Nl(ce,y);let ie;b!==void 0?ie=b:ee==="combobox"?ie=null:ie=(O==null?void 0:O("Select"))||l.createElement(P0,{componentName:"Select"});const{suffixIcon:ue,itemIcon:ye,removeIcon:Ee,clearIcon:Me}=dO(Object.assign(Object.assign({},P),{multiple:oe,hasFeedback:Te,feedbackIcon:ve,showSuffixIcon:le,prefixCls:z,componentName:"Select"})),Ie=E===!0?{clearIcon:Me}:E,Ce=On(P,["suffixIcon","itemIcon"]),me=ne(c||u,{[`${z}-dropdown-${V}`]:V==="rtl"},i,Q,U,X),we=Er(ge=>{var Pe;return(Pe=g??te)!==null&&Pe!==void 0?Pe:ge}),_e=l.useContext(Zr),Ne=h??_e,he=ne({[`${z}-lg`]:we==="large",[`${z}-sm`]:we==="small",[`${z}-rtl`]:V==="rtl",[`${z}-${J}`]:G,[`${z}-in-form-item`]:Se},Is(z,ae,Te),Y,F==null?void 0:F.className,o,i,Q,U,X),ke=l.useMemo(()=>f!==void 0?f:V==="rtl"?"bottomRight":"bottomLeft",[f,V]),[xe]=Si("SelectLike",T==null?void 0:T.zIndex);return q(l.createElement(uO,Object.assign({ref:t,virtual:k,showSearch:F==null?void 0:F.showSearch},Ce,{style:Object.assign(Object.assign({},F==null?void 0:F.style),w),dropdownMatchSelectWidth:fe,transitionName:xa(H,"slide-up",R),builtinPlacements:dV(S,L),listHeight:d,listItemHeight:B,mode:ee,prefixCls:z,placement:ke,direction:V,suffixIcon:ue,menuItemSelectedIcon:ye,removeIcon:Ee,allowClear:Ie,notFoundContent:ie,className:he,getPopupContainer:s||D,dropdownClassName:me,disabled:Ne,dropdownStyle:Object.assign(Object.assign({},T),{zIndex:xe}),maxCount:oe?$:void 0,tagRender:oe?_:void 0})))},Ar=l.forwardRef(zde),Hde=Jg(Ar);Ar.SECRET_COMBOBOX_MODE_DO_NOT_USE=bV;Ar.Option=cO;Ar.OptGroup=lO;Ar._InternalPanelDoNotUseOrYouWillBeFired=Hde;const Tc=["xxl","xl","lg","md","sm","xs"],Ude=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),Vde=e=>{const t=e,n=[].concat(Tc).reverse();return n.forEach((r,a)=>{const o=r.toUpperCase(),i=`screen${o}Min`,s=`screen${o}`;if(!(t[i]<=t[s]))throw new Error(`${i}<=${s} fails : !(${t[i]}<=${t[s]})`);if(a{const n=new Map;let r=-1,a={};return{matchHandlers:{},dispatch(o){return a=o,n.forEach(i=>i(a)),n.size>=1},subscribe(o){return n.size||this.register(),r+=1,n.set(r,o),o(a),r},unsubscribe(o){n.delete(o),n.size||this.unregister()},unregister(){Object.keys(t).forEach(o=>{const i=t[o],s=this.matchHandlers[i];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),n.clear()},register(){Object.keys(t).forEach(o=>{const i=t[o],s=u=>{let{matches:d}=u;this.dispatch(Object.assign(Object.assign({},a),{[o]:d}))},c=window.matchMedia(i);c.addListener(s),this.matchHandlers[i]={mql:c,listener:s},s(c)})},responsiveMap:t}},[e])}function fO(){const[,e]=l.useReducer(t=>t+1,0);return e}function L0(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=l.useRef({}),n=fO(),r=yV();return Xt(()=>{const a=r.subscribe(o=>{t.current=o,e&&n()});return()=>r.unsubscribe(a)},[]),t.current}const fb=e=>e?typeof e=="function"?e():e:null;function pO(e){var t=e.children,n=e.prefixCls,r=e.id,a=e.overlayInnerStyle,o=e.className,i=e.style;return l.createElement("div",{className:ne("".concat(n,"-content"),o),style:i},l.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:a},typeof t=="function"?t():t))}var su={shiftX:64,adjustY:1},lu={adjustX:1,shiftY:!0},Ro=[0,0],Wde={left:{points:["cr","cl"],overflow:lu,offset:[-4,0],targetOffset:Ro},right:{points:["cl","cr"],overflow:lu,offset:[4,0],targetOffset:Ro},top:{points:["bc","tc"],overflow:su,offset:[0,-4],targetOffset:Ro},bottom:{points:["tc","bc"],overflow:su,offset:[0,4],targetOffset:Ro},topLeft:{points:["bl","tl"],overflow:su,offset:[0,-4],targetOffset:Ro},leftTop:{points:["tr","tl"],overflow:lu,offset:[-4,0],targetOffset:Ro},topRight:{points:["br","tr"],overflow:su,offset:[0,-4],targetOffset:Ro},rightTop:{points:["tl","tr"],overflow:lu,offset:[4,0],targetOffset:Ro},bottomRight:{points:["tr","br"],overflow:su,offset:[0,4],targetOffset:Ro},rightBottom:{points:["bl","br"],overflow:lu,offset:[4,0],targetOffset:Ro},bottomLeft:{points:["tl","bl"],overflow:su,offset:[0,4],targetOffset:Ro},leftBottom:{points:["br","bl"],overflow:lu,offset:[-4,0],targetOffset:Ro}},Gde=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],qde=function(t,n){var r=t.overlayClassName,a=t.trigger,o=a===void 0?["hover"]:a,i=t.mouseEnterDelay,s=i===void 0?0:i,c=t.mouseLeaveDelay,u=c===void 0?.1:c,d=t.overlayStyle,f=t.prefixCls,p=f===void 0?"rc-tooltip":f,g=t.children,h=t.onVisibleChange,b=t.afterVisibleChange,y=t.transitionName,S=t.animation,v=t.motion,x=t.placement,C=x===void 0?"right":x,w=t.align,E=w===void 0?{}:w,I=t.destroyTooltipOnHide,T=I===void 0?!1:I,R=t.defaultVisible,_=t.getTooltipContainer,$=t.overlayInnerStyle;t.arrowContent;var P=t.overlay,D=t.id,A=t.showArrow,O=A===void 0?!0:A,N=xt(t,Gde),k=l.useRef(null);l.useImperativeHandle(n,function(){return k.current});var M=Z({},N);"visible"in t&&(M.popupVisible=t.visible);var L=function(){return l.createElement(pO,{key:"content",prefixCls:p,id:D,overlayInnerStyle:$},P)};return l.createElement(tm,pe({popupClassName:r,prefixCls:p,popup:L,action:o,builtinPlacements:Wde,popupPlacement:C,ref:k,popupAlign:E,getPopupContainer:_,onPopupVisibleChange:h,afterPopupVisibleChange:b,popupTransitionName:y,popupAnimation:S,popupMotion:v,defaultPopupVisible:R,autoDestroy:T,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:s,arrow:O},M),g)};const Kde=l.forwardRef(qde);function F0(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,a=t/2,o=0,i=a,s=r*1/Math.sqrt(2),c=a-r*(1-1/Math.sqrt(2)),u=a-n*(1/Math.sqrt(2)),d=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*a-u,p=d,g=2*a-s,h=c,b=2*a-o,y=i,S=a*Math.sqrt(2)+r*(Math.sqrt(2)-2),v=r*(Math.sqrt(2)-1),x=`polygon(${v}px 100%, 50% ${v}px, ${2*a-v}px 100%, ${v}px 100%)`,C=`path('M ${o} ${i} A ${r} ${r} 0 0 0 ${s} ${c} L ${u} ${d} A ${n} ${n} 0 0 1 ${f} ${p} L ${g} ${h} A ${r} ${r} 0 0 0 ${b} ${y} Z')`;return{arrowShadowWidth:S,arrowPath:C,arrowPolygon:x}}const SV=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:a,arrowPath:o,arrowShadowWidth:i,borderRadiusXS:s,calc:c}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[a,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${K(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},xV=8;function j0(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?xV:r}}function ch(e,t){return e?t:{}}function gO(e,t,n){const{componentCls:r,boxShadowPopoverArrow:a,arrowOffsetVertical:o,arrowOffsetHorizontal:i}=e,{arrowDistance:s=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},SV(e,t,a)),{"&:before":{background:t}})]},ch(!!c.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":i,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${K(i)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),ch(!!c.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":i,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${K(i)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),ch(!!c.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:o},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:o}})),ch(!!c.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:o},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:o}}))}}function Yde(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const a=r&&typeof r=="object"?r:{},o={};switch(e){case"top":case"bottom":o.shiftX=t.arrowOffsetHorizontal*2+n,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=t.arrowOffsetVertical*2+n,o.shiftX=!0,o.adjustX=!0;break}const i=Object.assign(Object.assign({},o),a);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const h4={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"]}},Xde={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"]}},Zde=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function wV(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:a,borderRadius:o,visibleFirst:i}=e,s=t/2,c={};return Object.keys(h4).forEach(u=>{const d=r&&Xde[u]||h4[u],f=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(c[u]=f,Zde.has(u)&&(f.autoArrow=!1),u){case"top":case"topLeft":case"topRight":f.offset[1]=-s-a;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=s+a;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-s-a;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=s+a;break}const p=j0({contentRadius:o,limitVerticalRadius:!0});if(r)switch(u){case"topLeft":case"bottomLeft":f.offset[0]=-p.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":f.offset[0]=p.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":f.offset[1]=-p.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":f.offset[1]=p.arrowOffsetHorizontal*2-s;break}f.overflow=Yde(u,p,t,n),i&&(f.htmlRegion="visibleFirst")}),c}const Qde=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:a,tooltipBorderRadius:o,zIndexPopup:i,controlHeight:s,boxShadowSecondary:c,paddingSM:u,paddingXS:d}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},nn(e)),{position:"absolute",zIndex:i,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":a,[`${t}-inner`]:{minWidth:"1em",minHeight:s,padding:`${K(e.calc(u).div(2).equal())} ${K(d)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:o,boxShadow:c,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(o,xV)}},[`${t}-content`]:{position:"relative"}}),RH(e,(f,p)=>{let{darkColor:g}=p;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:g},[`${t}-arrow`]:{"--antd-arrow-background-color":g}}}})),{"&-rtl":{direction:"rtl"}})},gO(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Jde=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},j0({contentRadius:e.borderRadius,limitVerticalRadius:!0})),F0(zt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),CV=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return on("Tooltip",r=>{const{borderRadius:a,colorTextLightSolid:o,colorBgSpotlight:i}=r,s=zt(r,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:a,tooltipBg:i});return[Qde(s),qd(r,"zoom-big-fast")]},Jde,{resetStyle:!1,injectStyle:t})(e)},efe=ug.map(e=>`${e}-inverse`),tfe=["success","processing","error","default","warning"];function EV(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(De(efe),De(ug)).includes(e):ug.includes(e)}function nfe(e){return tfe.includes(e)}function IV(e,t){const n=EV(t),r=ne({[`${e}-${t}`]:t&&n}),a={},o={};return t&&!n&&(a.background=t,o["--antd-arrow-background-color"]=t),{className:r,overlayStyle:a,arrowStyle:o}}const rfe=e=>{const{prefixCls:t,className:n,placement:r="top",title:a,color:o,overlayInnerStyle:i}=e,{getPrefixCls:s}=l.useContext(st),c=s("tooltip",t),[u,d,f]=CV(c),p=IV(c,o),g=p.arrowStyle,h=Object.assign(Object.assign({},i),p.overlayStyle),b=ne(d,f,c,`${c}-pure`,`${c}-placement-${r}`,n,p.className);return u(l.createElement("div",{className:b,style:g},l.createElement("div",{className:`${c}-arrow`}),l.createElement(pO,Object.assign({},e,{className:d,prefixCls:c,overlayInnerStyle:h}),a)))};var afe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r;const{prefixCls:a,openClassName:o,getTooltipContainer:i,overlayClassName:s,color:c,overlayInnerStyle:u,children:d,afterOpenChange:f,afterVisibleChange:p,destroyTooltipOnHide:g,arrow:h=!0,title:b,overlay:y,builtinPlacements:S,arrowPointAtCenter:v=!1,autoAdjustOverflow:x=!0}=e,C=!!h,[,w]=ta(),{getPopupContainer:E,getPrefixCls:I,direction:T}=l.useContext(st),R=$l(),_=l.useRef(null),$=()=>{var ie;(ie=_.current)===null||ie===void 0||ie.forceAlign()};l.useImperativeHandle(t,()=>{var ie;return{forceAlign:$,forcePopupAlign:()=>{R.deprecated(!1,"forcePopupAlign","forceAlign"),$()},nativeElement:(ie=_.current)===null||ie===void 0?void 0:ie.nativeElement}});const[P,D]=sn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),A=!b&&!y&&b!==0,O=ie=>{var ue,ye;D(A?!1:ie),A||((ue=e.onOpenChange)===null||ue===void 0||ue.call(e,ie),(ye=e.onVisibleChange)===null||ye===void 0||ye.call(e,ie))},N=l.useMemo(()=>{var ie,ue;let ye=v;return typeof h=="object"&&(ye=(ue=(ie=h.pointAtCenter)!==null&&ie!==void 0?ie:h.arrowPointAtCenter)!==null&&ue!==void 0?ue:v),S||wV({arrowPointAtCenter:ye,autoAdjustOverflow:x,arrowWidth:C?w.sizePopupArrow:0,borderRadius:w.borderRadius,offset:w.marginXXS,visibleFirst:!0})},[v,h,S,w]),k=l.useMemo(()=>b===0?b:y||b||"",[y,b]),M=l.createElement(Ui,{space:!0},typeof k=="function"?k():k),{getPopupContainer:L,placement:F="top",mouseEnterDelay:j=.1,mouseLeaveDelay:B=.1,overlayStyle:z,rootClassName:H}=e,V=afe(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),te=I("tooltip",a),Y=I(),J=e["data-popover-inject"];let G=P;!("open"in e)&&!("visible"in e)&&A&&(G=!1);const U=l.isValidElement(d)&&!GH(d)?d:l.createElement("span",null,d),q=U.props,X=!q.className||typeof q.className=="string"?ne(q.className,o||`${te}-open`):q.className,[Q,ee,oe]=CV(te,!J),le=IV(te,c),fe=le.arrowStyle,ce=Object.assign(Object.assign({},u),le.overlayStyle),Te=ne(s,{[`${te}-rtl`]:T==="rtl"},le.className,H,ee,oe),[Se,ve]=Si("Tooltip",V.zIndex),ae=l.createElement(Kde,Object.assign({},V,{zIndex:Se,showArrow:C,placement:F,mouseEnterDelay:j,mouseLeaveDelay:B,prefixCls:te,overlayClassName:Te,overlayStyle:Object.assign(Object.assign({},fe),z),getTooltipContainer:L||i||E,ref:_,builtinPlacements:N,overlay:M,visible:G,onVisibleChange:O,afterVisibleChange:f??p,overlayInnerStyle:ce,arrowContent:l.createElement("span",{className:`${te}-arrow-content`}),motion:{motionName:xa(Y,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!g}),G?Cr(U,{className:X}):U);return Q(l.createElement(Vg.Provider,{value:ve},ae))}),Zt=ofe;Zt._InternalPanelDoNotUseOrYouWillBeFired=rfe;const ife=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:a,innerPadding:o,boxShadowSecondary:i,colorTextHeading:s,borderRadiusLG:c,zIndexPopup:u,titleMarginBottom:d,colorBgElevated:f,popoverBg:p,titleBorderBottom:g,innerContentPadding:h,titlePadding:b}=e;return[{[t]:Object.assign(Object.assign({},nn(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":f,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:p,backgroundClip:"padding-box",borderRadius:c,boxShadow:i,padding:o},[`${t}-title`]:{minWidth:r,marginBottom:d,color:s,fontWeight:a,borderBottom:g,padding:b},[`${t}-inner-content`]:{color:n,padding:h}})},gO(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},sfe=e=>{const{componentCls:t}=e;return{[t]:ug.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},lfe=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:a,wireframe:o,zIndexPopupBase:i,borderRadiusLG:s,marginXS:c,lineType:u,colorSplit:d,paddingSM:f}=e,p=n-r,g=p/2,h=p/2-t,b=a;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:i+30},F0(e)),j0({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:o?0:12,titleMarginBottom:o?0:c,titlePadding:o?`${g}px ${b}px ${h}px`:0,titleBorderBottom:o?`${t}px ${u} ${d}`:"none",innerContentPadding:o?`${f}px ${b}px`:0})},TV=on("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=zt(e,{popoverBg:t,popoverColor:n});return[ife(r),sfe(r),qd(r,"zoom-big")]},lfe,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var cfe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{let{title:t,content:n,prefixCls:r}=e;return!t&&!n?null:l.createElement(l.Fragment,null,t&&l.createElement("div",{className:`${r}-title`},t),n&&l.createElement("div",{className:`${r}-inner-content`},n))},ufe=e=>{const{hashId:t,prefixCls:n,className:r,style:a,placement:o="top",title:i,content:s,children:c}=e,u=fb(i),d=fb(s),f=ne(t,n,`${n}-pure`,`${n}-placement-${o}`,r);return l.createElement("div",{className:f,style:a},l.createElement("div",{className:`${n}-arrow`}),l.createElement(pO,Object.assign({},e,{className:t,prefixCls:n}),c||l.createElement(RV,{prefixCls:n,title:u,content:d})))},dfe=e=>{const{prefixCls:t,className:n}=e,r=cfe(e,["prefixCls","className"]),{getPrefixCls:a}=l.useContext(st),o=a("popover",t),[i,s,c]=TV(o);return i(l.createElement(ufe,Object.assign({},r,{prefixCls:o,hashId:s,className:ne(n,c)})))};var ffe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r;const{prefixCls:a,title:o,content:i,overlayClassName:s,placement:c="top",trigger:u="hover",children:d,mouseEnterDelay:f=.1,mouseLeaveDelay:p=.1,onOpenChange:g,overlayStyle:h={}}=e,b=ffe(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle"]),{getPrefixCls:y}=l.useContext(st),S=y("popover",a),[v,x,C]=TV(S),w=y(),E=ne(s,x,C),[I,T]=sn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),R=(A,O)=>{T(A,!0),g==null||g(A,O)},_=A=>{A.keyCode===Le.ESC&&R(!1,A)},$=A=>{R(A)},P=fb(o),D=fb(i);return v(l.createElement(Zt,Object.assign({placement:c,trigger:u,mouseEnterDelay:f,mouseLeaveDelay:p,overlayStyle:h},b,{prefixCls:S,overlayClassName:E,ref:t,open:I,onOpenChange:$,overlay:P||D?l.createElement(RV,{prefixCls:S,title:P,content:D}):null,transitionName:xa(w,"zoom-big",b.transitionName),"data-popover-inject":!0}),Cr(d,{onKeyDown:A=>{var O,N;l.isValidElement(d)&&((N=d==null?void 0:(O=d.props).onKeyDown)===null||N===void 0||N.call(O,A)),_(A)}})))}),_V=pfe;_V._InternalPanelDoNotUseOrYouWillBeFired=dfe;var gfe={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"},mfe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:gfe}))},Za=l.forwardRef(mfe),hfe=Le.ESC,vfe=Le.TAB;function bfe(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,a=e.autoFocus,o=e.overlayRef,i=l.useRef(!1),s=function(){if(t){var f,p;(f=n.current)===null||f===void 0||(p=f.focus)===null||p===void 0||p.call(f),r==null||r(!1)}},c=function(){var f;return(f=o.current)!==null&&f!==void 0&&f.focus?(o.current.focus(),i.current=!0,!0):!1},u=function(f){switch(f.keyCode){case hfe:s();break;case vfe:{var p=!1;i.current||(p=c()),p?f.preventDefault():s();break}}};l.useEffect(function(){return t?(window.addEventListener("keydown",u),a&&Ut(c,3),function(){window.removeEventListener("keydown",u),i.current=!1}):function(){i.current=!1}},[t])}var yfe=l.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,a=e.prefixCls,o=l.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),i=ea(t,o==null?void 0:o.ref);return se.createElement(se.Fragment,null,r&&se.createElement("div",{className:"".concat(a,"-arrow")}),se.cloneElement(o,{ref:gi(o)?i:void 0}))}),cu={adjustX:1,adjustY:1},uu=[0,0],Sfe={topLeft:{points:["bl","tl"],overflow:cu,offset:[0,-4],targetOffset:uu},top:{points:["bc","tc"],overflow:cu,offset:[0,-4],targetOffset:uu},topRight:{points:["br","tr"],overflow:cu,offset:[0,-4],targetOffset:uu},bottomLeft:{points:["tl","bl"],overflow:cu,offset:[0,4],targetOffset:uu},bottom:{points:["tc","bc"],overflow:cu,offset:[0,4],targetOffset:uu},bottomRight:{points:["tr","br"],overflow:cu,offset:[0,4],targetOffset:uu}},xfe=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function wfe(e,t){var n,r=e.arrow,a=r===void 0?!1:r,o=e.prefixCls,i=o===void 0?"rc-dropdown":o,s=e.transitionName,c=e.animation,u=e.align,d=e.placement,f=d===void 0?"bottomLeft":d,p=e.placements,g=p===void 0?Sfe:p,h=e.getPopupContainer,b=e.showAction,y=e.hideAction,S=e.overlayClassName,v=e.overlayStyle,x=e.visible,C=e.trigger,w=C===void 0?["hover"]:C,E=e.autoFocus,I=e.overlay,T=e.children,R=e.onVisibleChange,_=xt(e,xfe),$=se.useState(),P=re($,2),D=P[0],A=P[1],O="visible"in e?x:D,N=se.useRef(null),k=se.useRef(null),M=se.useRef(null);se.useImperativeHandle(t,function(){return N.current});var L=function(J){A(J),R==null||R(J)};bfe({visible:O,triggerRef:M,onVisibleChange:L,autoFocus:E,overlayRef:k});var F=function(J){var G=e.onOverlayClick;A(!1),G&&G(J)},j=function(){return se.createElement(yfe,{ref:k,overlay:I,prefixCls:i,arrow:a})},B=function(){return typeof I=="function"?j:j()},z=function(){var J=e.minOverlayWidthMatchTrigger,G=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?J:!G},H=function(){var J=e.openClassName;return J!==void 0?J:"".concat(i,"-open")},V=se.cloneElement(T,{className:ne((n=T.props)===null||n===void 0?void 0:n.className,O&&H()),ref:gi(T)?ea(M,T.ref):void 0}),te=y;return!te&&w.indexOf("contextMenu")!==-1&&(te=["click"]),se.createElement(tm,pe({builtinPlacements:g},_,{prefixCls:i,ref:N,popupClassName:ne(S,W({},"".concat(i,"-show-arrow"),a)),popupStyle:v,action:w,showAction:b,hideAction:te,popupPlacement:f,popupAlign:u,popupTransitionName:s,popupAnimation:c,popupVisible:O,stretch:z()?"minWidth":"",popup:B(),onPopupVisibleChange:L,onPopupClick:F,getPopupContainer:h}),V)}const $V=se.forwardRef(wfe);var OV=l.createContext(null);function NV(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function kV(e){var t=l.useContext(OV);return NV(t,e)}var Cfe=["children","locked"],hi=l.createContext(null);function Efe(e,t){var n=Z({},e);return Object.keys(t).forEach(function(r){var a=t[r];a!==void 0&&(n[r]=a)}),n}function gg(e){var t=e.children,n=e.locked,r=xt(e,Cfe),a=l.useContext(hi),o=_l(function(){return Efe(a,r)},[a,r],function(i,s){return!n&&(i[0]!==s[0]||!zo(i[1],s[1],!0))});return l.createElement(hi.Provider,{value:o},t)}var Ife=[],AV=l.createContext(null);function B0(){return l.useContext(AV)}var MV=l.createContext(Ife);function Kd(e){var t=l.useContext(MV);return l.useMemo(function(){return e!==void 0?[].concat(De(t),[e]):t},[t,e])}var PV=l.createContext(null),mO=l.createContext({});function v4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Vd(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),a=e.getAttribute("tabindex"),o=Number(a),i=null;return a&&!Number.isNaN(o)?i=o:r&&i===null&&(i=0),r&&e.disabled&&(i=null),i!==null&&(i>=0||t&&i<0)}return!1}function Tfe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=De(e.querySelectorAll("*")).filter(function(r){return v4(r,t)});return v4(e,t)&&n.unshift(e),n}var bR=Le.LEFT,yR=Le.RIGHT,SR=Le.UP,fv=Le.DOWN,pv=Le.ENTER,DV=Le.ESC,kf=Le.HOME,Af=Le.END,b4=[SR,fv,bR,yR];function Rfe(e,t,n,r){var a,o,i,s,c="prev",u="next",d="children",f="parent";if(e==="inline"&&r===pv)return{inlineTrigger:!0};var p=(a={},W(a,SR,c),W(a,fv,u),a),g=(o={},W(o,bR,n?u:c),W(o,yR,n?c:u),W(o,fv,d),W(o,pv,d),o),h=(i={},W(i,SR,c),W(i,fv,u),W(i,pv,d),W(i,DV,f),W(i,bR,n?d:f),W(i,yR,n?f:d),i),b={inline:p,horizontal:g,vertical:h,inlineSub:p,horizontalSub:h,verticalSub:h},y=(s=b["".concat(e).concat(t?"":"Sub")])===null||s===void 0?void 0:s[r];switch(y){case c:return{offset:-1,sibling:!0};case u:return{offset:1,sibling:!0};case f:return{offset:-1,sibling:!1};case d:return{offset:1,sibling:!1};default:return null}}function _fe(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function $fe(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function hO(e,t){var n=Tfe(e,!0);return n.filter(function(r){return t.has(r)})}function y4(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var a=hO(e,t),o=a.length,i=a.findIndex(function(s){return n===s});return r<0?i===-1?i=o-1:i-=1:r>0&&(i+=1),i=(i+o)%o,a[i]}var xR=function(t,n){var r=new Set,a=new Map,o=new Map;return t.forEach(function(i){var s=document.querySelector("[data-menu-id='".concat(NV(n,i),"']"));s&&(r.add(s),o.set(s,i),a.set(i,s))}),{elements:r,key2element:a,element2key:o}};function Ofe(e,t,n,r,a,o,i,s,c,u){var d=l.useRef(),f=l.useRef();f.current=t;var p=function(){Ut.cancel(d.current)};return l.useEffect(function(){return function(){p()}},[]),function(g){var h=g.which;if([].concat(b4,[pv,DV,kf,Af]).includes(h)){var b=o(),y=xR(b,r),S=y,v=S.elements,x=S.key2element,C=S.element2key,w=x.get(t),E=$fe(w,v),I=C.get(E),T=Rfe(e,i(I,!0).length===1,n,h);if(!T&&h!==kf&&h!==Af)return;(b4.includes(h)||[kf,Af].includes(h))&&g.preventDefault();var R=function(k){if(k){var M=k,L=k.querySelector("a");L!=null&&L.getAttribute("href")&&(M=L);var F=C.get(k);s(F),p(),d.current=Ut(function(){f.current===F&&M.focus()})}};if([kf,Af].includes(h)||T.sibling||!E){var _;!E||e==="inline"?_=a.current:_=_fe(E);var $,P=hO(_,v);h===kf?$=P[0]:h===Af?$=P[P.length-1]:$=y4(_,v,E,T.offset),R($)}else if(T.inlineTrigger)c(I);else if(T.offset>0)c(I,!0),p(),d.current=Ut(function(){y=xR(b,r);var N=E.getAttribute("aria-controls"),k=document.getElementById(N),M=y4(k,y.elements);R(M)},5);else if(T.offset<0){var D=i(I,!0),A=D[D.length-2],O=x.get(A);c(A,!1),R(O)}}u==null||u(g)}}function Nfe(e){Promise.resolve().then(e)}var vO="__RC_UTIL_PATH_SPLIT__",S4=function(t){return t.join(vO)},kfe=function(t){return t.split(vO)},wR="rc-menu-more";function Afe(){var e=l.useState({}),t=re(e,2),n=t[1],r=l.useRef(new Map),a=l.useRef(new Map),o=l.useState([]),i=re(o,2),s=i[0],c=i[1],u=l.useRef(0),d=l.useRef(!1),f=function(){d.current||n({})},p=l.useCallback(function(x,C){var w=S4(C);a.current.set(w,x),r.current.set(x,w),u.current+=1;var E=u.current;Nfe(function(){E===u.current&&f()})},[]),g=l.useCallback(function(x,C){var w=S4(C);a.current.delete(w),r.current.delete(x)},[]),h=l.useCallback(function(x){c(x)},[]),b=l.useCallback(function(x,C){var w=r.current.get(x)||"",E=kfe(w);return C&&s.includes(E[0])&&E.unshift(wR),E},[s]),y=l.useCallback(function(x,C){return x.filter(function(w){return w!==void 0}).some(function(w){var E=b(w,!0);return E.includes(C)})},[b]),S=function(){var C=De(r.current.keys());return s.length&&C.push(wR),C},v=l.useCallback(function(x){var C="".concat(r.current.get(x)).concat(vO),w=new Set;return De(a.current.keys()).forEach(function(E){E.startsWith(C)&&w.add(a.current.get(E))}),w},[]);return l.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:p,unregisterPath:g,refreshOverflowKeys:h,isSubPathKey:y,getKeyPath:b,getKeys:S,getSubPathKeys:v}}function qf(e){var t=l.useRef(e);t.current=e;var n=l.useCallback(function(){for(var r,a=arguments.length,o=new Array(a),i=0;i1&&(v.motionAppear=!1);var x=v.onVisibleChanged;return v.onVisibleChanged=function(C){return!p.current&&!C&&y(!0),x==null?void 0:x(C)},b?null:l.createElement(gg,{mode:o,locked:!p.current},l.createElement(Qr,pe({visible:S},v,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(C){var w=C.className,E=C.style;return l.createElement(bO,{id:t,className:w,style:E},a)}))}var Xfe=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Zfe=["active"],Qfe=l.forwardRef(function(e,t){var n,r=e.style,a=e.className,o=e.title,i=e.eventKey;e.warnKey;var s=e.disabled,c=e.internalPopupClose,u=e.children,d=e.itemIcon,f=e.expandIcon,p=e.popupClassName,g=e.popupOffset,h=e.popupStyle,b=e.onClick,y=e.onMouseEnter,S=e.onMouseLeave,v=e.onTitleClick,x=e.onTitleMouseEnter,C=e.onTitleMouseLeave,w=xt(e,Xfe),E=kV(i),I=l.useContext(hi),T=I.prefixCls,R=I.mode,_=I.openKeys,$=I.disabled,P=I.overflowDisabled,D=I.activeKey,A=I.selectedKeys,O=I.itemIcon,N=I.expandIcon,k=I.onItemClick,M=I.onOpenChange,L=I.onActive,F=l.useContext(mO),j=F._internalRenderSubMenuItem,B=l.useContext(PV),z=B.isSubPathKey,H=Kd(),V="".concat(T,"-submenu"),te=$||s,Y=l.useRef(),J=l.useRef(),G=d??O,U=f??N,q=_.includes(i),X=!P&&q,Q=z(A,i),ee=LV(i,te,x,C),oe=ee.active,le=xt(ee,Zfe),fe=l.useState(!1),ce=re(fe,2),Te=ce[0],Se=ce[1],ve=function(xe){te||Se(xe)},ae=function(xe){ve(!0),y==null||y({key:i,domEvent:xe})},ie=function(xe){ve(!1),S==null||S({key:i,domEvent:xe})},ue=l.useMemo(function(){return oe||(R!=="inline"?Te||z([D],i):!1)},[R,oe,D,Te,i,z]),ye=FV(H.length),Ee=function(xe){te||(v==null||v({key:i,domEvent:xe}),R==="inline"&&M(i,!q))},Me=qf(function(ke){b==null||b(pb(ke)),k(ke)}),Ie=function(xe){R!=="inline"&&M(i,xe)},Ce=function(){L(i)},me=E&&"".concat(E,"-popup"),we=l.createElement("div",pe({role:"menuitem",style:ye,className:"".concat(V,"-title"),tabIndex:te?null:-1,ref:Y,title:typeof o=="string"?o:null,"data-menu-id":P&&E?null:E,"aria-expanded":X,"aria-haspopup":!0,"aria-controls":me,"aria-disabled":te,onClick:Ee,onFocus:Ce},le),o,l.createElement(jV,{icon:R!=="horizontal"?U:void 0,props:Z(Z({},e),{},{isOpen:X,isSubMenu:!0})},l.createElement("i",{className:"".concat(V,"-arrow")}))),_e=l.useRef(R);if(R!=="inline"&&H.length>1?_e.current="vertical":_e.current=R,!P){var Ne=_e.current;we=l.createElement(Kfe,{mode:Ne,prefixCls:V,visible:!c&&X&&R!=="inline",popupClassName:p,popupOffset:g,popupStyle:h,popup:l.createElement(gg,{mode:Ne==="horizontal"?"vertical":Ne},l.createElement(bO,{id:me,ref:J},u)),disabled:te,onVisibleChange:Ie},we)}var he=l.createElement(di.Item,pe({ref:t,role:"none"},w,{component:"li",style:r,className:ne(V,"".concat(V,"-").concat(R),a,(n={},W(n,"".concat(V,"-open"),X),W(n,"".concat(V,"-active"),ue),W(n,"".concat(V,"-selected"),Q),W(n,"".concat(V,"-disabled"),te),n)),onMouseEnter:ae,onMouseLeave:ie}),we,!P&&l.createElement(Yfe,{id:me,open:X,keyPath:H},u));return j&&(he=j(he,e,{selected:Q,active:ue,open:X,disabled:te})),l.createElement(gg,{onItemClick:Me,mode:R==="horizontal"?"vertical":R,itemIcon:G,expandIcon:U},he)}),z0=l.forwardRef(function(e,t){var n=e.eventKey,r=e.children,a=Kd(n),o=yO(r,a),i=B0();l.useEffect(function(){if(i)return i.registerPath(n,a),function(){i.unregisterPath(n,a)}},[a]);var s;return i?s=o:s=l.createElement(Qfe,pe({ref:t},e),o),l.createElement(MV.Provider,{value:a},s)});function SO(e){var t=e.className,n=e.style,r=l.useContext(hi),a=r.prefixCls,o=B0();return o?null:l.createElement("li",{role:"separator",className:ne("".concat(a,"-item-divider"),t),style:n})}var Jfe=["className","title","eventKey","children"],epe=l.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var a=e.children,o=xt(e,Jfe),i=l.useContext(hi),s=i.prefixCls,c="".concat(s,"-item-group");return l.createElement("li",pe({ref:t,role:"presentation"},o,{onClick:function(d){return d.stopPropagation()},className:ne(c,n)}),l.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:typeof r=="string"?r:void 0},r),l.createElement("ul",{role:"group",className:"".concat(c,"-list")},a))}),xO=l.forwardRef(function(e,t){var n=e.eventKey,r=e.children,a=Kd(n),o=yO(r,a),i=B0();return i?o:l.createElement(epe,pe({ref:t},On(e,["warnKey"])),o)}),tpe=["label","children","key","type"];function CR(e,t){var n=t.item,r=t.group,a=t.submenu,o=t.divider;return(e||[]).map(function(i,s){if(i&&ht(i)==="object"){var c=i,u=c.label,d=c.children,f=c.key,p=c.type,g=xt(c,tpe),h=f??"tmp-".concat(s);return d||p==="group"?p==="group"?l.createElement(r,pe({key:h},g,{title:u}),CR(d,t)):l.createElement(a,pe({key:h},g,{title:u}),CR(d,t)):p==="divider"?l.createElement(o,pe({key:h},g)):l.createElement(n,pe({key:h},g),u)}return null}).filter(function(i){return i})}function w4(e,t,n,r){var a=e,o=Z({divider:SO,item:am,group:xO,submenu:z0},r);return t&&(a=CR(t,o)),yO(a,n)}var npe=["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"],Fl=[],rpe=l.forwardRef(function(e,t){var n,r,a=e,o=a.prefixCls,i=o===void 0?"rc-menu":o,s=a.rootClassName,c=a.style,u=a.className,d=a.tabIndex,f=d===void 0?0:d,p=a.items,g=a.children,h=a.direction,b=a.id,y=a.mode,S=y===void 0?"vertical":y,v=a.inlineCollapsed,x=a.disabled,C=a.disabledOverflow,w=a.subMenuOpenDelay,E=w===void 0?.1:w,I=a.subMenuCloseDelay,T=I===void 0?.1:I,R=a.forceSubMenuRender,_=a.defaultOpenKeys,$=a.openKeys,P=a.activeKey,D=a.defaultActiveFirst,A=a.selectable,O=A===void 0?!0:A,N=a.multiple,k=N===void 0?!1:N,M=a.defaultSelectedKeys,L=a.selectedKeys,F=a.onSelect,j=a.onDeselect,B=a.inlineIndent,z=B===void 0?24:B,H=a.motion,V=a.defaultMotions,te=a.triggerSubMenuAction,Y=te===void 0?"hover":te,J=a.builtinPlacements,G=a.itemIcon,U=a.expandIcon,q=a.overflowedIndicator,X=q===void 0?"...":q,Q=a.overflowedIndicatorPopupClassName,ee=a.getPopupContainer,oe=a.onClick,le=a.onOpenChange,fe=a.onKeyDown;a.openAnimation,a.openTransitionName;var ce=a._internalRenderMenuItem,Te=a._internalRenderSubMenuItem,Se=a._internalComponents,ve=xt(a,npe),ae=l.useMemo(function(){return[w4(g,p,Fl,Se),w4(g,p,Fl,{})]},[g,p,Se]),ie=re(ae,2),ue=ie[0],ye=ie[1],Ee=l.useState(!1),Me=re(Ee,2),Ie=Me[0],Ce=Me[1],me=l.useRef(),we=Pfe(b),_e=h==="rtl",Ne=sn(_,{value:$,postState:function(jt){return jt||Fl}}),he=re(Ne,2),ke=he[0],xe=he[1],ge=function(jt){var Bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function wt(){xe(jt),le==null||le(jt)}Bt?Lr.flushSync(wt):wt()},Pe=l.useState(ke),Ve=re(Pe,2),Ae=Ve[0],be=Ve[1],Oe=l.useRef(!1),Fe=l.useMemo(function(){return(S==="inline"||S==="vertical")&&v?["vertical",v]:[S,!1]},[S,v]),Ke=re(Fe,2),He=Ke[0],ze=Ke[1],Ze=He==="inline",je=l.useState(He),Je=re(je,2),mt=Je[0],ft=Je[1],qe=l.useState(ze),We=re(qe,2),Qe=We[0],ct=We[1];l.useEffect(function(){ft(He),ct(ze),Oe.current&&(Ze?xe(Ae):ge(Fl))},[He,ze]);var Rt=l.useState(0),$t=re(Rt,2),vt=$t[0],lt=$t[1],ot=vt>=ue.length-1||mt!=="horizontal"||C;l.useEffect(function(){Ze&&be(ke)},[ke]),l.useEffect(function(){return Oe.current=!0,function(){Oe.current=!1}},[]);var et=Afe(),bt=et.registerPath,rt=et.unregisterPath,St=et.refreshOverflowKeys,Et=et.isSubPathKey,tt=et.getKeyPath,at=et.getKeys,Ye=et.getSubPathKeys,Ge=l.useMemo(function(){return{registerPath:bt,unregisterPath:rt}},[bt,rt]),yt=l.useMemo(function(){return{isSubPathKey:Et}},[Et]);l.useEffect(function(){St(ot?Fl:ue.slice(vt+1).map(function(Gt){return Gt.key}))},[vt,ot]);var Tt=sn(P||D&&((n=ue[0])===null||n===void 0?void 0:n.key),{value:P}),Pt=re(Tt,2),en=Pt[0],rn=Pt[1],Vt=qf(function(Gt){rn(Gt)}),tn=qf(function(){rn(void 0)});l.useImperativeHandle(t,function(){return{list:me.current,focus:function(jt){var Bt,wt=at(),Ct=xR(wt,we),cn=Ct.elements,Rn=Ct.key2element,ur=Ct.element2key,dr=hO(me.current,cn),yr=en??(dr[0]?ur.get(dr[0]):(Bt=ue.find(function(pt){return!pt.props.disabled}))===null||Bt===void 0?void 0:Bt.key),Ht=Rn.get(yr);if(yr&&Ht){var Lt;Ht==null||(Lt=Ht.focus)===null||Lt===void 0||Lt.call(Ht,jt)}}}});var It=sn(M||[],{value:L,postState:function(jt){return Array.isArray(jt)?jt:jt==null?Fl:[jt]}}),_t=re(It,2),kt=_t[0],Tn=_t[1],Qn=function(jt){if(O){var Bt=jt.key,wt=kt.includes(Bt),Ct;k?wt?Ct=kt.filter(function(Rn){return Rn!==Bt}):Ct=[].concat(De(kt),[Bt]):Ct=[Bt],Tn(Ct);var cn=Z(Z({},jt),{},{selectedKeys:Ct});wt?j==null||j(cn):F==null||F(cn)}!k&&ke.length&&mt!=="inline"&&ge(Fl)},cr=qf(function(Gt){oe==null||oe(pb(Gt)),Qn(Gt)}),Jn=qf(function(Gt,jt){var Bt=ke.filter(function(Ct){return Ct!==Gt});if(jt)Bt.push(Gt);else if(mt!=="inline"){var wt=Ye(Gt);Bt=Bt.filter(function(Ct){return!wt.has(Ct)})}zo(ke,Bt,!0)||ge(Bt,!0)}),Hr=function(jt,Bt){var wt=Bt??!ke.includes(jt);Jn(jt,wt)},Mr=Ofe(mt,en,_e,we,me,at,tt,rn,Hr,fe);l.useEffect(function(){Ce(!0)},[]);var er=l.useMemo(function(){return{_internalRenderMenuItem:ce,_internalRenderSubMenuItem:Te}},[ce,Te]),Kt=mt!=="horizontal"||C?ue:ue.map(function(Gt,jt){return l.createElement(gg,{key:Gt.key,overflowDisabled:jt>vt},Gt)}),Ft=l.createElement(di,pe({id:b,ref:me,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:am,className:ne(i,"".concat(i,"-root"),"".concat(i,"-").concat(mt),u,(r={},W(r,"".concat(i,"-inline-collapsed"),Qe),W(r,"".concat(i,"-rtl"),_e),r),s),dir:h,style:c,role:"menu",tabIndex:f,data:Kt,renderRawItem:function(jt){return jt},renderRawRest:function(jt){var Bt=jt.length,wt=Bt?ue.slice(-Bt):null;return l.createElement(z0,{eventKey:wR,title:X,disabled:ot,internalPopupClose:Bt===0,popupClassName:Q},wt)},maxCount:mt!=="horizontal"||C?di.INVALIDATE:di.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(jt){lt(jt)},onKeyDown:Mr},ve));return l.createElement(mO.Provider,{value:er},l.createElement(OV.Provider,{value:we},l.createElement(gg,{prefixCls:i,rootClassName:s,mode:mt,openKeys:ke,rtl:_e,disabled:x,motion:Ie?H:null,defaultMotions:Ie?V:null,activeKey:en,onActive:Vt,onInactive:tn,selectedKeys:kt,inlineIndent:z,subMenuOpenDelay:E,subMenuCloseDelay:T,forceSubMenuRender:R,builtinPlacements:J,triggerSubMenuAction:Y,getPopupContainer:ee,itemIcon:G,expandIcon:U,onItemClick:cr,onOpenChange:Jn},l.createElement(PV.Provider,{value:yt},Ft),l.createElement("div",{style:{display:"none"},"aria-hidden":!0},l.createElement(AV.Provider,{value:Ge},ye)))))}),Yd=rpe;Yd.Item=am;Yd.SubMenu=z0;Yd.ItemGroup=xO;Yd.Divider=SO;var ape={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"},ope=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:ape}))},ipe=l.forwardRef(ope),spe={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"},lpe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:spe}))},Ts=l.forwardRef(lpe);const cpe=e=>!isNaN(parseFloat(e))&&isFinite(e),zV=l.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var upe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),U0=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:a,children:o,defaultCollapsed:i=!1,theme:s="dark",style:c={},collapsible:u=!1,reverseArrow:d=!1,width:f=200,collapsedWidth:p=80,zeroWidthTriggerStyle:g,breakpoint:h,onCollapse:b,onBreakpoint:y}=e,S=upe(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:v}=l.useContext(zV),[x,C]=l.useState("collapsed"in e?e.collapsed:i),[w,E]=l.useState(!1);l.useEffect(()=>{"collapsed"in e&&C(e.collapsed)},[e.collapsed]);const I=(D,A)=>{"collapsed"in e||C(D),b==null||b(D,A)},T=l.useRef();T.current=D=>{E(D.matches),y==null||y(D.matches),x!==D.matches&&I(D.matches,"responsive")},l.useEffect(()=>{function D(O){return T.current(O)}let A;if(typeof window<"u"){const{matchMedia:O}=window;if(O&&h&&h in C4){A=O(`screen and (max-width: ${C4[h]})`);try{A.addEventListener("change",D)}catch{A.addListener(D)}D(A)}}return()=>{try{A==null||A.removeEventListener("change",D)}catch{A==null||A.removeListener(D)}}},[h]),l.useEffect(()=>{const D=dpe("ant-sider-");return v.addSider(D),()=>v.removeSider(D)},[]);const R=()=>{I(!x,"clickTrigger")},{getPrefixCls:_}=l.useContext(st),$=()=>{const D=_("layout-sider",n),A=On(S,["collapsed"]),O=x?p:f,N=cpe(O)?`${O}px`:String(O),k=parseFloat(String(p||0))===0?l.createElement("span",{onClick:R,className:ne(`${D}-zero-width-trigger`,`${D}-zero-width-trigger-${d?"right":"left"}`),style:g},a||l.createElement(ipe,null)):null,F={expanded:d?l.createElement(Za,null):l.createElement(Ts,null),collapsed:d?l.createElement(Ts,null):l.createElement(Za,null)}[x?"collapsed":"expanded"],j=a!==null?k||l.createElement("div",{className:`${D}-trigger`,onClick:R,style:{width:N}},a||F):null,B=Object.assign(Object.assign({},c),{flex:`0 0 ${N}`,maxWidth:N,minWidth:N,width:N}),z=ne(D,`${D}-${s}`,{[`${D}-collapsed`]:!!x,[`${D}-has-trigger`]:u&&a!==null&&!k,[`${D}-below`]:!!w,[`${D}-zero-width`]:parseFloat(N)===0},r);return l.createElement("aside",Object.assign({className:z},A,{style:B,ref:t}),l.createElement("div",{className:`${D}-children`},o),u||w&&k?j:null)},P=l.useMemo(()=>({siderCollapsed:x}),[x]);return l.createElement(H0.Provider,{value:P},$())});var fpe={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"},ppe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:fpe}))},wO=l.forwardRef(ppe);const gb=l.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var gpe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,className:n,dashed:r}=e,a=gpe(e,["prefixCls","className","dashed"]),{getPrefixCls:o}=l.useContext(st),i=o("menu",t),s=ne({[`${i}-item-divider-dashed`]:!!r},n);return l.createElement(SO,Object.assign({className:s},a))},UV=e=>{var t;const{className:n,children:r,icon:a,title:o,danger:i}=e,{prefixCls:s,firstLevel:c,direction:u,disableMenuItemTitleTooltip:d,inlineCollapsed:f}=l.useContext(gb),p=v=>{const x=l.createElement("span",{className:`${s}-title-content`},r);return(!a||l.isValidElement(r)&&r.type==="span")&&r&&v&&c&&typeof r=="string"?l.createElement("div",{className:`${s}-inline-collapsed-noicon`},r.charAt(0)):x},{siderCollapsed:g}=l.useContext(H0);let h=o;typeof o>"u"?h=c?r:"":o===!1&&(h="");const b={title:h};!g&&!f&&(b.title=null,b.open=!1);const y=vr(r).length;let S=l.createElement(am,Object.assign({},On(e,["title","icon","danger"]),{className:ne({[`${s}-item-danger`]:i,[`${s}-item-only-child`]:(a?y+1:y)===1},n),title:typeof o=="string"?o:void 0}),Cr(a,{className:ne(l.isValidElement(a)?(t=a.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),p(f));return d||(S=l.createElement(Zt,Object.assign({},b,{placement:u==="rtl"?"left":"right",overlayClassName:`${s}-inline-collapsed-tooltip`}),S)),S};var mpe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{children:n}=e,r=mpe(e,["children"]),a=l.useContext(mb),o=l.useMemo(()=>Object.assign(Object.assign({},a),r),[a,r.prefixCls,r.mode,r.selectable,r.rootClassName]),i=Yte(n),s=$s(t,i?n.ref:null);return l.createElement(mb.Provider,{value:o},l.createElement(Ui,{space:!0},i?l.cloneElement(n,{ref:s}):n))}),hpe=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:a,lineWidth:o,lineType:i,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${K(o)} ${i} ${a}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover, + `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},n1(zt(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const Ide=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:a,controlHeightSM:o,controlHeightLG:i,paddingXXS:s,controlPaddingHorizontal:c,zIndexPopupBase:u,colorText:d,fontWeightStrong:f,controlItemBgActive:p,controlItemBgHover:g,colorBgContainer:h,colorFillSecondary:b,colorBgContainerDisabled:y,colorTextDisabled:S}=e,v=s*2,x=r*2,w=Math.min(a-v,a-x),C=Math.min(o-v,o-x),E=Math.min(i-v,i-x);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:u+50,optionSelectedColor:d,optionSelectedFontWeight:f,optionSelectedBg:p,optionActiveBg:g,optionPadding:`${(a-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:a,selectorBg:h,clearBg:h,singleItemHeightLG:i,multipleItemBg:b,multipleItemBorderColor:"transparent",multipleItemHeight:w,multipleItemHeightSM:C,multipleItemHeightLG:E,multipleSelectorBgDisabled:y,multipleItemColorDisabled:S,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25)}},gV=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:a}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${K(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${K(a)} ${t.activeShadowColor}`,outline:0}}}},g4=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},gV(e,t))}),Tde=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},gV(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),g4(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),g4(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeShadowColor:e.colorWarningOutline})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${K(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),mV=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${K(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},m4=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},mV(e,t))}),Rde=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},mV(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),m4(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),m4(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${K(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),_de=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",borderColor:"transparent"},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${K(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),$de=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},Tde(e)),Rde(e)),_de(e))}),Ode=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},Nde=e=>{const{componentCls:t}=e;return{[`${t}-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"}}}},kde=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:a}=e;return{[n]:Object.assign(Object.assign({},nn(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},Ode(e)),Nde(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},wo),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},wo),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},zd()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[a]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},[`&:hover ${n}-clear`]:{opacity:1,background:e.colorBgBase}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}},Ade=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},kde(e),Ede(e),Cde(e),Sde(e),{[`${t}-rtl`]:{direction:"rtl"}},Yg(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},hV=on("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=zt(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Ade(r),$de(r)]},Ide,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var Mde={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"},Pde=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Mde}))},am=l.forwardRef(Pde),Dde={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"},Lde=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Dde}))},L0=l.forwardRef(Lde),Fde={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"},jde=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Fde}))},om=l.forwardRef(jde);function fO(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:a,loading:o,multiple:i,hasFeedback:s,prefixCls:c,showSuffixIcon:u,feedbackIcon:d,showArrow:f,componentName:p}=e;const g=n??l.createElement(Pc,null),h=v=>t===null&&!s&&!f?null:l.createElement(l.Fragment,null,u!==!1&&v,s&&d);let b=null;if(t!==void 0)b=h(t);else if(o)b=h(l.createElement(Ui,{spin:!0}));else{const v=`${c}-suffix`;b=x=>{let{open:w,showSearch:C}=x;return h(w&&C?l.createElement(om,{className:v}):l.createElement(L0,{className:v}))}}let y=null;r!==void 0?y=r:i?y=l.createElement(am,null):y=null;let S=null;return a!==void 0?S=a:S=l.createElement(ta,null),{clearIcon:g,suffixIcon:b,itemIcon:y,removeIcon:S}}function vV(e,t){return t!==void 0?t:e!==null}var Bde=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const{prefixCls:r,bordered:a,className:o,rootClassName:i,getPopupContainer:s,popupClassName:c,dropdownClassName:u,listHeight:d=256,placement:f,listItemHeight:p,size:g,disabled:h,notFoundContent:b,status:y,builtinPlacements:S,dropdownMatchSelectWidth:v,popupMatchSelectWidth:x,direction:w,style:C,allowClear:E,variant:I,dropdownStyle:T,transitionName:R,tagRender:_,maxCount:$}=e,P=Bde(e,["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:D,getPrefixCls:A,renderEmpty:O,direction:N,virtual:k,popupMatchSelectWidth:M,popupOverflow:L,select:F}=l.useContext(st),[,j]=ra(),B=p??(j==null?void 0:j.controlHeight),z=A("select",r),H=A(),V=w??N,{compactSize:te,compactItemClassnames:Y}=Ns(z,V),[J,G]=Dc("select",I,a),U=Un(z),[q,X,Q]=hV(z,U),ee=l.useMemo(()=>{const{mode:me}=e;if(me!=="combobox")return me===bV?"combobox":me},[e.mode]),oe=ee==="multiple"||ee==="tags",le=vV(e.suffixIcon,e.showArrow),fe=(n=x??v)!==null&&n!==void 0?n:M,{status:ce,hasFeedback:Ie,isFormItemInput:be,feedbackIcon:he}=l.useContext(zr),ae=Nl(ce,y);let ie;b!==void 0?ie=b:ee==="combobox"?ie=null:ie=(O==null?void 0:O("Select"))||l.createElement(D0,{componentName:"Select"});const{suffixIcon:ue,itemIcon:xe,removeIcon:we,clearIcon:Me}=fO(Object.assign(Object.assign({},P),{multiple:oe,hasFeedback:Ie,feedbackIcon:he,showSuffixIcon:le,prefixCls:z,componentName:"Select"})),Ce=E===!0?{clearIcon:Me}:E,De=On(P,["suffixIcon","itemIcon"]),ye=ne(c||u,{[`${z}-dropdown-${V}`]:V==="rtl"},i,Q,U,X),ve=Er(me=>{var _e;return(_e=g??te)!==null&&_e!==void 0?_e:me}),$e=l.useContext(Jr),Ee=h??$e,ge=ne({[`${z}-lg`]:ve==="large",[`${z}-sm`]:ve==="small",[`${z}-rtl`]:V==="rtl",[`${z}-${J}`]:G,[`${z}-in-form-item`]:be},Ts(z,ae,Ie),Y,F==null?void 0:F.className,o,i,Q,U,X),Ne=l.useMemo(()=>f!==void 0?f:V==="rtl"?"bottomRight":"bottomLeft",[f,V]),[Re]=xi("SelectLike",T==null?void 0:T.zIndex);return q(l.createElement(dO,Object.assign({ref:t,virtual:k,showSearch:F==null?void 0:F.showSearch},De,{style:Object.assign(Object.assign({},F==null?void 0:F.style),C),dropdownMatchSelectWidth:fe,transitionName:Ca(H,"slide-up",R),builtinPlacements:dV(S,L),listHeight:d,listItemHeight:B,mode:ee,prefixCls:z,placement:Ne,direction:V,suffixIcon:ue,menuItemSelectedIcon:xe,removeIcon:we,allowClear:Ce,notFoundContent:ie,className:ge,getPopupContainer:s||D,dropdownClassName:ye,disabled:Ee,dropdownStyle:Object.assign(Object.assign({},T),{zIndex:Re}),maxCount:oe?$:void 0,tagRender:oe?_:void 0})))},Ar=l.forwardRef(zde),Hde=tm(Ar);Ar.SECRET_COMBOBOX_MODE_DO_NOT_USE=bV;Ar.Option=uO;Ar.OptGroup=cO;Ar._InternalPanelDoNotUseOrYouWillBeFired=Hde;const Tc=["xxl","xl","lg","md","sm","xs"],Ude=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),Vde=e=>{const t=e,n=[].concat(Tc).reverse();return n.forEach((r,a)=>{const o=r.toUpperCase(),i=`screen${o}Min`,s=`screen${o}`;if(!(t[i]<=t[s]))throw new Error(`${i}<=${s} fails : !(${t[i]}<=${t[s]})`);if(a{const n=new Map;let r=-1,a={};return{matchHandlers:{},dispatch(o){return a=o,n.forEach(i=>i(a)),n.size>=1},subscribe(o){return n.size||this.register(),r+=1,n.set(r,o),o(a),r},unsubscribe(o){n.delete(o),n.size||this.unregister()},unregister(){Object.keys(t).forEach(o=>{const i=t[o],s=this.matchHandlers[i];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),n.clear()},register(){Object.keys(t).forEach(o=>{const i=t[o],s=u=>{let{matches:d}=u;this.dispatch(Object.assign(Object.assign({},a),{[o]:d}))},c=window.matchMedia(i);c.addListener(s),this.matchHandlers[i]={mql:c,listener:s},s(c)})},responsiveMap:t}},[e])}function pO(){const[,e]=l.useReducer(t=>t+1,0);return e}function F0(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=l.useRef({}),n=pO(),r=yV();return Xt(()=>{const a=r.subscribe(o=>{t.current=o,e&&n()});return()=>r.unsubscribe(a)},[]),t.current}const pb=e=>e?typeof e=="function"?e():e:null;function gO(e){var t=e.children,n=e.prefixCls,r=e.id,a=e.overlayInnerStyle,o=e.className,i=e.style;return l.createElement("div",{className:ne("".concat(n,"-content"),o),style:i},l.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:a},typeof t=="function"?t():t))}var su={shiftX:64,adjustY:1},lu={adjustX:1,shiftY:!0},_o=[0,0],Wde={left:{points:["cr","cl"],overflow:lu,offset:[-4,0],targetOffset:_o},right:{points:["cl","cr"],overflow:lu,offset:[4,0],targetOffset:_o},top:{points:["bc","tc"],overflow:su,offset:[0,-4],targetOffset:_o},bottom:{points:["tc","bc"],overflow:su,offset:[0,4],targetOffset:_o},topLeft:{points:["bl","tl"],overflow:su,offset:[0,-4],targetOffset:_o},leftTop:{points:["tr","tl"],overflow:lu,offset:[-4,0],targetOffset:_o},topRight:{points:["br","tr"],overflow:su,offset:[0,-4],targetOffset:_o},rightTop:{points:["tl","tr"],overflow:lu,offset:[4,0],targetOffset:_o},bottomRight:{points:["tr","br"],overflow:su,offset:[0,4],targetOffset:_o},rightBottom:{points:["bl","br"],overflow:lu,offset:[4,0],targetOffset:_o},bottomLeft:{points:["tl","bl"],overflow:su,offset:[0,4],targetOffset:_o},leftBottom:{points:["br","bl"],overflow:lu,offset:[-4,0],targetOffset:_o}},Gde=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],qde=function(t,n){var r=t.overlayClassName,a=t.trigger,o=a===void 0?["hover"]:a,i=t.mouseEnterDelay,s=i===void 0?0:i,c=t.mouseLeaveDelay,u=c===void 0?.1:c,d=t.overlayStyle,f=t.prefixCls,p=f===void 0?"rc-tooltip":f,g=t.children,h=t.onVisibleChange,b=t.afterVisibleChange,y=t.transitionName,S=t.animation,v=t.motion,x=t.placement,w=x===void 0?"right":x,C=t.align,E=C===void 0?{}:C,I=t.destroyTooltipOnHide,T=I===void 0?!1:I,R=t.defaultVisible,_=t.getTooltipContainer,$=t.overlayInnerStyle;t.arrowContent;var P=t.overlay,D=t.id,A=t.showArrow,O=A===void 0?!0:A,N=xt(t,Gde),k=l.useRef(null);l.useImperativeHandle(n,function(){return k.current});var M=Z({},N);"visible"in t&&(M.popupVisible=t.visible);var L=function(){return l.createElement(gO,{key:"content",prefixCls:p,id:D,overlayInnerStyle:$},P)};return l.createElement(rm,pe({popupClassName:r,prefixCls:p,popup:L,action:o,builtinPlacements:Wde,popupPlacement:w,ref:k,popupAlign:E,getPopupContainer:_,onPopupVisibleChange:h,afterPopupVisibleChange:b,popupTransitionName:y,popupAnimation:S,popupMotion:v,defaultPopupVisible:R,autoDestroy:T,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:s,arrow:O},M),g)};const Kde=l.forwardRef(qde);function j0(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,a=t/2,o=0,i=a,s=r*1/Math.sqrt(2),c=a-r*(1-1/Math.sqrt(2)),u=a-n*(1/Math.sqrt(2)),d=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*a-u,p=d,g=2*a-s,h=c,b=2*a-o,y=i,S=a*Math.sqrt(2)+r*(Math.sqrt(2)-2),v=r*(Math.sqrt(2)-1),x=`polygon(${v}px 100%, 50% ${v}px, ${2*a-v}px 100%, ${v}px 100%)`,w=`path('M ${o} ${i} A ${r} ${r} 0 0 0 ${s} ${c} L ${u} ${d} A ${n} ${n} 0 0 1 ${f} ${p} L ${g} ${h} A ${r} ${r} 0 0 0 ${b} ${y} Z')`;return{arrowShadowWidth:S,arrowPath:w,arrowPolygon:x}}const SV=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:a,arrowPath:o,arrowShadowWidth:i,borderRadiusXS:s,calc:c}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[a,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${K(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},xV=8;function B0(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?xV:r}}function dh(e,t){return e?t:{}}function mO(e,t,n){const{componentCls:r,boxShadowPopoverArrow:a,arrowOffsetVertical:o,arrowOffsetHorizontal:i}=e,{arrowDistance:s=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},SV(e,t,a)),{"&:before":{background:t}})]},dh(!!c.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":i,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${K(i)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),dh(!!c.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":i,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${K(i)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),dh(!!c.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:o},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:o}})),dh(!!c.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:o},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:o}}))}}function Yde(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const a=r&&typeof r=="object"?r:{},o={};switch(e){case"top":case"bottom":o.shiftX=t.arrowOffsetHorizontal*2+n,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=t.arrowOffsetVertical*2+n,o.shiftX=!0,o.adjustX=!0;break}const i=Object.assign(Object.assign({},o),a);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const h4={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"]}},Xde={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"]}},Zde=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function wV(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:a,borderRadius:o,visibleFirst:i}=e,s=t/2,c={};return Object.keys(h4).forEach(u=>{const d=r&&Xde[u]||h4[u],f=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(c[u]=f,Zde.has(u)&&(f.autoArrow=!1),u){case"top":case"topLeft":case"topRight":f.offset[1]=-s-a;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=s+a;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-s-a;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=s+a;break}const p=B0({contentRadius:o,limitVerticalRadius:!0});if(r)switch(u){case"topLeft":case"bottomLeft":f.offset[0]=-p.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":f.offset[0]=p.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":f.offset[1]=-p.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":f.offset[1]=p.arrowOffsetHorizontal*2-s;break}f.overflow=Yde(u,p,t,n),i&&(f.htmlRegion="visibleFirst")}),c}const Qde=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:a,tooltipBorderRadius:o,zIndexPopup:i,controlHeight:s,boxShadowSecondary:c,paddingSM:u,paddingXS:d}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},nn(e)),{position:"absolute",zIndex:i,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":a,[`${t}-inner`]:{minWidth:"1em",minHeight:s,padding:`${K(e.calc(u).div(2).equal())} ${K(d)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:o,boxShadow:c,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(o,xV)}},[`${t}-content`]:{position:"relative"}}),RH(e,(f,p)=>{let{darkColor:g}=p;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:g},[`${t}-arrow`]:{"--antd-arrow-background-color":g}}}})),{"&-rtl":{direction:"rtl"}})},mO(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Jde=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},B0({contentRadius:e.borderRadius,limitVerticalRadius:!0})),j0(zt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),CV=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return on("Tooltip",r=>{const{borderRadius:a,colorTextLightSolid:o,colorBgSpotlight:i}=r,s=zt(r,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:a,tooltipBg:i});return[Qde(s),qd(r,"zoom-big-fast")]},Jde,{resetStyle:!1,injectStyle:t})(e)},efe=fg.map(e=>`${e}-inverse`),tfe=["success","processing","error","default","warning"];function EV(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Pe(efe),Pe(fg)).includes(e):fg.includes(e)}function nfe(e){return tfe.includes(e)}function IV(e,t){const n=EV(t),r=ne({[`${e}-${t}`]:t&&n}),a={},o={};return t&&!n&&(a.background=t,o["--antd-arrow-background-color"]=t),{className:r,overlayStyle:a,arrowStyle:o}}const rfe=e=>{const{prefixCls:t,className:n,placement:r="top",title:a,color:o,overlayInnerStyle:i}=e,{getPrefixCls:s}=l.useContext(st),c=s("tooltip",t),[u,d,f]=CV(c),p=IV(c,o),g=p.arrowStyle,h=Object.assign(Object.assign({},i),p.overlayStyle),b=ne(d,f,c,`${c}-pure`,`${c}-placement-${r}`,n,p.className);return u(l.createElement("div",{className:b,style:g},l.createElement("div",{className:`${c}-arrow`}),l.createElement(gO,Object.assign({},e,{className:d,prefixCls:c,overlayInnerStyle:h}),a)))};var afe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r;const{prefixCls:a,openClassName:o,getTooltipContainer:i,overlayClassName:s,color:c,overlayInnerStyle:u,children:d,afterOpenChange:f,afterVisibleChange:p,destroyTooltipOnHide:g,arrow:h=!0,title:b,overlay:y,builtinPlacements:S,arrowPointAtCenter:v=!1,autoAdjustOverflow:x=!0}=e,w=!!h,[,C]=ra(),{getPopupContainer:E,getPrefixCls:I,direction:T}=l.useContext(st),R=$l(),_=l.useRef(null),$=()=>{var ie;(ie=_.current)===null||ie===void 0||ie.forceAlign()};l.useImperativeHandle(t,()=>{var ie;return{forceAlign:$,forcePopupAlign:()=>{R.deprecated(!1,"forcePopupAlign","forceAlign"),$()},nativeElement:(ie=_.current)===null||ie===void 0?void 0:ie.nativeElement}});const[P,D]=sn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),A=!b&&!y&&b!==0,O=ie=>{var ue,xe;D(A?!1:ie),A||((ue=e.onOpenChange)===null||ue===void 0||ue.call(e,ie),(xe=e.onVisibleChange)===null||xe===void 0||xe.call(e,ie))},N=l.useMemo(()=>{var ie,ue;let xe=v;return typeof h=="object"&&(xe=(ue=(ie=h.pointAtCenter)!==null&&ie!==void 0?ie:h.arrowPointAtCenter)!==null&&ue!==void 0?ue:v),S||wV({arrowPointAtCenter:xe,autoAdjustOverflow:x,arrowWidth:w?C.sizePopupArrow:0,borderRadius:C.borderRadius,offset:C.marginXXS,visibleFirst:!0})},[v,h,S,C]),k=l.useMemo(()=>b===0?b:y||b||"",[y,b]),M=l.createElement(Vi,{space:!0},typeof k=="function"?k():k),{getPopupContainer:L,placement:F="top",mouseEnterDelay:j=.1,mouseLeaveDelay:B=.1,overlayStyle:z,rootClassName:H}=e,V=afe(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),te=I("tooltip",a),Y=I(),J=e["data-popover-inject"];let G=P;!("open"in e)&&!("visible"in e)&&A&&(G=!1);const U=l.isValidElement(d)&&!GH(d)?d:l.createElement("span",null,d),q=U.props,X=!q.className||typeof q.className=="string"?ne(q.className,o||`${te}-open`):q.className,[Q,ee,oe]=CV(te,!J),le=IV(te,c),fe=le.arrowStyle,ce=Object.assign(Object.assign({},u),le.overlayStyle),Ie=ne(s,{[`${te}-rtl`]:T==="rtl"},le.className,H,ee,oe),[be,he]=xi("Tooltip",V.zIndex),ae=l.createElement(Kde,Object.assign({},V,{zIndex:be,showArrow:w,placement:F,mouseEnterDelay:j,mouseLeaveDelay:B,prefixCls:te,overlayClassName:Ie,overlayStyle:Object.assign(Object.assign({},fe),z),getTooltipContainer:L||i||E,ref:_,builtinPlacements:N,overlay:M,visible:G,onVisibleChange:O,afterVisibleChange:f??p,overlayInnerStyle:ce,arrowContent:l.createElement("span",{className:`${te}-arrow-content`}),motion:{motionName:Ca(Y,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!g}),G?Cr(U,{className:X}):U);return Q(l.createElement(Gg.Provider,{value:he},ae))}),Zt=ofe;Zt._InternalPanelDoNotUseOrYouWillBeFired=rfe;const ife=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:a,innerPadding:o,boxShadowSecondary:i,colorTextHeading:s,borderRadiusLG:c,zIndexPopup:u,titleMarginBottom:d,colorBgElevated:f,popoverBg:p,titleBorderBottom:g,innerContentPadding:h,titlePadding:b}=e;return[{[t]:Object.assign(Object.assign({},nn(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":f,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:p,backgroundClip:"padding-box",borderRadius:c,boxShadow:i,padding:o},[`${t}-title`]:{minWidth:r,marginBottom:d,color:s,fontWeight:a,borderBottom:g,padding:b},[`${t}-inner-content`]:{color:n,padding:h}})},mO(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},sfe=e=>{const{componentCls:t}=e;return{[t]:fg.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},lfe=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:a,wireframe:o,zIndexPopupBase:i,borderRadiusLG:s,marginXS:c,lineType:u,colorSplit:d,paddingSM:f}=e,p=n-r,g=p/2,h=p/2-t,b=a;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:i+30},j0(e)),B0({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:o?0:12,titleMarginBottom:o?0:c,titlePadding:o?`${g}px ${b}px ${h}px`:0,titleBorderBottom:o?`${t}px ${u} ${d}`:"none",innerContentPadding:o?`${f}px ${b}px`:0})},TV=on("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=zt(e,{popoverBg:t,popoverColor:n});return[ife(r),sfe(r),qd(r,"zoom-big")]},lfe,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var cfe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{let{title:t,content:n,prefixCls:r}=e;return!t&&!n?null:l.createElement(l.Fragment,null,t&&l.createElement("div",{className:`${r}-title`},t),n&&l.createElement("div",{className:`${r}-inner-content`},n))},ufe=e=>{const{hashId:t,prefixCls:n,className:r,style:a,placement:o="top",title:i,content:s,children:c}=e,u=pb(i),d=pb(s),f=ne(t,n,`${n}-pure`,`${n}-placement-${o}`,r);return l.createElement("div",{className:f,style:a},l.createElement("div",{className:`${n}-arrow`}),l.createElement(gO,Object.assign({},e,{className:t,prefixCls:n}),c||l.createElement(RV,{prefixCls:n,title:u,content:d})))},dfe=e=>{const{prefixCls:t,className:n}=e,r=cfe(e,["prefixCls","className"]),{getPrefixCls:a}=l.useContext(st),o=a("popover",t),[i,s,c]=TV(o);return i(l.createElement(ufe,Object.assign({},r,{prefixCls:o,hashId:s,className:ne(n,c)})))};var ffe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r;const{prefixCls:a,title:o,content:i,overlayClassName:s,placement:c="top",trigger:u="hover",children:d,mouseEnterDelay:f=.1,mouseLeaveDelay:p=.1,onOpenChange:g,overlayStyle:h={}}=e,b=ffe(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle"]),{getPrefixCls:y}=l.useContext(st),S=y("popover",a),[v,x,w]=TV(S),C=y(),E=ne(s,x,w),[I,T]=sn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),R=(A,O)=>{T(A,!0),g==null||g(A,O)},_=A=>{A.keyCode===Le.ESC&&R(!1,A)},$=A=>{R(A)},P=pb(o),D=pb(i);return v(l.createElement(Zt,Object.assign({placement:c,trigger:u,mouseEnterDelay:f,mouseLeaveDelay:p,overlayStyle:h},b,{prefixCls:S,overlayClassName:E,ref:t,open:I,onOpenChange:$,overlay:P||D?l.createElement(RV,{prefixCls:S,title:P,content:D}):null,transitionName:Ca(C,"zoom-big",b.transitionName),"data-popover-inject":!0}),Cr(d,{onKeyDown:A=>{var O,N;l.isValidElement(d)&&((N=d==null?void 0:(O=d.props).onKeyDown)===null||N===void 0||N.call(O,A)),_(A)}})))}),_V=pfe;_V._InternalPanelDoNotUseOrYouWillBeFired=dfe;var gfe={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"},mfe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:gfe}))},Qa=l.forwardRef(mfe),hfe=Le.ESC,vfe=Le.TAB;function bfe(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,a=e.autoFocus,o=e.overlayRef,i=l.useRef(!1),s=function(){if(t){var f,p;(f=n.current)===null||f===void 0||(p=f.focus)===null||p===void 0||p.call(f),r==null||r(!1)}},c=function(){var f;return(f=o.current)!==null&&f!==void 0&&f.focus?(o.current.focus(),i.current=!0,!0):!1},u=function(f){switch(f.keyCode){case hfe:s();break;case vfe:{var p=!1;i.current||(p=c()),p?f.preventDefault():s();break}}};l.useEffect(function(){return t?(window.addEventListener("keydown",u),a&&Ut(c,3),function(){window.removeEventListener("keydown",u),i.current=!1}):function(){i.current=!1}},[t])}var yfe=l.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,a=e.prefixCls,o=l.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),i=na(t,o==null?void 0:o.ref);return se.createElement(se.Fragment,null,r&&se.createElement("div",{className:"".concat(a,"-arrow")}),se.cloneElement(o,{ref:mi(o)?i:void 0}))}),cu={adjustX:1,adjustY:1},uu=[0,0],Sfe={topLeft:{points:["bl","tl"],overflow:cu,offset:[0,-4],targetOffset:uu},top:{points:["bc","tc"],overflow:cu,offset:[0,-4],targetOffset:uu},topRight:{points:["br","tr"],overflow:cu,offset:[0,-4],targetOffset:uu},bottomLeft:{points:["tl","bl"],overflow:cu,offset:[0,4],targetOffset:uu},bottom:{points:["tc","bc"],overflow:cu,offset:[0,4],targetOffset:uu},bottomRight:{points:["tr","br"],overflow:cu,offset:[0,4],targetOffset:uu}},xfe=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function wfe(e,t){var n,r=e.arrow,a=r===void 0?!1:r,o=e.prefixCls,i=o===void 0?"rc-dropdown":o,s=e.transitionName,c=e.animation,u=e.align,d=e.placement,f=d===void 0?"bottomLeft":d,p=e.placements,g=p===void 0?Sfe:p,h=e.getPopupContainer,b=e.showAction,y=e.hideAction,S=e.overlayClassName,v=e.overlayStyle,x=e.visible,w=e.trigger,C=w===void 0?["hover"]:w,E=e.autoFocus,I=e.overlay,T=e.children,R=e.onVisibleChange,_=xt(e,xfe),$=se.useState(),P=re($,2),D=P[0],A=P[1],O="visible"in e?x:D,N=se.useRef(null),k=se.useRef(null),M=se.useRef(null);se.useImperativeHandle(t,function(){return N.current});var L=function(J){A(J),R==null||R(J)};bfe({visible:O,triggerRef:M,onVisibleChange:L,autoFocus:E,overlayRef:k});var F=function(J){var G=e.onOverlayClick;A(!1),G&&G(J)},j=function(){return se.createElement(yfe,{ref:k,overlay:I,prefixCls:i,arrow:a})},B=function(){return typeof I=="function"?j:j()},z=function(){var J=e.minOverlayWidthMatchTrigger,G=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?J:!G},H=function(){var J=e.openClassName;return J!==void 0?J:"".concat(i,"-open")},V=se.cloneElement(T,{className:ne((n=T.props)===null||n===void 0?void 0:n.className,O&&H()),ref:mi(T)?na(M,T.ref):void 0}),te=y;return!te&&C.indexOf("contextMenu")!==-1&&(te=["click"]),se.createElement(rm,pe({builtinPlacements:g},_,{prefixCls:i,ref:N,popupClassName:ne(S,W({},"".concat(i,"-show-arrow"),a)),popupStyle:v,action:C,showAction:b,hideAction:te,popupPlacement:f,popupAlign:u,popupTransitionName:s,popupAnimation:c,popupVisible:O,stretch:z()?"minWidth":"",popup:B(),onPopupVisibleChange:L,onPopupClick:F,getPopupContainer:h}),V)}const $V=se.forwardRef(wfe);var OV=l.createContext(null);function NV(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function kV(e){var t=l.useContext(OV);return NV(t,e)}var Cfe=["children","locked"],vi=l.createContext(null);function Efe(e,t){var n=Z({},e);return Object.keys(t).forEach(function(r){var a=t[r];a!==void 0&&(n[r]=a)}),n}function hg(e){var t=e.children,n=e.locked,r=xt(e,Cfe),a=l.useContext(vi),o=_l(function(){return Efe(a,r)},[a,r],function(i,s){return!n&&(i[0]!==s[0]||!Ho(i[1],s[1],!0))});return l.createElement(vi.Provider,{value:o},t)}var Ife=[],AV=l.createContext(null);function z0(){return l.useContext(AV)}var MV=l.createContext(Ife);function Kd(e){var t=l.useContext(MV);return l.useMemo(function(){return e!==void 0?[].concat(Pe(t),[e]):t},[t,e])}var PV=l.createContext(null),hO=l.createContext({});function v4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Vd(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),a=e.getAttribute("tabindex"),o=Number(a),i=null;return a&&!Number.isNaN(o)?i=o:r&&i===null&&(i=0),r&&e.disabled&&(i=null),i!==null&&(i>=0||t&&i<0)}return!1}function Tfe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Pe(e.querySelectorAll("*")).filter(function(r){return v4(r,t)});return v4(e,t)&&n.unshift(e),n}var yR=Le.LEFT,SR=Le.RIGHT,xR=Le.UP,pv=Le.DOWN,gv=Le.ENTER,DV=Le.ESC,Af=Le.HOME,Mf=Le.END,b4=[xR,pv,yR,SR];function Rfe(e,t,n,r){var a,o,i,s,c="prev",u="next",d="children",f="parent";if(e==="inline"&&r===gv)return{inlineTrigger:!0};var p=(a={},W(a,xR,c),W(a,pv,u),a),g=(o={},W(o,yR,n?u:c),W(o,SR,n?c:u),W(o,pv,d),W(o,gv,d),o),h=(i={},W(i,xR,c),W(i,pv,u),W(i,gv,d),W(i,DV,f),W(i,yR,n?d:f),W(i,SR,n?f:d),i),b={inline:p,horizontal:g,vertical:h,inlineSub:p,horizontalSub:h,verticalSub:h},y=(s=b["".concat(e).concat(t?"":"Sub")])===null||s===void 0?void 0:s[r];switch(y){case c:return{offset:-1,sibling:!0};case u:return{offset:1,sibling:!0};case f:return{offset:-1,sibling:!1};case d:return{offset:1,sibling:!1};default:return null}}function _fe(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function $fe(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function vO(e,t){var n=Tfe(e,!0);return n.filter(function(r){return t.has(r)})}function y4(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var a=vO(e,t),o=a.length,i=a.findIndex(function(s){return n===s});return r<0?i===-1?i=o-1:i-=1:r>0&&(i+=1),i=(i+o)%o,a[i]}var wR=function(t,n){var r=new Set,a=new Map,o=new Map;return t.forEach(function(i){var s=document.querySelector("[data-menu-id='".concat(NV(n,i),"']"));s&&(r.add(s),o.set(s,i),a.set(i,s))}),{elements:r,key2element:a,element2key:o}};function Ofe(e,t,n,r,a,o,i,s,c,u){var d=l.useRef(),f=l.useRef();f.current=t;var p=function(){Ut.cancel(d.current)};return l.useEffect(function(){return function(){p()}},[]),function(g){var h=g.which;if([].concat(b4,[gv,DV,Af,Mf]).includes(h)){var b=o(),y=wR(b,r),S=y,v=S.elements,x=S.key2element,w=S.element2key,C=x.get(t),E=$fe(C,v),I=w.get(E),T=Rfe(e,i(I,!0).length===1,n,h);if(!T&&h!==Af&&h!==Mf)return;(b4.includes(h)||[Af,Mf].includes(h))&&g.preventDefault();var R=function(k){if(k){var M=k,L=k.querySelector("a");L!=null&&L.getAttribute("href")&&(M=L);var F=w.get(k);s(F),p(),d.current=Ut(function(){f.current===F&&M.focus()})}};if([Af,Mf].includes(h)||T.sibling||!E){var _;!E||e==="inline"?_=a.current:_=_fe(E);var $,P=vO(_,v);h===Af?$=P[0]:h===Mf?$=P[P.length-1]:$=y4(_,v,E,T.offset),R($)}else if(T.inlineTrigger)c(I);else if(T.offset>0)c(I,!0),p(),d.current=Ut(function(){y=wR(b,r);var N=E.getAttribute("aria-controls"),k=document.getElementById(N),M=y4(k,y.elements);R(M)},5);else if(T.offset<0){var D=i(I,!0),A=D[D.length-2],O=x.get(A);c(A,!1),R(O)}}u==null||u(g)}}function Nfe(e){Promise.resolve().then(e)}var bO="__RC_UTIL_PATH_SPLIT__",S4=function(t){return t.join(bO)},kfe=function(t){return t.split(bO)},CR="rc-menu-more";function Afe(){var e=l.useState({}),t=re(e,2),n=t[1],r=l.useRef(new Map),a=l.useRef(new Map),o=l.useState([]),i=re(o,2),s=i[0],c=i[1],u=l.useRef(0),d=l.useRef(!1),f=function(){d.current||n({})},p=l.useCallback(function(x,w){var C=S4(w);a.current.set(C,x),r.current.set(x,C),u.current+=1;var E=u.current;Nfe(function(){E===u.current&&f()})},[]),g=l.useCallback(function(x,w){var C=S4(w);a.current.delete(C),r.current.delete(x)},[]),h=l.useCallback(function(x){c(x)},[]),b=l.useCallback(function(x,w){var C=r.current.get(x)||"",E=kfe(C);return w&&s.includes(E[0])&&E.unshift(CR),E},[s]),y=l.useCallback(function(x,w){return x.filter(function(C){return C!==void 0}).some(function(C){var E=b(C,!0);return E.includes(w)})},[b]),S=function(){var w=Pe(r.current.keys());return s.length&&w.push(CR),w},v=l.useCallback(function(x){var w="".concat(r.current.get(x)).concat(bO),C=new Set;return Pe(a.current.keys()).forEach(function(E){E.startsWith(w)&&C.add(a.current.get(E))}),C},[]);return l.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:p,unregisterPath:g,refreshOverflowKeys:h,isSubPathKey:y,getKeyPath:b,getKeys:S,getSubPathKeys:v}}function Yf(e){var t=l.useRef(e);t.current=e;var n=l.useCallback(function(){for(var r,a=arguments.length,o=new Array(a),i=0;i1&&(v.motionAppear=!1);var x=v.onVisibleChanged;return v.onVisibleChanged=function(w){return!p.current&&!w&&y(!0),x==null?void 0:x(w)},b?null:l.createElement(hg,{mode:o,locked:!p.current},l.createElement(ea,pe({visible:S},v,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(w){var C=w.className,E=w.style;return l.createElement(yO,{id:t,className:C,style:E},a)}))}var Xfe=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Zfe=["active"],Qfe=l.forwardRef(function(e,t){var n,r=e.style,a=e.className,o=e.title,i=e.eventKey;e.warnKey;var s=e.disabled,c=e.internalPopupClose,u=e.children,d=e.itemIcon,f=e.expandIcon,p=e.popupClassName,g=e.popupOffset,h=e.popupStyle,b=e.onClick,y=e.onMouseEnter,S=e.onMouseLeave,v=e.onTitleClick,x=e.onTitleMouseEnter,w=e.onTitleMouseLeave,C=xt(e,Xfe),E=kV(i),I=l.useContext(vi),T=I.prefixCls,R=I.mode,_=I.openKeys,$=I.disabled,P=I.overflowDisabled,D=I.activeKey,A=I.selectedKeys,O=I.itemIcon,N=I.expandIcon,k=I.onItemClick,M=I.onOpenChange,L=I.onActive,F=l.useContext(hO),j=F._internalRenderSubMenuItem,B=l.useContext(PV),z=B.isSubPathKey,H=Kd(),V="".concat(T,"-submenu"),te=$||s,Y=l.useRef(),J=l.useRef(),G=d??O,U=f??N,q=_.includes(i),X=!P&&q,Q=z(A,i),ee=LV(i,te,x,w),oe=ee.active,le=xt(ee,Zfe),fe=l.useState(!1),ce=re(fe,2),Ie=ce[0],be=ce[1],he=function(Re){te||be(Re)},ae=function(Re){he(!0),y==null||y({key:i,domEvent:Re})},ie=function(Re){he(!1),S==null||S({key:i,domEvent:Re})},ue=l.useMemo(function(){return oe||(R!=="inline"?Ie||z([D],i):!1)},[R,oe,D,Ie,i,z]),xe=FV(H.length),we=function(Re){te||(v==null||v({key:i,domEvent:Re}),R==="inline"&&M(i,!q))},Me=Yf(function(Ne){b==null||b(gb(Ne)),k(Ne)}),Ce=function(Re){R!=="inline"&&M(i,Re)},De=function(){L(i)},ye=E&&"".concat(E,"-popup"),ve=l.createElement("div",pe({role:"menuitem",style:xe,className:"".concat(V,"-title"),tabIndex:te?null:-1,ref:Y,title:typeof o=="string"?o:null,"data-menu-id":P&&E?null:E,"aria-expanded":X,"aria-haspopup":!0,"aria-controls":ye,"aria-disabled":te,onClick:we,onFocus:De},le),o,l.createElement(jV,{icon:R!=="horizontal"?U:void 0,props:Z(Z({},e),{},{isOpen:X,isSubMenu:!0})},l.createElement("i",{className:"".concat(V,"-arrow")}))),$e=l.useRef(R);if(R!=="inline"&&H.length>1?$e.current="vertical":$e.current=R,!P){var Ee=$e.current;ve=l.createElement(Kfe,{mode:Ee,prefixCls:V,visible:!c&&X&&R!=="inline",popupClassName:p,popupOffset:g,popupStyle:h,popup:l.createElement(hg,{mode:Ee==="horizontal"?"vertical":Ee},l.createElement(yO,{id:ye,ref:J},u)),disabled:te,onVisibleChange:Ce},ve)}var ge=l.createElement(fi.Item,pe({ref:t,role:"none"},C,{component:"li",style:r,className:ne(V,"".concat(V,"-").concat(R),a,(n={},W(n,"".concat(V,"-open"),X),W(n,"".concat(V,"-active"),ue),W(n,"".concat(V,"-selected"),Q),W(n,"".concat(V,"-disabled"),te),n)),onMouseEnter:ae,onMouseLeave:ie}),ve,!P&&l.createElement(Yfe,{id:ye,open:X,keyPath:H},u));return j&&(ge=j(ge,e,{selected:Q,active:ue,open:X,disabled:te})),l.createElement(hg,{onItemClick:Me,mode:R==="horizontal"?"vertical":R,itemIcon:G,expandIcon:U},ge)}),H0=l.forwardRef(function(e,t){var n=e.eventKey,r=e.children,a=Kd(n),o=SO(r,a),i=z0();l.useEffect(function(){if(i)return i.registerPath(n,a),function(){i.unregisterPath(n,a)}},[a]);var s;return i?s=o:s=l.createElement(Qfe,pe({ref:t},e),o),l.createElement(MV.Provider,{value:a},s)});function xO(e){var t=e.className,n=e.style,r=l.useContext(vi),a=r.prefixCls,o=z0();return o?null:l.createElement("li",{role:"separator",className:ne("".concat(a,"-item-divider"),t),style:n})}var Jfe=["className","title","eventKey","children"],epe=l.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var a=e.children,o=xt(e,Jfe),i=l.useContext(vi),s=i.prefixCls,c="".concat(s,"-item-group");return l.createElement("li",pe({ref:t,role:"presentation"},o,{onClick:function(d){return d.stopPropagation()},className:ne(c,n)}),l.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:typeof r=="string"?r:void 0},r),l.createElement("ul",{role:"group",className:"".concat(c,"-list")},a))}),wO=l.forwardRef(function(e,t){var n=e.eventKey,r=e.children,a=Kd(n),o=SO(r,a),i=z0();return i?o:l.createElement(epe,pe({ref:t},On(e,["warnKey"])),o)}),tpe=["label","children","key","type"];function ER(e,t){var n=t.item,r=t.group,a=t.submenu,o=t.divider;return(e||[]).map(function(i,s){if(i&&mt(i)==="object"){var c=i,u=c.label,d=c.children,f=c.key,p=c.type,g=xt(c,tpe),h=f??"tmp-".concat(s);return d||p==="group"?p==="group"?l.createElement(r,pe({key:h},g,{title:u}),ER(d,t)):l.createElement(a,pe({key:h},g,{title:u}),ER(d,t)):p==="divider"?l.createElement(o,pe({key:h},g)):l.createElement(n,pe({key:h},g),u)}return null}).filter(function(i){return i})}function w4(e,t,n,r){var a=e,o=Z({divider:xO,item:im,group:wO,submenu:H0},r);return t&&(a=ER(t,o)),SO(a,n)}var npe=["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"],Fl=[],rpe=l.forwardRef(function(e,t){var n,r,a=e,o=a.prefixCls,i=o===void 0?"rc-menu":o,s=a.rootClassName,c=a.style,u=a.className,d=a.tabIndex,f=d===void 0?0:d,p=a.items,g=a.children,h=a.direction,b=a.id,y=a.mode,S=y===void 0?"vertical":y,v=a.inlineCollapsed,x=a.disabled,w=a.disabledOverflow,C=a.subMenuOpenDelay,E=C===void 0?.1:C,I=a.subMenuCloseDelay,T=I===void 0?.1:I,R=a.forceSubMenuRender,_=a.defaultOpenKeys,$=a.openKeys,P=a.activeKey,D=a.defaultActiveFirst,A=a.selectable,O=A===void 0?!0:A,N=a.multiple,k=N===void 0?!1:N,M=a.defaultSelectedKeys,L=a.selectedKeys,F=a.onSelect,j=a.onDeselect,B=a.inlineIndent,z=B===void 0?24:B,H=a.motion,V=a.defaultMotions,te=a.triggerSubMenuAction,Y=te===void 0?"hover":te,J=a.builtinPlacements,G=a.itemIcon,U=a.expandIcon,q=a.overflowedIndicator,X=q===void 0?"...":q,Q=a.overflowedIndicatorPopupClassName,ee=a.getPopupContainer,oe=a.onClick,le=a.onOpenChange,fe=a.onKeyDown;a.openAnimation,a.openTransitionName;var ce=a._internalRenderMenuItem,Ie=a._internalRenderSubMenuItem,be=a._internalComponents,he=xt(a,npe),ae=l.useMemo(function(){return[w4(g,p,Fl,be),w4(g,p,Fl,{})]},[g,p,be]),ie=re(ae,2),ue=ie[0],xe=ie[1],we=l.useState(!1),Me=re(we,2),Ce=Me[0],De=Me[1],ye=l.useRef(),ve=Pfe(b),$e=h==="rtl",Ee=sn(_,{value:$,postState:function(jt){return jt||Fl}}),ge=re(Ee,2),Ne=ge[0],Re=ge[1],me=function(jt){var Bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function wt(){Re(jt),le==null||le(jt)}Bt?Lr.flushSync(wt):wt()},_e=l.useState(Ne),Ze=re(_e,2),Oe=Ze[0],Se=Ze[1],Ae=l.useRef(!1),Fe=l.useMemo(function(){return(S==="inline"||S==="vertical")&&v?["vertical",v]:[S,!1]},[S,v]),Ve=re(Fe,2),He=Ve[0],ze=Ve[1],Xe=He==="inline",je=l.useState(He),Je=re(je,2),gt=Je[0],ft=Je[1],qe=l.useState(ze),We=re(qe,2),Qe=We[0],ut=We[1];l.useEffect(function(){ft(He),ut(ze),Ae.current&&(Xe?Re(Oe):me(Fl))},[He,ze]);var Rt=l.useState(0),$t=re(Rt,2),ht=$t[0],lt=$t[1],ot=ht>=ue.length-1||gt!=="horizontal"||w;l.useEffect(function(){Xe&&Se(Ne)},[Ne]),l.useEffect(function(){return Ae.current=!0,function(){Ae.current=!1}},[]);var et=Afe(),vt=et.registerPath,rt=et.unregisterPath,St=et.refreshOverflowKeys,Et=et.isSubPathKey,tt=et.getKeyPath,at=et.getKeys,Ke=et.getSubPathKeys,Ge=l.useMemo(function(){return{registerPath:vt,unregisterPath:rt}},[vt,rt]),bt=l.useMemo(function(){return{isSubPathKey:Et}},[Et]);l.useEffect(function(){St(ot?Fl:ue.slice(ht+1).map(function(Gt){return Gt.key}))},[ht,ot]);var Tt=sn(P||D&&((n=ue[0])===null||n===void 0?void 0:n.key),{value:P}),Pt=re(Tt,2),en=Pt[0],rn=Pt[1],Vt=Yf(function(Gt){rn(Gt)}),tn=Yf(function(){rn(void 0)});l.useImperativeHandle(t,function(){return{list:ye.current,focus:function(jt){var Bt,wt=at(),Ct=wR(wt,ve),cn=Ct.elements,Rn=Ct.key2element,ur=Ct.element2key,dr=vO(ye.current,cn),yr=en??(dr[0]?ur.get(dr[0]):(Bt=ue.find(function(pt){return!pt.props.disabled}))===null||Bt===void 0?void 0:Bt.key),Ht=Rn.get(yr);if(yr&&Ht){var Lt;Ht==null||(Lt=Ht.focus)===null||Lt===void 0||Lt.call(Ht,jt)}}}});var It=sn(M||[],{value:L,postState:function(jt){return Array.isArray(jt)?jt:jt==null?Fl:[jt]}}),_t=re(It,2),kt=_t[0],Tn=_t[1],Qn=function(jt){if(O){var Bt=jt.key,wt=kt.includes(Bt),Ct;k?wt?Ct=kt.filter(function(Rn){return Rn!==Bt}):Ct=[].concat(Pe(kt),[Bt]):Ct=[Bt],Tn(Ct);var cn=Z(Z({},jt),{},{selectedKeys:Ct});wt?j==null||j(cn):F==null||F(cn)}!k&&Ne.length&>!=="inline"&&me(Fl)},cr=Yf(function(Gt){oe==null||oe(gb(Gt)),Qn(Gt)}),Jn=Yf(function(Gt,jt){var Bt=Ne.filter(function(Ct){return Ct!==Gt});if(jt)Bt.push(Gt);else if(gt!=="inline"){var wt=Ke(Gt);Bt=Bt.filter(function(Ct){return!wt.has(Ct)})}Ho(Ne,Bt,!0)||me(Bt,!0)}),Hr=function(jt,Bt){var wt=Bt??!Ne.includes(jt);Jn(jt,wt)},Mr=Ofe(gt,en,$e,ve,ye,at,tt,rn,Hr,fe);l.useEffect(function(){De(!0)},[]);var er=l.useMemo(function(){return{_internalRenderMenuItem:ce,_internalRenderSubMenuItem:Ie}},[ce,Ie]),Kt=gt!=="horizontal"||w?ue:ue.map(function(Gt,jt){return l.createElement(hg,{key:Gt.key,overflowDisabled:jt>ht},Gt)}),Ft=l.createElement(fi,pe({id:b,ref:ye,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:im,className:ne(i,"".concat(i,"-root"),"".concat(i,"-").concat(gt),u,(r={},W(r,"".concat(i,"-inline-collapsed"),Qe),W(r,"".concat(i,"-rtl"),$e),r),s),dir:h,style:c,role:"menu",tabIndex:f,data:Kt,renderRawItem:function(jt){return jt},renderRawRest:function(jt){var Bt=jt.length,wt=Bt?ue.slice(-Bt):null;return l.createElement(H0,{eventKey:CR,title:X,disabled:ot,internalPopupClose:Bt===0,popupClassName:Q},wt)},maxCount:gt!=="horizontal"||w?fi.INVALIDATE:fi.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(jt){lt(jt)},onKeyDown:Mr},he));return l.createElement(hO.Provider,{value:er},l.createElement(OV.Provider,{value:ve},l.createElement(hg,{prefixCls:i,rootClassName:s,mode:gt,openKeys:Ne,rtl:$e,disabled:x,motion:Ce?H:null,defaultMotions:Ce?V:null,activeKey:en,onActive:Vt,onInactive:tn,selectedKeys:kt,inlineIndent:z,subMenuOpenDelay:E,subMenuCloseDelay:T,forceSubMenuRender:R,builtinPlacements:J,triggerSubMenuAction:Y,getPopupContainer:ee,itemIcon:G,expandIcon:U,onItemClick:cr,onOpenChange:Jn},l.createElement(PV.Provider,{value:bt},Ft),l.createElement("div",{style:{display:"none"},"aria-hidden":!0},l.createElement(AV.Provider,{value:Ge},xe)))))}),Yd=rpe;Yd.Item=im;Yd.SubMenu=H0;Yd.ItemGroup=wO;Yd.Divider=xO;var ape={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"},ope=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:ape}))},ipe=l.forwardRef(ope),spe={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"},lpe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:spe}))},Rs=l.forwardRef(lpe);const cpe=e=>!isNaN(parseFloat(e))&&isFinite(e),zV=l.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var upe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),V0=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:a,children:o,defaultCollapsed:i=!1,theme:s="dark",style:c={},collapsible:u=!1,reverseArrow:d=!1,width:f=200,collapsedWidth:p=80,zeroWidthTriggerStyle:g,breakpoint:h,onCollapse:b,onBreakpoint:y}=e,S=upe(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:v}=l.useContext(zV),[x,w]=l.useState("collapsed"in e?e.collapsed:i),[C,E]=l.useState(!1);l.useEffect(()=>{"collapsed"in e&&w(e.collapsed)},[e.collapsed]);const I=(D,A)=>{"collapsed"in e||w(D),b==null||b(D,A)},T=l.useRef();T.current=D=>{E(D.matches),y==null||y(D.matches),x!==D.matches&&I(D.matches,"responsive")},l.useEffect(()=>{function D(O){return T.current(O)}let A;if(typeof window<"u"){const{matchMedia:O}=window;if(O&&h&&h in C4){A=O(`screen and (max-width: ${C4[h]})`);try{A.addEventListener("change",D)}catch{A.addListener(D)}D(A)}}return()=>{try{A==null||A.removeEventListener("change",D)}catch{A==null||A.removeListener(D)}}},[h]),l.useEffect(()=>{const D=dpe("ant-sider-");return v.addSider(D),()=>v.removeSider(D)},[]);const R=()=>{I(!x,"clickTrigger")},{getPrefixCls:_}=l.useContext(st),$=()=>{const D=_("layout-sider",n),A=On(S,["collapsed"]),O=x?p:f,N=cpe(O)?`${O}px`:String(O),k=parseFloat(String(p||0))===0?l.createElement("span",{onClick:R,className:ne(`${D}-zero-width-trigger`,`${D}-zero-width-trigger-${d?"right":"left"}`),style:g},a||l.createElement(ipe,null)):null,F={expanded:d?l.createElement(Qa,null):l.createElement(Rs,null),collapsed:d?l.createElement(Rs,null):l.createElement(Qa,null)}[x?"collapsed":"expanded"],j=a!==null?k||l.createElement("div",{className:`${D}-trigger`,onClick:R,style:{width:N}},a||F):null,B=Object.assign(Object.assign({},c),{flex:`0 0 ${N}`,maxWidth:N,minWidth:N,width:N}),z=ne(D,`${D}-${s}`,{[`${D}-collapsed`]:!!x,[`${D}-has-trigger`]:u&&a!==null&&!k,[`${D}-below`]:!!C,[`${D}-zero-width`]:parseFloat(N)===0},r);return l.createElement("aside",Object.assign({className:z},A,{style:B,ref:t}),l.createElement("div",{className:`${D}-children`},o),u||C&&k?j:null)},P=l.useMemo(()=>({siderCollapsed:x}),[x]);return l.createElement(U0.Provider,{value:P},$())});var fpe={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"},ppe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:fpe}))},CO=l.forwardRef(ppe);const mb=l.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var gpe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,className:n,dashed:r}=e,a=gpe(e,["prefixCls","className","dashed"]),{getPrefixCls:o}=l.useContext(st),i=o("menu",t),s=ne({[`${i}-item-divider-dashed`]:!!r},n);return l.createElement(xO,Object.assign({className:s},a))},UV=e=>{var t;const{className:n,children:r,icon:a,title:o,danger:i}=e,{prefixCls:s,firstLevel:c,direction:u,disableMenuItemTitleTooltip:d,inlineCollapsed:f}=l.useContext(mb),p=v=>{const x=l.createElement("span",{className:`${s}-title-content`},r);return(!a||l.isValidElement(r)&&r.type==="span")&&r&&v&&c&&typeof r=="string"?l.createElement("div",{className:`${s}-inline-collapsed-noicon`},r.charAt(0)):x},{siderCollapsed:g}=l.useContext(U0);let h=o;typeof o>"u"?h=c?r:"":o===!1&&(h="");const b={title:h};!g&&!f&&(b.title=null,b.open=!1);const y=vr(r).length;let S=l.createElement(im,Object.assign({},On(e,["title","icon","danger"]),{className:ne({[`${s}-item-danger`]:i,[`${s}-item-only-child`]:(a?y+1:y)===1},n),title:typeof o=="string"?o:void 0}),Cr(a,{className:ne(l.isValidElement(a)?(t=a.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),p(f));return d||(S=l.createElement(Zt,Object.assign({},b,{placement:u==="rtl"?"left":"right",overlayClassName:`${s}-inline-collapsed-tooltip`}),S)),S};var mpe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{children:n}=e,r=mpe(e,["children"]),a=l.useContext(hb),o=l.useMemo(()=>Object.assign(Object.assign({},a),r),[a,r.prefixCls,r.mode,r.selectable,r.rootClassName]),i=Yte(n),s=Os(t,i?n.ref:null);return l.createElement(hb.Provider,{value:o},l.createElement(Vi,{space:!0},i?l.cloneElement(n,{ref:s}):n))}),hpe=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:a,lineWidth:o,lineType:i,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${K(o)} ${i} ${a}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover, > ${t}-item-active, > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},vpe=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical, - ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${K(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${K(n)})`}}}}},E4=e=>Object.assign({},ws(e)),I4=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:a,groupTitleColor:o,itemBg:i,subMenuItemBg:s,itemSelectedBg:c,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:f,motionDurationSlow:p,motionEaseInOut:g,motionEaseOut:h,itemPaddingInline:b,motionDurationMid:y,itemHoverColor:S,lineType:v,colorSplit:x,itemDisabledColor:C,dangerItemColor:w,dangerItemHoverColor:E,dangerItemSelectedColor:I,dangerItemActiveBg:T,dangerItemSelectedBg:R,popupBg:_,itemHoverBg:$,itemActiveBg:P,menuSubMenuBg:D,horizontalItemSelectedColor:A,horizontalItemSelectedBg:O,horizontalItemBorderRadius:N,horizontalItemHoverBg:k}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:i,[`&${n}-root:focus-visible`]:Object.assign({},E4(e)),[`${n}-item-group-title`]:{color:o},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:a}},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},E4(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${C} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:S}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:$},"&:active":{backgroundColor:P}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:$},"&:active":{backgroundColor:P}}},[`${n}-item-danger`]:{color:w,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:E}},[`&${n}-item:active`]:{background:T}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:a,[`&${n}-item-danger`]:{color:I},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:R}},[`&${n}-submenu > ${n}`]:{backgroundColor:D},[`&${n}-popup > ${n}`]:{backgroundColor:_},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:_},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:f,marginTop:e.calc(f).mul(-1).equal(),marginBottom:0,borderRadius:N,"&::after":{position:"absolute",insetInline:b,bottom:0,borderBottom:`${K(u)} solid transparent`,transition:`border-color ${p} ${g}`,content:'""'},"&:hover, &-active, &-open":{background:k,"&::after":{borderBottomWidth:u,borderBottomColor:A}},"&-selected":{color:A,backgroundColor:O,"&:hover":{backgroundColor:O},"&::after":{borderBottomWidth:u,borderBottomColor:A}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${K(f)} ${v} ${x}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${K(d)} solid ${a}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${y} ${h}`,`opacity ${y} ${h}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:I}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${y} ${g}`,`opacity ${y} ${g}`].join(",")}}}}}},T4=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:a,menuArrowSize:o,marginXS:i,itemMarginBlock:s,itemWidth:c,itemPaddingInline:u}=e,d=e.calc(o).add(a).add(i).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:K(n),paddingInline:u,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:c},[`> ${t}-item, + ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${K(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${K(n)})`}}}}},E4=e=>Object.assign({},Cs(e)),I4=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:a,groupTitleColor:o,itemBg:i,subMenuItemBg:s,itemSelectedBg:c,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:f,motionDurationSlow:p,motionEaseInOut:g,motionEaseOut:h,itemPaddingInline:b,motionDurationMid:y,itemHoverColor:S,lineType:v,colorSplit:x,itemDisabledColor:w,dangerItemColor:C,dangerItemHoverColor:E,dangerItemSelectedColor:I,dangerItemActiveBg:T,dangerItemSelectedBg:R,popupBg:_,itemHoverBg:$,itemActiveBg:P,menuSubMenuBg:D,horizontalItemSelectedColor:A,horizontalItemSelectedBg:O,horizontalItemBorderRadius:N,horizontalItemHoverBg:k}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:i,[`&${n}-root:focus-visible`]:Object.assign({},E4(e)),[`${n}-item-group-title`]:{color:o},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:a}},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},E4(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${w} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:S}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:$},"&:active":{backgroundColor:P}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:$},"&:active":{backgroundColor:P}}},[`${n}-item-danger`]:{color:C,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:E}},[`&${n}-item:active`]:{background:T}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:a,[`&${n}-item-danger`]:{color:I},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:R}},[`&${n}-submenu > ${n}`]:{backgroundColor:D},[`&${n}-popup > ${n}`]:{backgroundColor:_},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:_},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:f,marginTop:e.calc(f).mul(-1).equal(),marginBottom:0,borderRadius:N,"&::after":{position:"absolute",insetInline:b,bottom:0,borderBottom:`${K(u)} solid transparent`,transition:`border-color ${p} ${g}`,content:'""'},"&:hover, &-active, &-open":{background:k,"&::after":{borderBottomWidth:u,borderBottomColor:A}},"&-selected":{color:A,backgroundColor:O,"&:hover":{backgroundColor:O},"&::after":{borderBottomWidth:u,borderBottomColor:A}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${K(f)} ${v} ${x}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${K(d)} solid ${a}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${y} ${h}`,`opacity ${y} ${h}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:I}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${y} ${g}`,`opacity ${y} ${g}`].join(",")}}}}}},T4=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:a,menuArrowSize:o,marginXS:i,itemMarginBlock:s,itemWidth:c,itemPaddingInline:u}=e,d=e.calc(o).add(a).add(i).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:K(n),paddingInline:u,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:c},[`> ${t}-item, > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:K(n)},[`${t}-item-group-list ${t}-submenu-title, ${t}-submenu-title`]:{paddingInlineEnd:d}}},bpe=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:a,dropdownWidth:o,controlHeightLG:i,motionEaseOut:s,paddingXL:c,itemMarginInline:u,fontSizeLG:d,motionDurationFast:f,motionDurationSlow:p,paddingXS:g,boxShadowSecondary:h,collapsedWidth:b,collapsedIconSize:y}=e,S={height:r,lineHeight:K(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},T4(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},T4(e)),{boxShadow:h})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:o,maxHeight:`calc(100vh - ${K(e.calc(i).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${p}`,`background ${p}`,`padding ${f} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:S,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:S}},{[`${t}-inline-collapsed`]:{width:b,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item, > ${t}-item-group > ${t}-item-group-list > ${t}-item, @@ -249,26 +249,26 @@ html body { > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${K(e.calc(d).div(2).equal())} - ${K(u)})`,textOverflow:"clip",[` ${t}-submenu-arrow, ${t}-submenu-expand-icon - `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:y,lineHeight:K(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:a}},[`${t}-item-group-title`]:Object.assign(Object.assign({},xo),{paddingInline:g})}}]},R4=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:a,motionEaseOut:o,iconCls:i,iconSize:s,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${a}`].join(","),[`${t}-item-icon, ${i}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${o}`,`margin ${n} ${a}`,`color ${n}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${a}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},zd()),[`&${t}-item-only-child`]:{[`> ${i}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},_4=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:a,menuArrowSize:o,menuArrowOffset:i}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:o,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(o).mul(.6).equal(),height:e.calc(o).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:a,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${K(e.calc(i).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${K(i)})`}}}}},ype=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:a,motionDurationMid:o,motionEaseInOut:i,paddingXS:s,padding:c,colorSplit:u,lineWidth:d,zIndexPopup:f,borderRadiusLG:p,subMenuItemBorderRadius:g,menuArrowSize:h,menuArrowOffset:b,lineType:y,groupTitleLineHeight:S,groupTitleFontSize:v}=e;return[{"":{[n]:Object.assign(Object.assign({},mi()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},nn(e)),mi()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${a} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${K(s)} ${K(c)}`,fontSize:v,lineHeight:S,transition:`all ${a}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${a} ${i}`,`background ${a} ${i}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${a} ${i}`,`background ${a} ${i}`,`padding ${o} ${i}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${a} ${i}`,`padding ${a} ${i}`].join(",")},[`${n}-title-content`]:{transition:`color ${a}`,[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:u,borderStyle:y,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),R4(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${K(e.calc(r).mul(2).equal())} ${K(c)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,borderRadius:p,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:p},R4(e)),_4(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:g},[`${n}-submenu-title::after`]:{transition:`transform ${a} ${i}`}})},"\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:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),_4(e)),{[`&-inline-collapsed ${n}-submenu-arrow, - &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${K(b)})`},"&::after":{transform:`rotate(45deg) translateX(${K(e.calc(b).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${K(e.calc(h).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${K(e.calc(b).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${K(b)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},Spe=e=>{var t,n,r;const{colorPrimary:a,colorError:o,colorTextDisabled:i,colorErrorBg:s,colorText:c,colorTextDescription:u,colorBgContainer:d,colorFillAlter:f,colorFillContent:p,lineWidth:g,lineWidthBold:h,controlItemBgActive:b,colorBgTextHover:y,controlHeightLG:S,lineHeight:v,colorBgElevated:x,marginXXS:C,padding:w,fontSize:E,controlHeightSM:I,fontSizeLG:T,colorTextLightSolid:R,colorErrorHover:_}=e,$=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,P=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:g,D=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,A=new an(R).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:a,horizontalItemHoverColor:a,colorGroupTitle:u,groupTitleColor:u,colorItemTextSelected:a,itemSelectedColor:a,colorItemTextSelectedHorizontal:a,horizontalItemSelectedColor:a,colorItemBg:d,itemBg:d,colorItemBgHover:y,itemHoverBg:y,colorItemBgActive:p,itemActiveBg:b,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:b,itemSelectedBg:b,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:$,colorActiveBarHeight:h,activeBarHeight:h,colorActiveBarBorderSize:g,activeBarBorderWidth:P,colorItemTextDisabled:i,itemDisabledColor:i,colorDangerItemText:o,dangerItemColor:o,colorDangerItemTextHover:o,dangerItemHoverColor:o,colorDangerItemTextSelected:o,dangerItemSelectedColor:o,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:D,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:S,groupTitleLineHeight:v,collapsedWidth:S*2,popupBg:x,itemMarginBlock:C,itemPaddingInline:w,horizontalLineHeight:`${S*1.15}px`,iconSize:E,iconMarginInlineEnd:I-E,collapsedIconSize:T,groupTitleFontSize:E,darkItemDisabledColor:new an(R).setAlpha(.25).toRgbString(),darkItemColor:A,darkDangerItemColor:o,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:R,darkItemSelectedBg:a,darkDangerItemSelectedBg:o,darkItemHoverBg:"transparent",darkGroupTitleColor:A,darkItemHoverColor:R,darkDangerItemHoverColor:_,darkDangerItemSelectedColor:R,darkDangerItemActiveBg:o,itemWidth:$?`calc(100% + ${P}px)`:`calc(100% - ${D*2}px)`}},xpe=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return on("Menu",a=>{const{colorBgElevated:o,controlHeightLG:i,fontSize:s,darkItemColor:c,darkDangerItemColor:u,darkItemBg:d,darkSubMenuItemBg:f,darkItemSelectedColor:p,darkItemSelectedBg:g,darkDangerItemSelectedBg:h,darkItemHoverBg:b,darkGroupTitleColor:y,darkItemHoverColor:S,darkItemDisabledColor:v,darkDangerItemHoverColor:x,darkDangerItemSelectedColor:C,darkDangerItemActiveBg:w,popupBg:E,darkPopupBg:I}=a,T=a.calc(s).div(7).mul(5).equal(),R=zt(a,{menuArrowSize:T,menuHorizontalHeight:a.calc(i).mul(1.15).equal(),menuArrowOffset:a.calc(T).mul(.25).equal(),menuSubMenuBg:o,calc:a.calc,popupBg:E}),_=zt(R,{itemColor:c,itemHoverColor:S,groupTitleColor:y,itemSelectedColor:p,itemBg:d,popupBg:I,subMenuItemBg:f,itemActiveBg:"transparent",itemSelectedBg:g,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:b,itemDisabledColor:v,dangerItemColor:u,dangerItemHoverColor:x,dangerItemSelectedColor:C,dangerItemActiveBg:w,dangerItemSelectedBg:h,menuSubMenuBg:f,horizontalItemSelectedColor:p,horizontalItemSelectedBg:g});return[ype(R),hpe(R),bpe(R),I4(R,"light"),I4(_,"dark"),vpe(R),Zg(R),Vi(R,"slide-up"),Vi(R,"slide-down"),qd(R,"zoom-big")]},Spe,{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:n,unitless:{groupTitleLineHeight:!0}})(e,t)},WV=e=>{var t;const{popupClassName:n,icon:r,title:a,theme:o}=e,i=l.useContext(gb),{prefixCls:s,inlineCollapsed:c,theme:u}=i,d=Kd();let f;if(!r)f=c&&!d.length&&a&&typeof a=="string"?l.createElement("div",{className:`${s}-inline-collapsed-noicon`},a.charAt(0)):l.createElement("span",{className:`${s}-title-content`},a);else{const h=l.isValidElement(a)&&a.type==="span";f=l.createElement(l.Fragment,null,Cr(r,{className:ne(l.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),h?a:l.createElement("span",{className:`${s}-title-content`},a))}const p=l.useMemo(()=>Object.assign(Object.assign({},i),{firstLevel:!1}),[i]),[g]=Si("Menu");return l.createElement(gb.Provider,{value:p},l.createElement(z0,Object.assign({},On(e,["icon"]),{title:f,popupClassName:ne(s,n,`${s}-${o||u}`),popupStyle:{zIndex:g}})))};var wpe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const r=l.useContext(mb),a=r||{},{getPrefixCls:o,getPopupContainer:i,direction:s,menu:c}=l.useContext(st),u=o(),{prefixCls:d,className:f,style:p,theme:g="light",expandIcon:h,_internalDisableMenuItemTitleTooltip:b,inlineCollapsed:y,siderCollapsed:S,rootClassName:v,mode:x,selectable:C,onClick:w,overflowedIndicatorPopupClassName:E}=e,I=wpe(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),T=On(I,["collapsedWidth"]);(n=a.validator)===null||n===void 0||n.call(a,{mode:x});const R=Wt(function(){var B;w==null||w.apply(void 0,arguments),(B=a.onClick)===null||B===void 0||B.call(a)}),_=a.mode||x,$=C??a.selectable,P=l.useMemo(()=>S!==void 0?S:y,[y,S]),D={horizontal:{motionName:`${u}-slide-up`},inline:Sd(u),other:{motionName:`${u}-zoom-big`}},A=o("menu",d||a.prefixCls),O=Un(A),[N,k,M]=xpe(A,O,!r),L=ne(`${A}-${g}`,c==null?void 0:c.className,f),F=l.useMemo(()=>{var B,z;if(typeof h=="function"||n1(h))return h||null;if(typeof a.expandIcon=="function"||n1(a.expandIcon))return a.expandIcon||null;if(typeof(c==null?void 0:c.expandIcon)=="function"||n1(c==null?void 0:c.expandIcon))return(c==null?void 0:c.expandIcon)||null;const H=(B=h??(a==null?void 0:a.expandIcon))!==null&&B!==void 0?B:c==null?void 0:c.expandIcon;return Cr(H,{className:ne(`${A}-submenu-expand-icon`,l.isValidElement(H)?(z=H.props)===null||z===void 0?void 0:z.className:void 0)})},[h,a==null?void 0:a.expandIcon,c==null?void 0:c.expandIcon,A]),j=l.useMemo(()=>({prefixCls:A,inlineCollapsed:P||!1,direction:s,firstLevel:!0,theme:g,mode:_,disableMenuItemTitleTooltip:b}),[A,P,s,b,g]);return N(l.createElement(mb.Provider,{value:null},l.createElement(gb.Provider,{value:j},l.createElement(Yd,Object.assign({getPopupContainer:i,overflowedIndicator:l.createElement(wO,null),overflowedIndicatorPopupClassName:ne(A,`${A}-${g}`,E),mode:_,selectable:$,onClick:R},T,{inlineCollapsed:P,style:Object.assign(Object.assign({},c==null?void 0:c.style),p),className:L,prefixCls:A,direction:s,defaultMotions:D,expandIcon:F,ref:t,rootClassName:ne(v,k,a.rootClassName,M,O),_internalComponents:Cpe})))))}),Wi=l.forwardRef((e,t)=>{const n=l.useRef(null),r=l.useContext(H0);return l.useImperativeHandle(t,()=>({menu:n.current,focus:a=>{var o;(o=n.current)===null||o===void 0||o.focus(a)}})),l.createElement(Epe,Object.assign({ref:n},e,r))});Wi.Item=UV;Wi.SubMenu=WV;Wi.Divider=HV;Wi.ItemGroup=xO;const Ipe=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:a}=e,o=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${o}`]:{[`&${o}-danger:not(${o}-disabled)`]:{color:r,"&:hover":{color:a,backgroundColor:r}}}}}},Tpe=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:a,sizePopupArrow:o,antCls:i,iconCls:s,motionDurationMid:c,paddingBlock:u,fontSize:d,dropdownEdgeChildPadding:f,colorTextDisabled:p,fontSizeIcon:g,controlPaddingHorizontal:h,colorBgElevated:b}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(o).div(2).sub(a).equal(),zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${i}-btn`]:{[`& > ${s}-down, & > ${i}-btn-icon > ${s}-down`]:{fontSize:g}},[`${t}-wrap`]:{position:"relative",[`${i}-btn > ${s}-down`]:{fontSize:g},[`${s}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomLeft, + `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:y,lineHeight:K(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:a}},[`${t}-item-group-title`]:Object.assign(Object.assign({},wo),{paddingInline:g})}}]},R4=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:a,motionEaseOut:o,iconCls:i,iconSize:s,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${a}`].join(","),[`${t}-item-icon, ${i}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${o}`,`margin ${n} ${a}`,`color ${n}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${a}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},zd()),[`&${t}-item-only-child`]:{[`> ${i}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},_4=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:a,menuArrowSize:o,menuArrowOffset:i}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:o,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(o).mul(.6).equal(),height:e.calc(o).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:a,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${K(e.calc(i).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${K(i)})`}}}}},ype=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:a,motionDurationMid:o,motionEaseInOut:i,paddingXS:s,padding:c,colorSplit:u,lineWidth:d,zIndexPopup:f,borderRadiusLG:p,subMenuItemBorderRadius:g,menuArrowSize:h,menuArrowOffset:b,lineType:y,groupTitleLineHeight:S,groupTitleFontSize:v}=e;return[{"":{[n]:Object.assign(Object.assign({},hi()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},nn(e)),hi()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${a} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${K(s)} ${K(c)}`,fontSize:v,lineHeight:S,transition:`all ${a}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${a} ${i}`,`background ${a} ${i}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${a} ${i}`,`background ${a} ${i}`,`padding ${o} ${i}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${a} ${i}`,`padding ${a} ${i}`].join(",")},[`${n}-title-content`]:{transition:`color ${a}`,[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:u,borderStyle:y,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),R4(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${K(e.calc(r).mul(2).equal())} ${K(c)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,borderRadius:p,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:p},R4(e)),_4(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:g},[`${n}-submenu-title::after`]:{transition:`transform ${a} ${i}`}})},"\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:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),_4(e)),{[`&-inline-collapsed ${n}-submenu-arrow, + &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${K(b)})`},"&::after":{transform:`rotate(45deg) translateX(${K(e.calc(b).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${K(e.calc(h).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${K(e.calc(b).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${K(b)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},Spe=e=>{var t,n,r;const{colorPrimary:a,colorError:o,colorTextDisabled:i,colorErrorBg:s,colorText:c,colorTextDescription:u,colorBgContainer:d,colorFillAlter:f,colorFillContent:p,lineWidth:g,lineWidthBold:h,controlItemBgActive:b,colorBgTextHover:y,controlHeightLG:S,lineHeight:v,colorBgElevated:x,marginXXS:w,padding:C,fontSize:E,controlHeightSM:I,fontSizeLG:T,colorTextLightSolid:R,colorErrorHover:_}=e,$=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,P=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:g,D=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,A=new an(R).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:a,horizontalItemHoverColor:a,colorGroupTitle:u,groupTitleColor:u,colorItemTextSelected:a,itemSelectedColor:a,colorItemTextSelectedHorizontal:a,horizontalItemSelectedColor:a,colorItemBg:d,itemBg:d,colorItemBgHover:y,itemHoverBg:y,colorItemBgActive:p,itemActiveBg:b,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:b,itemSelectedBg:b,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:$,colorActiveBarHeight:h,activeBarHeight:h,colorActiveBarBorderSize:g,activeBarBorderWidth:P,colorItemTextDisabled:i,itemDisabledColor:i,colorDangerItemText:o,dangerItemColor:o,colorDangerItemTextHover:o,dangerItemHoverColor:o,colorDangerItemTextSelected:o,dangerItemSelectedColor:o,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:D,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:S,groupTitleLineHeight:v,collapsedWidth:S*2,popupBg:x,itemMarginBlock:w,itemPaddingInline:C,horizontalLineHeight:`${S*1.15}px`,iconSize:E,iconMarginInlineEnd:I-E,collapsedIconSize:T,groupTitleFontSize:E,darkItemDisabledColor:new an(R).setAlpha(.25).toRgbString(),darkItemColor:A,darkDangerItemColor:o,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:R,darkItemSelectedBg:a,darkDangerItemSelectedBg:o,darkItemHoverBg:"transparent",darkGroupTitleColor:A,darkItemHoverColor:R,darkDangerItemHoverColor:_,darkDangerItemSelectedColor:R,darkDangerItemActiveBg:o,itemWidth:$?`calc(100% + ${P}px)`:`calc(100% - ${D*2}px)`}},xpe=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return on("Menu",a=>{const{colorBgElevated:o,controlHeightLG:i,fontSize:s,darkItemColor:c,darkDangerItemColor:u,darkItemBg:d,darkSubMenuItemBg:f,darkItemSelectedColor:p,darkItemSelectedBg:g,darkDangerItemSelectedBg:h,darkItemHoverBg:b,darkGroupTitleColor:y,darkItemHoverColor:S,darkItemDisabledColor:v,darkDangerItemHoverColor:x,darkDangerItemSelectedColor:w,darkDangerItemActiveBg:C,popupBg:E,darkPopupBg:I}=a,T=a.calc(s).div(7).mul(5).equal(),R=zt(a,{menuArrowSize:T,menuHorizontalHeight:a.calc(i).mul(1.15).equal(),menuArrowOffset:a.calc(T).mul(.25).equal(),menuSubMenuBg:o,calc:a.calc,popupBg:E}),_=zt(R,{itemColor:c,itemHoverColor:S,groupTitleColor:y,itemSelectedColor:p,itemBg:d,popupBg:I,subMenuItemBg:f,itemActiveBg:"transparent",itemSelectedBg:g,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:b,itemDisabledColor:v,dangerItemColor:u,dangerItemHoverColor:x,dangerItemSelectedColor:w,dangerItemActiveBg:C,dangerItemSelectedBg:h,menuSubMenuBg:f,horizontalItemSelectedColor:p,horizontalItemSelectedBg:g});return[ype(R),hpe(R),bpe(R),I4(R,"light"),I4(_,"dark"),vpe(R),Jg(R),Wi(R,"slide-up"),Wi(R,"slide-down"),qd(R,"zoom-big")]},Spe,{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:n,unitless:{groupTitleLineHeight:!0}})(e,t)},WV=e=>{var t;const{popupClassName:n,icon:r,title:a,theme:o}=e,i=l.useContext(mb),{prefixCls:s,inlineCollapsed:c,theme:u}=i,d=Kd();let f;if(!r)f=c&&!d.length&&a&&typeof a=="string"?l.createElement("div",{className:`${s}-inline-collapsed-noicon`},a.charAt(0)):l.createElement("span",{className:`${s}-title-content`},a);else{const h=l.isValidElement(a)&&a.type==="span";f=l.createElement(l.Fragment,null,Cr(r,{className:ne(l.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),h?a:l.createElement("span",{className:`${s}-title-content`},a))}const p=l.useMemo(()=>Object.assign(Object.assign({},i),{firstLevel:!1}),[i]),[g]=xi("Menu");return l.createElement(mb.Provider,{value:p},l.createElement(H0,Object.assign({},On(e,["icon"]),{title:f,popupClassName:ne(s,n,`${s}-${o||u}`),popupStyle:{zIndex:g}})))};var wpe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const r=l.useContext(hb),a=r||{},{getPrefixCls:o,getPopupContainer:i,direction:s,menu:c}=l.useContext(st),u=o(),{prefixCls:d,className:f,style:p,theme:g="light",expandIcon:h,_internalDisableMenuItemTitleTooltip:b,inlineCollapsed:y,siderCollapsed:S,rootClassName:v,mode:x,selectable:w,onClick:C,overflowedIndicatorPopupClassName:E}=e,I=wpe(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),T=On(I,["collapsedWidth"]);(n=a.validator)===null||n===void 0||n.call(a,{mode:x});const R=Wt(function(){var B;C==null||C.apply(void 0,arguments),(B=a.onClick)===null||B===void 0||B.call(a)}),_=a.mode||x,$=w??a.selectable,P=l.useMemo(()=>S!==void 0?S:y,[y,S]),D={horizontal:{motionName:`${u}-slide-up`},inline:Sd(u),other:{motionName:`${u}-zoom-big`}},A=o("menu",d||a.prefixCls),O=Un(A),[N,k,M]=xpe(A,O,!r),L=ne(`${A}-${g}`,c==null?void 0:c.className,f),F=l.useMemo(()=>{var B,z;if(typeof h=="function"||r1(h))return h||null;if(typeof a.expandIcon=="function"||r1(a.expandIcon))return a.expandIcon||null;if(typeof(c==null?void 0:c.expandIcon)=="function"||r1(c==null?void 0:c.expandIcon))return(c==null?void 0:c.expandIcon)||null;const H=(B=h??(a==null?void 0:a.expandIcon))!==null&&B!==void 0?B:c==null?void 0:c.expandIcon;return Cr(H,{className:ne(`${A}-submenu-expand-icon`,l.isValidElement(H)?(z=H.props)===null||z===void 0?void 0:z.className:void 0)})},[h,a==null?void 0:a.expandIcon,c==null?void 0:c.expandIcon,A]),j=l.useMemo(()=>({prefixCls:A,inlineCollapsed:P||!1,direction:s,firstLevel:!0,theme:g,mode:_,disableMenuItemTitleTooltip:b}),[A,P,s,b,g]);return N(l.createElement(hb.Provider,{value:null},l.createElement(mb.Provider,{value:j},l.createElement(Yd,Object.assign({getPopupContainer:i,overflowedIndicator:l.createElement(CO,null),overflowedIndicatorPopupClassName:ne(A,`${A}-${g}`,E),mode:_,selectable:$,onClick:R},T,{inlineCollapsed:P,style:Object.assign(Object.assign({},c==null?void 0:c.style),p),className:L,prefixCls:A,direction:s,defaultMotions:D,expandIcon:F,ref:t,rootClassName:ne(v,k,a.rootClassName,M,O),_internalComponents:Cpe})))))}),Gi=l.forwardRef((e,t)=>{const n=l.useRef(null),r=l.useContext(U0);return l.useImperativeHandle(t,()=>({menu:n.current,focus:a=>{var o;(o=n.current)===null||o===void 0||o.focus(a)}})),l.createElement(Epe,Object.assign({ref:n},e,r))});Gi.Item=UV;Gi.SubMenu=WV;Gi.Divider=HV;Gi.ItemGroup=wO;const Ipe=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:a}=e,o=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${o}`]:{[`&${o}-danger:not(${o}-disabled)`]:{color:r,"&:hover":{color:a,backgroundColor:r}}}}}},Tpe=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:a,sizePopupArrow:o,antCls:i,iconCls:s,motionDurationMid:c,paddingBlock:u,fontSize:d,dropdownEdgeChildPadding:f,colorTextDisabled:p,fontSizeIcon:g,controlPaddingHorizontal:h,colorBgElevated:b}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(o).div(2).sub(a).equal(),zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${i}-btn`]:{[`& > ${s}-down, & > ${i}-btn-icon > ${s}-down`]:{fontSize:g}},[`${t}-wrap`]:{position:"relative",[`${i}-btn > ${s}-down`]:{fontSize:g},[`${s}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomLeft, &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomLeft, &${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottom, &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottom, &${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomRight, - &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:_0},[`&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topLeft, + &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:$0},[`&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topLeft, &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topLeft, &${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-top, &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-top, &${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topRight, - &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topRight`]:{animationName:O0},[`&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomLeft, + &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topRight`]:{animationName:N0},[`&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomLeft, &${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottom, - &${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:$0},[`&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topLeft, + &${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:O0},[`&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topLeft, &${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-top, - &${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topRight`]:{animationName:N0}}},gO(e,b,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},nn(e)),{[n]:Object.assign(Object.assign({padding:f,listStyleType:"none",backgroundColor:b,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},zi(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${K(u)} ${K(h)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${K(u)} ${K(h)}`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},zi(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:p,cursor:"not-allowed","&:hover":{color:p,backgroundColor:b,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${K(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:g,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${K(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(h).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:p,backgroundColor:b,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[Vi(e,"slide-up"),Vi(e,"slide-down"),wd(e,"move-up"),wd(e,"move-down"),qd(e,"zoom-big")]]},Rpe=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},j0({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),F0(e)),_pe=on("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:a}=e,o=zt(e,{menuCls:`${a}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[Tpe(o),Ipe(o)]},Rpe,{resetStyle:!1}),om=e=>{var t;const{menu:n,arrow:r,prefixCls:a,children:o,trigger:i,disabled:s,dropdownRender:c,getPopupContainer:u,overlayClassName:d,rootClassName:f,overlayStyle:p,open:g,onOpenChange:h,visible:b,onVisibleChange:y,mouseEnterDelay:S=.15,mouseLeaveDelay:v=.1,autoAdjustOverflow:x=!0,placement:C="",overlay:w,transitionName:E}=e,{getPopupContainer:I,getPrefixCls:T,direction:R,dropdown:_}=l.useContext(st);$l();const $=l.useMemo(()=>{const Q=T();return E!==void 0?E:C.includes("top")?`${Q}-slide-down`:`${Q}-slide-up`},[T,C,E]),P=l.useMemo(()=>C?C.includes("Center")?C.slice(0,C.indexOf("Center")):C:R==="rtl"?"bottomRight":"bottomLeft",[C,R]),D=T("dropdown",a),A=Un(D),[O,N,k]=_pe(D,A),[,M]=ta(),L=l.Children.only(o),F=Cr(L,{className:ne(`${D}-trigger`,{[`${D}-rtl`]:R==="rtl"},L.props.className),disabled:(t=L.props.disabled)!==null&&t!==void 0?t:s}),j=s?[]:i,B=!!(j!=null&&j.includes("contextMenu")),[z,H]=sn(!1,{value:g??b}),V=Wt(Q=>{h==null||h(Q,{source:"trigger"}),y==null||y(Q),H(Q)}),te=ne(d,f,N,k,A,_==null?void 0:_.className,{[`${D}-rtl`]:R==="rtl"}),Y=wV({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:x,offset:M.marginXXS,arrowWidth:r?M.sizePopupArrow:0,borderRadius:M.borderRadius}),J=l.useCallback(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(h==null||h(!1,{source:"menu"}),H(!1))},[n==null?void 0:n.selectable,n==null?void 0:n.multiple]),G=()=>{let Q;return n!=null&&n.items?Q=l.createElement(Wi,Object.assign({},n)):typeof w=="function"?Q=w():Q=w,c&&(Q=c(Q)),Q=l.Children.only(typeof Q=="string"?l.createElement("span",null,Q):Q),l.createElement(VV,{prefixCls:`${D}-menu`,rootClassName:ne(k,A),expandIcon:l.createElement("span",{className:`${D}-menu-submenu-arrow`},l.createElement(Za,{className:`${D}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:J,validator:ee=>{}},Q)},[U,q]=Si("Dropdown",p==null?void 0:p.zIndex);let X=l.createElement($V,Object.assign({alignPoint:B},On(e,["rootClassName"]),{mouseEnterDelay:S,mouseLeaveDelay:v,visible:z,builtinPlacements:Y,arrow:!!r,overlayClassName:te,prefixCls:D,getPopupContainer:u||I,transitionName:$,trigger:j,overlay:G,placement:P,onVisibleChange:V,overlayStyle:Object.assign(Object.assign(Object.assign({},_==null?void 0:_.style),p),{zIndex:U})}),F);return U&&(X=l.createElement(Vg.Provider,{value:q},X)),O(X)};function $pe(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const Ope=Jg(om,"dropdown",e=>e,$pe),Npe=e=>l.createElement(Ope,Object.assign({},e),l.createElement("span",null));om._InternalPanelDoNotUseOrYouWillBeFired=Npe;const V0=e=>{let{children:t}=e;const{getPrefixCls:n}=l.useContext(st),r=n("breadcrumb");return l.createElement("li",{className:`${r}-separator`,"aria-hidden":"true"},t===""?t:t||"/")};V0.__ANT_BREADCRUMB_SEPARATOR=!0;var kpe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);at[a]||r)}function GV(e,t,n,r){if(n==null)return null;const{className:a,onClick:o}=t,i=kpe(t,["className","onClick"]),s=Object.assign(Object.assign({},Yn(i,{data:!0,aria:!0})),{onClick:o});return r!==void 0?l.createElement("a",Object.assign({},s,{className:ne(`${e}-link`,a),href:r}),n):l.createElement("span",Object.assign({},s,{className:ne(`${e}-link`,a)}),n)}function Mpe(e,t){return(r,a,o,i,s)=>{if(t)return t(r,a,o,i);const c=Ape(r,a);return GV(e,r,c,s)}}var ER=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,separator:n="/",children:r,menu:a,overlay:o,dropdownProps:i,href:s}=e,u=(d=>{if(a||o){const f=Object.assign({},i);if(a){const p=a||{},{items:g}=p,h=ER(p,["items"]);f.menu=Object.assign(Object.assign({},h),{items:g==null?void 0:g.map((b,y)=>{var{key:S,title:v,label:x,path:C}=b,w=ER(b,["key","title","label","path"]);let E=x??v;return C&&(E=l.createElement("a",{href:`${s}${C}`},E)),Object.assign(Object.assign({},w),{key:S??y,label:E})})})}else o&&(f.overlay=o);return l.createElement(om,Object.assign({placement:"bottom"},f),l.createElement("span",{className:`${t}-overlay-link`},d,l.createElement(D0,null)))}return d})(r);return u!=null?l.createElement(l.Fragment,null,l.createElement("li",null,u),n&&l.createElement(V0,null,n)):null},KV=e=>{const{prefixCls:t,children:n,href:r}=e,a=ER(e,["prefixCls","children","href"]),{getPrefixCls:o}=l.useContext(st),i=o("breadcrumb",t);return l.createElement(qV,Object.assign({},a,{prefixCls:i}),GV(i,a,n,r))};KV.__ANT_BREADCRUMB_ITEM=!0;const Ppe=e=>{const{componentCls:t,iconCls:n,calc:r}=e;return{[t]:Object.assign(Object.assign({},nn(e)),{color:e.itemColor,fontSize:e.fontSize,[n]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${K(e.paddingXXS)}`,borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",marginInline:r(e.marginXXS).mul(-1).equal(),"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},zi(e)),"li:last-child":{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[` + &${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topRight`]:{animationName:k0}}},mO(e,b,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},nn(e)),{[n]:Object.assign(Object.assign({padding:f,listStyleType:"none",backgroundColor:b,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Hi(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${K(u)} ${K(h)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${K(u)} ${K(h)}`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Hi(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:p,cursor:"not-allowed","&:hover":{color:p,backgroundColor:b,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${K(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:g,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${K(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(h).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:p,backgroundColor:b,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[Wi(e,"slide-up"),Wi(e,"slide-down"),wd(e,"move-up"),wd(e,"move-down"),qd(e,"zoom-big")]]},Rpe=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},B0({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),j0(e)),_pe=on("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:a}=e,o=zt(e,{menuCls:`${a}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[Tpe(o),Ipe(o)]},Rpe,{resetStyle:!1}),sm=e=>{var t;const{menu:n,arrow:r,prefixCls:a,children:o,trigger:i,disabled:s,dropdownRender:c,getPopupContainer:u,overlayClassName:d,rootClassName:f,overlayStyle:p,open:g,onOpenChange:h,visible:b,onVisibleChange:y,mouseEnterDelay:S=.15,mouseLeaveDelay:v=.1,autoAdjustOverflow:x=!0,placement:w="",overlay:C,transitionName:E}=e,{getPopupContainer:I,getPrefixCls:T,direction:R,dropdown:_}=l.useContext(st);$l();const $=l.useMemo(()=>{const Q=T();return E!==void 0?E:w.includes("top")?`${Q}-slide-down`:`${Q}-slide-up`},[T,w,E]),P=l.useMemo(()=>w?w.includes("Center")?w.slice(0,w.indexOf("Center")):w:R==="rtl"?"bottomRight":"bottomLeft",[w,R]),D=T("dropdown",a),A=Un(D),[O,N,k]=_pe(D,A),[,M]=ra(),L=l.Children.only(o),F=Cr(L,{className:ne(`${D}-trigger`,{[`${D}-rtl`]:R==="rtl"},L.props.className),disabled:(t=L.props.disabled)!==null&&t!==void 0?t:s}),j=s?[]:i,B=!!(j!=null&&j.includes("contextMenu")),[z,H]=sn(!1,{value:g??b}),V=Wt(Q=>{h==null||h(Q,{source:"trigger"}),y==null||y(Q),H(Q)}),te=ne(d,f,N,k,A,_==null?void 0:_.className,{[`${D}-rtl`]:R==="rtl"}),Y=wV({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:x,offset:M.marginXXS,arrowWidth:r?M.sizePopupArrow:0,borderRadius:M.borderRadius}),J=l.useCallback(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(h==null||h(!1,{source:"menu"}),H(!1))},[n==null?void 0:n.selectable,n==null?void 0:n.multiple]),G=()=>{let Q;return n!=null&&n.items?Q=l.createElement(Gi,Object.assign({},n)):typeof C=="function"?Q=C():Q=C,c&&(Q=c(Q)),Q=l.Children.only(typeof Q=="string"?l.createElement("span",null,Q):Q),l.createElement(VV,{prefixCls:`${D}-menu`,rootClassName:ne(k,A),expandIcon:l.createElement("span",{className:`${D}-menu-submenu-arrow`},l.createElement(Qa,{className:`${D}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:J,validator:ee=>{}},Q)},[U,q]=xi("Dropdown",p==null?void 0:p.zIndex);let X=l.createElement($V,Object.assign({alignPoint:B},On(e,["rootClassName"]),{mouseEnterDelay:S,mouseLeaveDelay:v,visible:z,builtinPlacements:Y,arrow:!!r,overlayClassName:te,prefixCls:D,getPopupContainer:u||I,transitionName:$,trigger:j,overlay:G,placement:P,onVisibleChange:V,overlayStyle:Object.assign(Object.assign(Object.assign({},_==null?void 0:_.style),p),{zIndex:U})}),F);return U&&(X=l.createElement(Gg.Provider,{value:q},X)),O(X)};function $pe(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const Ope=tm(sm,"dropdown",e=>e,$pe),Npe=e=>l.createElement(Ope,Object.assign({},e),l.createElement("span",null));sm._InternalPanelDoNotUseOrYouWillBeFired=Npe;const W0=e=>{let{children:t}=e;const{getPrefixCls:n}=l.useContext(st),r=n("breadcrumb");return l.createElement("li",{className:`${r}-separator`,"aria-hidden":"true"},t===""?t:t||"/")};W0.__ANT_BREADCRUMB_SEPARATOR=!0;var kpe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);at[a]||r)}function GV(e,t,n,r){if(n==null)return null;const{className:a,onClick:o}=t,i=kpe(t,["className","onClick"]),s=Object.assign(Object.assign({},Yn(i,{data:!0,aria:!0})),{onClick:o});return r!==void 0?l.createElement("a",Object.assign({},s,{className:ne(`${e}-link`,a),href:r}),n):l.createElement("span",Object.assign({},s,{className:ne(`${e}-link`,a)}),n)}function Mpe(e,t){return(r,a,o,i,s)=>{if(t)return t(r,a,o,i);const c=Ape(r,a);return GV(e,r,c,s)}}var IR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,separator:n="/",children:r,menu:a,overlay:o,dropdownProps:i,href:s}=e,u=(d=>{if(a||o){const f=Object.assign({},i);if(a){const p=a||{},{items:g}=p,h=IR(p,["items"]);f.menu=Object.assign(Object.assign({},h),{items:g==null?void 0:g.map((b,y)=>{var{key:S,title:v,label:x,path:w}=b,C=IR(b,["key","title","label","path"]);let E=x??v;return w&&(E=l.createElement("a",{href:`${s}${w}`},E)),Object.assign(Object.assign({},C),{key:S??y,label:E})})})}else o&&(f.overlay=o);return l.createElement(sm,Object.assign({placement:"bottom"},f),l.createElement("span",{className:`${t}-overlay-link`},d,l.createElement(L0,null)))}return d})(r);return u!=null?l.createElement(l.Fragment,null,l.createElement("li",null,u),n&&l.createElement(W0,null,n)):null},KV=e=>{const{prefixCls:t,children:n,href:r}=e,a=IR(e,["prefixCls","children","href"]),{getPrefixCls:o}=l.useContext(st),i=o("breadcrumb",t);return l.createElement(qV,Object.assign({},a,{prefixCls:i}),GV(i,a,n,r))};KV.__ANT_BREADCRUMB_ITEM=!0;const Ppe=e=>{const{componentCls:t,iconCls:n,calc:r}=e;return{[t]:Object.assign(Object.assign({},nn(e)),{color:e.itemColor,fontSize:e.fontSize,[n]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${K(e.paddingXXS)}`,borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",marginInline:r(e.marginXXS).mul(-1).equal(),"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},Hi(e)),"li:last-child":{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[` > ${n} + span, > ${n} + a - `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",padding:`0 ${K(e.paddingXXS)}`,marginInline:r(e.marginXXS).mul(-1).equal(),[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},Dpe=e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}),Lpe=on("Breadcrumb",e=>{const t=zt(e,{});return Ppe(t)},Dpe);var $4=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{breadcrumbName:i}=o,s=$4(o,["breadcrumbName"]);return Object.assign(Object.assign({},s),{title:i})})}),a}function jpe(e,t){return l.useMemo(()=>e||(t?t.map(Fpe):null),[e,t])}var Bpe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{if(t===void 0)return t;let n=(t||"").replace(/^\//,"");return Object.keys(e).forEach(r=>{n=n.replace(`:${r}`,e[r])}),n},Xd=e=>{const{prefixCls:t,separator:n="/",style:r,className:a,rootClassName:o,routes:i,items:s,children:c,itemRender:u,params:d={}}=e,f=Bpe(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:p,direction:g,breadcrumb:h}=l.useContext(st);let b;const y=p("breadcrumb",t),[S,v,x]=Lpe(y),C=jpe(s,i),w=Mpe(y,u);if(C&&C.length>0){const T=[],R=s||i;b=C.map((_,$)=>{const{path:P,key:D,type:A,menu:O,overlay:N,onClick:k,className:M,separator:L,dropdownProps:F}=_,j=zpe(d,P);j!==void 0&&T.push(j);const B=D??$;if(A==="separator")return l.createElement(V0,{key:B},L);const z={},H=$===C.length-1;O?z.menu=O:N&&(z.overlay=N);let{href:V}=_;return T.length&&j!==void 0&&(V=`#/${T.join("/")}`),l.createElement(qV,Object.assign({key:B},z,Yn(_,{data:!0,aria:!0}),{className:M,dropdownProps:F,href:V,separator:H?"":n,onClick:k,prefixCls:y}),w(_,d,R,T,V))})}else if(c){const T=vr(c).length;b=vr(c).map((R,_)=>{if(!R)return R;const $=_===T-1;return Cr(R,{separator:$?"":n,key:_})})}const E=ne(y,h==null?void 0:h.className,{[`${y}-rtl`]:g==="rtl"},a,o,v,x),I=Object.assign(Object.assign({},h==null?void 0:h.style),r);return S(l.createElement("nav",Object.assign({className:E,style:I},f),l.createElement("ol",null,b)))};Xd.Item=KV;Xd.Separator=V0;var YV={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ya,function(){var n=1e3,r=6e4,a=36e5,o="millisecond",i="second",s="minute",c="hour",u="day",d="week",f="month",p="quarter",g="year",h="date",b="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|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,v={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(A){var O=["th","st","nd","rd"],N=A%100;return"["+A+(O[(N-20)%10]||O[N]||O[0])+"]"}},x=function(A,O,N){var k=String(A);return!k||k.length>=O?A:""+Array(O+1-k.length).join(N)+A},C={s:x,z:function(A){var O=-A.utcOffset(),N=Math.abs(O),k=Math.floor(N/60),M=N%60;return(O<=0?"+":"-")+x(k,2,"0")+":"+x(M,2,"0")},m:function A(O,N){if(O.date()1)return A(F[0])}else{var j=O.name;E[j]=O,M=j}return!k&&M&&(w=M),M||!k&&w},_=function(A,O){if(T(A))return A.clone();var N=typeof O=="object"?O:{};return N.date=A,N.args=arguments,new P(N)},$=C;$.l=R,$.i=T,$.w=function(A,O){return _(A,{locale:O.$L,utc:O.$u,x:O.$x,$offset:O.$offset})};var P=function(){function A(N){this.$L=R(N.locale,null,!0),this.parse(N),this.$x=this.$x||N.x||{},this[I]=!0}var O=A.prototype;return O.parse=function(N){this.$d=function(k){var M=k.date,L=k.utc;if(M===null)return new Date(NaN);if($.u(M))return new Date;if(M instanceof Date)return new Date(M);if(typeof M=="string"&&!/Z$/i.test(M)){var F=M.match(y);if(F){var j=F[2]-1||0,B=(F[7]||"0").substring(0,3);return L?new Date(Date.UTC(F[1],j,F[3]||1,F[4]||0,F[5]||0,F[6]||0,B)):new Date(F[1],j,F[3]||1,F[4]||0,F[5]||0,F[6]||0,B)}}return new Date(M)}(N),this.init()},O.init=function(){var N=this.$d;this.$y=N.getFullYear(),this.$M=N.getMonth(),this.$D=N.getDate(),this.$W=N.getDay(),this.$H=N.getHours(),this.$m=N.getMinutes(),this.$s=N.getSeconds(),this.$ms=N.getMilliseconds()},O.$utils=function(){return $},O.isValid=function(){return this.$d.toString()!==b},O.isSame=function(N,k){var M=_(N);return this.startOf(k)<=M&&M<=this.endOf(k)},O.isAfter=function(N,k){return _(N)25){var d=i(this).startOf(r).add(1,r).date(u),f=i(this).endOf(n);if(d.isBefore(f))return 1}var p=i(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),g=this.diff(p,n,!0);return g<0?i(this).startOf("week").week():Math.ceil(g)},s.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(QV);var qpe=QV.exports;const Kpe=Ma(qpe);var JV={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ya,function(){return function(n,r){r.prototype.weekYear=function(){var a=this.month(),o=this.week(),i=this.year();return o===1&&a===11?i+1:a===0&&o>=52?i-1:i}}})})(JV);var Ype=JV.exports;const Xpe=Ma(Ype);var eW={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ya,function(){return function(n,r){var a=r.prototype,o=a.format;a.format=function(i){var s=this,c=this.$locale();if(!this.isValid())return o.bind(this)(i);var u=this.$utils(),d=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(f){switch(f){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return c.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return c.ordinal(s.week(),"W");case"w":case"ww":return u.s(s.week(),f==="w"?1:2,"0");case"W":case"WW":return u.s(s.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return u.s(String(s.$H===0?24:s.$H),f==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return f}});return o.bind(this)(d)}}})})(eW);var Zpe=eW.exports;const Qpe=Ma(Zpe);var tW={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ya,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,o=/\d\d/,i=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,c={},u=function(y){return(y=+y)+(y>68?1900:2e3)},d=function(y){return function(S){this[y]=+S}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=function(S){if(!S||S==="Z")return 0;var v=S.match(/([+-]|\d\d)/g),x=60*v[1]+(+v[2]||0);return x===0?0:v[0]==="+"?-x:x}(y)}],p=function(y){var S=c[y];return S&&(S.indexOf?S:S.s.concat(S.f))},g=function(y,S){var v,x=c.meridiem;if(x){for(var C=1;C<=24;C+=1)if(y.indexOf(x(C,0,S))>-1){v=C>12;break}}else v=y===(S?"pm":"PM");return v},h={A:[s,function(y){this.afternoon=g(y,!1)}],a:[s,function(y){this.afternoon=g(y,!0)}],Q:[a,function(y){this.month=3*(y-1)+1}],S:[a,function(y){this.milliseconds=100*+y}],SS:[o,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[i,d("seconds")],ss:[i,d("seconds")],m:[i,d("minutes")],mm:[i,d("minutes")],H:[i,d("hours")],h:[i,d("hours")],HH:[i,d("hours")],hh:[i,d("hours")],D:[i,d("day")],DD:[o,d("day")],Do:[s,function(y){var S=c.ordinal,v=y.match(/\d+/);if(this.day=v[0],S)for(var x=1;x<=31;x+=1)S(x).replace(/\[|\]/g,"")===y&&(this.day=x)}],w:[i,d("week")],ww:[o,d("week")],M:[i,d("month")],MM:[o,d("month")],MMM:[s,function(y){var S=p("months"),v=(p("monthsShort")||S.map(function(x){return x.slice(0,3)})).indexOf(y)+1;if(v<1)throw new Error;this.month=v%12||v}],MMMM:[s,function(y){var S=p("months").indexOf(y)+1;if(S<1)throw new Error;this.month=S%12||S}],Y:[/[+-]?\d+/,d("year")],YY:[o,function(y){this.year=u(y)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function b(y){var S,v;S=y,v=c&&c.formats;for(var x=(y=S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(_,$,P){var D=P&&P.toUpperCase();return $||v[P]||n[P]||v[D].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(A,O,N){return O||N.slice(1)})})).match(r),C=x.length,w=0;w-1)return new Date((M==="X"?1e3:1)*k);var j=b(M)(k),B=j.year,z=j.month,H=j.day,V=j.hours,te=j.minutes,Y=j.seconds,J=j.milliseconds,G=j.zone,U=j.week,q=new Date,X=H||(B||z?1:q.getDate()),Q=B||q.getFullYear(),ee=0;B&&!z||(ee=z>0?z-1:q.getMonth());var oe,le=V||0,fe=te||0,ce=Y||0,Te=J||0;return G?new Date(Date.UTC(Q,ee,X,le,fe,ce,Te+60*G.offset*1e3)):L?new Date(Date.UTC(Q,ee,X,le,fe,ce,Te)):(oe=new Date(Q,ee,X,le,fe,ce,Te),U&&(oe=F(oe).week(U).toDate()),oe)}catch{return new Date("")}}(E,R,I,v),this.init(),D&&D!==!0&&(this.$L=this.locale(D).$L),P&&E!=this.format(R)&&(this.$d=new Date("")),c={}}else if(R instanceof Array)for(var A=R.length,O=1;O<=A;O+=1){T[1]=R[O-1];var N=v.apply(this,T);if(N.isValid()){this.$d=N.$d,this.$L=N.$L,this.init();break}O===A&&(this.$d=new Date(""))}else C.call(this,w)}}})})(tW);var Jpe=tW.exports;const ege=Ma(Jpe);Ha.extend(ege);Ha.extend(Qpe);Ha.extend(Vpe);Ha.extend(Gpe);Ha.extend(Kpe);Ha.extend(Xpe);Ha.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(o){var i=(o||"").replace("Wo","wo");return r.bind(this)(i)}});var tge={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},jl=function(t){var n=tge[t];return n||t.split("_")[0]},O4=function(){R9(!1,"Not match any format. Please help to fire a issue about this.")},nge={getNow:function(){return Ha()},getFixedDate:function(t){return Ha(t,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(t){return t.endOf("month")},getWeekDay:function(t){var n=t.locale("en");return n.weekday()+n.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},getMillisecond:function(t){return t.millisecond()},addYear:function(t,n){return t.add(n,"year")},addMonth:function(t,n){return t.add(n,"month")},addDate:function(t,n){return t.add(n,"day")},setYear:function(t,n){return t.year(n)},setMonth:function(t,n){return t.month(n)},setDate:function(t,n){return t.date(n)},setHour:function(t,n){return t.hour(n)},setMinute:function(t,n){return t.minute(n)},setSecond:function(t,n){return t.second(n)},setMillisecond:function(t,n){return t.millisecond(n)},isAfter:function(t,n){return t.isAfter(n)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return Ha().locale(jl(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(jl(t)).weekday(0)},getWeek:function(t,n){return n.locale(jl(t)).week()},getShortWeekDays:function(t){return Ha().locale(jl(t)).localeData().weekdaysMin()},getShortMonths:function(t){return Ha().locale(jl(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(jl(t)).format(r)},parse:function(t,n,r){for(var a=jl(t),o=0;o2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length2&&arguments[2]!==void 0?arguments[2]:[],r=l.useState([!1,!1]),a=re(r,2),o=a[0],i=a[1],s=function(d,f){i(function(p){return Sp(p,f,d)})},c=l.useMemo(function(){return o.map(function(u,d){if(u)return!0;var f=e[d];return f?!!(!n[d]&&!f||f&&t(f,{activeIndex:d})):!1})},[e,o,t,n]);return[c,s]}function lW(e,t,n,r,a){var o="",i=[];return e&&i.push(a?"hh":"HH"),t&&i.push("mm"),n&&i.push("ss"),o=i.join(":"),r&&(o+=".SSS"),a&&(o+=" A"),o}function age(e,t,n,r,a,o){var i=e.fieldDateTimeFormat,s=e.fieldDateFormat,c=e.fieldTimeFormat,u=e.fieldMonthFormat,d=e.fieldYearFormat,f=e.fieldWeekFormat,p=e.fieldQuarterFormat,g=e.yearFormat,h=e.cellYearFormat,b=e.cellQuarterFormat,y=e.dayFormat,S=e.cellDateFormat,v=lW(t,n,r,a,o);return Z(Z({},e),{},{fieldDateTimeFormat:i||"YYYY-MM-DD ".concat(v),fieldDateFormat:s||"YYYY-MM-DD",fieldTimeFormat:c||v,fieldMonthFormat:u||"YYYY-MM",fieldYearFormat:d||"YYYY",fieldWeekFormat:f||"gggg-wo",fieldQuarterFormat:p||"YYYY-[Q]Q",yearFormat:g||"YYYY",cellYearFormat:h||"YYYY",cellQuarterFormat:b||"[Q]Q",cellDateFormat:S||y||"D"})}function cW(e,t){var n=t.showHour,r=t.showMinute,a=t.showSecond,o=t.showMillisecond,i=t.use12Hours;return se.useMemo(function(){return age(e,n,r,a,o,i)},[e,n,r,a,o,i])}function Mf(e,t,n){return n??t.some(function(r){return e.includes(r)})}var oge=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function ige(e){var t=G0(e,oge),n=e.format,r=e.picker,a=null;return n&&(a=n,Array.isArray(a)&&(a=a[0]),a=ht(a)==="object"?a.format:a),r==="time"&&(t.format=a),[t,a]}function sge(e){return e&&typeof e=="string"}function uW(e,t,n,r){return[e,t,n,r].some(function(a){return a!==void 0})}function dW(e,t,n,r,a){var o=t,i=n,s=r;if(!e&&!o&&!i&&!s&&!a)o=!0,i=!0,s=!0;else if(e){var c,u,d,f=[o,i,s].some(function(h){return h===!1}),p=[o,i,s].some(function(h){return h===!0}),g=f?!0:!p;o=(c=o)!==null&&c!==void 0?c:g,i=(u=i)!==null&&u!==void 0?u:g,s=(d=s)!==null&&d!==void 0?d:g}return[o,i,s,a]}function fW(e){var t=e.showTime,n=ige(e),r=re(n,2),a=r[0],o=r[1],i=t&&ht(t)==="object"?t:{},s=Z(Z({defaultOpenValue:i.defaultOpenValue||i.defaultValue},a),i),c=s.showMillisecond,u=s.showHour,d=s.showMinute,f=s.showSecond,p=uW(u,d,f,c),g=dW(p,u,d,f,c),h=re(g,3);return u=h[0],d=h[1],f=h[2],[s,Z(Z({},s),{},{showHour:u,showMinute:d,showSecond:f,showMillisecond:c}),s.format,o]}function pW(e,t,n,r,a){var o=e==="time";if(e==="datetime"||o){for(var i=r,s=aW(e,a,null),c=s,u=[t,n],d=0;d1&&(i=t.addDate(i,-7)),i}function jr(e,t){var n=t.generateConfig,r=t.locale,a=t.format;return e?typeof a=="function"?a(e):n.locale.format(r.locale,e,a):""}function hb(e,t,n){var r=t,a=["getHour","getMinute","getSecond","getMillisecond"],o=["setHour","setMinute","setSecond","setMillisecond"];return o.forEach(function(i,s){n?r=e[i](r,e[a[s]](n)):r=e[i](r,0)}),r}function dge(e,t,n,r,a){var o=Wt(function(i,s){return!!(n&&n(i,s)||r&&e.isAfter(r,i)&&!va(e,t,r,i,s.type)||a&&e.isAfter(i,a)&&!va(e,t,a,i,s.type))});return o}function fge(e,t,n){return l.useMemo(function(){var r=aW(e,t,n),a=Lc(r),o=a[0],i=ht(o)==="object"&&o.type==="mask"?o.format:null;return[a.map(function(s){return typeof s=="string"||typeof s=="function"?s:s.format}),i]},[e,t,n])}function pge(e,t,n){return typeof e[0]=="function"||n?!0:t}function gge(e,t,n,r){var a=Wt(function(o,i){var s=Z({type:t},i);if(delete s.activeIndex,!e.isValidate(o)||n&&n(o,s))return!0;if((t==="date"||t==="time")&&r){var c,u=i&&i.activeIndex===1?"end":"start",d=((c=r.disabledTime)===null||c===void 0?void 0:c.call(r,o,u,{from:s.from}))||{},f=d.disabledHours,p=d.disabledMinutes,g=d.disabledSeconds,h=d.disabledMilliseconds,b=r.disabledHours,y=r.disabledMinutes,S=r.disabledSeconds,v=f||b,x=p||y,C=g||S,w=e.getHour(o),E=e.getMinute(o),I=e.getSecond(o),T=e.getMillisecond(o);if(v&&v().includes(w)||x&&x(w).includes(E)||C&&C(w,E).includes(I)||h&&h(w,E,I).includes(T))return!0}return!1});return a}function dh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=l.useMemo(function(){var r=e&&Lc(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function hW(e,t){var n=e.generateConfig,r=e.locale,a=e.picker,o=a===void 0?"date":a,i=e.prefixCls,s=i===void 0?"rc-picker":i,c=e.styles,u=c===void 0?{}:c,d=e.classNames,f=d===void 0?{}:d,p=e.order,g=p===void 0?!0:p,h=e.components,b=h===void 0?{}:h,y=e.inputRender,S=e.allowClear,v=e.clearIcon,x=e.needConfirm,C=e.multiple,w=e.format,E=e.inputReadOnly,I=e.disabledDate,T=e.minDate,R=e.maxDate,_=e.showTime,$=e.value,P=e.defaultValue,D=e.pickerValue,A=e.defaultPickerValue,O=dh($),N=dh(P),k=dh(D),M=dh(A),L=o==="date"&&_?"datetime":o,F=L==="time"||L==="datetime",j=F||C,B=x??F,z=fW(e),H=re(z,4),V=H[0],te=H[1],Y=H[2],J=H[3],G=cW(r,te),U=l.useMemo(function(){return pW(L,Y,J,V,G)},[L,Y,J,V,G]),q=l.useMemo(function(){return Z(Z({},e),{},{prefixCls:s,locale:G,picker:o,styles:u,classNames:f,order:g,components:Z({input:y},b),clearIcon:lge(s,S,v),showTime:U,value:O,defaultValue:N,pickerValue:k,defaultPickerValue:M},t==null?void 0:t())},[e]),X=fge(L,G,w),Q=re(X,2),ee=Q[0],oe=Q[1],le=pge(ee,E,C),fe=dge(n,r,I,T,R),ce=gge(n,o,fe,U),Te=l.useMemo(function(){return Z(Z({},q),{},{needConfirm:B,inputReadOnly:le,disabledDate:fe})},[q,B,le,fe]);return[Te,L,j,ee,oe,ce]}function mge(e,t,n){var r=sn(t,{value:e}),a=re(r,2),o=a[0],i=a[1],s=se.useRef(e),c=se.useRef(),u=function(){Ut.cancel(c.current)},d=Wt(function(){i(s.current),n&&o!==s.current&&n(s.current)}),f=Wt(function(p,g){u(),s.current=p,p||g?d():c.current=Ut(d)});return se.useEffect(function(){return u},[]),[o,f]}function vW(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,a=n.every(function(d){return d})?!1:e,o=mge(a,t||!1,r),i=re(o,2),s=i[0],c=i[1];function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!f.inherit||s)&&c(d,f.force)}return[s,u]}function bW(e){var t=l.useRef();return l.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(a){var o;(o=t.current)===null||o===void 0||o.focus(a)},blur:function(){var a;(a=t.current)===null||a===void 0||a.blur()}}}),t}function yW(e,t){return l.useMemo(function(){return e||(t?(vn(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=re(n,2),a=r[0],o=r[1];return{label:a,value:o}})):[])},[e,t])}function RO(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=l.useRef(t);r.current=t,cc(function(){if(e)r.current(e);else{var a=Ut(function(){r.current(e)},n);return function(){Ut.cancel(a)}}},[e])}function SW(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=l.useState(0),a=re(r,2),o=a[0],i=a[1],s=l.useState(!1),c=re(s,2),u=c[0],d=c[1],f=l.useRef([]),p=l.useRef(null),g=function(S){d(S)},h=function(S){return S&&(p.current=S),p.current},b=function(S){var v=f.current,x=new Set(v.filter(function(w){return S[w]||t[w]})),C=v[v.length-1]===0?1:0;return x.size>=2||e[C]?null:C};return RO(u||n,function(){u||(f.current=[])}),l.useEffect(function(){u&&f.current.push(o)},[u,o]),[u,g,h,o,i,b,f.current]}function hge(e,t,n,r,a,o){var i=n[n.length-1],s=function(u,d){var f=re(e,2),p=f[0],g=f[1],h=Z(Z({},d),{},{from:oW(e,n)});return i===1&&t[0]&&p&&!va(r,a,p,u,h.type)&&r.isAfter(p,u)||i===0&&t[1]&&g&&!va(r,a,g,u,h.type)&&r.isAfter(u,g)?!0:o==null?void 0:o(u,h)};return s}function Yf(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,r*10);case"decade":return e.addYear(n,r*100);default:return n}}var a1=[];function xW(e,t,n,r,a,o,i,s){var c=arguments.length>8&&arguments[8]!==void 0?arguments[8]:a1,u=arguments.length>9&&arguments[9]!==void 0?arguments[9]:a1,d=arguments.length>10&&arguments[10]!==void 0?arguments[10]:a1,f=arguments.length>11?arguments[11]:void 0,p=arguments.length>12?arguments[12]:void 0,g=arguments.length>13?arguments[13]:void 0,h=i==="time",b=o||0,y=function(k){var M=e.getNow();return h&&(M=hb(e,M)),c[k]||n[k]||M},S=re(u,2),v=S[0],x=S[1],C=sn(function(){return y(0)},{value:v}),w=re(C,2),E=w[0],I=w[1],T=sn(function(){return y(1)},{value:x}),R=re(T,2),_=R[0],$=R[1],P=l.useMemo(function(){var N=[E,_][b];return h?N:hb(e,N,d[b])},[h,E,_,b,e,d]),D=function(k){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",L=[I,$][b];L(k);var F=[E,_];F[b]=k,f&&(!va(e,t,E,F[0],i)||!va(e,t,_,F[1],i))&&f(F,{source:M,range:b===1?"end":"start",mode:r})},A=function(k,M){if(s){var L={date:"month",week:"month",month:"year",quarter:"year"},F=L[i];if(F&&!va(e,t,k,M,F))return Yf(e,i,M,-1);if(i==="year"&&k){var j=Math.floor(e.getYear(k)/10),B=Math.floor(e.getYear(M)/10);if(j!==B)return Yf(e,i,M,-1)}}return M},O=l.useRef(null);return Xt(function(){if(a&&!c[b]){var N=h?null:e.getNow();if(O.current!==null&&O.current!==b?N=[E,_][b^1]:n[b]?N=b===0?n[0]:A(n[0],n[1]):n[b^1]&&(N=n[b^1]),N){p&&e.isAfter(p,N)&&(N=p);var k=s?Yf(e,i,N,1):N;g&&e.isAfter(k,g)&&(N=s?Yf(e,i,g,-1):g),D(N,"reset")}}},[a,b,n[b]]),l.useEffect(function(){a?O.current=b:O.current=null},[a,b]),Xt(function(){a&&c&&c[b]&&D(c[b],"reset")},[a,b]),[P,D]}function wW(e,t){var n=l.useRef(e),r=l.useState({}),a=re(r,2),o=a[1],i=function(u){return u&&t!==void 0?t:n.current},s=function(u){n.current=u,o({})};return[i,s,i(!0)]}var vge=[];function CW(e,t,n){var r=function(i){return i.map(function(s){return jr(s,{generateConfig:e,locale:t,format:n[0]})})},a=function(i,s){for(var c=Math.max(i.length,s.length),u=-1,d=0;d2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,i=[],s=n>=1?n|0:1,c=e;c<=t;c+=s){var u=a.includes(c);(!u||!r)&&i.push({label:CO(c,o),value:c,disabled:u})}return i}function _O(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},a=r.use12Hours,o=r.hourStep,i=o===void 0?1:o,s=r.minuteStep,c=s===void 0?1:s,u=r.secondStep,d=u===void 0?1:u,f=r.millisecondStep,p=f===void 0?100:f,g=r.hideDisabledOptions,h=r.disabledTime,b=r.disabledHours,y=r.disabledMinutes,S=r.disabledSeconds,v=l.useMemo(function(){return n||e.getNow()},[n,e]),x=l.useCallback(function(M){var L=(h==null?void 0:h(M))||{};return[L.disabledHours||b||fh,L.disabledMinutes||y||fh,L.disabledSeconds||S||fh,L.disabledMilliseconds||fh]},[h,b,y,S]),C=l.useMemo(function(){return x(v)},[v,x]),w=re(C,4),E=w[0],I=w[1],T=w[2],R=w[3],_=l.useCallback(function(M,L,F,j){var B=ph(0,23,i,g,M()),z=a?B.map(function(Y){return Z(Z({},Y),{},{label:CO(Y.value%12||12,2)})}):B,H=function(J){return ph(0,59,c,g,L(J))},V=function(J,G){return ph(0,59,d,g,F(J,G))},te=function(J,G,U){return ph(0,999,p,g,j(J,G,U),3)};return[z,H,V,te]},[g,i,a,p,c,d]),$=l.useMemo(function(){return _(E,I,T,R)},[_,E,I,T,R]),P=re($,4),D=P[0],A=P[1],O=P[2],N=P[3],k=function(L,F){var j=function(){return D},B=A,z=O,H=N;if(F){var V=x(F),te=re(V,4),Y=te[0],J=te[1],G=te[2],U=te[3],q=_(Y,J,G,U),X=re(q,4),Q=X[0],ee=X[1],oe=X[2],le=X[3];j=function(){return Q},B=ee,z=oe,H=le}var fe=yge(L,j,B,z,H,e);return fe};return[k,D,A,O,N]}function Sge(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,a=e.showNow,o=e.showTime,i=e.onSubmit,s=e.onNow,c=e.invalid,u=e.needConfirm,d=e.generateConfig,f=e.disabledDate,p=l.useContext(xi),g=p.prefixCls,h=p.locale,b=p.button,y=b===void 0?"button":b,S=d.getNow(),v=_O(d,o,S),x=re(v,1),C=x[0],w=r==null?void 0:r(t),E=f(S,{type:t}),I=function(){if(!E){var A=C(S);s(A)}},T="".concat(g,"-now"),R="".concat(T,"-btn"),_=a&&l.createElement("li",{className:T},l.createElement("a",{className:ne(R,E&&"".concat(R,"-disabled")),"aria-disabled":E,onClick:I},n==="date"?h.today:h.now)),$=u&&l.createElement("li",{className:"".concat(g,"-ok")},l.createElement(y,{disabled:c,onClick:i},h.ok)),P=(_||$)&&l.createElement("ul",{className:"".concat(g,"-ranges")},_,$);return!w&&!P?null:l.createElement("div",{className:"".concat(g,"-footer")},w&&l.createElement("div",{className:"".concat(g,"-footer-extra")},w),P)}function _W(e,t,n){function r(a,o){var i=a.findIndex(function(c){return va(e,t,c,o,n)});if(i===-1)return[].concat(De(a),[o]);var s=De(a);return s.splice(i,1),s}return r}var Fc=l.createContext(null);function K0(){return l.useContext(Fc)}function Zd(e,t){var n=e.prefixCls,r=e.generateConfig,a=e.locale,o=e.disabledDate,i=e.minDate,s=e.maxDate,c=e.cellRender,u=e.hoverValue,d=e.hoverRangeValue,f=e.onHover,p=e.values,g=e.pickerValue,h=e.onSelect,b=e.prevIcon,y=e.nextIcon,S=e.superPrevIcon,v=e.superNextIcon,x=r.getNow(),C={now:x,values:p,pickerValue:g,prefixCls:n,disabledDate:o,minDate:i,maxDate:s,cellRender:c,hoverValue:u,hoverRangeValue:d,onHover:f,locale:a,generateConfig:r,onSelect:h,panelType:t,prevIcon:b,nextIcon:y,superPrevIcon:S,superNextIcon:v};return[C,x]}var dl=l.createContext({});function im(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,a=e.getCellDate,o=e.prefixColumn,i=e.rowClassName,s=e.titleFormat,c=e.getCellText,u=e.getCellClassName,d=e.headerCells,f=e.cellSelection,p=f===void 0?!0:f,g=e.disabledDate,h=K0(),b=h.prefixCls,y=h.panelType,S=h.now,v=h.disabledDate,x=h.cellRender,C=h.onHover,w=h.hoverValue,E=h.hoverRangeValue,I=h.generateConfig,T=h.values,R=h.locale,_=h.onSelect,$=g||v,P="".concat(b,"-cell"),D=l.useContext(dl),A=D.onCellDblClick,O=function(z){return T.some(function(H){return H&&va(I,R,z,H,y)})},N=[],k=0;k1&&arguments[1]!==void 0?arguments[1]:!1;ae(ke),y==null||y(ke),xe&&ie(ke)},ye=function(ke,xe){G(ke),xe&&ue(xe),ie(xe,ke)},Ee=function(ke){if(ce(ke),ue(ke),J!==C){var xe=["decade","year"],ge=[].concat(xe,["month"]),Pe={quarter:[].concat(xe,["quarter"]),week:[].concat(De(ge),["week"]),date:[].concat(De(ge),["date"])},Ve=Pe[C]||ge,Ae=Ve.indexOf(J),be=Ve[Ae+1];be&&ye(be,ke)}},Me=l.useMemo(function(){var he,ke;if(Array.isArray(I)){var xe=re(I,2);he=xe[0],ke=xe[1]}else he=I;return!he&&!ke?null:(he=he||ke,ke=ke||he,a.isAfter(he,ke)?[ke,he]:[he,ke])},[I,a]),Ie=EO(T,R,_),Ce=P[U]||Nge[U]||Y0,me=l.useContext(dl),we=l.useMemo(function(){return Z(Z({},me),{},{hideHeader:D})},[me,D]),_e="".concat(A,"-panel"),Ne=G0(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return l.createElement(dl.Provider,{value:we},l.createElement("div",{ref:O,tabIndex:c,className:ne(_e,W({},"".concat(_e,"-rtl"),o==="rtl"))},l.createElement(Ce,pe({},Ne,{showTime:H,prefixCls:A,locale:B,generateConfig:a,onModeChange:ye,pickerValue:ve,onPickerValueChange:function(ke){ue(ke,!0)},value:le[0],onSelect:Ee,values:le,cellRender:Ie,hoverRangeValue:Me,hoverValue:E}))))}var o1=l.memo(l.forwardRef(kge));function Age(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,a=e.onPickerValueChange,o=e.needConfirm,i=e.onSubmit,s=e.range,c=e.hoverValue,u=l.useContext(xi),d=u.prefixCls,f=u.generateConfig,p=l.useCallback(function(v,x){return Yf(f,t,v,x)},[f,t]),g=l.useMemo(function(){return p(r,1)},[r,p]),h=function(x){a(p(x,-1))},b={onCellDblClick:function(){o&&i()}},y=t==="time",S=Z(Z({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:y});return s?S.hoverRangeValue=c:S.hoverValue=c,n?l.createElement("div",{className:"".concat(d,"-panels")},l.createElement(dl.Provider,{value:Z(Z({},b),{},{hideNext:!0})},l.createElement(o1,S)),l.createElement(dl.Provider,{value:Z(Z({},b),{},{hidePrev:!0})},l.createElement(o1,pe({},S,{pickerValue:g,onPickerValueChange:h})))):l.createElement(dl.Provider,{value:Z({},b)},l.createElement(o1,S))}function k4(e){return typeof e=="function"?e():e}function Mge(e){var t=e.prefixCls,n=e.presets,r=e.onClick,a=e.onHover;return n.length?l.createElement("div",{className:"".concat(t,"-presets")},l.createElement("ul",null,n.map(function(o,i){var s=o.label,c=o.value;return l.createElement("li",{key:i,onClick:function(){r(k4(c))},onMouseEnter:function(){a(k4(c))},onMouseLeave:function(){a(null)}},s)}))):null}function OW(e){var t=e.panelRender,n=e.internalMode,r=e.picker,a=e.showNow,o=e.range,i=e.multiple,s=e.activeOffset,c=s===void 0?0:s,u=e.placement,d=e.presets,f=e.onPresetHover,p=e.onPresetSubmit,g=e.onFocus,h=e.onBlur,b=e.onPanelMouseDown,y=e.direction,S=e.value,v=e.onSelect,x=e.isInvalid,C=e.defaultOpenValue,w=e.onOk,E=e.onSubmit,I=l.useContext(xi),T=I.prefixCls,R="".concat(T,"-panel"),_=y==="rtl",$=l.useRef(null),P=l.useRef(null),D=l.useState(0),A=re(D,2),O=A[0],N=A[1],k=l.useState(0),M=re(k,2),L=M[0],F=M[1],j=function(fe){fe.offsetWidth&&N(fe.offsetWidth)};l.useEffect(function(){if(o){var le,fe=((le=$.current)===null||le===void 0?void 0:le.offsetWidth)||0,ce=O-fe;c<=ce?F(0):F(c+fe-O)}},[O,c,o]);function B(le){return le.filter(function(fe){return fe})}var z=l.useMemo(function(){return B(Lc(S))},[S]),H=r==="time"&&!z.length,V=l.useMemo(function(){return H?B([C]):z},[H,z,C]),te=H?C:z,Y=l.useMemo(function(){return V.length?V.some(function(le){return x(le)}):!0},[V,x]),J=function(){H&&v(C),w(),E()},G=l.createElement("div",{className:"".concat(T,"-panel-layout")},l.createElement(Mge,{prefixCls:T,presets:d,onClick:p,onHover:f}),l.createElement("div",null,l.createElement(Age,pe({},e,{value:te})),l.createElement(Sge,pe({},e,{showNow:i?!1:a,invalid:Y,onSubmit:J}))));t&&(G=t(G));var U="".concat(R,"-container"),q="marginLeft",X="marginRight",Q=l.createElement("div",{onMouseDown:b,tabIndex:-1,className:ne(U,"".concat(T,"-").concat(n,"-panel-container")),style:W(W({},_?X:q,L),_?q:X,"auto"),onFocus:g,onBlur:h},G);if(o){var ee=W0(u,_),oe=nW(ee,_);Q=l.createElement("div",{onMouseDown:b,ref:P,className:ne("".concat(T,"-range-wrapper"),"".concat(T,"-").concat(r,"-range-wrapper"))},l.createElement("div",{ref:$,className:"".concat(T,"-range-arrow"),style:W({},oe,c)}),l.createElement(sa,{onResize:j},Q))}return Q}function NW(e,t){var n=e.format,r=e.maskFormat,a=e.generateConfig,o=e.locale,i=e.preserveInvalidOnBlur,s=e.inputReadOnly,c=e.required,u=e["aria-required"],d=e.onSubmit,f=e.onFocus,p=e.onBlur,g=e.onInputChange,h=e.onInvalid,b=e.open,y=e.onOpenChange,S=e.onKeyDown,v=e.onChange,x=e.activeHelp,C=e.name,w=e.autoComplete,E=e.id,I=e.value,T=e.invalid,R=e.placeholder,_=e.disabled,$=e.activeIndex,P=e.allHelp,D=e.picker,A=function(B,z){var H=a.locale.parse(o.locale,B,[z]);return H&&a.isValidate(H)?H:null},O=n[0],N=l.useCallback(function(j){return jr(j,{locale:o,format:O,generateConfig:a})},[o,a,O]),k=l.useMemo(function(){return I.map(N)},[I,N]),M=l.useMemo(function(){var j=D==="time"?8:10,B=typeof O=="function"?O(a.getNow()).length:O.length;return Math.max(j,B)+2},[O,D,a]),L=function(B){for(var z=0;z=s&&n<=c)return o;var u=Math.min(Math.abs(n-s),Math.abs(n-c));u0?Ze:je));var qe=ft+Ke,We=je-Ze+1;return String(Ze+(We+qe-Ze)%We)};switch(ke){case"Backspace":case"Delete":xe="",ge=Ve;break;case"ArrowLeft":xe="",Ae(-1);break;case"ArrowRight":xe="",Ae(1);break;case"ArrowUp":xe="",ge=be(1);break;case"ArrowDown":xe="",ge=be(-1);break;default:isNaN(Number(ke))||(xe=j+ke,ge=xe);break}if(xe!==null&&(B(xe),xe.length>=Pe&&(Ae(1),B(""))),ge!==null){var Oe=q.slice(0,fe)+CO(ge,Pe)+q.slice(ce);Se(Oe.slice(0,i.length))}U({})},we=l.useRef();Xt(function(){if(!(!D||!i||ie.current)){if(!ee.match(q)){Se(i);return}return Q.current.setSelectionRange(fe,ce),we.current=Ut(function(){Q.current.setSelectionRange(fe,ce)}),function(){Ut.cancel(we.current)}}},[ee,i,D,q,V,fe,ce,G,Se]);var _e=i?{onFocus:Ee,onBlur:Ie,onKeyDown:me,onMouseDown:ue,onMouseUp:ye,onPaste:ae}:{};return l.createElement("div",{ref:X,className:ne(_,W(W({},"".concat(_,"-active"),n&&a),"".concat(_,"-placeholder"),u))},l.createElement(R,pe({ref:Q,"aria-invalid":b,autoComplete:"off"},S,{onKeyDown:Ce,onBlur:Me},_e,{value:q,onChange:ve})),l.createElement(X0,{type:"suffix",icon:o}),y)}),zge=["id","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveOffset","placement","onMouseDown","required","aria-required","autoFocus"],Hge=["index"];function Uge(e,t){var n=e.id,r=e.clearIcon,a=e.suffixIcon,o=e.separator,i=o===void 0?"~":o,s=e.activeIndex;e.activeHelp,e.allHelp;var c=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var u=e.placeholder,d=e.className,f=e.style,p=e.onClick,g=e.onClear,h=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var b=e.disabled,y=e.invalid;e.inputReadOnly;var S=e.direction;e.onOpenChange;var v=e.onActiveOffset,x=e.placement,C=e.onMouseDown;e.required,e["aria-required"];var w=e.autoFocus,E=xt(e,zge),I=S==="rtl",T=l.useContext(xi),R=T.prefixCls,_=l.useMemo(function(){if(typeof n=="string")return[n];var q=n||{};return[q.start,q.end]},[n]),$=l.useRef(),P=l.useRef(),D=l.useRef(),A=function(X){var Q;return(Q=[P,D][X])===null||Q===void 0?void 0:Q.current};l.useImperativeHandle(t,function(){return{nativeElement:$.current,focus:function(X){if(ht(X)==="object"){var Q,ee=X||{},oe=ee.index,le=oe===void 0?0:oe,fe=xt(ee,Hge);(Q=A(le))===null||Q===void 0||Q.focus(fe)}else{var ce;(ce=A(X??0))===null||ce===void 0||ce.focus()}},blur:function(){var X,Q;(X=A(0))===null||X===void 0||X.blur(),(Q=A(1))===null||Q===void 0||Q.blur()}}});var O=kW(E),N=l.useMemo(function(){return Array.isArray(u)?u:[u,u]},[u]),k=NW(Z(Z({},e),{},{id:_,placeholder:N})),M=re(k,1),L=M[0],F=W0(x,I),j=nW(F,I),B=F==null?void 0:F.toLowerCase().endsWith("right"),z=l.useState({position:"absolute",width:0}),H=re(z,2),V=H[0],te=H[1],Y=Wt(function(){var q=A(s);if(q){var X=q.nativeElement,Q=X.offsetWidth,ee=X.offsetLeft,oe=X.offsetParent,le=(oe==null?void 0:oe.offsetWidth)||0,fe=B?le-Q-ee:ee;te(function(ce){return Z(Z({},ce),{},W({width:Q},j,fe))}),v(fe)}});l.useEffect(function(){Y()},[s]);var J=r&&(h[0]&&!b[0]||h[1]&&!b[1]),G=w&&!b[0],U=w&&!G&&!b[1];return l.createElement(sa,{onResize:Y},l.createElement("div",pe({},O,{className:ne(R,"".concat(R,"-range"),W(W(W(W({},"".concat(R,"-focused"),c),"".concat(R,"-disabled"),b.every(function(q){return q})),"".concat(R,"-invalid"),y.some(function(q){return q})),"".concat(R,"-rtl"),I),d),style:f,ref:$,onClick:p,onMouseDown:function(X){var Q=X.target;Q!==P.current.inputElement&&Q!==D.current.inputElement&&X.preventDefault(),C==null||C(X)}}),l.createElement(RR,pe({ref:P},L(0),{autoFocus:G,"date-range":"start"})),l.createElement("div",{className:"".concat(R,"-range-separator")},i),l.createElement(RR,pe({ref:D},L(1),{autoFocus:U,"date-range":"end"})),l.createElement("div",{className:"".concat(R,"-active-bar"),style:V}),l.createElement(X0,{type:"suffix",icon:a}),J&&l.createElement(TR,{icon:r,onClear:g})))}var Vge=l.forwardRef(Uge);function M4(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function mh(e){return e===1?"end":"start"}function Wge(e,t){var n=hW(e,function(){var Ht=e.disabled,Lt=e.allowEmpty,pt=M4(Ht,!1),Dt=M4(Lt,!1);return{disabled:pt,allowEmpty:Dt}}),r=re(n,6),a=r[0],o=r[1],i=r[2],s=r[3],c=r[4],u=r[5],d=a.prefixCls,f=a.styles,p=a.classNames,g=a.placement,h=a.defaultValue,b=a.value,y=a.needConfirm,S=a.onKeyDown,v=a.disabled,x=a.allowEmpty,C=a.disabledDate,w=a.minDate,E=a.maxDate,I=a.defaultOpen,T=a.open,R=a.onOpenChange,_=a.locale,$=a.generateConfig,P=a.picker,D=a.showNow,A=a.showToday,O=a.showTime,N=a.mode,k=a.onPanelChange,M=a.onCalendarChange,L=a.onOk,F=a.defaultPickerValue,j=a.pickerValue,B=a.onPickerValueChange,z=a.inputReadOnly,H=a.suffixIcon,V=a.onFocus,te=a.onBlur,Y=a.presets,J=a.ranges,G=a.components,U=a.cellRender,q=a.dateRender,X=a.monthCellRender,Q=a.onClick,ee=bW(t),oe=vW(T,I,v,R),le=re(oe,2),fe=le[0],ce=le[1],Te=function(Lt,pt){(v.some(function(Dt){return!Dt})||!Lt)&&ce(Lt,pt)},Se=IW($,_,s,!0,!1,h,b,M,L),ve=re(Se,5),ae=ve[0],ie=ve[1],ue=ve[2],ye=ve[3],Ee=ve[4],Me=ue(),Ie=SW(v,x,fe),Ce=re(Ie,7),me=Ce[0],we=Ce[1],_e=Ce[2],Ne=Ce[3],he=Ce[4],ke=Ce[5],xe=Ce[6],ge=function(Lt,pt){we(!0),V==null||V(Lt,{range:mh(pt??Ne)})},Pe=function(Lt,pt){we(!1),te==null||te(Lt,{range:mh(pt??Ne)})},Ve=l.useMemo(function(){if(!O)return null;var Ht=O.disabledTime,Lt=Ht?function(pt){var Dt=mh(Ne),yn=oW(Me,xe,Ne);return Ht(pt,Dt,{from:yn})}:void 0;return Z(Z({},O),{},{disabledTime:Lt})},[O,Ne,Me,xe]),Ae=sn([P,P],{value:N}),be=re(Ae,2),Oe=be[0],Fe=be[1],Ke=Oe[Ne]||P,He=Ke==="date"&&Ve?"datetime":Ke,ze=He===P&&He!=="time",Ze=RW(P,Ke,D,A,!0),je=TW(a,ae,ie,ue,ye,v,s,me,fe,u),Je=re(je,2),mt=Je[0],ft=Je[1],qe=hge(Me,v,xe,$,_,C),We=sW(Me,u,x),Qe=re(We,2),ct=Qe[0],Rt=Qe[1],$t=xW($,_,Me,Oe,fe,Ne,o,ze,F,j,Ve==null?void 0:Ve.defaultOpenValue,B,w,E),vt=re($t,2),lt=vt[0],ot=vt[1],et=Wt(function(Ht,Lt,pt){var Dt=Sp(Oe,Ne,Lt);if((Dt[0]!==Oe[0]||Dt[1]!==Oe[1])&&Fe(Dt),k&&pt!==!1){var yn=De(Me);Ht&&(yn[Ne]=Ht),k(yn,Dt)}}),bt=function(Lt,pt){return Sp(Me,pt,Lt)},rt=function(Lt,pt){var Dt=Me;Lt&&(Dt=bt(Lt,Ne));var yn=ke(Dt);ye(Dt),mt(Ne,yn===null),yn===null?Te(!1,{force:!0}):pt||ee.current.focus({index:yn})},St=function(Lt){var pt,Dt=Lt.target.getRootNode();if(!ee.current.nativeElement.contains((pt=Dt.activeElement)!==null&&pt!==void 0?pt:document.activeElement)){var yn=v.findIndex(function(fr){return!fr});yn>=0&&ee.current.focus({index:yn})}Te(!0),Q==null||Q(Lt)},Et=function(){ft(null),Te(!1,{force:!0})},tt=l.useState(null),at=re(tt,2),Ye=at[0],Ge=at[1],yt=l.useState(null),Tt=re(yt,2),Pt=Tt[0],en=Tt[1],rn=l.useMemo(function(){return Pt||Me},[Me,Pt]);l.useEffect(function(){fe||en(null)},[fe]);var Vt=l.useState(0),tn=re(Vt,2),It=tn[0],_t=tn[1],kt=yW(Y,J),Tn=function(Lt){en(Lt),Ge("preset")},Qn=function(Lt){var pt=ft(Lt);pt&&Te(!1,{force:!0})},cr=function(Lt){rt(Lt)},Jn=function(Lt){en(Lt?bt(Lt,Ne):null),Ge("cell")},Hr=function(Lt){Te(!0),ge(Lt)},Mr=function(){_e("panel")},er=function(Lt){var pt=Sp(Me,Ne,Lt);ye(pt),!y&&!i&&o===He&&rt(Lt)},Kt=function(){Te(!1)},Ft=EO(U,q,X,mh(Ne)),Gt=Me[Ne]||null,jt=Wt(function(Ht){return u(Ht,{activeIndex:Ne})}),Bt=l.useMemo(function(){var Ht=Yn(a,!1),Lt=On(a,[].concat(De(Object.keys(Ht)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return Lt},[a]),wt=l.createElement(OW,pe({},Bt,{showNow:Ze,showTime:Ve,range:!0,multiplePanel:ze,activeOffset:It,placement:g,disabledDate:qe,onFocus:Hr,onBlur:Pe,onPanelMouseDown:Mr,picker:P,mode:Ke,internalMode:He,onPanelChange:et,format:c,value:Gt,isInvalid:jt,onChange:null,onSelect:er,pickerValue:lt,defaultOpenValue:Lc(O==null?void 0:O.defaultOpenValue)[Ne],onPickerValueChange:ot,hoverValue:rn,onHover:Jn,needConfirm:y,onSubmit:rt,onOk:Ee,presets:kt,onPresetHover:Tn,onPresetSubmit:Qn,onNow:cr,cellRender:Ft})),Ct=function(Lt,pt){var Dt=bt(Lt,pt);ye(Dt)},cn=function(){_e("input")},Rn=function(Lt,pt){_e("input"),Te(!0,{inherit:!0}),Ne!==pt&&fe&&!y&&i&&rt(null,!0),he(pt),ge(Lt,pt)},ur=function(Lt,pt){if(Te(!1),!y&&_e()==="input"){var Dt=ke(Me);mt(Ne,Dt===null)}Pe(Lt,pt)},dr=function(Lt,pt){Lt.key==="Tab"&&rt(null,!0),S==null||S(Lt,pt)},yr=l.useMemo(function(){return{prefixCls:d,locale:_,generateConfig:$,button:G.button,input:G.input}},[d,_,$,G.button,G.input]);return Xt(function(){fe&&Ne!==void 0&&et(null,P,!1)},[fe,Ne,P]),Xt(function(){var Ht=_e();!fe&&Ht==="input"&&(Te(!1),rt(null,!0)),!fe&&i&&!y&&Ht==="panel"&&(Te(!0),rt())},[fe]),l.createElement(xi.Provider,{value:yr},l.createElement(rW,pe({},iW(a),{popupElement:wt,popupStyle:f.popup,popupClassName:p.popup,visible:fe,onClose:Kt,range:!0}),l.createElement(Vge,pe({},a,{ref:ee,suffixIcon:H,activeIndex:me||fe?Ne:null,activeHelp:!!Pt,allHelp:!!Pt&&Ye==="preset",focused:me,onFocus:Rn,onBlur:ur,onKeyDown:dr,onSubmit:rt,value:rn,maskFormat:c,onChange:Ct,onInputChange:cn,format:s,inputReadOnly:z,disabled:v,open:fe,onOpenChange:Te,onClick:St,onClear:Et,invalid:ct,onInvalid:Rt,onActiveOffset:_t}))))}var Gge=l.forwardRef(Wge);function qge(e){var t=e.prefixCls,n=e.value,r=e.onRemove,a=e.removeIcon,o=a===void 0?"×":a,i=e.formatDate,s=e.disabled,c=e.maxTagCount,u=e.placeholder,d="".concat(t,"-selector"),f="".concat(t,"-selection"),p="".concat(f,"-overflow");function g(y,S){return l.createElement("span",{className:ne("".concat(f,"-item")),title:typeof y=="string"?y:null},l.createElement("span",{className:"".concat(f,"-item-content")},y),!s&&S&&l.createElement("span",{onMouseDown:function(x){x.preventDefault()},onClick:S,className:"".concat(f,"-item-remove")},o))}function h(y){var S=i(y),v=function(C){C&&C.stopPropagation(),r(y)};return g(S,v)}function b(y){var S="+ ".concat(y.length," ...");return g(S)}return l.createElement("div",{className:d},l.createElement(di,{prefixCls:p,data:n,renderItem:h,renderRest:b,itemKey:function(S){return i(S)},maxCount:c}),!n.length&&l.createElement("span",{className:"".concat(t,"-selection-placeholder")},u))}var Kge=["id","open","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","removeIcon"];function Yge(e,t){e.id;var n=e.open,r=e.clearIcon,a=e.suffixIcon;e.activeHelp,e.allHelp;var o=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var i=e.locale,s=e.generateConfig,c=e.placeholder,u=e.className,d=e.style,f=e.onClick,p=e.onClear,g=e.internalPicker,h=e.value,b=e.onChange,y=e.onSubmit;e.onInputChange;var S=e.multiple,v=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var x=e.disabled,C=e.invalid;e.inputReadOnly;var w=e.direction;e.onOpenChange;var E=e.onMouseDown;e.required,e["aria-required"];var I=e.autoFocus,T=e.removeIcon,R=xt(e,Kge),_=w==="rtl",$=l.useContext(xi),P=$.prefixCls,D=l.useRef(),A=l.useRef();l.useImperativeHandle(t,function(){return{nativeElement:D.current,focus:function(V){var te;(te=A.current)===null||te===void 0||te.focus(V)},blur:function(){var V;(V=A.current)===null||V===void 0||V.blur()}}});var O=kW(R),N=function(V){b([V])},k=function(V){var te=h.filter(function(Y){return Y&&!va(s,i,Y,V,g)});b(te),n||y()},M=NW(Z(Z({},e),{},{onChange:N}),function(H){var V=H.valueTexts;return{value:V[0]||"",active:o}}),L=re(M,2),F=L[0],j=L[1],B=!!(r&&h.length&&!x),z=S?l.createElement(l.Fragment,null,l.createElement(qge,{prefixCls:P,value:h,onRemove:k,formatDate:j,maxTagCount:v,disabled:x,removeIcon:T,placeholder:c}),l.createElement("input",{className:"".concat(P,"-multiple-input"),value:h.map(j).join(","),ref:A,readOnly:!0,autoFocus:I}),l.createElement(X0,{type:"suffix",icon:a}),B&&l.createElement(TR,{icon:r,onClear:p})):l.createElement(RR,pe({ref:A},F(),{autoFocus:I,suffixIcon:a,clearIcon:B&&l.createElement(TR,{icon:r,onClear:p}),showActiveCls:!1}));return l.createElement("div",pe({},O,{className:ne(P,W(W(W(W(W({},"".concat(P,"-multiple"),S),"".concat(P,"-focused"),o),"".concat(P,"-disabled"),x),"".concat(P,"-invalid"),C),"".concat(P,"-rtl"),_),u),style:d,ref:D,onClick:f,onMouseDown:function(V){var te,Y=V.target;Y!==((te=A.current)===null||te===void 0?void 0:te.inputElement)&&V.preventDefault(),E==null||E(V)}}),z)}var Xge=l.forwardRef(Yge);function Zge(e,t){var n=hW(e),r=re(n,6),a=r[0],o=r[1],i=r[2],s=r[3],c=r[4],u=r[5],d=a,f=d.prefixCls,p=d.styles,g=d.classNames,h=d.order,b=d.defaultValue,y=d.value,S=d.needConfirm,v=d.onChange,x=d.onKeyDown,C=d.disabled,w=d.disabledDate,E=d.minDate,I=d.maxDate,T=d.defaultOpen,R=d.open,_=d.onOpenChange,$=d.locale,P=d.generateConfig,D=d.picker,A=d.showNow,O=d.showToday,N=d.showTime,k=d.mode,M=d.onPanelChange,L=d.onCalendarChange,F=d.onOk,j=d.multiple,B=d.defaultPickerValue,z=d.pickerValue,H=d.onPickerValueChange,V=d.inputReadOnly,te=d.suffixIcon,Y=d.removeIcon,J=d.onFocus,G=d.onBlur,U=d.presets,q=d.components,X=d.cellRender,Q=d.dateRender,ee=d.monthCellRender,oe=d.onClick,le=bW(t);function fe(wt){return wt===null?null:j?wt:wt[0]}var ce=_W(P,$,o),Te=vW(R,T,[C],_),Se=re(Te,2),ve=Se[0],ae=Se[1],ie=function(Ct,cn,Rn){if(L){var ur=Z({},Rn);delete ur.range,L(fe(Ct),fe(cn),ur)}},ue=function(Ct){F==null||F(fe(Ct))},ye=IW(P,$,s,!1,h,b,y,ie,ue),Ee=re(ye,5),Me=Ee[0],Ie=Ee[1],Ce=Ee[2],me=Ee[3],we=Ee[4],_e=Ce(),Ne=SW([C]),he=re(Ne,4),ke=he[0],xe=he[1],ge=he[2],Pe=he[3],Ve=function(Ct){xe(!0),J==null||J(Ct,{})},Ae=function(Ct){xe(!1),G==null||G(Ct,{})},be=sn(D,{value:k}),Oe=re(be,2),Fe=Oe[0],Ke=Oe[1],He=Fe==="date"&&N?"datetime":Fe,ze=RW(D,Fe,A,O),Ze=v&&function(wt,Ct){v(fe(wt),fe(Ct))},je=TW(Z(Z({},a),{},{onChange:Ze}),Me,Ie,Ce,me,[],s,ke,ve,u),Je=re(je,2),mt=Je[1],ft=sW(_e,u),qe=re(ft,2),We=qe[0],Qe=qe[1],ct=l.useMemo(function(){return We.some(function(wt){return wt})},[We]),Rt=function(Ct,cn){if(H){var Rn=Z(Z({},cn),{},{mode:cn.mode[0]});delete Rn.range,H(Ct[0],Rn)}},$t=xW(P,$,_e,[Fe],ve,Pe,o,!1,B,z,Lc(N==null?void 0:N.defaultOpenValue),Rt,E,I),vt=re($t,2),lt=vt[0],ot=vt[1],et=Wt(function(wt,Ct,cn){if(Ke(Ct),M&&cn!==!1){var Rn=wt||_e[_e.length-1];M(Rn,Ct)}}),bt=function(){mt(Ce()),ae(!1,{force:!0})},rt=function(Ct){!C&&!le.current.nativeElement.contains(document.activeElement)&&le.current.focus(),ae(!0),oe==null||oe(Ct)},St=function(){mt(null),ae(!1,{force:!0})},Et=l.useState(null),tt=re(Et,2),at=tt[0],Ye=tt[1],Ge=l.useState(null),yt=re(Ge,2),Tt=yt[0],Pt=yt[1],en=l.useMemo(function(){var wt=[Tt].concat(De(_e)).filter(function(Ct){return Ct});return j?wt:wt.slice(0,1)},[_e,Tt,j]),rn=l.useMemo(function(){return!j&&Tt?[Tt]:_e.filter(function(wt){return wt})},[_e,Tt,j]);l.useEffect(function(){ve||Pt(null)},[ve]);var Vt=yW(U),tn=function(Ct){Pt(Ct),Ye("preset")},It=function(Ct){var cn=j?ce(Ce(),Ct):[Ct],Rn=mt(cn);Rn&&!j&&ae(!1,{force:!0})},_t=function(Ct){It(Ct)},kt=function(Ct){Pt(Ct),Ye("cell")},Tn=function(Ct){ae(!0),Ve(Ct)},Qn=function(Ct){ge("panel");var cn=j?ce(Ce(),Ct):[Ct];me(cn),!S&&!i&&o===He&&bt()},cr=function(){ae(!1)},Jn=EO(X,Q,ee),Hr=l.useMemo(function(){var wt=Yn(a,!1),Ct=On(a,[].concat(De(Object.keys(wt)),["onChange","onCalendarChange","style","className","onPanelChange"]));return Z(Z({},Ct),{},{multiple:a.multiple})},[a]),Mr=l.createElement(OW,pe({},Hr,{showNow:ze,showTime:N,disabledDate:w,onFocus:Tn,onBlur:Ae,picker:D,mode:Fe,internalMode:He,onPanelChange:et,format:c,value:_e,isInvalid:u,onChange:null,onSelect:Qn,pickerValue:lt,defaultOpenValue:N==null?void 0:N.defaultOpenValue,onPickerValueChange:ot,hoverValue:en,onHover:kt,needConfirm:S,onSubmit:bt,onOk:we,presets:Vt,onPresetHover:tn,onPresetSubmit:It,onNow:_t,cellRender:Jn})),er=function(Ct){me(Ct)},Kt=function(){ge("input")},Ft=function(Ct){ge("input"),ae(!0,{inherit:!0}),Ve(Ct)},Gt=function(Ct){ae(!1),Ae(Ct)},jt=function(Ct,cn){Ct.key==="Tab"&&bt(),x==null||x(Ct,cn)},Bt=l.useMemo(function(){return{prefixCls:f,locale:$,generateConfig:P,button:q.button,input:q.input}},[f,$,P,q.button,q.input]);return Xt(function(){ve&&Pe!==void 0&&et(null,D,!1)},[ve,Pe,D]),Xt(function(){var wt=ge();!ve&&wt==="input"&&(ae(!1),bt()),!ve&&i&&!S&&wt==="panel"&&(ae(!0),bt())},[ve]),l.createElement(xi.Provider,{value:Bt},l.createElement(rW,pe({},iW(a),{popupElement:Mr,popupStyle:p.popup,popupClassName:g.popup,visible:ve,onClose:cr}),l.createElement(Xge,pe({},a,{ref:le,suffixIcon:te,removeIcon:Y,activeHelp:!!Tt,allHelp:!!Tt&&at==="preset",focused:ke,onFocus:Ft,onBlur:Gt,onKeyDown:jt,onSubmit:bt,value:rn,maskFormat:c,onChange:er,onInputChange:Kt,internalPicker:o,format:s,inputReadOnly:V,disabled:C,open:ve,onOpenChange:ae,onClick:rt,onClear:St,invalid:ct,onInvalid:function(Ct){Qe(Ct,0)}}))))}var Qge=l.forwardRef(Zge);const AW=l.createContext(null),Jge=AW.Provider,MW=l.createContext(null),eme=MW.Provider;var tme=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],PW=l.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,a=e.className,o=e.style,i=e.checked,s=e.disabled,c=e.defaultChecked,u=c===void 0?!1:c,d=e.type,f=d===void 0?"checkbox":d,p=e.title,g=e.onChange,h=xt(e,tme),b=l.useRef(null),y=l.useRef(null),S=sn(u,{value:i}),v=re(S,2),x=v[0],C=v[1];l.useImperativeHandle(t,function(){return{focus:function(T){var R;(R=b.current)===null||R===void 0||R.focus(T)},blur:function(){var T;(T=b.current)===null||T===void 0||T.blur()},input:b.current,nativeElement:y.current}});var w=ne(r,a,W(W({},"".concat(r,"-checked"),x),"".concat(r,"-disabled"),s)),E=function(T){s||("checked"in e||C(T.target.checked),g==null||g({target:Z(Z({},e),{},{type:f,checked:T.target.checked}),stopPropagation:function(){T.stopPropagation()},preventDefault:function(){T.preventDefault()},nativeEvent:T.nativeEvent}))};return l.createElement("span",{className:w,title:p,style:o,ref:y},l.createElement("input",pe({},h,{className:"".concat(r,"-input"),ref:b,onChange:E,disabled:s,checked:!!x,type:f})),l.createElement("span",{className:"".concat(r,"-inner")}))});const nme=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},nn(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},rme=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:a,motionDurationSlow:o,motionDurationMid:i,motionEaseInOutCirc:s,colorBgContainer:c,colorBorder:u,lineWidth:d,colorBgContainerDisabled:f,colorTextDisabled:p,paddingXS:g,dotColorDisabled:h,lineType:b,radioColor:y,radioBgColor:S,calc:v}=e,x=`${t}-inner`,w=v(a).sub(v(4).mul(2)),E=v(1).mul(a).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},nn(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${K(d)} ${b} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},nn(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &, - &:hover ${x}`]:{borderColor:r},[`${t}-input:focus-visible + ${x}`]:Object.assign({},ws(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:E,height:E,marginBlockStart:v(1).mul(a).div(-2).equal({unit:!0}),marginInlineStart:v(1).mul(a).div(-2).equal({unit:!0}),backgroundColor:y,borderBlockStart:0,borderInlineStart:0,borderRadius:E,transform:"scale(0)",opacity:0,transition:`all ${o} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:E,height:E,backgroundColor:c,borderColor:u,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${i}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[x]:{borderColor:r,backgroundColor:S,"&::after":{transform:`scale(${e.calc(e.dotSize).div(a).equal()})`,opacity:1,transition:`all ${o} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[x]:{backgroundColor:f,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:h}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:p,cursor:"not-allowed"},[`&${t}-checked`]:{[x]:{"&::after":{transform:`scale(${v(w).div(a).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:g,paddingInlineEnd:g}})}},ame=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:a,lineType:o,colorBorder:i,motionDurationSlow:s,motionDurationMid:c,buttonPaddingInline:u,fontSize:d,buttonBg:f,fontSizeLG:p,controlHeightLG:g,controlHeightSM:h,paddingXS:b,borderRadius:y,borderRadiusSM:S,borderRadiusLG:v,buttonCheckedBg:x,buttonSolidCheckedColor:C,colorTextDisabled:w,colorBgContainerDisabled:E,buttonCheckedBgDisabled:I,buttonCheckedColorDisabled:T,colorPrimary:R,colorPrimaryHover:_,colorPrimaryActive:$,buttonSolidCheckedBg:P,buttonSolidCheckedHoverBg:D,buttonSolidCheckedActiveBg:A,calc:O}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:u,paddingBlock:0,color:t,fontSize:d,lineHeight:K(O(n).sub(O(a).mul(2)).equal()),background:f,border:`${K(a)} ${o} ${i}`,borderBlockStartWidth:O(a).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:a,cursor:"pointer",transition:[`color ${c}`,`background ${c}`,`box-shadow ${c}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:O(a).mul(-1).equal(),insetInlineStart:O(a).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:a,paddingInline:0,backgroundColor:i,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${K(a)} ${o} ${i}`,borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y},"&:first-child:last-child":{borderRadius:y},[`${r}-group-large &`]:{height:g,fontSize:p,lineHeight:K(O(g).sub(O(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},[`${r}-group-small &`]:{height:h,paddingInline:O(b).sub(a).equal(),paddingBlock:0,lineHeight:K(O(h).sub(O(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:S,borderEndStartRadius:S},"&:last-child":{borderStartEndRadius:S,borderEndEndRadius:S}},"&:hover":{position:"relative",color:R},"&:has(:focus-visible)":Object.assign({},ws(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:R,background:x,borderColor:R,"&::before":{backgroundColor:R},"&:first-child":{borderColor:R},"&:hover":{color:_,borderColor:_,"&::before":{backgroundColor:_}},"&:active":{color:$,borderColor:$,"&::before":{backgroundColor:$}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:C,background:P,borderColor:P,"&:hover":{color:C,background:D,borderColor:D},"&:active":{color:C,background:A,borderColor:A}},"&-disabled":{color:w,backgroundColor:E,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:w,backgroundColor:E,borderColor:i}},[`&-disabled${r}-button-wrapper-checked`]:{color:T,backgroundColor:I,borderColor:i,boxShadow:"none"}}}},ome=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:a,fontSizeLG:o,colorText:i,colorBgContainer:s,colorTextDisabled:c,controlItemBgActiveDisabled:u,colorTextLightSolid:d,colorPrimary:f,colorPrimaryHover:p,colorPrimaryActive:g,colorWhite:h}=e,b=4,y=o,S=t?y-b*2:y-(b+a)*2;return{radioSize:y,dotSize:S,dotColorDisabled:c,buttonSolidCheckedColor:d,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:p,buttonSolidCheckedActiveBg:g,buttonBg:s,buttonCheckedBg:s,buttonColor:i,buttonCheckedBgDisabled:u,buttonCheckedColorDisabled:c,buttonPaddingInline:n-a,wrapperMarginInlineEnd:r,radioColor:t?f:h,radioBgColor:t?s:f}},DW=on("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${K(n)} ${t}`,o=zt(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[nme(o),rme(o),ame(o)]},ome,{unitless:{radioSize:!0,dotSize:!0}});var ime=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r;const a=l.useContext(AW),o=l.useContext(MW),{getPrefixCls:i,direction:s,radio:c}=l.useContext(st),u=l.useRef(null),d=ea(t,u),{isFormItemInput:f}=l.useContext(zr),p=A=>{var O,N;(O=e.onChange)===null||O===void 0||O.call(e,A),(N=a==null?void 0:a.onChange)===null||N===void 0||N.call(a,A)},{prefixCls:g,className:h,rootClassName:b,children:y,style:S,title:v}=e,x=ime(e,["prefixCls","className","rootClassName","children","style","title"]),C=i("radio",g),w=((a==null?void 0:a.optionType)||o)==="button",E=w?`${C}-button`:C,I=Un(C),[T,R,_]=DW(C,I),$=Object.assign({},x),P=l.useContext(Zr);a&&($.name=a.name,$.onChange=p,$.checked=e.value===a.value,$.disabled=(n=$.disabled)!==null&&n!==void 0?n:a.disabled),$.disabled=(r=$.disabled)!==null&&r!==void 0?r:P;const D=ne(`${E}-wrapper`,{[`${E}-wrapper-checked`]:$.checked,[`${E}-wrapper-disabled`]:$.disabled,[`${E}-wrapper-rtl`]:s==="rtl",[`${E}-wrapper-in-form-item`]:f},c==null?void 0:c.className,h,b,R,_,I);return T(l.createElement(Gg,{component:"Radio",disabled:$.disabled},l.createElement("label",{className:D,style:Object.assign(Object.assign({},c==null?void 0:c.style),S),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:v},l.createElement(PW,Object.assign({},$,{className:ne($.className,{[C0]:!w}),type:"radio",prefixCls:E,ref:d})),y!==void 0?l.createElement("span",null,y):null)))},vb=l.forwardRef(sme),lme=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=l.useContext(st),{prefixCls:a,className:o,rootClassName:i,options:s,buttonStyle:c="outline",disabled:u,children:d,size:f,style:p,id:g,optionType:h,name:b,defaultValue:y,value:S,onChange:v,onMouseEnter:x,onMouseLeave:C,onFocus:w,onBlur:E}=e,[I,T]=sn(y,{value:S}),R=l.useCallback(F=>{const j=I,B=F.target.value;"value"in e||T(B),B!==j&&(v==null||v(F))},[I,T,v]),_=n("radio",a),$=`${_}-group`,P=Un(_),[D,A,O]=DW(_,P);let N=d;s&&s.length>0&&(N=s.map(F=>typeof F=="string"||typeof F=="number"?l.createElement(vb,{key:F.toString(),prefixCls:_,disabled:u,value:F,checked:I===F},F):l.createElement(vb,{key:`radio-group-value-options-${F.value}`,prefixCls:_,disabled:F.disabled||u,value:F.value,checked:I===F.value,title:F.title,style:F.style,id:F.id,required:F.required},F.label)));const k=Er(f),M=ne($,`${$}-${c}`,{[`${$}-${k}`]:k,[`${$}-rtl`]:r==="rtl"},o,i,A,O,P),L=l.useMemo(()=>({onChange:R,value:I,disabled:u,name:b,optionType:h}),[R,I,u,b,h]);return D(l.createElement("div",Object.assign({},Yn(e,{aria:!0,data:!0}),{className:M,style:p,onMouseEnter:x,onMouseLeave:C,onFocus:w,onBlur:E,id:g,ref:t}),l.createElement(Jge,{value:L},N)))}),cme=l.memo(lme);var ume=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:n}=l.useContext(st),{prefixCls:r}=e,a=ume(e,["prefixCls"]),o=n("radio",r);return l.createElement(eme,{value:"button"},l.createElement(vb,Object.assign({prefixCls:o},a,{type:"radio",ref:t})))},fme=l.forwardRef(dme),mo=vb;mo.Button=fme;mo.Group=cme;mo.__ANT_RADIO=!0;function sm(e){return zt(e,{inputAffixPadding:e.paddingXXS})}const lm=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:a,controlHeightSM:o,controlHeightLG:i,fontSizeLG:s,lineHeightLG:c,paddingSM:u,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:p,colorPrimaryHover:g,colorPrimary:h,controlOutlineWidth:b,controlOutline:y,colorErrorOutline:S,colorWarningOutline:v,colorBgContainer:x}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-a,0),paddingBlockSM:Math.max(Math.round((o-n*r)/2*10)/10-a,0),paddingBlockLG:Math.ceil((i-s*c)/2*10)/10-a,paddingInline:u-a,paddingInlineSM:d-a,paddingInlineLG:f-a,addonBg:p,activeBorderColor:h,hoverBorderColor:g,activeShadow:`0 0 0 ${b}px ${y}`,errorActiveShadow:`0 0 0 ${b}px ${S}`,warningActiveShadow:`0 0 0 ${b}px ${v}`,hoverBg:x,activeBg:x,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},pme=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Z0=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},pme(zt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),$O=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),P4=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},$O(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),OO=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},$O(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Z0(e))}),P4(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),P4(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),D4=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),LW=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},D4(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),D4(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Z0(e))}})}),NO=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},FW=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),L4=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},FW(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),kO=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},FW(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Z0(e))}),L4(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),L4(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),F4=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),jW=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${K(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${K(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},F4(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),F4(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),AO=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),BW=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:a}=e;return{padding:`${K(t)} ${K(a)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},MO=e=>({padding:`${K(e.paddingBlockSM)} ${K(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),cm=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${K(e.paddingBlock)} ${K(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},AO(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},BW(e)),"&-sm":Object.assign({},MO(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),zW=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},BW(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},MO(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-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 ${K(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${K(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${K(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${K(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${K(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},mi()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[` + `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",padding:`0 ${K(e.paddingXXS)}`,marginInline:r(e.marginXXS).mul(-1).equal(),[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},Dpe=e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}),Lpe=on("Breadcrumb",e=>{const t=zt(e,{});return Ppe(t)},Dpe);var $4=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{breadcrumbName:i}=o,s=$4(o,["breadcrumbName"]);return Object.assign(Object.assign({},s),{title:i})})}),a}function jpe(e,t){return l.useMemo(()=>e||(t?t.map(Fpe):null),[e,t])}var Bpe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{if(t===void 0)return t;let n=(t||"").replace(/^\//,"");return Object.keys(e).forEach(r=>{n=n.replace(`:${r}`,e[r])}),n},Xd=e=>{const{prefixCls:t,separator:n="/",style:r,className:a,rootClassName:o,routes:i,items:s,children:c,itemRender:u,params:d={}}=e,f=Bpe(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:p,direction:g,breadcrumb:h}=l.useContext(st);let b;const y=p("breadcrumb",t),[S,v,x]=Lpe(y),w=jpe(s,i),C=Mpe(y,u);if(w&&w.length>0){const T=[],R=s||i;b=w.map((_,$)=>{const{path:P,key:D,type:A,menu:O,overlay:N,onClick:k,className:M,separator:L,dropdownProps:F}=_,j=zpe(d,P);j!==void 0&&T.push(j);const B=D??$;if(A==="separator")return l.createElement(W0,{key:B},L);const z={},H=$===w.length-1;O?z.menu=O:N&&(z.overlay=N);let{href:V}=_;return T.length&&j!==void 0&&(V=`#/${T.join("/")}`),l.createElement(qV,Object.assign({key:B},z,Yn(_,{data:!0,aria:!0}),{className:M,dropdownProps:F,href:V,separator:H?"":n,onClick:k,prefixCls:y}),C(_,d,R,T,V))})}else if(c){const T=vr(c).length;b=vr(c).map((R,_)=>{if(!R)return R;const $=_===T-1;return Cr(R,{separator:$?"":n,key:_})})}const E=ne(y,h==null?void 0:h.className,{[`${y}-rtl`]:g==="rtl"},a,o,v,x),I=Object.assign(Object.assign({},h==null?void 0:h.style),r);return S(l.createElement("nav",Object.assign({className:E,style:I},f),l.createElement("ol",null,b)))};Xd.Item=KV;Xd.Separator=W0;var YV={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xa,function(){var n=1e3,r=6e4,a=36e5,o="millisecond",i="second",s="minute",c="hour",u="day",d="week",f="month",p="quarter",g="year",h="date",b="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|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,v={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(A){var O=["th","st","nd","rd"],N=A%100;return"["+A+(O[(N-20)%10]||O[N]||O[0])+"]"}},x=function(A,O,N){var k=String(A);return!k||k.length>=O?A:""+Array(O+1-k.length).join(N)+A},w={s:x,z:function(A){var O=-A.utcOffset(),N=Math.abs(O),k=Math.floor(N/60),M=N%60;return(O<=0?"+":"-")+x(k,2,"0")+":"+x(M,2,"0")},m:function A(O,N){if(O.date()1)return A(F[0])}else{var j=O.name;E[j]=O,M=j}return!k&&M&&(C=M),M||!k&&C},_=function(A,O){if(T(A))return A.clone();var N=typeof O=="object"?O:{};return N.date=A,N.args=arguments,new P(N)},$=w;$.l=R,$.i=T,$.w=function(A,O){return _(A,{locale:O.$L,utc:O.$u,x:O.$x,$offset:O.$offset})};var P=function(){function A(N){this.$L=R(N.locale,null,!0),this.parse(N),this.$x=this.$x||N.x||{},this[I]=!0}var O=A.prototype;return O.parse=function(N){this.$d=function(k){var M=k.date,L=k.utc;if(M===null)return new Date(NaN);if($.u(M))return new Date;if(M instanceof Date)return new Date(M);if(typeof M=="string"&&!/Z$/i.test(M)){var F=M.match(y);if(F){var j=F[2]-1||0,B=(F[7]||"0").substring(0,3);return L?new Date(Date.UTC(F[1],j,F[3]||1,F[4]||0,F[5]||0,F[6]||0,B)):new Date(F[1],j,F[3]||1,F[4]||0,F[5]||0,F[6]||0,B)}}return new Date(M)}(N),this.init()},O.init=function(){var N=this.$d;this.$y=N.getFullYear(),this.$M=N.getMonth(),this.$D=N.getDate(),this.$W=N.getDay(),this.$H=N.getHours(),this.$m=N.getMinutes(),this.$s=N.getSeconds(),this.$ms=N.getMilliseconds()},O.$utils=function(){return $},O.isValid=function(){return this.$d.toString()!==b},O.isSame=function(N,k){var M=_(N);return this.startOf(k)<=M&&M<=this.endOf(k)},O.isAfter=function(N,k){return _(N)25){var d=i(this).startOf(r).add(1,r).date(u),f=i(this).endOf(n);if(d.isBefore(f))return 1}var p=i(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),g=this.diff(p,n,!0);return g<0?i(this).startOf("week").week():Math.ceil(g)},s.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(QV);var qpe=QV.exports;const Kpe=Pa(qpe);var JV={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xa,function(){return function(n,r){r.prototype.weekYear=function(){var a=this.month(),o=this.week(),i=this.year();return o===1&&a===11?i+1:a===0&&o>=52?i-1:i}}})})(JV);var Ype=JV.exports;const Xpe=Pa(Ype);var eW={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xa,function(){return function(n,r){var a=r.prototype,o=a.format;a.format=function(i){var s=this,c=this.$locale();if(!this.isValid())return o.bind(this)(i);var u=this.$utils(),d=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(f){switch(f){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return c.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return c.ordinal(s.week(),"W");case"w":case"ww":return u.s(s.week(),f==="w"?1:2,"0");case"W":case"WW":return u.s(s.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return u.s(String(s.$H===0?24:s.$H),f==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return f}});return o.bind(this)(d)}}})})(eW);var Zpe=eW.exports;const Qpe=Pa(Zpe);var tW={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xa,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,o=/\d\d/,i=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,c={},u=function(y){return(y=+y)+(y>68?1900:2e3)},d=function(y){return function(S){this[y]=+S}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=function(S){if(!S||S==="Z")return 0;var v=S.match(/([+-]|\d\d)/g),x=60*v[1]+(+v[2]||0);return x===0?0:v[0]==="+"?-x:x}(y)}],p=function(y){var S=c[y];return S&&(S.indexOf?S:S.s.concat(S.f))},g=function(y,S){var v,x=c.meridiem;if(x){for(var w=1;w<=24;w+=1)if(y.indexOf(x(w,0,S))>-1){v=w>12;break}}else v=y===(S?"pm":"PM");return v},h={A:[s,function(y){this.afternoon=g(y,!1)}],a:[s,function(y){this.afternoon=g(y,!0)}],Q:[a,function(y){this.month=3*(y-1)+1}],S:[a,function(y){this.milliseconds=100*+y}],SS:[o,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[i,d("seconds")],ss:[i,d("seconds")],m:[i,d("minutes")],mm:[i,d("minutes")],H:[i,d("hours")],h:[i,d("hours")],HH:[i,d("hours")],hh:[i,d("hours")],D:[i,d("day")],DD:[o,d("day")],Do:[s,function(y){var S=c.ordinal,v=y.match(/\d+/);if(this.day=v[0],S)for(var x=1;x<=31;x+=1)S(x).replace(/\[|\]/g,"")===y&&(this.day=x)}],w:[i,d("week")],ww:[o,d("week")],M:[i,d("month")],MM:[o,d("month")],MMM:[s,function(y){var S=p("months"),v=(p("monthsShort")||S.map(function(x){return x.slice(0,3)})).indexOf(y)+1;if(v<1)throw new Error;this.month=v%12||v}],MMMM:[s,function(y){var S=p("months").indexOf(y)+1;if(S<1)throw new Error;this.month=S%12||S}],Y:[/[+-]?\d+/,d("year")],YY:[o,function(y){this.year=u(y)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function b(y){var S,v;S=y,v=c&&c.formats;for(var x=(y=S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(_,$,P){var D=P&&P.toUpperCase();return $||v[P]||n[P]||v[D].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(A,O,N){return O||N.slice(1)})})).match(r),w=x.length,C=0;C-1)return new Date((M==="X"?1e3:1)*k);var j=b(M)(k),B=j.year,z=j.month,H=j.day,V=j.hours,te=j.minutes,Y=j.seconds,J=j.milliseconds,G=j.zone,U=j.week,q=new Date,X=H||(B||z?1:q.getDate()),Q=B||q.getFullYear(),ee=0;B&&!z||(ee=z>0?z-1:q.getMonth());var oe,le=V||0,fe=te||0,ce=Y||0,Ie=J||0;return G?new Date(Date.UTC(Q,ee,X,le,fe,ce,Ie+60*G.offset*1e3)):L?new Date(Date.UTC(Q,ee,X,le,fe,ce,Ie)):(oe=new Date(Q,ee,X,le,fe,ce,Ie),U&&(oe=F(oe).week(U).toDate()),oe)}catch{return new Date("")}}(E,R,I,v),this.init(),D&&D!==!0&&(this.$L=this.locale(D).$L),P&&E!=this.format(R)&&(this.$d=new Date("")),c={}}else if(R instanceof Array)for(var A=R.length,O=1;O<=A;O+=1){T[1]=R[O-1];var N=v.apply(this,T);if(N.isValid()){this.$d=N.$d,this.$L=N.$L,this.init();break}O===A&&(this.$d=new Date(""))}else w.call(this,C)}}})})(tW);var Jpe=tW.exports;const ege=Pa(Jpe);Ua.extend(ege);Ua.extend(Qpe);Ua.extend(Vpe);Ua.extend(Gpe);Ua.extend(Kpe);Ua.extend(Xpe);Ua.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(o){var i=(o||"").replace("Wo","wo");return r.bind(this)(i)}});var tge={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},jl=function(t){var n=tge[t];return n||t.split("_")[0]},O4=function(){R9(!1,"Not match any format. Please help to fire a issue about this.")},nge={getNow:function(){return Ua()},getFixedDate:function(t){return Ua(t,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(t){return t.endOf("month")},getWeekDay:function(t){var n=t.locale("en");return n.weekday()+n.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},getMillisecond:function(t){return t.millisecond()},addYear:function(t,n){return t.add(n,"year")},addMonth:function(t,n){return t.add(n,"month")},addDate:function(t,n){return t.add(n,"day")},setYear:function(t,n){return t.year(n)},setMonth:function(t,n){return t.month(n)},setDate:function(t,n){return t.date(n)},setHour:function(t,n){return t.hour(n)},setMinute:function(t,n){return t.minute(n)},setSecond:function(t,n){return t.second(n)},setMillisecond:function(t,n){return t.millisecond(n)},isAfter:function(t,n){return t.isAfter(n)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return Ua().locale(jl(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(jl(t)).weekday(0)},getWeek:function(t,n){return n.locale(jl(t)).week()},getShortWeekDays:function(t){return Ua().locale(jl(t)).localeData().weekdaysMin()},getShortMonths:function(t){return Ua().locale(jl(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(jl(t)).format(r)},parse:function(t,n,r){for(var a=jl(t),o=0;o2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length2&&arguments[2]!==void 0?arguments[2]:[],r=l.useState([!1,!1]),a=re(r,2),o=a[0],i=a[1],s=function(d,f){i(function(p){return wp(p,f,d)})},c=l.useMemo(function(){return o.map(function(u,d){if(u)return!0;var f=e[d];return f?!!(!n[d]&&!f||f&&t(f,{activeIndex:d})):!1})},[e,o,t,n]);return[c,s]}function lW(e,t,n,r,a){var o="",i=[];return e&&i.push(a?"hh":"HH"),t&&i.push("mm"),n&&i.push("ss"),o=i.join(":"),r&&(o+=".SSS"),a&&(o+=" A"),o}function age(e,t,n,r,a,o){var i=e.fieldDateTimeFormat,s=e.fieldDateFormat,c=e.fieldTimeFormat,u=e.fieldMonthFormat,d=e.fieldYearFormat,f=e.fieldWeekFormat,p=e.fieldQuarterFormat,g=e.yearFormat,h=e.cellYearFormat,b=e.cellQuarterFormat,y=e.dayFormat,S=e.cellDateFormat,v=lW(t,n,r,a,o);return Z(Z({},e),{},{fieldDateTimeFormat:i||"YYYY-MM-DD ".concat(v),fieldDateFormat:s||"YYYY-MM-DD",fieldTimeFormat:c||v,fieldMonthFormat:u||"YYYY-MM",fieldYearFormat:d||"YYYY",fieldWeekFormat:f||"gggg-wo",fieldQuarterFormat:p||"YYYY-[Q]Q",yearFormat:g||"YYYY",cellYearFormat:h||"YYYY",cellQuarterFormat:b||"[Q]Q",cellDateFormat:S||y||"D"})}function cW(e,t){var n=t.showHour,r=t.showMinute,a=t.showSecond,o=t.showMillisecond,i=t.use12Hours;return se.useMemo(function(){return age(e,n,r,a,o,i)},[e,n,r,a,o,i])}function Pf(e,t,n){return n??t.some(function(r){return e.includes(r)})}var oge=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function ige(e){var t=q0(e,oge),n=e.format,r=e.picker,a=null;return n&&(a=n,Array.isArray(a)&&(a=a[0]),a=mt(a)==="object"?a.format:a),r==="time"&&(t.format=a),[t,a]}function sge(e){return e&&typeof e=="string"}function uW(e,t,n,r){return[e,t,n,r].some(function(a){return a!==void 0})}function dW(e,t,n,r,a){var o=t,i=n,s=r;if(!e&&!o&&!i&&!s&&!a)o=!0,i=!0,s=!0;else if(e){var c,u,d,f=[o,i,s].some(function(h){return h===!1}),p=[o,i,s].some(function(h){return h===!0}),g=f?!0:!p;o=(c=o)!==null&&c!==void 0?c:g,i=(u=i)!==null&&u!==void 0?u:g,s=(d=s)!==null&&d!==void 0?d:g}return[o,i,s,a]}function fW(e){var t=e.showTime,n=ige(e),r=re(n,2),a=r[0],o=r[1],i=t&&mt(t)==="object"?t:{},s=Z(Z({defaultOpenValue:i.defaultOpenValue||i.defaultValue},a),i),c=s.showMillisecond,u=s.showHour,d=s.showMinute,f=s.showSecond,p=uW(u,d,f,c),g=dW(p,u,d,f,c),h=re(g,3);return u=h[0],d=h[1],f=h[2],[s,Z(Z({},s),{},{showHour:u,showMinute:d,showSecond:f,showMillisecond:c}),s.format,o]}function pW(e,t,n,r,a){var o=e==="time";if(e==="datetime"||o){for(var i=r,s=aW(e,a,null),c=s,u=[t,n],d=0;d1&&(i=t.addDate(i,-7)),i}function jr(e,t){var n=t.generateConfig,r=t.locale,a=t.format;return e?typeof a=="function"?a(e):n.locale.format(r.locale,e,a):""}function vb(e,t,n){var r=t,a=["getHour","getMinute","getSecond","getMillisecond"],o=["setHour","setMinute","setSecond","setMillisecond"];return o.forEach(function(i,s){n?r=e[i](r,e[a[s]](n)):r=e[i](r,0)}),r}function dge(e,t,n,r,a){var o=Wt(function(i,s){return!!(n&&n(i,s)||r&&e.isAfter(r,i)&&!ya(e,t,r,i,s.type)||a&&e.isAfter(i,a)&&!ya(e,t,a,i,s.type))});return o}function fge(e,t,n){return l.useMemo(function(){var r=aW(e,t,n),a=Lc(r),o=a[0],i=mt(o)==="object"&&o.type==="mask"?o.format:null;return[a.map(function(s){return typeof s=="string"||typeof s=="function"?s:s.format}),i]},[e,t,n])}function pge(e,t,n){return typeof e[0]=="function"||n?!0:t}function gge(e,t,n,r){var a=Wt(function(o,i){var s=Z({type:t},i);if(delete s.activeIndex,!e.isValidate(o)||n&&n(o,s))return!0;if((t==="date"||t==="time")&&r){var c,u=i&&i.activeIndex===1?"end":"start",d=((c=r.disabledTime)===null||c===void 0?void 0:c.call(r,o,u,{from:s.from}))||{},f=d.disabledHours,p=d.disabledMinutes,g=d.disabledSeconds,h=d.disabledMilliseconds,b=r.disabledHours,y=r.disabledMinutes,S=r.disabledSeconds,v=f||b,x=p||y,w=g||S,C=e.getHour(o),E=e.getMinute(o),I=e.getSecond(o),T=e.getMillisecond(o);if(v&&v().includes(C)||x&&x(C).includes(E)||w&&w(C,E).includes(I)||h&&h(C,E,I).includes(T))return!0}return!1});return a}function ph(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=l.useMemo(function(){var r=e&&Lc(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function hW(e,t){var n=e.generateConfig,r=e.locale,a=e.picker,o=a===void 0?"date":a,i=e.prefixCls,s=i===void 0?"rc-picker":i,c=e.styles,u=c===void 0?{}:c,d=e.classNames,f=d===void 0?{}:d,p=e.order,g=p===void 0?!0:p,h=e.components,b=h===void 0?{}:h,y=e.inputRender,S=e.allowClear,v=e.clearIcon,x=e.needConfirm,w=e.multiple,C=e.format,E=e.inputReadOnly,I=e.disabledDate,T=e.minDate,R=e.maxDate,_=e.showTime,$=e.value,P=e.defaultValue,D=e.pickerValue,A=e.defaultPickerValue,O=ph($),N=ph(P),k=ph(D),M=ph(A),L=o==="date"&&_?"datetime":o,F=L==="time"||L==="datetime",j=F||w,B=x??F,z=fW(e),H=re(z,4),V=H[0],te=H[1],Y=H[2],J=H[3],G=cW(r,te),U=l.useMemo(function(){return pW(L,Y,J,V,G)},[L,Y,J,V,G]),q=l.useMemo(function(){return Z(Z({},e),{},{prefixCls:s,locale:G,picker:o,styles:u,classNames:f,order:g,components:Z({input:y},b),clearIcon:lge(s,S,v),showTime:U,value:O,defaultValue:N,pickerValue:k,defaultPickerValue:M},t==null?void 0:t())},[e]),X=fge(L,G,C),Q=re(X,2),ee=Q[0],oe=Q[1],le=pge(ee,E,w),fe=dge(n,r,I,T,R),ce=gge(n,o,fe,U),Ie=l.useMemo(function(){return Z(Z({},q),{},{needConfirm:B,inputReadOnly:le,disabledDate:fe})},[q,B,le,fe]);return[Ie,L,j,ee,oe,ce]}function mge(e,t,n){var r=sn(t,{value:e}),a=re(r,2),o=a[0],i=a[1],s=se.useRef(e),c=se.useRef(),u=function(){Ut.cancel(c.current)},d=Wt(function(){i(s.current),n&&o!==s.current&&n(s.current)}),f=Wt(function(p,g){u(),s.current=p,p||g?d():c.current=Ut(d)});return se.useEffect(function(){return u},[]),[o,f]}function vW(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,a=n.every(function(d){return d})?!1:e,o=mge(a,t||!1,r),i=re(o,2),s=i[0],c=i[1];function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!f.inherit||s)&&c(d,f.force)}return[s,u]}function bW(e){var t=l.useRef();return l.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(a){var o;(o=t.current)===null||o===void 0||o.focus(a)},blur:function(){var a;(a=t.current)===null||a===void 0||a.blur()}}}),t}function yW(e,t){return l.useMemo(function(){return e||(t?(vn(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=re(n,2),a=r[0],o=r[1];return{label:a,value:o}})):[])},[e,t])}function _O(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=l.useRef(t);r.current=t,cc(function(){if(e)r.current(e);else{var a=Ut(function(){r.current(e)},n);return function(){Ut.cancel(a)}}},[e])}function SW(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=l.useState(0),a=re(r,2),o=a[0],i=a[1],s=l.useState(!1),c=re(s,2),u=c[0],d=c[1],f=l.useRef([]),p=l.useRef(null),g=function(S){d(S)},h=function(S){return S&&(p.current=S),p.current},b=function(S){var v=f.current,x=new Set(v.filter(function(C){return S[C]||t[C]})),w=v[v.length-1]===0?1:0;return x.size>=2||e[w]?null:w};return _O(u||n,function(){u||(f.current=[])}),l.useEffect(function(){u&&f.current.push(o)},[u,o]),[u,g,h,o,i,b,f.current]}function hge(e,t,n,r,a,o){var i=n[n.length-1],s=function(u,d){var f=re(e,2),p=f[0],g=f[1],h=Z(Z({},d),{},{from:oW(e,n)});return i===1&&t[0]&&p&&!ya(r,a,p,u,h.type)&&r.isAfter(p,u)||i===0&&t[1]&&g&&!ya(r,a,g,u,h.type)&&r.isAfter(u,g)?!0:o==null?void 0:o(u,h)};return s}function Zf(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,r*10);case"decade":return e.addYear(n,r*100);default:return n}}var o1=[];function xW(e,t,n,r,a,o,i,s){var c=arguments.length>8&&arguments[8]!==void 0?arguments[8]:o1,u=arguments.length>9&&arguments[9]!==void 0?arguments[9]:o1,d=arguments.length>10&&arguments[10]!==void 0?arguments[10]:o1,f=arguments.length>11?arguments[11]:void 0,p=arguments.length>12?arguments[12]:void 0,g=arguments.length>13?arguments[13]:void 0,h=i==="time",b=o||0,y=function(k){var M=e.getNow();return h&&(M=vb(e,M)),c[k]||n[k]||M},S=re(u,2),v=S[0],x=S[1],w=sn(function(){return y(0)},{value:v}),C=re(w,2),E=C[0],I=C[1],T=sn(function(){return y(1)},{value:x}),R=re(T,2),_=R[0],$=R[1],P=l.useMemo(function(){var N=[E,_][b];return h?N:vb(e,N,d[b])},[h,E,_,b,e,d]),D=function(k){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",L=[I,$][b];L(k);var F=[E,_];F[b]=k,f&&(!ya(e,t,E,F[0],i)||!ya(e,t,_,F[1],i))&&f(F,{source:M,range:b===1?"end":"start",mode:r})},A=function(k,M){if(s){var L={date:"month",week:"month",month:"year",quarter:"year"},F=L[i];if(F&&!ya(e,t,k,M,F))return Zf(e,i,M,-1);if(i==="year"&&k){var j=Math.floor(e.getYear(k)/10),B=Math.floor(e.getYear(M)/10);if(j!==B)return Zf(e,i,M,-1)}}return M},O=l.useRef(null);return Xt(function(){if(a&&!c[b]){var N=h?null:e.getNow();if(O.current!==null&&O.current!==b?N=[E,_][b^1]:n[b]?N=b===0?n[0]:A(n[0],n[1]):n[b^1]&&(N=n[b^1]),N){p&&e.isAfter(p,N)&&(N=p);var k=s?Zf(e,i,N,1):N;g&&e.isAfter(k,g)&&(N=s?Zf(e,i,g,-1):g),D(N,"reset")}}},[a,b,n[b]]),l.useEffect(function(){a?O.current=b:O.current=null},[a,b]),Xt(function(){a&&c&&c[b]&&D(c[b],"reset")},[a,b]),[P,D]}function wW(e,t){var n=l.useRef(e),r=l.useState({}),a=re(r,2),o=a[1],i=function(u){return u&&t!==void 0?t:n.current},s=function(u){n.current=u,o({})};return[i,s,i(!0)]}var vge=[];function CW(e,t,n){var r=function(i){return i.map(function(s){return jr(s,{generateConfig:e,locale:t,format:n[0]})})},a=function(i,s){for(var c=Math.max(i.length,s.length),u=-1,d=0;d2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,i=[],s=n>=1?n|0:1,c=e;c<=t;c+=s){var u=a.includes(c);(!u||!r)&&i.push({label:EO(c,o),value:c,disabled:u})}return i}function $O(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},a=r.use12Hours,o=r.hourStep,i=o===void 0?1:o,s=r.minuteStep,c=s===void 0?1:s,u=r.secondStep,d=u===void 0?1:u,f=r.millisecondStep,p=f===void 0?100:f,g=r.hideDisabledOptions,h=r.disabledTime,b=r.disabledHours,y=r.disabledMinutes,S=r.disabledSeconds,v=l.useMemo(function(){return n||e.getNow()},[n,e]),x=l.useCallback(function(M){var L=(h==null?void 0:h(M))||{};return[L.disabledHours||b||gh,L.disabledMinutes||y||gh,L.disabledSeconds||S||gh,L.disabledMilliseconds||gh]},[h,b,y,S]),w=l.useMemo(function(){return x(v)},[v,x]),C=re(w,4),E=C[0],I=C[1],T=C[2],R=C[3],_=l.useCallback(function(M,L,F,j){var B=mh(0,23,i,g,M()),z=a?B.map(function(Y){return Z(Z({},Y),{},{label:EO(Y.value%12||12,2)})}):B,H=function(J){return mh(0,59,c,g,L(J))},V=function(J,G){return mh(0,59,d,g,F(J,G))},te=function(J,G,U){return mh(0,999,p,g,j(J,G,U),3)};return[z,H,V,te]},[g,i,a,p,c,d]),$=l.useMemo(function(){return _(E,I,T,R)},[_,E,I,T,R]),P=re($,4),D=P[0],A=P[1],O=P[2],N=P[3],k=function(L,F){var j=function(){return D},B=A,z=O,H=N;if(F){var V=x(F),te=re(V,4),Y=te[0],J=te[1],G=te[2],U=te[3],q=_(Y,J,G,U),X=re(q,4),Q=X[0],ee=X[1],oe=X[2],le=X[3];j=function(){return Q},B=ee,z=oe,H=le}var fe=yge(L,j,B,z,H,e);return fe};return[k,D,A,O,N]}function Sge(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,a=e.showNow,o=e.showTime,i=e.onSubmit,s=e.onNow,c=e.invalid,u=e.needConfirm,d=e.generateConfig,f=e.disabledDate,p=l.useContext(wi),g=p.prefixCls,h=p.locale,b=p.button,y=b===void 0?"button":b,S=d.getNow(),v=$O(d,o,S),x=re(v,1),w=x[0],C=r==null?void 0:r(t),E=f(S,{type:t}),I=function(){if(!E){var A=w(S);s(A)}},T="".concat(g,"-now"),R="".concat(T,"-btn"),_=a&&l.createElement("li",{className:T},l.createElement("a",{className:ne(R,E&&"".concat(R,"-disabled")),"aria-disabled":E,onClick:I},n==="date"?h.today:h.now)),$=u&&l.createElement("li",{className:"".concat(g,"-ok")},l.createElement(y,{disabled:c,onClick:i},h.ok)),P=(_||$)&&l.createElement("ul",{className:"".concat(g,"-ranges")},_,$);return!C&&!P?null:l.createElement("div",{className:"".concat(g,"-footer")},C&&l.createElement("div",{className:"".concat(g,"-footer-extra")},C),P)}function _W(e,t,n){function r(a,o){var i=a.findIndex(function(c){return ya(e,t,c,o,n)});if(i===-1)return[].concat(Pe(a),[o]);var s=Pe(a);return s.splice(i,1),s}return r}var Fc=l.createContext(null);function Y0(){return l.useContext(Fc)}function Zd(e,t){var n=e.prefixCls,r=e.generateConfig,a=e.locale,o=e.disabledDate,i=e.minDate,s=e.maxDate,c=e.cellRender,u=e.hoverValue,d=e.hoverRangeValue,f=e.onHover,p=e.values,g=e.pickerValue,h=e.onSelect,b=e.prevIcon,y=e.nextIcon,S=e.superPrevIcon,v=e.superNextIcon,x=r.getNow(),w={now:x,values:p,pickerValue:g,prefixCls:n,disabledDate:o,minDate:i,maxDate:s,cellRender:c,hoverValue:u,hoverRangeValue:d,onHover:f,locale:a,generateConfig:r,onSelect:h,panelType:t,prevIcon:b,nextIcon:y,superPrevIcon:S,superNextIcon:v};return[w,x]}var dl=l.createContext({});function lm(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,a=e.getCellDate,o=e.prefixColumn,i=e.rowClassName,s=e.titleFormat,c=e.getCellText,u=e.getCellClassName,d=e.headerCells,f=e.cellSelection,p=f===void 0?!0:f,g=e.disabledDate,h=Y0(),b=h.prefixCls,y=h.panelType,S=h.now,v=h.disabledDate,x=h.cellRender,w=h.onHover,C=h.hoverValue,E=h.hoverRangeValue,I=h.generateConfig,T=h.values,R=h.locale,_=h.onSelect,$=g||v,P="".concat(b,"-cell"),D=l.useContext(dl),A=D.onCellDblClick,O=function(z){return T.some(function(H){return H&&ya(I,R,z,H,y)})},N=[],k=0;k1&&arguments[1]!==void 0?arguments[1]:!1;ae(Ne),y==null||y(Ne),Re&&ie(Ne)},xe=function(Ne,Re){G(Ne),Re&&ue(Re),ie(Re,Ne)},we=function(Ne){if(ce(Ne),ue(Ne),J!==w){var Re=["decade","year"],me=[].concat(Re,["month"]),_e={quarter:[].concat(Re,["quarter"]),week:[].concat(Pe(me),["week"]),date:[].concat(Pe(me),["date"])},Ze=_e[w]||me,Oe=Ze.indexOf(J),Se=Ze[Oe+1];Se&&xe(Se,Ne)}},Me=l.useMemo(function(){var ge,Ne;if(Array.isArray(I)){var Re=re(I,2);ge=Re[0],Ne=Re[1]}else ge=I;return!ge&&!Ne?null:(ge=ge||Ne,Ne=Ne||ge,a.isAfter(ge,Ne)?[Ne,ge]:[ge,Ne])},[I,a]),Ce=IO(T,R,_),De=P[U]||Nge[U]||X0,ye=l.useContext(dl),ve=l.useMemo(function(){return Z(Z({},ye),{},{hideHeader:D})},[ye,D]),$e="".concat(A,"-panel"),Ee=q0(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return l.createElement(dl.Provider,{value:ve},l.createElement("div",{ref:O,tabIndex:c,className:ne($e,W({},"".concat($e,"-rtl"),o==="rtl"))},l.createElement(De,pe({},Ee,{showTime:H,prefixCls:A,locale:B,generateConfig:a,onModeChange:xe,pickerValue:he,onPickerValueChange:function(Ne){ue(Ne,!0)},value:le[0],onSelect:we,values:le,cellRender:Ce,hoverRangeValue:Me,hoverValue:E}))))}var i1=l.memo(l.forwardRef(kge));function Age(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,a=e.onPickerValueChange,o=e.needConfirm,i=e.onSubmit,s=e.range,c=e.hoverValue,u=l.useContext(wi),d=u.prefixCls,f=u.generateConfig,p=l.useCallback(function(v,x){return Zf(f,t,v,x)},[f,t]),g=l.useMemo(function(){return p(r,1)},[r,p]),h=function(x){a(p(x,-1))},b={onCellDblClick:function(){o&&i()}},y=t==="time",S=Z(Z({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:y});return s?S.hoverRangeValue=c:S.hoverValue=c,n?l.createElement("div",{className:"".concat(d,"-panels")},l.createElement(dl.Provider,{value:Z(Z({},b),{},{hideNext:!0})},l.createElement(i1,S)),l.createElement(dl.Provider,{value:Z(Z({},b),{},{hidePrev:!0})},l.createElement(i1,pe({},S,{pickerValue:g,onPickerValueChange:h})))):l.createElement(dl.Provider,{value:Z({},b)},l.createElement(i1,S))}function k4(e){return typeof e=="function"?e():e}function Mge(e){var t=e.prefixCls,n=e.presets,r=e.onClick,a=e.onHover;return n.length?l.createElement("div",{className:"".concat(t,"-presets")},l.createElement("ul",null,n.map(function(o,i){var s=o.label,c=o.value;return l.createElement("li",{key:i,onClick:function(){r(k4(c))},onMouseEnter:function(){a(k4(c))},onMouseLeave:function(){a(null)}},s)}))):null}function OW(e){var t=e.panelRender,n=e.internalMode,r=e.picker,a=e.showNow,o=e.range,i=e.multiple,s=e.activeOffset,c=s===void 0?0:s,u=e.placement,d=e.presets,f=e.onPresetHover,p=e.onPresetSubmit,g=e.onFocus,h=e.onBlur,b=e.onPanelMouseDown,y=e.direction,S=e.value,v=e.onSelect,x=e.isInvalid,w=e.defaultOpenValue,C=e.onOk,E=e.onSubmit,I=l.useContext(wi),T=I.prefixCls,R="".concat(T,"-panel"),_=y==="rtl",$=l.useRef(null),P=l.useRef(null),D=l.useState(0),A=re(D,2),O=A[0],N=A[1],k=l.useState(0),M=re(k,2),L=M[0],F=M[1],j=function(fe){fe.offsetWidth&&N(fe.offsetWidth)};l.useEffect(function(){if(o){var le,fe=((le=$.current)===null||le===void 0?void 0:le.offsetWidth)||0,ce=O-fe;c<=ce?F(0):F(c+fe-O)}},[O,c,o]);function B(le){return le.filter(function(fe){return fe})}var z=l.useMemo(function(){return B(Lc(S))},[S]),H=r==="time"&&!z.length,V=l.useMemo(function(){return H?B([w]):z},[H,z,w]),te=H?w:z,Y=l.useMemo(function(){return V.length?V.some(function(le){return x(le)}):!0},[V,x]),J=function(){H&&v(w),C(),E()},G=l.createElement("div",{className:"".concat(T,"-panel-layout")},l.createElement(Mge,{prefixCls:T,presets:d,onClick:p,onHover:f}),l.createElement("div",null,l.createElement(Age,pe({},e,{value:te})),l.createElement(Sge,pe({},e,{showNow:i?!1:a,invalid:Y,onSubmit:J}))));t&&(G=t(G));var U="".concat(R,"-container"),q="marginLeft",X="marginRight",Q=l.createElement("div",{onMouseDown:b,tabIndex:-1,className:ne(U,"".concat(T,"-").concat(n,"-panel-container")),style:W(W({},_?X:q,L),_?q:X,"auto"),onFocus:g,onBlur:h},G);if(o){var ee=G0(u,_),oe=nW(ee,_);Q=l.createElement("div",{onMouseDown:b,ref:P,className:ne("".concat(T,"-range-wrapper"),"".concat(T,"-").concat(r,"-range-wrapper"))},l.createElement("div",{ref:$,className:"".concat(T,"-range-arrow"),style:W({},oe,c)}),l.createElement(ca,{onResize:j},Q))}return Q}function NW(e,t){var n=e.format,r=e.maskFormat,a=e.generateConfig,o=e.locale,i=e.preserveInvalidOnBlur,s=e.inputReadOnly,c=e.required,u=e["aria-required"],d=e.onSubmit,f=e.onFocus,p=e.onBlur,g=e.onInputChange,h=e.onInvalid,b=e.open,y=e.onOpenChange,S=e.onKeyDown,v=e.onChange,x=e.activeHelp,w=e.name,C=e.autoComplete,E=e.id,I=e.value,T=e.invalid,R=e.placeholder,_=e.disabled,$=e.activeIndex,P=e.allHelp,D=e.picker,A=function(B,z){var H=a.locale.parse(o.locale,B,[z]);return H&&a.isValidate(H)?H:null},O=n[0],N=l.useCallback(function(j){return jr(j,{locale:o,format:O,generateConfig:a})},[o,a,O]),k=l.useMemo(function(){return I.map(N)},[I,N]),M=l.useMemo(function(){var j=D==="time"?8:10,B=typeof O=="function"?O(a.getNow()).length:O.length;return Math.max(j,B)+2},[O,D,a]),L=function(B){for(var z=0;z=s&&n<=c)return o;var u=Math.min(Math.abs(n-s),Math.abs(n-c));u0?Xe:je));var qe=ft+Ve,We=je-Xe+1;return String(Xe+(We+qe-Xe)%We)};switch(Ne){case"Backspace":case"Delete":Re="",me=Ze;break;case"ArrowLeft":Re="",Oe(-1);break;case"ArrowRight":Re="",Oe(1);break;case"ArrowUp":Re="",me=Se(1);break;case"ArrowDown":Re="",me=Se(-1);break;default:isNaN(Number(Ne))||(Re=j+Ne,me=Re);break}if(Re!==null&&(B(Re),Re.length>=_e&&(Oe(1),B(""))),me!==null){var Ae=q.slice(0,fe)+EO(me,_e)+q.slice(ce);be(Ae.slice(0,i.length))}U({})},ve=l.useRef();Xt(function(){if(!(!D||!i||ie.current)){if(!ee.match(q)){be(i);return}return Q.current.setSelectionRange(fe,ce),ve.current=Ut(function(){Q.current.setSelectionRange(fe,ce)}),function(){Ut.cancel(ve.current)}}},[ee,i,D,q,V,fe,ce,G,be]);var $e=i?{onFocus:we,onBlur:Ce,onKeyDown:ye,onMouseDown:ue,onMouseUp:xe,onPaste:ae}:{};return l.createElement("div",{ref:X,className:ne(_,W(W({},"".concat(_,"-active"),n&&a),"".concat(_,"-placeholder"),u))},l.createElement(R,pe({ref:Q,"aria-invalid":b,autoComplete:"off"},S,{onKeyDown:De,onBlur:Me},$e,{value:q,onChange:he})),l.createElement(Z0,{type:"suffix",icon:o}),y)}),zge=["id","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveOffset","placement","onMouseDown","required","aria-required","autoFocus"],Hge=["index"];function Uge(e,t){var n=e.id,r=e.clearIcon,a=e.suffixIcon,o=e.separator,i=o===void 0?"~":o,s=e.activeIndex;e.activeHelp,e.allHelp;var c=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var u=e.placeholder,d=e.className,f=e.style,p=e.onClick,g=e.onClear,h=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var b=e.disabled,y=e.invalid;e.inputReadOnly;var S=e.direction;e.onOpenChange;var v=e.onActiveOffset,x=e.placement,w=e.onMouseDown;e.required,e["aria-required"];var C=e.autoFocus,E=xt(e,zge),I=S==="rtl",T=l.useContext(wi),R=T.prefixCls,_=l.useMemo(function(){if(typeof n=="string")return[n];var q=n||{};return[q.start,q.end]},[n]),$=l.useRef(),P=l.useRef(),D=l.useRef(),A=function(X){var Q;return(Q=[P,D][X])===null||Q===void 0?void 0:Q.current};l.useImperativeHandle(t,function(){return{nativeElement:$.current,focus:function(X){if(mt(X)==="object"){var Q,ee=X||{},oe=ee.index,le=oe===void 0?0:oe,fe=xt(ee,Hge);(Q=A(le))===null||Q===void 0||Q.focus(fe)}else{var ce;(ce=A(X??0))===null||ce===void 0||ce.focus()}},blur:function(){var X,Q;(X=A(0))===null||X===void 0||X.blur(),(Q=A(1))===null||Q===void 0||Q.blur()}}});var O=kW(E),N=l.useMemo(function(){return Array.isArray(u)?u:[u,u]},[u]),k=NW(Z(Z({},e),{},{id:_,placeholder:N})),M=re(k,1),L=M[0],F=G0(x,I),j=nW(F,I),B=F==null?void 0:F.toLowerCase().endsWith("right"),z=l.useState({position:"absolute",width:0}),H=re(z,2),V=H[0],te=H[1],Y=Wt(function(){var q=A(s);if(q){var X=q.nativeElement,Q=X.offsetWidth,ee=X.offsetLeft,oe=X.offsetParent,le=(oe==null?void 0:oe.offsetWidth)||0,fe=B?le-Q-ee:ee;te(function(ce){return Z(Z({},ce),{},W({width:Q},j,fe))}),v(fe)}});l.useEffect(function(){Y()},[s]);var J=r&&(h[0]&&!b[0]||h[1]&&!b[1]),G=C&&!b[0],U=C&&!G&&!b[1];return l.createElement(ca,{onResize:Y},l.createElement("div",pe({},O,{className:ne(R,"".concat(R,"-range"),W(W(W(W({},"".concat(R,"-focused"),c),"".concat(R,"-disabled"),b.every(function(q){return q})),"".concat(R,"-invalid"),y.some(function(q){return q})),"".concat(R,"-rtl"),I),d),style:f,ref:$,onClick:p,onMouseDown:function(X){var Q=X.target;Q!==P.current.inputElement&&Q!==D.current.inputElement&&X.preventDefault(),w==null||w(X)}}),l.createElement(_R,pe({ref:P},L(0),{autoFocus:G,"date-range":"start"})),l.createElement("div",{className:"".concat(R,"-range-separator")},i),l.createElement(_R,pe({ref:D},L(1),{autoFocus:U,"date-range":"end"})),l.createElement("div",{className:"".concat(R,"-active-bar"),style:V}),l.createElement(Z0,{type:"suffix",icon:a}),J&&l.createElement(RR,{icon:r,onClear:g})))}var Vge=l.forwardRef(Uge);function M4(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function vh(e){return e===1?"end":"start"}function Wge(e,t){var n=hW(e,function(){var Ht=e.disabled,Lt=e.allowEmpty,pt=M4(Ht,!1),Dt=M4(Lt,!1);return{disabled:pt,allowEmpty:Dt}}),r=re(n,6),a=r[0],o=r[1],i=r[2],s=r[3],c=r[4],u=r[5],d=a.prefixCls,f=a.styles,p=a.classNames,g=a.placement,h=a.defaultValue,b=a.value,y=a.needConfirm,S=a.onKeyDown,v=a.disabled,x=a.allowEmpty,w=a.disabledDate,C=a.minDate,E=a.maxDate,I=a.defaultOpen,T=a.open,R=a.onOpenChange,_=a.locale,$=a.generateConfig,P=a.picker,D=a.showNow,A=a.showToday,O=a.showTime,N=a.mode,k=a.onPanelChange,M=a.onCalendarChange,L=a.onOk,F=a.defaultPickerValue,j=a.pickerValue,B=a.onPickerValueChange,z=a.inputReadOnly,H=a.suffixIcon,V=a.onFocus,te=a.onBlur,Y=a.presets,J=a.ranges,G=a.components,U=a.cellRender,q=a.dateRender,X=a.monthCellRender,Q=a.onClick,ee=bW(t),oe=vW(T,I,v,R),le=re(oe,2),fe=le[0],ce=le[1],Ie=function(Lt,pt){(v.some(function(Dt){return!Dt})||!Lt)&&ce(Lt,pt)},be=IW($,_,s,!0,!1,h,b,M,L),he=re(be,5),ae=he[0],ie=he[1],ue=he[2],xe=he[3],we=he[4],Me=ue(),Ce=SW(v,x,fe),De=re(Ce,7),ye=De[0],ve=De[1],$e=De[2],Ee=De[3],ge=De[4],Ne=De[5],Re=De[6],me=function(Lt,pt){ve(!0),V==null||V(Lt,{range:vh(pt??Ee)})},_e=function(Lt,pt){ve(!1),te==null||te(Lt,{range:vh(pt??Ee)})},Ze=l.useMemo(function(){if(!O)return null;var Ht=O.disabledTime,Lt=Ht?function(pt){var Dt=vh(Ee),yn=oW(Me,Re,Ee);return Ht(pt,Dt,{from:yn})}:void 0;return Z(Z({},O),{},{disabledTime:Lt})},[O,Ee,Me,Re]),Oe=sn([P,P],{value:N}),Se=re(Oe,2),Ae=Se[0],Fe=Se[1],Ve=Ae[Ee]||P,He=Ve==="date"&&Ze?"datetime":Ve,ze=He===P&&He!=="time",Xe=RW(P,Ve,D,A,!0),je=TW(a,ae,ie,ue,xe,v,s,ye,fe,u),Je=re(je,2),gt=Je[0],ft=Je[1],qe=hge(Me,v,Re,$,_,w),We=sW(Me,u,x),Qe=re(We,2),ut=Qe[0],Rt=Qe[1],$t=xW($,_,Me,Ae,fe,Ee,o,ze,F,j,Ze==null?void 0:Ze.defaultOpenValue,B,C,E),ht=re($t,2),lt=ht[0],ot=ht[1],et=Wt(function(Ht,Lt,pt){var Dt=wp(Ae,Ee,Lt);if((Dt[0]!==Ae[0]||Dt[1]!==Ae[1])&&Fe(Dt),k&&pt!==!1){var yn=Pe(Me);Ht&&(yn[Ee]=Ht),k(yn,Dt)}}),vt=function(Lt,pt){return wp(Me,pt,Lt)},rt=function(Lt,pt){var Dt=Me;Lt&&(Dt=vt(Lt,Ee));var yn=Ne(Dt);xe(Dt),gt(Ee,yn===null),yn===null?Ie(!1,{force:!0}):pt||ee.current.focus({index:yn})},St=function(Lt){var pt,Dt=Lt.target.getRootNode();if(!ee.current.nativeElement.contains((pt=Dt.activeElement)!==null&&pt!==void 0?pt:document.activeElement)){var yn=v.findIndex(function(fr){return!fr});yn>=0&&ee.current.focus({index:yn})}Ie(!0),Q==null||Q(Lt)},Et=function(){ft(null),Ie(!1,{force:!0})},tt=l.useState(null),at=re(tt,2),Ke=at[0],Ge=at[1],bt=l.useState(null),Tt=re(bt,2),Pt=Tt[0],en=Tt[1],rn=l.useMemo(function(){return Pt||Me},[Me,Pt]);l.useEffect(function(){fe||en(null)},[fe]);var Vt=l.useState(0),tn=re(Vt,2),It=tn[0],_t=tn[1],kt=yW(Y,J),Tn=function(Lt){en(Lt),Ge("preset")},Qn=function(Lt){var pt=ft(Lt);pt&&Ie(!1,{force:!0})},cr=function(Lt){rt(Lt)},Jn=function(Lt){en(Lt?vt(Lt,Ee):null),Ge("cell")},Hr=function(Lt){Ie(!0),me(Lt)},Mr=function(){$e("panel")},er=function(Lt){var pt=wp(Me,Ee,Lt);xe(pt),!y&&!i&&o===He&&rt(Lt)},Kt=function(){Ie(!1)},Ft=IO(U,q,X,vh(Ee)),Gt=Me[Ee]||null,jt=Wt(function(Ht){return u(Ht,{activeIndex:Ee})}),Bt=l.useMemo(function(){var Ht=Yn(a,!1),Lt=On(a,[].concat(Pe(Object.keys(Ht)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return Lt},[a]),wt=l.createElement(OW,pe({},Bt,{showNow:Xe,showTime:Ze,range:!0,multiplePanel:ze,activeOffset:It,placement:g,disabledDate:qe,onFocus:Hr,onBlur:_e,onPanelMouseDown:Mr,picker:P,mode:Ve,internalMode:He,onPanelChange:et,format:c,value:Gt,isInvalid:jt,onChange:null,onSelect:er,pickerValue:lt,defaultOpenValue:Lc(O==null?void 0:O.defaultOpenValue)[Ee],onPickerValueChange:ot,hoverValue:rn,onHover:Jn,needConfirm:y,onSubmit:rt,onOk:we,presets:kt,onPresetHover:Tn,onPresetSubmit:Qn,onNow:cr,cellRender:Ft})),Ct=function(Lt,pt){var Dt=vt(Lt,pt);xe(Dt)},cn=function(){$e("input")},Rn=function(Lt,pt){$e("input"),Ie(!0,{inherit:!0}),Ee!==pt&&fe&&!y&&i&&rt(null,!0),ge(pt),me(Lt,pt)},ur=function(Lt,pt){if(Ie(!1),!y&&$e()==="input"){var Dt=Ne(Me);gt(Ee,Dt===null)}_e(Lt,pt)},dr=function(Lt,pt){Lt.key==="Tab"&&rt(null,!0),S==null||S(Lt,pt)},yr=l.useMemo(function(){return{prefixCls:d,locale:_,generateConfig:$,button:G.button,input:G.input}},[d,_,$,G.button,G.input]);return Xt(function(){fe&&Ee!==void 0&&et(null,P,!1)},[fe,Ee,P]),Xt(function(){var Ht=$e();!fe&&Ht==="input"&&(Ie(!1),rt(null,!0)),!fe&&i&&!y&&Ht==="panel"&&(Ie(!0),rt())},[fe]),l.createElement(wi.Provider,{value:yr},l.createElement(rW,pe({},iW(a),{popupElement:wt,popupStyle:f.popup,popupClassName:p.popup,visible:fe,onClose:Kt,range:!0}),l.createElement(Vge,pe({},a,{ref:ee,suffixIcon:H,activeIndex:ye||fe?Ee:null,activeHelp:!!Pt,allHelp:!!Pt&&Ke==="preset",focused:ye,onFocus:Rn,onBlur:ur,onKeyDown:dr,onSubmit:rt,value:rn,maskFormat:c,onChange:Ct,onInputChange:cn,format:s,inputReadOnly:z,disabled:v,open:fe,onOpenChange:Ie,onClick:St,onClear:Et,invalid:ut,onInvalid:Rt,onActiveOffset:_t}))))}var Gge=l.forwardRef(Wge);function qge(e){var t=e.prefixCls,n=e.value,r=e.onRemove,a=e.removeIcon,o=a===void 0?"×":a,i=e.formatDate,s=e.disabled,c=e.maxTagCount,u=e.placeholder,d="".concat(t,"-selector"),f="".concat(t,"-selection"),p="".concat(f,"-overflow");function g(y,S){return l.createElement("span",{className:ne("".concat(f,"-item")),title:typeof y=="string"?y:null},l.createElement("span",{className:"".concat(f,"-item-content")},y),!s&&S&&l.createElement("span",{onMouseDown:function(x){x.preventDefault()},onClick:S,className:"".concat(f,"-item-remove")},o))}function h(y){var S=i(y),v=function(w){w&&w.stopPropagation(),r(y)};return g(S,v)}function b(y){var S="+ ".concat(y.length," ...");return g(S)}return l.createElement("div",{className:d},l.createElement(fi,{prefixCls:p,data:n,renderItem:h,renderRest:b,itemKey:function(S){return i(S)},maxCount:c}),!n.length&&l.createElement("span",{className:"".concat(t,"-selection-placeholder")},u))}var Kge=["id","open","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","removeIcon"];function Yge(e,t){e.id;var n=e.open,r=e.clearIcon,a=e.suffixIcon;e.activeHelp,e.allHelp;var o=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var i=e.locale,s=e.generateConfig,c=e.placeholder,u=e.className,d=e.style,f=e.onClick,p=e.onClear,g=e.internalPicker,h=e.value,b=e.onChange,y=e.onSubmit;e.onInputChange;var S=e.multiple,v=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var x=e.disabled,w=e.invalid;e.inputReadOnly;var C=e.direction;e.onOpenChange;var E=e.onMouseDown;e.required,e["aria-required"];var I=e.autoFocus,T=e.removeIcon,R=xt(e,Kge),_=C==="rtl",$=l.useContext(wi),P=$.prefixCls,D=l.useRef(),A=l.useRef();l.useImperativeHandle(t,function(){return{nativeElement:D.current,focus:function(V){var te;(te=A.current)===null||te===void 0||te.focus(V)},blur:function(){var V;(V=A.current)===null||V===void 0||V.blur()}}});var O=kW(R),N=function(V){b([V])},k=function(V){var te=h.filter(function(Y){return Y&&!ya(s,i,Y,V,g)});b(te),n||y()},M=NW(Z(Z({},e),{},{onChange:N}),function(H){var V=H.valueTexts;return{value:V[0]||"",active:o}}),L=re(M,2),F=L[0],j=L[1],B=!!(r&&h.length&&!x),z=S?l.createElement(l.Fragment,null,l.createElement(qge,{prefixCls:P,value:h,onRemove:k,formatDate:j,maxTagCount:v,disabled:x,removeIcon:T,placeholder:c}),l.createElement("input",{className:"".concat(P,"-multiple-input"),value:h.map(j).join(","),ref:A,readOnly:!0,autoFocus:I}),l.createElement(Z0,{type:"suffix",icon:a}),B&&l.createElement(RR,{icon:r,onClear:p})):l.createElement(_R,pe({ref:A},F(),{autoFocus:I,suffixIcon:a,clearIcon:B&&l.createElement(RR,{icon:r,onClear:p}),showActiveCls:!1}));return l.createElement("div",pe({},O,{className:ne(P,W(W(W(W(W({},"".concat(P,"-multiple"),S),"".concat(P,"-focused"),o),"".concat(P,"-disabled"),x),"".concat(P,"-invalid"),w),"".concat(P,"-rtl"),_),u),style:d,ref:D,onClick:f,onMouseDown:function(V){var te,Y=V.target;Y!==((te=A.current)===null||te===void 0?void 0:te.inputElement)&&V.preventDefault(),E==null||E(V)}}),z)}var Xge=l.forwardRef(Yge);function Zge(e,t){var n=hW(e),r=re(n,6),a=r[0],o=r[1],i=r[2],s=r[3],c=r[4],u=r[5],d=a,f=d.prefixCls,p=d.styles,g=d.classNames,h=d.order,b=d.defaultValue,y=d.value,S=d.needConfirm,v=d.onChange,x=d.onKeyDown,w=d.disabled,C=d.disabledDate,E=d.minDate,I=d.maxDate,T=d.defaultOpen,R=d.open,_=d.onOpenChange,$=d.locale,P=d.generateConfig,D=d.picker,A=d.showNow,O=d.showToday,N=d.showTime,k=d.mode,M=d.onPanelChange,L=d.onCalendarChange,F=d.onOk,j=d.multiple,B=d.defaultPickerValue,z=d.pickerValue,H=d.onPickerValueChange,V=d.inputReadOnly,te=d.suffixIcon,Y=d.removeIcon,J=d.onFocus,G=d.onBlur,U=d.presets,q=d.components,X=d.cellRender,Q=d.dateRender,ee=d.monthCellRender,oe=d.onClick,le=bW(t);function fe(wt){return wt===null?null:j?wt:wt[0]}var ce=_W(P,$,o),Ie=vW(R,T,[w],_),be=re(Ie,2),he=be[0],ae=be[1],ie=function(Ct,cn,Rn){if(L){var ur=Z({},Rn);delete ur.range,L(fe(Ct),fe(cn),ur)}},ue=function(Ct){F==null||F(fe(Ct))},xe=IW(P,$,s,!1,h,b,y,ie,ue),we=re(xe,5),Me=we[0],Ce=we[1],De=we[2],ye=we[3],ve=we[4],$e=De(),Ee=SW([w]),ge=re(Ee,4),Ne=ge[0],Re=ge[1],me=ge[2],_e=ge[3],Ze=function(Ct){Re(!0),J==null||J(Ct,{})},Oe=function(Ct){Re(!1),G==null||G(Ct,{})},Se=sn(D,{value:k}),Ae=re(Se,2),Fe=Ae[0],Ve=Ae[1],He=Fe==="date"&&N?"datetime":Fe,ze=RW(D,Fe,A,O),Xe=v&&function(wt,Ct){v(fe(wt),fe(Ct))},je=TW(Z(Z({},a),{},{onChange:Xe}),Me,Ce,De,ye,[],s,Ne,he,u),Je=re(je,2),gt=Je[1],ft=sW($e,u),qe=re(ft,2),We=qe[0],Qe=qe[1],ut=l.useMemo(function(){return We.some(function(wt){return wt})},[We]),Rt=function(Ct,cn){if(H){var Rn=Z(Z({},cn),{},{mode:cn.mode[0]});delete Rn.range,H(Ct[0],Rn)}},$t=xW(P,$,$e,[Fe],he,_e,o,!1,B,z,Lc(N==null?void 0:N.defaultOpenValue),Rt,E,I),ht=re($t,2),lt=ht[0],ot=ht[1],et=Wt(function(wt,Ct,cn){if(Ve(Ct),M&&cn!==!1){var Rn=wt||$e[$e.length-1];M(Rn,Ct)}}),vt=function(){gt(De()),ae(!1,{force:!0})},rt=function(Ct){!w&&!le.current.nativeElement.contains(document.activeElement)&&le.current.focus(),ae(!0),oe==null||oe(Ct)},St=function(){gt(null),ae(!1,{force:!0})},Et=l.useState(null),tt=re(Et,2),at=tt[0],Ke=tt[1],Ge=l.useState(null),bt=re(Ge,2),Tt=bt[0],Pt=bt[1],en=l.useMemo(function(){var wt=[Tt].concat(Pe($e)).filter(function(Ct){return Ct});return j?wt:wt.slice(0,1)},[$e,Tt,j]),rn=l.useMemo(function(){return!j&&Tt?[Tt]:$e.filter(function(wt){return wt})},[$e,Tt,j]);l.useEffect(function(){he||Pt(null)},[he]);var Vt=yW(U),tn=function(Ct){Pt(Ct),Ke("preset")},It=function(Ct){var cn=j?ce(De(),Ct):[Ct],Rn=gt(cn);Rn&&!j&&ae(!1,{force:!0})},_t=function(Ct){It(Ct)},kt=function(Ct){Pt(Ct),Ke("cell")},Tn=function(Ct){ae(!0),Ze(Ct)},Qn=function(Ct){me("panel");var cn=j?ce(De(),Ct):[Ct];ye(cn),!S&&!i&&o===He&&vt()},cr=function(){ae(!1)},Jn=IO(X,Q,ee),Hr=l.useMemo(function(){var wt=Yn(a,!1),Ct=On(a,[].concat(Pe(Object.keys(wt)),["onChange","onCalendarChange","style","className","onPanelChange"]));return Z(Z({},Ct),{},{multiple:a.multiple})},[a]),Mr=l.createElement(OW,pe({},Hr,{showNow:ze,showTime:N,disabledDate:C,onFocus:Tn,onBlur:Oe,picker:D,mode:Fe,internalMode:He,onPanelChange:et,format:c,value:$e,isInvalid:u,onChange:null,onSelect:Qn,pickerValue:lt,defaultOpenValue:N==null?void 0:N.defaultOpenValue,onPickerValueChange:ot,hoverValue:en,onHover:kt,needConfirm:S,onSubmit:vt,onOk:ve,presets:Vt,onPresetHover:tn,onPresetSubmit:It,onNow:_t,cellRender:Jn})),er=function(Ct){ye(Ct)},Kt=function(){me("input")},Ft=function(Ct){me("input"),ae(!0,{inherit:!0}),Ze(Ct)},Gt=function(Ct){ae(!1),Oe(Ct)},jt=function(Ct,cn){Ct.key==="Tab"&&vt(),x==null||x(Ct,cn)},Bt=l.useMemo(function(){return{prefixCls:f,locale:$,generateConfig:P,button:q.button,input:q.input}},[f,$,P,q.button,q.input]);return Xt(function(){he&&_e!==void 0&&et(null,D,!1)},[he,_e,D]),Xt(function(){var wt=me();!he&&wt==="input"&&(ae(!1),vt()),!he&&i&&!S&&wt==="panel"&&(ae(!0),vt())},[he]),l.createElement(wi.Provider,{value:Bt},l.createElement(rW,pe({},iW(a),{popupElement:Mr,popupStyle:p.popup,popupClassName:g.popup,visible:he,onClose:cr}),l.createElement(Xge,pe({},a,{ref:le,suffixIcon:te,removeIcon:Y,activeHelp:!!Tt,allHelp:!!Tt&&at==="preset",focused:Ne,onFocus:Ft,onBlur:Gt,onKeyDown:jt,onSubmit:vt,value:rn,maskFormat:c,onChange:er,onInputChange:Kt,internalPicker:o,format:s,inputReadOnly:V,disabled:w,open:he,onOpenChange:ae,onClick:rt,onClear:St,invalid:ut,onInvalid:function(Ct){Qe(Ct,0)}}))))}var Qge=l.forwardRef(Zge);const AW=l.createContext(null),Jge=AW.Provider,MW=l.createContext(null),eme=MW.Provider;var tme=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],PW=l.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,a=e.className,o=e.style,i=e.checked,s=e.disabled,c=e.defaultChecked,u=c===void 0?!1:c,d=e.type,f=d===void 0?"checkbox":d,p=e.title,g=e.onChange,h=xt(e,tme),b=l.useRef(null),y=l.useRef(null),S=sn(u,{value:i}),v=re(S,2),x=v[0],w=v[1];l.useImperativeHandle(t,function(){return{focus:function(T){var R;(R=b.current)===null||R===void 0||R.focus(T)},blur:function(){var T;(T=b.current)===null||T===void 0||T.blur()},input:b.current,nativeElement:y.current}});var C=ne(r,a,W(W({},"".concat(r,"-checked"),x),"".concat(r,"-disabled"),s)),E=function(T){s||("checked"in e||w(T.target.checked),g==null||g({target:Z(Z({},e),{},{type:f,checked:T.target.checked}),stopPropagation:function(){T.stopPropagation()},preventDefault:function(){T.preventDefault()},nativeEvent:T.nativeEvent}))};return l.createElement("span",{className:C,title:p,style:o,ref:y},l.createElement("input",pe({},h,{className:"".concat(r,"-input"),ref:b,onChange:E,disabled:s,checked:!!x,type:f})),l.createElement("span",{className:"".concat(r,"-inner")}))});const nme=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},nn(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},rme=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:a,motionDurationSlow:o,motionDurationMid:i,motionEaseInOutCirc:s,colorBgContainer:c,colorBorder:u,lineWidth:d,colorBgContainerDisabled:f,colorTextDisabled:p,paddingXS:g,dotColorDisabled:h,lineType:b,radioColor:y,radioBgColor:S,calc:v}=e,x=`${t}-inner`,C=v(a).sub(v(4).mul(2)),E=v(1).mul(a).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},nn(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${K(d)} ${b} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},nn(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &, + &:hover ${x}`]:{borderColor:r},[`${t}-input:focus-visible + ${x}`]:Object.assign({},Cs(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:E,height:E,marginBlockStart:v(1).mul(a).div(-2).equal({unit:!0}),marginInlineStart:v(1).mul(a).div(-2).equal({unit:!0}),backgroundColor:y,borderBlockStart:0,borderInlineStart:0,borderRadius:E,transform:"scale(0)",opacity:0,transition:`all ${o} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:E,height:E,backgroundColor:c,borderColor:u,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${i}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[x]:{borderColor:r,backgroundColor:S,"&::after":{transform:`scale(${e.calc(e.dotSize).div(a).equal()})`,opacity:1,transition:`all ${o} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[x]:{backgroundColor:f,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:h}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:p,cursor:"not-allowed"},[`&${t}-checked`]:{[x]:{"&::after":{transform:`scale(${v(C).div(a).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:g,paddingInlineEnd:g}})}},ame=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:a,lineType:o,colorBorder:i,motionDurationSlow:s,motionDurationMid:c,buttonPaddingInline:u,fontSize:d,buttonBg:f,fontSizeLG:p,controlHeightLG:g,controlHeightSM:h,paddingXS:b,borderRadius:y,borderRadiusSM:S,borderRadiusLG:v,buttonCheckedBg:x,buttonSolidCheckedColor:w,colorTextDisabled:C,colorBgContainerDisabled:E,buttonCheckedBgDisabled:I,buttonCheckedColorDisabled:T,colorPrimary:R,colorPrimaryHover:_,colorPrimaryActive:$,buttonSolidCheckedBg:P,buttonSolidCheckedHoverBg:D,buttonSolidCheckedActiveBg:A,calc:O}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:u,paddingBlock:0,color:t,fontSize:d,lineHeight:K(O(n).sub(O(a).mul(2)).equal()),background:f,border:`${K(a)} ${o} ${i}`,borderBlockStartWidth:O(a).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:a,cursor:"pointer",transition:[`color ${c}`,`background ${c}`,`box-shadow ${c}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:O(a).mul(-1).equal(),insetInlineStart:O(a).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:a,paddingInline:0,backgroundColor:i,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${K(a)} ${o} ${i}`,borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y},"&:first-child:last-child":{borderRadius:y},[`${r}-group-large &`]:{height:g,fontSize:p,lineHeight:K(O(g).sub(O(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},[`${r}-group-small &`]:{height:h,paddingInline:O(b).sub(a).equal(),paddingBlock:0,lineHeight:K(O(h).sub(O(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:S,borderEndStartRadius:S},"&:last-child":{borderStartEndRadius:S,borderEndEndRadius:S}},"&:hover":{position:"relative",color:R},"&:has(:focus-visible)":Object.assign({},Cs(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:R,background:x,borderColor:R,"&::before":{backgroundColor:R},"&:first-child":{borderColor:R},"&:hover":{color:_,borderColor:_,"&::before":{backgroundColor:_}},"&:active":{color:$,borderColor:$,"&::before":{backgroundColor:$}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:w,background:P,borderColor:P,"&:hover":{color:w,background:D,borderColor:D},"&:active":{color:w,background:A,borderColor:A}},"&-disabled":{color:C,backgroundColor:E,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:C,backgroundColor:E,borderColor:i}},[`&-disabled${r}-button-wrapper-checked`]:{color:T,backgroundColor:I,borderColor:i,boxShadow:"none"}}}},ome=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:a,fontSizeLG:o,colorText:i,colorBgContainer:s,colorTextDisabled:c,controlItemBgActiveDisabled:u,colorTextLightSolid:d,colorPrimary:f,colorPrimaryHover:p,colorPrimaryActive:g,colorWhite:h}=e,b=4,y=o,S=t?y-b*2:y-(b+a)*2;return{radioSize:y,dotSize:S,dotColorDisabled:c,buttonSolidCheckedColor:d,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:p,buttonSolidCheckedActiveBg:g,buttonBg:s,buttonCheckedBg:s,buttonColor:i,buttonCheckedBgDisabled:u,buttonCheckedColorDisabled:c,buttonPaddingInline:n-a,wrapperMarginInlineEnd:r,radioColor:t?f:h,radioBgColor:t?s:f}},DW=on("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${K(n)} ${t}`,o=zt(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[nme(o),rme(o),ame(o)]},ome,{unitless:{radioSize:!0,dotSize:!0}});var ime=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r;const a=l.useContext(AW),o=l.useContext(MW),{getPrefixCls:i,direction:s,radio:c}=l.useContext(st),u=l.useRef(null),d=na(t,u),{isFormItemInput:f}=l.useContext(zr),p=A=>{var O,N;(O=e.onChange)===null||O===void 0||O.call(e,A),(N=a==null?void 0:a.onChange)===null||N===void 0||N.call(a,A)},{prefixCls:g,className:h,rootClassName:b,children:y,style:S,title:v}=e,x=ime(e,["prefixCls","className","rootClassName","children","style","title"]),w=i("radio",g),C=((a==null?void 0:a.optionType)||o)==="button",E=C?`${w}-button`:w,I=Un(w),[T,R,_]=DW(w,I),$=Object.assign({},x),P=l.useContext(Jr);a&&($.name=a.name,$.onChange=p,$.checked=e.value===a.value,$.disabled=(n=$.disabled)!==null&&n!==void 0?n:a.disabled),$.disabled=(r=$.disabled)!==null&&r!==void 0?r:P;const D=ne(`${E}-wrapper`,{[`${E}-wrapper-checked`]:$.checked,[`${E}-wrapper-disabled`]:$.disabled,[`${E}-wrapper-rtl`]:s==="rtl",[`${E}-wrapper-in-form-item`]:f},c==null?void 0:c.className,h,b,R,_,I);return T(l.createElement(Kg,{component:"Radio",disabled:$.disabled},l.createElement("label",{className:D,style:Object.assign(Object.assign({},c==null?void 0:c.style),S),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:v},l.createElement(PW,Object.assign({},$,{className:ne($.className,{[E0]:!C}),type:"radio",prefixCls:E,ref:d})),y!==void 0?l.createElement("span",null,y):null)))},bb=l.forwardRef(sme),lme=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=l.useContext(st),{prefixCls:a,className:o,rootClassName:i,options:s,buttonStyle:c="outline",disabled:u,children:d,size:f,style:p,id:g,optionType:h,name:b,defaultValue:y,value:S,onChange:v,onMouseEnter:x,onMouseLeave:w,onFocus:C,onBlur:E}=e,[I,T]=sn(y,{value:S}),R=l.useCallback(F=>{const j=I,B=F.target.value;"value"in e||T(B),B!==j&&(v==null||v(F))},[I,T,v]),_=n("radio",a),$=`${_}-group`,P=Un(_),[D,A,O]=DW(_,P);let N=d;s&&s.length>0&&(N=s.map(F=>typeof F=="string"||typeof F=="number"?l.createElement(bb,{key:F.toString(),prefixCls:_,disabled:u,value:F,checked:I===F},F):l.createElement(bb,{key:`radio-group-value-options-${F.value}`,prefixCls:_,disabled:F.disabled||u,value:F.value,checked:I===F.value,title:F.title,style:F.style,id:F.id,required:F.required},F.label)));const k=Er(f),M=ne($,`${$}-${c}`,{[`${$}-${k}`]:k,[`${$}-rtl`]:r==="rtl"},o,i,A,O,P),L=l.useMemo(()=>({onChange:R,value:I,disabled:u,name:b,optionType:h}),[R,I,u,b,h]);return D(l.createElement("div",Object.assign({},Yn(e,{aria:!0,data:!0}),{className:M,style:p,onMouseEnter:x,onMouseLeave:w,onFocus:C,onBlur:E,id:g,ref:t}),l.createElement(Jge,{value:L},N)))}),cme=l.memo(lme);var ume=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:n}=l.useContext(st),{prefixCls:r}=e,a=ume(e,["prefixCls"]),o=n("radio",r);return l.createElement(eme,{value:"button"},l.createElement(bb,Object.assign({prefixCls:o},a,{type:"radio",ref:t})))},fme=l.forwardRef(dme),ho=bb;ho.Button=fme;ho.Group=cme;ho.__ANT_RADIO=!0;function cm(e){return zt(e,{inputAffixPadding:e.paddingXXS})}const um=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:a,controlHeightSM:o,controlHeightLG:i,fontSizeLG:s,lineHeightLG:c,paddingSM:u,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:p,colorPrimaryHover:g,colorPrimary:h,controlOutlineWidth:b,controlOutline:y,colorErrorOutline:S,colorWarningOutline:v,colorBgContainer:x}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-a,0),paddingBlockSM:Math.max(Math.round((o-n*r)/2*10)/10-a,0),paddingBlockLG:Math.ceil((i-s*c)/2*10)/10-a,paddingInline:u-a,paddingInlineSM:d-a,paddingInlineLG:f-a,addonBg:p,activeBorderColor:h,hoverBorderColor:g,activeShadow:`0 0 0 ${b}px ${y}`,errorActiveShadow:`0 0 0 ${b}px ${S}`,warningActiveShadow:`0 0 0 ${b}px ${v}`,hoverBg:x,activeBg:x,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},pme=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Q0=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},pme(zt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),OO=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),P4=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},OO(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),NO=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},OO(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Q0(e))}),P4(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),P4(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),D4=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),LW=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},D4(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),D4(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Q0(e))}})}),kO=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},FW=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),L4=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},FW(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),AO=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},FW(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Q0(e))}),L4(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),L4(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),F4=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),jW=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${K(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${K(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},F4(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),F4(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),MO=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),BW=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:a}=e;return{padding:`${K(t)} ${K(a)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},PO=e=>({padding:`${K(e.paddingBlockSM)} ${K(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),dm=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${K(e.paddingBlock)} ${K(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},MO(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},BW(e)),"&-sm":Object.assign({},PO(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),zW=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},BW(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},PO(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-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 ${K(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${K(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${K(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${K(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${K(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},hi()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[` & > ${t}-affix-wrapper, & > ${t}-number-affix-wrapper, & > ${n}-picker-range @@ -281,35 +281,35 @@ html body { & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, & > ${n}-select:last-child > ${n}-select-selector, & > ${n}-cascader-picker:last-child ${t}, - & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},gme=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:a}=e,i=a(n).sub(a(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},nn(e)),cm(e)),OO(e)),kO(e)),NO(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},mme=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${K(e.inputAffixPadding)}`}}}},hme=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:a,colorIcon:o,colorIconHover:i,iconCls:s}=e,c=`${t}-affix-wrapper`,u=`${t}-affix-wrapper-disabled`;return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},cm(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{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"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),mme(e)),{[`${s}${t}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${a}`,"&:hover":{color:i}}}),[u]:{[`${s}${t}-password-icon`]:{color:o,cursor:"not-allowed","&:hover":{color:o}}}}},vme=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},nn(e)),zW(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},LW(e)),jW(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},bme=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, + & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},gme=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:a}=e,i=a(n).sub(a(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},nn(e)),dm(e)),NO(e)),AO(e)),kO(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},mme=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${K(e.inputAffixPadding)}`}}}},hme=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:a,colorIcon:o,colorIconHover:i,iconCls:s}=e,c=`${t}-affix-wrapper`,u=`${t}-affix-wrapper-disabled`;return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},dm(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{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"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),mme(e)),{[`${s}${t}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${a}`,"&:hover":{color:i}}}),[u]:{[`${s}${t}-password-icon`]:{color:o,cursor:"not-allowed","&:hover":{color:o}}}}},vme=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},nn(e)),zW(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},LW(e)),jW(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},bme=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, > ${t}, ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},yme=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[` &-allow-clear > ${t}, &-affix-wrapper${r}-has-feedback ${t} - `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},Sme=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},PO=on("Input",e=>{const t=zt(e,sm(e));return[gme(t),yme(t),hme(t),vme(t),bme(t),Sme(t),qg(t)]},lm,{resetFont:!1}),s1=(e,t)=>{const{componentCls:n,controlHeight:r}=e,a=t?`${n}-${t}`:"",o=fV(e);return[{[`${n}-multiple${a}`]:{paddingBlock:o.containerPadding,paddingInlineStart:o.basePadding,minHeight:r,[`${n}-selection-item`]:{height:o.itemHeight,lineHeight:K(o.itemLineHeight)}}}]},xme=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,a=zt(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),o=zt(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[s1(a,"small"),s1(e),s1(o,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},pV(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},wme=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:a,motionDurationMid:o,cellHoverBg:i,lineWidth:s,lineType:c,colorPrimary:u,cellActiveWithRangeBg:d,colorTextLightSolid:f,colorTextDisabled:p,cellBgDisabled:g,colorFillSecondary:h}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""'},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:K(r),borderRadius:a,transition:`background ${o}`},[`&:hover:not(${t}-in-view), + `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},Sme=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},DO=on("Input",e=>{const t=zt(e,cm(e));return[gme(t),yme(t),hme(t),vme(t),bme(t),Sme(t),Yg(t)]},um,{resetFont:!1}),l1=(e,t)=>{const{componentCls:n,controlHeight:r}=e,a=t?`${n}-${t}`:"",o=fV(e);return[{[`${n}-multiple${a}`]:{paddingBlock:o.containerPadding,paddingInlineStart:o.basePadding,minHeight:r,[`${n}-selection-item`]:{height:o.itemHeight,lineHeight:K(o.itemLineHeight)}}}]},xme=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,a=zt(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),o=zt(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[l1(a,"small"),l1(e),l1(o,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},pV(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},wme=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:a,motionDurationMid:o,cellHoverBg:i,lineWidth:s,lineType:c,colorPrimary:u,cellActiveWithRangeBg:d,colorTextLightSolid:f,colorTextDisabled:p,cellBgDisabled:g,colorFillSecondary:h}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""'},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:K(r),borderRadius:a,transition:`background ${o}`},[`&:hover:not(${t}-in-view), &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end)`]:{[n]:{background:i}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${K(s)} ${c} ${u}`,borderRadius:a,content:'""'}},[`&-in-view${t}-in-range, &-in-view${t}-range-start, &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:d}},[`&-in-view${t}-selected, &-in-view${t}-range-start, - &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:f,background:u},[`&${t}-disabled ${n}`]:{background:h}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:a,borderEndStartRadius:a,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a},"&-disabled":{color:p,pointerEvents:"none",[n]:{background:"transparent"},"&::before":{background:g}},[`&-disabled${t}-today ${n}::before`]:{borderColor:p}}},Cme=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:a,pickerControlIconSize:o,cellWidth:i,paddingSM:s,paddingXS:c,paddingXXS:u,colorBgContainer:d,lineWidth:f,lineType:p,borderRadiusLG:g,colorPrimary:h,colorTextHeading:b,colorSplit:y,pickerControlIconBorderWidth:S,colorIcon:v,textHeight:x,motionDurationMid:C,colorIconHover:w,fontWeightStrong:E,cellHeight:I,pickerCellPaddingVertical:T,colorTextDisabled:R,colorText:_,fontSize:$,motionDurationSlow:P,withoutTimeCellHeight:D,pickerQuarterPanelContentHeight:A,borderRadiusSM:O,colorTextLightSolid:N,cellHoverBg:k,timeColumnHeight:M,timeColumnWidth:L,timeCellHeight:F,controlItemBgActive:j,marginXXS:B,pickerDatePanelPaddingHorizontal:z,pickerControlIconMargin:H}=e,V=e.calc(i).mul(7).add(e.calc(z).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:d,borderRadius:g,outline:"none","&-focused":{borderColor:h},"&-rtl":{[`${t}-prev-icon, + &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:f,background:u},[`&${t}-disabled ${n}`]:{background:h}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:a,borderEndStartRadius:a,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a},"&-disabled":{color:p,pointerEvents:"none",[n]:{background:"transparent"},"&::before":{background:g}},[`&-disabled${t}-today ${n}::before`]:{borderColor:p}}},Cme=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:a,pickerControlIconSize:o,cellWidth:i,paddingSM:s,paddingXS:c,paddingXXS:u,colorBgContainer:d,lineWidth:f,lineType:p,borderRadiusLG:g,colorPrimary:h,colorTextHeading:b,colorSplit:y,pickerControlIconBorderWidth:S,colorIcon:v,textHeight:x,motionDurationMid:w,colorIconHover:C,fontWeightStrong:E,cellHeight:I,pickerCellPaddingVertical:T,colorTextDisabled:R,colorText:_,fontSize:$,motionDurationSlow:P,withoutTimeCellHeight:D,pickerQuarterPanelContentHeight:A,borderRadiusSM:O,colorTextLightSolid:N,cellHoverBg:k,timeColumnHeight:M,timeColumnWidth:L,timeCellHeight:F,controlItemBgActive:j,marginXXS:B,pickerDatePanelPaddingHorizontal:z,pickerControlIconMargin:H}=e,V=e.calc(i).mul(7).add(e.calc(z).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:d,borderRadius:g,outline:"none","&-focused":{borderColor:h},"&-rtl":{[`${t}-prev-icon, ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon, - ${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:V},"&-header":{display:"flex",padding:`0 ${K(c)}`,color:b,borderBottom:`${K(f)} ${p} ${y}`,"> *":{flex:"none"},button:{padding:0,color:v,lineHeight:K(x),background:"transparent",border:0,cursor:"pointer",transition:`color ${C}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center"},"> button":{minWidth:"1.6em",fontSize:$,"&:hover":{color:w},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:E,lineHeight:K(x),"> button":{color:"inherit",fontWeight:"inherit","&:not(:first-child)":{marginInlineStart:c},"&:hover":{color:h}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:o,height:o,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:o,height:o,border:"0 solid currentcolor",borderBlockWidth:`${K(S)} 0`,borderInlineWidth:`${K(S)} 0`,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:H,insetInlineStart:H,display:"inline-block",width:o,height:o,border:"0 solid currentcolor",borderBlockWidth:`${K(S)} 0`,borderInlineWidth:`${K(S)} 0`,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:I,fontWeight:"normal"},th:{height:e.calc(I).add(e.calc(T).mul(2)).equal(),color:_,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${K(T)} 0`,color:R,cursor:"pointer","&-in-view":{color:_}},wme(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(D).mul(4).equal()},[r]:{padding:`0 ${K(c)}`}},"&-quarter-panel":{[`${t}-content`]:{height:A}},"&-decade-panel":{[r]:{padding:`0 ${K(e.calc(c).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${K(c)}`},[r]:{width:a}},"&-date-panel":{[`${t}-body`]:{padding:`${K(c)} ${K(z)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${t}-cell`]:{[`&:hover ${r}, + ${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:V},"&-header":{display:"flex",padding:`0 ${K(c)}`,color:b,borderBottom:`${K(f)} ${p} ${y}`,"> *":{flex:"none"},button:{padding:0,color:v,lineHeight:K(x),background:"transparent",border:0,cursor:"pointer",transition:`color ${w}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center"},"> button":{minWidth:"1.6em",fontSize:$,"&:hover":{color:C},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:E,lineHeight:K(x),"> button":{color:"inherit",fontWeight:"inherit","&:not(:first-child)":{marginInlineStart:c},"&:hover":{color:h}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:o,height:o,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:o,height:o,border:"0 solid currentcolor",borderBlockWidth:`${K(S)} 0`,borderInlineWidth:`${K(S)} 0`,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:H,insetInlineStart:H,display:"inline-block",width:o,height:o,border:"0 solid currentcolor",borderBlockWidth:`${K(S)} 0`,borderInlineWidth:`${K(S)} 0`,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:I,fontWeight:"normal"},th:{height:e.calc(I).add(e.calc(T).mul(2)).equal(),color:_,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${K(T)} 0`,color:R,cursor:"pointer","&-in-view":{color:_}},wme(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(D).mul(4).equal()},[r]:{padding:`0 ${K(c)}`}},"&-quarter-panel":{[`${t}-content`]:{height:A}},"&-decade-panel":{[r]:{padding:`0 ${K(e.calc(c).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${K(c)}`},[r]:{width:a}},"&-date-panel":{[`${t}-body`]:{padding:`${K(c)} ${K(z)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${t}-cell`]:{[`&:hover ${r}, &-selected ${r}, - ${r}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${C}`},"&:first-child:before":{borderStartStartRadius:O,borderEndStartRadius:O},"&:last-child:before":{borderStartEndRadius:O,borderEndEndRadius:O}},"&:hover td":{"&:before":{background:k}},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:h},[`&${t}-cell-week`]:{color:new an(N).setAlpha(.5).toHexString()},[r]:{color:N}}},"&-range-hover td:before":{background:j}}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${K(c)} ${K(s)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${K(f)} ${p} ${y}`},[`${t}-date-panel, + ${r}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${w}`},"&:first-child:before":{borderStartStartRadius:O,borderEndStartRadius:O},"&:last-child:before":{borderStartEndRadius:O,borderEndEndRadius:O}},"&:hover td":{"&:before":{background:k}},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:h},[`&${t}-cell-week`]:{color:new an(N).setAlpha(.5).toHexString()},[r]:{color:N}}},"&-range-hover td:before":{background:j}}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${K(c)} ${K(s)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${K(f)} ${p} ${y}`},[`${t}-date-panel, ${t}-time-panel`]:{transition:`opacity ${P}`},"&-active":{[`${t}-date-panel, - ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:M},"&-column":{flex:"1 0 auto",width:L,margin:`${K(u)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${C}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:e.calc("100%").sub(F).equal(),content:'""'},"&:not(:first-child)":{borderInlineStart:`${K(f)} ${p} ${y}`},"&-active":{background:new an(j).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:B,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(L).sub(e.calc(B).mul(2)).equal(),height:F,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(L).sub(F).div(2).equal(),color:_,lineHeight:K(F),borderRadius:O,cursor:"pointer",transition:`background ${C}`,"&:hover":{background:k}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:j}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:R,background:"transparent",cursor:"not-allowed"}}}}}}}}},Eme=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:a,antCls:o,colorPrimary:i,cellActiveWithRangeBg:s,colorPrimaryBorder:c,lineType:u,colorSplit:d}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${K(r)} ${u} ${d}`,"&-extra":{padding:`0 ${K(a)}`,lineHeight:K(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${K(r)} ${u} ${d}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:K(a),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:K(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${o}-tag-blue`]:{color:i,background:s,borderColor:c,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},Ime=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:a}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(a).add(e.calc(r).div(2)).equal()}},Tme=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:a,paddingXXS:o,lineWidth:i}=e,s=o*2,c=i*2,u=Math.min(n-s,n-c),d=Math.min(r-s,r-c),f=Math.min(a-s,a-c);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(o/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new an(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new an(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:a*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:a,withoutTimeCellHeight:a*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:u,multipleItemHeightSM:d,multipleItemHeightLG:f,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},Rme=e=>Object.assign(Object.assign(Object.assign(Object.assign({},lm(e)),Tme(e)),F0(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),_me=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign({},OO(e)),kO(e)),NO(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${K(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${K(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${K(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},l1=(e,t,n,r)=>{const a=e.calc(n).add(2).equal(),o=e.max(e.calc(t).sub(a).div(2).equal(),0),i=e.max(e.calc(t).sub(a).sub(o).equal(),0);return{padding:`${K(o)} ${K(r)} ${K(i)}`}},$me=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},Ome=e=>{const{componentCls:t,antCls:n,controlHeight:r,paddingInline:a,lineWidth:o,lineType:i,colorBorder:s,borderRadius:c,motionDurationMid:u,colorTextDisabled:d,colorTextPlaceholder:f,controlHeightLG:p,fontSizeLG:g,controlHeightSM:h,paddingInlineSM:b,paddingXS:y,marginXS:S,colorTextDescription:v,lineWidthBold:x,colorPrimary:C,motionDurationSlow:w,zIndexPopup:E,paddingXXS:I,sizePopupArrow:T,colorBgElevated:R,borderRadiusLG:_,boxShadowSecondary:$,borderRadiusSM:P,colorSplit:D,cellHoverBg:A,presetsWidth:O,presetsMaxWidth:N,boxShadowPopoverArrow:k,fontHeight:M,fontHeightLG:L,lineHeightLG:F}=e;return[{[t]:Object.assign(Object.assign(Object.assign({},nn(e)),l1(e,r,M,a)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:c,transition:`border ${u}, box-shadow ${u}, background ${u}`,[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.fontSize,lineHeight:e.lineHeight,transition:`all ${u}`},AO(f)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:d,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:f}}},"&-large":Object.assign(Object.assign({},l1(e,p,L,a)),{[`${t}-input > input`]:{fontSize:g,lineHeight:F}}),"&-small":Object.assign({},l1(e,h,M,b)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(y).div(2).equal(),color:d,lineHeight:1,pointerEvents:"none",transition:`opacity ${u}, color ${u}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:S}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:d,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${u}, color ${u}`,"> *":{verticalAlign:"top"},"&:hover":{color:v}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:g,color:d,fontSize:g,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:v},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(o).mul(-1).equal(),height:x,background:C,opacity:0,transition:`all ${w} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${K(y)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:a},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:b}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},nn(e)),Cme(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:E,[`&${t}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${t}-dropdown-placement-bottomLeft, + ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:M},"&-column":{flex:"1 0 auto",width:L,margin:`${K(u)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${w}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:e.calc("100%").sub(F).equal(),content:'""'},"&:not(:first-child)":{borderInlineStart:`${K(f)} ${p} ${y}`},"&-active":{background:new an(j).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:B,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(L).sub(e.calc(B).mul(2)).equal(),height:F,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(L).sub(F).div(2).equal(),color:_,lineHeight:K(F),borderRadius:O,cursor:"pointer",transition:`background ${w}`,"&:hover":{background:k}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:j}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:R,background:"transparent",cursor:"not-allowed"}}}}}}}}},Eme=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:a,antCls:o,colorPrimary:i,cellActiveWithRangeBg:s,colorPrimaryBorder:c,lineType:u,colorSplit:d}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${K(r)} ${u} ${d}`,"&-extra":{padding:`0 ${K(a)}`,lineHeight:K(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${K(r)} ${u} ${d}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:K(a),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:K(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${o}-tag-blue`]:{color:i,background:s,borderColor:c,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},Ime=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:a}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(a).add(e.calc(r).div(2)).equal()}},Tme=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:a,paddingXXS:o,lineWidth:i}=e,s=o*2,c=i*2,u=Math.min(n-s,n-c),d=Math.min(r-s,r-c),f=Math.min(a-s,a-c);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(o/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new an(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new an(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:a*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:a,withoutTimeCellHeight:a*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:u,multipleItemHeightSM:d,multipleItemHeightLG:f,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},Rme=e=>Object.assign(Object.assign(Object.assign(Object.assign({},um(e)),Tme(e)),j0(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),_me=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign({},NO(e)),AO(e)),kO(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${K(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${K(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${K(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},c1=(e,t,n,r)=>{const a=e.calc(n).add(2).equal(),o=e.max(e.calc(t).sub(a).div(2).equal(),0),i=e.max(e.calc(t).sub(a).sub(o).equal(),0);return{padding:`${K(o)} ${K(r)} ${K(i)}`}},$me=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},Ome=e=>{const{componentCls:t,antCls:n,controlHeight:r,paddingInline:a,lineWidth:o,lineType:i,colorBorder:s,borderRadius:c,motionDurationMid:u,colorTextDisabled:d,colorTextPlaceholder:f,controlHeightLG:p,fontSizeLG:g,controlHeightSM:h,paddingInlineSM:b,paddingXS:y,marginXS:S,colorTextDescription:v,lineWidthBold:x,colorPrimary:w,motionDurationSlow:C,zIndexPopup:E,paddingXXS:I,sizePopupArrow:T,colorBgElevated:R,borderRadiusLG:_,boxShadowSecondary:$,borderRadiusSM:P,colorSplit:D,cellHoverBg:A,presetsWidth:O,presetsMaxWidth:N,boxShadowPopoverArrow:k,fontHeight:M,fontHeightLG:L,lineHeightLG:F}=e;return[{[t]:Object.assign(Object.assign(Object.assign({},nn(e)),c1(e,r,M,a)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:c,transition:`border ${u}, box-shadow ${u}, background ${u}`,[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.fontSize,lineHeight:e.lineHeight,transition:`all ${u}`},MO(f)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:d,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:f}}},"&-large":Object.assign(Object.assign({},c1(e,p,L,a)),{[`${t}-input > input`]:{fontSize:g,lineHeight:F}}),"&-small":Object.assign({},c1(e,h,M,b)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(y).div(2).equal(),color:d,lineHeight:1,pointerEvents:"none",transition:`opacity ${u}, color ${u}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:S}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:d,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${u}, color ${u}`,"> *":{verticalAlign:"top"},"&:hover":{color:v}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:g,color:d,fontSize:g,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:v},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(o).mul(-1).equal(),height:x,background:w,opacity:0,transition:`all ${C} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${K(y)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:a},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:b}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},nn(e)),Cme(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:E,[`&${t}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${t}-dropdown-placement-bottomLeft, &${t}-dropdown-placement-bottomRight`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft, &${t}-dropdown-placement-topRight`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft, &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight, &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft, - &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:O0},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft, + &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:N0},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft, &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight, &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft, - &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:_0},[`&${n}-slide-up-leave ${t}-panel-container`]:{pointerEvents:"none"},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft, - &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:N0},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft, - &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:$0},[`${t}-panel > ${t}-time-panel`]:{paddingTop:I},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(a).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${w} ease-out`},SV(e,R,k)),{"&:before":{insetInlineStart:e.calc(a).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:R,borderRadius:_,boxShadow:$,transition:`margin ${w}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:O,maxWidth:N,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:y,borderInlineEnd:`${K(o)} ${i} ${D}`,li:Object.assign(Object.assign({},xo),{borderRadius:P,paddingInline:y,paddingBlock:e.calc(h).sub(M).div(2).equal(),cursor:"pointer",transition:`all ${w}`,"+ li":{marginTop:S},"&:hover":{background:A}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:s}}}}),"&-dropdown-range":{padding:`${K(e.calc(T).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},Vi(e,"slide-up"),Vi(e,"slide-down"),wd(e,"move-up"),wd(e,"move-down")]},HW=on("DatePicker",e=>{const t=zt(sm(e),Ime(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Eme(t),Ome(t),_me(t),$me(t),xme(t),qg(e,{focusElCls:`${e.componentCls}-focused`})]},Rme);var Nme={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"},kme=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Nme}))},UW=l.forwardRef(kme);const Q0=l.createContext(null);var Ame=function(t){var n=t.activeTabOffset,r=t.horizontal,a=t.rtl,o=t.indicator,i=o===void 0?{}:o,s=i.size,c=i.align,u=c===void 0?"center":c,d=l.useState(),f=re(d,2),p=f[0],g=f[1],h=l.useRef(),b=se.useCallback(function(S){return typeof s=="function"?s(S):typeof s=="number"?s:S},[s]);function y(){Ut.cancel(h.current)}return l.useEffect(function(){var S={};if(n)if(r){S.width=b(n.width);var v=a?"right":"left";u==="start"&&(S[v]=n[v]),u==="center"&&(S[v]=n[v]+n.width/2,S.transform=a?"translateX(50%)":"translateX(-50%)"),u==="end"&&(S[v]=n[v]+n.width,S.transform="translateX(-100%)")}else S.height=b(n.height),u==="start"&&(S.top=n.top),u==="center"&&(S.top=n.top+n.height/2,S.transform="translateY(-50%)"),u==="end"&&(S.top=n.top+n.height,S.transform="translateY(-100%)");return y(),h.current=Ut(function(){g(S)}),y},[n,r,a,u,b]),{style:p}},j4={width:0,height:0,left:0,top:0};function Mme(e,t,n){return l.useMemo(function(){for(var r,a=new Map,o=t.get((r=e[0])===null||r===void 0?void 0:r.key)||j4,i=o.left+o.width,s=0;sA?(P=_,E.current="x"):(P=$,E.current="y"),t(-P,-P)&&R.preventDefault()}var T=l.useRef(null);T.current={onTouchStart:x,onTouchMove:C,onTouchEnd:w,onWheel:I},l.useEffect(function(){function R(D){T.current.onTouchStart(D)}function _(D){T.current.onTouchMove(D)}function $(D){T.current.onTouchEnd(D)}function P(D){T.current.onWheel(D)}return document.addEventListener("touchmove",_,{passive:!1}),document.addEventListener("touchend",$,{passive:!0}),e.current.addEventListener("touchstart",R,{passive:!0}),e.current.addEventListener("wheel",P,{passive:!1}),function(){document.removeEventListener("touchmove",_),document.removeEventListener("touchend",$)}},[])}function VW(e){var t=l.useState(0),n=re(t,2),r=n[0],a=n[1],o=l.useRef(0),i=l.useRef();return i.current=e,cc(function(){var s;(s=i.current)===null||s===void 0||s.call(i)},[r]),function(){o.current===r&&(o.current+=1,a(o.current))}}function Lme(e){var t=l.useRef([]),n=l.useState({}),r=re(n,2),a=r[1],o=l.useRef(typeof e=="function"?e():e),i=VW(function(){var c=o.current;t.current.forEach(function(u){c=u(c)}),t.current=[],o.current=c,a({})});function s(c){t.current.push(c),i()}return[o.current,s]}var U4={width:0,height:0,left:0,top:0,right:0};function Fme(e,t,n,r,a,o,i){var s=i.tabs,c=i.tabPosition,u=i.rtl,d,f,p;return["top","bottom"].includes(c)?(d="width",f=u?"right":"left",p=Math.abs(n)):(d="height",f="top",p=-n),l.useMemo(function(){if(!s.length)return[0,0];for(var g=s.length,h=g,b=0;bp+t){h=b-1;break}}for(var S=0,v=g-1;v>=0;v-=1){var x=e.get(s[v].key)||U4;if(x[f]=h?[0,0]:[S,h]},[e,t,r,a,o,p,c,s.map(function(g){return g.key}).join("_"),u])}function V4(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var jme="TABS_DQ";function WW(e){return String(e).replace(/"/g,jme)}function GW(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var qW=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,a=e.locale,o=e.style;return!r||r.showAdd===!1?null:l.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:o,"aria-label":(a==null?void 0:a.addAriaLabel)||"Add tab",onClick:function(s){r.onEdit("add",{event:s})}},r.addIcon||"+")}),W4=l.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,a=e.extra;if(!a)return null;var o,i={};return ht(a)==="object"&&!l.isValidElement(a)?i=a:i.right=a,n==="right"&&(o=i.right),n==="left"&&(o=i.left),o?l.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},o):null}),Bme=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,a=e.tabs,o=e.locale,i=e.mobile,s=e.more,c=s===void 0?{}:s,u=e.style,d=e.className,f=e.editable,p=e.tabBarGutter,g=e.rtl,h=e.removeAriaLabel,b=e.onTabClick,y=e.getPopupContainer,S=e.popupClassName,v=l.useState(!1),x=re(v,2),C=x[0],w=x[1],E=l.useState(null),I=re(E,2),T=I[0],R=I[1],_=c.icon,$=_===void 0?"More":_,P="".concat(r,"-more-popup"),D="".concat(n,"-dropdown"),A=T!==null?"".concat(P,"-").concat(T):null,O=o==null?void 0:o.dropdownAriaLabel;function N(z,H){z.preventDefault(),z.stopPropagation(),f.onEdit("remove",{key:H,event:z})}var k=l.createElement(Yd,{onClick:function(H){var V=H.key,te=H.domEvent;b(V,te),w(!1)},prefixCls:"".concat(D,"-menu"),id:P,tabIndex:-1,role:"listbox","aria-activedescendant":A,selectedKeys:[T],"aria-label":O!==void 0?O:"expanded dropdown"},a.map(function(z){var H=z.closable,V=z.disabled,te=z.closeIcon,Y=z.key,J=z.label,G=GW(H,te,f,V);return l.createElement(am,{key:Y,id:"".concat(P,"-").concat(Y),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(Y),disabled:V},l.createElement("span",null,J),G&&l.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(D,"-menu-item-remove"),onClick:function(q){q.stopPropagation(),N(q,Y)}},te||f.removeIcon||"×"))}));function M(z){for(var H=a.filter(function(G){return!G.disabled}),V=H.findIndex(function(G){return G.key===T})||0,te=H.length,Y=0;Yot?"left":"right"})}),D=re(P,2),A=D[0],O=D[1],N=B4(0,function(lt,ot){!$&&b&&b({direction:lt>ot?"top":"bottom"})}),k=re(N,2),M=k[0],L=k[1],F=l.useState([0,0]),j=re(F,2),B=j[0],z=j[1],H=l.useState([0,0]),V=re(H,2),te=V[0],Y=V[1],J=l.useState([0,0]),G=re(J,2),U=G[0],q=G[1],X=l.useState([0,0]),Q=re(X,2),ee=Q[0],oe=Q[1],le=Lme(new Map),fe=re(le,2),ce=fe[0],Te=fe[1],Se=Mme(x,ce,te[0]),ve=hh(B,$),ae=hh(te,$),ie=hh(U,$),ue=hh(ee,$),ye=veCe?Ce:lt}var we=l.useRef(null),_e=l.useState(),Ne=re(_e,2),he=Ne[0],ke=Ne[1];function xe(){ke(Date.now())}function ge(){we.current&&clearTimeout(we.current)}Dme(I,function(lt,ot){function et(bt,rt){bt(function(St){var Et=me(St+rt);return Et})}return ye?($?et(O,lt):et(L,ot),ge(),xe(),!0):!1}),l.useEffect(function(){return ge(),he&&(we.current=setTimeout(function(){ke(0)},100)),ge},[he]);var Pe=Fme(Se,Ee,$?A:M,ae,ie,ue,Z(Z({},e),{},{tabs:x})),Ve=re(Pe,2),Ae=Ve[0],be=Ve[1],Oe=Wt(function(){var lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i,ot=Se.get(lt)||{width:0,height:0,left:0,right:0,top:0};if($){var et=A;s?ot.rightA+Ee&&(et=ot.right+ot.width-Ee):ot.left<-A?et=-ot.left:ot.left+ot.width>-A+Ee&&(et=-(ot.left+ot.width-Ee)),L(0),O(me(et))}else{var bt=M;ot.top<-M?bt=-ot.top:ot.top+ot.height>-M+Ee&&(bt=-(ot.top+ot.height-Ee)),O(0),L(me(bt))}}),Fe={};f==="top"||f==="bottom"?Fe[s?"marginRight":"marginLeft"]=p:Fe.marginTop=p;var Ke=x.map(function(lt,ot){var et=lt.key;return l.createElement(Hme,{id:a,prefixCls:v,key:et,tab:lt,style:ot===0?void 0:Fe,closable:lt.closable,editable:u,active:et===i,renderWrapper:g,removeAriaLabel:d==null?void 0:d.removeAriaLabel,onClick:function(rt){h(et,rt)},onFocus:function(){Oe(et),xe(),I.current&&(s||(I.current.scrollLeft=0),I.current.scrollTop=0)}})}),He=function(){return Te(function(){var ot,et=new Map,bt=(ot=T.current)===null||ot===void 0?void 0:ot.getBoundingClientRect();return x.forEach(function(rt){var St,Et=rt.key,tt=(St=T.current)===null||St===void 0?void 0:St.querySelector('[data-node-key="'.concat(WW(Et),'"]'));if(tt){var at=Ume(tt,bt),Ye=re(at,4),Ge=Ye[0],yt=Ye[1],Tt=Ye[2],Pt=Ye[3];et.set(Et,{width:Ge,height:yt,left:Tt,top:Pt})}}),et})};l.useEffect(function(){He()},[x.map(function(lt){return lt.key}).join("_")]);var ze=VW(function(){var lt=du(C),ot=du(w),et=du(E);z([lt[0]-ot[0]-et[0],lt[1]-ot[1]-et[1]]);var bt=du(_);q(bt);var rt=du(R);oe(rt);var St=du(T);Y([St[0]-bt[0],St[1]-bt[1]]),He()}),Ze=x.slice(0,Ae),je=x.slice(be+1),Je=[].concat(De(Ze),De(je)),mt=Se.get(i),ft=Ame({activeTabOffset:mt,horizontal:$,indicator:y,rtl:s}),qe=ft.style;l.useEffect(function(){Oe()},[i,Ie,Ce,V4(mt),V4(Se),$]),l.useEffect(function(){ze()},[s]);var We=!!Je.length,Qe="".concat(v,"-nav-wrap"),ct,Rt,$t,vt;return $?s?(Rt=A>0,ct=A!==Ce):(ct=A<0,Rt=A!==Ie):($t=M<0,vt=M!==Ie),l.createElement(sa,{onResize:ze},l.createElement("div",{ref:$s(t,C),role:"tablist",className:ne("".concat(v,"-nav"),n),style:r,onKeyDown:function(){xe()}},l.createElement(W4,{ref:w,position:"left",extra:c,prefixCls:v}),l.createElement(sa,{onResize:ze},l.createElement("div",{className:ne(Qe,W(W(W(W({},"".concat(Qe,"-ping-left"),ct),"".concat(Qe,"-ping-right"),Rt),"".concat(Qe,"-ping-top"),$t),"".concat(Qe,"-ping-bottom"),vt)),ref:I},l.createElement(sa,{onResize:ze},l.createElement("div",{ref:T,className:"".concat(v,"-nav-list"),style:{transform:"translate(".concat(A,"px, ").concat(M,"px)"),transition:he?"none":void 0}},Ke,l.createElement(qW,{ref:_,prefixCls:v,locale:d,editable:u,style:Z(Z({},Ke.length===0?void 0:Fe),{},{visibility:We?"hidden":null})}),l.createElement("div",{className:ne("".concat(v,"-ink-bar"),W({},"".concat(v,"-ink-bar-animated"),o.inkBar)),style:qe}))))),l.createElement(zme,pe({},e,{removeAriaLabel:d==null?void 0:d.removeAriaLabel,ref:R,prefixCls:v,tabs:Je,className:!We&&Me,tabMoving:!!he})),l.createElement(W4,{ref:E,position:"right",extra:c,prefixCls:v})))}),KW=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,o=e.id,i=e.active,s=e.tabKey,c=e.children;return l.createElement("div",{id:o&&"".concat(o,"-panel-").concat(s),role:"tabpanel",tabIndex:i?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(s),"aria-hidden":!i,style:a,className:ne(n,i&&"".concat(n,"-active"),r),ref:t},c)}),Vme=["renderTabBar"],Wme=["label","key"],Gme=function(t){var n=t.renderTabBar,r=xt(t,Vme),a=l.useContext(Q0),o=a.tabs;if(n){var i=Z(Z({},r),{},{panes:o.map(function(s){var c=s.label,u=s.key,d=xt(s,Wme);return l.createElement(KW,pe({tab:c,key:u,tabKey:u},d))})});return n(i,G4)}return l.createElement(G4,r)},qme=["key","forceRender","style","className","destroyInactiveTabPane"],Kme=function(t){var n=t.id,r=t.activeKey,a=t.animated,o=t.tabPosition,i=t.destroyInactiveTabPane,s=l.useContext(Q0),c=s.prefixCls,u=s.tabs,d=a.tabPane,f="".concat(c,"-tabpane");return l.createElement("div",{className:ne("".concat(c,"-content-holder"))},l.createElement("div",{className:ne("".concat(c,"-content"),"".concat(c,"-content-").concat(o),W({},"".concat(c,"-content-animated"),d))},u.map(function(p){var g=p.key,h=p.forceRender,b=p.style,y=p.className,S=p.destroyInactiveTabPane,v=xt(p,qme),x=g===r;return l.createElement(Qr,pe({key:g,visible:x,forceRender:h,removeOnLeave:!!(i||S),leavedClassName:"".concat(f,"-hidden")},a.tabPaneMotion),function(C,w){var E=C.style,I=C.className;return l.createElement(KW,pe({},v,{prefixCls:f,id:n,tabKey:g,animated:d,active:x,style:Z(Z({},b),E),className:ne(y,I),ref:w}))})})))};function Yme(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=Z({inkBar:!0},ht(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var Xme=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],q4=0,Zme=l.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,a=r===void 0?"rc-tabs":r,o=e.className,i=e.items,s=e.direction,c=e.activeKey,u=e.defaultActiveKey,d=e.editable,f=e.animated,p=e.tabPosition,g=p===void 0?"top":p,h=e.tabBarGutter,b=e.tabBarStyle,y=e.tabBarExtraContent,S=e.locale,v=e.more,x=e.destroyInactiveTabPane,C=e.renderTabBar,w=e.onChange,E=e.onTabClick,I=e.onTabScroll,T=e.getPopupContainer,R=e.popupClassName,_=e.indicator,$=xt(e,Xme),P=l.useMemo(function(){return(i||[]).filter(function(ee){return ee&&ht(ee)==="object"&&"key"in ee})},[i]),D=s==="rtl",A=Yme(f),O=l.useState(!1),N=re(O,2),k=N[0],M=N[1];l.useEffect(function(){M(k0())},[]);var L=sn(function(){var ee;return(ee=P[0])===null||ee===void 0?void 0:ee.key},{value:c,defaultValue:u}),F=re(L,2),j=F[0],B=F[1],z=l.useState(function(){return P.findIndex(function(ee){return ee.key===j})}),H=re(z,2),V=H[0],te=H[1];l.useEffect(function(){var ee=P.findIndex(function(le){return le.key===j});if(ee===-1){var oe;ee=Math.max(0,Math.min(V,P.length-1)),B((oe=P[ee])===null||oe===void 0?void 0:oe.key)}te(ee)},[P.map(function(ee){return ee.key}).join("_"),j,V]);var Y=sn(null,{value:n}),J=re(Y,2),G=J[0],U=J[1];l.useEffect(function(){n||(U("rc-tabs-".concat(q4)),q4+=1)},[]);function q(ee,oe){E==null||E(ee,oe);var le=ee!==j;B(ee),le&&(w==null||w(ee))}var X={id:G,activeKey:j,animated:A,tabPosition:g,rtl:D,mobile:k},Q=Z(Z({},X),{},{editable:d,locale:S,more:v,tabBarGutter:h,onTabClick:q,onTabScroll:I,extra:y,style:b,panes:null,getPopupContainer:T,popupClassName:R,indicator:_});return l.createElement(Q0.Provider,{value:{tabs:P,prefixCls:a}},l.createElement("div",pe({ref:t,id:n,className:ne(a,"".concat(a,"-").concat(g),W(W(W({},"".concat(a,"-mobile"),k),"".concat(a,"-editable"),d),"".concat(a,"-rtl"),D),o)},$),l.createElement(Gme,pe({},Q,{renderTabBar:C})),l.createElement(Kme,pe({destroyInactiveTabPane:x},X,{animated:A}))))});const Qme={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Jme(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},Qme),{motionName:xa(e,"switch")})),n}var ehe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);at)}function nhe(e,t){if(e)return e;const n=vr(t).map(r=>{if(l.isValidElement(r)){const{key:a,props:o}=r,i=o||{},{tab:s}=i,c=ehe(i,["tab"]);return Object.assign(Object.assign({key:String(a)},c),{label:s})}return null});return the(n)}const rhe=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[Vi(e,"slide-up"),Vi(e,"slide-down")]]},ahe=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:a,colorBorderSecondary:o,itemSelectedColor:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${K(e.lineWidth)} ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:i,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:K(a)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${K(e.borderRadiusLG)} ${K(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${K(e.borderRadiusLG)} ${K(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:K(a)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${K(e.borderRadiusLG)} 0 0 ${K(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${K(e.borderRadiusLG)} ${K(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},ohe=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},nn(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${K(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},xo),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${K(e.paddingXXS)} ${K(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},ihe=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:a,verticalItemPadding:o,verticalItemMargin:i,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:a,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${K(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, + &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:$0},[`&${n}-slide-up-leave ${t}-panel-container`]:{pointerEvents:"none"},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft, + &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:k0},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft, + &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:O0},[`${t}-panel > ${t}-time-panel`]:{paddingTop:I},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(a).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${C} ease-out`},SV(e,R,k)),{"&:before":{insetInlineStart:e.calc(a).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:R,borderRadius:_,boxShadow:$,transition:`margin ${C}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:O,maxWidth:N,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:y,borderInlineEnd:`${K(o)} ${i} ${D}`,li:Object.assign(Object.assign({},wo),{borderRadius:P,paddingInline:y,paddingBlock:e.calc(h).sub(M).div(2).equal(),cursor:"pointer",transition:`all ${C}`,"+ li":{marginTop:S},"&:hover":{background:A}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:s}}}}),"&-dropdown-range":{padding:`${K(e.calc(T).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},Wi(e,"slide-up"),Wi(e,"slide-down"),wd(e,"move-up"),wd(e,"move-down")]},HW=on("DatePicker",e=>{const t=zt(cm(e),Ime(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Eme(t),Ome(t),_me(t),$me(t),xme(t),Yg(e,{focusElCls:`${e.componentCls}-focused`})]},Rme);var Nme={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"},kme=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Nme}))},UW=l.forwardRef(kme);const J0=l.createContext(null);var Ame=function(t){var n=t.activeTabOffset,r=t.horizontal,a=t.rtl,o=t.indicator,i=o===void 0?{}:o,s=i.size,c=i.align,u=c===void 0?"center":c,d=l.useState(),f=re(d,2),p=f[0],g=f[1],h=l.useRef(),b=se.useCallback(function(S){return typeof s=="function"?s(S):typeof s=="number"?s:S},[s]);function y(){Ut.cancel(h.current)}return l.useEffect(function(){var S={};if(n)if(r){S.width=b(n.width);var v=a?"right":"left";u==="start"&&(S[v]=n[v]),u==="center"&&(S[v]=n[v]+n.width/2,S.transform=a?"translateX(50%)":"translateX(-50%)"),u==="end"&&(S[v]=n[v]+n.width,S.transform="translateX(-100%)")}else S.height=b(n.height),u==="start"&&(S.top=n.top),u==="center"&&(S.top=n.top+n.height/2,S.transform="translateY(-50%)"),u==="end"&&(S.top=n.top+n.height,S.transform="translateY(-100%)");return y(),h.current=Ut(function(){g(S)}),y},[n,r,a,u,b]),{style:p}},j4={width:0,height:0,left:0,top:0};function Mme(e,t,n){return l.useMemo(function(){for(var r,a=new Map,o=t.get((r=e[0])===null||r===void 0?void 0:r.key)||j4,i=o.left+o.width,s=0;sA?(P=_,E.current="x"):(P=$,E.current="y"),t(-P,-P)&&R.preventDefault()}var T=l.useRef(null);T.current={onTouchStart:x,onTouchMove:w,onTouchEnd:C,onWheel:I},l.useEffect(function(){function R(D){T.current.onTouchStart(D)}function _(D){T.current.onTouchMove(D)}function $(D){T.current.onTouchEnd(D)}function P(D){T.current.onWheel(D)}return document.addEventListener("touchmove",_,{passive:!1}),document.addEventListener("touchend",$,{passive:!0}),e.current.addEventListener("touchstart",R,{passive:!0}),e.current.addEventListener("wheel",P,{passive:!1}),function(){document.removeEventListener("touchmove",_),document.removeEventListener("touchend",$)}},[])}function VW(e){var t=l.useState(0),n=re(t,2),r=n[0],a=n[1],o=l.useRef(0),i=l.useRef();return i.current=e,cc(function(){var s;(s=i.current)===null||s===void 0||s.call(i)},[r]),function(){o.current===r&&(o.current+=1,a(o.current))}}function Lme(e){var t=l.useRef([]),n=l.useState({}),r=re(n,2),a=r[1],o=l.useRef(typeof e=="function"?e():e),i=VW(function(){var c=o.current;t.current.forEach(function(u){c=u(c)}),t.current=[],o.current=c,a({})});function s(c){t.current.push(c),i()}return[o.current,s]}var U4={width:0,height:0,left:0,top:0,right:0};function Fme(e,t,n,r,a,o,i){var s=i.tabs,c=i.tabPosition,u=i.rtl,d,f,p;return["top","bottom"].includes(c)?(d="width",f=u?"right":"left",p=Math.abs(n)):(d="height",f="top",p=-n),l.useMemo(function(){if(!s.length)return[0,0];for(var g=s.length,h=g,b=0;bp+t){h=b-1;break}}for(var S=0,v=g-1;v>=0;v-=1){var x=e.get(s[v].key)||U4;if(x[f]=h?[0,0]:[S,h]},[e,t,r,a,o,p,c,s.map(function(g){return g.key}).join("_"),u])}function V4(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var jme="TABS_DQ";function WW(e){return String(e).replace(/"/g,jme)}function GW(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var qW=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,a=e.locale,o=e.style;return!r||r.showAdd===!1?null:l.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:o,"aria-label":(a==null?void 0:a.addAriaLabel)||"Add tab",onClick:function(s){r.onEdit("add",{event:s})}},r.addIcon||"+")}),W4=l.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,a=e.extra;if(!a)return null;var o,i={};return mt(a)==="object"&&!l.isValidElement(a)?i=a:i.right=a,n==="right"&&(o=i.right),n==="left"&&(o=i.left),o?l.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},o):null}),Bme=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,a=e.tabs,o=e.locale,i=e.mobile,s=e.more,c=s===void 0?{}:s,u=e.style,d=e.className,f=e.editable,p=e.tabBarGutter,g=e.rtl,h=e.removeAriaLabel,b=e.onTabClick,y=e.getPopupContainer,S=e.popupClassName,v=l.useState(!1),x=re(v,2),w=x[0],C=x[1],E=l.useState(null),I=re(E,2),T=I[0],R=I[1],_=c.icon,$=_===void 0?"More":_,P="".concat(r,"-more-popup"),D="".concat(n,"-dropdown"),A=T!==null?"".concat(P,"-").concat(T):null,O=o==null?void 0:o.dropdownAriaLabel;function N(z,H){z.preventDefault(),z.stopPropagation(),f.onEdit("remove",{key:H,event:z})}var k=l.createElement(Yd,{onClick:function(H){var V=H.key,te=H.domEvent;b(V,te),C(!1)},prefixCls:"".concat(D,"-menu"),id:P,tabIndex:-1,role:"listbox","aria-activedescendant":A,selectedKeys:[T],"aria-label":O!==void 0?O:"expanded dropdown"},a.map(function(z){var H=z.closable,V=z.disabled,te=z.closeIcon,Y=z.key,J=z.label,G=GW(H,te,f,V);return l.createElement(im,{key:Y,id:"".concat(P,"-").concat(Y),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(Y),disabled:V},l.createElement("span",null,J),G&&l.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(D,"-menu-item-remove"),onClick:function(q){q.stopPropagation(),N(q,Y)}},te||f.removeIcon||"×"))}));function M(z){for(var H=a.filter(function(G){return!G.disabled}),V=H.findIndex(function(G){return G.key===T})||0,te=H.length,Y=0;Yot?"left":"right"})}),D=re(P,2),A=D[0],O=D[1],N=B4(0,function(lt,ot){!$&&b&&b({direction:lt>ot?"top":"bottom"})}),k=re(N,2),M=k[0],L=k[1],F=l.useState([0,0]),j=re(F,2),B=j[0],z=j[1],H=l.useState([0,0]),V=re(H,2),te=V[0],Y=V[1],J=l.useState([0,0]),G=re(J,2),U=G[0],q=G[1],X=l.useState([0,0]),Q=re(X,2),ee=Q[0],oe=Q[1],le=Lme(new Map),fe=re(le,2),ce=fe[0],Ie=fe[1],be=Mme(x,ce,te[0]),he=bh(B,$),ae=bh(te,$),ie=bh(U,$),ue=bh(ee,$),xe=heDe?De:lt}var ve=l.useRef(null),$e=l.useState(),Ee=re($e,2),ge=Ee[0],Ne=Ee[1];function Re(){Ne(Date.now())}function me(){ve.current&&clearTimeout(ve.current)}Dme(I,function(lt,ot){function et(vt,rt){vt(function(St){var Et=ye(St+rt);return Et})}return xe?($?et(O,lt):et(L,ot),me(),Re(),!0):!1}),l.useEffect(function(){return me(),ge&&(ve.current=setTimeout(function(){Ne(0)},100)),me},[ge]);var _e=Fme(be,we,$?A:M,ae,ie,ue,Z(Z({},e),{},{tabs:x})),Ze=re(_e,2),Oe=Ze[0],Se=Ze[1],Ae=Wt(function(){var lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i,ot=be.get(lt)||{width:0,height:0,left:0,right:0,top:0};if($){var et=A;s?ot.rightA+we&&(et=ot.right+ot.width-we):ot.left<-A?et=-ot.left:ot.left+ot.width>-A+we&&(et=-(ot.left+ot.width-we)),L(0),O(ye(et))}else{var vt=M;ot.top<-M?vt=-ot.top:ot.top+ot.height>-M+we&&(vt=-(ot.top+ot.height-we)),O(0),L(ye(vt))}}),Fe={};f==="top"||f==="bottom"?Fe[s?"marginRight":"marginLeft"]=p:Fe.marginTop=p;var Ve=x.map(function(lt,ot){var et=lt.key;return l.createElement(Hme,{id:a,prefixCls:v,key:et,tab:lt,style:ot===0?void 0:Fe,closable:lt.closable,editable:u,active:et===i,renderWrapper:g,removeAriaLabel:d==null?void 0:d.removeAriaLabel,onClick:function(rt){h(et,rt)},onFocus:function(){Ae(et),Re(),I.current&&(s||(I.current.scrollLeft=0),I.current.scrollTop=0)}})}),He=function(){return Ie(function(){var ot,et=new Map,vt=(ot=T.current)===null||ot===void 0?void 0:ot.getBoundingClientRect();return x.forEach(function(rt){var St,Et=rt.key,tt=(St=T.current)===null||St===void 0?void 0:St.querySelector('[data-node-key="'.concat(WW(Et),'"]'));if(tt){var at=Ume(tt,vt),Ke=re(at,4),Ge=Ke[0],bt=Ke[1],Tt=Ke[2],Pt=Ke[3];et.set(Et,{width:Ge,height:bt,left:Tt,top:Pt})}}),et})};l.useEffect(function(){He()},[x.map(function(lt){return lt.key}).join("_")]);var ze=VW(function(){var lt=du(w),ot=du(C),et=du(E);z([lt[0]-ot[0]-et[0],lt[1]-ot[1]-et[1]]);var vt=du(_);q(vt);var rt=du(R);oe(rt);var St=du(T);Y([St[0]-vt[0],St[1]-vt[1]]),He()}),Xe=x.slice(0,Oe),je=x.slice(Se+1),Je=[].concat(Pe(Xe),Pe(je)),gt=be.get(i),ft=Ame({activeTabOffset:gt,horizontal:$,indicator:y,rtl:s}),qe=ft.style;l.useEffect(function(){Ae()},[i,Ce,De,V4(gt),V4(be),$]),l.useEffect(function(){ze()},[s]);var We=!!Je.length,Qe="".concat(v,"-nav-wrap"),ut,Rt,$t,ht;return $?s?(Rt=A>0,ut=A!==De):(ut=A<0,Rt=A!==Ce):($t=M<0,ht=M!==Ce),l.createElement(ca,{onResize:ze},l.createElement("div",{ref:Os(t,w),role:"tablist",className:ne("".concat(v,"-nav"),n),style:r,onKeyDown:function(){Re()}},l.createElement(W4,{ref:C,position:"left",extra:c,prefixCls:v}),l.createElement(ca,{onResize:ze},l.createElement("div",{className:ne(Qe,W(W(W(W({},"".concat(Qe,"-ping-left"),ut),"".concat(Qe,"-ping-right"),Rt),"".concat(Qe,"-ping-top"),$t),"".concat(Qe,"-ping-bottom"),ht)),ref:I},l.createElement(ca,{onResize:ze},l.createElement("div",{ref:T,className:"".concat(v,"-nav-list"),style:{transform:"translate(".concat(A,"px, ").concat(M,"px)"),transition:ge?"none":void 0}},Ve,l.createElement(qW,{ref:_,prefixCls:v,locale:d,editable:u,style:Z(Z({},Ve.length===0?void 0:Fe),{},{visibility:We?"hidden":null})}),l.createElement("div",{className:ne("".concat(v,"-ink-bar"),W({},"".concat(v,"-ink-bar-animated"),o.inkBar)),style:qe}))))),l.createElement(zme,pe({},e,{removeAriaLabel:d==null?void 0:d.removeAriaLabel,ref:R,prefixCls:v,tabs:Je,className:!We&&Me,tabMoving:!!ge})),l.createElement(W4,{ref:E,position:"right",extra:c,prefixCls:v})))}),KW=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,o=e.id,i=e.active,s=e.tabKey,c=e.children;return l.createElement("div",{id:o&&"".concat(o,"-panel-").concat(s),role:"tabpanel",tabIndex:i?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(s),"aria-hidden":!i,style:a,className:ne(n,i&&"".concat(n,"-active"),r),ref:t},c)}),Vme=["renderTabBar"],Wme=["label","key"],Gme=function(t){var n=t.renderTabBar,r=xt(t,Vme),a=l.useContext(J0),o=a.tabs;if(n){var i=Z(Z({},r),{},{panes:o.map(function(s){var c=s.label,u=s.key,d=xt(s,Wme);return l.createElement(KW,pe({tab:c,key:u,tabKey:u},d))})});return n(i,G4)}return l.createElement(G4,r)},qme=["key","forceRender","style","className","destroyInactiveTabPane"],Kme=function(t){var n=t.id,r=t.activeKey,a=t.animated,o=t.tabPosition,i=t.destroyInactiveTabPane,s=l.useContext(J0),c=s.prefixCls,u=s.tabs,d=a.tabPane,f="".concat(c,"-tabpane");return l.createElement("div",{className:ne("".concat(c,"-content-holder"))},l.createElement("div",{className:ne("".concat(c,"-content"),"".concat(c,"-content-").concat(o),W({},"".concat(c,"-content-animated"),d))},u.map(function(p){var g=p.key,h=p.forceRender,b=p.style,y=p.className,S=p.destroyInactiveTabPane,v=xt(p,qme),x=g===r;return l.createElement(ea,pe({key:g,visible:x,forceRender:h,removeOnLeave:!!(i||S),leavedClassName:"".concat(f,"-hidden")},a.tabPaneMotion),function(w,C){var E=w.style,I=w.className;return l.createElement(KW,pe({},v,{prefixCls:f,id:n,tabKey:g,animated:d,active:x,style:Z(Z({},b),E),className:ne(y,I),ref:C}))})})))};function Yme(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=Z({inkBar:!0},mt(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var Xme=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],q4=0,Zme=l.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,a=r===void 0?"rc-tabs":r,o=e.className,i=e.items,s=e.direction,c=e.activeKey,u=e.defaultActiveKey,d=e.editable,f=e.animated,p=e.tabPosition,g=p===void 0?"top":p,h=e.tabBarGutter,b=e.tabBarStyle,y=e.tabBarExtraContent,S=e.locale,v=e.more,x=e.destroyInactiveTabPane,w=e.renderTabBar,C=e.onChange,E=e.onTabClick,I=e.onTabScroll,T=e.getPopupContainer,R=e.popupClassName,_=e.indicator,$=xt(e,Xme),P=l.useMemo(function(){return(i||[]).filter(function(ee){return ee&&mt(ee)==="object"&&"key"in ee})},[i]),D=s==="rtl",A=Yme(f),O=l.useState(!1),N=re(O,2),k=N[0],M=N[1];l.useEffect(function(){M(A0())},[]);var L=sn(function(){var ee;return(ee=P[0])===null||ee===void 0?void 0:ee.key},{value:c,defaultValue:u}),F=re(L,2),j=F[0],B=F[1],z=l.useState(function(){return P.findIndex(function(ee){return ee.key===j})}),H=re(z,2),V=H[0],te=H[1];l.useEffect(function(){var ee=P.findIndex(function(le){return le.key===j});if(ee===-1){var oe;ee=Math.max(0,Math.min(V,P.length-1)),B((oe=P[ee])===null||oe===void 0?void 0:oe.key)}te(ee)},[P.map(function(ee){return ee.key}).join("_"),j,V]);var Y=sn(null,{value:n}),J=re(Y,2),G=J[0],U=J[1];l.useEffect(function(){n||(U("rc-tabs-".concat(q4)),q4+=1)},[]);function q(ee,oe){E==null||E(ee,oe);var le=ee!==j;B(ee),le&&(C==null||C(ee))}var X={id:G,activeKey:j,animated:A,tabPosition:g,rtl:D,mobile:k},Q=Z(Z({},X),{},{editable:d,locale:S,more:v,tabBarGutter:h,onTabClick:q,onTabScroll:I,extra:y,style:b,panes:null,getPopupContainer:T,popupClassName:R,indicator:_});return l.createElement(J0.Provider,{value:{tabs:P,prefixCls:a}},l.createElement("div",pe({ref:t,id:n,className:ne(a,"".concat(a,"-").concat(g),W(W(W({},"".concat(a,"-mobile"),k),"".concat(a,"-editable"),d),"".concat(a,"-rtl"),D),o)},$),l.createElement(Gme,pe({},Q,{renderTabBar:w})),l.createElement(Kme,pe({destroyInactiveTabPane:x},X,{animated:A}))))});const Qme={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Jme(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},Qme),{motionName:Ca(e,"switch")})),n}var ehe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);at)}function nhe(e,t){if(e)return e;const n=vr(t).map(r=>{if(l.isValidElement(r)){const{key:a,props:o}=r,i=o||{},{tab:s}=i,c=ehe(i,["tab"]);return Object.assign(Object.assign({key:String(a)},c),{label:s})}return null});return the(n)}const rhe=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[Wi(e,"slide-up"),Wi(e,"slide-down")]]},ahe=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:a,colorBorderSecondary:o,itemSelectedColor:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${K(e.lineWidth)} ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:i,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:K(a)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${K(e.borderRadiusLG)} ${K(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${K(e.borderRadiusLG)} ${K(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:K(a)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${K(e.borderRadiusLG)} 0 0 ${K(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${K(e.borderRadiusLG)} ${K(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},ohe=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},nn(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${K(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},wo),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${K(e.paddingXXS)} ${K(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},ihe=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:a,verticalItemPadding:o,verticalItemMargin:i,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:a,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${K(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav, - > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:o,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:i},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:K(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},she=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:a,horizontalItemPaddingLG:o}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${K(e.borderRadius)} ${K(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${K(e.borderRadius)} ${K(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${K(e.borderRadius)} ${K(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${K(e.borderRadius)} 0 0 ${K(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},lhe=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:a,tabsHorizontalItemMargin:o,horizontalItemPadding:i,itemSelectedColor:s,itemColor:c}=e,u=`${t}-tab`;return{[u]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:i,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},zi(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${u}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${u}-active ${u}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${u}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${u}-disabled ${u}-btn, &${u}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${u}-remove ${a}`]:{margin:0},[`${a}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${u} + ${u}`]:{margin:{_skip_check_:!0,value:o}}}},che=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:a,calc:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:K(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:K(e.marginXS)},marginLeft:{_skip_check_:!0,value:K(o(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:a},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},uhe=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:a,itemHoverColor:o,itemActiveColor:i,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},nn(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-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 ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:a},padding:`0 ${K(e.paddingXS)}`,background:"transparent",border:`${K(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${K(e.borderRadiusLG)} ${K(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:o},"&:active, &:focus:not(:focus-visible)":{color:i}},zi(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),lhe(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},dhe=e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},fhe=on("Tabs",e=>{const t=zt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${K(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${K(e.horizontalItemGutter)}`});return[she(t),che(t),ihe(t),ohe(t),ahe(t),uhe(t),rhe(t)]},dhe),phe=()=>null;var ghe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var t,n,r,a,o,i,s,c,u,d,f;const{type:p,className:g,rootClassName:h,size:b,onEdit:y,hideAdd:S,centered:v,addIcon:x,removeIcon:C,moreIcon:w,more:E,popupClassName:I,children:T,items:R,animated:_,style:$,indicatorSize:P,indicator:D}=e,A=ghe(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:O}=A,{direction:N,tabs:k,getPrefixCls:M,getPopupContainer:L}=l.useContext(st),F=M("tabs",O),j=Un(F),[B,z,H]=fhe(F,j);let V;p==="editable-card"&&(V={onEdit:(X,Q)=>{let{key:ee,event:oe}=Q;y==null||y(X==="add"?oe:ee,X)},removeIcon:(t=C??(k==null?void 0:k.removeIcon))!==null&&t!==void 0?t:l.createElement(Jr,null),addIcon:(x??(k==null?void 0:k.addIcon))||l.createElement(UW,null),showAdd:S!==!0});const te=M(),Y=Er(b),J=nhe(R,T),G=Jme(F,_),U=Object.assign(Object.assign({},k==null?void 0:k.style),$),q={align:(n=D==null?void 0:D.align)!==null&&n!==void 0?n:(r=k==null?void 0:k.indicator)===null||r===void 0?void 0:r.align,size:(s=(o=(a=D==null?void 0:D.size)!==null&&a!==void 0?a:P)!==null&&o!==void 0?o:(i=k==null?void 0:k.indicator)===null||i===void 0?void 0:i.size)!==null&&s!==void 0?s:k==null?void 0:k.indicatorSize};return B(l.createElement(Zme,Object.assign({direction:N,getPopupContainer:L},A,{items:J,className:ne({[`${F}-${Y}`]:Y,[`${F}-card`]:["card","editable-card"].includes(p),[`${F}-editable-card`]:p==="editable-card",[`${F}-centered`]:v},k==null?void 0:k.className,g,h,z,H,j),popupClassName:ne(I,z,H,j),style:U,editable:V,more:Object.assign({icon:(f=(d=(u=(c=k==null?void 0:k.more)===null||c===void 0?void 0:c.icon)!==null&&u!==void 0?u:k==null?void 0:k.moreIcon)!==null&&d!==void 0?d:w)!==null&&f!==void 0?f:l.createElement(wO,null),transitionName:`${te}-slide-up`},E),prefixCls:F,animated:G,indicator:q})))};DO.TabPane=phe;var mhe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{prefixCls:t,className:n,hoverable:r=!0}=e,a=mhe(e,["prefixCls","className","hoverable"]);const{getPrefixCls:o}=l.useContext(st),i=o("card",t),s=ne(`${i}-grid`,n,{[`${i}-grid-hoverable`]:r});return l.createElement("div",Object.assign({},a,{className:s}))},hhe=e=>{const{antCls:t,componentCls:n,headerHeight:r,cardPaddingBase:a,tabsMarginBottom:o}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${K(a)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${K(e.borderRadiusLG)} ${K(e.borderRadiusLG)} 0 0`},mi()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},xo),{[` + > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:o,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:i},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:K(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},she=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:a,horizontalItemPaddingLG:o}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${K(e.borderRadius)} ${K(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${K(e.borderRadius)} ${K(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${K(e.borderRadius)} ${K(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${K(e.borderRadius)} 0 0 ${K(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},lhe=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:a,tabsHorizontalItemMargin:o,horizontalItemPadding:i,itemSelectedColor:s,itemColor:c}=e,u=`${t}-tab`;return{[u]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:i,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},Hi(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${u}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${u}-active ${u}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${u}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${u}-disabled ${u}-btn, &${u}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${u}-remove ${a}`]:{margin:0},[`${a}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${u} + ${u}`]:{margin:{_skip_check_:!0,value:o}}}},che=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:a,calc:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:K(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:K(e.marginXS)},marginLeft:{_skip_check_:!0,value:K(o(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:a},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},uhe=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:a,itemHoverColor:o,itemActiveColor:i,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},nn(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-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 ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:a},padding:`0 ${K(e.paddingXS)}`,background:"transparent",border:`${K(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${K(e.borderRadiusLG)} ${K(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:o},"&:active, &:focus:not(:focus-visible)":{color:i}},Hi(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),lhe(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},dhe=e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},fhe=on("Tabs",e=>{const t=zt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${K(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${K(e.horizontalItemGutter)}`});return[she(t),che(t),ihe(t),ohe(t),ahe(t),uhe(t),rhe(t)]},dhe),phe=()=>null;var ghe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var t,n,r,a,o,i,s,c,u,d,f;const{type:p,className:g,rootClassName:h,size:b,onEdit:y,hideAdd:S,centered:v,addIcon:x,removeIcon:w,moreIcon:C,more:E,popupClassName:I,children:T,items:R,animated:_,style:$,indicatorSize:P,indicator:D}=e,A=ghe(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:O}=A,{direction:N,tabs:k,getPrefixCls:M,getPopupContainer:L}=l.useContext(st),F=M("tabs",O),j=Un(F),[B,z,H]=fhe(F,j);let V;p==="editable-card"&&(V={onEdit:(X,Q)=>{let{key:ee,event:oe}=Q;y==null||y(X==="add"?oe:ee,X)},removeIcon:(t=w??(k==null?void 0:k.removeIcon))!==null&&t!==void 0?t:l.createElement(ta,null),addIcon:(x??(k==null?void 0:k.addIcon))||l.createElement(UW,null),showAdd:S!==!0});const te=M(),Y=Er(b),J=nhe(R,T),G=Jme(F,_),U=Object.assign(Object.assign({},k==null?void 0:k.style),$),q={align:(n=D==null?void 0:D.align)!==null&&n!==void 0?n:(r=k==null?void 0:k.indicator)===null||r===void 0?void 0:r.align,size:(s=(o=(a=D==null?void 0:D.size)!==null&&a!==void 0?a:P)!==null&&o!==void 0?o:(i=k==null?void 0:k.indicator)===null||i===void 0?void 0:i.size)!==null&&s!==void 0?s:k==null?void 0:k.indicatorSize};return B(l.createElement(Zme,Object.assign({direction:N,getPopupContainer:L},A,{items:J,className:ne({[`${F}-${Y}`]:Y,[`${F}-card`]:["card","editable-card"].includes(p),[`${F}-editable-card`]:p==="editable-card",[`${F}-centered`]:v},k==null?void 0:k.className,g,h,z,H,j),popupClassName:ne(I,z,H,j),style:U,editable:V,more:Object.assign({icon:(f=(d=(u=(c=k==null?void 0:k.more)===null||c===void 0?void 0:c.icon)!==null&&u!==void 0?u:k==null?void 0:k.moreIcon)!==null&&d!==void 0?d:C)!==null&&f!==void 0?f:l.createElement(CO,null),transitionName:`${te}-slide-up`},E),prefixCls:F,animated:G,indicator:q})))};LO.TabPane=phe;var mhe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{prefixCls:t,className:n,hoverable:r=!0}=e,a=mhe(e,["prefixCls","className","hoverable"]);const{getPrefixCls:o}=l.useContext(st),i=o("card",t),s=ne(`${i}-grid`,n,{[`${i}-grid-hoverable`]:r});return l.createElement("div",Object.assign({},a,{className:s}))},hhe=e=>{const{antCls:t,componentCls:n,headerHeight:r,cardPaddingBase:a,tabsMarginBottom:o}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${K(a)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${K(e.borderRadiusLG)} ${K(e.borderRadiusLG)} 0 0`},hi()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},wo),{[` > ${n}-typography, > ${n}-typography-edit-content `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:o,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},vhe=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:a}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:` @@ -318,21 +318,21 @@ html body { ${K(a)} ${K(a)} 0 0 ${n}, ${K(a)} 0 0 0 ${n} inset, 0 ${K(a)} 0 0 ${n} inset; - `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},bhe=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:a,colorBorderSecondary:o,actionsBg:i}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:i,borderTop:`${K(e.lineWidth)} ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${K(e.borderRadiusLG)} ${K(e.borderRadiusLG)}`},mi()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:K(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:a,lineHeight:K(e.calc(a).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${K(e.lineWidth)} ${e.lineType} ${o}`}}})},yhe=e=>Object.assign(Object.assign({margin:`${K(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},mi()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},xo),"&-description":{color:e.colorTextDescription}}),She=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${K(n)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${K(e.padding)} ${K(n)}`}}},xhe=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},whe=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:a,boxShadowTertiary:o,cardPaddingBase:i,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},nn(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:o},[`${t}-head`]:hhe(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:i,borderRadius:`0 0 ${K(e.borderRadiusLG)} ${K(e.borderRadiusLG)}`},mi()),[`${t}-grid`]:vhe(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${K(e.borderRadiusLG)} ${K(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:bhe(e),[`${t}-meta`]:yhe(e)}),[`${t}-bordered`]:{border:`${K(e.lineWidth)} ${e.lineType} ${a}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${K(e.borderRadiusLG)} ${K(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:She(e),[`${t}-loading`]:xhe(e),[`${t}-rtl`]:{direction:"rtl"}}},Che=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:r,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${K(n)}`,fontSize:a,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},Ehe=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText}),Ihe=on("Card",e=>{const t=zt(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[whe(t),Che(t)]},Ehe);var K4=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return l.createElement("ul",{className:t,style:r},n.map((a,o)=>{const i=`action-${o}`;return l.createElement("li",{style:{width:`${100/n.length}%`},key:i},l.createElement("span",null,a))}))},Rhe=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:a,style:o,extra:i,headStyle:s={},bodyStyle:c={},title:u,loading:d,bordered:f=!0,size:p,type:g,cover:h,actions:b,tabList:y,children:S,activeTabKey:v,defaultActiveTabKey:x,tabBarExtraContent:C,hoverable:w,tabProps:E={},classNames:I,styles:T}=e,R=K4(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:_,direction:$,card:P}=l.useContext(st),D=ce=>{var Te;(Te=e.onTabChange)===null||Te===void 0||Te.call(e,ce)},A=ce=>{var Te;return ne((Te=P==null?void 0:P.classNames)===null||Te===void 0?void 0:Te[ce],I==null?void 0:I[ce])},O=ce=>{var Te;return Object.assign(Object.assign({},(Te=P==null?void 0:P.styles)===null||Te===void 0?void 0:Te[ce]),T==null?void 0:T[ce])},N=l.useMemo(()=>{let ce=!1;return l.Children.forEach(S,Te=>{(Te==null?void 0:Te.type)===YW&&(ce=!0)}),ce},[S]),k=_("card",n),[M,L,F]=Ihe(k),j=l.createElement(Ol,{loading:!0,active:!0,paragraph:{rows:4},title:!1},S),B=v!==void 0,z=Object.assign(Object.assign({},E),{[B?"activeKey":"defaultActiveKey"]:B?v:x,tabBarExtraContent:C});let H;const V=Er(p),te=!V||V==="default"?"large":V,Y=y?l.createElement(DO,Object.assign({size:te},z,{className:`${k}-head-tabs`,onChange:D,items:y.map(ce=>{var{tab:Te}=ce,Se=K4(ce,["tab"]);return Object.assign({label:Te},Se)})})):null;if(u||i||Y){const ce=ne(`${k}-head`,A("header")),Te=ne(`${k}-head-title`,A("title")),Se=ne(`${k}-extra`,A("extra")),ve=Object.assign(Object.assign({},s),O("header"));H=l.createElement("div",{className:ce,style:ve},l.createElement("div",{className:`${k}-head-wrapper`},u&&l.createElement("div",{className:Te,style:O("title")},u),i&&l.createElement("div",{className:Se,style:O("extra")},i)),Y)}const J=ne(`${k}-cover`,A("cover")),G=h?l.createElement("div",{className:J,style:O("cover")},h):null,U=ne(`${k}-body`,A("body")),q=Object.assign(Object.assign({},c),O("body")),X=l.createElement("div",{className:U,style:q},d?j:S),Q=ne(`${k}-actions`,A("actions")),ee=b!=null&&b.length?l.createElement(The,{actionClasses:Q,actionStyle:O("actions"),actions:b}):null,oe=On(R,["onTabChange"]),le=ne(k,P==null?void 0:P.className,{[`${k}-loading`]:d,[`${k}-bordered`]:f,[`${k}-hoverable`]:w,[`${k}-contain-grid`]:N,[`${k}-contain-tabs`]:y==null?void 0:y.length,[`${k}-${V}`]:V,[`${k}-type-${g}`]:!!g,[`${k}-rtl`]:$==="rtl"},r,a,L,F),fe=Object.assign(Object.assign({},P==null?void 0:P.style),o);return M(l.createElement("div",Object.assign({ref:t},oe,{className:le,style:fe}),H,G,X,ee))});var _he=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,className:n,avatar:r,title:a,description:o}=e,i=_he(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=l.useContext(st),c=s("card",t),u=ne(`${c}-meta`,n),d=r?l.createElement("div",{className:`${c}-meta-avatar`},r):null,f=a?l.createElement("div",{className:`${c}-meta-title`},a):null,p=o?l.createElement("div",{className:`${c}-meta-description`},o):null,g=f||p?l.createElement("div",{className:`${c}-meta-detail`},f,p):null;return l.createElement("div",Object.assign({},i,{className:u}),d,g)},Jd=Rhe;Jd.Grid=YW;Jd.Meta=$he;function Ohe(e,t,n){var r=n||{},a=r.noTrailing,o=a===void 0?!1:a,i=r.noLeading,s=i===void 0?!1:i,c=r.debounceMode,u=c===void 0?void 0:c,d,f=!1,p=0;function g(){d&&clearTimeout(d)}function h(y){var S=y||{},v=S.upcomingOnly,x=v===void 0?!1:v;g(),f=!x}function b(){for(var y=arguments.length,S=new Array(y),v=0;ve?s?(p=Date.now(),o||(d=setTimeout(u?E:w,e))):w():o!==!0&&(d=setTimeout(u?E:w,u===void 0?e-C:e))}return b.cancel=h,b}function Nhe(e,t,n){var r={},a=r.atBegin,o=a===void 0?!1:a;return Ohe(e,t,{debounceMode:o!==!1})}function Va(e,t){return e[t]}var khe=["children"];function XW(e,t){return"".concat(e,"-").concat(t)}function Ahe(e){return e&&e.type&&e.type.isTreeNode}function um(e,t){return e??t}function Cd(e){var t=e||{},n=t.title,r=t._title,a=t.key,o=t.children,i=n||"title";return{title:i,_title:r||[i],key:a||"key",children:o||"children"}}function ZW(e){function t(n){var r=vr(n);return r.map(function(a){if(!Ahe(a))return vn(!a,"Tree/TreeNode can only accept TreeNode as children."),null;var o=a.key,i=a.props,s=i.children,c=xt(i,khe),u=Z({key:o},c),d=t(s);return d.length&&(u.children=d),u}).filter(function(a){return a})}return t(e)}function c1(e,t,n){var r=Cd(n),a=r._title,o=r.key,i=r.children,s=new Set(t===!0?[]:t),c=[];function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return d.map(function(p,g){for(var h=XW(f?f.pos:"0",g),b=um(p[o],h),y,S=0;S1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,a=t.onProcessFinished,o=t.externalGetKey,i=t.childrenPropName,s=t.fieldNames,c=arguments.length>2?arguments[2]:void 0,u=o||c,d={},f={},p={posEntities:d,keyEntities:f};return n&&(p=n(p)||p),Mhe(e,function(g){var h=g.node,b=g.index,y=g.pos,S=g.key,v=g.parentPos,x=g.level,C=g.nodes,w={node:h,nodes:C,index:b,key:S,pos:y,level:x},E=um(S,y);d[y]=w,f[E]=w,w.parent=d[v],w.parent&&(w.parent.children=w.parent.children||[],w.parent.children.push(w)),r&&r(w,p)},{externalGetKey:u,childrenPropName:i,fieldNames:s}),a&&a(p),p}function xp(e,t){var n=t.expandedKeys,r=t.selectedKeys,a=t.loadedKeys,o=t.loadingKeys,i=t.checkedKeys,s=t.halfCheckedKeys,c=t.dragOverNodeKey,u=t.dropPosition,d=t.keyEntities,f=Va(d,e),p={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:a.indexOf(e)!==-1,loading:o.indexOf(e)!==-1,checked:i.indexOf(e)!==-1,halfChecked:s.indexOf(e)!==-1,pos:String(f?f.pos:""),dragOver:c===e&&u===0,dragOverGapTop:c===e&&u===-1,dragOverGapBottom:c===e&&u===1};return p}function Ir(e){var t=e.data,n=e.expanded,r=e.selected,a=e.checked,o=e.loaded,i=e.loading,s=e.halfChecked,c=e.dragOver,u=e.dragOverGapTop,d=e.dragOverGapBottom,f=e.pos,p=e.active,g=e.eventKey,h=Z(Z({},t),{},{expanded:n,selected:r,checked:a,loaded:o,loading:i,halfChecked:s,dragOver:c,dragOverGapTop:u,dragOverGapBottom:d,pos:f,active:p,key:g});return"props"in h||Object.defineProperty(h,"props",{get:function(){return vn(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),h}function QW(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function Phe(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,a=t.checkable;return!!(n||r)||a===!1}function Dhe(e,t,n,r){for(var a=new Set(e),o=new Set,i=0;i<=n;i+=1){var s=t.get(i)||new Set;s.forEach(function(f){var p=f.key,g=f.node,h=f.children,b=h===void 0?[]:h;a.has(p)&&!r(g)&&b.filter(function(y){return!r(y.node)}).forEach(function(y){a.add(y.key)})})}for(var c=new Set,u=n;u>=0;u-=1){var d=t.get(u)||new Set;d.forEach(function(f){var p=f.parent,g=f.node;if(!(r(g)||!f.parent||c.has(f.parent.key))){if(r(f.parent.node)){c.add(p.key);return}var h=!0,b=!1;(p.children||[]).filter(function(y){return!r(y.node)}).forEach(function(y){var S=y.key,v=a.has(S);h&&!v&&(h=!1),!b&&(v||o.has(S))&&(b=!0)}),h&&a.add(p.key),b&&o.add(p.key),c.add(p.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(QW(o,a))}}function Lhe(e,t,n,r,a){for(var o=new Set(e),i=new Set(t),s=0;s<=r;s+=1){var c=n.get(s)||new Set;c.forEach(function(p){var g=p.key,h=p.node,b=p.children,y=b===void 0?[]:b;!o.has(g)&&!i.has(g)&&!a(h)&&y.filter(function(S){return!a(S.node)}).forEach(function(S){o.delete(S.key)})})}i=new Set;for(var u=new Set,d=r;d>=0;d-=1){var f=n.get(d)||new Set;f.forEach(function(p){var g=p.parent,h=p.node;if(!(a(h)||!p.parent||u.has(p.parent.key))){if(a(p.parent.node)){u.add(g.key);return}var b=!0,y=!1;(g.children||[]).filter(function(S){return!a(S.node)}).forEach(function(S){var v=S.key,x=o.has(v);b&&!x&&(b=!1),!y&&(x||i.has(v))&&(y=!0)}),b||o.delete(g.key),y&&i.add(g.key),u.add(g.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(QW(i,o))}}function hs(e,t,n,r){var a=[],o;r?o=r:o=Phe;var i=new Set(e.filter(function(d){var f=!!Va(n,d);return f||a.push(d),f})),s=new Map,c=0;Object.keys(n).forEach(function(d){var f=n[d],p=f.level,g=s.get(p);g||(g=new Set,s.set(p,g)),g.add(f),c=Math.max(c,p)}),vn(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map(function(d){return"'".concat(d,"'")}).join(", ")));var u;return t===!0?u=Dhe(i,s,c,o):u=Lhe(i,t.halfCheckedKeys,s,c,o),u}const Fhe=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},nn(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},nn(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},nn(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},ws(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${K(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[` + `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},bhe=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:a,colorBorderSecondary:o,actionsBg:i}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:i,borderTop:`${K(e.lineWidth)} ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${K(e.borderRadiusLG)} ${K(e.borderRadiusLG)}`},hi()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:K(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:a,lineHeight:K(e.calc(a).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${K(e.lineWidth)} ${e.lineType} ${o}`}}})},yhe=e=>Object.assign(Object.assign({margin:`${K(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},hi()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},wo),"&-description":{color:e.colorTextDescription}}),She=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${K(n)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${K(e.padding)} ${K(n)}`}}},xhe=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},whe=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:a,boxShadowTertiary:o,cardPaddingBase:i,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},nn(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:o},[`${t}-head`]:hhe(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:i,borderRadius:`0 0 ${K(e.borderRadiusLG)} ${K(e.borderRadiusLG)}`},hi()),[`${t}-grid`]:vhe(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${K(e.borderRadiusLG)} ${K(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:bhe(e),[`${t}-meta`]:yhe(e)}),[`${t}-bordered`]:{border:`${K(e.lineWidth)} ${e.lineType} ${a}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${K(e.borderRadiusLG)} ${K(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:She(e),[`${t}-loading`]:xhe(e),[`${t}-rtl`]:{direction:"rtl"}}},Che=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:r,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${K(n)}`,fontSize:a,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},Ehe=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText}),Ihe=on("Card",e=>{const t=zt(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[whe(t),Che(t)]},Ehe);var K4=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return l.createElement("ul",{className:t,style:r},n.map((a,o)=>{const i=`action-${o}`;return l.createElement("li",{style:{width:`${100/n.length}%`},key:i},l.createElement("span",null,a))}))},Rhe=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:a,style:o,extra:i,headStyle:s={},bodyStyle:c={},title:u,loading:d,bordered:f=!0,size:p,type:g,cover:h,actions:b,tabList:y,children:S,activeTabKey:v,defaultActiveTabKey:x,tabBarExtraContent:w,hoverable:C,tabProps:E={},classNames:I,styles:T}=e,R=K4(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:_,direction:$,card:P}=l.useContext(st),D=ce=>{var Ie;(Ie=e.onTabChange)===null||Ie===void 0||Ie.call(e,ce)},A=ce=>{var Ie;return ne((Ie=P==null?void 0:P.classNames)===null||Ie===void 0?void 0:Ie[ce],I==null?void 0:I[ce])},O=ce=>{var Ie;return Object.assign(Object.assign({},(Ie=P==null?void 0:P.styles)===null||Ie===void 0?void 0:Ie[ce]),T==null?void 0:T[ce])},N=l.useMemo(()=>{let ce=!1;return l.Children.forEach(S,Ie=>{(Ie==null?void 0:Ie.type)===YW&&(ce=!0)}),ce},[S]),k=_("card",n),[M,L,F]=Ihe(k),j=l.createElement(Ol,{loading:!0,active:!0,paragraph:{rows:4},title:!1},S),B=v!==void 0,z=Object.assign(Object.assign({},E),{[B?"activeKey":"defaultActiveKey"]:B?v:x,tabBarExtraContent:w});let H;const V=Er(p),te=!V||V==="default"?"large":V,Y=y?l.createElement(LO,Object.assign({size:te},z,{className:`${k}-head-tabs`,onChange:D,items:y.map(ce=>{var{tab:Ie}=ce,be=K4(ce,["tab"]);return Object.assign({label:Ie},be)})})):null;if(u||i||Y){const ce=ne(`${k}-head`,A("header")),Ie=ne(`${k}-head-title`,A("title")),be=ne(`${k}-extra`,A("extra")),he=Object.assign(Object.assign({},s),O("header"));H=l.createElement("div",{className:ce,style:he},l.createElement("div",{className:`${k}-head-wrapper`},u&&l.createElement("div",{className:Ie,style:O("title")},u),i&&l.createElement("div",{className:be,style:O("extra")},i)),Y)}const J=ne(`${k}-cover`,A("cover")),G=h?l.createElement("div",{className:J,style:O("cover")},h):null,U=ne(`${k}-body`,A("body")),q=Object.assign(Object.assign({},c),O("body")),X=l.createElement("div",{className:U,style:q},d?j:S),Q=ne(`${k}-actions`,A("actions")),ee=b!=null&&b.length?l.createElement(The,{actionClasses:Q,actionStyle:O("actions"),actions:b}):null,oe=On(R,["onTabChange"]),le=ne(k,P==null?void 0:P.className,{[`${k}-loading`]:d,[`${k}-bordered`]:f,[`${k}-hoverable`]:C,[`${k}-contain-grid`]:N,[`${k}-contain-tabs`]:y==null?void 0:y.length,[`${k}-${V}`]:V,[`${k}-type-${g}`]:!!g,[`${k}-rtl`]:$==="rtl"},r,a,L,F),fe=Object.assign(Object.assign({},P==null?void 0:P.style),o);return M(l.createElement("div",Object.assign({ref:t},oe,{className:le,style:fe}),H,G,X,ee))});var _he=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,className:n,avatar:r,title:a,description:o}=e,i=_he(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=l.useContext(st),c=s("card",t),u=ne(`${c}-meta`,n),d=r?l.createElement("div",{className:`${c}-meta-avatar`},r):null,f=a?l.createElement("div",{className:`${c}-meta-title`},a):null,p=o?l.createElement("div",{className:`${c}-meta-description`},o):null,g=f||p?l.createElement("div",{className:`${c}-meta-detail`},f,p):null;return l.createElement("div",Object.assign({},i,{className:u}),d,g)},Jd=Rhe;Jd.Grid=YW;Jd.Meta=$he;function Ohe(e,t,n){var r=n||{},a=r.noTrailing,o=a===void 0?!1:a,i=r.noLeading,s=i===void 0?!1:i,c=r.debounceMode,u=c===void 0?void 0:c,d,f=!1,p=0;function g(){d&&clearTimeout(d)}function h(y){var S=y||{},v=S.upcomingOnly,x=v===void 0?!1:v;g(),f=!x}function b(){for(var y=arguments.length,S=new Array(y),v=0;ve?s?(p=Date.now(),o||(d=setTimeout(u?E:C,e))):C():o!==!0&&(d=setTimeout(u?E:C,u===void 0?e-w:e))}return b.cancel=h,b}function Nhe(e,t,n){var r={},a=r.atBegin,o=a===void 0?!1:a;return Ohe(e,t,{debounceMode:o!==!1})}function Wa(e,t){return e[t]}var khe=["children"];function XW(e,t){return"".concat(e,"-").concat(t)}function Ahe(e){return e&&e.type&&e.type.isTreeNode}function fm(e,t){return e??t}function Cd(e){var t=e||{},n=t.title,r=t._title,a=t.key,o=t.children,i=n||"title";return{title:i,_title:r||[i],key:a||"key",children:o||"children"}}function ZW(e){function t(n){var r=vr(n);return r.map(function(a){if(!Ahe(a))return vn(!a,"Tree/TreeNode can only accept TreeNode as children."),null;var o=a.key,i=a.props,s=i.children,c=xt(i,khe),u=Z({key:o},c),d=t(s);return d.length&&(u.children=d),u}).filter(function(a){return a})}return t(e)}function u1(e,t,n){var r=Cd(n),a=r._title,o=r.key,i=r.children,s=new Set(t===!0?[]:t),c=[];function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return d.map(function(p,g){for(var h=XW(f?f.pos:"0",g),b=fm(p[o],h),y,S=0;S1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,a=t.onProcessFinished,o=t.externalGetKey,i=t.childrenPropName,s=t.fieldNames,c=arguments.length>2?arguments[2]:void 0,u=o||c,d={},f={},p={posEntities:d,keyEntities:f};return n&&(p=n(p)||p),Mhe(e,function(g){var h=g.node,b=g.index,y=g.pos,S=g.key,v=g.parentPos,x=g.level,w=g.nodes,C={node:h,nodes:w,index:b,key:S,pos:y,level:x},E=fm(S,y);d[y]=C,f[E]=C,C.parent=d[v],C.parent&&(C.parent.children=C.parent.children||[],C.parent.children.push(C)),r&&r(C,p)},{externalGetKey:u,childrenPropName:i,fieldNames:s}),a&&a(p),p}function Cp(e,t){var n=t.expandedKeys,r=t.selectedKeys,a=t.loadedKeys,o=t.loadingKeys,i=t.checkedKeys,s=t.halfCheckedKeys,c=t.dragOverNodeKey,u=t.dropPosition,d=t.keyEntities,f=Wa(d,e),p={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:a.indexOf(e)!==-1,loading:o.indexOf(e)!==-1,checked:i.indexOf(e)!==-1,halfChecked:s.indexOf(e)!==-1,pos:String(f?f.pos:""),dragOver:c===e&&u===0,dragOverGapTop:c===e&&u===-1,dragOverGapBottom:c===e&&u===1};return p}function Ir(e){var t=e.data,n=e.expanded,r=e.selected,a=e.checked,o=e.loaded,i=e.loading,s=e.halfChecked,c=e.dragOver,u=e.dragOverGapTop,d=e.dragOverGapBottom,f=e.pos,p=e.active,g=e.eventKey,h=Z(Z({},t),{},{expanded:n,selected:r,checked:a,loaded:o,loading:i,halfChecked:s,dragOver:c,dragOverGapTop:u,dragOverGapBottom:d,pos:f,active:p,key:g});return"props"in h||Object.defineProperty(h,"props",{get:function(){return vn(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),h}function QW(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function Phe(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,a=t.checkable;return!!(n||r)||a===!1}function Dhe(e,t,n,r){for(var a=new Set(e),o=new Set,i=0;i<=n;i+=1){var s=t.get(i)||new Set;s.forEach(function(f){var p=f.key,g=f.node,h=f.children,b=h===void 0?[]:h;a.has(p)&&!r(g)&&b.filter(function(y){return!r(y.node)}).forEach(function(y){a.add(y.key)})})}for(var c=new Set,u=n;u>=0;u-=1){var d=t.get(u)||new Set;d.forEach(function(f){var p=f.parent,g=f.node;if(!(r(g)||!f.parent||c.has(f.parent.key))){if(r(f.parent.node)){c.add(p.key);return}var h=!0,b=!1;(p.children||[]).filter(function(y){return!r(y.node)}).forEach(function(y){var S=y.key,v=a.has(S);h&&!v&&(h=!1),!b&&(v||o.has(S))&&(b=!0)}),h&&a.add(p.key),b&&o.add(p.key),c.add(p.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(QW(o,a))}}function Lhe(e,t,n,r,a){for(var o=new Set(e),i=new Set(t),s=0;s<=r;s+=1){var c=n.get(s)||new Set;c.forEach(function(p){var g=p.key,h=p.node,b=p.children,y=b===void 0?[]:b;!o.has(g)&&!i.has(g)&&!a(h)&&y.filter(function(S){return!a(S.node)}).forEach(function(S){o.delete(S.key)})})}i=new Set;for(var u=new Set,d=r;d>=0;d-=1){var f=n.get(d)||new Set;f.forEach(function(p){var g=p.parent,h=p.node;if(!(a(h)||!p.parent||u.has(p.parent.key))){if(a(p.parent.node)){u.add(g.key);return}var b=!0,y=!1;(g.children||[]).filter(function(S){return!a(S.node)}).forEach(function(S){var v=S.key,x=o.has(v);b&&!x&&(b=!1),!y&&(x||i.has(v))&&(y=!0)}),b||o.delete(g.key),y&&i.add(g.key),u.add(g.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(QW(i,o))}}function vs(e,t,n,r){var a=[],o;r?o=r:o=Phe;var i=new Set(e.filter(function(d){var f=!!Wa(n,d);return f||a.push(d),f})),s=new Map,c=0;Object.keys(n).forEach(function(d){var f=n[d],p=f.level,g=s.get(p);g||(g=new Set,s.set(p,g)),g.add(f),c=Math.max(c,p)}),vn(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map(function(d){return"'".concat(d,"'")}).join(", ")));var u;return t===!0?u=Dhe(i,s,c,o):u=Lhe(i,t.halfCheckedKeys,s,c,o),u}const Fhe=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},nn(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},nn(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},nn(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},Cs(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${K(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[` ${n}:not(${n}-disabled), ${t}:not(${t}-disabled) `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[` ${n}-checked:not(${n}-disabled), ${t}-checked:not(${t}-disabled) - `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function LO(e,t){const n=zt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[Fhe(n)]}const JW=on("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[LO(n,e)]}),eG=se.createContext(null);var jhe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const{prefixCls:r,className:a,rootClassName:o,children:i,indeterminate:s=!1,style:c,onMouseEnter:u,onMouseLeave:d,skipGroup:f=!1,disabled:p}=e,g=jhe(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:h,direction:b,checkbox:y}=l.useContext(st),S=l.useContext(eG),{isFormItemInput:v}=l.useContext(zr),x=l.useContext(Zr),C=(n=(S==null?void 0:S.disabled)||p)!==null&&n!==void 0?n:x,w=l.useRef(g.value);l.useEffect(()=>{S==null||S.registerValue(g.value)},[]),l.useEffect(()=>{if(!f)return g.value!==w.current&&(S==null||S.cancelValue(w.current),S==null||S.registerValue(g.value),w.current=g.value),()=>S==null?void 0:S.cancelValue(g.value)},[g.value]);const E=h("checkbox",r),I=Un(E),[T,R,_]=JW(E,I),$=Object.assign({},g);S&&!f&&($.onChange=function(){g.onChange&&g.onChange.apply(g,arguments),S.toggleOption&&S.toggleOption({label:i,value:g.value})},$.name=S.name,$.checked=S.value.includes(g.value));const P=ne(`${E}-wrapper`,{[`${E}-rtl`]:b==="rtl",[`${E}-wrapper-checked`]:$.checked,[`${E}-wrapper-disabled`]:C,[`${E}-wrapper-in-form-item`]:v},y==null?void 0:y.className,a,o,_,I,R),D=ne({[`${E}-indeterminate`]:s},C0,R),A=s?"mixed":void 0;return T(l.createElement(Gg,{component:"Checkbox",disabled:C},l.createElement("label",{className:P,style:Object.assign(Object.assign({},y==null?void 0:y.style),c),onMouseEnter:u,onMouseLeave:d},l.createElement(PW,Object.assign({"aria-checked":A},$,{prefixCls:E,className:D,disabled:C,ref:t})),i!==void 0&&l.createElement("span",null,i))))},tG=l.forwardRef(Bhe);var zhe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{defaultValue:n,children:r,options:a=[],prefixCls:o,className:i,rootClassName:s,style:c,onChange:u}=e,d=zhe(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:p}=l.useContext(st),[g,h]=l.useState(d.value||n||[]),[b,y]=l.useState([]);l.useEffect(()=>{"value"in d&&h(d.value||[])},[d.value]);const S=l.useMemo(()=>a.map(O=>typeof O=="string"||typeof O=="number"?{label:O,value:O}:O),[a]),v=O=>{y(N=>N.filter(k=>k!==O))},x=O=>{y(N=>[].concat(De(N),[O]))},C=O=>{const N=g.indexOf(O.value),k=De(g);N===-1?k.push(O.value):k.splice(N,1),"value"in d||h(k),u==null||u(k.filter(M=>b.includes(M)).sort((M,L)=>{const F=S.findIndex(B=>B.value===M),j=S.findIndex(B=>B.value===L);return F-j}))},w=f("checkbox",o),E=`${w}-group`,I=Un(w),[T,R,_]=JW(w,I),$=On(d,["value","disabled"]),P=a.length?S.map(O=>l.createElement(tG,{prefixCls:w,key:O.value.toString(),disabled:"disabled"in O?O.disabled:d.disabled,value:O.value,checked:g.includes(O.value),onChange:O.onChange,className:`${E}-item`,style:O.style,title:O.title,id:O.id,required:O.required},O.label)):r,D={toggleOption:C,value:g,disabled:d.disabled,name:d.name,registerValue:x,cancelValue:v},A=ne(E,{[`${E}-rtl`]:p==="rtl"},i,s,_,I,R);return T(l.createElement("div",Object.assign({className:A,style:c},$,{ref:t}),l.createElement(eG.Provider,{value:D},P)))}),Rs=tG;Rs.Group=Hhe;Rs.__ANT_CHECKBOX=!0;const nG=l.createContext({}),Uhe=e=>{const{componentCls:t}=e;return{[t]:{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"}}}},Vhe=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},Whe=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:a}=e,o={};for(let i=a;i>=0;i--)i===0?(o[`${r}${t}-${i}`]={display:"none"},o[`${r}-push-${i}`]={insetInlineStart:"auto"},o[`${r}-pull-${i}`]={insetInlineEnd:"auto"},o[`${r}${t}-push-${i}`]={insetInlineStart:"auto"},o[`${r}${t}-pull-${i}`]={insetInlineEnd:"auto"},o[`${r}${t}-offset-${i}`]={marginInlineStart:0},o[`${r}${t}-order-${i}`]={order:0}):(o[`${r}${t}-${i}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${i/a*100}%`,maxWidth:`${i/a*100}%`}],o[`${r}${t}-push-${i}`]={insetInlineStart:`${i/a*100}%`},o[`${r}${t}-pull-${i}`]={insetInlineEnd:`${i/a*100}%`},o[`${r}${t}-offset-${i}`]={marginInlineStart:`${i/a*100}%`},o[`${r}${t}-order-${i}`]={order:i});return o[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},o},_R=(e,t)=>Whe(e,t),Ghe=(e,t,n)=>({[`@media (min-width: ${K(t)})`]:Object.assign({},_R(e,n))}),qhe=()=>({}),Khe=()=>({}),Yhe=on("Grid",Uhe,qhe),Xhe=on("Grid",e=>{const t=zt(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[Vhe(t),_R(t,""),_R(t,"-xs"),Object.keys(n).map(r=>Ghe(t,n[r],r)).reduce((r,a)=>Object.assign(Object.assign({},r),a),{})]},Khe);var Zhe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:n,direction:r}=l.useContext(st),{gutter:a,wrap:o}=l.useContext(nG),{prefixCls:i,span:s,order:c,offset:u,push:d,pull:f,className:p,children:g,flex:h,style:b}=e,y=Zhe(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),S=n("col",i),[v,x,C]=Xhe(S),w={};let E={};Qhe.forEach(R=>{let _={};const $=e[R];typeof $=="number"?_.span=$:typeof $=="object"&&(_=$||{}),delete y[R],E=Object.assign(Object.assign({},E),{[`${S}-${R}-${_.span}`]:_.span!==void 0,[`${S}-${R}-order-${_.order}`]:_.order||_.order===0,[`${S}-${R}-offset-${_.offset}`]:_.offset||_.offset===0,[`${S}-${R}-push-${_.push}`]:_.push||_.push===0,[`${S}-${R}-pull-${_.pull}`]:_.pull||_.pull===0,[`${S}-rtl`]:r==="rtl"}),_.flex&&(E[`${S}-${R}-flex`]=!0,w[`--${S}-${R}-flex`]=Y4(_.flex))});const I=ne(S,{[`${S}-${s}`]:s!==void 0,[`${S}-order-${c}`]:c,[`${S}-offset-${u}`]:u,[`${S}-push-${d}`]:d,[`${S}-pull-${f}`]:f},p,E,x,C),T={};if(a&&a[0]>0){const R=a[0]/2;T.paddingLeft=R,T.paddingRight=R}return h&&(T.flex=Y4(h),o===!1&&!T.minWidth&&(T.minWidth=0)),v(l.createElement("div",Object.assign({},y,{style:Object.assign(Object.assign(Object.assign({},T),b),w),className:I,ref:t}),g))});var Jhe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{if(typeof e=="string"&&r(e),typeof e=="object")for(let o=0;o{a()},[JSON.stringify(e),t]),n}const $a=l.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:a,className:o,style:i,children:s,gutter:c=0,wrap:u}=e,d=Jhe(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:p}=l.useContext(st),[g,h]=l.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[b,y]=l.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),S=X4(a,b),v=X4(r,b),x=l.useRef(c),C=yV();l.useEffect(()=>{const k=C.subscribe(M=>{y(M);const L=x.current||0;(!Array.isArray(L)&&typeof L=="object"||Array.isArray(L)&&(typeof L[0]=="object"||typeof L[1]=="object"))&&h(M)});return()=>C.unsubscribe(k)},[]);const w=()=>{const k=[void 0,void 0];return(Array.isArray(c)?c:[c,void 0]).forEach((L,F)=>{if(typeof L=="object")for(let j=0;j0?_[0]/-2:void 0;D&&(P.marginLeft=D,P.marginRight=D);const[A,O]=_;P.rowGap=O;const N=l.useMemo(()=>({gutter:[A,O],wrap:u}),[A,O,u]);return I(l.createElement(nG.Provider,{value:N},l.createElement("div",Object.assign({},d,{className:$,style:Object.assign(Object.assign({},P),i),ref:t}),s)))});var rG=se.forwardRef(function(e,t){var n=e.prefixCls,r=e.forceRender,a=e.className,o=e.style,i=e.children,s=e.isActive,c=e.role,u=se.useState(s||r),d=re(u,2),f=d[0],p=d[1];return se.useEffect(function(){(r||s)&&p(!0)},[r,s]),f?se.createElement("div",{ref:t,className:ne("".concat(n,"-content"),W(W({},"".concat(n,"-content-active"),s),"".concat(n,"-content-inactive"),!s),a),style:o,role:c},se.createElement("div",{className:"".concat(n,"-content-box")},i)):null});rG.displayName="PanelContent";var eve=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],aG=se.forwardRef(function(e,t){var n=e.showArrow,r=n===void 0?!0:n,a=e.headerClass,o=e.isActive,i=e.onItemClick,s=e.forceRender,c=e.className,u=e.prefixCls,d=e.collapsible,f=e.accordion,p=e.panelKey,g=e.extra,h=e.header,b=e.expandIcon,y=e.openMotion,S=e.destroyInactivePanel,v=e.children,x=xt(e,eve),C=d==="disabled",w=d==="header",E=d==="icon",I=g!=null&&typeof g!="boolean",T=function(){i==null||i(p)},R=function(O){(O.key==="Enter"||O.keyCode===Le.ENTER||O.which===Le.ENTER)&&T()},_=typeof b=="function"?b(e):se.createElement("i",{className:"arrow"});_&&(_=se.createElement("div",{className:"".concat(u,"-expand-icon"),onClick:["header","icon"].includes(d)?T:void 0},_));var $=ne(W(W(W({},"".concat(u,"-item"),!0),"".concat(u,"-item-active"),o),"".concat(u,"-item-disabled"),C),c),P=ne(a,W(W(W({},"".concat(u,"-header"),!0),"".concat(u,"-header-collapsible-only"),w),"".concat(u,"-icon-collapsible-only"),E)),D={className:P,"aria-expanded":o,"aria-disabled":C,onKeyDown:R};return!w&&!E&&(D.onClick=T,D.role=f?"tab":"button",D.tabIndex=C?-1:0),se.createElement("div",pe({},x,{ref:t,className:$}),se.createElement("div",D,r&&_,se.createElement("span",{className:"".concat(u,"-header-text"),onClick:d==="header"?T:void 0},h),I&&se.createElement("div",{className:"".concat(u,"-extra")},g)),se.createElement(Qr,pe({visible:o,leavedClassName:"".concat(u,"-content-hidden")},y,{forceRender:s,removeOnLeave:S}),function(A,O){var N=A.className,k=A.style;return se.createElement(rG,{ref:O,prefixCls:u,className:N,style:k,isActive:o,forceRender:s,role:f?"tabpanel":void 0},v)}))}),tve=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],nve=function(t,n){var r=n.prefixCls,a=n.accordion,o=n.collapsible,i=n.destroyInactivePanel,s=n.onItemClick,c=n.activeKey,u=n.openMotion,d=n.expandIcon;return t.map(function(f,p){var g=f.children,h=f.label,b=f.key,y=f.collapsible,S=f.onItemClick,v=f.destroyInactivePanel,x=xt(f,tve),C=String(b??p),w=y??o,E=v??i,I=function(_){w!=="disabled"&&(s(_),S==null||S(_))},T=!1;return a?T=c[0]===C:T=c.indexOf(C)>-1,se.createElement(aG,pe({},x,{prefixCls:r,key:C,panelKey:C,isActive:T,accordion:a,openMotion:u,expandIcon:d,header:h,collapsible:w,onItemClick:I,destroyInactivePanel:E}),g)})},rve=function(t,n,r){if(!t)return null;var a=r.prefixCls,o=r.accordion,i=r.collapsible,s=r.destroyInactivePanel,c=r.onItemClick,u=r.activeKey,d=r.openMotion,f=r.expandIcon,p=t.key||String(n),g=t.props,h=g.header,b=g.headerClass,y=g.destroyInactivePanel,S=g.collapsible,v=g.onItemClick,x=!1;o?x=u[0]===p:x=u.indexOf(p)>-1;var C=S??i,w=function(T){C!=="disabled"&&(c(T),v==null||v(T))},E={key:p,panelKey:p,header:h,headerClass:b,isActive:x,prefixCls:a,destroyInactivePanel:y??s,openMotion:d,accordion:o,children:t.props.children,onItemClick:w,expandIcon:f,collapsible:C};return typeof t.type=="string"?t:(Object.keys(E).forEach(function(I){typeof E[I]>"u"&&delete E[I]}),se.cloneElement(t,E))};function ave(e,t,n){return Array.isArray(e)?nve(e,n):vr(t).map(function(r,a){return rve(r,a,n)})}function ove(e){var t=e;if(!Array.isArray(t)){var n=ht(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}var ive=se.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,a=e.destroyInactivePanel,o=a===void 0?!1:a,i=e.style,s=e.accordion,c=e.className,u=e.children,d=e.collapsible,f=e.openMotion,p=e.expandIcon,g=e.activeKey,h=e.defaultActiveKey,b=e.onChange,y=e.items,S=ne(r,c),v=sn([],{value:g,onChange:function(R){return b==null?void 0:b(R)},defaultValue:h,postState:ove}),x=re(v,2),C=x[0],w=x[1],E=function(R){return w(function(){if(s)return C[0]===R?[]:[R];var _=C.indexOf(R),$=_>-1;return $?C.filter(function(P){return P!==R}):[].concat(De(C),[R])})};vn(!u,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var I=ave(y,u,{prefixCls:r,accordion:s,openMotion:f,expandIcon:p,collapsible:d,destroyInactivePanel:o,onItemClick:E,activeKey:C});return se.createElement("div",pe({ref:t,className:S,style:i,role:s?"tablist":void 0},Yn(e,{aria:!0,data:!0})),I)});const FO=Object.assign(ive,{Panel:aG});FO.Panel;const sve=l.forwardRef((e,t)=>{const{getPrefixCls:n}=l.useContext(st),{prefixCls:r,className:a,showArrow:o=!0}=e,i=n("collapse",r),s=ne({[`${i}-no-arrow`]:!o},a);return l.createElement(FO.Panel,Object.assign({ref:t},e,{prefixCls:i,className:s}))}),lve=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:a,headerPadding:o,collapseHeaderPaddingSM:i,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:c,lineWidth:u,lineType:d,colorBorder:f,colorText:p,colorTextHeading:g,colorTextDisabled:h,fontSizeLG:b,lineHeight:y,lineHeightLG:S,marginSM:v,paddingSM:x,paddingLG:C,paddingXS:w,motionDurationSlow:E,fontSizeIcon:I,contentPadding:T,fontHeight:R,fontHeightLG:_}=e,$=`${K(u)} ${d} ${f}`;return{[t]:Object.assign(Object.assign({},nn(e)),{backgroundColor:a,border:$,borderRadius:c,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:$,"&:last-child":{[` + `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function FO(e,t){const n=zt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[Fhe(n)]}const JW=on("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[FO(n,e)]}),eG=se.createContext(null);var jhe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const{prefixCls:r,className:a,rootClassName:o,children:i,indeterminate:s=!1,style:c,onMouseEnter:u,onMouseLeave:d,skipGroup:f=!1,disabled:p}=e,g=jhe(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:h,direction:b,checkbox:y}=l.useContext(st),S=l.useContext(eG),{isFormItemInput:v}=l.useContext(zr),x=l.useContext(Jr),w=(n=(S==null?void 0:S.disabled)||p)!==null&&n!==void 0?n:x,C=l.useRef(g.value);l.useEffect(()=>{S==null||S.registerValue(g.value)},[]),l.useEffect(()=>{if(!f)return g.value!==C.current&&(S==null||S.cancelValue(C.current),S==null||S.registerValue(g.value),C.current=g.value),()=>S==null?void 0:S.cancelValue(g.value)},[g.value]);const E=h("checkbox",r),I=Un(E),[T,R,_]=JW(E,I),$=Object.assign({},g);S&&!f&&($.onChange=function(){g.onChange&&g.onChange.apply(g,arguments),S.toggleOption&&S.toggleOption({label:i,value:g.value})},$.name=S.name,$.checked=S.value.includes(g.value));const P=ne(`${E}-wrapper`,{[`${E}-rtl`]:b==="rtl",[`${E}-wrapper-checked`]:$.checked,[`${E}-wrapper-disabled`]:w,[`${E}-wrapper-in-form-item`]:v},y==null?void 0:y.className,a,o,_,I,R),D=ne({[`${E}-indeterminate`]:s},E0,R),A=s?"mixed":void 0;return T(l.createElement(Kg,{component:"Checkbox",disabled:w},l.createElement("label",{className:P,style:Object.assign(Object.assign({},y==null?void 0:y.style),c),onMouseEnter:u,onMouseLeave:d},l.createElement(PW,Object.assign({"aria-checked":A},$,{prefixCls:E,className:D,disabled:w,ref:t})),i!==void 0&&l.createElement("span",null,i))))},tG=l.forwardRef(Bhe);var zhe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{defaultValue:n,children:r,options:a=[],prefixCls:o,className:i,rootClassName:s,style:c,onChange:u}=e,d=zhe(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:p}=l.useContext(st),[g,h]=l.useState(d.value||n||[]),[b,y]=l.useState([]);l.useEffect(()=>{"value"in d&&h(d.value||[])},[d.value]);const S=l.useMemo(()=>a.map(O=>typeof O=="string"||typeof O=="number"?{label:O,value:O}:O),[a]),v=O=>{y(N=>N.filter(k=>k!==O))},x=O=>{y(N=>[].concat(Pe(N),[O]))},w=O=>{const N=g.indexOf(O.value),k=Pe(g);N===-1?k.push(O.value):k.splice(N,1),"value"in d||h(k),u==null||u(k.filter(M=>b.includes(M)).sort((M,L)=>{const F=S.findIndex(B=>B.value===M),j=S.findIndex(B=>B.value===L);return F-j}))},C=f("checkbox",o),E=`${C}-group`,I=Un(C),[T,R,_]=JW(C,I),$=On(d,["value","disabled"]),P=a.length?S.map(O=>l.createElement(tG,{prefixCls:C,key:O.value.toString(),disabled:"disabled"in O?O.disabled:d.disabled,value:O.value,checked:g.includes(O.value),onChange:O.onChange,className:`${E}-item`,style:O.style,title:O.title,id:O.id,required:O.required},O.label)):r,D={toggleOption:w,value:g,disabled:d.disabled,name:d.name,registerValue:x,cancelValue:v},A=ne(E,{[`${E}-rtl`]:p==="rtl"},i,s,_,I,R);return T(l.createElement("div",Object.assign({className:A,style:c},$,{ref:t}),l.createElement(eG.Provider,{value:D},P)))}),_s=tG;_s.Group=Hhe;_s.__ANT_CHECKBOX=!0;const nG=l.createContext({}),Uhe=e=>{const{componentCls:t}=e;return{[t]:{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"}}}},Vhe=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},Whe=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:a}=e,o={};for(let i=a;i>=0;i--)i===0?(o[`${r}${t}-${i}`]={display:"none"},o[`${r}-push-${i}`]={insetInlineStart:"auto"},o[`${r}-pull-${i}`]={insetInlineEnd:"auto"},o[`${r}${t}-push-${i}`]={insetInlineStart:"auto"},o[`${r}${t}-pull-${i}`]={insetInlineEnd:"auto"},o[`${r}${t}-offset-${i}`]={marginInlineStart:0},o[`${r}${t}-order-${i}`]={order:0}):(o[`${r}${t}-${i}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${i/a*100}%`,maxWidth:`${i/a*100}%`}],o[`${r}${t}-push-${i}`]={insetInlineStart:`${i/a*100}%`},o[`${r}${t}-pull-${i}`]={insetInlineEnd:`${i/a*100}%`},o[`${r}${t}-offset-${i}`]={marginInlineStart:`${i/a*100}%`},o[`${r}${t}-order-${i}`]={order:i});return o[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},o},$R=(e,t)=>Whe(e,t),Ghe=(e,t,n)=>({[`@media (min-width: ${K(t)})`]:Object.assign({},$R(e,n))}),qhe=()=>({}),Khe=()=>({}),Yhe=on("Grid",Uhe,qhe),Xhe=on("Grid",e=>{const t=zt(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[Vhe(t),$R(t,""),$R(t,"-xs"),Object.keys(n).map(r=>Ghe(t,n[r],r)).reduce((r,a)=>Object.assign(Object.assign({},r),a),{})]},Khe);var Zhe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:n,direction:r}=l.useContext(st),{gutter:a,wrap:o}=l.useContext(nG),{prefixCls:i,span:s,order:c,offset:u,push:d,pull:f,className:p,children:g,flex:h,style:b}=e,y=Zhe(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),S=n("col",i),[v,x,w]=Xhe(S),C={};let E={};Qhe.forEach(R=>{let _={};const $=e[R];typeof $=="number"?_.span=$:typeof $=="object"&&(_=$||{}),delete y[R],E=Object.assign(Object.assign({},E),{[`${S}-${R}-${_.span}`]:_.span!==void 0,[`${S}-${R}-order-${_.order}`]:_.order||_.order===0,[`${S}-${R}-offset-${_.offset}`]:_.offset||_.offset===0,[`${S}-${R}-push-${_.push}`]:_.push||_.push===0,[`${S}-${R}-pull-${_.pull}`]:_.pull||_.pull===0,[`${S}-rtl`]:r==="rtl"}),_.flex&&(E[`${S}-${R}-flex`]=!0,C[`--${S}-${R}-flex`]=Y4(_.flex))});const I=ne(S,{[`${S}-${s}`]:s!==void 0,[`${S}-order-${c}`]:c,[`${S}-offset-${u}`]:u,[`${S}-push-${d}`]:d,[`${S}-pull-${f}`]:f},p,E,x,w),T={};if(a&&a[0]>0){const R=a[0]/2;T.paddingLeft=R,T.paddingRight=R}return h&&(T.flex=Y4(h),o===!1&&!T.minWidth&&(T.minWidth=0)),v(l.createElement("div",Object.assign({},y,{style:Object.assign(Object.assign(Object.assign({},T),b),C),className:I,ref:t}),g))});var Jhe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{if(typeof e=="string"&&r(e),typeof e=="object")for(let o=0;o{a()},[JSON.stringify(e),t]),n}const Na=l.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:a,className:o,style:i,children:s,gutter:c=0,wrap:u}=e,d=Jhe(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:p}=l.useContext(st),[g,h]=l.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[b,y]=l.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),S=X4(a,b),v=X4(r,b),x=l.useRef(c),w=yV();l.useEffect(()=>{const k=w.subscribe(M=>{y(M);const L=x.current||0;(!Array.isArray(L)&&typeof L=="object"||Array.isArray(L)&&(typeof L[0]=="object"||typeof L[1]=="object"))&&h(M)});return()=>w.unsubscribe(k)},[]);const C=()=>{const k=[void 0,void 0];return(Array.isArray(c)?c:[c,void 0]).forEach((L,F)=>{if(typeof L=="object")for(let j=0;j0?_[0]/-2:void 0;D&&(P.marginLeft=D,P.marginRight=D);const[A,O]=_;P.rowGap=O;const N=l.useMemo(()=>({gutter:[A,O],wrap:u}),[A,O,u]);return I(l.createElement(nG.Provider,{value:N},l.createElement("div",Object.assign({},d,{className:$,style:Object.assign(Object.assign({},P),i),ref:t}),s)))});var rG=se.forwardRef(function(e,t){var n=e.prefixCls,r=e.forceRender,a=e.className,o=e.style,i=e.children,s=e.isActive,c=e.role,u=se.useState(s||r),d=re(u,2),f=d[0],p=d[1];return se.useEffect(function(){(r||s)&&p(!0)},[r,s]),f?se.createElement("div",{ref:t,className:ne("".concat(n,"-content"),W(W({},"".concat(n,"-content-active"),s),"".concat(n,"-content-inactive"),!s),a),style:o,role:c},se.createElement("div",{className:"".concat(n,"-content-box")},i)):null});rG.displayName="PanelContent";var eve=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],aG=se.forwardRef(function(e,t){var n=e.showArrow,r=n===void 0?!0:n,a=e.headerClass,o=e.isActive,i=e.onItemClick,s=e.forceRender,c=e.className,u=e.prefixCls,d=e.collapsible,f=e.accordion,p=e.panelKey,g=e.extra,h=e.header,b=e.expandIcon,y=e.openMotion,S=e.destroyInactivePanel,v=e.children,x=xt(e,eve),w=d==="disabled",C=d==="header",E=d==="icon",I=g!=null&&typeof g!="boolean",T=function(){i==null||i(p)},R=function(O){(O.key==="Enter"||O.keyCode===Le.ENTER||O.which===Le.ENTER)&&T()},_=typeof b=="function"?b(e):se.createElement("i",{className:"arrow"});_&&(_=se.createElement("div",{className:"".concat(u,"-expand-icon"),onClick:["header","icon"].includes(d)?T:void 0},_));var $=ne(W(W(W({},"".concat(u,"-item"),!0),"".concat(u,"-item-active"),o),"".concat(u,"-item-disabled"),w),c),P=ne(a,W(W(W({},"".concat(u,"-header"),!0),"".concat(u,"-header-collapsible-only"),C),"".concat(u,"-icon-collapsible-only"),E)),D={className:P,"aria-expanded":o,"aria-disabled":w,onKeyDown:R};return!C&&!E&&(D.onClick=T,D.role=f?"tab":"button",D.tabIndex=w?-1:0),se.createElement("div",pe({},x,{ref:t,className:$}),se.createElement("div",D,r&&_,se.createElement("span",{className:"".concat(u,"-header-text"),onClick:d==="header"?T:void 0},h),I&&se.createElement("div",{className:"".concat(u,"-extra")},g)),se.createElement(ea,pe({visible:o,leavedClassName:"".concat(u,"-content-hidden")},y,{forceRender:s,removeOnLeave:S}),function(A,O){var N=A.className,k=A.style;return se.createElement(rG,{ref:O,prefixCls:u,className:N,style:k,isActive:o,forceRender:s,role:f?"tabpanel":void 0},v)}))}),tve=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],nve=function(t,n){var r=n.prefixCls,a=n.accordion,o=n.collapsible,i=n.destroyInactivePanel,s=n.onItemClick,c=n.activeKey,u=n.openMotion,d=n.expandIcon;return t.map(function(f,p){var g=f.children,h=f.label,b=f.key,y=f.collapsible,S=f.onItemClick,v=f.destroyInactivePanel,x=xt(f,tve),w=String(b??p),C=y??o,E=v??i,I=function(_){C!=="disabled"&&(s(_),S==null||S(_))},T=!1;return a?T=c[0]===w:T=c.indexOf(w)>-1,se.createElement(aG,pe({},x,{prefixCls:r,key:w,panelKey:w,isActive:T,accordion:a,openMotion:u,expandIcon:d,header:h,collapsible:C,onItemClick:I,destroyInactivePanel:E}),g)})},rve=function(t,n,r){if(!t)return null;var a=r.prefixCls,o=r.accordion,i=r.collapsible,s=r.destroyInactivePanel,c=r.onItemClick,u=r.activeKey,d=r.openMotion,f=r.expandIcon,p=t.key||String(n),g=t.props,h=g.header,b=g.headerClass,y=g.destroyInactivePanel,S=g.collapsible,v=g.onItemClick,x=!1;o?x=u[0]===p:x=u.indexOf(p)>-1;var w=S??i,C=function(T){w!=="disabled"&&(c(T),v==null||v(T))},E={key:p,panelKey:p,header:h,headerClass:b,isActive:x,prefixCls:a,destroyInactivePanel:y??s,openMotion:d,accordion:o,children:t.props.children,onItemClick:C,expandIcon:f,collapsible:w};return typeof t.type=="string"?t:(Object.keys(E).forEach(function(I){typeof E[I]>"u"&&delete E[I]}),se.cloneElement(t,E))};function ave(e,t,n){return Array.isArray(e)?nve(e,n):vr(t).map(function(r,a){return rve(r,a,n)})}function ove(e){var t=e;if(!Array.isArray(t)){var n=mt(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}var ive=se.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,a=e.destroyInactivePanel,o=a===void 0?!1:a,i=e.style,s=e.accordion,c=e.className,u=e.children,d=e.collapsible,f=e.openMotion,p=e.expandIcon,g=e.activeKey,h=e.defaultActiveKey,b=e.onChange,y=e.items,S=ne(r,c),v=sn([],{value:g,onChange:function(R){return b==null?void 0:b(R)},defaultValue:h,postState:ove}),x=re(v,2),w=x[0],C=x[1],E=function(R){return C(function(){if(s)return w[0]===R?[]:[R];var _=w.indexOf(R),$=_>-1;return $?w.filter(function(P){return P!==R}):[].concat(Pe(w),[R])})};vn(!u,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var I=ave(y,u,{prefixCls:r,accordion:s,openMotion:f,expandIcon:p,collapsible:d,destroyInactivePanel:o,onItemClick:E,activeKey:w});return se.createElement("div",pe({ref:t,className:S,style:i,role:s?"tablist":void 0},Yn(e,{aria:!0,data:!0})),I)});const jO=Object.assign(ive,{Panel:aG});jO.Panel;const sve=l.forwardRef((e,t)=>{const{getPrefixCls:n}=l.useContext(st),{prefixCls:r,className:a,showArrow:o=!0}=e,i=n("collapse",r),s=ne({[`${i}-no-arrow`]:!o},a);return l.createElement(jO.Panel,Object.assign({ref:t},e,{prefixCls:i,className:s}))}),lve=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:a,headerPadding:o,collapseHeaderPaddingSM:i,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:c,lineWidth:u,lineType:d,colorBorder:f,colorText:p,colorTextHeading:g,colorTextDisabled:h,fontSizeLG:b,lineHeight:y,lineHeightLG:S,marginSM:v,paddingSM:x,paddingLG:w,paddingXS:C,motionDurationSlow:E,fontSizeIcon:I,contentPadding:T,fontHeight:R,fontHeightLG:_}=e,$=`${K(u)} ${d} ${f}`;return{[t]:Object.assign(Object.assign({},nn(e)),{backgroundColor:a,border:$,borderRadius:c,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:$,"&:last-child":{[` &, - & > ${t}-header`]:{borderRadius:`0 0 ${K(c)} ${K(c)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:o,color:g,lineHeight:y,cursor:"pointer",transition:`all ${E}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:R,display:"flex",alignItems:"center",paddingInlineEnd:v},[`${t}-arrow`]:Object.assign(Object.assign({},zd()),{fontSize:I,transition:`transform ${E}`,svg:{transition:`transform ${E}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-icon-collapsible-only`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:p,backgroundColor:n,borderTop:$,[`& > ${t}-content-box`]:{padding:T},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:i,paddingInlineStart:w,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(x).sub(w).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:x}}},"&-large":{[`> ${t}-item`]:{fontSize:b,lineHeight:S,[`> ${t}-header`]:{padding:s,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:_,marginInlineStart:e.calc(C).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:C}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${K(c)} ${K(c)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:h,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:v}}}}})}},cve=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},uve=e=>{const{componentCls:t,headerBg:n,paddingXXS:r,colorBorder:a}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${a}`},[` + & > ${t}-header`]:{borderRadius:`0 0 ${K(c)} ${K(c)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:o,color:g,lineHeight:y,cursor:"pointer",transition:`all ${E}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:R,display:"flex",alignItems:"center",paddingInlineEnd:v},[`${t}-arrow`]:Object.assign(Object.assign({},zd()),{fontSize:I,transition:`transform ${E}`,svg:{transition:`transform ${E}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-icon-collapsible-only`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:p,backgroundColor:n,borderTop:$,[`& > ${t}-content-box`]:{padding:T},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:i,paddingInlineStart:C,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(x).sub(C).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:x}}},"&-large":{[`> ${t}-item`]:{fontSize:b,lineHeight:S,[`> ${t}-header`]:{padding:s,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:_,marginInlineStart:e.calc(w).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:w}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${K(c)} ${K(c)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:h,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:v}}}}})}},cve=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},uve=e=>{const{componentCls:t,headerBg:n,paddingXXS:r,colorBorder:a}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${a}`},[` > ${t}-item:last-child, > ${t}-item:last-child ${t}-header - `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},dve=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},fve=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}),pve=on("Collapse",e=>{const t=zt(e,{collapseHeaderPaddingSM:`${K(e.paddingXS)} ${K(e.paddingSM)}`,collapseHeaderPaddingLG:`${K(e.padding)} ${K(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[lve(t),uve(t),dve(t),cve(t),Zg(t)]},fve),gve=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,collapse:a}=l.useContext(st),{prefixCls:o,className:i,rootClassName:s,style:c,bordered:u=!0,ghost:d,size:f,expandIconPosition:p="start",children:g,expandIcon:h}=e,b=Er($=>{var P;return(P=f??$)!==null&&P!==void 0?P:"middle"}),y=n("collapse",o),S=n(),[v,x,C]=pve(y),w=l.useMemo(()=>p==="left"?"start":p==="right"?"end":p,[p]),E=h??(a==null?void 0:a.expandIcon),I=l.useCallback(function(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const P=typeof E=="function"?E($):l.createElement(Za,{rotate:$.isActive?90:void 0,"aria-label":$.isActive?"expanded":"collapsed"});return Cr(P,()=>{var D;return{className:ne((D=P==null?void 0:P.props)===null||D===void 0?void 0:D.className,`${y}-arrow`)}})},[E,y]),T=ne(`${y}-icon-position-${w}`,{[`${y}-borderless`]:!u,[`${y}-rtl`]:r==="rtl",[`${y}-ghost`]:!!d,[`${y}-${b}`]:b!=="middle"},a==null?void 0:a.className,i,s,x,C),R=Object.assign(Object.assign({},Sd(S)),{motionAppear:!1,leavedClassName:`${y}-content-hidden`}),_=l.useMemo(()=>g?vr(g).map(($,P)=>{var D,A;if(!((D=$.props)===null||D===void 0)&&D.disabled){const O=(A=$.key)!==null&&A!==void 0?A:String(P),{disabled:N,collapsible:k}=$.props,M=Object.assign(Object.assign({},On($.props,["disabled"])),{key:O,collapsible:k??(N?"disabled":void 0)});return Cr($,M)}return $}):null,[g]);return v(l.createElement(FO,Object.assign({ref:t,openMotion:R},On(e,["rootClassName"]),{expandIcon:I,prefixCls:y,className:T,style:Object.assign(Object.assign({},a==null?void 0:a.style),c)}),_))}),yl=Object.assign(gve,{Panel:sve}),mve=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:a,textPaddingInline:o,orientationMargin:i,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},nn(e)),{borderBlockStart:`${K(a)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${K(a)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${K(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${K(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${K(a)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${i} * 100%)`},"&::after":{width:`calc(100% - ${i} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${i} * 100%)`},"&::after":{width:`calc(${i} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:o},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${K(a)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:a,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${K(a)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:a,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},hve=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),vve=on("Divider",e=>{const t=zt(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[mve(t)]},hve,{unitless:{orientationMargin:!0}});var bve=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:t,direction:n,divider:r}=l.useContext(st),{prefixCls:a,type:o="horizontal",orientation:i="center",orientationMargin:s,className:c,rootClassName:u,children:d,dashed:f,variant:p="solid",plain:g,style:h}=e,b=bve(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),y=t("divider",a),[S,v,x]=vve(y),C=!!d,w=i==="left"&&s!=null,E=i==="right"&&s!=null,I=ne(y,r==null?void 0:r.className,v,x,`${y}-${o}`,{[`${y}-with-text`]:C,[`${y}-with-text-${i}`]:C,[`${y}-dashed`]:!!f,[`${y}-${p}`]:p!=="solid",[`${y}-plain`]:!!g,[`${y}-rtl`]:n==="rtl",[`${y}-no-default-orientation-margin-left`]:w,[`${y}-no-default-orientation-margin-right`]:E},c,u),T=l.useMemo(()=>typeof s=="number"?s:/^\d+$/.test(s)?Number(s):s,[s]),R=Object.assign(Object.assign({},w&&{marginLeft:T}),E&&{marginRight:T});return S(l.createElement("div",Object.assign({className:I,style:Object.assign(Object.assign({},r==null?void 0:r.style),h)},b,{role:"separator"}),d&&o!=="vertical"&&l.createElement("span",{className:`${y}-inner-text`,style:R},d)))};var yve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},Sve=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:yve}))},xve=l.forwardRef(Sve);function $R(){return typeof BigInt=="function"}function oG(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function dc(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",a=r.split("."),o=a[0]||"0",i=a[1]||"0";o==="0"&&i==="0"&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:o,decimalStr:i,fullStr:"".concat(s).concat(r)}}function jO(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function ec(e){var t=String(e);if(jO(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&BO(t)?t.length-t.indexOf(".")-1:0}function ey(e){var t=String(e);if(jO(e)){if(e>Number.MAX_SAFE_INTEGER)return String($R()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":dc("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),Cve=function(){function e(t){if(Xn(this,e),W(this,"origin",""),W(this,"number",void 0),W(this,"empty",void 0),oG(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return Zn(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var a=this.number+r;if(a>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(aNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(a0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":ey(this.number):this.origin}}]),e}();function ei(e){return $R()?new wve(e):new Cve(e)}function mv(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var a=dc(e),o=a.negativeStr,i=a.integerStr,s=a.decimalStr,c="".concat(t).concat(s),u="".concat(o).concat(i);if(n>=0){var d=Number(s[n]);if(d>=5&&!r){var f=ei(e).add("".concat(o,"0.").concat("0".repeat(n)).concat(10-d));return mv(f.toString(),t,n,r)}return n===0?u:"".concat(u).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return c===".0"?u:"".concat(u).concat(c)}function Eve(e){return!!(e.addonBefore||e.addonAfter)}function Ive(e){return!!(e.prefix||e.suffix||e.allowClear)}function Z4(e,t,n){var r=t.cloneNode(!0),a=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},a}function bb(e,t,n,r){if(n){var a=t;if(t.type==="click"){a=Z4(t,e,""),n(a);return}if(e.type!=="file"&&r!==void 0){a=Z4(t,e,r),n(a);return}n(a)}}function iG(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var a=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(a,a);break;default:e.setSelectionRange(0,a)}}}}var zO=se.forwardRef(function(e,t){var n,r,a=e.inputElement,o=e.children,i=e.prefixCls,s=e.prefix,c=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,p=e.style,g=e.disabled,h=e.readOnly,b=e.focused,y=e.triggerFocus,S=e.allowClear,v=e.value,x=e.handleReset,C=e.hidden,w=e.classes,E=e.classNames,I=e.dataAttrs,T=e.styles,R=e.components,_=e.onClear,$=o??a,P=(R==null?void 0:R.affixWrapper)||"span",D=(R==null?void 0:R.groupWrapper)||"span",A=(R==null?void 0:R.wrapper)||"span",O=(R==null?void 0:R.groupAddon)||"span",N=l.useRef(null),k=function(ee){var oe;(oe=N.current)!==null&&oe!==void 0&&oe.contains(ee.target)&&(y==null||y())},M=Ive(e),L=l.cloneElement($,{value:v,className:ne($.props.className,!M&&(E==null?void 0:E.variant))||null}),F=l.useRef(null);if(se.useImperativeHandle(t,function(){return{nativeElement:F.current||N.current}}),M){var j=null;if(S){var B=!g&&!h&&v,z="".concat(i,"-clear-icon"),H=ht(S)==="object"&&S!==null&&S!==void 0&&S.clearIcon?S.clearIcon:"✖";j=se.createElement("span",{onClick:function(ee){x==null||x(ee),_==null||_()},onMouseDown:function(ee){return ee.preventDefault()},className:ne(z,W(W({},"".concat(z,"-hidden"),!B),"".concat(z,"-has-suffix"),!!c)),role:"button",tabIndex:-1},H)}var V="".concat(i,"-affix-wrapper"),te=ne(V,W(W(W(W(W({},"".concat(i,"-disabled"),g),"".concat(V,"-disabled"),g),"".concat(V,"-focused"),b),"".concat(V,"-readonly"),h),"".concat(V,"-input-with-clear-btn"),c&&S&&v),w==null?void 0:w.affixWrapper,E==null?void 0:E.affixWrapper,E==null?void 0:E.variant),Y=(c||S)&&se.createElement("span",{className:ne("".concat(i,"-suffix"),E==null?void 0:E.suffix),style:T==null?void 0:T.suffix},j,c);L=se.createElement(P,pe({className:te,style:T==null?void 0:T.affixWrapper,onClick:k},I==null?void 0:I.affixWrapper,{ref:N}),s&&se.createElement("span",{className:ne("".concat(i,"-prefix"),E==null?void 0:E.prefix),style:T==null?void 0:T.prefix},s),L,Y)}if(Eve(e)){var J="".concat(i,"-group"),G="".concat(J,"-addon"),U="".concat(J,"-wrapper"),q=ne("".concat(i,"-wrapper"),J,w==null?void 0:w.wrapper,E==null?void 0:E.wrapper),X=ne(U,W({},"".concat(U,"-disabled"),g),w==null?void 0:w.group,E==null?void 0:E.groupWrapper);L=se.createElement(D,{className:X,ref:F},se.createElement(A,{className:q},u&&se.createElement(O,{className:G},u),L,d&&se.createElement(O,{className:G},d)))}return se.cloneElement(L,{className:ne((n=L.props)===null||n===void 0?void 0:n.className,f)||null,style:Z(Z({},(r=L.props)===null||r===void 0?void 0:r.style),p),hidden:C})}),Tve=["show"];function sG(e,t){return l.useMemo(function(){var n={};t&&(n.show=ht(t)==="object"&&t.formatter?t.formatter:!!t),n=Z(Z({},n),e);var r=n,a=r.show,o=xt(r,Tve);return Z(Z({},o),{},{show:!!a,showFormatter:typeof a=="function"?a:void 0,strategy:o.strategy||function(i){return i.length}})},[e,t])}var Rve=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],_ve=l.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,a=e.onFocus,o=e.onBlur,i=e.onPressEnter,s=e.onKeyDown,c=e.onKeyUp,u=e.prefixCls,d=u===void 0?"rc-input":u,f=e.disabled,p=e.htmlSize,g=e.className,h=e.maxLength,b=e.suffix,y=e.showCount,S=e.count,v=e.type,x=v===void 0?"text":v,C=e.classes,w=e.classNames,E=e.styles,I=e.onCompositionStart,T=e.onCompositionEnd,R=xt(e,Rve),_=l.useState(!1),$=re(_,2),P=$[0],D=$[1],A=l.useRef(!1),O=l.useRef(!1),N=l.useRef(null),k=l.useRef(null),M=function(ue){N.current&&iG(N.current,ue)},L=sn(e.defaultValue,{value:e.value}),F=re(L,2),j=F[0],B=F[1],z=j==null?"":String(j),H=l.useState(null),V=re(H,2),te=V[0],Y=V[1],J=sG(S,y),G=J.max||h,U=J.strategy(z),q=!!G&&U>G;l.useImperativeHandle(t,function(){var ie;return{focus:M,blur:function(){var ye;(ye=N.current)===null||ye===void 0||ye.blur()},setSelectionRange:function(ye,Ee,Me){var Ie;(Ie=N.current)===null||Ie===void 0||Ie.setSelectionRange(ye,Ee,Me)},select:function(){var ye;(ye=N.current)===null||ye===void 0||ye.select()},input:N.current,nativeElement:((ie=k.current)===null||ie===void 0?void 0:ie.nativeElement)||N.current}}),l.useEffect(function(){D(function(ie){return ie&&f?!1:ie})},[f]);var X=function(ue,ye,Ee){var Me=ye;if(!A.current&&J.exceedFormatter&&J.max&&J.strategy(ye)>J.max){if(Me=J.exceedFormatter(ye,{max:J.max}),ye!==Me){var Ie,Ce;Y([((Ie=N.current)===null||Ie===void 0?void 0:Ie.selectionStart)||0,((Ce=N.current)===null||Ce===void 0?void 0:Ce.selectionEnd)||0])}}else if(Ee.source==="compositionEnd")return;B(Me),N.current&&bb(N.current,ue,r,Me)};l.useEffect(function(){if(te){var ie;(ie=N.current)===null||ie===void 0||ie.setSelectionRange.apply(ie,De(te))}},[te]);var Q=function(ue){X(ue,ue.target.value,{source:"change"})},ee=function(ue){A.current=!1,X(ue,ue.currentTarget.value,{source:"compositionEnd"}),T==null||T(ue)},oe=function(ue){i&&ue.key==="Enter"&&!O.current&&(O.current=!0,i(ue)),s==null||s(ue)},le=function(ue){ue.key==="Enter"&&(O.current=!1),c==null||c(ue)},fe=function(ue){D(!0),a==null||a(ue)},ce=function(ue){D(!1),o==null||o(ue)},Te=function(ue){B(""),M(),N.current&&bb(N.current,ue,r)},Se=q&&"".concat(d,"-out-of-range"),ve=function(){var ue=On(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return se.createElement("input",pe({autoComplete:n},ue,{onChange:Q,onFocus:fe,onBlur:ce,onKeyDown:oe,onKeyUp:le,className:ne(d,W({},"".concat(d,"-disabled"),f),w==null?void 0:w.input),style:E==null?void 0:E.input,ref:N,size:p,type:x,onCompositionStart:function(Ee){A.current=!0,I==null||I(Ee)},onCompositionEnd:ee}))},ae=function(){var ue=Number(G)>0;if(b||J.show){var ye=J.showFormatter?J.showFormatter({value:z,count:U,maxLength:G}):"".concat(U).concat(ue?" / ".concat(G):"");return se.createElement(se.Fragment,null,J.show&&se.createElement("span",{className:ne("".concat(d,"-show-count-suffix"),W({},"".concat(d,"-show-count-has-suffix"),!!b),w==null?void 0:w.count),style:Z({},E==null?void 0:E.count)},ye),b)}return null};return se.createElement(zO,pe({},R,{prefixCls:d,className:ne(g,Se),handleReset:Te,value:z,focused:P,triggerFocus:M,suffix:ae(),disabled:f,classes:C,classNames:w,styles:E}),ve())});function $ve(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(r,a){if(t[a])return t[a];var o=r[a];return typeof o=="function"?o.bind(r):o}}):e}function Ove(e,t){var n=l.useRef(null);function r(){try{var o=e.selectionStart,i=e.selectionEnd,s=e.value,c=s.substring(0,o),u=s.substring(i);n.current={start:o,end:i,value:s,beforeTxt:c,afterTxt:u}}catch{}}function a(){if(e&&n.current&&t)try{var o=e.value,i=n.current,s=i.beforeTxt,c=i.afterTxt,u=i.start,d=o.length;if(o.startsWith(s))d=s.length;else if(o.endsWith(c))d=o.length-n.current.afterTxt.length;else{var f=s[u-1],p=o.indexOf(f,u-1);p!==-1&&(d=p+1)}e.setSelectionRange(d,d)}catch(g){vn(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(g.message))}}return[r,a]}var Nve=function(){var t=l.useState(!1),n=re(t,2),r=n[0],a=n[1];return Xt(function(){a(k0())},[]),r},kve=200,Ave=600;function Mve(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,a=e.upDisabled,o=e.downDisabled,i=e.onStep,s=l.useRef(),c=l.useRef([]),u=l.useRef();u.current=i;var d=function(){clearTimeout(s.current)},f=function(x,C){x.preventDefault(),d(),u.current(C);function w(){u.current(C),s.current=setTimeout(w,kve)}s.current=setTimeout(w,Ave)};l.useEffect(function(){return function(){d(),c.current.forEach(function(v){return Ut.cancel(v)})}},[]);var p=Nve();if(p)return null;var g="".concat(t,"-handler"),h=ne(g,"".concat(g,"-up"),W({},"".concat(g,"-up-disabled"),a)),b=ne(g,"".concat(g,"-down"),W({},"".concat(g,"-down-disabled"),o)),y=function(){return c.current.push(Ut(d))},S={unselectable:"on",role:"button",onMouseUp:y,onMouseLeave:y};return l.createElement("div",{className:"".concat(g,"-wrap")},l.createElement("span",pe({},S,{onMouseDown:function(x){f(x,!0)},"aria-label":"Increase Value","aria-disabled":a,className:h}),n||l.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),l.createElement("span",pe({},S,{onMouseDown:function(x){f(x,!1)},"aria-label":"Decrease Value","aria-disabled":o,className:b}),r||l.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function Q4(e){var t=typeof e=="number"?ey(e):dc(e).fullStr,n=t.includes(".");return n?dc(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const Pve=function(){var e=l.useRef(0),t=function(){Ut.cancel(e.current)};return l.useEffect(function(){return t},[]),function(n){t(),e.current=Ut(function(){n()})}};var Dve=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],Lve=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],J4=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},eP=function(t){var n=ei(t);return n.isInvalidate()?null:n},Fve=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,o=e.min,i=e.max,s=e.step,c=s===void 0?1:s,u=e.defaultValue,d=e.value,f=e.disabled,p=e.readOnly,g=e.upHandler,h=e.downHandler,b=e.keyboard,y=e.changeOnWheel,S=y===void 0?!1:y,v=e.controls,x=v===void 0?!0:v;e.classNames;var C=e.stringMode,w=e.parser,E=e.formatter,I=e.precision,T=e.decimalSeparator,R=e.onChange,_=e.onInput,$=e.onPressEnter,P=e.onStep,D=e.changeOnBlur,A=D===void 0?!0:D,O=e.domRef,N=xt(e,Dve),k="".concat(n,"-input"),M=l.useRef(null),L=l.useState(!1),F=re(L,2),j=F[0],B=F[1],z=l.useRef(!1),H=l.useRef(!1),V=l.useRef(!1),te=l.useState(function(){return ei(d??u)}),Y=re(te,2),J=Y[0],G=Y[1];function U(Oe){d===void 0&&G(Oe)}var q=l.useCallback(function(Oe,Fe){if(!Fe)return I>=0?I:Math.max(ec(Oe),ec(c))},[I,c]),X=l.useCallback(function(Oe){var Fe=String(Oe);if(w)return w(Fe);var Ke=Fe;return T&&(Ke=Ke.replace(T,".")),Ke.replace(/[^\w.-]+/g,"")},[w,T]),Q=l.useRef(""),ee=l.useCallback(function(Oe,Fe){if(E)return E(Oe,{userTyping:Fe,input:String(Q.current)});var Ke=typeof Oe=="number"?ey(Oe):Oe;if(!Fe){var He=q(Ke,Fe);if(BO(Ke)&&(T||He>=0)){var ze=T||".";Ke=mv(Ke,ze,He)}}return Ke},[E,q,T]),oe=l.useState(function(){var Oe=u??d;return J.isInvalidate()&&["string","number"].includes(ht(Oe))?Number.isNaN(Oe)?"":Oe:ee(J.toString(),!1)}),le=re(oe,2),fe=le[0],ce=le[1];Q.current=fe;function Te(Oe,Fe){ce(ee(Oe.isInvalidate()?Oe.toString(!1):Oe.toString(!Fe),Fe))}var Se=l.useMemo(function(){return eP(i)},[i,I]),ve=l.useMemo(function(){return eP(o)},[o,I]),ae=l.useMemo(function(){return!Se||!J||J.isInvalidate()?!1:Se.lessEquals(J)},[Se,J]),ie=l.useMemo(function(){return!ve||!J||J.isInvalidate()?!1:J.lessEquals(ve)},[ve,J]),ue=Ove(M.current,j),ye=re(ue,2),Ee=ye[0],Me=ye[1],Ie=function(Fe){return Se&&!Fe.lessEquals(Se)?Se:ve&&!ve.lessEquals(Fe)?ve:null},Ce=function(Fe){return!Ie(Fe)},me=function(Fe,Ke){var He=Fe,ze=Ce(He)||He.isEmpty();if(!He.isEmpty()&&!Ke&&(He=Ie(He)||He,ze=!0),!p&&!f&&ze){var Ze=He.toString(),je=q(Ze,Ke);return je>=0&&(He=ei(mv(Ze,".",je)),Ce(He)||(He=ei(mv(Ze,".",je,!0)))),He.equals(J)||(U(He),R==null||R(He.isEmpty()?null:J4(C,He)),d===void 0&&Te(He,Ke)),He}return J},we=Pve(),_e=function Oe(Fe){if(Ee(),Q.current=Fe,ce(Fe),!H.current){var Ke=X(Fe),He=ei(Ke);He.isNaN()||me(He,!0)}_==null||_(Fe),we(function(){var ze=Fe;w||(ze=Fe.replace(/。/g,".")),ze!==Fe&&Oe(ze)})},Ne=function(){H.current=!0},he=function(){H.current=!1,_e(M.current.value)},ke=function(Fe){_e(Fe.target.value)},xe=function(Fe){var Ke;if(!(Fe&&ae||!Fe&&ie)){z.current=!1;var He=ei(V.current?Q4(c):c);Fe||(He=He.negate());var ze=(J||ei(0)).add(He.toString()),Ze=me(ze,!1);P==null||P(J4(C,Ze),{offset:V.current?Q4(c):c,type:Fe?"up":"down"}),(Ke=M.current)===null||Ke===void 0||Ke.focus()}},ge=function(Fe){var Ke=ei(X(fe)),He;Ke.isNaN()?He=me(J,Fe):He=me(Ke,Fe),d!==void 0?Te(J,!1):He.isNaN()||Te(He,!1)},Pe=function(){z.current=!0},Ve=function(Fe){var Ke=Fe.key,He=Fe.shiftKey;z.current=!0,V.current=He,Ke==="Enter"&&(H.current||(z.current=!1),ge(!1),$==null||$(Fe)),b!==!1&&!H.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Ke)&&(xe(Ke==="Up"||Ke==="ArrowUp"),Fe.preventDefault())},Ae=function(){z.current=!1,V.current=!1};l.useEffect(function(){if(S&&j){var Oe=function(He){xe(He.deltaY<0),He.preventDefault()},Fe=M.current;if(Fe)return Fe.addEventListener("wheel",Oe,{passive:!1}),function(){return Fe.removeEventListener("wheel",Oe)}}});var be=function(){A&&ge(!1),B(!1),z.current=!1};return cc(function(){J.isInvalidate()||Te(J,!1)},[I,E]),cc(function(){var Oe=ei(d);G(Oe);var Fe=ei(X(fe));(!Oe.equals(Fe)||!z.current||E)&&Te(Oe,z.current)},[d]),cc(function(){E&&Me()},[fe]),l.createElement("div",{ref:O,className:ne(n,r,W(W(W(W(W({},"".concat(n,"-focused"),j),"".concat(n,"-disabled"),f),"".concat(n,"-readonly"),p),"".concat(n,"-not-a-number"),J.isNaN()),"".concat(n,"-out-of-range"),!J.isInvalidate()&&!Ce(J))),style:a,onFocus:function(){B(!0)},onBlur:be,onKeyDown:Ve,onKeyUp:Ae,onCompositionStart:Ne,onCompositionEnd:he,onBeforeInput:Pe},x&&l.createElement(Mve,{prefixCls:n,upNode:g,downNode:h,upDisabled:ae,downDisabled:ie,onStep:xe}),l.createElement("div",{className:"".concat(k,"-wrap")},l.createElement("input",pe({autoComplete:"off",role:"spinbutton","aria-valuemin":o,"aria-valuemax":i,"aria-valuenow":J.isInvalidate()?null:J.toString(),step:c},N,{ref:ea(M,t),className:k,value:fe,onChange:ke,disabled:f,readOnly:p}))))}),jve=l.forwardRef(function(e,t){var n=e.disabled,r=e.style,a=e.prefixCls,o=a===void 0?"rc-input-number":a,i=e.value,s=e.prefix,c=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,p=e.classNames,g=xt(e,Lve),h=l.useRef(null),b=l.useRef(null),y=l.useRef(null),S=function(x){y.current&&iG(y.current,x)};return l.useImperativeHandle(t,function(){return $ve(y.current,{nativeElement:h.current.nativeElement||b.current})}),l.createElement(zO,{className:f,triggerFocus:S,prefixCls:o,value:i,disabled:n,style:r,prefix:s,suffix:c,addonAfter:d,addonBefore:u,classNames:p,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:h},l.createElement(Fve,pe({prefixCls:o,disabled:n,ref:y,domRef:b,className:p==null?void 0:p.input},g)))});const Bve=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto";return Object.assign(Object.assign({},lm(e)),{controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new an(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0})},tP=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:a}=e;const o=t==="lg"?a:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:o,borderEndEndRadius:o},[`${n}-handler-up`]:{borderStartEndRadius:o},[`${n}-handler-down`]:{borderEndEndRadius:o}}}},zve=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:a,inputFontSizeSM:o,inputFontSizeLG:i,controlHeightLG:s,controlHeightSM:c,colorError:u,paddingInlineSM:d,paddingBlockSM:f,paddingBlockLG:p,paddingInlineLG:g,colorTextDescription:h,motionDurationMid:b,handleHoverColor:y,handleOpacity:S,paddingInline:v,paddingBlock:x,handleBg:C,handleActiveBg:w,colorTextDisabled:E,borderRadiusSM:I,borderRadiusLG:T,controlWidth:R,handleBorderColor:_,filledHandleBg:$,lineHeightLG:P,calc:D}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},nn(e)),cm(e)),{display:"inline-block",width:R,margin:0,padding:0,borderRadius:a}),OO(e,{[`${t}-handler-wrap`]:{background:C,[`${t}-handler-down`]:{borderBlockStart:`${K(n)} ${r} ${_}`}}})),kO(e,{[`${t}-handler-wrap`]:{background:$,[`${t}-handler-down`]:{borderBlockStart:`${K(n)} ${r} ${_}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:C}}})),NO(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:i,lineHeight:P,borderRadius:T,[`input${t}-input`]:{height:D(s).sub(D(n).mul(2)).equal(),padding:`${K(p)} ${K(g)}`}},"&-sm":{padding:0,fontSize:o,borderRadius:I,[`input${t}-input`]:{height:D(c).sub(D(n).mul(2)).equal(),padding:`${K(f)} ${K(d)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:u}}},"&-group":Object.assign(Object.assign(Object.assign({},nn(e)),zW(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:T,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:I}}},LW(e)),jW(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},nn(e)),{width:"100%",padding:`${K(x)} ${K(v)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:a,outline:0,transition:`all ${b} linear`,appearance:"textfield",fontSize:"inherit"}),AO(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:0,opacity:S,height:"100%",borderStartStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${b}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` + `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},dve=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},fve=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}),pve=on("Collapse",e=>{const t=zt(e,{collapseHeaderPaddingSM:`${K(e.paddingXS)} ${K(e.paddingSM)}`,collapseHeaderPaddingLG:`${K(e.padding)} ${K(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[lve(t),uve(t),dve(t),cve(t),Jg(t)]},fve),gve=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,collapse:a}=l.useContext(st),{prefixCls:o,className:i,rootClassName:s,style:c,bordered:u=!0,ghost:d,size:f,expandIconPosition:p="start",children:g,expandIcon:h}=e,b=Er($=>{var P;return(P=f??$)!==null&&P!==void 0?P:"middle"}),y=n("collapse",o),S=n(),[v,x,w]=pve(y),C=l.useMemo(()=>p==="left"?"start":p==="right"?"end":p,[p]),E=h??(a==null?void 0:a.expandIcon),I=l.useCallback(function(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const P=typeof E=="function"?E($):l.createElement(Qa,{rotate:$.isActive?90:void 0,"aria-label":$.isActive?"expanded":"collapsed"});return Cr(P,()=>{var D;return{className:ne((D=P==null?void 0:P.props)===null||D===void 0?void 0:D.className,`${y}-arrow`)}})},[E,y]),T=ne(`${y}-icon-position-${C}`,{[`${y}-borderless`]:!u,[`${y}-rtl`]:r==="rtl",[`${y}-ghost`]:!!d,[`${y}-${b}`]:b!=="middle"},a==null?void 0:a.className,i,s,x,w),R=Object.assign(Object.assign({},Sd(S)),{motionAppear:!1,leavedClassName:`${y}-content-hidden`}),_=l.useMemo(()=>g?vr(g).map(($,P)=>{var D,A;if(!((D=$.props)===null||D===void 0)&&D.disabled){const O=(A=$.key)!==null&&A!==void 0?A:String(P),{disabled:N,collapsible:k}=$.props,M=Object.assign(Object.assign({},On($.props,["disabled"])),{key:O,collapsible:k??(N?"disabled":void 0)});return Cr($,M)}return $}):null,[g]);return v(l.createElement(jO,Object.assign({ref:t,openMotion:R},On(e,["rootClassName"]),{expandIcon:I,prefixCls:y,className:T,style:Object.assign(Object.assign({},a==null?void 0:a.style),c)}),_))}),yl=Object.assign(gve,{Panel:sve}),mve=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:a,textPaddingInline:o,orientationMargin:i,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},nn(e)),{borderBlockStart:`${K(a)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${K(a)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${K(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${K(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${K(a)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${i} * 100%)`},"&::after":{width:`calc(100% - ${i} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${i} * 100%)`},"&::after":{width:`calc(${i} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:o},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${K(a)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:a,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${K(a)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:a,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},hve=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),vve=on("Divider",e=>{const t=zt(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[mve(t)]},hve,{unitless:{orientationMargin:!0}});var bve=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:t,direction:n,divider:r}=l.useContext(st),{prefixCls:a,type:o="horizontal",orientation:i="center",orientationMargin:s,className:c,rootClassName:u,children:d,dashed:f,variant:p="solid",plain:g,style:h}=e,b=bve(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),y=t("divider",a),[S,v,x]=vve(y),w=!!d,C=i==="left"&&s!=null,E=i==="right"&&s!=null,I=ne(y,r==null?void 0:r.className,v,x,`${y}-${o}`,{[`${y}-with-text`]:w,[`${y}-with-text-${i}`]:w,[`${y}-dashed`]:!!f,[`${y}-${p}`]:p!=="solid",[`${y}-plain`]:!!g,[`${y}-rtl`]:n==="rtl",[`${y}-no-default-orientation-margin-left`]:C,[`${y}-no-default-orientation-margin-right`]:E},c,u),T=l.useMemo(()=>typeof s=="number"?s:/^\d+$/.test(s)?Number(s):s,[s]),R=Object.assign(Object.assign({},C&&{marginLeft:T}),E&&{marginRight:T});return S(l.createElement("div",Object.assign({className:I,style:Object.assign(Object.assign({},r==null?void 0:r.style),h)},b,{role:"separator"}),d&&o!=="vertical"&&l.createElement("span",{className:`${y}-inner-text`,style:R},d)))};var yve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},Sve=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:yve}))},xve=l.forwardRef(Sve);function OR(){return typeof BigInt=="function"}function oG(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function dc(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",a=r.split("."),o=a[0]||"0",i=a[1]||"0";o==="0"&&i==="0"&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:o,decimalStr:i,fullStr:"".concat(s).concat(r)}}function BO(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function ec(e){var t=String(e);if(BO(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&zO(t)?t.length-t.indexOf(".")-1:0}function ty(e){var t=String(e);if(BO(e)){if(e>Number.MAX_SAFE_INTEGER)return String(OR()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":dc("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),Cve=function(){function e(t){if(Xn(this,e),W(this,"origin",""),W(this,"number",void 0),W(this,"empty",void 0),oG(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return Zn(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var a=this.number+r;if(a>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(aNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(a0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":ty(this.number):this.origin}}]),e}();function ti(e){return OR()?new wve(e):new Cve(e)}function hv(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var a=dc(e),o=a.negativeStr,i=a.integerStr,s=a.decimalStr,c="".concat(t).concat(s),u="".concat(o).concat(i);if(n>=0){var d=Number(s[n]);if(d>=5&&!r){var f=ti(e).add("".concat(o,"0.").concat("0".repeat(n)).concat(10-d));return hv(f.toString(),t,n,r)}return n===0?u:"".concat(u).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return c===".0"?u:"".concat(u).concat(c)}function Eve(e){return!!(e.addonBefore||e.addonAfter)}function Ive(e){return!!(e.prefix||e.suffix||e.allowClear)}function Z4(e,t,n){var r=t.cloneNode(!0),a=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},a}function yb(e,t,n,r){if(n){var a=t;if(t.type==="click"){a=Z4(t,e,""),n(a);return}if(e.type!=="file"&&r!==void 0){a=Z4(t,e,r),n(a);return}n(a)}}function iG(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var a=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(a,a);break;default:e.setSelectionRange(0,a)}}}}var HO=se.forwardRef(function(e,t){var n,r,a=e.inputElement,o=e.children,i=e.prefixCls,s=e.prefix,c=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,p=e.style,g=e.disabled,h=e.readOnly,b=e.focused,y=e.triggerFocus,S=e.allowClear,v=e.value,x=e.handleReset,w=e.hidden,C=e.classes,E=e.classNames,I=e.dataAttrs,T=e.styles,R=e.components,_=e.onClear,$=o??a,P=(R==null?void 0:R.affixWrapper)||"span",D=(R==null?void 0:R.groupWrapper)||"span",A=(R==null?void 0:R.wrapper)||"span",O=(R==null?void 0:R.groupAddon)||"span",N=l.useRef(null),k=function(ee){var oe;(oe=N.current)!==null&&oe!==void 0&&oe.contains(ee.target)&&(y==null||y())},M=Ive(e),L=l.cloneElement($,{value:v,className:ne($.props.className,!M&&(E==null?void 0:E.variant))||null}),F=l.useRef(null);if(se.useImperativeHandle(t,function(){return{nativeElement:F.current||N.current}}),M){var j=null;if(S){var B=!g&&!h&&v,z="".concat(i,"-clear-icon"),H=mt(S)==="object"&&S!==null&&S!==void 0&&S.clearIcon?S.clearIcon:"✖";j=se.createElement("span",{onClick:function(ee){x==null||x(ee),_==null||_()},onMouseDown:function(ee){return ee.preventDefault()},className:ne(z,W(W({},"".concat(z,"-hidden"),!B),"".concat(z,"-has-suffix"),!!c)),role:"button",tabIndex:-1},H)}var V="".concat(i,"-affix-wrapper"),te=ne(V,W(W(W(W(W({},"".concat(i,"-disabled"),g),"".concat(V,"-disabled"),g),"".concat(V,"-focused"),b),"".concat(V,"-readonly"),h),"".concat(V,"-input-with-clear-btn"),c&&S&&v),C==null?void 0:C.affixWrapper,E==null?void 0:E.affixWrapper,E==null?void 0:E.variant),Y=(c||S)&&se.createElement("span",{className:ne("".concat(i,"-suffix"),E==null?void 0:E.suffix),style:T==null?void 0:T.suffix},j,c);L=se.createElement(P,pe({className:te,style:T==null?void 0:T.affixWrapper,onClick:k},I==null?void 0:I.affixWrapper,{ref:N}),s&&se.createElement("span",{className:ne("".concat(i,"-prefix"),E==null?void 0:E.prefix),style:T==null?void 0:T.prefix},s),L,Y)}if(Eve(e)){var J="".concat(i,"-group"),G="".concat(J,"-addon"),U="".concat(J,"-wrapper"),q=ne("".concat(i,"-wrapper"),J,C==null?void 0:C.wrapper,E==null?void 0:E.wrapper),X=ne(U,W({},"".concat(U,"-disabled"),g),C==null?void 0:C.group,E==null?void 0:E.groupWrapper);L=se.createElement(D,{className:X,ref:F},se.createElement(A,{className:q},u&&se.createElement(O,{className:G},u),L,d&&se.createElement(O,{className:G},d)))}return se.cloneElement(L,{className:ne((n=L.props)===null||n===void 0?void 0:n.className,f)||null,style:Z(Z({},(r=L.props)===null||r===void 0?void 0:r.style),p),hidden:w})}),Tve=["show"];function sG(e,t){return l.useMemo(function(){var n={};t&&(n.show=mt(t)==="object"&&t.formatter?t.formatter:!!t),n=Z(Z({},n),e);var r=n,a=r.show,o=xt(r,Tve);return Z(Z({},o),{},{show:!!a,showFormatter:typeof a=="function"?a:void 0,strategy:o.strategy||function(i){return i.length}})},[e,t])}var Rve=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],_ve=l.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,a=e.onFocus,o=e.onBlur,i=e.onPressEnter,s=e.onKeyDown,c=e.onKeyUp,u=e.prefixCls,d=u===void 0?"rc-input":u,f=e.disabled,p=e.htmlSize,g=e.className,h=e.maxLength,b=e.suffix,y=e.showCount,S=e.count,v=e.type,x=v===void 0?"text":v,w=e.classes,C=e.classNames,E=e.styles,I=e.onCompositionStart,T=e.onCompositionEnd,R=xt(e,Rve),_=l.useState(!1),$=re(_,2),P=$[0],D=$[1],A=l.useRef(!1),O=l.useRef(!1),N=l.useRef(null),k=l.useRef(null),M=function(ue){N.current&&iG(N.current,ue)},L=sn(e.defaultValue,{value:e.value}),F=re(L,2),j=F[0],B=F[1],z=j==null?"":String(j),H=l.useState(null),V=re(H,2),te=V[0],Y=V[1],J=sG(S,y),G=J.max||h,U=J.strategy(z),q=!!G&&U>G;l.useImperativeHandle(t,function(){var ie;return{focus:M,blur:function(){var xe;(xe=N.current)===null||xe===void 0||xe.blur()},setSelectionRange:function(xe,we,Me){var Ce;(Ce=N.current)===null||Ce===void 0||Ce.setSelectionRange(xe,we,Me)},select:function(){var xe;(xe=N.current)===null||xe===void 0||xe.select()},input:N.current,nativeElement:((ie=k.current)===null||ie===void 0?void 0:ie.nativeElement)||N.current}}),l.useEffect(function(){D(function(ie){return ie&&f?!1:ie})},[f]);var X=function(ue,xe,we){var Me=xe;if(!A.current&&J.exceedFormatter&&J.max&&J.strategy(xe)>J.max){if(Me=J.exceedFormatter(xe,{max:J.max}),xe!==Me){var Ce,De;Y([((Ce=N.current)===null||Ce===void 0?void 0:Ce.selectionStart)||0,((De=N.current)===null||De===void 0?void 0:De.selectionEnd)||0])}}else if(we.source==="compositionEnd")return;B(Me),N.current&&yb(N.current,ue,r,Me)};l.useEffect(function(){if(te){var ie;(ie=N.current)===null||ie===void 0||ie.setSelectionRange.apply(ie,Pe(te))}},[te]);var Q=function(ue){X(ue,ue.target.value,{source:"change"})},ee=function(ue){A.current=!1,X(ue,ue.currentTarget.value,{source:"compositionEnd"}),T==null||T(ue)},oe=function(ue){i&&ue.key==="Enter"&&!O.current&&(O.current=!0,i(ue)),s==null||s(ue)},le=function(ue){ue.key==="Enter"&&(O.current=!1),c==null||c(ue)},fe=function(ue){D(!0),a==null||a(ue)},ce=function(ue){D(!1),o==null||o(ue)},Ie=function(ue){B(""),M(),N.current&&yb(N.current,ue,r)},be=q&&"".concat(d,"-out-of-range"),he=function(){var ue=On(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return se.createElement("input",pe({autoComplete:n},ue,{onChange:Q,onFocus:fe,onBlur:ce,onKeyDown:oe,onKeyUp:le,className:ne(d,W({},"".concat(d,"-disabled"),f),C==null?void 0:C.input),style:E==null?void 0:E.input,ref:N,size:p,type:x,onCompositionStart:function(we){A.current=!0,I==null||I(we)},onCompositionEnd:ee}))},ae=function(){var ue=Number(G)>0;if(b||J.show){var xe=J.showFormatter?J.showFormatter({value:z,count:U,maxLength:G}):"".concat(U).concat(ue?" / ".concat(G):"");return se.createElement(se.Fragment,null,J.show&&se.createElement("span",{className:ne("".concat(d,"-show-count-suffix"),W({},"".concat(d,"-show-count-has-suffix"),!!b),C==null?void 0:C.count),style:Z({},E==null?void 0:E.count)},xe),b)}return null};return se.createElement(HO,pe({},R,{prefixCls:d,className:ne(g,be),handleReset:Ie,value:z,focused:P,triggerFocus:M,suffix:ae(),disabled:f,classes:w,classNames:C,styles:E}),he())});function $ve(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(r,a){if(t[a])return t[a];var o=r[a];return typeof o=="function"?o.bind(r):o}}):e}function Ove(e,t){var n=l.useRef(null);function r(){try{var o=e.selectionStart,i=e.selectionEnd,s=e.value,c=s.substring(0,o),u=s.substring(i);n.current={start:o,end:i,value:s,beforeTxt:c,afterTxt:u}}catch{}}function a(){if(e&&n.current&&t)try{var o=e.value,i=n.current,s=i.beforeTxt,c=i.afterTxt,u=i.start,d=o.length;if(o.startsWith(s))d=s.length;else if(o.endsWith(c))d=o.length-n.current.afterTxt.length;else{var f=s[u-1],p=o.indexOf(f,u-1);p!==-1&&(d=p+1)}e.setSelectionRange(d,d)}catch(g){vn(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(g.message))}}return[r,a]}var Nve=function(){var t=l.useState(!1),n=re(t,2),r=n[0],a=n[1];return Xt(function(){a(A0())},[]),r},kve=200,Ave=600;function Mve(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,a=e.upDisabled,o=e.downDisabled,i=e.onStep,s=l.useRef(),c=l.useRef([]),u=l.useRef();u.current=i;var d=function(){clearTimeout(s.current)},f=function(x,w){x.preventDefault(),d(),u.current(w);function C(){u.current(w),s.current=setTimeout(C,kve)}s.current=setTimeout(C,Ave)};l.useEffect(function(){return function(){d(),c.current.forEach(function(v){return Ut.cancel(v)})}},[]);var p=Nve();if(p)return null;var g="".concat(t,"-handler"),h=ne(g,"".concat(g,"-up"),W({},"".concat(g,"-up-disabled"),a)),b=ne(g,"".concat(g,"-down"),W({},"".concat(g,"-down-disabled"),o)),y=function(){return c.current.push(Ut(d))},S={unselectable:"on",role:"button",onMouseUp:y,onMouseLeave:y};return l.createElement("div",{className:"".concat(g,"-wrap")},l.createElement("span",pe({},S,{onMouseDown:function(x){f(x,!0)},"aria-label":"Increase Value","aria-disabled":a,className:h}),n||l.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),l.createElement("span",pe({},S,{onMouseDown:function(x){f(x,!1)},"aria-label":"Decrease Value","aria-disabled":o,className:b}),r||l.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function Q4(e){var t=typeof e=="number"?ty(e):dc(e).fullStr,n=t.includes(".");return n?dc(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const Pve=function(){var e=l.useRef(0),t=function(){Ut.cancel(e.current)};return l.useEffect(function(){return t},[]),function(n){t(),e.current=Ut(function(){n()})}};var Dve=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],Lve=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],J4=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},eP=function(t){var n=ti(t);return n.isInvalidate()?null:n},Fve=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,o=e.min,i=e.max,s=e.step,c=s===void 0?1:s,u=e.defaultValue,d=e.value,f=e.disabled,p=e.readOnly,g=e.upHandler,h=e.downHandler,b=e.keyboard,y=e.changeOnWheel,S=y===void 0?!1:y,v=e.controls,x=v===void 0?!0:v;e.classNames;var w=e.stringMode,C=e.parser,E=e.formatter,I=e.precision,T=e.decimalSeparator,R=e.onChange,_=e.onInput,$=e.onPressEnter,P=e.onStep,D=e.changeOnBlur,A=D===void 0?!0:D,O=e.domRef,N=xt(e,Dve),k="".concat(n,"-input"),M=l.useRef(null),L=l.useState(!1),F=re(L,2),j=F[0],B=F[1],z=l.useRef(!1),H=l.useRef(!1),V=l.useRef(!1),te=l.useState(function(){return ti(d??u)}),Y=re(te,2),J=Y[0],G=Y[1];function U(Ae){d===void 0&&G(Ae)}var q=l.useCallback(function(Ae,Fe){if(!Fe)return I>=0?I:Math.max(ec(Ae),ec(c))},[I,c]),X=l.useCallback(function(Ae){var Fe=String(Ae);if(C)return C(Fe);var Ve=Fe;return T&&(Ve=Ve.replace(T,".")),Ve.replace(/[^\w.-]+/g,"")},[C,T]),Q=l.useRef(""),ee=l.useCallback(function(Ae,Fe){if(E)return E(Ae,{userTyping:Fe,input:String(Q.current)});var Ve=typeof Ae=="number"?ty(Ae):Ae;if(!Fe){var He=q(Ve,Fe);if(zO(Ve)&&(T||He>=0)){var ze=T||".";Ve=hv(Ve,ze,He)}}return Ve},[E,q,T]),oe=l.useState(function(){var Ae=u??d;return J.isInvalidate()&&["string","number"].includes(mt(Ae))?Number.isNaN(Ae)?"":Ae:ee(J.toString(),!1)}),le=re(oe,2),fe=le[0],ce=le[1];Q.current=fe;function Ie(Ae,Fe){ce(ee(Ae.isInvalidate()?Ae.toString(!1):Ae.toString(!Fe),Fe))}var be=l.useMemo(function(){return eP(i)},[i,I]),he=l.useMemo(function(){return eP(o)},[o,I]),ae=l.useMemo(function(){return!be||!J||J.isInvalidate()?!1:be.lessEquals(J)},[be,J]),ie=l.useMemo(function(){return!he||!J||J.isInvalidate()?!1:J.lessEquals(he)},[he,J]),ue=Ove(M.current,j),xe=re(ue,2),we=xe[0],Me=xe[1],Ce=function(Fe){return be&&!Fe.lessEquals(be)?be:he&&!he.lessEquals(Fe)?he:null},De=function(Fe){return!Ce(Fe)},ye=function(Fe,Ve){var He=Fe,ze=De(He)||He.isEmpty();if(!He.isEmpty()&&!Ve&&(He=Ce(He)||He,ze=!0),!p&&!f&&ze){var Xe=He.toString(),je=q(Xe,Ve);return je>=0&&(He=ti(hv(Xe,".",je)),De(He)||(He=ti(hv(Xe,".",je,!0)))),He.equals(J)||(U(He),R==null||R(He.isEmpty()?null:J4(w,He)),d===void 0&&Ie(He,Ve)),He}return J},ve=Pve(),$e=function Ae(Fe){if(we(),Q.current=Fe,ce(Fe),!H.current){var Ve=X(Fe),He=ti(Ve);He.isNaN()||ye(He,!0)}_==null||_(Fe),ve(function(){var ze=Fe;C||(ze=Fe.replace(/。/g,".")),ze!==Fe&&Ae(ze)})},Ee=function(){H.current=!0},ge=function(){H.current=!1,$e(M.current.value)},Ne=function(Fe){$e(Fe.target.value)},Re=function(Fe){var Ve;if(!(Fe&&ae||!Fe&&ie)){z.current=!1;var He=ti(V.current?Q4(c):c);Fe||(He=He.negate());var ze=(J||ti(0)).add(He.toString()),Xe=ye(ze,!1);P==null||P(J4(w,Xe),{offset:V.current?Q4(c):c,type:Fe?"up":"down"}),(Ve=M.current)===null||Ve===void 0||Ve.focus()}},me=function(Fe){var Ve=ti(X(fe)),He;Ve.isNaN()?He=ye(J,Fe):He=ye(Ve,Fe),d!==void 0?Ie(J,!1):He.isNaN()||Ie(He,!1)},_e=function(){z.current=!0},Ze=function(Fe){var Ve=Fe.key,He=Fe.shiftKey;z.current=!0,V.current=He,Ve==="Enter"&&(H.current||(z.current=!1),me(!1),$==null||$(Fe)),b!==!1&&!H.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Ve)&&(Re(Ve==="Up"||Ve==="ArrowUp"),Fe.preventDefault())},Oe=function(){z.current=!1,V.current=!1};l.useEffect(function(){if(S&&j){var Ae=function(He){Re(He.deltaY<0),He.preventDefault()},Fe=M.current;if(Fe)return Fe.addEventListener("wheel",Ae,{passive:!1}),function(){return Fe.removeEventListener("wheel",Ae)}}});var Se=function(){A&&me(!1),B(!1),z.current=!1};return cc(function(){J.isInvalidate()||Ie(J,!1)},[I,E]),cc(function(){var Ae=ti(d);G(Ae);var Fe=ti(X(fe));(!Ae.equals(Fe)||!z.current||E)&&Ie(Ae,z.current)},[d]),cc(function(){E&&Me()},[fe]),l.createElement("div",{ref:O,className:ne(n,r,W(W(W(W(W({},"".concat(n,"-focused"),j),"".concat(n,"-disabled"),f),"".concat(n,"-readonly"),p),"".concat(n,"-not-a-number"),J.isNaN()),"".concat(n,"-out-of-range"),!J.isInvalidate()&&!De(J))),style:a,onFocus:function(){B(!0)},onBlur:Se,onKeyDown:Ze,onKeyUp:Oe,onCompositionStart:Ee,onCompositionEnd:ge,onBeforeInput:_e},x&&l.createElement(Mve,{prefixCls:n,upNode:g,downNode:h,upDisabled:ae,downDisabled:ie,onStep:Re}),l.createElement("div",{className:"".concat(k,"-wrap")},l.createElement("input",pe({autoComplete:"off",role:"spinbutton","aria-valuemin":o,"aria-valuemax":i,"aria-valuenow":J.isInvalidate()?null:J.toString(),step:c},N,{ref:na(M,t),className:k,value:fe,onChange:Ne,disabled:f,readOnly:p}))))}),jve=l.forwardRef(function(e,t){var n=e.disabled,r=e.style,a=e.prefixCls,o=a===void 0?"rc-input-number":a,i=e.value,s=e.prefix,c=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,p=e.classNames,g=xt(e,Lve),h=l.useRef(null),b=l.useRef(null),y=l.useRef(null),S=function(x){y.current&&iG(y.current,x)};return l.useImperativeHandle(t,function(){return $ve(y.current,{nativeElement:h.current.nativeElement||b.current})}),l.createElement(HO,{className:f,triggerFocus:S,prefixCls:o,value:i,disabled:n,style:r,prefix:s,suffix:c,addonAfter:d,addonBefore:u,classNames:p,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:h},l.createElement(Fve,pe({prefixCls:o,disabled:n,ref:y,domRef:b,className:p==null?void 0:p.input},g)))});const Bve=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto";return Object.assign(Object.assign({},um(e)),{controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new an(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0})},tP=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:a}=e;const o=t==="lg"?a:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:o,borderEndEndRadius:o},[`${n}-handler-up`]:{borderStartEndRadius:o},[`${n}-handler-down`]:{borderEndEndRadius:o}}}},zve=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:a,inputFontSizeSM:o,inputFontSizeLG:i,controlHeightLG:s,controlHeightSM:c,colorError:u,paddingInlineSM:d,paddingBlockSM:f,paddingBlockLG:p,paddingInlineLG:g,colorTextDescription:h,motionDurationMid:b,handleHoverColor:y,handleOpacity:S,paddingInline:v,paddingBlock:x,handleBg:w,handleActiveBg:C,colorTextDisabled:E,borderRadiusSM:I,borderRadiusLG:T,controlWidth:R,handleBorderColor:_,filledHandleBg:$,lineHeightLG:P,calc:D}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},nn(e)),dm(e)),{display:"inline-block",width:R,margin:0,padding:0,borderRadius:a}),NO(e,{[`${t}-handler-wrap`]:{background:w,[`${t}-handler-down`]:{borderBlockStart:`${K(n)} ${r} ${_}`}}})),AO(e,{[`${t}-handler-wrap`]:{background:$,[`${t}-handler-down`]:{borderBlockStart:`${K(n)} ${r} ${_}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:w}}})),kO(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:i,lineHeight:P,borderRadius:T,[`input${t}-input`]:{height:D(s).sub(D(n).mul(2)).equal(),padding:`${K(p)} ${K(g)}`}},"&-sm":{padding:0,fontSize:o,borderRadius:I,[`input${t}-input`]:{height:D(c).sub(D(n).mul(2)).equal(),padding:`${K(f)} ${K(d)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:u}}},"&-group":Object.assign(Object.assign(Object.assign({},nn(e)),zW(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:T,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:I}}},LW(e)),jW(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},nn(e)),{width:"100%",padding:`${K(x)} ${K(v)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:a,outline:0,transition:`all ${b} linear`,appearance:"textfield",fontSize:"inherit"}),MO(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:0,opacity:S,height:"100%",borderStartStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${b}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` ${t}-handler-up-inner, ${t}-handler-down-inner - `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:h,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${K(n)} ${r} ${_}`,transition:`all ${b} linear`,"&:active":{background:w},"&:hover":{height:"60%",[` + `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:h,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${K(n)} ${r} ${_}`,transition:`all ${b} linear`,"&:active":{background:C},"&:hover":{height:"60%",[` ${t}-handler-up-inner, ${t}-handler-down-inner `]:{color:y}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},zd()),{color:h,transition:`all ${b} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:a},[`${t}-handler-down`]:{borderEndEndRadius:a}},tP(e,"lg")),tP(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[` @@ -341,7 +341,7 @@ html body { `]:{cursor:"not-allowed"},[` ${t}-handler-up-disabled:hover &-handler-up-inner, ${t}-handler-down-disabled:hover &-handler-down-inner - `]:{color:E}})}]},Hve=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:a,controlWidth:o,borderRadiusLG:i,borderRadiusSM:s,paddingInlineLG:c,paddingInlineSM:u,paddingBlockLG:d,paddingBlockSM:f,motionDurationMid:p}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${K(n)} 0`}},cm(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:o,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:i,paddingInlineStart:c,[`input${t}-input`]:{padding:`${K(d)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:u,[`input${t}-input`]:{padding:`${K(f)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:a},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:a,transition:`margin ${p}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(r).equal()}})}},Uve=on("InputNumber",e=>{const t=zt(e,sm(e));return[zve(t),Hve(t),qg(t)]},Bve,{unitless:{handleOpacity:!0}});var Vve=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:n,direction:r}=l.useContext(st),a=l.useRef(null);l.useImperativeHandle(t,()=>a.current);const{className:o,rootClassName:i,size:s,disabled:c,prefixCls:u,addonBefore:d,addonAfter:f,prefix:p,suffix:g,bordered:h,readOnly:b,status:y,controls:S,variant:v}=e,x=Vve(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),C=n("input-number",u),w=Un(C),[E,I,T]=Uve(C,w),{compactSize:R,compactItemClassnames:_}=Os(C,r);let $=l.createElement(xve,{className:`${C}-handler-up-inner`}),P=l.createElement(D0,{className:`${C}-handler-down-inner`});const D=typeof S=="boolean"?S:void 0;typeof S=="object"&&($=typeof S.upIcon>"u"?$:l.createElement("span",{className:`${C}-handler-up-inner`},S.upIcon),P=typeof S.downIcon>"u"?P:l.createElement("span",{className:`${C}-handler-down-inner`},S.downIcon));const{hasFeedback:A,status:O,isFormItemInput:N,feedbackIcon:k}=l.useContext(zr),M=Nl(O,y),L=Er(J=>{var G;return(G=s??R)!==null&&G!==void 0?G:J}),F=l.useContext(Zr),j=c??F,[B,z]=Dc("inputNumber",v,h),H=A&&l.createElement(l.Fragment,null,k),V=ne({[`${C}-lg`]:L==="large",[`${C}-sm`]:L==="small",[`${C}-rtl`]:r==="rtl",[`${C}-in-form-item`]:N},I),te=`${C}-group`,Y=l.createElement(jve,Object.assign({ref:a,disabled:j,className:ne(T,w,o,i,_),upHandler:$,downHandler:P,prefixCls:C,readOnly:b,controls:D,prefix:p,suffix:H||g,addonBefore:d&&l.createElement(Ui,{form:!0,space:!0},d),addonAfter:f&&l.createElement(Ui,{form:!0,space:!0},f),classNames:{input:V,variant:ne({[`${C}-${B}`]:z},Is(C,M,A)),affixWrapper:ne({[`${C}-affix-wrapper-sm`]:L==="small",[`${C}-affix-wrapper-lg`]:L==="large",[`${C}-affix-wrapper-rtl`]:r==="rtl",[`${C}-affix-wrapper-without-controls`]:S===!1},I),wrapper:ne({[`${te}-rtl`]:r==="rtl"},I),groupWrapper:ne({[`${C}-group-wrapper-sm`]:L==="small",[`${C}-group-wrapper-lg`]:L==="large",[`${C}-group-wrapper-rtl`]:r==="rtl",[`${C}-group-wrapper-${B}`]:z},Is(`${C}-group-wrapper`,M,A),I)}},x));return E(Y)}),cG=lG,Wve=e=>l.createElement(yi,{theme:{components:{InputNumber:{handleVisible:!0}}}},l.createElement(lG,Object.assign({},e)));cG._InternalPanelDoNotUseOrYouWillBeFired=Wve;const Gve=e=>{const{getPrefixCls:t,direction:n}=l.useContext(st),{prefixCls:r,className:a}=e,o=t("input-group",r),i=t("input"),[s,c]=PO(i),u=ne(o,{[`${o}-lg`]:e.size==="large",[`${o}-sm`]:e.size==="small",[`${o}-compact`]:e.compact,[`${o}-rtl`]:n==="rtl"},c,a),d=l.useContext(zr),f=l.useMemo(()=>Object.assign(Object.assign({},d),{isFormItemInput:!1}),[d]);return s(l.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},l.createElement(zr.Provider,{value:f},e.children)))},uG=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:se.createElement(Pc,null)}),t};function dG(e,t){const n=l.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var a,o,i,s;!((a=e.current)===null||a===void 0)&&a.input&&((o=e.current)===null||o===void 0?void 0:o.input.getAttribute("type"))==="password"&&(!((i=e.current)===null||i===void 0)&&i.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return l.useEffect(()=>(t&&r(),()=>n.current.forEach(a=>{a&&clearTimeout(a)})),[]),r}function qve(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var Kve=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const{prefixCls:r,bordered:a=!0,status:o,size:i,disabled:s,onBlur:c,onFocus:u,suffix:d,allowClear:f,addonAfter:p,addonBefore:g,className:h,style:b,styles:y,rootClassName:S,onChange:v,classNames:x,variant:C}=e,w=Kve(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:E,direction:I,input:T}=se.useContext(st),R=E("input",r),_=l.useRef(null),$=Un(R),[P,D,A]=PO(R,$),{compactSize:O,compactItemClassnames:N}=Os(R,I),k=Er(Q=>{var ee;return(ee=i??O)!==null&&ee!==void 0?ee:Q}),M=se.useContext(Zr),L=s??M,{status:F,hasFeedback:j,feedbackIcon:B}=l.useContext(zr),z=Nl(F,o),H=qve(e)||!!j;l.useRef(H);const V=dG(_,!0),te=Q=>{V(),c==null||c(Q)},Y=Q=>{V(),u==null||u(Q)},J=Q=>{V(),v==null||v(Q)},G=(j||d)&&se.createElement(se.Fragment,null,d,j&&B),U=uG(f??(T==null?void 0:T.allowClear)),[q,X]=Dc("input",C,a);return P(se.createElement(_ve,Object.assign({ref:ea(t,_),prefixCls:R,autoComplete:T==null?void 0:T.autoComplete},w,{disabled:L,onBlur:te,onFocus:Y,style:Object.assign(Object.assign({},T==null?void 0:T.style),b),styles:Object.assign(Object.assign({},T==null?void 0:T.styles),y),suffix:G,allowClear:U,className:ne(h,S,A,$,N,T==null?void 0:T.className),onChange:J,addonBefore:g&&se.createElement(Ui,{form:!0,space:!0},g),addonAfter:p&&se.createElement(Ui,{form:!0,space:!0},p),classNames:Object.assign(Object.assign(Object.assign({},x),T==null?void 0:T.classNames),{input:ne({[`${R}-sm`]:k==="small",[`${R}-lg`]:k==="large",[`${R}-rtl`]:I==="rtl"},x==null?void 0:x.input,(n=T==null?void 0:T.classNames)===null||n===void 0?void 0:n.input,D),variant:ne({[`${R}-${q}`]:X},Is(R,z)),affixWrapper:ne({[`${R}-affix-wrapper-sm`]:k==="small",[`${R}-affix-wrapper-lg`]:k==="large",[`${R}-affix-wrapper-rtl`]:I==="rtl"},D),wrapper:ne({[`${R}-group-rtl`]:I==="rtl"},D),groupWrapper:ne({[`${R}-group-wrapper-sm`]:k==="small",[`${R}-group-wrapper-lg`]:k==="large",[`${R}-group-wrapper-rtl`]:I==="rtl",[`${R}-group-wrapper-${q}`]:X},Is(`${R}-group-wrapper`,z,j),D)})})))}),Xve=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},Zve=on(["Input","OTP"],e=>{const t=zt(e,sm(e));return[Xve(t)]},lm);var Qve=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{value:n,onChange:r,onActiveChange:a,index:o,mask:i}=e,s=Qve(e,["value","onChange","onActiveChange","index","mask"]),c=n&&typeof i=="string"?i:n,u=h=>{r(o,h.target.value)},d=l.useRef(null);l.useImperativeHandle(t,()=>d.current);const f=()=>{Ut(()=>{var h;const b=(h=d.current)===null||h===void 0?void 0:h.input;document.activeElement===b&&b&&b.select()})},p=h=>{let{key:b}=h;b==="ArrowLeft"?a(o-1):b==="ArrowRight"&&a(o+1),f()},g=h=>{h.key==="Backspace"&&!n&&a(o-1),f()};return l.createElement(ty,Object.assign({},s,{ref:d,value:c,onInput:u,onFocus:f,onKeyDown:p,onKeyUp:g,onMouseDown:f,onMouseUp:f,type:i===!0?"password":"text"}))});var ebe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,length:r=6,size:a,defaultValue:o,value:i,onChange:s,formatter:c,variant:u,disabled:d,status:f,autoFocus:p,mask:g}=e,h=ebe(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask"]),{getPrefixCls:b,direction:y}=l.useContext(st),S=b("otp",n),v=Yn(h,{aria:!0,data:!0,attr:!0}),x=Un(S),[C,w,E]=Zve(S,x),I=Er(j=>a??j),T=l.useContext(zr),R=Nl(T.status,f),_=l.useMemo(()=>Object.assign(Object.assign({},T),{status:R,hasFeedback:!1,feedbackIcon:null}),[T,R]),$=l.useRef(null),P=l.useRef({});l.useImperativeHandle(t,()=>({focus:()=>{var j;(j=P.current[0])===null||j===void 0||j.focus()},blur:()=>{var j;for(let B=0;Bc?c(j):j,[A,O]=l.useState(vh(D(o||"")));l.useEffect(()=>{i!==void 0&&O(vh(i))},[i]);const N=Wt(j=>{O(j),s&&j.length===r&&j.every(B=>B)&&j.some((B,z)=>A[z]!==B)&&s(j.join(""))}),k=Wt((j,B)=>{let z=De(A);for(let V=0;V=0&&!z[V];V-=1)z.pop();const H=D(z.map(V=>V||" ").join(""));return z=vh(H).map((V,te)=>V===" "&&!z[te]?z[te]:V),z}),M=(j,B)=>{var z;const H=k(j,B),V=Math.min(j+B.length,r-1);V!==j&&((z=P.current[V])===null||z===void 0||z.focus()),N(H)},L=j=>{var B;(B=P.current[j])===null||B===void 0||B.focus()},F={variant:u,disabled:d,status:R,mask:g};return C(l.createElement("div",Object.assign({},v,{ref:$,className:ne(S,{[`${S}-sm`]:I==="small",[`${S}-lg`]:I==="large",[`${S}-rtl`]:y==="rtl"},E,w)}),l.createElement(zr.Provider,{value:_},Array.from({length:r}).map((j,B)=>{const z=`otp-${B}`,H=A[B]||"";return l.createElement(Jve,Object.assign({ref:V=>{P.current[B]=V},key:z,index:B,size:I,htmlSize:1,className:`${S}-input`,onChange:M,value:H,onActiveChange:L,autoFocus:B===0&&p},F))}))))});var nbe={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"},rbe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:nbe}))},abe=l.forwardRef(rbe),obe={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"},ibe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:obe}))},Sl=l.forwardRef(ibe),sbe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);ae?l.createElement(Sl,null):l.createElement(abe,null),cbe={click:"onClick",hover:"onMouseOver"},ube=l.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:a=!0,iconRender:o=lbe}=e,i=l.useContext(Zr),s=n??i,c=typeof a=="object"&&a.visible!==void 0,[u,d]=l.useState(()=>c?a.visible:!1),f=l.useRef(null);l.useEffect(()=>{c&&d(a.visible)},[c,a]);const p=dG(f),g=()=>{s||(u&&p(),d(_=>{var $;const P=!_;return typeof a=="object"&&(($=a.onVisibleChange)===null||$===void 0||$.call(a,P)),P}))},h=_=>{const $=cbe[r]||"",P=o(u),D={[$]:g,className:`${_}-icon`,key:"passwordIcon",onMouseDown:A=>{A.preventDefault()},onMouseUp:A=>{A.preventDefault()}};return l.cloneElement(l.isValidElement(P)?P:l.createElement("span",null,P),D)},{className:b,prefixCls:y,inputPrefixCls:S,size:v}=e,x=sbe(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:C}=l.useContext(st),w=C("input",S),E=C("input-password",y),I=a&&h(E),T=ne(E,b,{[`${E}-${v}`]:!!v}),R=Object.assign(Object.assign({},On(x,["suffix","iconRender","visibilityToggle"])),{type:u?"text":"password",className:T,prefixCls:w,suffix:I});return v&&(R.size=v),l.createElement(ty,Object.assign({ref:ea(t,f)},R))});var dbe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,inputPrefixCls:r,className:a,size:o,suffix:i,enterButton:s=!1,addonAfter:c,loading:u,disabled:d,onSearch:f,onChange:p,onCompositionStart:g,onCompositionEnd:h}=e,b=dbe(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:y,direction:S}=l.useContext(st),v=l.useRef(!1),x=y("input-search",n),C=y("input",r),{compactSize:w}=Os(x,S),E=Er(F=>{var j;return(j=o??w)!==null&&j!==void 0?j:F}),I=l.useRef(null),T=F=>{F!=null&&F.target&&F.type==="click"&&f&&f(F.target.value,F,{source:"clear"}),p==null||p(F)},R=F=>{var j;document.activeElement===((j=I.current)===null||j===void 0?void 0:j.input)&&F.preventDefault()},_=F=>{var j,B;f&&f((B=(j=I.current)===null||j===void 0?void 0:j.input)===null||B===void 0?void 0:B.value,F,{source:"input"})},$=F=>{v.current||u||_(F)},P=typeof s=="boolean"?l.createElement(rm,null):null,D=`${x}-button`;let A;const O=s||{},N=O.type&&O.type.__ANT_BUTTON===!0;N||O.type==="button"?A=Cr(O,Object.assign({onMouseDown:R,onClick:F=>{var j,B;(B=(j=O==null?void 0:O.props)===null||j===void 0?void 0:j.onClick)===null||B===void 0||B.call(j,F),_(F)},key:"enterButton"},N?{className:D,size:E}:{})):A=l.createElement(ut,{className:D,type:s?"primary":void 0,size:E,disabled:d,key:"enterButton",onMouseDown:R,onClick:_,loading:u,icon:P},s),c&&(A=[A,Cr(c,{key:"addonAfter"})]);const k=ne(x,{[`${x}-rtl`]:S==="rtl",[`${x}-${E}`]:!!E,[`${x}-with-button`]:!!s},a),M=F=>{v.current=!0,g==null||g(F)},L=F=>{v.current=!1,h==null||h(F)};return l.createElement(ty,Object.assign({ref:ea(I,t),onPressEnter:$},b,{size:E,onCompositionStart:M,onCompositionEnd:L,prefixCls:C,addonAfter:A,suffix:i,onChange:T,className:k,disabled:d}))});var pbe=` + `]:{color:E}})}]},Hve=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:a,controlWidth:o,borderRadiusLG:i,borderRadiusSM:s,paddingInlineLG:c,paddingInlineSM:u,paddingBlockLG:d,paddingBlockSM:f,motionDurationMid:p}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${K(n)} 0`}},dm(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:o,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:i,paddingInlineStart:c,[`input${t}-input`]:{padding:`${K(d)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:u,[`input${t}-input`]:{padding:`${K(f)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:a},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:a,transition:`margin ${p}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(r).equal()}})}},Uve=on("InputNumber",e=>{const t=zt(e,cm(e));return[zve(t),Hve(t),Yg(t)]},Bve,{unitless:{handleOpacity:!0}});var Vve=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:n,direction:r}=l.useContext(st),a=l.useRef(null);l.useImperativeHandle(t,()=>a.current);const{className:o,rootClassName:i,size:s,disabled:c,prefixCls:u,addonBefore:d,addonAfter:f,prefix:p,suffix:g,bordered:h,readOnly:b,status:y,controls:S,variant:v}=e,x=Vve(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),w=n("input-number",u),C=Un(w),[E,I,T]=Uve(w,C),{compactSize:R,compactItemClassnames:_}=Ns(w,r);let $=l.createElement(xve,{className:`${w}-handler-up-inner`}),P=l.createElement(L0,{className:`${w}-handler-down-inner`});const D=typeof S=="boolean"?S:void 0;typeof S=="object"&&($=typeof S.upIcon>"u"?$:l.createElement("span",{className:`${w}-handler-up-inner`},S.upIcon),P=typeof S.downIcon>"u"?P:l.createElement("span",{className:`${w}-handler-down-inner`},S.downIcon));const{hasFeedback:A,status:O,isFormItemInput:N,feedbackIcon:k}=l.useContext(zr),M=Nl(O,y),L=Er(J=>{var G;return(G=s??R)!==null&&G!==void 0?G:J}),F=l.useContext(Jr),j=c??F,[B,z]=Dc("inputNumber",v,h),H=A&&l.createElement(l.Fragment,null,k),V=ne({[`${w}-lg`]:L==="large",[`${w}-sm`]:L==="small",[`${w}-rtl`]:r==="rtl",[`${w}-in-form-item`]:N},I),te=`${w}-group`,Y=l.createElement(jve,Object.assign({ref:a,disabled:j,className:ne(T,C,o,i,_),upHandler:$,downHandler:P,prefixCls:w,readOnly:b,controls:D,prefix:p,suffix:H||g,addonBefore:d&&l.createElement(Vi,{form:!0,space:!0},d),addonAfter:f&&l.createElement(Vi,{form:!0,space:!0},f),classNames:{input:V,variant:ne({[`${w}-${B}`]:z},Ts(w,M,A)),affixWrapper:ne({[`${w}-affix-wrapper-sm`]:L==="small",[`${w}-affix-wrapper-lg`]:L==="large",[`${w}-affix-wrapper-rtl`]:r==="rtl",[`${w}-affix-wrapper-without-controls`]:S===!1},I),wrapper:ne({[`${te}-rtl`]:r==="rtl"},I),groupWrapper:ne({[`${w}-group-wrapper-sm`]:L==="small",[`${w}-group-wrapper-lg`]:L==="large",[`${w}-group-wrapper-rtl`]:r==="rtl",[`${w}-group-wrapper-${B}`]:z},Ts(`${w}-group-wrapper`,M,A),I)}},x));return E(Y)}),cG=lG,Wve=e=>l.createElement(Si,{theme:{components:{InputNumber:{handleVisible:!0}}}},l.createElement(lG,Object.assign({},e)));cG._InternalPanelDoNotUseOrYouWillBeFired=Wve;const Gve=e=>{const{getPrefixCls:t,direction:n}=l.useContext(st),{prefixCls:r,className:a}=e,o=t("input-group",r),i=t("input"),[s,c]=DO(i),u=ne(o,{[`${o}-lg`]:e.size==="large",[`${o}-sm`]:e.size==="small",[`${o}-compact`]:e.compact,[`${o}-rtl`]:n==="rtl"},c,a),d=l.useContext(zr),f=l.useMemo(()=>Object.assign(Object.assign({},d),{isFormItemInput:!1}),[d]);return s(l.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},l.createElement(zr.Provider,{value:f},e.children)))},uG=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:se.createElement(Pc,null)}),t};function dG(e,t){const n=l.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var a,o,i,s;!((a=e.current)===null||a===void 0)&&a.input&&((o=e.current)===null||o===void 0?void 0:o.input.getAttribute("type"))==="password"&&(!((i=e.current)===null||i===void 0)&&i.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return l.useEffect(()=>(t&&r(),()=>n.current.forEach(a=>{a&&clearTimeout(a)})),[]),r}function qve(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var Kve=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const{prefixCls:r,bordered:a=!0,status:o,size:i,disabled:s,onBlur:c,onFocus:u,suffix:d,allowClear:f,addonAfter:p,addonBefore:g,className:h,style:b,styles:y,rootClassName:S,onChange:v,classNames:x,variant:w}=e,C=Kve(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:E,direction:I,input:T}=se.useContext(st),R=E("input",r),_=l.useRef(null),$=Un(R),[P,D,A]=DO(R,$),{compactSize:O,compactItemClassnames:N}=Ns(R,I),k=Er(Q=>{var ee;return(ee=i??O)!==null&&ee!==void 0?ee:Q}),M=se.useContext(Jr),L=s??M,{status:F,hasFeedback:j,feedbackIcon:B}=l.useContext(zr),z=Nl(F,o),H=qve(e)||!!j;l.useRef(H);const V=dG(_,!0),te=Q=>{V(),c==null||c(Q)},Y=Q=>{V(),u==null||u(Q)},J=Q=>{V(),v==null||v(Q)},G=(j||d)&&se.createElement(se.Fragment,null,d,j&&B),U=uG(f??(T==null?void 0:T.allowClear)),[q,X]=Dc("input",w,a);return P(se.createElement(_ve,Object.assign({ref:na(t,_),prefixCls:R,autoComplete:T==null?void 0:T.autoComplete},C,{disabled:L,onBlur:te,onFocus:Y,style:Object.assign(Object.assign({},T==null?void 0:T.style),b),styles:Object.assign(Object.assign({},T==null?void 0:T.styles),y),suffix:G,allowClear:U,className:ne(h,S,A,$,N,T==null?void 0:T.className),onChange:J,addonBefore:g&&se.createElement(Vi,{form:!0,space:!0},g),addonAfter:p&&se.createElement(Vi,{form:!0,space:!0},p),classNames:Object.assign(Object.assign(Object.assign({},x),T==null?void 0:T.classNames),{input:ne({[`${R}-sm`]:k==="small",[`${R}-lg`]:k==="large",[`${R}-rtl`]:I==="rtl"},x==null?void 0:x.input,(n=T==null?void 0:T.classNames)===null||n===void 0?void 0:n.input,D),variant:ne({[`${R}-${q}`]:X},Ts(R,z)),affixWrapper:ne({[`${R}-affix-wrapper-sm`]:k==="small",[`${R}-affix-wrapper-lg`]:k==="large",[`${R}-affix-wrapper-rtl`]:I==="rtl"},D),wrapper:ne({[`${R}-group-rtl`]:I==="rtl"},D),groupWrapper:ne({[`${R}-group-wrapper-sm`]:k==="small",[`${R}-group-wrapper-lg`]:k==="large",[`${R}-group-wrapper-rtl`]:I==="rtl",[`${R}-group-wrapper-${q}`]:X},Ts(`${R}-group-wrapper`,z,j),D)})})))}),Xve=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},Zve=on(["Input","OTP"],e=>{const t=zt(e,cm(e));return[Xve(t)]},um);var Qve=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{value:n,onChange:r,onActiveChange:a,index:o,mask:i}=e,s=Qve(e,["value","onChange","onActiveChange","index","mask"]),c=n&&typeof i=="string"?i:n,u=h=>{r(o,h.target.value)},d=l.useRef(null);l.useImperativeHandle(t,()=>d.current);const f=()=>{Ut(()=>{var h;const b=(h=d.current)===null||h===void 0?void 0:h.input;document.activeElement===b&&b&&b.select()})},p=h=>{let{key:b}=h;b==="ArrowLeft"?a(o-1):b==="ArrowRight"&&a(o+1),f()},g=h=>{h.key==="Backspace"&&!n&&a(o-1),f()};return l.createElement(ny,Object.assign({},s,{ref:d,value:c,onInput:u,onFocus:f,onKeyDown:p,onKeyUp:g,onMouseDown:f,onMouseUp:f,type:i===!0?"password":"text"}))});var ebe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,length:r=6,size:a,defaultValue:o,value:i,onChange:s,formatter:c,variant:u,disabled:d,status:f,autoFocus:p,mask:g}=e,h=ebe(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask"]),{getPrefixCls:b,direction:y}=l.useContext(st),S=b("otp",n),v=Yn(h,{aria:!0,data:!0,attr:!0}),x=Un(S),[w,C,E]=Zve(S,x),I=Er(j=>a??j),T=l.useContext(zr),R=Nl(T.status,f),_=l.useMemo(()=>Object.assign(Object.assign({},T),{status:R,hasFeedback:!1,feedbackIcon:null}),[T,R]),$=l.useRef(null),P=l.useRef({});l.useImperativeHandle(t,()=>({focus:()=>{var j;(j=P.current[0])===null||j===void 0||j.focus()},blur:()=>{var j;for(let B=0;Bc?c(j):j,[A,O]=l.useState(yh(D(o||"")));l.useEffect(()=>{i!==void 0&&O(yh(i))},[i]);const N=Wt(j=>{O(j),s&&j.length===r&&j.every(B=>B)&&j.some((B,z)=>A[z]!==B)&&s(j.join(""))}),k=Wt((j,B)=>{let z=Pe(A);for(let V=0;V=0&&!z[V];V-=1)z.pop();const H=D(z.map(V=>V||" ").join(""));return z=yh(H).map((V,te)=>V===" "&&!z[te]?z[te]:V),z}),M=(j,B)=>{var z;const H=k(j,B),V=Math.min(j+B.length,r-1);V!==j&&((z=P.current[V])===null||z===void 0||z.focus()),N(H)},L=j=>{var B;(B=P.current[j])===null||B===void 0||B.focus()},F={variant:u,disabled:d,status:R,mask:g};return w(l.createElement("div",Object.assign({},v,{ref:$,className:ne(S,{[`${S}-sm`]:I==="small",[`${S}-lg`]:I==="large",[`${S}-rtl`]:y==="rtl"},E,C)}),l.createElement(zr.Provider,{value:_},Array.from({length:r}).map((j,B)=>{const z=`otp-${B}`,H=A[B]||"";return l.createElement(Jve,Object.assign({ref:V=>{P.current[B]=V},key:z,index:B,size:I,htmlSize:1,className:`${S}-input`,onChange:M,value:H,onActiveChange:L,autoFocus:B===0&&p},F))}))))});var nbe={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"},rbe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:nbe}))},abe=l.forwardRef(rbe),obe={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"},ibe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:obe}))},Sl=l.forwardRef(ibe),sbe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);ae?l.createElement(Sl,null):l.createElement(abe,null),cbe={click:"onClick",hover:"onMouseOver"},ube=l.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:a=!0,iconRender:o=lbe}=e,i=l.useContext(Jr),s=n??i,c=typeof a=="object"&&a.visible!==void 0,[u,d]=l.useState(()=>c?a.visible:!1),f=l.useRef(null);l.useEffect(()=>{c&&d(a.visible)},[c,a]);const p=dG(f),g=()=>{s||(u&&p(),d(_=>{var $;const P=!_;return typeof a=="object"&&(($=a.onVisibleChange)===null||$===void 0||$.call(a,P)),P}))},h=_=>{const $=cbe[r]||"",P=o(u),D={[$]:g,className:`${_}-icon`,key:"passwordIcon",onMouseDown:A=>{A.preventDefault()},onMouseUp:A=>{A.preventDefault()}};return l.cloneElement(l.isValidElement(P)?P:l.createElement("span",null,P),D)},{className:b,prefixCls:y,inputPrefixCls:S,size:v}=e,x=sbe(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:w}=l.useContext(st),C=w("input",S),E=w("input-password",y),I=a&&h(E),T=ne(E,b,{[`${E}-${v}`]:!!v}),R=Object.assign(Object.assign({},On(x,["suffix","iconRender","visibilityToggle"])),{type:u?"text":"password",className:T,prefixCls:C,suffix:I});return v&&(R.size=v),l.createElement(ny,Object.assign({ref:na(t,f)},R))});var dbe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,inputPrefixCls:r,className:a,size:o,suffix:i,enterButton:s=!1,addonAfter:c,loading:u,disabled:d,onSearch:f,onChange:p,onCompositionStart:g,onCompositionEnd:h}=e,b=dbe(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:y,direction:S}=l.useContext(st),v=l.useRef(!1),x=y("input-search",n),w=y("input",r),{compactSize:C}=Ns(x,S),E=Er(F=>{var j;return(j=o??C)!==null&&j!==void 0?j:F}),I=l.useRef(null),T=F=>{F!=null&&F.target&&F.type==="click"&&f&&f(F.target.value,F,{source:"clear"}),p==null||p(F)},R=F=>{var j;document.activeElement===((j=I.current)===null||j===void 0?void 0:j.input)&&F.preventDefault()},_=F=>{var j,B;f&&f((B=(j=I.current)===null||j===void 0?void 0:j.input)===null||B===void 0?void 0:B.value,F,{source:"input"})},$=F=>{v.current||u||_(F)},P=typeof s=="boolean"?l.createElement(om,null):null,D=`${x}-button`;let A;const O=s||{},N=O.type&&O.type.__ANT_BUTTON===!0;N||O.type==="button"?A=Cr(O,Object.assign({onMouseDown:R,onClick:F=>{var j,B;(B=(j=O==null?void 0:O.props)===null||j===void 0?void 0:j.onClick)===null||B===void 0||B.call(j,F),_(F)},key:"enterButton"},N?{className:D,size:E}:{})):A=l.createElement(ct,{className:D,type:s?"primary":void 0,size:E,disabled:d,key:"enterButton",onMouseDown:R,onClick:_,loading:u,icon:P},s),c&&(A=[A,Cr(c,{key:"addonAfter"})]);const k=ne(x,{[`${x}-rtl`]:S==="rtl",[`${x}-${E}`]:!!E,[`${x}-with-button`]:!!s},a),M=F=>{v.current=!0,g==null||g(F)},L=F=>{v.current=!1,h==null||h(F)};return l.createElement(ny,Object.assign({ref:na(I,t),onPressEnter:$},b,{size:E,onCompositionStart:M,onCompositionEnd:L,prefixCls:w,addonAfter:A,suffix:i,onChange:T,className:k,disabled:d}))});var pbe=` min-height:0 !important; max-height:none !important; height:0 !important; @@ -352,7 +352,7 @@ html body { top:0 !important; right:0 !important; pointer-events: none !important; -`,gbe=["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"],u1={},_o;function mbe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&u1[n])return u1[n];var r=window.getComputedStyle(e),a=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),o=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=gbe.map(function(u){return"".concat(u,":").concat(r.getPropertyValue(u))}).join(";"),c={sizingStyle:s,paddingSize:o,borderSize:i,boxSizing:a};return t&&n&&(u1[n]=c),c}function hbe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;_o||(_o=document.createElement("textarea"),_o.setAttribute("tab-index","-1"),_o.setAttribute("aria-hidden","true"),document.body.appendChild(_o)),e.getAttribute("wrap")?_o.setAttribute("wrap",e.getAttribute("wrap")):_o.removeAttribute("wrap");var a=mbe(e,t),o=a.paddingSize,i=a.borderSize,s=a.boxSizing,c=a.sizingStyle;_o.setAttribute("style","".concat(c,";").concat(pbe)),_o.value=e.value||e.placeholder||"";var u=void 0,d=void 0,f,p=_o.scrollHeight;if(s==="border-box"?p+=i:s==="content-box"&&(p-=o),n!==null||r!==null){_o.value=" ";var g=_o.scrollHeight-o;n!==null&&(u=g*n,s==="border-box"&&(u=u+o+i),p=Math.max(u,p)),r!==null&&(d=g*r,s==="border-box"&&(d=d+o+i),f=p>d?"":"hidden",p=Math.min(d,p))}var h={height:p,overflowY:f,resize:"none"};return u&&(h.minHeight=u),d&&(h.maxHeight=d),h}var vbe=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],d1=0,f1=1,p1=2,bbe=l.forwardRef(function(e,t){var n=e,r=n.prefixCls,a=n.defaultValue,o=n.value,i=n.autoSize,s=n.onResize,c=n.className,u=n.style,d=n.disabled,f=n.onChange;n.onInternalAutoSize;var p=xt(n,vbe),g=sn(a,{value:o,postState:function(H){return H??""}}),h=re(g,2),b=h[0],y=h[1],S=function(H){y(H.target.value),f==null||f(H)},v=l.useRef();l.useImperativeHandle(t,function(){return{textArea:v.current}});var x=l.useMemo(function(){return i&&ht(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),C=re(x,2),w=C[0],E=C[1],I=!!i,T=function(){try{if(document.activeElement===v.current){var H=v.current,V=H.selectionStart,te=H.selectionEnd,Y=H.scrollTop;v.current.setSelectionRange(V,te),v.current.scrollTop=Y}}catch{}},R=l.useState(p1),_=re(R,2),$=_[0],P=_[1],D=l.useState(),A=re(D,2),O=A[0],N=A[1],k=function(){P(d1)};Xt(function(){I&&k()},[o,w,E,I]),Xt(function(){if($===d1)P(f1);else if($===f1){var z=hbe(v.current,!1,w,E);P(p1),N(z)}else T()},[$]);var M=l.useRef(),L=function(){Ut.cancel(M.current)},F=function(H){$===p1&&(s==null||s(H),i&&(L(),M.current=Ut(function(){k()})))};l.useEffect(function(){return L},[]);var j=I?O:null,B=Z(Z({},u),j);return($===d1||$===f1)&&(B.overflowY="hidden",B.overflowX="hidden"),l.createElement(sa,{onResize:F,disabled:!(i||s)},l.createElement("textarea",pe({},p,{ref:v,style:B,className:ne(r,c,W({},"".concat(r,"-disabled"),d)),disabled:d,value:b,onChange:S})))}),ybe=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],Sbe=se.forwardRef(function(e,t){var n,r=e.defaultValue,a=e.value,o=e.onFocus,i=e.onBlur,s=e.onChange,c=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,p=e.suffix,g=e.prefixCls,h=g===void 0?"rc-textarea":g,b=e.showCount,y=e.count,S=e.className,v=e.style,x=e.disabled,C=e.hidden,w=e.classNames,E=e.styles,I=e.onResize,T=e.onClear,R=e.onPressEnter,_=e.readOnly,$=e.autoSize,P=e.onKeyDown,D=xt(e,ybe),A=sn(r,{value:a,defaultValue:r}),O=re(A,2),N=O[0],k=O[1],M=N==null?"":String(N),L=se.useState(!1),F=re(L,2),j=F[0],B=F[1],z=se.useRef(!1),H=se.useState(null),V=re(H,2),te=V[0],Y=V[1],J=l.useRef(null),G=l.useRef(null),U=function(){var he;return(he=G.current)===null||he===void 0?void 0:he.textArea},q=function(){U().focus()};l.useImperativeHandle(t,function(){var Ne;return{resizableTextArea:G.current,focus:q,blur:function(){U().blur()},nativeElement:((Ne=J.current)===null||Ne===void 0?void 0:Ne.nativeElement)||U()}}),l.useEffect(function(){B(function(Ne){return!x&&Ne})},[x]);var X=se.useState(null),Q=re(X,2),ee=Q[0],oe=Q[1];se.useEffect(function(){if(ee){var Ne;(Ne=U()).setSelectionRange.apply(Ne,De(ee))}},[ee]);var le=sG(y,b),fe=(n=le.max)!==null&&n!==void 0?n:u,ce=Number(fe)>0,Te=le.strategy(M),Se=!!fe&&Te>fe,ve=function(he,ke){var xe=ke;!z.current&&le.exceedFormatter&&le.max&&le.strategy(ke)>le.max&&(xe=le.exceedFormatter(ke,{max:le.max}),ke!==xe&&oe([U().selectionStart||0,U().selectionEnd||0])),k(xe),bb(he.currentTarget,he,s,xe)},ae=function(he){z.current=!0,d==null||d(he)},ie=function(he){z.current=!1,ve(he,he.currentTarget.value),f==null||f(he)},ue=function(he){ve(he,he.target.value)},ye=function(he){he.key==="Enter"&&R&&R(he),P==null||P(he)},Ee=function(he){B(!0),o==null||o(he)},Me=function(he){B(!1),i==null||i(he)},Ie=function(he){k(""),q(),bb(U(),he,s)},Ce=p,me;le.show&&(le.showFormatter?me=le.showFormatter({value:M,count:Te,maxLength:fe}):me="".concat(Te).concat(ce?" / ".concat(fe):""),Ce=se.createElement(se.Fragment,null,Ce,se.createElement("span",{className:ne("".concat(h,"-data-count"),w==null?void 0:w.count),style:E==null?void 0:E.count},me)));var we=function(he){var ke;I==null||I(he),(ke=U())!==null&&ke!==void 0&&ke.style.height&&Y(!0)},_e=!$&&!b&&!c;return se.createElement(zO,{ref:J,value:M,allowClear:c,handleReset:Ie,suffix:Ce,prefixCls:h,classNames:Z(Z({},w),{},{affixWrapper:ne(w==null?void 0:w.affixWrapper,W(W({},"".concat(h,"-show-count"),b),"".concat(h,"-textarea-allow-clear"),c))}),disabled:x,focused:j,className:ne(S,Se&&"".concat(h,"-out-of-range")),style:Z(Z({},v),te&&!_e?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof me=="string"?me:void 0}},hidden:C,readOnly:_,onClear:T},se.createElement(bbe,pe({},D,{autoSize:$,maxLength:u,onKeyDown:ye,onChange:ue,onFocus:Ee,onBlur:Me,onCompositionStart:ae,onCompositionEnd:ie,className:ne(w==null?void 0:w.textarea),style:Z(Z({},E==null?void 0:E.textarea),{},{resize:v==null?void 0:v.resize}),disabled:x,prefixCls:h,onResize:we,ref:G,readOnly:_})))}),xbe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r;const{prefixCls:a,bordered:o=!0,size:i,disabled:s,status:c,allowClear:u,classNames:d,rootClassName:f,className:p,style:g,styles:h,variant:b}=e,y=xbe(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:S,direction:v,textArea:x}=l.useContext(st),C=Er(i),w=l.useContext(Zr),E=s??w,{status:I,hasFeedback:T,feedbackIcon:R}=l.useContext(zr),_=Nl(I,c),$=l.useRef(null);l.useImperativeHandle(t,()=>{var F;return{resizableTextArea:(F=$.current)===null||F===void 0?void 0:F.resizableTextArea,focus:j=>{var B,z;Yve((z=(B=$.current)===null||B===void 0?void 0:B.resizableTextArea)===null||z===void 0?void 0:z.textArea,j)},blur:()=>{var j;return(j=$.current)===null||j===void 0?void 0:j.blur()}}});const P=S("input",a),D=Un(P),[A,O,N]=PO(P,D),[k,M]=Dc("textArea",b,o),L=uG(u??(x==null?void 0:x.allowClear));return A(l.createElement(Sbe,Object.assign({autoComplete:x==null?void 0:x.autoComplete},y,{style:Object.assign(Object.assign({},x==null?void 0:x.style),g),styles:Object.assign(Object.assign({},x==null?void 0:x.styles),h),disabled:E,allowClear:L,className:ne(N,D,p,f,x==null?void 0:x.className),classNames:Object.assign(Object.assign(Object.assign({},d),x==null?void 0:x.classNames),{textarea:ne({[`${P}-sm`]:C==="small",[`${P}-lg`]:C==="large"},O,d==null?void 0:d.textarea,(n=x==null?void 0:x.classNames)===null||n===void 0?void 0:n.textarea),variant:ne({[`${P}-${k}`]:M},Is(P,_)),affixWrapper:ne(`${P}-textarea-affix-wrapper`,{[`${P}-affix-wrapper-rtl`]:v==="rtl",[`${P}-affix-wrapper-sm`]:C==="small",[`${P}-affix-wrapper-lg`]:C==="large",[`${P}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},O)}),prefixCls:P,suffix:T&&l.createElement("span",{className:`${P}-textarea-suffix`},R),ref:$})))}),Jt=ty;Jt.Group=Gve;Jt.Search=fbe;Jt.TextArea=fG;Jt.Password=ube;Jt.OTP=tbe;function OR(e,t,n){return(e-t)/(n-t)}function HO(e,t,n,r){var a=OR(t,n,r),o={};switch(e){case"rtl":o.right="".concat(a*100,"%"),o.transform="translateX(50%)";break;case"btt":o.bottom="".concat(a*100,"%"),o.transform="translateY(50%)";break;case"ttb":o.top="".concat(a*100,"%"),o.transform="translateY(-50%)";break;default:o.left="".concat(a*100,"%"),o.transform="translateX(-50%)";break}return o}function Bu(e,t){return Array.isArray(e)?e[t]:e}var jc=l.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),wbe=l.createContext({}),Cbe=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],nP=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.value,a=e.valueIndex,o=e.onStartMove,i=e.onDelete,s=e.style,c=e.render,u=e.dragging,d=e.draggingDelete,f=e.onOffsetChange,p=e.onChangeComplete,g=e.onFocus,h=e.onMouseEnter,b=xt(e,Cbe),y=l.useContext(jc),S=y.min,v=y.max,x=y.direction,C=y.disabled,w=y.keyboard,E=y.range,I=y.tabIndex,T=y.ariaLabelForHandle,R=y.ariaLabelledByForHandle,_=y.ariaValueTextFormatterForHandle,$=y.styles,P=y.classNames,D="".concat(n,"-handle"),A=function(H){C||o(H,a)},O=function(H){g==null||g(H,a)},N=function(H){h(H,a)},k=function(H){if(!C&&w){var V=null;switch(H.which||H.keyCode){case Le.LEFT:V=x==="ltr"||x==="btt"?-1:1;break;case Le.RIGHT:V=x==="ltr"||x==="btt"?1:-1;break;case Le.UP:V=x!=="ttb"?1:-1;break;case Le.DOWN:V=x!=="ttb"?-1:1;break;case Le.HOME:V="min";break;case Le.END:V="max";break;case Le.PAGE_UP:V=2;break;case Le.PAGE_DOWN:V=-2;break;case Le.BACKSPACE:case Le.DELETE:i(a);break}V!==null&&(H.preventDefault(),f(V,a))}},M=function(H){switch(H.which||H.keyCode){case Le.LEFT:case Le.RIGHT:case Le.UP:case Le.DOWN:case Le.HOME:case Le.END:case Le.PAGE_UP:case Le.PAGE_DOWN:p==null||p();break}},L=HO(x,r,S,v),F={};if(a!==null){var j;F={tabIndex:C?null:Bu(I,a),role:"slider","aria-valuemin":S,"aria-valuemax":v,"aria-valuenow":r,"aria-disabled":C,"aria-label":Bu(T,a),"aria-labelledby":Bu(R,a),"aria-valuetext":(j=Bu(_,a))===null||j===void 0?void 0:j(r),"aria-orientation":x==="ltr"||x==="rtl"?"horizontal":"vertical",onMouseDown:A,onTouchStart:A,onFocus:O,onMouseEnter:N,onKeyDown:k,onKeyUp:M}}var B=l.createElement("div",pe({ref:t,className:ne(D,W(W(W({},"".concat(D,"-").concat(a+1),a!==null&&E),"".concat(D,"-dragging"),u),"".concat(D,"-dragging-delete"),d),P.handle),style:Z(Z(Z({},L),s),$.handle)},F,b));return c&&(B=c(B,{index:a,prefixCls:n,value:r,dragging:u,draggingDelete:d})),B}),Ebe=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],Ibe=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,a=e.onStartMove,o=e.onOffsetChange,i=e.values,s=e.handleRender,c=e.activeHandleRender,u=e.draggingIndex,d=e.draggingDelete,f=e.onFocus,p=xt(e,Ebe),g=l.useRef({}),h=l.useState(!1),b=re(h,2),y=b[0],S=b[1],v=l.useState(-1),x=re(v,2),C=x[0],w=x[1],E=function($){w($),S(!0)},I=function($,P){E(P),f==null||f($)},T=function($,P){E(P)};l.useImperativeHandle(t,function(){return{focus:function($){var P;(P=g.current[$])===null||P===void 0||P.focus()},hideHelp:function(){Lr.flushSync(function(){S(!1)})}}});var R=Z({prefixCls:n,onStartMove:a,onOffsetChange:o,render:s,onFocus:I,onMouseEnter:T},p);return l.createElement(l.Fragment,null,i.map(function(_,$){var P=u===$;return l.createElement(nP,pe({ref:function(A){A?g.current[$]=A:delete g.current[$]},dragging:P,draggingDelete:P&&d,style:Bu(r,$),key:$,value:_,valueIndex:$},R))}),c&&y&&l.createElement(nP,pe({key:"a11y"},R,{value:i[C],valueIndex:null,dragging:u!==-1,draggingDelete:d,render:c,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),Tbe=function(t){var n=t.prefixCls,r=t.style,a=t.children,o=t.value,i=t.onClick,s=l.useContext(jc),c=s.min,u=s.max,d=s.direction,f=s.includedStart,p=s.includedEnd,g=s.included,h="".concat(n,"-text"),b=HO(d,o,c,u);return l.createElement("span",{className:ne(h,W({},"".concat(h,"-active"),g&&f<=o&&o<=p)),style:Z(Z({},b),r),onMouseDown:function(S){S.stopPropagation()},onClick:function(){i(o)}},a)},Rbe=function(t){var n=t.prefixCls,r=t.marks,a=t.onClick,o="".concat(n,"-mark");return r.length?l.createElement("div",{className:o},r.map(function(i){var s=i.value,c=i.style,u=i.label;return l.createElement(Tbe,{key:s,prefixCls:o,style:c,value:s,onClick:a},u)})):null},_be=function(t){var n=t.prefixCls,r=t.value,a=t.style,o=t.activeStyle,i=l.useContext(jc),s=i.min,c=i.max,u=i.direction,d=i.included,f=i.includedStart,p=i.includedEnd,g="".concat(n,"-dot"),h=d&&f<=r&&r<=p,b=Z(Z({},HO(u,r,s,c)),typeof a=="function"?a(r):a);return h&&(b=Z(Z({},b),typeof o=="function"?o(r):o)),l.createElement("span",{className:ne(g,W({},"".concat(g,"-active"),h)),style:b})},$be=function(t){var n=t.prefixCls,r=t.marks,a=t.dots,o=t.style,i=t.activeStyle,s=l.useContext(jc),c=s.min,u=s.max,d=s.step,f=l.useMemo(function(){var p=new Set;if(r.forEach(function(h){p.add(h.value)}),a&&d!==null)for(var g=c;g<=u;)p.add(g),g+=d;return Array.from(p)},[c,u,d,a,r]);return l.createElement("div",{className:"".concat(n,"-step")},f.map(function(p){return l.createElement(_be,{prefixCls:n,key:p,value:p,style:o,activeStyle:i})}))},rP=function(t){var n=t.prefixCls,r=t.style,a=t.start,o=t.end,i=t.index,s=t.onStartMove,c=t.replaceCls,u=l.useContext(jc),d=u.direction,f=u.min,p=u.max,g=u.disabled,h=u.range,b=u.classNames,y="".concat(n,"-track"),S=OR(a,f,p),v=OR(o,f,p),x=function(I){!g&&s&&s(I,-1)},C={};switch(d){case"rtl":C.right="".concat(S*100,"%"),C.width="".concat(v*100-S*100,"%");break;case"btt":C.bottom="".concat(S*100,"%"),C.height="".concat(v*100-S*100,"%");break;case"ttb":C.top="".concat(S*100,"%"),C.height="".concat(v*100-S*100,"%");break;default:C.left="".concat(S*100,"%"),C.width="".concat(v*100-S*100,"%")}var w=c||ne(y,W(W({},"".concat(y,"-").concat(i+1),i!==null&&h),"".concat(n,"-track-draggable"),s),b.track);return l.createElement("div",{className:w,style:Z(Z({},C),r),onMouseDown:x,onTouchStart:x})},Obe=function(t){var n=t.prefixCls,r=t.style,a=t.values,o=t.startPoint,i=t.onStartMove,s=l.useContext(jc),c=s.included,u=s.range,d=s.min,f=s.styles,p=s.classNames,g=l.useMemo(function(){if(!u){if(a.length===0)return[];var b=o??d,y=a[0];return[{start:Math.min(b,y),end:Math.max(b,y)}]}for(var S=[],v=0;vNbe&&d3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof b=="number"){var v,x=h[y],C=x+b,w=[];r.forEach(function(_){w.push(_.value)}),w.push(e,t),w.push(s(x));var E=b>0?1:-1;S==="unit"?w.push(s(x+E*n)):w.push(s(C)),w=w.filter(function(_){return _!==null}).filter(function(_){return b<0?_<=x:_>=x}),S==="unit"&&(w=w.filter(function(_){return _!==x}));var I=S==="unit"?x:C;v=w[0];var T=Math.abs(v-I);if(w.forEach(function(_){var $=Math.abs(_-I);$1){var R=De(h);return R[y]=v,g(R,b-E,y,S)}return v}else{if(b==="min")return e;if(b==="max")return t}},d=function(h,b,y){var S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",v=h[y],x=u(h,b,y,S);return{value:x,changed:x!==v}},f=function(h){return o===null&&h===0||typeof o=="number"&&h3&&arguments[3]!==void 0?arguments[3]:"unit",v=h.map(c),x=v[y],C=u(v,b,y,S);if(v[y]=C,a===!1){var w=o||0;y>0&&v[y-1]!==x&&(v[y]=Math.max(v[y],v[y-1]+w)),y0;R-=1)for(var _=!0;f(v[R]-v[R-1])&&_;){var $=d(v,-1,R-1);v[R-1]=$.value,_=$.changed}for(var P=v.length-1;P>0;P-=1)for(var D=!0;f(v[P]-v[P-1])&&D;){var A=d(v,-1,P-1);v[P-1]=A.value,D=A.changed}for(var O=0;O=0?N:!1},[N,Ce]),we=l.useMemo(function(){return Object.keys(Y||{}).map(function(Ye){var Ge=Y[Ye],yt={value:Number(Ye)};return Ge&&ht(Ge)==="object"&&!l.isValidElement(Ge)&&("label"in Ge||"style"in Ge)?(yt.style=Ge.style,yt.label=Ge.label):yt.label=Ge,yt}).filter(function(Ye){var Ge=Ye.label;return Ge||typeof Ge=="number"}).sort(function(Ye,Ge){return Ye.value-Ge.value})},[Y]),_e=Abe(Me,Ie,Ce,we,A,me),Ne=re(_e,2),he=Ne[0],ke=Ne[1],xe=sn(E,{value:w}),ge=re(xe,2),Pe=ge[0],Ve=ge[1],Ae=l.useMemo(function(){var Ye=Pe==null?[]:Array.isArray(Pe)?Pe:[Pe],Ge=re(Ye,1),yt=Ge[0],Tt=yt===void 0?Me:yt,Pt=Pe===null?[]:[Tt];if(ae){if(Pt=De(Ye),T||Pe===void 0){var en=T>=0?T+1:2;for(Pt=Pt.slice(0,en);Pt.length=0&&fe.current.focus(Ye)}$t(null)},[Rt]);var lt=l.useMemo(function(){return ue&&Ce===null?!1:ue},[ue,Ce]),ot=Wt(function(Ye,Ge){ft(Ye,Ge),_==null||_(be(Ae))}),et=Ze!==-1;l.useEffect(function(){if(!et){var Ye=Ae.lastIndexOf(je);fe.current.focus(Ye)}},[et]);var bt=l.useMemo(function(){return De(mt).sort(function(Ye,Ge){return Ye-Ge})},[mt]),rt=l.useMemo(function(){return ae?[bt[0],bt[bt.length-1]]:[Me,bt[0]]},[bt,ae,Me]),St=re(rt,2),Et=St[0],tt=St[1];l.useImperativeHandle(t,function(){return{focus:function(){fe.current.focus(0)},blur:function(){var Ge,yt=document,Tt=yt.activeElement;(Ge=ce.current)!==null&&Ge!==void 0&&Ge.contains(Tt)&&(Tt==null||Tt.blur())}}}),l.useEffect(function(){p&&fe.current.focus(0)},[]);var at=l.useMemo(function(){return{min:Me,max:Ie,direction:Te,disabled:u,keyboard:f,step:Ce,included:F,includedStart:Et,includedEnd:tt,range:ae,tabIndex:Q,ariaLabelForHandle:ee,ariaLabelledByForHandle:oe,ariaValueTextFormatterForHandle:le,styles:s||{},classNames:i||{}}},[Me,Ie,Te,u,f,Ce,F,Et,tt,ae,Q,ee,oe,le,s,i]);return l.createElement(jc.Provider,{value:at},l.createElement("div",{ref:ce,className:ne(r,a,W(W(W(W({},"".concat(r,"-disabled"),u),"".concat(r,"-vertical"),M),"".concat(r,"-horizontal"),!M),"".concat(r,"-with-marks"),we.length)),style:o,onMouseDown:We},l.createElement("div",{className:ne("".concat(r,"-rail"),i==null?void 0:i.rail),style:Z(Z({},H),s==null?void 0:s.rail)}),q!==!1&&l.createElement(Obe,{prefixCls:r,style:B,values:Ae,startPoint:j,onStartMove:lt?ot:void 0}),l.createElement($be,{prefixCls:r,marks:we,dots:J,style:V,activeStyle:te}),l.createElement(Ibe,{ref:fe,prefixCls:r,style:z,values:mt,draggingIndex:Ze,draggingDelete:Je,onStartMove:ot,onOffsetChange:vt,onFocus:g,onBlur:h,handleRender:G,activeHandleRender:U,onChangeComplete:Fe,onDelete:ie?Ke:void 0}),l.createElement(Rbe,{prefixCls:r,marks:we,onClick:qe})))});const oP=l.forwardRef((e,t)=>{const{open:n,draggingDelete:r}=e,a=l.useRef(null),o=n&&!r,i=l.useRef(null);function s(){Ut.cancel(i.current),i.current=null}function c(){i.current=Ut(()=>{var u;(u=a.current)===null||u===void 0||u.forceAlign(),i.current=null})}return l.useEffect(()=>(o?c():s(),s),[o,e.title]),l.createElement(Zt,Object.assign({ref:ea(a,t)},e,{open:o}))}),Dbe=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:a,marginFull:o,marginPart:i,colorFillContentHover:s,handleColorDisabled:c,calc:u,handleSize:d,handleSizeHover:f,handleActiveColor:p,handleActiveOutlineColor:g,handleLineWidth:h,handleLineWidthHover:b,motionDurationMid:y}=e;return{[t]:Object.assign(Object.assign({},nn(e)),{position:"relative",height:r,margin:`${K(i)} ${K(o)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${K(o)} ${K(i)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${y}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${y}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${K(h)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:d,height:d,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:u(h).mul(-1).equal(),insetBlockStart:u(h).mul(-1).equal(),width:u(d).add(u(h).mul(2)).equal(),height:u(d).add(u(h).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:d,height:d,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${K(h)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:` +`,gbe=["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"],d1={},$o;function mbe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&d1[n])return d1[n];var r=window.getComputedStyle(e),a=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),o=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=gbe.map(function(u){return"".concat(u,":").concat(r.getPropertyValue(u))}).join(";"),c={sizingStyle:s,paddingSize:o,borderSize:i,boxSizing:a};return t&&n&&(d1[n]=c),c}function hbe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;$o||($o=document.createElement("textarea"),$o.setAttribute("tab-index","-1"),$o.setAttribute("aria-hidden","true"),document.body.appendChild($o)),e.getAttribute("wrap")?$o.setAttribute("wrap",e.getAttribute("wrap")):$o.removeAttribute("wrap");var a=mbe(e,t),o=a.paddingSize,i=a.borderSize,s=a.boxSizing,c=a.sizingStyle;$o.setAttribute("style","".concat(c,";").concat(pbe)),$o.value=e.value||e.placeholder||"";var u=void 0,d=void 0,f,p=$o.scrollHeight;if(s==="border-box"?p+=i:s==="content-box"&&(p-=o),n!==null||r!==null){$o.value=" ";var g=$o.scrollHeight-o;n!==null&&(u=g*n,s==="border-box"&&(u=u+o+i),p=Math.max(u,p)),r!==null&&(d=g*r,s==="border-box"&&(d=d+o+i),f=p>d?"":"hidden",p=Math.min(d,p))}var h={height:p,overflowY:f,resize:"none"};return u&&(h.minHeight=u),d&&(h.maxHeight=d),h}var vbe=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],f1=0,p1=1,g1=2,bbe=l.forwardRef(function(e,t){var n=e,r=n.prefixCls,a=n.defaultValue,o=n.value,i=n.autoSize,s=n.onResize,c=n.className,u=n.style,d=n.disabled,f=n.onChange;n.onInternalAutoSize;var p=xt(n,vbe),g=sn(a,{value:o,postState:function(H){return H??""}}),h=re(g,2),b=h[0],y=h[1],S=function(H){y(H.target.value),f==null||f(H)},v=l.useRef();l.useImperativeHandle(t,function(){return{textArea:v.current}});var x=l.useMemo(function(){return i&&mt(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),w=re(x,2),C=w[0],E=w[1],I=!!i,T=function(){try{if(document.activeElement===v.current){var H=v.current,V=H.selectionStart,te=H.selectionEnd,Y=H.scrollTop;v.current.setSelectionRange(V,te),v.current.scrollTop=Y}}catch{}},R=l.useState(g1),_=re(R,2),$=_[0],P=_[1],D=l.useState(),A=re(D,2),O=A[0],N=A[1],k=function(){P(f1)};Xt(function(){I&&k()},[o,C,E,I]),Xt(function(){if($===f1)P(p1);else if($===p1){var z=hbe(v.current,!1,C,E);P(g1),N(z)}else T()},[$]);var M=l.useRef(),L=function(){Ut.cancel(M.current)},F=function(H){$===g1&&(s==null||s(H),i&&(L(),M.current=Ut(function(){k()})))};l.useEffect(function(){return L},[]);var j=I?O:null,B=Z(Z({},u),j);return($===f1||$===p1)&&(B.overflowY="hidden",B.overflowX="hidden"),l.createElement(ca,{onResize:F,disabled:!(i||s)},l.createElement("textarea",pe({},p,{ref:v,style:B,className:ne(r,c,W({},"".concat(r,"-disabled"),d)),disabled:d,value:b,onChange:S})))}),ybe=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],Sbe=se.forwardRef(function(e,t){var n,r=e.defaultValue,a=e.value,o=e.onFocus,i=e.onBlur,s=e.onChange,c=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,p=e.suffix,g=e.prefixCls,h=g===void 0?"rc-textarea":g,b=e.showCount,y=e.count,S=e.className,v=e.style,x=e.disabled,w=e.hidden,C=e.classNames,E=e.styles,I=e.onResize,T=e.onClear,R=e.onPressEnter,_=e.readOnly,$=e.autoSize,P=e.onKeyDown,D=xt(e,ybe),A=sn(r,{value:a,defaultValue:r}),O=re(A,2),N=O[0],k=O[1],M=N==null?"":String(N),L=se.useState(!1),F=re(L,2),j=F[0],B=F[1],z=se.useRef(!1),H=se.useState(null),V=re(H,2),te=V[0],Y=V[1],J=l.useRef(null),G=l.useRef(null),U=function(){var ge;return(ge=G.current)===null||ge===void 0?void 0:ge.textArea},q=function(){U().focus()};l.useImperativeHandle(t,function(){var Ee;return{resizableTextArea:G.current,focus:q,blur:function(){U().blur()},nativeElement:((Ee=J.current)===null||Ee===void 0?void 0:Ee.nativeElement)||U()}}),l.useEffect(function(){B(function(Ee){return!x&&Ee})},[x]);var X=se.useState(null),Q=re(X,2),ee=Q[0],oe=Q[1];se.useEffect(function(){if(ee){var Ee;(Ee=U()).setSelectionRange.apply(Ee,Pe(ee))}},[ee]);var le=sG(y,b),fe=(n=le.max)!==null&&n!==void 0?n:u,ce=Number(fe)>0,Ie=le.strategy(M),be=!!fe&&Ie>fe,he=function(ge,Ne){var Re=Ne;!z.current&&le.exceedFormatter&&le.max&&le.strategy(Ne)>le.max&&(Re=le.exceedFormatter(Ne,{max:le.max}),Ne!==Re&&oe([U().selectionStart||0,U().selectionEnd||0])),k(Re),yb(ge.currentTarget,ge,s,Re)},ae=function(ge){z.current=!0,d==null||d(ge)},ie=function(ge){z.current=!1,he(ge,ge.currentTarget.value),f==null||f(ge)},ue=function(ge){he(ge,ge.target.value)},xe=function(ge){ge.key==="Enter"&&R&&R(ge),P==null||P(ge)},we=function(ge){B(!0),o==null||o(ge)},Me=function(ge){B(!1),i==null||i(ge)},Ce=function(ge){k(""),q(),yb(U(),ge,s)},De=p,ye;le.show&&(le.showFormatter?ye=le.showFormatter({value:M,count:Ie,maxLength:fe}):ye="".concat(Ie).concat(ce?" / ".concat(fe):""),De=se.createElement(se.Fragment,null,De,se.createElement("span",{className:ne("".concat(h,"-data-count"),C==null?void 0:C.count),style:E==null?void 0:E.count},ye)));var ve=function(ge){var Ne;I==null||I(ge),(Ne=U())!==null&&Ne!==void 0&&Ne.style.height&&Y(!0)},$e=!$&&!b&&!c;return se.createElement(HO,{ref:J,value:M,allowClear:c,handleReset:Ce,suffix:De,prefixCls:h,classNames:Z(Z({},C),{},{affixWrapper:ne(C==null?void 0:C.affixWrapper,W(W({},"".concat(h,"-show-count"),b),"".concat(h,"-textarea-allow-clear"),c))}),disabled:x,focused:j,className:ne(S,be&&"".concat(h,"-out-of-range")),style:Z(Z({},v),te&&!$e?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof ye=="string"?ye:void 0}},hidden:w,readOnly:_,onClear:T},se.createElement(bbe,pe({},D,{autoSize:$,maxLength:u,onKeyDown:xe,onChange:ue,onFocus:we,onBlur:Me,onCompositionStart:ae,onCompositionEnd:ie,className:ne(C==null?void 0:C.textarea),style:Z(Z({},E==null?void 0:E.textarea),{},{resize:v==null?void 0:v.resize}),disabled:x,prefixCls:h,onResize:ve,ref:G,readOnly:_})))}),xbe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r;const{prefixCls:a,bordered:o=!0,size:i,disabled:s,status:c,allowClear:u,classNames:d,rootClassName:f,className:p,style:g,styles:h,variant:b}=e,y=xbe(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:S,direction:v,textArea:x}=l.useContext(st),w=Er(i),C=l.useContext(Jr),E=s??C,{status:I,hasFeedback:T,feedbackIcon:R}=l.useContext(zr),_=Nl(I,c),$=l.useRef(null);l.useImperativeHandle(t,()=>{var F;return{resizableTextArea:(F=$.current)===null||F===void 0?void 0:F.resizableTextArea,focus:j=>{var B,z;Yve((z=(B=$.current)===null||B===void 0?void 0:B.resizableTextArea)===null||z===void 0?void 0:z.textArea,j)},blur:()=>{var j;return(j=$.current)===null||j===void 0?void 0:j.blur()}}});const P=S("input",a),D=Un(P),[A,O,N]=DO(P,D),[k,M]=Dc("textArea",b,o),L=uG(u??(x==null?void 0:x.allowClear));return A(l.createElement(Sbe,Object.assign({autoComplete:x==null?void 0:x.autoComplete},y,{style:Object.assign(Object.assign({},x==null?void 0:x.style),g),styles:Object.assign(Object.assign({},x==null?void 0:x.styles),h),disabled:E,allowClear:L,className:ne(N,D,p,f,x==null?void 0:x.className),classNames:Object.assign(Object.assign(Object.assign({},d),x==null?void 0:x.classNames),{textarea:ne({[`${P}-sm`]:w==="small",[`${P}-lg`]:w==="large"},O,d==null?void 0:d.textarea,(n=x==null?void 0:x.classNames)===null||n===void 0?void 0:n.textarea),variant:ne({[`${P}-${k}`]:M},Ts(P,_)),affixWrapper:ne(`${P}-textarea-affix-wrapper`,{[`${P}-affix-wrapper-rtl`]:v==="rtl",[`${P}-affix-wrapper-sm`]:w==="small",[`${P}-affix-wrapper-lg`]:w==="large",[`${P}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},O)}),prefixCls:P,suffix:T&&l.createElement("span",{className:`${P}-textarea-suffix`},R),ref:$})))}),Jt=ny;Jt.Group=Gve;Jt.Search=fbe;Jt.TextArea=fG;Jt.Password=ube;Jt.OTP=tbe;function NR(e,t,n){return(e-t)/(n-t)}function UO(e,t,n,r){var a=NR(t,n,r),o={};switch(e){case"rtl":o.right="".concat(a*100,"%"),o.transform="translateX(50%)";break;case"btt":o.bottom="".concat(a*100,"%"),o.transform="translateY(50%)";break;case"ttb":o.top="".concat(a*100,"%"),o.transform="translateY(-50%)";break;default:o.left="".concat(a*100,"%"),o.transform="translateX(-50%)";break}return o}function Bu(e,t){return Array.isArray(e)?e[t]:e}var jc=l.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),wbe=l.createContext({}),Cbe=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],nP=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.value,a=e.valueIndex,o=e.onStartMove,i=e.onDelete,s=e.style,c=e.render,u=e.dragging,d=e.draggingDelete,f=e.onOffsetChange,p=e.onChangeComplete,g=e.onFocus,h=e.onMouseEnter,b=xt(e,Cbe),y=l.useContext(jc),S=y.min,v=y.max,x=y.direction,w=y.disabled,C=y.keyboard,E=y.range,I=y.tabIndex,T=y.ariaLabelForHandle,R=y.ariaLabelledByForHandle,_=y.ariaValueTextFormatterForHandle,$=y.styles,P=y.classNames,D="".concat(n,"-handle"),A=function(H){w||o(H,a)},O=function(H){g==null||g(H,a)},N=function(H){h(H,a)},k=function(H){if(!w&&C){var V=null;switch(H.which||H.keyCode){case Le.LEFT:V=x==="ltr"||x==="btt"?-1:1;break;case Le.RIGHT:V=x==="ltr"||x==="btt"?1:-1;break;case Le.UP:V=x!=="ttb"?1:-1;break;case Le.DOWN:V=x!=="ttb"?-1:1;break;case Le.HOME:V="min";break;case Le.END:V="max";break;case Le.PAGE_UP:V=2;break;case Le.PAGE_DOWN:V=-2;break;case Le.BACKSPACE:case Le.DELETE:i(a);break}V!==null&&(H.preventDefault(),f(V,a))}},M=function(H){switch(H.which||H.keyCode){case Le.LEFT:case Le.RIGHT:case Le.UP:case Le.DOWN:case Le.HOME:case Le.END:case Le.PAGE_UP:case Le.PAGE_DOWN:p==null||p();break}},L=UO(x,r,S,v),F={};if(a!==null){var j;F={tabIndex:w?null:Bu(I,a),role:"slider","aria-valuemin":S,"aria-valuemax":v,"aria-valuenow":r,"aria-disabled":w,"aria-label":Bu(T,a),"aria-labelledby":Bu(R,a),"aria-valuetext":(j=Bu(_,a))===null||j===void 0?void 0:j(r),"aria-orientation":x==="ltr"||x==="rtl"?"horizontal":"vertical",onMouseDown:A,onTouchStart:A,onFocus:O,onMouseEnter:N,onKeyDown:k,onKeyUp:M}}var B=l.createElement("div",pe({ref:t,className:ne(D,W(W(W({},"".concat(D,"-").concat(a+1),a!==null&&E),"".concat(D,"-dragging"),u),"".concat(D,"-dragging-delete"),d),P.handle),style:Z(Z(Z({},L),s),$.handle)},F,b));return c&&(B=c(B,{index:a,prefixCls:n,value:r,dragging:u,draggingDelete:d})),B}),Ebe=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],Ibe=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,a=e.onStartMove,o=e.onOffsetChange,i=e.values,s=e.handleRender,c=e.activeHandleRender,u=e.draggingIndex,d=e.draggingDelete,f=e.onFocus,p=xt(e,Ebe),g=l.useRef({}),h=l.useState(!1),b=re(h,2),y=b[0],S=b[1],v=l.useState(-1),x=re(v,2),w=x[0],C=x[1],E=function($){C($),S(!0)},I=function($,P){E(P),f==null||f($)},T=function($,P){E(P)};l.useImperativeHandle(t,function(){return{focus:function($){var P;(P=g.current[$])===null||P===void 0||P.focus()},hideHelp:function(){Lr.flushSync(function(){S(!1)})}}});var R=Z({prefixCls:n,onStartMove:a,onOffsetChange:o,render:s,onFocus:I,onMouseEnter:T},p);return l.createElement(l.Fragment,null,i.map(function(_,$){var P=u===$;return l.createElement(nP,pe({ref:function(A){A?g.current[$]=A:delete g.current[$]},dragging:P,draggingDelete:P&&d,style:Bu(r,$),key:$,value:_,valueIndex:$},R))}),c&&y&&l.createElement(nP,pe({key:"a11y"},R,{value:i[w],valueIndex:null,dragging:u!==-1,draggingDelete:d,render:c,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),Tbe=function(t){var n=t.prefixCls,r=t.style,a=t.children,o=t.value,i=t.onClick,s=l.useContext(jc),c=s.min,u=s.max,d=s.direction,f=s.includedStart,p=s.includedEnd,g=s.included,h="".concat(n,"-text"),b=UO(d,o,c,u);return l.createElement("span",{className:ne(h,W({},"".concat(h,"-active"),g&&f<=o&&o<=p)),style:Z(Z({},b),r),onMouseDown:function(S){S.stopPropagation()},onClick:function(){i(o)}},a)},Rbe=function(t){var n=t.prefixCls,r=t.marks,a=t.onClick,o="".concat(n,"-mark");return r.length?l.createElement("div",{className:o},r.map(function(i){var s=i.value,c=i.style,u=i.label;return l.createElement(Tbe,{key:s,prefixCls:o,style:c,value:s,onClick:a},u)})):null},_be=function(t){var n=t.prefixCls,r=t.value,a=t.style,o=t.activeStyle,i=l.useContext(jc),s=i.min,c=i.max,u=i.direction,d=i.included,f=i.includedStart,p=i.includedEnd,g="".concat(n,"-dot"),h=d&&f<=r&&r<=p,b=Z(Z({},UO(u,r,s,c)),typeof a=="function"?a(r):a);return h&&(b=Z(Z({},b),typeof o=="function"?o(r):o)),l.createElement("span",{className:ne(g,W({},"".concat(g,"-active"),h)),style:b})},$be=function(t){var n=t.prefixCls,r=t.marks,a=t.dots,o=t.style,i=t.activeStyle,s=l.useContext(jc),c=s.min,u=s.max,d=s.step,f=l.useMemo(function(){var p=new Set;if(r.forEach(function(h){p.add(h.value)}),a&&d!==null)for(var g=c;g<=u;)p.add(g),g+=d;return Array.from(p)},[c,u,d,a,r]);return l.createElement("div",{className:"".concat(n,"-step")},f.map(function(p){return l.createElement(_be,{prefixCls:n,key:p,value:p,style:o,activeStyle:i})}))},rP=function(t){var n=t.prefixCls,r=t.style,a=t.start,o=t.end,i=t.index,s=t.onStartMove,c=t.replaceCls,u=l.useContext(jc),d=u.direction,f=u.min,p=u.max,g=u.disabled,h=u.range,b=u.classNames,y="".concat(n,"-track"),S=NR(a,f,p),v=NR(o,f,p),x=function(I){!g&&s&&s(I,-1)},w={};switch(d){case"rtl":w.right="".concat(S*100,"%"),w.width="".concat(v*100-S*100,"%");break;case"btt":w.bottom="".concat(S*100,"%"),w.height="".concat(v*100-S*100,"%");break;case"ttb":w.top="".concat(S*100,"%"),w.height="".concat(v*100-S*100,"%");break;default:w.left="".concat(S*100,"%"),w.width="".concat(v*100-S*100,"%")}var C=c||ne(y,W(W({},"".concat(y,"-").concat(i+1),i!==null&&h),"".concat(n,"-track-draggable"),s),b.track);return l.createElement("div",{className:C,style:Z(Z({},w),r),onMouseDown:x,onTouchStart:x})},Obe=function(t){var n=t.prefixCls,r=t.style,a=t.values,o=t.startPoint,i=t.onStartMove,s=l.useContext(jc),c=s.included,u=s.range,d=s.min,f=s.styles,p=s.classNames,g=l.useMemo(function(){if(!u){if(a.length===0)return[];var b=o??d,y=a[0];return[{start:Math.min(b,y),end:Math.max(b,y)}]}for(var S=[],v=0;vNbe&&d3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof b=="number"){var v,x=h[y],w=x+b,C=[];r.forEach(function(_){C.push(_.value)}),C.push(e,t),C.push(s(x));var E=b>0?1:-1;S==="unit"?C.push(s(x+E*n)):C.push(s(w)),C=C.filter(function(_){return _!==null}).filter(function(_){return b<0?_<=x:_>=x}),S==="unit"&&(C=C.filter(function(_){return _!==x}));var I=S==="unit"?x:w;v=C[0];var T=Math.abs(v-I);if(C.forEach(function(_){var $=Math.abs(_-I);$1){var R=Pe(h);return R[y]=v,g(R,b-E,y,S)}return v}else{if(b==="min")return e;if(b==="max")return t}},d=function(h,b,y){var S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",v=h[y],x=u(h,b,y,S);return{value:x,changed:x!==v}},f=function(h){return o===null&&h===0||typeof o=="number"&&h3&&arguments[3]!==void 0?arguments[3]:"unit",v=h.map(c),x=v[y],w=u(v,b,y,S);if(v[y]=w,a===!1){var C=o||0;y>0&&v[y-1]!==x&&(v[y]=Math.max(v[y],v[y-1]+C)),y0;R-=1)for(var _=!0;f(v[R]-v[R-1])&&_;){var $=d(v,-1,R-1);v[R-1]=$.value,_=$.changed}for(var P=v.length-1;P>0;P-=1)for(var D=!0;f(v[P]-v[P-1])&&D;){var A=d(v,-1,P-1);v[P-1]=A.value,D=A.changed}for(var O=0;O=0?N:!1},[N,De]),ve=l.useMemo(function(){return Object.keys(Y||{}).map(function(Ke){var Ge=Y[Ke],bt={value:Number(Ke)};return Ge&&mt(Ge)==="object"&&!l.isValidElement(Ge)&&("label"in Ge||"style"in Ge)?(bt.style=Ge.style,bt.label=Ge.label):bt.label=Ge,bt}).filter(function(Ke){var Ge=Ke.label;return Ge||typeof Ge=="number"}).sort(function(Ke,Ge){return Ke.value-Ge.value})},[Y]),$e=Abe(Me,Ce,De,ve,A,ye),Ee=re($e,2),ge=Ee[0],Ne=Ee[1],Re=sn(E,{value:C}),me=re(Re,2),_e=me[0],Ze=me[1],Oe=l.useMemo(function(){var Ke=_e==null?[]:Array.isArray(_e)?_e:[_e],Ge=re(Ke,1),bt=Ge[0],Tt=bt===void 0?Me:bt,Pt=_e===null?[]:[Tt];if(ae){if(Pt=Pe(Ke),T||_e===void 0){var en=T>=0?T+1:2;for(Pt=Pt.slice(0,en);Pt.length=0&&fe.current.focus(Ke)}$t(null)},[Rt]);var lt=l.useMemo(function(){return ue&&De===null?!1:ue},[ue,De]),ot=Wt(function(Ke,Ge){ft(Ke,Ge),_==null||_(Se(Oe))}),et=Xe!==-1;l.useEffect(function(){if(!et){var Ke=Oe.lastIndexOf(je);fe.current.focus(Ke)}},[et]);var vt=l.useMemo(function(){return Pe(gt).sort(function(Ke,Ge){return Ke-Ge})},[gt]),rt=l.useMemo(function(){return ae?[vt[0],vt[vt.length-1]]:[Me,vt[0]]},[vt,ae,Me]),St=re(rt,2),Et=St[0],tt=St[1];l.useImperativeHandle(t,function(){return{focus:function(){fe.current.focus(0)},blur:function(){var Ge,bt=document,Tt=bt.activeElement;(Ge=ce.current)!==null&&Ge!==void 0&&Ge.contains(Tt)&&(Tt==null||Tt.blur())}}}),l.useEffect(function(){p&&fe.current.focus(0)},[]);var at=l.useMemo(function(){return{min:Me,max:Ce,direction:Ie,disabled:u,keyboard:f,step:De,included:F,includedStart:Et,includedEnd:tt,range:ae,tabIndex:Q,ariaLabelForHandle:ee,ariaLabelledByForHandle:oe,ariaValueTextFormatterForHandle:le,styles:s||{},classNames:i||{}}},[Me,Ce,Ie,u,f,De,F,Et,tt,ae,Q,ee,oe,le,s,i]);return l.createElement(jc.Provider,{value:at},l.createElement("div",{ref:ce,className:ne(r,a,W(W(W(W({},"".concat(r,"-disabled"),u),"".concat(r,"-vertical"),M),"".concat(r,"-horizontal"),!M),"".concat(r,"-with-marks"),ve.length)),style:o,onMouseDown:We},l.createElement("div",{className:ne("".concat(r,"-rail"),i==null?void 0:i.rail),style:Z(Z({},H),s==null?void 0:s.rail)}),q!==!1&&l.createElement(Obe,{prefixCls:r,style:B,values:Oe,startPoint:j,onStartMove:lt?ot:void 0}),l.createElement($be,{prefixCls:r,marks:ve,dots:J,style:V,activeStyle:te}),l.createElement(Ibe,{ref:fe,prefixCls:r,style:z,values:gt,draggingIndex:Xe,draggingDelete:Je,onStartMove:ot,onOffsetChange:ht,onFocus:g,onBlur:h,handleRender:G,activeHandleRender:U,onChangeComplete:Fe,onDelete:ie?Ve:void 0}),l.createElement(Rbe,{prefixCls:r,marks:ve,onClick:qe})))});const oP=l.forwardRef((e,t)=>{const{open:n,draggingDelete:r}=e,a=l.useRef(null),o=n&&!r,i=l.useRef(null);function s(){Ut.cancel(i.current),i.current=null}function c(){i.current=Ut(()=>{var u;(u=a.current)===null||u===void 0||u.forceAlign(),i.current=null})}return l.useEffect(()=>(o?c():s(),s),[o,e.title]),l.createElement(Zt,Object.assign({ref:na(a,t)},e,{open:o}))}),Dbe=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:a,marginFull:o,marginPart:i,colorFillContentHover:s,handleColorDisabled:c,calc:u,handleSize:d,handleSizeHover:f,handleActiveColor:p,handleActiveOutlineColor:g,handleLineWidth:h,handleLineWidthHover:b,motionDurationMid:y}=e;return{[t]:Object.assign(Object.assign({},nn(e)),{position:"relative",height:r,margin:`${K(i)} ${K(o)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${K(o)} ${K(i)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${y}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${y}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${K(h)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:d,height:d,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:u(h).mul(-1).equal(),insetBlockStart:u(h).mul(-1).equal(),width:u(d).add(u(h).mul(2)).equal(),height:u(d).add(u(h).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:d,height:d,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${K(h)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:` inset-inline-start ${y}, inset-block-start ${y}, width ${y}, @@ -364,18 +364,18 @@ html body { `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:d,height:d,boxShadow:`0 0 0 ${K(h)} ${c}`,insetInlineStart:0,insetBlockStart:0},[` ${t}-mark-text, ${t}-dot - `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},pG=(e,t)=>{const{componentCls:n,railSize:r,handleSize:a,dotSize:o,marginFull:i,calc:s}=e,c=t?"paddingBlock":"paddingInline",u=t?"width":"height",d=t?"height":"width",f=t?"insetBlockStart":"insetInlineStart",p=t?"top":"insetInlineStart",g=s(r).mul(3).sub(a).div(2).equal(),h=s(a).sub(r).div(2).equal(),b=t?{borderWidth:`${K(h)} 0`,transform:`translateY(${K(s(h).mul(-1).equal())})`}:{borderWidth:`0 ${K(h)}`,transform:`translateX(${K(e.calc(h).mul(-1).equal())})`};return{[c]:r,[d]:s(r).mul(3).equal(),[`${n}-rail`]:{[u]:"100%",[d]:r},[`${n}-track,${n}-tracks`]:{[d]:r},[`${n}-track-draggable`]:Object.assign({},b),[`${n}-handle`]:{[f]:g},[`${n}-mark`]:{insetInlineStart:0,top:0,[p]:s(r).mul(3).add(t?0:i).equal(),[u]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[p]:r,[u]:"100%",[d]:r},[`${n}-dot`]:{position:"absolute",[f]:s(r).sub(o).div(2).equal()}}},Lbe=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},pG(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},Fbe=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},pG(e,!1)),{height:"100%"})}},jbe=e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,a=e.lineWidth+1,o=e.lineWidth+1*1.5,i=e.colorPrimary,s=new an(i).setAlpha(.2).toRgbString();return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:a,handleLineWidthHover:o,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:i,handleActiveOutlineColor:s,handleColorDisabled:new an(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},Bbe=on("Slider",e=>{const t=zt(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[Dbe(t),Lbe(t),Fbe(t)]},jbe),zbe=l.createContext({});function g1(){const[e,t]=l.useState(!1),n=l.useRef(),r=()=>{Ut.cancel(n.current)},a=o=>{r(),o?t(o):n.current=Ut(()=>{t(o)})};return l.useEffect(()=>r,[]),[e,a]}var Hbe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);atypeof n=="number"?n.toString():""}const Vbe=se.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:a,rootClassName:o,style:i,disabled:s,tooltipPrefixCls:c,tipFormatter:u,tooltipVisible:d,getTooltipPopupContainer:f,tooltipPlacement:p,tooltip:g={},onChangeComplete:h}=e,b=Hbe(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete"]),{vertical:y}=e,{direction:S,slider:v,getPrefixCls:x,getPopupContainer:C}=se.useContext(st),w=se.useContext(Zr),E=s??w,{handleRender:I,direction:T}=se.useContext(zbe),_=(T||S)==="rtl",[$,P]=g1(),[D,A]=g1(),O=Object.assign({},g),{open:N,placement:k,getPopupContainer:M,prefixCls:L,formatter:F}=O,j=N??d,B=($||D)&&j!==!1,z=Ube(F,u),[H,V]=g1(),te=fe=>{h==null||h(fe),V(!1)},Y=(fe,ce)=>fe||(ce?_?"left":"right":"top"),J=x("slider",n),[G,U,q]=Bbe(J),X=ne(a,v==null?void 0:v.className,o,{[`${J}-rtl`]:_,[`${J}-lock`]:H},U,q);_&&!b.vertical&&(b.reverse=!b.reverse),se.useEffect(()=>{const fe=()=>{Ut(()=>{A(!1)},1)};return document.addEventListener("mouseup",fe),()=>{document.removeEventListener("mouseup",fe)}},[]);const Q=r&&!j,ee=I||((fe,ce)=>{const{index:Te}=ce,Se=fe.props;function ve(ye,Ee,Me){var Ie,Ce,me,we;Me&&((Ce=(Ie=b)[ye])===null||Ce===void 0||Ce.call(Ie,Ee)),(we=(me=Se)[ye])===null||we===void 0||we.call(me,Ee)}const ae=Object.assign(Object.assign({},Se),{onMouseEnter:ye=>{P(!0),ve("onMouseEnter",ye)},onMouseLeave:ye=>{P(!1),ve("onMouseLeave",ye)},onMouseDown:ye=>{A(!0),V(!0),ve("onMouseDown",ye)},onFocus:ye=>{var Ee;A(!0),(Ee=b.onFocus)===null||Ee===void 0||Ee.call(b,ye),ve("onFocus",ye,!0)},onBlur:ye=>{var Ee;A(!1),(Ee=b.onBlur)===null||Ee===void 0||Ee.call(b,ye),ve("onBlur",ye,!0)}}),ie=se.cloneElement(fe,ae),ue=(!!j||B)&&z!==null;return Q?ie:se.createElement(oP,Object.assign({},O,{prefixCls:x("tooltip",L??c),title:z?z(ce.value):"",open:ue,placement:Y(k??p,y),key:Te,overlayClassName:`${J}-tooltip`,getPopupContainer:M||f||C}),ie)}),oe=Q?(fe,ce)=>{const Te=se.cloneElement(fe,{style:Object.assign(Object.assign({},fe.props.style),{visibility:"hidden"})});return se.createElement(oP,Object.assign({},O,{prefixCls:x("tooltip",L??c),title:z?z(ce.value):"",open:z!==null&&B,placement:Y(k??p,y),key:"tooltip",overlayClassName:`${J}-tooltip`,getPopupContainer:M||f||C,draggingDelete:ce.draggingDelete}),Te)}:void 0,le=Object.assign(Object.assign({},v==null?void 0:v.style),i);return G(se.createElement(Pbe,Object.assign({},b,{step:b.step,range:r,className:X,style:le,disabled:E,ref:t,prefixCls:J,handleRender:ee,activeHandleRender:oe,onChangeComplete:te})))});var Wbe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},Gbe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Wbe}))},gG=l.forwardRef(Gbe),qbe={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:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},Kbe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:qbe}))},mG=l.forwardRef(Kbe),Ybe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},Xbe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Ybe}))},Zbe=l.forwardRef(Xbe);function Qbe(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function Jbe(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function UO(e,t){const n={adjustX:1,adjustY:1};switch(t){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:n};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:n};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:n};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:n};default:return{points:e==="rtl"?["tr","br"]:["tl","bl"],offset:[0,4],overflow:n}}}function hG(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:a}=dO(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[l.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),a]}const[e0e,t0e]=["week","WeekPicker"],[n0e,r0e]=["month","MonthPicker"],[a0e,o0e]=["year","YearPicker"],[i0e,s0e]=["quarter","QuarterPicker"],[vG,iP]=["time","TimePicker"],l0e=e=>l.createElement(ut,Object.assign({size:"small",type:"primary"},e));function bG(e){return l.useMemo(()=>Object.assign({button:l0e},e),[e])}var c0e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);al.forwardRef((n,r)=>{var a;const{prefixCls:o,getPopupContainer:i,components:s,className:c,style:u,placement:d,size:f,disabled:p,bordered:g=!0,placeholder:h,popupClassName:b,dropdownClassName:y,status:S,rootClassName:v,variant:x,picker:C}=n,w=c0e(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant","picker"]),E=l.useRef(null),{getPrefixCls:I,direction:T,getPopupContainer:R,rangePicker:_}=l.useContext(st),$=I("picker",o),{compactSize:P,compactItemClassnames:D}=Os($,T),A=I(),[O,N]=Dc("rangePicker",x,g),k=Un($),[M,L,F]=HW($,k),[j]=hG(n,$),B=bG(s),z=Er(ee=>{var oe;return(oe=f??P)!==null&&oe!==void 0?oe:ee}),H=l.useContext(Zr),V=p??H,te=l.useContext(zr),{hasFeedback:Y,status:J,feedbackIcon:G}=te,U=l.createElement(l.Fragment,null,C===vG?l.createElement(mG,null):l.createElement(gG,null),Y&&G);l.useImperativeHandle(r,()=>E.current);const[q]=qi("Calendar",ob),X=Object.assign(Object.assign({},q),n.locale),[Q]=Si("DatePicker",(a=n.popupStyle)===null||a===void 0?void 0:a.zIndex);return M(l.createElement(Ui,{space:!0},l.createElement(Gge,Object.assign({separator:l.createElement("span",{"aria-label":"to",className:`${$}-separator`},l.createElement(Zbe,null)),disabled:V,ref:E,popupAlign:UO(T,d),placement:d,placeholder:Jbe(X,C,h),suffixIcon:U,prevIcon:l.createElement("span",{className:`${$}-prev-icon`}),nextIcon:l.createElement("span",{className:`${$}-next-icon`}),superPrevIcon:l.createElement("span",{className:`${$}-super-prev-icon`}),superNextIcon:l.createElement("span",{className:`${$}-super-next-icon`}),transitionName:`${A}-slide-up`,picker:C},w,{className:ne({[`${$}-${z}`]:z,[`${$}-${O}`]:N},Is($,Nl(J,S),Y),L,D,c,_==null?void 0:_.className,F,k,v),style:Object.assign(Object.assign({},_==null?void 0:_.style),u),locale:X.lang,prefixCls:$,getPopupContainer:i||R,generateConfig:e,components:B,direction:T,classNames:{popup:ne(L,b||y,F,k,v)},styles:{popup:Object.assign(Object.assign({},n.popupStyle),{zIndex:Q})},allowClear:j}))))});var d0e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const t=(c,u)=>{const d=u===iP?"timePicker":"datePicker";return l.forwardRef((p,g)=>{var h;const{prefixCls:b,getPopupContainer:y,components:S,style:v,className:x,rootClassName:C,size:w,bordered:E,placement:I,placeholder:T,popupClassName:R,dropdownClassName:_,disabled:$,status:P,variant:D,onCalendarChange:A}=p,O=d0e(p,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:N,direction:k,getPopupContainer:M,[d]:L}=l.useContext(st),F=N("picker",b),{compactSize:j,compactItemClassnames:B}=Os(F,k),z=l.useRef(null),[H,V]=Dc("datePicker",D,E),te=Un(F),[Y,J,G]=HW(F,te);l.useImperativeHandle(g,()=>z.current);const U={showToday:!0},q=c||p.picker,X=N(),{onSelect:Q,multiple:ee}=O,oe=Q&&c==="time"&&!ee,le=(we,_e,Ne)=>{A==null||A(we,_e,Ne),oe&&Q(we)},[fe,ce]=hG(p,F),Te=bG(S),Se=Er(we=>{var _e;return(_e=w??j)!==null&&_e!==void 0?_e:we}),ve=l.useContext(Zr),ae=$??ve,ie=l.useContext(zr),{hasFeedback:ue,status:ye,feedbackIcon:Ee}=ie,Me=l.createElement(l.Fragment,null,q==="time"?l.createElement(mG,null):l.createElement(gG,null),ue&&Ee),[Ie]=qi("DatePicker",ob),Ce=Object.assign(Object.assign({},Ie),p.locale),[me]=Si("DatePicker",(h=p.popupStyle)===null||h===void 0?void 0:h.zIndex);return Y(l.createElement(Ui,{space:!0},l.createElement(Qge,Object.assign({ref:z,placeholder:Qbe(Ce,q,T),suffixIcon:Me,dropdownAlign:UO(k,I),placement:I,prevIcon:l.createElement("span",{className:`${F}-prev-icon`}),nextIcon:l.createElement("span",{className:`${F}-next-icon`}),superPrevIcon:l.createElement("span",{className:`${F}-super-prev-icon`}),superNextIcon:l.createElement("span",{className:`${F}-super-next-icon`}),transitionName:`${X}-slide-up`,picker:c,onCalendarChange:le},U,O,{locale:Ce.lang,className:ne({[`${F}-${Se}`]:Se,[`${F}-${H}`]:V},Is(F,Nl(ye,P),ue),J,B,L==null?void 0:L.className,x,G,te,C),style:Object.assign(Object.assign({},L==null?void 0:L.style),v),prefixCls:F,getPopupContainer:y||M,generateConfig:e,components:Te,direction:k,disabled:ae,classNames:{popup:ne(J,G,te,C,R||_)},styles:{popup:Object.assign(Object.assign({},p.popupStyle),{zIndex:me})},allowClear:fe,removeIcon:ce}))))})},n=t(),r=t(e0e,t0e),a=t(n0e,r0e),o=t(a0e,o0e),i=t(i0e,s0e),s=t(vG,iP);return{DatePicker:n,WeekPicker:r,MonthPicker:a,YearPicker:o,TimePicker:s,QuarterPicker:i}},yG=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:a,TimePicker:o,QuarterPicker:i}=f0e(e),s=u0e(e),c=t;return c.WeekPicker=n,c.MonthPicker=r,c.YearPicker=a,c.RangePicker=s,c.TimePicker=o,c.QuarterPicker=i,c},ef=yG(nge);function SG(e){const t=UO(e.direction,e.placement);return t.overflow.adjustY=!1,t.overflow.adjustX=!1,Object.assign(Object.assign({},e),{dropdownAlign:t})}const p0e=Jg(ef,"picker",null,SG);ef._InternalPanelDoNotUseOrYouWillBeFired=p0e;const g0e=Jg(ef.RangePicker,"picker",null,SG);ef._InternalRangePanelDoNotUseOrYouWillBeFired=g0e;ef.generatePicker=yG;var sP=l.createContext(null),xG=l.createContext({}),m0e=["prefixCls","className","containerRef"],h0e=function(t){var n=t.prefixCls,r=t.className,a=t.containerRef,o=xt(t,m0e),i=l.useContext(xG),s=i.panel,c=$s(s,a);return l.createElement("div",pe({className:ne("".concat(n,"-content"),r),role:"dialog",ref:c},Yn(t,{aria:!0}),{"aria-modal":"true"},o))};function lP(e){return typeof e=="string"&&String(Number(e))===e?(vn(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var cP={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function v0e(e,t){var n,r,a,o=e.prefixCls,i=e.open,s=e.placement,c=e.inline,u=e.push,d=e.forceRender,f=e.autoFocus,p=e.keyboard,g=e.classNames,h=e.rootClassName,b=e.rootStyle,y=e.zIndex,S=e.className,v=e.id,x=e.style,C=e.motion,w=e.width,E=e.height,I=e.children,T=e.mask,R=e.maskClosable,_=e.maskMotion,$=e.maskClassName,P=e.maskStyle,D=e.afterOpenChange,A=e.onClose,O=e.onMouseEnter,N=e.onMouseOver,k=e.onMouseLeave,M=e.onClick,L=e.onKeyDown,F=e.onKeyUp,j=e.styles,B=e.drawerRender,z=l.useRef(),H=l.useRef(),V=l.useRef();l.useImperativeHandle(t,function(){return z.current});var te=function(ae){var ie=ae.keyCode,ue=ae.shiftKey;switch(ie){case Le.TAB:{if(ie===Le.TAB){if(!ue&&document.activeElement===V.current){var ye;(ye=H.current)===null||ye===void 0||ye.focus({preventScroll:!0})}else if(ue&&document.activeElement===H.current){var Ee;(Ee=V.current)===null||Ee===void 0||Ee.focus({preventScroll:!0})}}break}case Le.ESC:{A&&p&&(ae.stopPropagation(),A(ae));break}}};l.useEffect(function(){if(i&&f){var ve;(ve=z.current)===null||ve===void 0||ve.focus({preventScroll:!0})}},[i]);var Y=l.useState(!1),J=re(Y,2),G=J[0],U=J[1],q=l.useContext(sP),X;typeof u=="boolean"?X=u?{}:{distance:0}:X=u||{};var Q=(n=(r=(a=X)===null||a===void 0?void 0:a.distance)!==null&&r!==void 0?r:q==null?void 0:q.pushDistance)!==null&&n!==void 0?n:180,ee=l.useMemo(function(){return{pushDistance:Q,push:function(){U(!0)},pull:function(){U(!1)}}},[Q]);l.useEffect(function(){if(i){var ve;q==null||(ve=q.push)===null||ve===void 0||ve.call(q)}else{var ae;q==null||(ae=q.pull)===null||ae===void 0||ae.call(q)}},[i]),l.useEffect(function(){return function(){var ve;q==null||(ve=q.pull)===null||ve===void 0||ve.call(q)}},[]);var oe=T&&l.createElement(Qr,pe({key:"mask"},_,{visible:i}),function(ve,ae){var ie=ve.className,ue=ve.style;return l.createElement("div",{className:ne("".concat(o,"-mask"),ie,g==null?void 0:g.mask,$),style:Z(Z(Z({},ue),P),j==null?void 0:j.mask),onClick:R&&i?A:void 0,ref:ae})}),le=typeof C=="function"?C(s):C,fe={};if(G&&Q)switch(s){case"top":fe.transform="translateY(".concat(Q,"px)");break;case"bottom":fe.transform="translateY(".concat(-Q,"px)");break;case"left":fe.transform="translateX(".concat(Q,"px)");break;default:fe.transform="translateX(".concat(-Q,"px)");break}s==="left"||s==="right"?fe.width=lP(w):fe.height=lP(E);var ce={onMouseEnter:O,onMouseOver:N,onMouseLeave:k,onClick:M,onKeyDown:L,onKeyUp:F},Te=l.createElement(Qr,pe({key:"panel"},le,{visible:i,forceRender:d,onVisibleChanged:function(ae){D==null||D(ae)},removeOnLeave:!1,leavedClassName:"".concat(o,"-content-wrapper-hidden")}),function(ve,ae){var ie=ve.className,ue=ve.style,ye=l.createElement(h0e,pe({id:v,containerRef:ae,prefixCls:o,className:ne(S,g==null?void 0:g.content),style:Z(Z({},x),j==null?void 0:j.content)},Yn(e,{aria:!0}),ce),I);return l.createElement("div",pe({className:ne("".concat(o,"-content-wrapper"),g==null?void 0:g.wrapper,ie),style:Z(Z(Z({},fe),ue),j==null?void 0:j.wrapper)},Yn(e,{data:!0})),B?B(ye):ye)}),Se=Z({},b);return y&&(Se.zIndex=y),l.createElement(sP.Provider,{value:ee},l.createElement("div",{className:ne(o,"".concat(o,"-").concat(s),h,W(W({},"".concat(o,"-open"),i),"".concat(o,"-inline"),c)),style:Se,tabIndex:-1,ref:z,onKeyDown:te},oe,l.createElement("div",{tabIndex:0,ref:H,style:cP,"aria-hidden":"true","data-sentinel":"start"}),Te,l.createElement("div",{tabIndex:0,ref:V,style:cP,"aria-hidden":"true","data-sentinel":"end"})))}var b0e=l.forwardRef(v0e),y0e=function(t){var n=t.open,r=n===void 0?!1:n,a=t.prefixCls,o=a===void 0?"rc-drawer":a,i=t.placement,s=i===void 0?"right":i,c=t.autoFocus,u=c===void 0?!0:c,d=t.keyboard,f=d===void 0?!0:d,p=t.width,g=p===void 0?378:p,h=t.mask,b=h===void 0?!0:h,y=t.maskClosable,S=y===void 0?!0:y,v=t.getContainer,x=t.forceRender,C=t.afterOpenChange,w=t.destroyOnClose,E=t.onMouseEnter,I=t.onMouseOver,T=t.onMouseLeave,R=t.onClick,_=t.onKeyDown,$=t.onKeyUp,P=t.panelRef,D=l.useState(!1),A=re(D,2),O=A[0],N=A[1],k=l.useState(!1),M=re(k,2),L=M[0],F=M[1];Xt(function(){F(!0)},[]);var j=L?r:!1,B=l.useRef(),z=l.useRef();Xt(function(){j&&(z.current=document.activeElement)},[j]);var H=function(G){var U;if(N(G),C==null||C(G),!G&&z.current&&!((U=B.current)!==null&&U!==void 0&&U.contains(z.current))){var q;(q=z.current)===null||q===void 0||q.focus({preventScroll:!0})}},V=l.useMemo(function(){return{panel:P}},[P]);if(!x&&!O&&!j&&w)return null;var te={onMouseEnter:E,onMouseOver:I,onMouseLeave:T,onClick:R,onKeyDown:_,onKeyUp:$},Y=Z(Z({},t),{},{open:j,prefixCls:o,placement:s,autoFocus:u,keyboard:f,width:g,mask:b,maskClosable:S,inline:v===!1,afterOpenChange:H,ref:B},te);return l.createElement(xG.Provider,{value:V},l.createElement(Yg,{open:j||x||O,autoDestroy:!1,getContainer:v,autoLock:b&&(j||O)},l.createElement(b0e,Y)))};const wG=e=>{var t,n;const{prefixCls:r,title:a,footer:o,extra:i,loading:s,onClose:c,headerStyle:u,bodyStyle:d,footerStyle:f,children:p,classNames:g,styles:h}=e,{drawer:b}=l.useContext(st),y=l.useCallback(w=>l.createElement("button",{type:"button",onClick:c,"aria-label":"Close",className:`${r}-close`},w),[c]),[S,v]=aO(xd(e),xd(b),{closable:!0,closeIconRender:y}),x=l.useMemo(()=>{var w,E;return!a&&!S?null:l.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(w=b==null?void 0:b.styles)===null||w===void 0?void 0:w.header),u),h==null?void 0:h.header),className:ne(`${r}-header`,{[`${r}-header-close-only`]:S&&!a&&!i},(E=b==null?void 0:b.classNames)===null||E===void 0?void 0:E.header,g==null?void 0:g.header)},l.createElement("div",{className:`${r}-header-title`},v,a&&l.createElement("div",{className:`${r}-title`},a)),i&&l.createElement("div",{className:`${r}-extra`},i))},[S,v,i,u,r,a]),C=l.useMemo(()=>{var w,E;if(!o)return null;const I=`${r}-footer`;return l.createElement("div",{className:ne(I,(w=b==null?void 0:b.classNames)===null||w===void 0?void 0:w.footer,g==null?void 0:g.footer),style:Object.assign(Object.assign(Object.assign({},(E=b==null?void 0:b.styles)===null||E===void 0?void 0:E.footer),f),h==null?void 0:h.footer)},o)},[o,f,r]);return l.createElement(l.Fragment,null,x,l.createElement("div",{className:ne(`${r}-body`,g==null?void 0:g.body,(t=b==null?void 0:b.classNames)===null||t===void 0?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},(n=b==null?void 0:b.styles)===null||n===void 0?void 0:n.body),d),h==null?void 0:h.body)},s?l.createElement(Ol,{active:!0,title:!1,paragraph:{rows:5},className:`${r}-body-skeleton`}):p),C)},S0e=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},CG=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),EG=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},CG({opacity:e},{opacity:1})),x0e=(e,t)=>[EG(.7,t),CG({transform:S0e(e)},{transform:"none"})],w0e=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:EG(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,a)=>Object.assign(Object.assign({},r),{[`&-${a}`]:x0e(a,n)}),{})}}},C0e=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:a,colorBgElevated:o,motionDurationSlow:i,motionDurationMid:s,paddingXS:c,padding:u,paddingLG:d,fontSizeLG:f,lineHeightLG:p,lineWidth:g,lineType:h,colorSplit:b,marginXS:y,colorIcon:S,colorIconHover:v,colorBgTextHover:x,colorBgTextActive:C,colorText:w,fontWeightStrong:E,footerPaddingBlock:I,footerPaddingInline:T,calc:R}=e,_=`${n}-content-wrapper`;return{[n]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:w,"&-pure":{position:"relative",background:o,display:"flex",flexDirection:"column",[`&${n}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${n}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${n}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${n}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${n}-mask`]:{position:"absolute",inset:0,zIndex:r,background:a,pointerEvents:"auto"},[_]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${i}`,"&-hidden":{display:"none"}},[`&-left > ${_}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${_}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${_}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${_}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:o,pointerEvents:"auto"},[`${n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${K(u)} ${K(d)}`,fontSize:f,lineHeight:p,borderBottom:`${K(g)} ${h} ${b}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:Object.assign({display:"inline-flex",width:R(f).add(c).equal(),height:R(f).add(c).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",marginInlineEnd:y,color:S,fontWeight:E,fontSize:f,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${s}`,textRendering:"auto","&:hover":{color:v,backgroundColor:x,textDecoration:"none"},"&:active":{backgroundColor:C}},zi(e)),[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:f,lineHeight:p},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:d,overflow:"auto",[`${n}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${n}-footer`]:{flexShrink:0,padding:`${K(I)} ${K(T)}`,borderTop:`${K(g)} ${h} ${b}`},"&-rtl":{direction:"rtl"}}}},E0e=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}),IG=on("Drawer",e=>{const t=zt(e,{});return[C0e(t),w0e(t)]},E0e);var TG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{rootClassName:t,width:n,height:r,size:a="default",mask:o=!0,push:i=I0e,open:s,afterOpenChange:c,onClose:u,prefixCls:d,getContainer:f,style:p,className:g,visible:h,afterVisibleChange:b,maskStyle:y,drawerStyle:S,contentWrapperStyle:v}=e,x=TG(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:C,getPrefixCls:w,direction:E,drawer:I}=l.useContext(st),T=w("drawer",d),[R,_,$]=IG(T),P=f===void 0&&C?()=>C(document.body):f,D=ne({"no-mask":!o,[`${T}-rtl`]:E==="rtl"},t,_,$),A=l.useMemo(()=>n??(a==="large"?736:378),[n,a]),O=l.useMemo(()=>r??(a==="large"?736:378),[r,a]),N={motionName:xa(T,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},k=V=>({motionName:xa(T,`panel-motion-${V}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),M=OU(),[L,F]=Si("Drawer",x.zIndex),{classNames:j={},styles:B={}}=x,{classNames:z={},styles:H={}}=I||{};return R(l.createElement(Ui,{form:!0,space:!0},l.createElement(Vg.Provider,{value:F},l.createElement(y0e,Object.assign({prefixCls:T,onClose:u,maskMotion:N,motion:k},x,{classNames:{mask:ne(j.mask,z.mask),content:ne(j.content,z.content),wrapper:ne(j.wrapper,z.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},B.mask),y),H.mask),content:Object.assign(Object.assign(Object.assign({},B.content),S),H.content),wrapper:Object.assign(Object.assign(Object.assign({},B.wrapper),v),H.wrapper)},open:s??h,mask:o,push:i,width:A,height:O,style:Object.assign(Object.assign({},I==null?void 0:I.style),p),className:ne(I==null?void 0:I.className,g),rootClassName:D,getContainer:P,afterOpenChange:c??b,panelRef:M,zIndex:L}),l.createElement(wG,Object.assign({prefixCls:T},x,{onClose:u}))))))},T0e=e=>{const{prefixCls:t,style:n,className:r,placement:a="right"}=e,o=TG(e,["prefixCls","style","className","placement"]),{getPrefixCls:i}=l.useContext(st),s=i("drawer",t),[c,u,d]=IG(s),f=ne(s,`${s}-pure`,`${s}-${a}`,u,d,r);return c(l.createElement("div",{className:f,style:n},l.createElement(wG,Object.assign({prefixCls:s},o))))};RG._InternalPanelDoNotUseOrYouWillBeFired=T0e;function uP(e){return["small","middle","large"].includes(e)}function dP(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const _G=se.createContext({latestIndex:0}),R0e=_G.Provider,_0e=e=>{let{className:t,index:n,children:r,split:a,style:o}=e;const{latestIndex:i}=l.useContext(_G);return r==null?null:l.createElement(l.Fragment,null,l.createElement("div",{className:t,style:o},r),n{var n,r,a;const{getPrefixCls:o,space:i,direction:s}=l.useContext(st),{size:c=(n=i==null?void 0:i.size)!==null&&n!==void 0?n:"small",align:u,className:d,rootClassName:f,children:p,direction:g="horizontal",prefixCls:h,split:b,style:y,wrap:S=!1,classNames:v,styles:x}=e,C=$0e(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[w,E]=Array.isArray(c)?c:[c,c],I=uP(E),T=uP(w),R=dP(E),_=dP(w),$=vr(p,{keepEmpty:!0}),P=u===void 0&&g==="horizontal"?"center":u,D=o("space",h),[A,O,N]=nU(D),k=ne(D,i==null?void 0:i.className,O,`${D}-${g}`,{[`${D}-rtl`]:s==="rtl",[`${D}-align-${P}`]:P,[`${D}-gap-row-${E}`]:I,[`${D}-gap-col-${w}`]:T},d,f,N),M=ne(`${D}-item`,(r=v==null?void 0:v.item)!==null&&r!==void 0?r:(a=i==null?void 0:i.classNames)===null||a===void 0?void 0:a.item);let L=0;const F=$.map((z,H)=>{var V,te;z!=null&&(L=H);const Y=(z==null?void 0:z.key)||`${M}-${H}`;return l.createElement(_0e,{className:M,key:Y,index:H,split:b,style:(V=x==null?void 0:x.item)!==null&&V!==void 0?V:(te=i==null?void 0:i.styles)===null||te===void 0?void 0:te.item},z)}),j=l.useMemo(()=>({latestIndex:L}),[L]);if($.length===0)return null;const B={};return S&&(B.flexWrap="wrap"),!T&&_&&(B.columnGap=w),!I&&R&&(B.rowGap=E),A(l.createElement("div",Object.assign({ref:t,className:k,style:Object.assign(Object.assign(Object.assign({},B),i==null?void 0:i.style),y)},C),l.createElement(R0e,{value:j},F)))}),Na=O0e;Na.Compact=Vie;var N0e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPopupContainer:t,getPrefixCls:n,direction:r}=l.useContext(st),{prefixCls:a,type:o="default",danger:i,disabled:s,loading:c,onClick:u,htmlType:d,children:f,className:p,menu:g,arrow:h,autoFocus:b,overlay:y,trigger:S,align:v,open:x,onOpenChange:C,placement:w,getPopupContainer:E,href:I,icon:T=l.createElement(wO,null),title:R,buttonsRender:_=J=>J,mouseEnterDelay:$,mouseLeaveDelay:P,overlayClassName:D,overlayStyle:A,destroyPopupOnHide:O,dropdownRender:N}=e,k=N0e(e,["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"]),M=n("dropdown",a),L=`${M}-button`,F={menu:g,arrow:h,autoFocus:b,align:v,disabled:s,trigger:s?[]:S,onOpenChange:C,getPopupContainer:E||t,mouseEnterDelay:$,mouseLeaveDelay:P,overlayClassName:D,overlayStyle:A,destroyPopupOnHide:O,dropdownRender:N},{compactSize:j,compactItemClassnames:B}=Os(M,r),z=ne(L,B,p);"overlay"in e&&(F.overlay=y),"open"in e&&(F.open=x),"placement"in e?F.placement=w:F.placement=r==="rtl"?"bottomLeft":"bottomRight";const H=l.createElement(ut,{type:o,danger:i,disabled:s,loading:c,onClick:u,htmlType:d,href:I,title:R},f),V=l.createElement(ut,{type:o,danger:i,icon:T}),[te,Y]=_([H,V]);return l.createElement(Na.Compact,Object.assign({className:z,size:j,block:!0},k),te,l.createElement(om,Object.assign({},F),Y))};$G.__ANT_BUTTON=!0;const ny=om;ny.Button=$G;var k0e={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 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"},A0e=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:k0e}))},M0e=l.forwardRef(A0e);function yb(e){const[t,n]=l.useState(e);return l.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const P0e=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut}, + `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},pG=(e,t)=>{const{componentCls:n,railSize:r,handleSize:a,dotSize:o,marginFull:i,calc:s}=e,c=t?"paddingBlock":"paddingInline",u=t?"width":"height",d=t?"height":"width",f=t?"insetBlockStart":"insetInlineStart",p=t?"top":"insetInlineStart",g=s(r).mul(3).sub(a).div(2).equal(),h=s(a).sub(r).div(2).equal(),b=t?{borderWidth:`${K(h)} 0`,transform:`translateY(${K(s(h).mul(-1).equal())})`}:{borderWidth:`0 ${K(h)}`,transform:`translateX(${K(e.calc(h).mul(-1).equal())})`};return{[c]:r,[d]:s(r).mul(3).equal(),[`${n}-rail`]:{[u]:"100%",[d]:r},[`${n}-track,${n}-tracks`]:{[d]:r},[`${n}-track-draggable`]:Object.assign({},b),[`${n}-handle`]:{[f]:g},[`${n}-mark`]:{insetInlineStart:0,top:0,[p]:s(r).mul(3).add(t?0:i).equal(),[u]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[p]:r,[u]:"100%",[d]:r},[`${n}-dot`]:{position:"absolute",[f]:s(r).sub(o).div(2).equal()}}},Lbe=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},pG(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},Fbe=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},pG(e,!1)),{height:"100%"})}},jbe=e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,a=e.lineWidth+1,o=e.lineWidth+1*1.5,i=e.colorPrimary,s=new an(i).setAlpha(.2).toRgbString();return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:a,handleLineWidthHover:o,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:i,handleActiveOutlineColor:s,handleColorDisabled:new an(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},Bbe=on("Slider",e=>{const t=zt(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[Dbe(t),Lbe(t),Fbe(t)]},jbe),zbe=l.createContext({});function m1(){const[e,t]=l.useState(!1),n=l.useRef(),r=()=>{Ut.cancel(n.current)},a=o=>{r(),o?t(o):n.current=Ut(()=>{t(o)})};return l.useEffect(()=>r,[]),[e,a]}var Hbe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);atypeof n=="number"?n.toString():""}const Vbe=se.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:a,rootClassName:o,style:i,disabled:s,tooltipPrefixCls:c,tipFormatter:u,tooltipVisible:d,getTooltipPopupContainer:f,tooltipPlacement:p,tooltip:g={},onChangeComplete:h}=e,b=Hbe(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete"]),{vertical:y}=e,{direction:S,slider:v,getPrefixCls:x,getPopupContainer:w}=se.useContext(st),C=se.useContext(Jr),E=s??C,{handleRender:I,direction:T}=se.useContext(zbe),_=(T||S)==="rtl",[$,P]=m1(),[D,A]=m1(),O=Object.assign({},g),{open:N,placement:k,getPopupContainer:M,prefixCls:L,formatter:F}=O,j=N??d,B=($||D)&&j!==!1,z=Ube(F,u),[H,V]=m1(),te=fe=>{h==null||h(fe),V(!1)},Y=(fe,ce)=>fe||(ce?_?"left":"right":"top"),J=x("slider",n),[G,U,q]=Bbe(J),X=ne(a,v==null?void 0:v.className,o,{[`${J}-rtl`]:_,[`${J}-lock`]:H},U,q);_&&!b.vertical&&(b.reverse=!b.reverse),se.useEffect(()=>{const fe=()=>{Ut(()=>{A(!1)},1)};return document.addEventListener("mouseup",fe),()=>{document.removeEventListener("mouseup",fe)}},[]);const Q=r&&!j,ee=I||((fe,ce)=>{const{index:Ie}=ce,be=fe.props;function he(xe,we,Me){var Ce,De,ye,ve;Me&&((De=(Ce=b)[xe])===null||De===void 0||De.call(Ce,we)),(ve=(ye=be)[xe])===null||ve===void 0||ve.call(ye,we)}const ae=Object.assign(Object.assign({},be),{onMouseEnter:xe=>{P(!0),he("onMouseEnter",xe)},onMouseLeave:xe=>{P(!1),he("onMouseLeave",xe)},onMouseDown:xe=>{A(!0),V(!0),he("onMouseDown",xe)},onFocus:xe=>{var we;A(!0),(we=b.onFocus)===null||we===void 0||we.call(b,xe),he("onFocus",xe,!0)},onBlur:xe=>{var we;A(!1),(we=b.onBlur)===null||we===void 0||we.call(b,xe),he("onBlur",xe,!0)}}),ie=se.cloneElement(fe,ae),ue=(!!j||B)&&z!==null;return Q?ie:se.createElement(oP,Object.assign({},O,{prefixCls:x("tooltip",L??c),title:z?z(ce.value):"",open:ue,placement:Y(k??p,y),key:Ie,overlayClassName:`${J}-tooltip`,getPopupContainer:M||f||w}),ie)}),oe=Q?(fe,ce)=>{const Ie=se.cloneElement(fe,{style:Object.assign(Object.assign({},fe.props.style),{visibility:"hidden"})});return se.createElement(oP,Object.assign({},O,{prefixCls:x("tooltip",L??c),title:z?z(ce.value):"",open:z!==null&&B,placement:Y(k??p,y),key:"tooltip",overlayClassName:`${J}-tooltip`,getPopupContainer:M||f||w,draggingDelete:ce.draggingDelete}),Ie)}:void 0,le=Object.assign(Object.assign({},v==null?void 0:v.style),i);return G(se.createElement(Pbe,Object.assign({},b,{step:b.step,range:r,className:X,style:le,disabled:E,ref:t,prefixCls:J,handleRender:ee,activeHandleRender:oe,onChangeComplete:te})))});var Wbe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},Gbe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Wbe}))},gG=l.forwardRef(Gbe),qbe={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:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},Kbe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:qbe}))},mG=l.forwardRef(Kbe),Ybe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},Xbe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Ybe}))},Zbe=l.forwardRef(Xbe);function Qbe(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function Jbe(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function VO(e,t){const n={adjustX:1,adjustY:1};switch(t){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:n};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:n};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:n};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:n};default:return{points:e==="rtl"?["tr","br"]:["tl","bl"],offset:[0,4],overflow:n}}}function hG(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:a}=fO(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[l.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),a]}const[e0e,t0e]=["week","WeekPicker"],[n0e,r0e]=["month","MonthPicker"],[a0e,o0e]=["year","YearPicker"],[i0e,s0e]=["quarter","QuarterPicker"],[vG,iP]=["time","TimePicker"],l0e=e=>l.createElement(ct,Object.assign({size:"small",type:"primary"},e));function bG(e){return l.useMemo(()=>Object.assign({button:l0e},e),[e])}var c0e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);al.forwardRef((n,r)=>{var a;const{prefixCls:o,getPopupContainer:i,components:s,className:c,style:u,placement:d,size:f,disabled:p,bordered:g=!0,placeholder:h,popupClassName:b,dropdownClassName:y,status:S,rootClassName:v,variant:x,picker:w}=n,C=c0e(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant","picker"]),E=l.useRef(null),{getPrefixCls:I,direction:T,getPopupContainer:R,rangePicker:_}=l.useContext(st),$=I("picker",o),{compactSize:P,compactItemClassnames:D}=Ns($,T),A=I(),[O,N]=Dc("rangePicker",x,g),k=Un($),[M,L,F]=HW($,k),[j]=hG(n,$),B=bG(s),z=Er(ee=>{var oe;return(oe=f??P)!==null&&oe!==void 0?oe:ee}),H=l.useContext(Jr),V=p??H,te=l.useContext(zr),{hasFeedback:Y,status:J,feedbackIcon:G}=te,U=l.createElement(l.Fragment,null,w===vG?l.createElement(mG,null):l.createElement(gG,null),Y&&G);l.useImperativeHandle(r,()=>E.current);const[q]=Ki("Calendar",ib),X=Object.assign(Object.assign({},q),n.locale),[Q]=xi("DatePicker",(a=n.popupStyle)===null||a===void 0?void 0:a.zIndex);return M(l.createElement(Vi,{space:!0},l.createElement(Gge,Object.assign({separator:l.createElement("span",{"aria-label":"to",className:`${$}-separator`},l.createElement(Zbe,null)),disabled:V,ref:E,popupAlign:VO(T,d),placement:d,placeholder:Jbe(X,w,h),suffixIcon:U,prevIcon:l.createElement("span",{className:`${$}-prev-icon`}),nextIcon:l.createElement("span",{className:`${$}-next-icon`}),superPrevIcon:l.createElement("span",{className:`${$}-super-prev-icon`}),superNextIcon:l.createElement("span",{className:`${$}-super-next-icon`}),transitionName:`${A}-slide-up`,picker:w},C,{className:ne({[`${$}-${z}`]:z,[`${$}-${O}`]:N},Ts($,Nl(J,S),Y),L,D,c,_==null?void 0:_.className,F,k,v),style:Object.assign(Object.assign({},_==null?void 0:_.style),u),locale:X.lang,prefixCls:$,getPopupContainer:i||R,generateConfig:e,components:B,direction:T,classNames:{popup:ne(L,b||y,F,k,v)},styles:{popup:Object.assign(Object.assign({},n.popupStyle),{zIndex:Q})},allowClear:j}))))});var d0e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const t=(c,u)=>{const d=u===iP?"timePicker":"datePicker";return l.forwardRef((p,g)=>{var h;const{prefixCls:b,getPopupContainer:y,components:S,style:v,className:x,rootClassName:w,size:C,bordered:E,placement:I,placeholder:T,popupClassName:R,dropdownClassName:_,disabled:$,status:P,variant:D,onCalendarChange:A}=p,O=d0e(p,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:N,direction:k,getPopupContainer:M,[d]:L}=l.useContext(st),F=N("picker",b),{compactSize:j,compactItemClassnames:B}=Ns(F,k),z=l.useRef(null),[H,V]=Dc("datePicker",D,E),te=Un(F),[Y,J,G]=HW(F,te);l.useImperativeHandle(g,()=>z.current);const U={showToday:!0},q=c||p.picker,X=N(),{onSelect:Q,multiple:ee}=O,oe=Q&&c==="time"&&!ee,le=(ve,$e,Ee)=>{A==null||A(ve,$e,Ee),oe&&Q(ve)},[fe,ce]=hG(p,F),Ie=bG(S),be=Er(ve=>{var $e;return($e=C??j)!==null&&$e!==void 0?$e:ve}),he=l.useContext(Jr),ae=$??he,ie=l.useContext(zr),{hasFeedback:ue,status:xe,feedbackIcon:we}=ie,Me=l.createElement(l.Fragment,null,q==="time"?l.createElement(mG,null):l.createElement(gG,null),ue&&we),[Ce]=Ki("DatePicker",ib),De=Object.assign(Object.assign({},Ce),p.locale),[ye]=xi("DatePicker",(h=p.popupStyle)===null||h===void 0?void 0:h.zIndex);return Y(l.createElement(Vi,{space:!0},l.createElement(Qge,Object.assign({ref:z,placeholder:Qbe(De,q,T),suffixIcon:Me,dropdownAlign:VO(k,I),placement:I,prevIcon:l.createElement("span",{className:`${F}-prev-icon`}),nextIcon:l.createElement("span",{className:`${F}-next-icon`}),superPrevIcon:l.createElement("span",{className:`${F}-super-prev-icon`}),superNextIcon:l.createElement("span",{className:`${F}-super-next-icon`}),transitionName:`${X}-slide-up`,picker:c,onCalendarChange:le},U,O,{locale:De.lang,className:ne({[`${F}-${be}`]:be,[`${F}-${H}`]:V},Ts(F,Nl(xe,P),ue),J,B,L==null?void 0:L.className,x,G,te,w),style:Object.assign(Object.assign({},L==null?void 0:L.style),v),prefixCls:F,getPopupContainer:y||M,generateConfig:e,components:Ie,direction:k,disabled:ae,classNames:{popup:ne(J,G,te,w,R||_)},styles:{popup:Object.assign(Object.assign({},p.popupStyle),{zIndex:ye})},allowClear:fe,removeIcon:ce}))))})},n=t(),r=t(e0e,t0e),a=t(n0e,r0e),o=t(a0e,o0e),i=t(i0e,s0e),s=t(vG,iP);return{DatePicker:n,WeekPicker:r,MonthPicker:a,YearPicker:o,TimePicker:s,QuarterPicker:i}},yG=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:a,TimePicker:o,QuarterPicker:i}=f0e(e),s=u0e(e),c=t;return c.WeekPicker=n,c.MonthPicker=r,c.YearPicker=a,c.RangePicker=s,c.TimePicker=o,c.QuarterPicker=i,c},ef=yG(nge);function SG(e){const t=VO(e.direction,e.placement);return t.overflow.adjustY=!1,t.overflow.adjustX=!1,Object.assign(Object.assign({},e),{dropdownAlign:t})}const p0e=tm(ef,"picker",null,SG);ef._InternalPanelDoNotUseOrYouWillBeFired=p0e;const g0e=tm(ef.RangePicker,"picker",null,SG);ef._InternalRangePanelDoNotUseOrYouWillBeFired=g0e;ef.generatePicker=yG;var sP=l.createContext(null),xG=l.createContext({}),m0e=["prefixCls","className","containerRef"],h0e=function(t){var n=t.prefixCls,r=t.className,a=t.containerRef,o=xt(t,m0e),i=l.useContext(xG),s=i.panel,c=Os(s,a);return l.createElement("div",pe({className:ne("".concat(n,"-content"),r),role:"dialog",ref:c},Yn(t,{aria:!0}),{"aria-modal":"true"},o))};function lP(e){return typeof e=="string"&&String(Number(e))===e?(vn(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var cP={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function v0e(e,t){var n,r,a,o=e.prefixCls,i=e.open,s=e.placement,c=e.inline,u=e.push,d=e.forceRender,f=e.autoFocus,p=e.keyboard,g=e.classNames,h=e.rootClassName,b=e.rootStyle,y=e.zIndex,S=e.className,v=e.id,x=e.style,w=e.motion,C=e.width,E=e.height,I=e.children,T=e.mask,R=e.maskClosable,_=e.maskMotion,$=e.maskClassName,P=e.maskStyle,D=e.afterOpenChange,A=e.onClose,O=e.onMouseEnter,N=e.onMouseOver,k=e.onMouseLeave,M=e.onClick,L=e.onKeyDown,F=e.onKeyUp,j=e.styles,B=e.drawerRender,z=l.useRef(),H=l.useRef(),V=l.useRef();l.useImperativeHandle(t,function(){return z.current});var te=function(ae){var ie=ae.keyCode,ue=ae.shiftKey;switch(ie){case Le.TAB:{if(ie===Le.TAB){if(!ue&&document.activeElement===V.current){var xe;(xe=H.current)===null||xe===void 0||xe.focus({preventScroll:!0})}else if(ue&&document.activeElement===H.current){var we;(we=V.current)===null||we===void 0||we.focus({preventScroll:!0})}}break}case Le.ESC:{A&&p&&(ae.stopPropagation(),A(ae));break}}};l.useEffect(function(){if(i&&f){var he;(he=z.current)===null||he===void 0||he.focus({preventScroll:!0})}},[i]);var Y=l.useState(!1),J=re(Y,2),G=J[0],U=J[1],q=l.useContext(sP),X;typeof u=="boolean"?X=u?{}:{distance:0}:X=u||{};var Q=(n=(r=(a=X)===null||a===void 0?void 0:a.distance)!==null&&r!==void 0?r:q==null?void 0:q.pushDistance)!==null&&n!==void 0?n:180,ee=l.useMemo(function(){return{pushDistance:Q,push:function(){U(!0)},pull:function(){U(!1)}}},[Q]);l.useEffect(function(){if(i){var he;q==null||(he=q.push)===null||he===void 0||he.call(q)}else{var ae;q==null||(ae=q.pull)===null||ae===void 0||ae.call(q)}},[i]),l.useEffect(function(){return function(){var he;q==null||(he=q.pull)===null||he===void 0||he.call(q)}},[]);var oe=T&&l.createElement(ea,pe({key:"mask"},_,{visible:i}),function(he,ae){var ie=he.className,ue=he.style;return l.createElement("div",{className:ne("".concat(o,"-mask"),ie,g==null?void 0:g.mask,$),style:Z(Z(Z({},ue),P),j==null?void 0:j.mask),onClick:R&&i?A:void 0,ref:ae})}),le=typeof w=="function"?w(s):w,fe={};if(G&&Q)switch(s){case"top":fe.transform="translateY(".concat(Q,"px)");break;case"bottom":fe.transform="translateY(".concat(-Q,"px)");break;case"left":fe.transform="translateX(".concat(Q,"px)");break;default:fe.transform="translateX(".concat(-Q,"px)");break}s==="left"||s==="right"?fe.width=lP(C):fe.height=lP(E);var ce={onMouseEnter:O,onMouseOver:N,onMouseLeave:k,onClick:M,onKeyDown:L,onKeyUp:F},Ie=l.createElement(ea,pe({key:"panel"},le,{visible:i,forceRender:d,onVisibleChanged:function(ae){D==null||D(ae)},removeOnLeave:!1,leavedClassName:"".concat(o,"-content-wrapper-hidden")}),function(he,ae){var ie=he.className,ue=he.style,xe=l.createElement(h0e,pe({id:v,containerRef:ae,prefixCls:o,className:ne(S,g==null?void 0:g.content),style:Z(Z({},x),j==null?void 0:j.content)},Yn(e,{aria:!0}),ce),I);return l.createElement("div",pe({className:ne("".concat(o,"-content-wrapper"),g==null?void 0:g.wrapper,ie),style:Z(Z(Z({},fe),ue),j==null?void 0:j.wrapper)},Yn(e,{data:!0})),B?B(xe):xe)}),be=Z({},b);return y&&(be.zIndex=y),l.createElement(sP.Provider,{value:ee},l.createElement("div",{className:ne(o,"".concat(o,"-").concat(s),h,W(W({},"".concat(o,"-open"),i),"".concat(o,"-inline"),c)),style:be,tabIndex:-1,ref:z,onKeyDown:te},oe,l.createElement("div",{tabIndex:0,ref:H,style:cP,"aria-hidden":"true","data-sentinel":"start"}),Ie,l.createElement("div",{tabIndex:0,ref:V,style:cP,"aria-hidden":"true","data-sentinel":"end"})))}var b0e=l.forwardRef(v0e),y0e=function(t){var n=t.open,r=n===void 0?!1:n,a=t.prefixCls,o=a===void 0?"rc-drawer":a,i=t.placement,s=i===void 0?"right":i,c=t.autoFocus,u=c===void 0?!0:c,d=t.keyboard,f=d===void 0?!0:d,p=t.width,g=p===void 0?378:p,h=t.mask,b=h===void 0?!0:h,y=t.maskClosable,S=y===void 0?!0:y,v=t.getContainer,x=t.forceRender,w=t.afterOpenChange,C=t.destroyOnClose,E=t.onMouseEnter,I=t.onMouseOver,T=t.onMouseLeave,R=t.onClick,_=t.onKeyDown,$=t.onKeyUp,P=t.panelRef,D=l.useState(!1),A=re(D,2),O=A[0],N=A[1],k=l.useState(!1),M=re(k,2),L=M[0],F=M[1];Xt(function(){F(!0)},[]);var j=L?r:!1,B=l.useRef(),z=l.useRef();Xt(function(){j&&(z.current=document.activeElement)},[j]);var H=function(G){var U;if(N(G),w==null||w(G),!G&&z.current&&!((U=B.current)!==null&&U!==void 0&&U.contains(z.current))){var q;(q=z.current)===null||q===void 0||q.focus({preventScroll:!0})}},V=l.useMemo(function(){return{panel:P}},[P]);if(!x&&!O&&!j&&C)return null;var te={onMouseEnter:E,onMouseOver:I,onMouseLeave:T,onClick:R,onKeyDown:_,onKeyUp:$},Y=Z(Z({},t),{},{open:j,prefixCls:o,placement:s,autoFocus:u,keyboard:f,width:g,mask:b,maskClosable:S,inline:v===!1,afterOpenChange:H,ref:B},te);return l.createElement(xG.Provider,{value:V},l.createElement(Zg,{open:j||x||O,autoDestroy:!1,getContainer:v,autoLock:b&&(j||O)},l.createElement(b0e,Y)))};const wG=e=>{var t,n;const{prefixCls:r,title:a,footer:o,extra:i,loading:s,onClose:c,headerStyle:u,bodyStyle:d,footerStyle:f,children:p,classNames:g,styles:h}=e,{drawer:b}=l.useContext(st),y=l.useCallback(C=>l.createElement("button",{type:"button",onClick:c,"aria-label":"Close",className:`${r}-close`},C),[c]),[S,v]=oO(xd(e),xd(b),{closable:!0,closeIconRender:y}),x=l.useMemo(()=>{var C,E;return!a&&!S?null:l.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(C=b==null?void 0:b.styles)===null||C===void 0?void 0:C.header),u),h==null?void 0:h.header),className:ne(`${r}-header`,{[`${r}-header-close-only`]:S&&!a&&!i},(E=b==null?void 0:b.classNames)===null||E===void 0?void 0:E.header,g==null?void 0:g.header)},l.createElement("div",{className:`${r}-header-title`},v,a&&l.createElement("div",{className:`${r}-title`},a)),i&&l.createElement("div",{className:`${r}-extra`},i))},[S,v,i,u,r,a]),w=l.useMemo(()=>{var C,E;if(!o)return null;const I=`${r}-footer`;return l.createElement("div",{className:ne(I,(C=b==null?void 0:b.classNames)===null||C===void 0?void 0:C.footer,g==null?void 0:g.footer),style:Object.assign(Object.assign(Object.assign({},(E=b==null?void 0:b.styles)===null||E===void 0?void 0:E.footer),f),h==null?void 0:h.footer)},o)},[o,f,r]);return l.createElement(l.Fragment,null,x,l.createElement("div",{className:ne(`${r}-body`,g==null?void 0:g.body,(t=b==null?void 0:b.classNames)===null||t===void 0?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},(n=b==null?void 0:b.styles)===null||n===void 0?void 0:n.body),d),h==null?void 0:h.body)},s?l.createElement(Ol,{active:!0,title:!1,paragraph:{rows:5},className:`${r}-body-skeleton`}):p),w)},S0e=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},CG=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),EG=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},CG({opacity:e},{opacity:1})),x0e=(e,t)=>[EG(.7,t),CG({transform:S0e(e)},{transform:"none"})],w0e=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:EG(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,a)=>Object.assign(Object.assign({},r),{[`&-${a}`]:x0e(a,n)}),{})}}},C0e=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:a,colorBgElevated:o,motionDurationSlow:i,motionDurationMid:s,paddingXS:c,padding:u,paddingLG:d,fontSizeLG:f,lineHeightLG:p,lineWidth:g,lineType:h,colorSplit:b,marginXS:y,colorIcon:S,colorIconHover:v,colorBgTextHover:x,colorBgTextActive:w,colorText:C,fontWeightStrong:E,footerPaddingBlock:I,footerPaddingInline:T,calc:R}=e,_=`${n}-content-wrapper`;return{[n]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:C,"&-pure":{position:"relative",background:o,display:"flex",flexDirection:"column",[`&${n}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${n}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${n}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${n}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${n}-mask`]:{position:"absolute",inset:0,zIndex:r,background:a,pointerEvents:"auto"},[_]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${i}`,"&-hidden":{display:"none"}},[`&-left > ${_}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${_}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${_}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${_}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:o,pointerEvents:"auto"},[`${n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${K(u)} ${K(d)}`,fontSize:f,lineHeight:p,borderBottom:`${K(g)} ${h} ${b}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:Object.assign({display:"inline-flex",width:R(f).add(c).equal(),height:R(f).add(c).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",marginInlineEnd:y,color:S,fontWeight:E,fontSize:f,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${s}`,textRendering:"auto","&:hover":{color:v,backgroundColor:x,textDecoration:"none"},"&:active":{backgroundColor:w}},Hi(e)),[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:f,lineHeight:p},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:d,overflow:"auto",[`${n}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${n}-footer`]:{flexShrink:0,padding:`${K(I)} ${K(T)}`,borderTop:`${K(g)} ${h} ${b}`},"&-rtl":{direction:"rtl"}}}},E0e=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}),IG=on("Drawer",e=>{const t=zt(e,{});return[C0e(t),w0e(t)]},E0e);var TG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{rootClassName:t,width:n,height:r,size:a="default",mask:o=!0,push:i=I0e,open:s,afterOpenChange:c,onClose:u,prefixCls:d,getContainer:f,style:p,className:g,visible:h,afterVisibleChange:b,maskStyle:y,drawerStyle:S,contentWrapperStyle:v}=e,x=TG(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:w,getPrefixCls:C,direction:E,drawer:I}=l.useContext(st),T=C("drawer",d),[R,_,$]=IG(T),P=f===void 0&&w?()=>w(document.body):f,D=ne({"no-mask":!o,[`${T}-rtl`]:E==="rtl"},t,_,$),A=l.useMemo(()=>n??(a==="large"?736:378),[n,a]),O=l.useMemo(()=>r??(a==="large"?736:378),[r,a]),N={motionName:Ca(T,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},k=V=>({motionName:Ca(T,`panel-motion-${V}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),M=OU(),[L,F]=xi("Drawer",x.zIndex),{classNames:j={},styles:B={}}=x,{classNames:z={},styles:H={}}=I||{};return R(l.createElement(Vi,{form:!0,space:!0},l.createElement(Gg.Provider,{value:F},l.createElement(y0e,Object.assign({prefixCls:T,onClose:u,maskMotion:N,motion:k},x,{classNames:{mask:ne(j.mask,z.mask),content:ne(j.content,z.content),wrapper:ne(j.wrapper,z.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},B.mask),y),H.mask),content:Object.assign(Object.assign(Object.assign({},B.content),S),H.content),wrapper:Object.assign(Object.assign(Object.assign({},B.wrapper),v),H.wrapper)},open:s??h,mask:o,push:i,width:A,height:O,style:Object.assign(Object.assign({},I==null?void 0:I.style),p),className:ne(I==null?void 0:I.className,g),rootClassName:D,getContainer:P,afterOpenChange:c??b,panelRef:M,zIndex:L}),l.createElement(wG,Object.assign({prefixCls:T},x,{onClose:u}))))))},T0e=e=>{const{prefixCls:t,style:n,className:r,placement:a="right"}=e,o=TG(e,["prefixCls","style","className","placement"]),{getPrefixCls:i}=l.useContext(st),s=i("drawer",t),[c,u,d]=IG(s),f=ne(s,`${s}-pure`,`${s}-${a}`,u,d,r);return c(l.createElement("div",{className:f,style:n},l.createElement(wG,Object.assign({prefixCls:s},o))))};RG._InternalPanelDoNotUseOrYouWillBeFired=T0e;function uP(e){return["small","middle","large"].includes(e)}function dP(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const _G=se.createContext({latestIndex:0}),R0e=_G.Provider,_0e=e=>{let{className:t,index:n,children:r,split:a,style:o}=e;const{latestIndex:i}=l.useContext(_G);return r==null?null:l.createElement(l.Fragment,null,l.createElement("div",{className:t,style:o},r),n{var n,r,a;const{getPrefixCls:o,space:i,direction:s}=l.useContext(st),{size:c=(n=i==null?void 0:i.size)!==null&&n!==void 0?n:"small",align:u,className:d,rootClassName:f,children:p,direction:g="horizontal",prefixCls:h,split:b,style:y,wrap:S=!1,classNames:v,styles:x}=e,w=$0e(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[C,E]=Array.isArray(c)?c:[c,c],I=uP(E),T=uP(C),R=dP(E),_=dP(C),$=vr(p,{keepEmpty:!0}),P=u===void 0&&g==="horizontal"?"center":u,D=o("space",h),[A,O,N]=nU(D),k=ne(D,i==null?void 0:i.className,O,`${D}-${g}`,{[`${D}-rtl`]:s==="rtl",[`${D}-align-${P}`]:P,[`${D}-gap-row-${E}`]:I,[`${D}-gap-col-${C}`]:T},d,f,N),M=ne(`${D}-item`,(r=v==null?void 0:v.item)!==null&&r!==void 0?r:(a=i==null?void 0:i.classNames)===null||a===void 0?void 0:a.item);let L=0;const F=$.map((z,H)=>{var V,te;z!=null&&(L=H);const Y=(z==null?void 0:z.key)||`${M}-${H}`;return l.createElement(_0e,{className:M,key:Y,index:H,split:b,style:(V=x==null?void 0:x.item)!==null&&V!==void 0?V:(te=i==null?void 0:i.styles)===null||te===void 0?void 0:te.item},z)}),j=l.useMemo(()=>({latestIndex:L}),[L]);if($.length===0)return null;const B={};return S&&(B.flexWrap="wrap"),!T&&_&&(B.columnGap=C),!I&&R&&(B.rowGap=E),A(l.createElement("div",Object.assign({ref:t,className:k,style:Object.assign(Object.assign(Object.assign({},B),i==null?void 0:i.style),y)},w),l.createElement(R0e,{value:j},F)))}),ka=O0e;ka.Compact=Vie;var N0e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPopupContainer:t,getPrefixCls:n,direction:r}=l.useContext(st),{prefixCls:a,type:o="default",danger:i,disabled:s,loading:c,onClick:u,htmlType:d,children:f,className:p,menu:g,arrow:h,autoFocus:b,overlay:y,trigger:S,align:v,open:x,onOpenChange:w,placement:C,getPopupContainer:E,href:I,icon:T=l.createElement(CO,null),title:R,buttonsRender:_=J=>J,mouseEnterDelay:$,mouseLeaveDelay:P,overlayClassName:D,overlayStyle:A,destroyPopupOnHide:O,dropdownRender:N}=e,k=N0e(e,["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"]),M=n("dropdown",a),L=`${M}-button`,F={menu:g,arrow:h,autoFocus:b,align:v,disabled:s,trigger:s?[]:S,onOpenChange:w,getPopupContainer:E||t,mouseEnterDelay:$,mouseLeaveDelay:P,overlayClassName:D,overlayStyle:A,destroyPopupOnHide:O,dropdownRender:N},{compactSize:j,compactItemClassnames:B}=Ns(M,r),z=ne(L,B,p);"overlay"in e&&(F.overlay=y),"open"in e&&(F.open=x),"placement"in e?F.placement=C:F.placement=r==="rtl"?"bottomLeft":"bottomRight";const H=l.createElement(ct,{type:o,danger:i,disabled:s,loading:c,onClick:u,htmlType:d,href:I,title:R},f),V=l.createElement(ct,{type:o,danger:i,icon:T}),[te,Y]=_([H,V]);return l.createElement(ka.Compact,Object.assign({className:z,size:j,block:!0},k),te,l.createElement(sm,Object.assign({},F),Y))};$G.__ANT_BUTTON=!0;const ry=sm;ry.Button=$G;var k0e={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 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"},A0e=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:k0e}))},M0e=l.forwardRef(A0e);function Sb(e){const[t,n]=l.useState(e);return l.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const P0e=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}, transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},D0e=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${K(e.lineWidth)} ${e.lineType} ${e.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 ${K(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),fP=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},L0e=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},nn(e)),D0e(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},fP(e,e.controlHeightSM)),"&-large":Object.assign({},fP(e,e.controlHeightLG))})}},F0e=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:a,antCls:o,labelRequiredMarkColor:i,labelColor:s,labelFontSize:c,labelHeight:u,labelColonMarginInlineStart:d,labelColonMarginInlineEnd:f,itemMarginBottom:p}=e;return{[t]:Object.assign(Object.assign({},nn(e)),{marginBottom:p,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, - &-hidden${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:u,color:s,fontSize:c,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:i,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:d,marginInlineEnd:f},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${a}-col-'"]):not([class*="' ${a}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:iO,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},pP=(e,t)=>{const{formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},j0e=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label, - > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},ii=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),OG=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:ii(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},B0e=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label, + &-hidden${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:u,color:s,fontSize:c,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:i,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:d,marginInlineEnd:f},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${a}-col-'"]):not([class*="' ${a}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:sO,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},pP=(e,t)=>{const{formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},j0e=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label, + > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},si=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),OG=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:si(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},B0e=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label, ${r}-col-24${n}-label, - ${r}-col-xl-24${n}-label`]:ii(e)}},[`@media (max-width: ${K(e.screenXSMax)})`]:[OG(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:ii(e)}}}],[`@media (max-width: ${K(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:ii(e)}}},[`@media (max-width: ${K(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:ii(e)}}},[`@media (max-width: ${K(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:ii(e)}}}}},z0e=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label, + ${r}-col-xl-24${n}-label`]:si(e)}},[`@media (max-width: ${K(e.screenXSMax)})`]:[OG(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:si(e)}}}],[`@media (max-width: ${K(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:si(e)}}},[`@media (max-width: ${K(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:si(e)}}},[`@media (max-width: ${K(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:si(e)}}}}},z0e=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label, ${n}-col-24${t}-label, - ${n}-col-xl-24${t}-label`]:ii(e),[`@media (max-width: ${K(e.screenXSMax)})`]:[OG(e),{[t]:{[`${n}-col-xs-24${t}-label`]:ii(e)}}],[`@media (max-width: ${K(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:ii(e)}},[`@media (max-width: ${K(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:ii(e)}},[`@media (max-width: ${K(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:ii(e)}}}},H0e=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),NG=(e,t)=>zt(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),VO=on("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=NG(e,n);return[L0e(r),F0e(r),P0e(r),pP(r,r.componentCls),pP(r,r.formItemCls),j0e(r),B0e(r),z0e(r),Zg(r),iO]},H0e,{order:-1e3}),gP=[];function m1(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const kG=e=>{let{help:t,helpStatus:n,errors:r=gP,warnings:a=gP,className:o,fieldId:i,onVisibleChanged:s}=e;const{prefixCls:c}=l.useContext(rO),u=`${c}-item-explain`,d=Un(c),[f,p,g]=VO(c,d),h=l.useMemo(()=>Sd(c),[c]),b=yb(r),y=yb(a),S=l.useMemo(()=>t!=null?[m1(t,"help",n)]:[].concat(De(b.map((x,C)=>m1(x,"error","error",C))),De(y.map((x,C)=>m1(x,"warning","warning",C)))),[t,n,b,y]),v={};return i&&(v.id=`${i}_help`),f(l.createElement(Qr,{motionDeadline:h.motionDeadline,motionName:`${c}-show-help`,visible:!!S.length,onVisibleChanged:s},x=>{const{className:C,style:w}=x;return l.createElement("div",Object.assign({},v,{className:ne(u,C,g,d,o,p),style:w,role:"alert"}),l.createElement(G$,Object.assign({keys:S},Sd(c),{motionName:`${c}-show-help-item`,component:!1}),E=>{const{key:I,error:T,errorStatus:R,className:_,style:$}=E;return l.createElement("div",{key:I,className:ne(_,{[`${u}-${R}`]:R}),style:$},T)}))}))},U0e=["parentNode"],V0e="form_item";function wp(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function AG(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:U0e.includes(n)?`${V0e}_${n}`:n}function MG(e,t,n,r,a,o){let i=r;return o!==void 0?i=o:n.validating?i="validating":e.length?i="error":t.length?i="warning":(n.touched||a&&n.validated)&&(i="success"),i}function mP(e){return wp(e).join("_")}function W0e(e,t){const n=t.getFieldInstance(e),r=$9(n);if(r)return r;const a=AG(wp(e),t.__INTERNAL__.name);if(a)return document.getElementById(a)}function PG(e){const[t]=nO(),n=l.useRef({}),r=l.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:a=>o=>{const i=mP(a);o?n.current[i]=o:delete n.current[i]}},scrollToField:function(a){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=W0e(a,r);i&&Woe(i,Object.assign({scrollMode:"if-needed",block:"nearest"},o))},getFieldInstance:a=>{const o=mP(a);return n.current[o]}}),[e,t]);return[r]}var G0e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const n=l.useContext(Zr),{getPrefixCls:r,direction:a,form:o}=l.useContext(st),{prefixCls:i,className:s,rootClassName:c,size:u,disabled:d=n,form:f,colon:p,labelAlign:g,labelWrap:h,labelCol:b,wrapperCol:y,hideRequiredMark:S,layout:v="horizontal",scrollToFirstError:x,requiredMark:C,onFinishFailed:w,name:E,style:I,feedbackIcons:T,variant:R}=e,_=G0e(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),$=Er(u),P=l.useContext(uH),D=l.useMemo(()=>C!==void 0?C:S?!1:o&&o.requiredMark!==void 0?o.requiredMark:!0,[S,C,o]),A=p??(o==null?void 0:o.colon),O=r("form",i),N=Un(O),[k,M,L]=VO(O,N),F=ne(O,`${O}-${v}`,{[`${O}-hide-required-mark`]:D===!1,[`${O}-rtl`]:a==="rtl",[`${O}-${$}`]:$},L,N,M,o==null?void 0:o.className,s,c),[j]=PG(f),{__INTERNAL__:B}=j;B.name=E;const z=l.useMemo(()=>({name:E,labelAlign:g,labelCol:b,labelWrap:h,wrapperCol:y,vertical:v==="vertical",colon:A,requiredMark:D,itemRef:B.itemRef,form:j,feedbackIcons:T}),[E,g,b,y,v,A,D,j,T]),H=l.useRef(null);l.useImperativeHandle(t,()=>{var Y;return Object.assign(Object.assign({},j),{nativeElement:(Y=H.current)===null||Y===void 0?void 0:Y.nativeElement})});const V=(Y,J)=>{if(Y){let G={block:"nearest"};typeof Y=="object"&&(G=Y),j.scrollToField(J,G)}},te=Y=>{if(w==null||w(Y),Y.errorFields.length){const J=Y.errorFields[0].name;if(x!==void 0){V(x,J);return}o&&o.scrollToFirstError!==void 0&&V(o.scrollToFirstError,J)}};return k(l.createElement(_U.Provider,{value:R},l.createElement(H$,{disabled:d},l.createElement(Cc.Provider,{value:$},l.createElement(RU,{validateMessages:P},l.createElement(Es.Provider,{value:z},l.createElement(Wd,Object.assign({id:E},_,{name:E,onFinishFailed:te,form:j,ref:H,style:Object.assign(Object.assign({},o==null?void 0:o.style),I),className:F}))))))))},K0e=l.forwardRef(q0e);function Y0e(e){if(typeof e=="function")return e;const t=vr(e);return t.length<=1?t[0]:t}const DG=()=>{const{status:e,errors:t=[],warnings:n=[]}=l.useContext(zr);return{status:e,errors:t,warnings:n}};DG.Context=zr;function X0e(e){const[t,n]=l.useState(e),r=l.useRef(null),a=l.useRef([]),o=l.useRef(!1);l.useEffect(()=>(o.current=!1,()=>{o.current=!0,Ut.cancel(r.current),r.current=null}),[]);function i(s){o.current||(r.current===null&&(a.current=[],r.current=Ut(()=>{r.current=null,n(c=>{let u=c;return a.current.forEach(d=>{u=d(u)}),u})})),a.current.push(s))}return[t,i]}function Z0e(){const{itemRef:e}=l.useContext(Es),t=l.useRef({});function n(r,a){const o=a&&typeof a=="object"&&a.ref,i=r.join("_");return(t.current.name!==i||t.current.originRef!==o)&&(t.current.name=i,t.current.originRef=o,t.current.ref=ea(e(r),o)),t.current.ref}return n}const Q0e=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},J0e=Hd(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=NG(e,n);return[Q0e(r)]}),eye=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:a,errors:o,warnings:i,_internalItemRender:s,extra:c,help:u,fieldId:d,marginBottom:f,onErrorVisibleChanged:p}=e,g=`${t}-item`,h=l.useContext(Es),b=r||h.wrapperCol||{},y=ne(`${g}-control`,b.className),S=l.useMemo(()=>Object.assign({},h),[h]);delete S.labelCol,delete S.wrapperCol;const v=l.createElement("div",{className:`${g}-control-input`},l.createElement("div",{className:`${g}-control-input-content`},a)),x=l.useMemo(()=>({prefixCls:t,status:n}),[t,n]),C=f!==null||o.length||i.length?l.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},l.createElement(rO.Provider,{value:x},l.createElement(kG,{fieldId:d,errors:o,warnings:i,help:u,helpStatus:n,className:`${g}-explain-connected`,onVisibleChanged:p})),!!f&&l.createElement("div",{style:{width:0,height:f}})):null,w={};d&&(w.id=`${d}_extra`);const E=c?l.createElement("div",Object.assign({},w,{className:`${g}-extra`}),c):null,I=s&&s.mark==="pro_table_render"&&s.render?s.render(e,{input:v,errorList:C,extra:E}):l.createElement(l.Fragment,null,v,C,E);return l.createElement(Es.Provider,{value:S},l.createElement(En,Object.assign({},b,{className:y}),I),l.createElement(J0e,{prefixCls:t}))};var tye={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"},nye=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:tye}))},LG=l.forwardRef(nye),rye=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{let{prefixCls:t,label:n,htmlFor:r,labelCol:a,labelAlign:o,colon:i,required:s,requiredMark:c,tooltip:u,vertical:d}=e;var f;const[p]=qi("Form"),{labelAlign:g,labelCol:h,labelWrap:b,colon:y}=l.useContext(Es);if(!n)return null;const S=a||h||{},v=o||g,x=`${t}-item-label`,C=ne(x,v==="left"&&`${x}-left`,S.className,{[`${x}-wrap`]:!!b});let w=n;const E=i===!0||y!==!1&&i!==!1;E&&!d&&typeof n=="string"&&n.trim()&&(w=n.replace(/[:|:]\s*$/,""));const T=aye(u);if(T){const{icon:P=l.createElement(LG,null)}=T,D=rye(T,["icon"]),A=l.createElement(Zt,Object.assign({},D),l.cloneElement(P,{className:`${t}-item-tooltip`,title:"",onClick:O=>{O.preventDefault()},tabIndex:null}));w=l.createElement(l.Fragment,null,w,A)}const R=c==="optional",_=typeof c=="function";_?w=c(w,{required:!!s}):R&&!s&&(w=l.createElement(l.Fragment,null,w,l.createElement("span",{className:`${t}-item-optional`,title:""},(p==null?void 0:p.optional)||((f=Uo.Form)===null||f===void 0?void 0:f.optional))));const $=ne({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:R||_,[`${t}-item-no-colon`]:!E});return l.createElement(En,Object.assign({},S,{className:C}),l.createElement("label",{htmlFor:r,className:$,title:typeof n=="string"?n:""},w))},iye={success:Ug,warning:x0,error:Pc,validating:Hi};function FG(e){let{children:t,errors:n,warnings:r,hasFeedback:a,validateStatus:o,prefixCls:i,meta:s,noStyle:c}=e;const u=`${i}-item`,{feedbackIcons:d}=l.useContext(Es),f=MG(n,r,s,null,!!a,o),{isFormItemInput:p,status:g,hasFeedback:h,feedbackIcon:b}=l.useContext(zr),y=l.useMemo(()=>{var S;let v;if(a){const C=a!==!0&&a.icons||d,w=f&&((S=C==null?void 0:C({status:f,errors:n,warnings:r}))===null||S===void 0?void 0:S[f]),E=f&&iye[f];v=w!==!1&&E?l.createElement("span",{className:ne(`${u}-feedback-icon`,`${u}-feedback-icon-${f}`)},w||l.createElement(E,null)):null}const x={status:f||"",errors:n,warnings:r,hasFeedback:!!a,feedbackIcon:v,isFormItemInput:!0};return c&&(x.status=(f??g)||"",x.isFormItemInput=p,x.hasFeedback=!!(a??h),x.feedbackIcon=a!==void 0?x.feedbackIcon:b),x},[f,a,c,p,g]);return l.createElement(zr.Provider,{value:y},t)}var sye=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{if($&&I.current){const L=getComputedStyle(I.current);A(parseInt(L.marginBottom,10))}},[$,P]);const O=L=>{L||A(null)},k=function(){let L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const F=L?T:u.errors,j=L?R:u.warnings;return MG(F,j,u,"",!!d,c)}(),M=ne(x,n,r,{[`${x}-with-help`]:_||T.length||R.length,[`${x}-has-feedback`]:k&&d,[`${x}-has-success`]:k==="success",[`${x}-has-warning`]:k==="warning",[`${x}-has-error`]:k==="error",[`${x}-is-validating`]:k==="validating",[`${x}-hidden`]:f,[`${x}-${S}`]:S});return l.createElement("div",{className:M,style:a,ref:I},l.createElement($a,Object.assign({className:`${x}-row`},On(v,["_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"])),l.createElement(oye,Object.assign({htmlFor:g},e,{requiredMark:C,required:h??b,prefixCls:t,vertical:E})),l.createElement(eye,Object.assign({},e,u,{errors:T,warnings:R,prefixCls:t,status:k,help:o,marginBottom:D,onErrorVisibleChanged:O}),l.createElement(TU.Provider,{value:y},l.createElement(FG,{prefixCls:t,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:d,validateStatus:k},p)))),!!D&&l.createElement("div",{className:`${x}-margin-offset`,style:{marginBottom:-D}}))}const cye="__SPLIT__";function uye(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(a=>{const o=e[a],i=t[a];return o===i||typeof o=="function"||typeof i=="function"})}const dye=l.memo(e=>{let{children:t}=e;return t},(e,t)=>uye(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function hP(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function fye(e){const{name:t,noStyle:n,className:r,dependencies:a,prefixCls:o,shouldUpdate:i,rules:s,children:c,required:u,label:d,messageVariables:f,trigger:p="onChange",validateTrigger:g,hidden:h,help:b,layout:y}=e,{getPrefixCls:S}=l.useContext(st),{name:v}=l.useContext(Es),x=Y0e(c),C=typeof x=="function",w=l.useContext(TU),{validateTrigger:E}=l.useContext(Ic),I=g!==void 0?g:E,T=t!=null,R=S("form",o),_=Un(R),[$,P,D]=VO(R,_);$l();const A=l.useContext(fg),O=l.useRef(),[N,k]=X0e({}),[M,L]=Ec(()=>hP()),F=Y=>{const J=A==null?void 0:A.getKey(Y.name);if(L(Y.destroy?hP():Y,!0),n&&b!==!1&&w){let G=Y.name;if(Y.destroy)G=O.current||G;else if(J!==void 0){const[U,q]=J;G=[U].concat(De(q)),O.current=G}w(Y,G)}},j=(Y,J)=>{k(G=>{const U=Object.assign({},G),X=[].concat(De(Y.name.slice(0,-1)),De(J)).join(cye);return Y.destroy?delete U[X]:U[X]=Y,U})},[B,z]=l.useMemo(()=>{const Y=De(M.errors),J=De(M.warnings);return Object.values(N).forEach(G=>{Y.push.apply(Y,De(G.errors||[])),J.push.apply(J,De(G.warnings||[]))}),[Y,J]},[N,M.errors,M.warnings]),H=Z0e();function V(Y,J,G){return n&&!h?l.createElement(FG,{prefixCls:R,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:M,errors:B,warnings:z,noStyle:!0},Y):l.createElement(lye,Object.assign({key:"row"},e,{className:ne(r,D,_,P),prefixCls:R,fieldId:J,isRequired:G,errors:B,warnings:z,meta:M,onSubItemMetaChange:j,layout:y}),Y)}if(!T&&!C&&!a)return $(V(x));let te={};return typeof d=="string"?te.label=d:t&&(te.label=String(t)),f&&(te=Object.assign(Object.assign({},te),f)),$(l.createElement(tO,Object.assign({},e,{messageVariables:te,trigger:p,validateTrigger:I,onMetaChange:F}),(Y,J,G)=>{const U=wp(t).length&&J?J.name:[],q=AG(U,v),X=u!==void 0?u:!!(s!=null&&s.some(oe=>{if(oe&&typeof oe=="object"&&oe.required&&!oe.warningOnly)return!0;if(typeof oe=="function"){const le=oe(G);return(le==null?void 0:le.required)&&!(le!=null&&le.warningOnly)}return!1})),Q=Object.assign({},Y);let ee=null;if(Array.isArray(x)&&T)ee=x;else if(!(C&&(!(i||a)||T))){if(!(a&&!C&&!T))if(l.isValidElement(x)){const oe=Object.assign(Object.assign({},x.props),Q);if(oe.id||(oe.id=q),b||B.length>0||z.length>0||e.extra){const ce=[];(b||B.length>0)&&ce.push(`${q}_help`),e.extra&&ce.push(`${q}_extra`),oe["aria-describedby"]=ce.join(" ")}B.length>0&&(oe["aria-invalid"]="true"),X&&(oe["aria-required"]="true"),gi(x)&&(oe.ref=H(U,x)),new Set([].concat(De(wp(p)),De(wp(I)))).forEach(ce=>{oe[ce]=function(){for(var Te,Se,ve,ae,ie,ue=arguments.length,ye=new Array(ue),Ee=0;Ee{var{prefixCls:t,children:n}=e,r=pye(e,["prefixCls","children"]);const{getPrefixCls:a}=l.useContext(st),o=a("form",t),i=l.useMemo(()=>({prefixCls:o,status:"error"}),[o]);return l.createElement(wU,Object.assign({},r),(s,c,u)=>l.createElement(rO.Provider,{value:i},n(s.map(d=>Object.assign(Object.assign({},d),{fieldKey:d.key})),c,{errors:u.errors,warnings:u.warnings})))};function mye(){const{form:e}=l.useContext(Es);return e}const qt=K0e;qt.Item=dm;qt.List=gye;qt.ErrorList=kG;qt.useForm=PG;qt.useFormInstance=mye;qt.useWatch=IU;qt.Provider=RU;qt.create=()=>{};function jG(){var e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function NR(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function Pi(e,t,n,r){var a=Zp.unstable_batchedUpdates?function(i){Zp.unstable_batchedUpdates(n,i)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,a,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,a,r)}}}var fm=l.createContext(null),hye=function(t){var n=t.visible,r=t.maskTransitionName,a=t.getContainer,o=t.prefixCls,i=t.rootClassName,s=t.icons,c=t.countRender,u=t.showSwitch,d=t.showProgress,f=t.current,p=t.transform,g=t.count,h=t.scale,b=t.minScale,y=t.maxScale,S=t.closeIcon,v=t.onSwitchLeft,x=t.onSwitchRight,C=t.onClose,w=t.onZoomIn,E=t.onZoomOut,I=t.onRotateRight,T=t.onRotateLeft,R=t.onFlipX,_=t.onFlipY,$=t.onReset,P=t.toolbarRender,D=t.zIndex,A=t.image,O=l.useContext(fm),N=s.rotateLeft,k=s.rotateRight,M=s.zoomIn,L=s.zoomOut,F=s.close,j=s.left,B=s.right,z=s.flipX,H=s.flipY,V="".concat(o,"-operations-operation");l.useEffect(function(){var G=function(q){q.keyCode===Le.ESC&&C()};return n&&window.addEventListener("keydown",G),function(){window.removeEventListener("keydown",G)}},[n]);var te=[{icon:H,onClick:_,type:"flipY"},{icon:z,onClick:R,type:"flipX"},{icon:N,onClick:T,type:"rotateLeft"},{icon:k,onClick:I,type:"rotateRight"},{icon:L,onClick:E,type:"zoomOut",disabled:h<=b},{icon:M,onClick:w,type:"zoomIn",disabled:h===y}],Y=te.map(function(G){var U,q=G.icon,X=G.onClick,Q=G.type,ee=G.disabled;return l.createElement("div",{className:ne(V,(U={},W(U,"".concat(o,"-operations-operation-").concat(Q),!0),W(U,"".concat(o,"-operations-operation-disabled"),!!ee),U)),onClick:X,key:Q},q)}),J=l.createElement("div",{className:"".concat(o,"-operations")},Y);return l.createElement(Qr,{visible:n,motionName:r},function(G){var U=G.className,q=G.style;return l.createElement(Yg,{open:!0,getContainer:a??document.body},l.createElement("div",{className:ne("".concat(o,"-operations-wrapper"),U,i),style:Z(Z({},q),{},{zIndex:D})},S===null?null:l.createElement("button",{className:"".concat(o,"-close"),onClick:C},S||F),u&&l.createElement(l.Fragment,null,l.createElement("div",{className:ne("".concat(o,"-switch-left"),W({},"".concat(o,"-switch-left-disabled"),f===0)),onClick:v},j),l.createElement("div",{className:ne("".concat(o,"-switch-right"),W({},"".concat(o,"-switch-right-disabled"),f===g-1)),onClick:x},B)),l.createElement("div",{className:"".concat(o,"-footer")},d&&l.createElement("div",{className:"".concat(o,"-progress")},c?c(f+1,g):"".concat(f+1," / ").concat(g)),P?P(J,Z(Z({icons:{flipYIcon:Y[0],flipXIcon:Y[1],rotateLeftIcon:Y[2],rotateRightIcon:Y[3],zoomOutIcon:Y[4],zoomInIcon:Y[5]},actions:{onFlipY:_,onFlipX:R,onRotateLeft:T,onRotateRight:I,onZoomOut:E,onZoomIn:w,onReset:$,onClose:C},transform:p},O?{current:f,total:g}:{}),{},{image:A})):J)))})},bh={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function vye(e,t,n,r){var a=l.useRef(null),o=l.useRef([]),i=l.useState(bh),s=re(i,2),c=s[0],u=s[1],d=function(h){u(bh),zo(bh,c)||r==null||r({transform:bh,action:h})},f=function(h,b){a.current===null&&(o.current=[],a.current=Ut(function(){u(function(y){var S=y;return o.current.forEach(function(v){S=Z(Z({},S),v)}),a.current=null,r==null||r({transform:S,action:b}),S})})),o.current.push(Z(Z({},c),h))},p=function(h,b,y,S,v){var x=e.current,C=x.width,w=x.height,E=x.offsetWidth,I=x.offsetHeight,T=x.offsetLeft,R=x.offsetTop,_=h,$=c.scale*h;$>n?($=n,_=n/c.scale):$r){if(t>0)return W({},e,o);if(t<0&&ar)return W({},e,t<0?o:-o);return{}}function BG(e,t,n,r){var a=jG(),o=a.width,i=a.height,s=null;return e<=o&&t<=i?s={x:0,y:0}:(e>o||t>i)&&(s=Z(Z({},vP("x",n,e,o)),vP("y",r,t,i))),s}var zu=1,bye=1;function yye(e,t,n,r,a,o,i){var s=a.rotate,c=a.scale,u=a.x,d=a.y,f=l.useState(!1),p=re(f,2),g=p[0],h=p[1],b=l.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),y=function(w){!t||w.button!==0||(w.preventDefault(),w.stopPropagation(),b.current={diffX:w.pageX-u,diffY:w.pageY-d,transformX:u,transformY:d},h(!0))},S=function(w){n&&g&&o({x:w.pageX-b.current.diffX,y:w.pageY-b.current.diffY},"move")},v=function(){if(n&&g){h(!1);var w=b.current,E=w.transformX,I=w.transformY,T=u!==E&&d!==I;if(!T)return;var R=e.current.offsetWidth*c,_=e.current.offsetHeight*c,$=e.current.getBoundingClientRect(),P=$.left,D=$.top,A=s%180!==0,O=BG(A?_:R,A?R:_,P,D);O&&o(Z({},O),"dragRebound")}},x=function(w){if(!(!n||w.deltaY==0)){var E=Math.abs(w.deltaY/100),I=Math.min(E,bye),T=zu+I*r;w.deltaY>0&&(T=zu/T),i(T,"wheel",w.clientX,w.clientY)}};return l.useEffect(function(){var C,w,E,I;if(t){E=Pi(window,"mouseup",v,!1),I=Pi(window,"mousemove",S,!1);try{window.top!==window.self&&(C=Pi(window.top,"mouseup",v,!1),w=Pi(window.top,"mousemove",S,!1))}catch{}}return function(){var T,R,_,$;(T=E)===null||T===void 0||T.remove(),(R=I)===null||R===void 0||R.remove(),(_=C)===null||_===void 0||_.remove(),($=w)===null||$===void 0||$.remove()}},[n,g,u,d,s,t]),{isMoving:g,onMouseDown:y,onMouseMove:S,onMouseUp:v,onWheel:x}}function Sye(e){return new Promise(function(t){var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e})}function zG(e){var t=e.src,n=e.isCustomPlaceholder,r=e.fallback,a=l.useState(n?"loading":"normal"),o=re(a,2),i=o[0],s=o[1],c=l.useRef(!1),u=i==="error";l.useEffect(function(){var g=!0;return Sye(t).then(function(h){!h&&g&&s("error")}),function(){g=!1}},[t]),l.useEffect(function(){n&&!c.current?s("loading"):u&&s("normal")},[t]);var d=function(){s("normal")},f=function(h){c.current=!1,i==="loading"&&h!==null&&h!==void 0&&h.complete&&(h.naturalWidth||h.naturalHeight)&&(c.current=!0,d())},p=u&&r?{src:r}:{onLoad:d,src:t};return[f,p,i]}function Sb(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function xye(e,t,n,r){var a=Sb(e,n),o=Sb(t,r);if(a===0&&o===0)return[e.x,e.y];var i=a/(a+o),s=e.x+i*(t.x-e.x),c=e.y+i*(t.y-e.y);return[s,c]}function wye(e,t,n,r,a,o,i){var s=a.rotate,c=a.scale,u=a.x,d=a.y,f=l.useState(!1),p=re(f,2),g=p[0],h=p[1],b=l.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),y=function(w){b.current=Z(Z({},b.current),w)},S=function(w){if(t){w.stopPropagation(),h(!0);var E=w.touches,I=E===void 0?[]:E;I.length>1?y({point1:{x:I[0].clientX,y:I[0].clientY},point2:{x:I[1].clientX,y:I[1].clientY},eventType:"touchZoom"}):y({point1:{x:I[0].clientX-u,y:I[0].clientY-d},eventType:"move"})}},v=function(w){var E=w.touches,I=E===void 0?[]:E,T=b.current,R=T.point1,_=T.point2,$=T.eventType;if(I.length>1&&$==="touchZoom"){var P={x:I[0].clientX,y:I[0].clientY},D={x:I[1].clientX,y:I[1].clientY},A=xye(R,_,P,D),O=re(A,2),N=O[0],k=O[1],M=Sb(P,D)/Sb(R,_);i(M,"touchZoom",N,k,!0),y({point1:P,point2:D,eventType:"touchZoom"})}else $==="move"&&(o({x:I[0].clientX-R.x,y:I[0].clientY-R.y},"move"),y({eventType:"move"}))},x=function(){if(n){if(g&&h(!1),y({eventType:"none"}),r>c)return o({x:0,y:0,scale:r},"touchZoom");var w=e.current.offsetWidth*c,E=e.current.offsetHeight*c,I=e.current.getBoundingClientRect(),T=I.left,R=I.top,_=s%180!==0,$=BG(_?E:w,_?w:E,T,R);$&&o(Z({},$),"dragRebound")}};return l.useEffect(function(){var C;return n&&t&&(C=Pi(window,"touchmove",function(w){return w.preventDefault()},{passive:!1})),function(){var w;(w=C)===null||w===void 0||w.remove()}},[n,t]),{isTouching:g,onTouchStart:S,onTouchMove:v,onTouchEnd:x}}var Cye=["fallback","src","imgRef"],Eye=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],Iye=function(t){var n=t.fallback,r=t.src,a=t.imgRef,o=xt(t,Cye),i=zG({src:r,fallback:n}),s=re(i,2),c=s[0],u=s[1];return se.createElement("img",pe({ref:function(f){a.current=f,c(f)}},o,u))},HG=function(t){var n=t.prefixCls,r=t.src,a=t.alt,o=t.imageInfo,i=t.fallback,s=t.movable,c=s===void 0?!0:s,u=t.onClose,d=t.visible,f=t.icons,p=f===void 0?{}:f,g=t.rootClassName,h=t.closeIcon,b=t.getContainer,y=t.current,S=y===void 0?0:y,v=t.count,x=v===void 0?1:v,C=t.countRender,w=t.scaleStep,E=w===void 0?.5:w,I=t.minScale,T=I===void 0?1:I,R=t.maxScale,_=R===void 0?50:R,$=t.transitionName,P=$===void 0?"zoom":$,D=t.maskTransitionName,A=D===void 0?"fade":D,O=t.imageRender,N=t.imgCommonProps,k=t.toolbarRender,M=t.onTransform,L=t.onChange,F=xt(t,Eye),j=l.useRef(),B=l.useContext(fm),z=B&&x>1,H=B&&x>=1,V=l.useState(!0),te=re(V,2),Y=te[0],J=te[1],G=vye(j,T,_,M),U=G.transform,q=G.resetTransform,X=G.updateTransform,Q=G.dispatchZoomChange,ee=yye(j,c,d,E,U,X,Q),oe=ee.isMoving,le=ee.onMouseDown,fe=ee.onWheel,ce=wye(j,c,d,T,U,X,Q),Te=ce.isTouching,Se=ce.onTouchStart,ve=ce.onTouchMove,ae=ce.onTouchEnd,ie=U.rotate,ue=U.scale,ye=ne(W({},"".concat(n,"-moving"),oe));l.useEffect(function(){Y||J(!0)},[Y]);var Ee=function(){q("close")},Me=function(){Q(zu+E,"zoomIn")},Ie=function(){Q(zu/(zu+E),"zoomOut")},Ce=function(){X({rotate:ie+90},"rotateRight")},me=function(){X({rotate:ie-90},"rotateLeft")},we=function(){X({flipX:!U.flipX},"flipX")},_e=function(){X({flipY:!U.flipY},"flipY")},Ne=function(){q("reset")},he=function(be){be==null||be.preventDefault(),be==null||be.stopPropagation(),S>0&&(J(!1),q("prev"),L==null||L(S-1,S))},ke=function(be){be==null||be.preventDefault(),be==null||be.stopPropagation(),S({position:e||"absolute",inset:0}),qye=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:a,prefixCls:o,colorTextLightSolid:i}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:i,background:new an("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${o}-mask-info`]:Object.assign(Object.assign({},xo),{padding:`0 ${K(r)}`,[t]:{marginInlineEnd:a,svg:{verticalAlign:"baseline"}}})}},Kye=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:a,margin:o,paddingLG:i,previewOperationColorDisabled:s,previewOperationHoverColor:c,motionDurationSlow:u,iconCls:d,colorTextLightSolid:f}=e,p=new an(n).setAlpha(.1),g=p.clone().setAlpha(.2);return{[`${t}-footer`]:{position:"fixed",bottom:a,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${t}-progress`]:{marginBottom:o},[`${t}-close`]:{position:"fixed",top:a,right:{_skip_check_:!0,value:a},display:"flex",color:f,backgroundColor:p.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${u}`,"&:hover":{backgroundColor:g.toRgbString()},[`& > ${d}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${K(i)}`,backgroundColor:p.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${u}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${d}`]:{color:c},"&-disabled":{color:s,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${d}`]:{fontSize:e.previewOperationSize}}}}},Yye=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:a,zIndexPopup:o,motionDurationSlow:i}=e,s=new an(t).setAlpha(.1),c=s.clone().setAlpha(.2);return{[`${a}-switch-left, ${a}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(o).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:s.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${i}`,userSelect:"none","&:hover":{background:c.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${a}-switch-left`]:{insetInlineStart:e.marginSM},[`${a}-switch-right`]:{insetInlineEnd:e.marginSM}}},Xye=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:a}=e;return[{[`${a}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},AR()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},AR()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${a}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${a}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[Kye(e),Yye(e)]}]},Zye=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},qye(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},AR())}}},Qye=e=>{const{previewCls:t}=e;return{[`${t}-root`]:qd(e,"zoom"),"&":oO(e,!0)}},Jye=e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new an(e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new an(e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new an(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5}),UG=on("Image",e=>{const t=`${e.componentCls}-preview`,n=zt(e,{previewCls:t,modalMaskBg:new an("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[Zye(n),Xye(n),AU(zt(n,{componentCls:t})),Qye(n)]},Jye);var eSe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{previewPrefixCls:t,preview:n}=e,r=eSe(e,["previewPrefixCls","preview"]);const{getPrefixCls:a}=l.useContext(st),o=a("image",t),i=`${o}-preview`,s=a(),c=Un(o),[u,d,f]=UG(o,c),[p]=Si("ImagePreview",typeof n=="object"?n.zIndex:void 0),g=l.useMemo(()=>{var h;if(n===!1)return n;const b=typeof n=="object"?n:{},y=ne(d,f,c,(h=b.rootClassName)!==null&&h!==void 0?h:"");return Object.assign(Object.assign({},b),{transitionName:xa(s,"zoom",b.transitionName),maskTransitionName:xa(s,"fade",b.maskTransitionName),rootClassName:y,zIndex:p})},[n]);return u(l.createElement(WO.PreviewGroup,Object.assign({preview:g,previewPrefixCls:i,icons:VG},r)))};var SP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var t;const{prefixCls:n,preview:r,className:a,rootClassName:o,style:i}=e,s=SP(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:c,locale:u=Uo,getPopupContainer:d,image:f}=l.useContext(st),p=c("image",n),g=c(),h=u.Image||Uo.Image,b=Un(p),[y,S,v]=UG(p,b),x=ne(o,S,v,b),C=ne(a,S,f==null?void 0:f.className),[w]=Si("ImagePreview",typeof r=="object"?r.zIndex:void 0),E=l.useMemo(()=>{var T;if(r===!1)return r;const R=typeof r=="object"?r:{},{getContainer:_,closeIcon:$}=R,P=SP(R,["getContainer","closeIcon"]);return Object.assign(Object.assign({mask:l.createElement("div",{className:`${p}-mask-info`},l.createElement(Sl,null),h==null?void 0:h.preview),icons:VG},P),{getContainer:_??d,transitionName:xa(g,"zoom",R.transitionName),maskTransitionName:xa(g,"fade",R.maskTransitionName),zIndex:w,closeIcon:$??((T=f==null?void 0:f.preview)===null||T===void 0?void 0:T.closeIcon)})},[r,h,(t=f==null?void 0:f.preview)===null||t===void 0?void 0:t.closeIcon]),I=Object.assign(Object.assign({},f==null?void 0:f.style),i);return y(l.createElement(WO,Object.assign({prefixCls:p,preview:E,rootClassName:x,className:C,style:I},s)))};Oa.PreviewGroup=tSe;function nSe(e,t,n){return typeof n=="boolean"?n:e.length?!0:vr(t).some(a=>a.type===U0)}const rSe=e=>{const{componentCls:t,bodyBg:n,lightSiderBg:r,lightTriggerBg:a,lightTriggerColor:o}=e;return{[`${t}-sider-light`]:{background:r,[`${t}-sider-trigger`]:{color:o,background:a},[`${t}-sider-zero-width-trigger`]:{color:o,background:a,border:`1px solid ${n}`,borderInlineStart:0}}}},aSe=e=>{const{antCls:t,componentCls:n,colorText:r,triggerColor:a,footerBg:o,triggerBg:i,headerHeight:s,headerPadding:c,headerColor:u,footerPadding:d,triggerHeight:f,zeroTriggerHeight:p,zeroTriggerWidth:g,motionDurationMid:h,motionDurationSlow:b,fontSize:y,borderRadius:S,bodyBg:v,headerBg:x,siderBg:C}=e;return{[n]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:v,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},[`${n}-sider`]:{position:"relative",minWidth:0,background:C,transition:`all ${h}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${t}-menu${t}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:f},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:f,color:a,lineHeight:K(f),textAlign:"center",background:i,cursor:"pointer",transition:`all ${h}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:s,insetInlineEnd:e.calc(g).mul(-1).equal(),zIndex:1,width:g,height:p,color:a,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:C,borderStartStartRadius:0,borderStartEndRadius:S,borderEndEndRadius:S,borderEndStartRadius:0,cursor:"pointer",transition:`background ${b} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${b}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(g).mul(-1).equal(),borderStartStartRadius:S,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:S}}}}},rSe(e)),{"&-rtl":{direction:"rtl"}}),[`${n}-header`]:{height:s,padding:c,color:u,lineHeight:K(s),background:x,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:d,color:r,fontSize:y,background:o},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},oSe=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:a,controlHeightSM:o,marginXXS:i,colorTextLightSolid:s,colorBgContainer:c}=e,u=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${u}px`,headerColor:a,footerPadding:`${o}px ${u}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+i*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:a}},WG=on("Layout",e=>[aSe(e)],oSe,{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]});var GG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);al.forwardRef((i,s)=>l.createElement(a,Object.assign({ref:s,suffixCls:t,tagName:n},i)))}const GO=l.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:a,tagName:o}=e,i=GG(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=l.useContext(st),c=s("layout",n),[u,d,f]=WG(c),p=r?`${c}-${r}`:c;return u(l.createElement(o,Object.assign({className:ne(n||p,a,d,f),ref:t},i)))}),iSe=l.forwardRef((e,t)=>{const{direction:n}=l.useContext(st),[r,a]=l.useState([]),{prefixCls:o,className:i,rootClassName:s,children:c,hasSider:u,tagName:d,style:f}=e,p=GG(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),g=On(p,["suffixCls"]),{getPrefixCls:h,layout:b}=l.useContext(st),y=h("layout",o),S=nSe(r,c,u),[v,x,C]=WG(y),w=ne(y,{[`${y}-has-sider`]:S,[`${y}-rtl`]:n==="rtl"},b==null?void 0:b.className,i,s,x,C),E=l.useMemo(()=>({siderHook:{addSider:I=>{a(T=>[].concat(De(T),[I]))},removeSider:I=>{a(T=>T.filter(R=>R!==I))}}}),[]);return v(l.createElement(zV.Provider,{value:E},l.createElement(d,Object.assign({ref:t,className:w,style:Object.assign(Object.assign({},b==null?void 0:b.style),f)},g),c)))}),sSe=ry({tagName:"div",displayName:"Layout"})(iSe),qG=ry({suffixCls:"header",tagName:"header",displayName:"Header"})(GO),KG=ry({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(GO),YG=ry({suffixCls:"content",tagName:"main",displayName:"Content"})(GO),Gi=sSe;Gi.Header=qG;Gi.Footer=KG;Gi.Content=YG;Gi.Sider=U0;Gi._InternalSiderContext=H0;const XG=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const a=n[r];a!==void 0&&(e[r]=a)})}return e};var lSe={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"},cSe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:lSe}))},xP=l.forwardRef(cSe),uSe={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"},dSe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:uSe}))},wP=l.forwardRef(dSe),fSe={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:"页码"},pSe=["10","20","50","100"],gSe=function(t){var n=t.pageSizeOptions,r=n===void 0?pSe:n,a=t.locale,o=t.changeSize,i=t.pageSize,s=t.goButton,c=t.quickGo,u=t.rootPrefixCls,d=t.selectComponentClass,f=t.selectPrefixCls,p=t.disabled,g=t.buildOptionText,h=se.useState(""),b=re(h,2),y=b[0],S=b[1],v=function(){return!y||Number.isNaN(y)?void 0:Number(y)},x=typeof g=="function"?g:function(A){return"".concat(A," ").concat(a.items_per_page)},C=function(O){o==null||o(Number(O))},w=function(O){S(O.target.value)},E=function(O){s||y===""||(S(""),!(O.relatedTarget&&(O.relatedTarget.className.indexOf("".concat(u,"-item-link"))>=0||O.relatedTarget.className.indexOf("".concat(u,"-item"))>=0))&&(c==null||c(v())))},I=function(O){y!==""&&(O.keyCode===Le.ENTER||O.type==="click")&&(S(""),c==null||c(v()))},T=function(){return r.some(function(O){return O.toString()===i.toString()})?r:r.concat([i.toString()]).sort(function(O,N){var k=Number.isNaN(Number(O))?0:Number(O),M=Number.isNaN(Number(N))?0:Number(N);return k-M})},R="".concat(u,"-options");if(!o&&!c)return null;var _=null,$=null,P=null;if(o&&d){var D=T().map(function(A,O){return se.createElement(d.Option,{key:O,value:A.toString()},x(A))});_=se.createElement(d,{disabled:p,prefixCls:f,showSearch:!1,className:"".concat(R,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(i||r[0]).toString(),onChange:C,getPopupContainer:function(O){return O.parentNode},"aria-label":a.page_size,defaultOpen:!1},D)}return c&&(s&&(P=typeof s=="boolean"?se.createElement("button",{type:"button",onClick:I,onKeyUp:I,disabled:p,className:"".concat(R,"-quick-jumper-button")},a.jump_to_confirm):se.createElement("span",{onClick:I,onKeyUp:I},s)),$=se.createElement("div",{className:"".concat(R,"-quick-jumper")},a.jump_to,se.createElement("input",{disabled:p,type:"text",value:y,onChange:w,onKeyUp:I,onBlur:E,"aria-label":a.page}),a.page,P)),se.createElement("li",{className:R},_,$)},Df=function(t){var n,r=t.rootPrefixCls,a=t.page,o=t.active,i=t.className,s=t.showTitle,c=t.onClick,u=t.onKeyPress,d=t.itemRender,f="".concat(r,"-item"),p=ne(f,"".concat(f,"-").concat(a),(n={},W(n,"".concat(f,"-active"),o),W(n,"".concat(f,"-disabled"),!a),n),i),g=function(){c(a)},h=function(S){u(S,c,a)},b=d(a,"page",se.createElement("a",{rel:"nofollow"},a));return b?se.createElement("li",{title:s?String(a):null,className:p,onClick:g,onKeyDown:h,tabIndex:0},b):null},mSe=function(t,n,r){return r};function CP(){}function EP(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Bl(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var hSe=function(t){var n,r=t.prefixCls,a=r===void 0?"rc-pagination":r,o=t.selectPrefixCls,i=o===void 0?"rc-select":o,s=t.className,c=t.selectComponentClass,u=t.current,d=t.defaultCurrent,f=d===void 0?1:d,p=t.total,g=p===void 0?0:p,h=t.pageSize,b=t.defaultPageSize,y=b===void 0?10:b,S=t.onChange,v=S===void 0?CP:S,x=t.hideOnSinglePage,C=t.align,w=t.showPrevNextJumpers,E=w===void 0?!0:w,I=t.showQuickJumper,T=t.showLessItems,R=t.showTitle,_=R===void 0?!0:R,$=t.onShowSizeChange,P=$===void 0?CP:$,D=t.locale,A=D===void 0?fSe:D,O=t.style,N=t.totalBoundaryShowSizeChanger,k=N===void 0?50:N,M=t.disabled,L=t.simple,F=t.showTotal,j=t.showSizeChanger,B=t.pageSizeOptions,z=t.itemRender,H=z===void 0?mSe:z,V=t.jumpPrevIcon,te=t.jumpNextIcon,Y=t.prevIcon,J=t.nextIcon,G=se.useRef(null),U=sn(10,{value:h,defaultValue:y}),q=re(U,2),X=q[0],Q=q[1],ee=sn(1,{value:u,defaultValue:f,postState:function(_t){return Math.max(1,Math.min(_t,Bl(void 0,X,g)))}}),oe=re(ee,2),le=oe[0],fe=oe[1],ce=se.useState(le),Te=re(ce,2),Se=Te[0],ve=Te[1];l.useEffect(function(){ve(le)},[le]);var ae=Math.max(1,le-(T?3:5)),ie=Math.min(Bl(void 0,X,g),le+(T?3:5));function ue(It,_t){var kt=It||se.createElement("button",{type:"button","aria-label":_t,className:"".concat(a,"-item-link")});return typeof It=="function"&&(kt=se.createElement(It,Z({},t))),kt}function ye(It){var _t=It.target.value,kt=Bl(void 0,X,g),Tn;return _t===""?Tn=_t:Number.isNaN(Number(_t))?Tn=Se:_t>=kt?Tn=kt:Tn=Number(_t),Tn}function Ee(It){return EP(It)&&It!==le&&EP(g)&&g>0}var Me=g>X?I:!1;function Ie(It){(It.keyCode===Le.UP||It.keyCode===Le.DOWN)&&It.preventDefault()}function Ce(It){var _t=ye(It);switch(_t!==Se&&ve(_t),It.keyCode){case Le.ENTER:_e(_t);break;case Le.UP:_e(_t-1);break;case Le.DOWN:_e(_t+1);break}}function me(It){_e(ye(It))}function we(It){var _t=Bl(It,X,g),kt=le>_t&&_t!==0?_t:le;Q(It),ve(kt),P==null||P(le,It),fe(kt),v==null||v(kt,It)}function _e(It){if(Ee(It)&&!M){var _t=Bl(void 0,X,g),kt=It;return It>_t?kt=_t:It<1&&(kt=1),kt!==Se&&ve(kt),fe(kt),v==null||v(kt,X),kt}return le}var Ne=le>1,he=lek;function xe(){Ne&&_e(le-1)}function ge(){he&&_e(le+1)}function Pe(){_e(ae)}function Ve(){_e(ie)}function Ae(It,_t){if(It.key==="Enter"||It.charCode===Le.ENTER||It.keyCode===Le.ENTER){for(var kt=arguments.length,Tn=new Array(kt>2?kt-2:0),Qn=2;Qng?g:le*X])),ft=null,qe=Bl(void 0,X,g);if(x&&g<=X)return null;var We=[],Qe={rootPrefixCls:a,onClick:_e,onKeyPress:Ae,showTitle:_,itemRender:H,page:-1},ct=le-1>0?le-1:0,Rt=le+1=et*2&&le!==3&&(We[0]=se.cloneElement(We[0],{className:ne("".concat(a,"-item-after-jump-prev"),We[0].props.className)}),We.unshift(je)),qe-le>=et*2&&le!==qe-2){var yt=We[We.length-1];We[We.length-1]=se.cloneElement(yt,{className:ne("".concat(a,"-item-before-jump-next"),yt.props.className)}),We.push(ft)}at!==1&&We.unshift(se.createElement(Df,pe({},Qe,{key:1,page:1}))),Ye!==qe&&We.push(se.createElement(Df,pe({},Qe,{key:qe,page:qe})))}var Tt=He(ct);if(Tt){var Pt=!Ne||!qe;Tt=se.createElement("li",{title:_?A.prev_page:null,onClick:xe,tabIndex:Pt?null:0,onKeyDown:be,className:ne("".concat(a,"-prev"),W({},"".concat(a,"-disabled"),Pt)),"aria-disabled":Pt},Tt)}var en=ze(Rt);if(en){var rn,Vt;L?(rn=!he,Vt=Ne?0:null):(rn=!he||!qe,Vt=rn?null:0),en=se.createElement("li",{title:_?A.next_page:null,onClick:ge,tabIndex:Vt,onKeyDown:Oe,className:ne("".concat(a,"-next"),W({},"".concat(a,"-disabled"),rn)),"aria-disabled":rn},en)}var tn=ne(a,s,(n={},W(n,"".concat(a,"-start"),C==="start"),W(n,"".concat(a,"-center"),C==="center"),W(n,"".concat(a,"-end"),C==="end"),W(n,"".concat(a,"-simple"),L),W(n,"".concat(a,"-disabled"),M),n));return se.createElement("ul",pe({className:tn,style:O,ref:G},Je),mt,Tt,L?ot:We,en,se.createElement(gSe,{locale:A,rootPrefixCls:a,disabled:M,selectComponentClass:c,selectPrefixCls:i,changeSize:ke?we:null,pageSize:X,pageSizeOptions:B,quickGo:Me?_e:null,goButton:lt}))};const ZG=e=>l.createElement(Ar,Object.assign({},e,{showSearch:!0,size:"small"})),QG=e=>l.createElement(Ar,Object.assign({},e,{showSearch:!0,size:"middle"}));ZG.Option=Ar.Option;QG.Option=Ar.Option;const vSe=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},bSe=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:K(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:K(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:K(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[` + ${n}-col-xl-24${t}-label`]:si(e),[`@media (max-width: ${K(e.screenXSMax)})`]:[OG(e),{[t]:{[`${n}-col-xs-24${t}-label`]:si(e)}}],[`@media (max-width: ${K(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:si(e)}},[`@media (max-width: ${K(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:si(e)}},[`@media (max-width: ${K(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:si(e)}}}},H0e=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),NG=(e,t)=>zt(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),WO=on("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=NG(e,n);return[L0e(r),F0e(r),P0e(r),pP(r,r.componentCls),pP(r,r.formItemCls),j0e(r),B0e(r),z0e(r),Jg(r),sO]},H0e,{order:-1e3}),gP=[];function h1(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const kG=e=>{let{help:t,helpStatus:n,errors:r=gP,warnings:a=gP,className:o,fieldId:i,onVisibleChanged:s}=e;const{prefixCls:c}=l.useContext(aO),u=`${c}-item-explain`,d=Un(c),[f,p,g]=WO(c,d),h=l.useMemo(()=>Sd(c),[c]),b=Sb(r),y=Sb(a),S=l.useMemo(()=>t!=null?[h1(t,"help",n)]:[].concat(Pe(b.map((x,w)=>h1(x,"error","error",w))),Pe(y.map((x,w)=>h1(x,"warning","warning",w)))),[t,n,b,y]),v={};return i&&(v.id=`${i}_help`),f(l.createElement(ea,{motionDeadline:h.motionDeadline,motionName:`${c}-show-help`,visible:!!S.length,onVisibleChanged:s},x=>{const{className:w,style:C}=x;return l.createElement("div",Object.assign({},v,{className:ne(u,w,g,d,o,p),style:C,role:"alert"}),l.createElement(q$,Object.assign({keys:S},Sd(c),{motionName:`${c}-show-help-item`,component:!1}),E=>{const{key:I,error:T,errorStatus:R,className:_,style:$}=E;return l.createElement("div",{key:I,className:ne(_,{[`${u}-${R}`]:R}),style:$},T)}))}))},U0e=["parentNode"],V0e="form_item";function Ep(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function AG(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:U0e.includes(n)?`${V0e}_${n}`:n}function MG(e,t,n,r,a,o){let i=r;return o!==void 0?i=o:n.validating?i="validating":e.length?i="error":t.length?i="warning":(n.touched||a&&n.validated)&&(i="success"),i}function mP(e){return Ep(e).join("_")}function W0e(e,t){const n=t.getFieldInstance(e),r=$9(n);if(r)return r;const a=AG(Ep(e),t.__INTERNAL__.name);if(a)return document.getElementById(a)}function PG(e){const[t]=rO(),n=l.useRef({}),r=l.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:a=>o=>{const i=mP(a);o?n.current[i]=o:delete n.current[i]}},scrollToField:function(a){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=W0e(a,r);i&&Woe(i,Object.assign({scrollMode:"if-needed",block:"nearest"},o))},getFieldInstance:a=>{const o=mP(a);return n.current[o]}}),[e,t]);return[r]}var G0e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const n=l.useContext(Jr),{getPrefixCls:r,direction:a,form:o}=l.useContext(st),{prefixCls:i,className:s,rootClassName:c,size:u,disabled:d=n,form:f,colon:p,labelAlign:g,labelWrap:h,labelCol:b,wrapperCol:y,hideRequiredMark:S,layout:v="horizontal",scrollToFirstError:x,requiredMark:w,onFinishFailed:C,name:E,style:I,feedbackIcons:T,variant:R}=e,_=G0e(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),$=Er(u),P=l.useContext(uH),D=l.useMemo(()=>w!==void 0?w:S?!1:o&&o.requiredMark!==void 0?o.requiredMark:!0,[S,w,o]),A=p??(o==null?void 0:o.colon),O=r("form",i),N=Un(O),[k,M,L]=WO(O,N),F=ne(O,`${O}-${v}`,{[`${O}-hide-required-mark`]:D===!1,[`${O}-rtl`]:a==="rtl",[`${O}-${$}`]:$},L,N,M,o==null?void 0:o.className,s,c),[j]=PG(f),{__INTERNAL__:B}=j;B.name=E;const z=l.useMemo(()=>({name:E,labelAlign:g,labelCol:b,labelWrap:h,wrapperCol:y,vertical:v==="vertical",colon:A,requiredMark:D,itemRef:B.itemRef,form:j,feedbackIcons:T}),[E,g,b,y,v,A,D,j,T]),H=l.useRef(null);l.useImperativeHandle(t,()=>{var Y;return Object.assign(Object.assign({},j),{nativeElement:(Y=H.current)===null||Y===void 0?void 0:Y.nativeElement})});const V=(Y,J)=>{if(Y){let G={block:"nearest"};typeof Y=="object"&&(G=Y),j.scrollToField(J,G)}},te=Y=>{if(C==null||C(Y),Y.errorFields.length){const J=Y.errorFields[0].name;if(x!==void 0){V(x,J);return}o&&o.scrollToFirstError!==void 0&&V(o.scrollToFirstError,J)}};return k(l.createElement(_U.Provider,{value:R},l.createElement(U$,{disabled:d},l.createElement(Cc.Provider,{value:$},l.createElement(RU,{validateMessages:P},l.createElement(Is.Provider,{value:z},l.createElement(Wd,Object.assign({id:E},_,{name:E,onFinishFailed:te,form:j,ref:H,style:Object.assign(Object.assign({},o==null?void 0:o.style),I),className:F}))))))))},K0e=l.forwardRef(q0e);function Y0e(e){if(typeof e=="function")return e;const t=vr(e);return t.length<=1?t[0]:t}const DG=()=>{const{status:e,errors:t=[],warnings:n=[]}=l.useContext(zr);return{status:e,errors:t,warnings:n}};DG.Context=zr;function X0e(e){const[t,n]=l.useState(e),r=l.useRef(null),a=l.useRef([]),o=l.useRef(!1);l.useEffect(()=>(o.current=!1,()=>{o.current=!0,Ut.cancel(r.current),r.current=null}),[]);function i(s){o.current||(r.current===null&&(a.current=[],r.current=Ut(()=>{r.current=null,n(c=>{let u=c;return a.current.forEach(d=>{u=d(u)}),u})})),a.current.push(s))}return[t,i]}function Z0e(){const{itemRef:e}=l.useContext(Is),t=l.useRef({});function n(r,a){const o=a&&typeof a=="object"&&a.ref,i=r.join("_");return(t.current.name!==i||t.current.originRef!==o)&&(t.current.name=i,t.current.originRef=o,t.current.ref=na(e(r),o)),t.current.ref}return n}const Q0e=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},J0e=Hd(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=NG(e,n);return[Q0e(r)]}),eye=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:a,errors:o,warnings:i,_internalItemRender:s,extra:c,help:u,fieldId:d,marginBottom:f,onErrorVisibleChanged:p}=e,g=`${t}-item`,h=l.useContext(Is),b=r||h.wrapperCol||{},y=ne(`${g}-control`,b.className),S=l.useMemo(()=>Object.assign({},h),[h]);delete S.labelCol,delete S.wrapperCol;const v=l.createElement("div",{className:`${g}-control-input`},l.createElement("div",{className:`${g}-control-input-content`},a)),x=l.useMemo(()=>({prefixCls:t,status:n}),[t,n]),w=f!==null||o.length||i.length?l.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},l.createElement(aO.Provider,{value:x},l.createElement(kG,{fieldId:d,errors:o,warnings:i,help:u,helpStatus:n,className:`${g}-explain-connected`,onVisibleChanged:p})),!!f&&l.createElement("div",{style:{width:0,height:f}})):null,C={};d&&(C.id=`${d}_extra`);const E=c?l.createElement("div",Object.assign({},C,{className:`${g}-extra`}),c):null,I=s&&s.mark==="pro_table_render"&&s.render?s.render(e,{input:v,errorList:w,extra:E}):l.createElement(l.Fragment,null,v,w,E);return l.createElement(Is.Provider,{value:S},l.createElement(En,Object.assign({},b,{className:y}),I),l.createElement(J0e,{prefixCls:t}))};var tye={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"},nye=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:tye}))},LG=l.forwardRef(nye),rye=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{let{prefixCls:t,label:n,htmlFor:r,labelCol:a,labelAlign:o,colon:i,required:s,requiredMark:c,tooltip:u,vertical:d}=e;var f;const[p]=Ki("Form"),{labelAlign:g,labelCol:h,labelWrap:b,colon:y}=l.useContext(Is);if(!n)return null;const S=a||h||{},v=o||g,x=`${t}-item-label`,w=ne(x,v==="left"&&`${x}-left`,S.className,{[`${x}-wrap`]:!!b});let C=n;const E=i===!0||y!==!1&&i!==!1;E&&!d&&typeof n=="string"&&n.trim()&&(C=n.replace(/[:|:]\s*$/,""));const T=aye(u);if(T){const{icon:P=l.createElement(LG,null)}=T,D=rye(T,["icon"]),A=l.createElement(Zt,Object.assign({},D),l.cloneElement(P,{className:`${t}-item-tooltip`,title:"",onClick:O=>{O.preventDefault()},tabIndex:null}));C=l.createElement(l.Fragment,null,C,A)}const R=c==="optional",_=typeof c=="function";_?C=c(C,{required:!!s}):R&&!s&&(C=l.createElement(l.Fragment,null,C,l.createElement("span",{className:`${t}-item-optional`,title:""},(p==null?void 0:p.optional)||((f=Vo.Form)===null||f===void 0?void 0:f.optional))));const $=ne({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:R||_,[`${t}-item-no-colon`]:!E});return l.createElement(En,Object.assign({},S,{className:w}),l.createElement("label",{htmlFor:r,className:$,title:typeof n=="string"?n:""},C))},iye={success:Wg,warning:w0,error:Pc,validating:Ui};function FG(e){let{children:t,errors:n,warnings:r,hasFeedback:a,validateStatus:o,prefixCls:i,meta:s,noStyle:c}=e;const u=`${i}-item`,{feedbackIcons:d}=l.useContext(Is),f=MG(n,r,s,null,!!a,o),{isFormItemInput:p,status:g,hasFeedback:h,feedbackIcon:b}=l.useContext(zr),y=l.useMemo(()=>{var S;let v;if(a){const w=a!==!0&&a.icons||d,C=f&&((S=w==null?void 0:w({status:f,errors:n,warnings:r}))===null||S===void 0?void 0:S[f]),E=f&&iye[f];v=C!==!1&&E?l.createElement("span",{className:ne(`${u}-feedback-icon`,`${u}-feedback-icon-${f}`)},C||l.createElement(E,null)):null}const x={status:f||"",errors:n,warnings:r,hasFeedback:!!a,feedbackIcon:v,isFormItemInput:!0};return c&&(x.status=(f??g)||"",x.isFormItemInput=p,x.hasFeedback=!!(a??h),x.feedbackIcon=a!==void 0?x.feedbackIcon:b),x},[f,a,c,p,g]);return l.createElement(zr.Provider,{value:y},t)}var sye=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{if($&&I.current){const L=getComputedStyle(I.current);A(parseInt(L.marginBottom,10))}},[$,P]);const O=L=>{L||A(null)},k=function(){let L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const F=L?T:u.errors,j=L?R:u.warnings;return MG(F,j,u,"",!!d,c)}(),M=ne(x,n,r,{[`${x}-with-help`]:_||T.length||R.length,[`${x}-has-feedback`]:k&&d,[`${x}-has-success`]:k==="success",[`${x}-has-warning`]:k==="warning",[`${x}-has-error`]:k==="error",[`${x}-is-validating`]:k==="validating",[`${x}-hidden`]:f,[`${x}-${S}`]:S});return l.createElement("div",{className:M,style:a,ref:I},l.createElement(Na,Object.assign({className:`${x}-row`},On(v,["_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"])),l.createElement(oye,Object.assign({htmlFor:g},e,{requiredMark:w,required:h??b,prefixCls:t,vertical:E})),l.createElement(eye,Object.assign({},e,u,{errors:T,warnings:R,prefixCls:t,status:k,help:o,marginBottom:D,onErrorVisibleChanged:O}),l.createElement(TU.Provider,{value:y},l.createElement(FG,{prefixCls:t,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:d,validateStatus:k},p)))),!!D&&l.createElement("div",{className:`${x}-margin-offset`,style:{marginBottom:-D}}))}const cye="__SPLIT__";function uye(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(a=>{const o=e[a],i=t[a];return o===i||typeof o=="function"||typeof i=="function"})}const dye=l.memo(e=>{let{children:t}=e;return t},(e,t)=>uye(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function hP(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function fye(e){const{name:t,noStyle:n,className:r,dependencies:a,prefixCls:o,shouldUpdate:i,rules:s,children:c,required:u,label:d,messageVariables:f,trigger:p="onChange",validateTrigger:g,hidden:h,help:b,layout:y}=e,{getPrefixCls:S}=l.useContext(st),{name:v}=l.useContext(Is),x=Y0e(c),w=typeof x=="function",C=l.useContext(TU),{validateTrigger:E}=l.useContext(Ic),I=g!==void 0?g:E,T=t!=null,R=S("form",o),_=Un(R),[$,P,D]=WO(R,_);$l();const A=l.useContext(gg),O=l.useRef(),[N,k]=X0e({}),[M,L]=Ec(()=>hP()),F=Y=>{const J=A==null?void 0:A.getKey(Y.name);if(L(Y.destroy?hP():Y,!0),n&&b!==!1&&C){let G=Y.name;if(Y.destroy)G=O.current||G;else if(J!==void 0){const[U,q]=J;G=[U].concat(Pe(q)),O.current=G}C(Y,G)}},j=(Y,J)=>{k(G=>{const U=Object.assign({},G),X=[].concat(Pe(Y.name.slice(0,-1)),Pe(J)).join(cye);return Y.destroy?delete U[X]:U[X]=Y,U})},[B,z]=l.useMemo(()=>{const Y=Pe(M.errors),J=Pe(M.warnings);return Object.values(N).forEach(G=>{Y.push.apply(Y,Pe(G.errors||[])),J.push.apply(J,Pe(G.warnings||[]))}),[Y,J]},[N,M.errors,M.warnings]),H=Z0e();function V(Y,J,G){return n&&!h?l.createElement(FG,{prefixCls:R,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:M,errors:B,warnings:z,noStyle:!0},Y):l.createElement(lye,Object.assign({key:"row"},e,{className:ne(r,D,_,P),prefixCls:R,fieldId:J,isRequired:G,errors:B,warnings:z,meta:M,onSubItemMetaChange:j,layout:y}),Y)}if(!T&&!w&&!a)return $(V(x));let te={};return typeof d=="string"?te.label=d:t&&(te.label=String(t)),f&&(te=Object.assign(Object.assign({},te),f)),$(l.createElement(nO,Object.assign({},e,{messageVariables:te,trigger:p,validateTrigger:I,onMetaChange:F}),(Y,J,G)=>{const U=Ep(t).length&&J?J.name:[],q=AG(U,v),X=u!==void 0?u:!!(s!=null&&s.some(oe=>{if(oe&&typeof oe=="object"&&oe.required&&!oe.warningOnly)return!0;if(typeof oe=="function"){const le=oe(G);return(le==null?void 0:le.required)&&!(le!=null&&le.warningOnly)}return!1})),Q=Object.assign({},Y);let ee=null;if(Array.isArray(x)&&T)ee=x;else if(!(w&&(!(i||a)||T))){if(!(a&&!w&&!T))if(l.isValidElement(x)){const oe=Object.assign(Object.assign({},x.props),Q);if(oe.id||(oe.id=q),b||B.length>0||z.length>0||e.extra){const ce=[];(b||B.length>0)&&ce.push(`${q}_help`),e.extra&&ce.push(`${q}_extra`),oe["aria-describedby"]=ce.join(" ")}B.length>0&&(oe["aria-invalid"]="true"),X&&(oe["aria-required"]="true"),mi(x)&&(oe.ref=H(U,x)),new Set([].concat(Pe(Ep(p)),Pe(Ep(I)))).forEach(ce=>{oe[ce]=function(){for(var Ie,be,he,ae,ie,ue=arguments.length,xe=new Array(ue),we=0;we{var{prefixCls:t,children:n}=e,r=pye(e,["prefixCls","children"]);const{getPrefixCls:a}=l.useContext(st),o=a("form",t),i=l.useMemo(()=>({prefixCls:o,status:"error"}),[o]);return l.createElement(wU,Object.assign({},r),(s,c,u)=>l.createElement(aO.Provider,{value:i},n(s.map(d=>Object.assign(Object.assign({},d),{fieldKey:d.key})),c,{errors:u.errors,warnings:u.warnings})))};function mye(){const{form:e}=l.useContext(Is);return e}const qt=K0e;qt.Item=pm;qt.List=gye;qt.ErrorList=kG;qt.useForm=PG;qt.useFormInstance=mye;qt.useWatch=IU;qt.Provider=RU;qt.create=()=>{};function jG(){var e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function kR(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function Di(e,t,n,r){var a=Jp.unstable_batchedUpdates?function(i){Jp.unstable_batchedUpdates(n,i)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,a,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,a,r)}}}var gm=l.createContext(null),hye=function(t){var n=t.visible,r=t.maskTransitionName,a=t.getContainer,o=t.prefixCls,i=t.rootClassName,s=t.icons,c=t.countRender,u=t.showSwitch,d=t.showProgress,f=t.current,p=t.transform,g=t.count,h=t.scale,b=t.minScale,y=t.maxScale,S=t.closeIcon,v=t.onSwitchLeft,x=t.onSwitchRight,w=t.onClose,C=t.onZoomIn,E=t.onZoomOut,I=t.onRotateRight,T=t.onRotateLeft,R=t.onFlipX,_=t.onFlipY,$=t.onReset,P=t.toolbarRender,D=t.zIndex,A=t.image,O=l.useContext(gm),N=s.rotateLeft,k=s.rotateRight,M=s.zoomIn,L=s.zoomOut,F=s.close,j=s.left,B=s.right,z=s.flipX,H=s.flipY,V="".concat(o,"-operations-operation");l.useEffect(function(){var G=function(q){q.keyCode===Le.ESC&&w()};return n&&window.addEventListener("keydown",G),function(){window.removeEventListener("keydown",G)}},[n]);var te=[{icon:H,onClick:_,type:"flipY"},{icon:z,onClick:R,type:"flipX"},{icon:N,onClick:T,type:"rotateLeft"},{icon:k,onClick:I,type:"rotateRight"},{icon:L,onClick:E,type:"zoomOut",disabled:h<=b},{icon:M,onClick:C,type:"zoomIn",disabled:h===y}],Y=te.map(function(G){var U,q=G.icon,X=G.onClick,Q=G.type,ee=G.disabled;return l.createElement("div",{className:ne(V,(U={},W(U,"".concat(o,"-operations-operation-").concat(Q),!0),W(U,"".concat(o,"-operations-operation-disabled"),!!ee),U)),onClick:X,key:Q},q)}),J=l.createElement("div",{className:"".concat(o,"-operations")},Y);return l.createElement(ea,{visible:n,motionName:r},function(G){var U=G.className,q=G.style;return l.createElement(Zg,{open:!0,getContainer:a??document.body},l.createElement("div",{className:ne("".concat(o,"-operations-wrapper"),U,i),style:Z(Z({},q),{},{zIndex:D})},S===null?null:l.createElement("button",{className:"".concat(o,"-close"),onClick:w},S||F),u&&l.createElement(l.Fragment,null,l.createElement("div",{className:ne("".concat(o,"-switch-left"),W({},"".concat(o,"-switch-left-disabled"),f===0)),onClick:v},j),l.createElement("div",{className:ne("".concat(o,"-switch-right"),W({},"".concat(o,"-switch-right-disabled"),f===g-1)),onClick:x},B)),l.createElement("div",{className:"".concat(o,"-footer")},d&&l.createElement("div",{className:"".concat(o,"-progress")},c?c(f+1,g):"".concat(f+1," / ").concat(g)),P?P(J,Z(Z({icons:{flipYIcon:Y[0],flipXIcon:Y[1],rotateLeftIcon:Y[2],rotateRightIcon:Y[3],zoomOutIcon:Y[4],zoomInIcon:Y[5]},actions:{onFlipY:_,onFlipX:R,onRotateLeft:T,onRotateRight:I,onZoomOut:E,onZoomIn:C,onReset:$,onClose:w},transform:p},O?{current:f,total:g}:{}),{},{image:A})):J)))})},Sh={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function vye(e,t,n,r){var a=l.useRef(null),o=l.useRef([]),i=l.useState(Sh),s=re(i,2),c=s[0],u=s[1],d=function(h){u(Sh),Ho(Sh,c)||r==null||r({transform:Sh,action:h})},f=function(h,b){a.current===null&&(o.current=[],a.current=Ut(function(){u(function(y){var S=y;return o.current.forEach(function(v){S=Z(Z({},S),v)}),a.current=null,r==null||r({transform:S,action:b}),S})})),o.current.push(Z(Z({},c),h))},p=function(h,b,y,S,v){var x=e.current,w=x.width,C=x.height,E=x.offsetWidth,I=x.offsetHeight,T=x.offsetLeft,R=x.offsetTop,_=h,$=c.scale*h;$>n?($=n,_=n/c.scale):$r){if(t>0)return W({},e,o);if(t<0&&ar)return W({},e,t<0?o:-o);return{}}function BG(e,t,n,r){var a=jG(),o=a.width,i=a.height,s=null;return e<=o&&t<=i?s={x:0,y:0}:(e>o||t>i)&&(s=Z(Z({},vP("x",n,e,o)),vP("y",r,t,i))),s}var zu=1,bye=1;function yye(e,t,n,r,a,o,i){var s=a.rotate,c=a.scale,u=a.x,d=a.y,f=l.useState(!1),p=re(f,2),g=p[0],h=p[1],b=l.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),y=function(C){!t||C.button!==0||(C.preventDefault(),C.stopPropagation(),b.current={diffX:C.pageX-u,diffY:C.pageY-d,transformX:u,transformY:d},h(!0))},S=function(C){n&&g&&o({x:C.pageX-b.current.diffX,y:C.pageY-b.current.diffY},"move")},v=function(){if(n&&g){h(!1);var C=b.current,E=C.transformX,I=C.transformY,T=u!==E&&d!==I;if(!T)return;var R=e.current.offsetWidth*c,_=e.current.offsetHeight*c,$=e.current.getBoundingClientRect(),P=$.left,D=$.top,A=s%180!==0,O=BG(A?_:R,A?R:_,P,D);O&&o(Z({},O),"dragRebound")}},x=function(C){if(!(!n||C.deltaY==0)){var E=Math.abs(C.deltaY/100),I=Math.min(E,bye),T=zu+I*r;C.deltaY>0&&(T=zu/T),i(T,"wheel",C.clientX,C.clientY)}};return l.useEffect(function(){var w,C,E,I;if(t){E=Di(window,"mouseup",v,!1),I=Di(window,"mousemove",S,!1);try{window.top!==window.self&&(w=Di(window.top,"mouseup",v,!1),C=Di(window.top,"mousemove",S,!1))}catch{}}return function(){var T,R,_,$;(T=E)===null||T===void 0||T.remove(),(R=I)===null||R===void 0||R.remove(),(_=w)===null||_===void 0||_.remove(),($=C)===null||$===void 0||$.remove()}},[n,g,u,d,s,t]),{isMoving:g,onMouseDown:y,onMouseMove:S,onMouseUp:v,onWheel:x}}function Sye(e){return new Promise(function(t){var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e})}function zG(e){var t=e.src,n=e.isCustomPlaceholder,r=e.fallback,a=l.useState(n?"loading":"normal"),o=re(a,2),i=o[0],s=o[1],c=l.useRef(!1),u=i==="error";l.useEffect(function(){var g=!0;return Sye(t).then(function(h){!h&&g&&s("error")}),function(){g=!1}},[t]),l.useEffect(function(){n&&!c.current?s("loading"):u&&s("normal")},[t]);var d=function(){s("normal")},f=function(h){c.current=!1,i==="loading"&&h!==null&&h!==void 0&&h.complete&&(h.naturalWidth||h.naturalHeight)&&(c.current=!0,d())},p=u&&r?{src:r}:{onLoad:d,src:t};return[f,p,i]}function xb(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function xye(e,t,n,r){var a=xb(e,n),o=xb(t,r);if(a===0&&o===0)return[e.x,e.y];var i=a/(a+o),s=e.x+i*(t.x-e.x),c=e.y+i*(t.y-e.y);return[s,c]}function wye(e,t,n,r,a,o,i){var s=a.rotate,c=a.scale,u=a.x,d=a.y,f=l.useState(!1),p=re(f,2),g=p[0],h=p[1],b=l.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),y=function(C){b.current=Z(Z({},b.current),C)},S=function(C){if(t){C.stopPropagation(),h(!0);var E=C.touches,I=E===void 0?[]:E;I.length>1?y({point1:{x:I[0].clientX,y:I[0].clientY},point2:{x:I[1].clientX,y:I[1].clientY},eventType:"touchZoom"}):y({point1:{x:I[0].clientX-u,y:I[0].clientY-d},eventType:"move"})}},v=function(C){var E=C.touches,I=E===void 0?[]:E,T=b.current,R=T.point1,_=T.point2,$=T.eventType;if(I.length>1&&$==="touchZoom"){var P={x:I[0].clientX,y:I[0].clientY},D={x:I[1].clientX,y:I[1].clientY},A=xye(R,_,P,D),O=re(A,2),N=O[0],k=O[1],M=xb(P,D)/xb(R,_);i(M,"touchZoom",N,k,!0),y({point1:P,point2:D,eventType:"touchZoom"})}else $==="move"&&(o({x:I[0].clientX-R.x,y:I[0].clientY-R.y},"move"),y({eventType:"move"}))},x=function(){if(n){if(g&&h(!1),y({eventType:"none"}),r>c)return o({x:0,y:0,scale:r},"touchZoom");var C=e.current.offsetWidth*c,E=e.current.offsetHeight*c,I=e.current.getBoundingClientRect(),T=I.left,R=I.top,_=s%180!==0,$=BG(_?E:C,_?C:E,T,R);$&&o(Z({},$),"dragRebound")}};return l.useEffect(function(){var w;return n&&t&&(w=Di(window,"touchmove",function(C){return C.preventDefault()},{passive:!1})),function(){var C;(C=w)===null||C===void 0||C.remove()}},[n,t]),{isTouching:g,onTouchStart:S,onTouchMove:v,onTouchEnd:x}}var Cye=["fallback","src","imgRef"],Eye=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],Iye=function(t){var n=t.fallback,r=t.src,a=t.imgRef,o=xt(t,Cye),i=zG({src:r,fallback:n}),s=re(i,2),c=s[0],u=s[1];return se.createElement("img",pe({ref:function(f){a.current=f,c(f)}},o,u))},HG=function(t){var n=t.prefixCls,r=t.src,a=t.alt,o=t.imageInfo,i=t.fallback,s=t.movable,c=s===void 0?!0:s,u=t.onClose,d=t.visible,f=t.icons,p=f===void 0?{}:f,g=t.rootClassName,h=t.closeIcon,b=t.getContainer,y=t.current,S=y===void 0?0:y,v=t.count,x=v===void 0?1:v,w=t.countRender,C=t.scaleStep,E=C===void 0?.5:C,I=t.minScale,T=I===void 0?1:I,R=t.maxScale,_=R===void 0?50:R,$=t.transitionName,P=$===void 0?"zoom":$,D=t.maskTransitionName,A=D===void 0?"fade":D,O=t.imageRender,N=t.imgCommonProps,k=t.toolbarRender,M=t.onTransform,L=t.onChange,F=xt(t,Eye),j=l.useRef(),B=l.useContext(gm),z=B&&x>1,H=B&&x>=1,V=l.useState(!0),te=re(V,2),Y=te[0],J=te[1],G=vye(j,T,_,M),U=G.transform,q=G.resetTransform,X=G.updateTransform,Q=G.dispatchZoomChange,ee=yye(j,c,d,E,U,X,Q),oe=ee.isMoving,le=ee.onMouseDown,fe=ee.onWheel,ce=wye(j,c,d,T,U,X,Q),Ie=ce.isTouching,be=ce.onTouchStart,he=ce.onTouchMove,ae=ce.onTouchEnd,ie=U.rotate,ue=U.scale,xe=ne(W({},"".concat(n,"-moving"),oe));l.useEffect(function(){Y||J(!0)},[Y]);var we=function(){q("close")},Me=function(){Q(zu+E,"zoomIn")},Ce=function(){Q(zu/(zu+E),"zoomOut")},De=function(){X({rotate:ie+90},"rotateRight")},ye=function(){X({rotate:ie-90},"rotateLeft")},ve=function(){X({flipX:!U.flipX},"flipX")},$e=function(){X({flipY:!U.flipY},"flipY")},Ee=function(){q("reset")},ge=function(Se){Se==null||Se.preventDefault(),Se==null||Se.stopPropagation(),S>0&&(J(!1),q("prev"),L==null||L(S-1,S))},Ne=function(Se){Se==null||Se.preventDefault(),Se==null||Se.stopPropagation(),S({position:e||"absolute",inset:0}),qye=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:a,prefixCls:o,colorTextLightSolid:i}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:i,background:new an("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${o}-mask-info`]:Object.assign(Object.assign({},wo),{padding:`0 ${K(r)}`,[t]:{marginInlineEnd:a,svg:{verticalAlign:"baseline"}}})}},Kye=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:a,margin:o,paddingLG:i,previewOperationColorDisabled:s,previewOperationHoverColor:c,motionDurationSlow:u,iconCls:d,colorTextLightSolid:f}=e,p=new an(n).setAlpha(.1),g=p.clone().setAlpha(.2);return{[`${t}-footer`]:{position:"fixed",bottom:a,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${t}-progress`]:{marginBottom:o},[`${t}-close`]:{position:"fixed",top:a,right:{_skip_check_:!0,value:a},display:"flex",color:f,backgroundColor:p.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${u}`,"&:hover":{backgroundColor:g.toRgbString()},[`& > ${d}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${K(i)}`,backgroundColor:p.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${u}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${d}`]:{color:c},"&-disabled":{color:s,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${d}`]:{fontSize:e.previewOperationSize}}}}},Yye=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:a,zIndexPopup:o,motionDurationSlow:i}=e,s=new an(t).setAlpha(.1),c=s.clone().setAlpha(.2);return{[`${a}-switch-left, ${a}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(o).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:s.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${i}`,userSelect:"none","&:hover":{background:c.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${a}-switch-left`]:{insetInlineStart:e.marginSM},[`${a}-switch-right`]:{insetInlineEnd:e.marginSM}}},Xye=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:a}=e;return[{[`${a}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},MR()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},MR()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${a}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${a}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[Kye(e),Yye(e)]}]},Zye=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},qye(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},MR())}}},Qye=e=>{const{previewCls:t}=e;return{[`${t}-root`]:qd(e,"zoom"),"&":iO(e,!0)}},Jye=e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new an(e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new an(e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new an(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5}),UG=on("Image",e=>{const t=`${e.componentCls}-preview`,n=zt(e,{previewCls:t,modalMaskBg:new an("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[Zye(n),Xye(n),AU(zt(n,{componentCls:t})),Qye(n)]},Jye);var eSe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{previewPrefixCls:t,preview:n}=e,r=eSe(e,["previewPrefixCls","preview"]);const{getPrefixCls:a}=l.useContext(st),o=a("image",t),i=`${o}-preview`,s=a(),c=Un(o),[u,d,f]=UG(o,c),[p]=xi("ImagePreview",typeof n=="object"?n.zIndex:void 0),g=l.useMemo(()=>{var h;if(n===!1)return n;const b=typeof n=="object"?n:{},y=ne(d,f,c,(h=b.rootClassName)!==null&&h!==void 0?h:"");return Object.assign(Object.assign({},b),{transitionName:Ca(s,"zoom",b.transitionName),maskTransitionName:Ca(s,"fade",b.maskTransitionName),rootClassName:y,zIndex:p})},[n]);return u(l.createElement(GO.PreviewGroup,Object.assign({preview:g,previewPrefixCls:i,icons:VG},r)))};var SP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var t;const{prefixCls:n,preview:r,className:a,rootClassName:o,style:i}=e,s=SP(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:c,locale:u=Vo,getPopupContainer:d,image:f}=l.useContext(st),p=c("image",n),g=c(),h=u.Image||Vo.Image,b=Un(p),[y,S,v]=UG(p,b),x=ne(o,S,v,b),w=ne(a,S,f==null?void 0:f.className),[C]=xi("ImagePreview",typeof r=="object"?r.zIndex:void 0),E=l.useMemo(()=>{var T;if(r===!1)return r;const R=typeof r=="object"?r:{},{getContainer:_,closeIcon:$}=R,P=SP(R,["getContainer","closeIcon"]);return Object.assign(Object.assign({mask:l.createElement("div",{className:`${p}-mask-info`},l.createElement(Sl,null),h==null?void 0:h.preview),icons:VG},P),{getContainer:_??d,transitionName:Ca(g,"zoom",R.transitionName),maskTransitionName:Ca(g,"fade",R.maskTransitionName),zIndex:C,closeIcon:$??((T=f==null?void 0:f.preview)===null||T===void 0?void 0:T.closeIcon)})},[r,h,(t=f==null?void 0:f.preview)===null||t===void 0?void 0:t.closeIcon]),I=Object.assign(Object.assign({},f==null?void 0:f.style),i);return y(l.createElement(GO,Object.assign({prefixCls:p,preview:E,rootClassName:x,className:w,style:I},s)))};qr.PreviewGroup=tSe;function nSe(e,t,n){return typeof n=="boolean"?n:e.length?!0:vr(t).some(a=>a.type===V0)}const rSe=e=>{const{componentCls:t,bodyBg:n,lightSiderBg:r,lightTriggerBg:a,lightTriggerColor:o}=e;return{[`${t}-sider-light`]:{background:r,[`${t}-sider-trigger`]:{color:o,background:a},[`${t}-sider-zero-width-trigger`]:{color:o,background:a,border:`1px solid ${n}`,borderInlineStart:0}}}},aSe=e=>{const{antCls:t,componentCls:n,colorText:r,triggerColor:a,footerBg:o,triggerBg:i,headerHeight:s,headerPadding:c,headerColor:u,footerPadding:d,triggerHeight:f,zeroTriggerHeight:p,zeroTriggerWidth:g,motionDurationMid:h,motionDurationSlow:b,fontSize:y,borderRadius:S,bodyBg:v,headerBg:x,siderBg:w}=e;return{[n]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:v,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},[`${n}-sider`]:{position:"relative",minWidth:0,background:w,transition:`all ${h}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${t}-menu${t}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:f},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:f,color:a,lineHeight:K(f),textAlign:"center",background:i,cursor:"pointer",transition:`all ${h}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:s,insetInlineEnd:e.calc(g).mul(-1).equal(),zIndex:1,width:g,height:p,color:a,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:w,borderStartStartRadius:0,borderStartEndRadius:S,borderEndEndRadius:S,borderEndStartRadius:0,cursor:"pointer",transition:`background ${b} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${b}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(g).mul(-1).equal(),borderStartStartRadius:S,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:S}}}}},rSe(e)),{"&-rtl":{direction:"rtl"}}),[`${n}-header`]:{height:s,padding:c,color:u,lineHeight:K(s),background:x,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:d,color:r,fontSize:y,background:o},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},oSe=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:a,controlHeightSM:o,marginXXS:i,colorTextLightSolid:s,colorBgContainer:c}=e,u=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${u}px`,headerColor:a,footerPadding:`${o}px ${u}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+i*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:a}},WG=on("Layout",e=>[aSe(e)],oSe,{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]});var GG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);al.forwardRef((i,s)=>l.createElement(a,Object.assign({ref:s,suffixCls:t,tagName:n},i)))}const qO=l.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:a,tagName:o}=e,i=GG(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=l.useContext(st),c=s("layout",n),[u,d,f]=WG(c),p=r?`${c}-${r}`:c;return u(l.createElement(o,Object.assign({className:ne(n||p,a,d,f),ref:t},i)))}),iSe=l.forwardRef((e,t)=>{const{direction:n}=l.useContext(st),[r,a]=l.useState([]),{prefixCls:o,className:i,rootClassName:s,children:c,hasSider:u,tagName:d,style:f}=e,p=GG(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),g=On(p,["suffixCls"]),{getPrefixCls:h,layout:b}=l.useContext(st),y=h("layout",o),S=nSe(r,c,u),[v,x,w]=WG(y),C=ne(y,{[`${y}-has-sider`]:S,[`${y}-rtl`]:n==="rtl"},b==null?void 0:b.className,i,s,x,w),E=l.useMemo(()=>({siderHook:{addSider:I=>{a(T=>[].concat(Pe(T),[I]))},removeSider:I=>{a(T=>T.filter(R=>R!==I))}}}),[]);return v(l.createElement(zV.Provider,{value:E},l.createElement(d,Object.assign({ref:t,className:C,style:Object.assign(Object.assign({},b==null?void 0:b.style),f)},g),c)))}),sSe=ay({tagName:"div",displayName:"Layout"})(iSe),qG=ay({suffixCls:"header",tagName:"header",displayName:"Header"})(qO),KG=ay({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(qO),YG=ay({suffixCls:"content",tagName:"main",displayName:"Content"})(qO),qi=sSe;qi.Header=qG;qi.Footer=KG;qi.Content=YG;qi.Sider=V0;qi._InternalSiderContext=U0;const XG=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const a=n[r];a!==void 0&&(e[r]=a)})}return e};var lSe={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"},cSe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:lSe}))},xP=l.forwardRef(cSe),uSe={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"},dSe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:uSe}))},wP=l.forwardRef(dSe),fSe={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:"页码"},pSe=["10","20","50","100"],gSe=function(t){var n=t.pageSizeOptions,r=n===void 0?pSe:n,a=t.locale,o=t.changeSize,i=t.pageSize,s=t.goButton,c=t.quickGo,u=t.rootPrefixCls,d=t.selectComponentClass,f=t.selectPrefixCls,p=t.disabled,g=t.buildOptionText,h=se.useState(""),b=re(h,2),y=b[0],S=b[1],v=function(){return!y||Number.isNaN(y)?void 0:Number(y)},x=typeof g=="function"?g:function(A){return"".concat(A," ").concat(a.items_per_page)},w=function(O){o==null||o(Number(O))},C=function(O){S(O.target.value)},E=function(O){s||y===""||(S(""),!(O.relatedTarget&&(O.relatedTarget.className.indexOf("".concat(u,"-item-link"))>=0||O.relatedTarget.className.indexOf("".concat(u,"-item"))>=0))&&(c==null||c(v())))},I=function(O){y!==""&&(O.keyCode===Le.ENTER||O.type==="click")&&(S(""),c==null||c(v()))},T=function(){return r.some(function(O){return O.toString()===i.toString()})?r:r.concat([i.toString()]).sort(function(O,N){var k=Number.isNaN(Number(O))?0:Number(O),M=Number.isNaN(Number(N))?0:Number(N);return k-M})},R="".concat(u,"-options");if(!o&&!c)return null;var _=null,$=null,P=null;if(o&&d){var D=T().map(function(A,O){return se.createElement(d.Option,{key:O,value:A.toString()},x(A))});_=se.createElement(d,{disabled:p,prefixCls:f,showSearch:!1,className:"".concat(R,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(i||r[0]).toString(),onChange:w,getPopupContainer:function(O){return O.parentNode},"aria-label":a.page_size,defaultOpen:!1},D)}return c&&(s&&(P=typeof s=="boolean"?se.createElement("button",{type:"button",onClick:I,onKeyUp:I,disabled:p,className:"".concat(R,"-quick-jumper-button")},a.jump_to_confirm):se.createElement("span",{onClick:I,onKeyUp:I},s)),$=se.createElement("div",{className:"".concat(R,"-quick-jumper")},a.jump_to,se.createElement("input",{disabled:p,type:"text",value:y,onChange:C,onKeyUp:I,onBlur:E,"aria-label":a.page}),a.page,P)),se.createElement("li",{className:R},_,$)},Lf=function(t){var n,r=t.rootPrefixCls,a=t.page,o=t.active,i=t.className,s=t.showTitle,c=t.onClick,u=t.onKeyPress,d=t.itemRender,f="".concat(r,"-item"),p=ne(f,"".concat(f,"-").concat(a),(n={},W(n,"".concat(f,"-active"),o),W(n,"".concat(f,"-disabled"),!a),n),i),g=function(){c(a)},h=function(S){u(S,c,a)},b=d(a,"page",se.createElement("a",{rel:"nofollow"},a));return b?se.createElement("li",{title:s?String(a):null,className:p,onClick:g,onKeyDown:h,tabIndex:0},b):null},mSe=function(t,n,r){return r};function CP(){}function EP(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Bl(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var hSe=function(t){var n,r=t.prefixCls,a=r===void 0?"rc-pagination":r,o=t.selectPrefixCls,i=o===void 0?"rc-select":o,s=t.className,c=t.selectComponentClass,u=t.current,d=t.defaultCurrent,f=d===void 0?1:d,p=t.total,g=p===void 0?0:p,h=t.pageSize,b=t.defaultPageSize,y=b===void 0?10:b,S=t.onChange,v=S===void 0?CP:S,x=t.hideOnSinglePage,w=t.align,C=t.showPrevNextJumpers,E=C===void 0?!0:C,I=t.showQuickJumper,T=t.showLessItems,R=t.showTitle,_=R===void 0?!0:R,$=t.onShowSizeChange,P=$===void 0?CP:$,D=t.locale,A=D===void 0?fSe:D,O=t.style,N=t.totalBoundaryShowSizeChanger,k=N===void 0?50:N,M=t.disabled,L=t.simple,F=t.showTotal,j=t.showSizeChanger,B=t.pageSizeOptions,z=t.itemRender,H=z===void 0?mSe:z,V=t.jumpPrevIcon,te=t.jumpNextIcon,Y=t.prevIcon,J=t.nextIcon,G=se.useRef(null),U=sn(10,{value:h,defaultValue:y}),q=re(U,2),X=q[0],Q=q[1],ee=sn(1,{value:u,defaultValue:f,postState:function(_t){return Math.max(1,Math.min(_t,Bl(void 0,X,g)))}}),oe=re(ee,2),le=oe[0],fe=oe[1],ce=se.useState(le),Ie=re(ce,2),be=Ie[0],he=Ie[1];l.useEffect(function(){he(le)},[le]);var ae=Math.max(1,le-(T?3:5)),ie=Math.min(Bl(void 0,X,g),le+(T?3:5));function ue(It,_t){var kt=It||se.createElement("button",{type:"button","aria-label":_t,className:"".concat(a,"-item-link")});return typeof It=="function"&&(kt=se.createElement(It,Z({},t))),kt}function xe(It){var _t=It.target.value,kt=Bl(void 0,X,g),Tn;return _t===""?Tn=_t:Number.isNaN(Number(_t))?Tn=be:_t>=kt?Tn=kt:Tn=Number(_t),Tn}function we(It){return EP(It)&&It!==le&&EP(g)&&g>0}var Me=g>X?I:!1;function Ce(It){(It.keyCode===Le.UP||It.keyCode===Le.DOWN)&&It.preventDefault()}function De(It){var _t=xe(It);switch(_t!==be&&he(_t),It.keyCode){case Le.ENTER:$e(_t);break;case Le.UP:$e(_t-1);break;case Le.DOWN:$e(_t+1);break}}function ye(It){$e(xe(It))}function ve(It){var _t=Bl(It,X,g),kt=le>_t&&_t!==0?_t:le;Q(It),he(kt),P==null||P(le,It),fe(kt),v==null||v(kt,It)}function $e(It){if(we(It)&&!M){var _t=Bl(void 0,X,g),kt=It;return It>_t?kt=_t:It<1&&(kt=1),kt!==be&&he(kt),fe(kt),v==null||v(kt,X),kt}return le}var Ee=le>1,ge=lek;function Re(){Ee&&$e(le-1)}function me(){ge&&$e(le+1)}function _e(){$e(ae)}function Ze(){$e(ie)}function Oe(It,_t){if(It.key==="Enter"||It.charCode===Le.ENTER||It.keyCode===Le.ENTER){for(var kt=arguments.length,Tn=new Array(kt>2?kt-2:0),Qn=2;Qng?g:le*X])),ft=null,qe=Bl(void 0,X,g);if(x&&g<=X)return null;var We=[],Qe={rootPrefixCls:a,onClick:$e,onKeyPress:Oe,showTitle:_,itemRender:H,page:-1},ut=le-1>0?le-1:0,Rt=le+1=et*2&&le!==3&&(We[0]=se.cloneElement(We[0],{className:ne("".concat(a,"-item-after-jump-prev"),We[0].props.className)}),We.unshift(je)),qe-le>=et*2&&le!==qe-2){var bt=We[We.length-1];We[We.length-1]=se.cloneElement(bt,{className:ne("".concat(a,"-item-before-jump-next"),bt.props.className)}),We.push(ft)}at!==1&&We.unshift(se.createElement(Lf,pe({},Qe,{key:1,page:1}))),Ke!==qe&&We.push(se.createElement(Lf,pe({},Qe,{key:qe,page:qe})))}var Tt=He(ut);if(Tt){var Pt=!Ee||!qe;Tt=se.createElement("li",{title:_?A.prev_page:null,onClick:Re,tabIndex:Pt?null:0,onKeyDown:Se,className:ne("".concat(a,"-prev"),W({},"".concat(a,"-disabled"),Pt)),"aria-disabled":Pt},Tt)}var en=ze(Rt);if(en){var rn,Vt;L?(rn=!ge,Vt=Ee?0:null):(rn=!ge||!qe,Vt=rn?null:0),en=se.createElement("li",{title:_?A.next_page:null,onClick:me,tabIndex:Vt,onKeyDown:Ae,className:ne("".concat(a,"-next"),W({},"".concat(a,"-disabled"),rn)),"aria-disabled":rn},en)}var tn=ne(a,s,(n={},W(n,"".concat(a,"-start"),w==="start"),W(n,"".concat(a,"-center"),w==="center"),W(n,"".concat(a,"-end"),w==="end"),W(n,"".concat(a,"-simple"),L),W(n,"".concat(a,"-disabled"),M),n));return se.createElement("ul",pe({className:tn,style:O,ref:G},Je),gt,Tt,L?ot:We,en,se.createElement(gSe,{locale:A,rootPrefixCls:a,disabled:M,selectComponentClass:c,selectPrefixCls:i,changeSize:Ne?ve:null,pageSize:X,pageSizeOptions:B,quickGo:Me?$e:null,goButton:lt}))};const ZG=e=>l.createElement(Ar,Object.assign({},e,{showSearch:!0,size:"small"})),QG=e=>l.createElement(Ar,Object.assign({},e,{showSearch:!0,size:"middle"}));ZG.Option=Ar.Option;QG.Option=Ar.Option;const vSe=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},bSe=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:K(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:K(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:K(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[` &${t}-mini ${t}-prev ${t}-item-link, &${t}-mini ${t}-next ${t}-item-link - `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:K(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:K(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:K(e.itemSizeSM),input:Object.assign(Object.assign({},MO(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},ySe=e=>{const{componentCls:t}=e;return{[` + `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:K(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:K(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:K(e.itemSizeSM),input:Object.assign(Object.assign({},PO(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},ySe=e=>{const{componentCls:t}=e;return{[` &${t}-simple ${t}-prev, &${t}-simple ${t}-next `]:{height:e.itemSizeSM,lineHeight:K(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:K(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${K(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${K(e.inputOutlineOffset)} 0 ${K(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},SSe=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[` @@ -387,7 +387,7 @@ html body { ${t}-next, ${t}-jump-prev, ${t}-jump-next - `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:K(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${K(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:K(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},cm(e)),$O(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},Z0(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},xSe=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:K(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${K(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${K(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},wSe=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},nn(e)),{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:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:K(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),xSe(e)),SSe(e)),ySe(e)),bSe(e)),vSe(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},CSe=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},zi(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},ws(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},ws(e))}}}},JG=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},lm(e)),eq=e=>zt(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},sm(e)),ESe=on("Pagination",e=>{const t=eq(e);return[wSe(t),CSe(t)]},JG),ISe=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},TSe=Hd(["Pagination","bordered"],e=>{const t=eq(e);return[ISe(t)]},JG);var RSe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{align:t,prefixCls:n,selectPrefixCls:r,className:a,rootClassName:o,style:i,size:s,locale:c,selectComponentClass:u,responsive:d,showSizeChanger:f}=e,p=RSe(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:g}=L0(d),[,h]=ta(),{getPrefixCls:b,direction:y,pagination:S={}}=l.useContext(st),v=b("pagination",n),[x,C,w]=ESe(v),E=f??S.showSizeChanger,I=l.useMemo(()=>{const O=l.createElement("span",{className:`${v}-item-ellipsis`},"•••"),N=l.createElement("button",{className:`${v}-item-link`,type:"button",tabIndex:-1},y==="rtl"?l.createElement(Za,null):l.createElement(Ts,null)),k=l.createElement("button",{className:`${v}-item-link`,type:"button",tabIndex:-1},y==="rtl"?l.createElement(Ts,null):l.createElement(Za,null)),M=l.createElement("a",{className:`${v}-item-link`},l.createElement("div",{className:`${v}-item-container`},y==="rtl"?l.createElement(wP,{className:`${v}-item-link-icon`}):l.createElement(xP,{className:`${v}-item-link-icon`}),O)),L=l.createElement("a",{className:`${v}-item-link`},l.createElement("div",{className:`${v}-item-container`},y==="rtl"?l.createElement(xP,{className:`${v}-item-link-icon`}):l.createElement(wP,{className:`${v}-item-link-icon`}),O));return{prevIcon:N,nextIcon:k,jumpPrevIcon:M,jumpNextIcon:L}},[y,v]),[T]=qi("Pagination",dH),R=Object.assign(Object.assign({},T),c),_=Er(s),$=_==="small"||!!(g&&!_&&d),P=b("select",r),D=ne({[`${v}-${t}`]:!!t,[`${v}-mini`]:$,[`${v}-rtl`]:y==="rtl",[`${v}-bordered`]:h.wireframe},S==null?void 0:S.className,a,o,C,w),A=Object.assign(Object.assign({},S==null?void 0:S.style),i);return x(l.createElement(l.Fragment,null,h.wireframe&&l.createElement(TSe,{prefixCls:v}),l.createElement(hSe,Object.assign({},I,p,{style:A,prefixCls:v,selectPrefixCls:P,className:D,selectComponentClass:u||($?ZG:QG),locale:R,showSizeChanger:E}))))},xb=100,tq=xb/5,nq=xb/2-tq/2,h1=nq*2*Math.PI,IP=50,TP=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return l.createElement("circle",{className:ne(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:nq,cx:IP,cy:IP,strokeWidth:tq,style:n})},_Se=e=>{let{percent:t,prefixCls:n}=e;const r=`${n}-dot`,a=`${r}-holder`,o=`${a}-hidden`,[i,s]=l.useState(!1);Xt(()=>{t!==0&&s(!0)},[t!==0]);const c=Math.max(Math.min(t,100),0);if(!i)return null;const u={strokeDashoffset:`${h1/4}`,strokeDasharray:`${h1*c/100} ${h1*(100-c)/100}`};return l.createElement("span",{className:ne(a,`${r}-progress`,c<=0&&o)},l.createElement("svg",{viewBox:`0 0 ${xb} ${xb}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c},l.createElement(TP,{dotClassName:r,hasCircleCls:!0}),l.createElement(TP,{dotClassName:r,style:u})))};function $Se(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,a=`${r}-holder`,o=`${a}-hidden`;return l.createElement(l.Fragment,null,l.createElement("span",{className:ne(a,n>0&&o)},l.createElement("span",{className:ne(r,`${t}-dot-spin`)},[1,2,3,4].map(i=>l.createElement("i",{className:`${t}-dot-item`,key:i})))),l.createElement(_Se,{prefixCls:t,percent:n}))}function OSe(e){const{prefixCls:t,indicator:n,percent:r}=e,a=`${t}-dot`;return n&&l.isValidElement(n)?Cr(n,{className:ne(n.props.className,a),percent:r}):l.createElement($Se,{prefixCls:t,percent:r})}const NSe=new un("antSpinMove",{to:{opacity:1}}),kSe=new un("antRotate",{to:{transform:"rotate(405deg)"}}),ASe=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},nn(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",top:"50%",transform:"translate(-50%, -50%)",insetInlineStart:"50%"},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:NSe,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:kSe,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(r=>`${r} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},MSe=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},PSe=on("Spin",e=>{const t=zt(e,{spinDotDefault:e.colorTextDescription});return[ASe(t)]},MSe),DSe=200,RP=[[30,.05],[70,.03],[96,.01]];function LSe(e,t){const[n,r]=l.useState(0),a=l.useRef(),o=t==="auto";return l.useEffect(()=>(o&&e&&(r(0),a.current=setInterval(()=>{r(i=>{const s=100-i;for(let c=0;c{clearInterval(a.current)}),[o,e]),o?n:t}var FSe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var t;const{prefixCls:n,spinning:r=!0,delay:a=0,className:o,rootClassName:i,size:s="default",tip:c,wrapperClassName:u,style:d,children:f,fullscreen:p=!1,indicator:g,percent:h}=e,b=FSe(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:y,direction:S,spin:v}=l.useContext(st),x=y("spin",n),[C,w,E]=PSe(x),[I,T]=l.useState(()=>r&&!jSe(r,a)),R=LSe(I,h);l.useEffect(()=>{if(r){const N=Nhe(a,()=>{T(!0)});return N(),()=>{var k;(k=N==null?void 0:N.cancel)===null||k===void 0||k.call(N)}}T(!1)},[a,r]);const _=l.useMemo(()=>typeof f<"u"&&!p,[f,p]),$=ne(x,v==null?void 0:v.className,{[`${x}-sm`]:s==="small",[`${x}-lg`]:s==="large",[`${x}-spinning`]:I,[`${x}-show-text`]:!!c,[`${x}-rtl`]:S==="rtl"},o,!p&&i,w,E),P=ne(`${x}-container`,{[`${x}-blur`]:I}),D=(t=g??(v==null?void 0:v.indicator))!==null&&t!==void 0?t:rq,A=Object.assign(Object.assign({},v==null?void 0:v.style),d),O=l.createElement("div",Object.assign({},b,{style:A,className:$,"aria-live":"polite","aria-busy":I}),l.createElement(OSe,{prefixCls:x,indicator:D,percent:R}),c&&(_||p)?l.createElement("div",{className:`${x}-text`},c):null);return C(_?l.createElement("div",Object.assign({},b,{className:ne(`${x}-nested-loading`,u,w,E)}),I&&l.createElement("div",{key:"loading"},O),l.createElement("div",{className:P,key:"container"},f)):p?l.createElement("div",{className:ne(`${x}-fullscreen`,{[`${x}-fullscreen-show`]:I},i,w,E)},O):O)};KO.setDefaultIndicator=e=>{rq=e};const YO=se.createContext({});YO.Consumer;var aq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{prefixCls:t,className:n,avatar:r,title:a,description:o}=e,i=aq(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:s}=l.useContext(st),c=s("list",t),u=ne(`${c}-item-meta`,n),d=se.createElement("div",{className:`${c}-item-meta-content`},a&&se.createElement("h4",{className:`${c}-item-meta-title`},a),o&&se.createElement("div",{className:`${c}-item-meta-description`},o));return se.createElement("div",Object.assign({},i,{className:u}),r&&se.createElement("div",{className:`${c}-item-meta-avatar`},r),(a||o)&&d)},zSe=se.forwardRef((e,t)=>{const{prefixCls:n,children:r,actions:a,extra:o,styles:i,className:s,classNames:c,colStyle:u}=e,d=aq(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:f,itemLayout:p}=l.useContext(YO),{getPrefixCls:g,list:h}=l.useContext(st),b=I=>{var T,R;return ne((R=(T=h==null?void 0:h.item)===null||T===void 0?void 0:T.classNames)===null||R===void 0?void 0:R[I],c==null?void 0:c[I])},y=I=>{var T,R;return Object.assign(Object.assign({},(R=(T=h==null?void 0:h.item)===null||T===void 0?void 0:T.styles)===null||R===void 0?void 0:R[I]),i==null?void 0:i[I])},S=()=>{let I=!1;return l.Children.forEach(r,T=>{typeof T=="string"&&(I=!0)}),I&&l.Children.count(r)>1},v=()=>p==="vertical"?!!o:!S(),x=g("list",n),C=a&&a.length>0&&se.createElement("ul",{className:ne(`${x}-item-action`,b("actions")),key:"actions",style:y("actions")},a.map((I,T)=>se.createElement("li",{key:`${x}-item-action-${T}`},I,T!==a.length-1&&se.createElement("em",{className:`${x}-item-action-split`})))),w=f?"div":"li",E=se.createElement(w,Object.assign({},d,f?{}:{ref:t},{className:ne(`${x}-item`,{[`${x}-item-no-flex`]:!v()},s)}),p==="vertical"&&o?[se.createElement("div",{className:`${x}-item-main`,key:"content"},r,C),se.createElement("div",{className:ne(`${x}-item-extra`,b("extra")),key:"extra",style:y("extra")},o)]:[r,C,Cr(o,{key:"extra"})]);return f?se.createElement(En,{ref:t,flex:1,style:u},E):E}),nd=zSe;nd.Meta=BSe;const HSe=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:a,itemPaddingSM:o,itemPaddingLG:i,marginLG:s,borderRadiusLG:c}=e;return{[t]:{border:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:c,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${K(a)} ${K(s)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:o}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:i}}}},USe=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:a,marginSM:o,margin:i}=e;return{[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:a}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:a}}}},[`@media screen and (max-width: ${n}px)`]:{[t]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:o}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${K(i)}`}}}}}},VSe=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:a,paddingSM:o,marginLG:i,padding:s,itemPadding:c,colorPrimary:u,itemPaddingSM:d,itemPaddingLG:f,paddingXS:p,margin:g,colorText:h,colorTextDescription:b,motionDurationSlow:y,lineWidth:S,headerBg:v,footerBg:x,emptyTextPadding:C,metaMarginBottom:w,avatarMarginRight:E,titleMarginBottom:I,descriptionFontSize:T}=e;return{[t]:Object.assign(Object.assign({},nn(e)),{position:"relative","*":{outline:"none"},[`${t}-header`]:{background:v},[`${t}-footer`]:{background:x},[`${t}-header, ${t}-footer`]:{paddingBlock:o},[`${t}-pagination`]:{marginBlockStart:i,[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:a,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:c,color:h,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:E},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:h},[`${t}-item-meta-title`]:{margin:`0 0 ${K(e.marginXXS)} 0`,color:h,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:h,transition:`all ${y}`,"&:hover":{color:u}}},[`${t}-item-meta-description`]:{color:b,fontSize:T,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${K(p)}`,color:b,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:S,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${K(s)} 0`,color:b,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:C,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:g,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:i},[`${t}-item-meta`]:{marginBlockEnd:w,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:I,color:h,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:s,marginInlineStart:"auto","> li":{padding:`0 ${K(s)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${K(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${K(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${K(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${K(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:f},[`${t}-sm ${t}-item`]:{padding:d},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},WSe=e=>({contentWidth:220,itemPadding:`${K(e.paddingContentVertical)} 0`,itemPaddingSM:`${K(e.paddingContentVerticalSM)} ${K(e.paddingContentHorizontal)}`,itemPaddingLG:`${K(e.paddingContentVerticalLG)} ${K(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),GSe=on("List",e=>{const t=zt(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[VSe(t),HSe(t),USe(t)]},WSe);var qSe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a(ve,ae)=>{var ie;I(ve),R(ae),t&&((ie=t==null?void 0:t[Se])===null||ie===void 0||ie.call(t,ve,ae))},N=O("onChange"),k=O("onShowSizeChange"),M=(Se,ve)=>{if(!v)return null;let ae;return typeof S=="function"?ae=S(Se):S?ae=Se[S]:ae=Se.key,ae||(ae=`list-item-${ve}`),l.createElement(l.Fragment,{key:ae},v(Se,ve))},L=()=>!!(d||t||b),F=_("list",n),[j,B,z]=GSe(F);let H=y;typeof H=="boolean"&&(H={spinning:H});const V=!!(H!=null&&H.spinning),te=Er(g);let Y="";switch(te){case"large":Y="lg";break;case"small":Y="sm";break}const J=ne(F,{[`${F}-vertical`]:u==="vertical",[`${F}-${Y}`]:Y,[`${F}-split`]:a,[`${F}-bordered`]:r,[`${F}-loading`]:V,[`${F}-grid`]:!!f,[`${F}-something-after-last-item`]:L(),[`${F}-rtl`]:P==="rtl"},D==null?void 0:D.className,o,i,B,z),G=XG(A,{total:p.length,current:E,pageSize:T},t||{}),U=Math.ceil(G.total/G.pageSize);G.current>U&&(G.current=U);const q=t&&l.createElement("div",{className:ne(`${F}-pagination`)},l.createElement(qO,Object.assign({align:"end"},G,{onChange:N,onShowSizeChange:k})));let X=De(p);t&&p.length>(G.current-1)*G.pageSize&&(X=De(p).splice((G.current-1)*G.pageSize,G.pageSize));const Q=Object.keys(f||{}).some(Se=>["xs","sm","md","lg","xl","xxl"].includes(Se)),ee=L0(Q),oe=l.useMemo(()=>{for(let Se=0;Se{if(!f)return;const Se=oe&&f[oe]?f[oe]:f.column;if(Se)return{width:`${100/Se}%`,maxWidth:`${100/Se}%`}},[JSON.stringify(f),oe]);let fe=V&&l.createElement("div",{style:{minHeight:53}});if(X.length>0){const Se=X.map((ve,ae)=>M(ve,ae));fe=f?l.createElement($a,{gutter:f.gutter},l.Children.map(Se,ve=>l.createElement("div",{key:ve==null?void 0:ve.key,style:le},ve))):l.createElement("ul",{className:`${F}-items`},Se)}else!c&&!V&&(fe=l.createElement("div",{className:`${F}-empty-text`},(x==null?void 0:x.emptyText)||($==null?void 0:$("List"))||l.createElement(P0,{componentName:"List"})));const ce=G.position||"bottom",Te=l.useMemo(()=>({grid:f,itemLayout:u}),[JSON.stringify(f),u]);return j(l.createElement(YO.Provider,{value:Te},l.createElement("div",Object.assign({style:Object.assign(Object.assign({},D==null?void 0:D.style),s),className:J},C),(ce==="top"||ce==="both")&&q,h&&l.createElement("div",{className:`${F}-header`},h),l.createElement(KO,Object.assign({},H),fe,c),b&&l.createElement("div",{className:`${F}-footer`},b),d||(ce==="bottom"||ce==="both")&&q)))}xl.Item=nd;let ko=null,tc=e=>e(),mg=[],hg={};function _P(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:a}=hg,o=(e==null?void 0:e())||document.body;return{getContainer:()=>o,duration:t,rtl:n,maxCount:r,top:a}}const KSe=se.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:a}=l.useContext(st),o=hg.prefixCls||a("message"),i=l.useContext(zce),[s,c]=eU(Object.assign(Object.assign(Object.assign({},n),{prefixCls:o}),i.message));return se.useImperativeHandle(t,()=>{const u=Object.assign({},s);return Object.keys(u).forEach(d=>{u[d]=function(){return r(),s[d].apply(s,arguments)}}),{instance:u,sync:r}}),c}),YSe=se.forwardRef((e,t)=>{const[n,r]=se.useState(_P),a=()=>{r(_P)};se.useEffect(a,[]);const o=zH(),i=o.getRootPrefixCls(),s=o.getIconPrefixCls(),c=o.getTheme(),u=se.createElement(KSe,{ref:t,sync:a,messageConfig:n});return se.createElement(yi,{prefixCls:i,iconPrefixCls:s,theme:c},o.holderRender?o.holderRender(u):u)});function ay(){if(!ko){const e=document.createDocumentFragment(),t={fragment:e};ko=t,tc(()=>{X$(se.createElement(YSe,{ref:n=>{const{instance:r,sync:a}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=a,ay())})}}),e)});return}ko.instance&&(mg.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{tc(()=>{const r=ko.instance.open(Object.assign(Object.assign({},hg),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":tc(()=>{ko==null||ko.instance.destroy(e.key)});break;default:tc(()=>{var r;const a=(r=ko.instance)[t].apply(r,De(e.args));a==null||a.then(e.resolve),e.setCloseFn(a)})}}),mg=[])}function XSe(e){hg=Object.assign(Object.assign({},hg),e),tc(()=>{var t;(t=ko==null?void 0:ko.sync)===null||t===void 0||t.call(ko)})}function ZSe(e){const t=Y$(n=>{let r;const a={type:"open",config:e,resolve:n,setCloseFn:o=>{r=o}};return mg.push(a),()=>{r?tc(()=>{r()}):a.skipped=!0}});return ay(),t}function QSe(e,t){const n=Y$(r=>{let a;const o={type:e,args:t,resolve:r,setCloseFn:i=>{a=i}};return mg.push(o),()=>{a?tc(()=>{a()}):o.skipped=!0}});return ay(),n}const JSe=e=>{mg.push({type:"destroy",key:e}),ay()},e1e=["success","info","warning","error","loading"],t1e={open:ZSe,destroy:JSe,config:XSe,useMessage:xie,_InternalPanelDoNotUseOrYouWillBeFired:pie},Xe=t1e;e1e.forEach(e=>{Xe[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r{const{prefixCls:t,className:n,closeIcon:r,closable:a,type:o,title:i,children:s,footer:c}=e,u=n1e(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:d}=l.useContext(st),f=d(),p=t||d("modal"),g=Un(f),[h,b,y]=DU(p,g),S=`${p}-confirm`;let v={};return o?v={closable:a??!1,title:"",footer:"",children:l.createElement(FU,Object.assign({},e,{prefixCls:p,confirmPrefixCls:S,rootPrefixCls:f,content:s}))}:v={closable:a??!0,title:i,footer:c!==null&&l.createElement(kU,Object.assign({},e)),children:s},h(l.createElement(vU,Object.assign({prefixCls:p,className:ne(b,`${p}-pure-panel`,o&&S,o&&`${S}-${o}`,n,y,g)},u,{closeIcon:NU(p,r),closable:a},v)))},a1e=qU(r1e);function oq(e){return Qg(HU(e))}const Sn=LU;Sn.useModal=Bce;Sn.info=function(t){return Qg(UU(t))};Sn.success=function(t){return Qg(VU(t))};Sn.error=function(t){return Qg(WU(t))};Sn.warning=oq;Sn.warn=oq;Sn.confirm=function(t){return Qg(GU(t))};Sn.destroyAll=function(){for(;Jl.length;){const t=Jl.pop();t&&t()}};Sn.config=Pce;Sn._InternalPanelDoNotUseOrYouWillBeFired=a1e;var o1e={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},i1e=function(){var t=l.useRef([]),n=l.useRef(null);return l.useEffect(function(){var r=Date.now(),a=!1;t.current.forEach(function(o){if(o){a=!0;var i=o.style;i.transitionDuration=".3s, .3s, .3s, .06s",n.current&&r-n.current<100&&(i.transitionDuration="0s, 0s")}}),a&&(n.current=Date.now())}),t.current},$P=0,s1e=Xr();function l1e(){var e;return s1e?(e=$P,$P+=1):e="TEST_OR_SSR",e}const c1e=function(e){var t=l.useState(),n=re(t,2),r=n[0],a=n[1];return l.useEffect(function(){a("rc_progress_".concat(l1e()))},[]),e||r};var OP=function(t){var n=t.bg,r=t.children;return l.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function NP(e,t){return Object.keys(e).map(function(n){var r=parseFloat(n),a="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(a)})}var u1e=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,a=e.gradientId,o=e.radius,i=e.style,s=e.ptg,c=e.strokeLinecap,u=e.strokeWidth,d=e.size,f=e.gapDegree,p=r&&ht(r)==="object",g=p?"#FFF":void 0,h=d/2,b=l.createElement("circle",{className:"".concat(n,"-circle-path"),r:o,cx:h,cy:h,stroke:g,strokeLinecap:c,strokeWidth:u,opacity:s===0?0:1,style:i,ref:t});if(!p)return b;var y="".concat(a,"-conic"),S=f?"".concat(180+f/2,"deg"):"0deg",v=NP(r,(360-f)/360),x=NP(r,1),C="conic-gradient(from ".concat(S,", ").concat(v.join(", "),")"),w="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(x.join(", "),")");return l.createElement(l.Fragment,null,l.createElement("mask",{id:y},b),l.createElement("foreignObject",{x:0,y:0,width:d,height:d,mask:"url(#".concat(y,")")},l.createElement(OP,{bg:w},l.createElement(OP,{bg:C}))))}),Xf=100,v1=function(t,n,r,a,o,i,s,c,u,d){var f=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,p=r/100*360*((360-i)/360),g=i===0?0:{bottom:0,top:180,left:90,right:-90}[s],h=(100-a)/100*n;u==="round"&&a!==100&&(h+=d/2,h>=n&&(h=n-.01));var b=Xf/2;return{stroke:typeof c=="string"?c:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:h+f,transform:"rotate(".concat(o+p+g,"deg)"),transformOrigin:"".concat(b,"px ").concat(b,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},d1e=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function kP(e){var t=e??[];return Array.isArray(t)?t:[t]}var f1e=function(t){var n=Z(Z({},o1e),t),r=n.id,a=n.prefixCls,o=n.steps,i=n.strokeWidth,s=n.trailWidth,c=n.gapDegree,u=c===void 0?0:c,d=n.gapPosition,f=n.trailColor,p=n.strokeLinecap,g=n.style,h=n.className,b=n.strokeColor,y=n.percent,S=xt(n,d1e),v=Xf/2,x=c1e(r),C="".concat(x,"-gradient"),w=v-i/2,E=Math.PI*2*w,I=u>0?90+u/2:-90,T=E*((360-u)/360),R=ht(o)==="object"?o:{count:o,gap:2},_=R.count,$=R.gap,P=kP(y),D=kP(b),A=D.find(function(j){return j&&ht(j)==="object"}),O=A&&ht(A)==="object",N=O?"butt":p,k=v1(E,T,0,100,I,u,d,f,N,i),M=i1e(),L=function(){var B=0;return P.map(function(z,H){var V=D[H]||D[D.length-1],te=v1(E,T,B,z,I,u,d,V,N,i);return B+=z,l.createElement(u1e,{key:H,color:V,ptg:z,radius:w,prefixCls:a,gradientId:C,style:te,strokeLinecap:N,strokeWidth:i,gapDegree:u,ref:function(J){M[H]=J},size:Xf})}).reverse()},F=function(){var B=Math.round(_*(P[0]/100)),z=100/_,H=0;return new Array(_).fill(null).map(function(V,te){var Y=te<=B-1?D[0]:f,J=Y&&ht(Y)==="object"?"url(#".concat(C,")"):void 0,G=v1(E,T,H,z,I,u,d,Y,"butt",i,$);return H+=(T-G.strokeDashoffset+$)*100/T,l.createElement("circle",{key:te,className:"".concat(a,"-circle-path"),r:w,cx:v,cy:v,stroke:J,strokeWidth:i,opacity:1,style:G,ref:function(q){M[te]=q}})})};return l.createElement("svg",pe({className:ne("".concat(a,"-circle"),h),viewBox:"0 0 ".concat(Xf," ").concat(Xf),style:g,id:r,role:"presentation"},S),!_&&l.createElement("circle",{className:"".concat(a,"-circle-trail"),r:w,cx:v,cy:v,stroke:f,strokeLinecap:N,strokeWidth:s||i,style:k}),_?F():L())};function fl(e){return!e||e<0?0:e>100?100:e}function wb(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}const p1e=e=>{let{percent:t,success:n,successPercent:r}=e;const a=fl(wb({success:n,successPercent:r}));return[a,fl(fl(t)-a)]},g1e=e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||Ju.green,n||null]},oy=(e,t,n)=>{var r,a,o,i;let s=-1,c=-1;if(t==="step"){const u=n.steps,d=n.strokeWidth;typeof e=="string"||typeof e>"u"?(s=e==="small"?2:14,c=d??8):typeof e=="number"?[s,c]=[e,e]:[s=14,c=8]=Array.isArray(e)?e:[e.width,e.height],s*=u}else if(t==="line"){const u=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?c=u||(e==="small"?6:8):typeof e=="number"?[s,c]=[e,e]:[s=-1,c=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[s,c]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[s,c]=[e,e]:Array.isArray(e)&&(s=(a=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&a!==void 0?a:120,c=(i=(o=e[0])!==null&&o!==void 0?o:e[1])!==null&&i!==void 0?i:120));return[s,c]},m1e=3,h1e=e=>m1e/e*100,v1e=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:a,gapDegree:o,width:i=120,type:s,children:c,success:u,size:d=i,steps:f}=e,[p,g]=oy(d,"circle");let{strokeWidth:h}=e;h===void 0&&(h=Math.max(h1e(p),6));const b={width:p,height:g,fontSize:p*.15+6},y=l.useMemo(()=>{if(o||o===0)return o;if(s==="dashboard")return 75},[o,s]),S=p1e(e),v=a||s==="dashboard"&&"bottom"||void 0,x=Object.prototype.toString.call(e.strokeColor)==="[object Object]",C=g1e({success:u,strokeColor:e.strokeColor}),w=ne(`${t}-inner`,{[`${t}-circle-gradient`]:x}),E=l.createElement(f1e,{steps:f,percent:f?S[1]:S,strokeWidth:h,trailWidth:h,strokeColor:f?C[1]:C,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:y,gapPosition:v}),I=p<=20,T=l.createElement("div",{className:w,style:b},E,!I&&c);return I?l.createElement(Zt,{title:c},T):T},Cb="--progress-line-stroke-color",iq="--progress-percent",AP=e=>{const t=e?"100%":"-100%";return new un(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},b1e=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},nn(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${Cb})`]},height:"100%",width:`calc(1 / var(${iq}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${K(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:AP(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:AP(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},y1e=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},S1e=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},x1e=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},w1e=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),C1e=on("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=zt(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[b1e(n),y1e(n),S1e(n),x1e(n)]},w1e);var E1e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{let t=[];return Object.keys(e).forEach(n=>{const r=parseFloat(n.replace(/%/g,""));isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(n=>{let{key:r,value:a}=n;return`${a} ${r}%`}).join(", ")},T1e=(e,t)=>{const{from:n=Ju.blue,to:r=Ju.blue,direction:a=t==="rtl"?"to left":"to right"}=e,o=E1e(e,["from","to","direction"]);if(Object.keys(o).length!==0){const s=I1e(o),c=`linear-gradient(${a}, ${s})`;return{background:c,[Cb]:c}}const i=`linear-gradient(${a}, ${n}, ${r})`;return{background:i,[Cb]:i}},R1e=e=>{const{prefixCls:t,direction:n,percent:r,size:a,strokeWidth:o,strokeColor:i,strokeLinecap:s="round",children:c,trailColor:u=null,percentPosition:d,success:f}=e,{align:p,type:g}=d,h=i&&typeof i!="string"?T1e(i,n):{[Cb]:i,background:i},b=s==="square"||s==="butt"?0:void 0,y=a??[-1,o||(a==="small"?6:8)],[S,v]=oy(y,"line",{strokeWidth:o}),x={backgroundColor:u||void 0,borderRadius:b},C=Object.assign(Object.assign({width:`${fl(r)}%`,height:v,borderRadius:b},h),{[iq]:fl(r)/100}),w=wb(e),E={width:`${fl(w)}%`,height:v,borderRadius:b,backgroundColor:f==null?void 0:f.strokeColor},I={width:S<0?"100%":S},T=l.createElement("div",{className:`${t}-inner`,style:x},l.createElement("div",{className:ne(`${t}-bg`,`${t}-bg-${g}`),style:C},g==="inner"&&c),w!==void 0&&l.createElement("div",{className:`${t}-success-bg`,style:E})),R=g==="outer"&&p==="start",_=g==="outer"&&p==="end";return g==="outer"&&p==="center"?l.createElement("div",{className:`${t}-layout-bottom`},T,c):l.createElement("div",{className:`${t}-outer`,style:I},R&&c,T,_&&c)},_1e=e=>{const{size:t,steps:n,percent:r=0,strokeWidth:a=8,strokeColor:o,trailColor:i=null,prefixCls:s,children:c}=e,u=Math.round(n*(r/100)),f=t??[t==="small"?2:14,a],[p,g]=oy(f,"step",{steps:n,strokeWidth:a}),h=p/n,b=new Array(n);for(let y=0;y{const{prefixCls:n,className:r,rootClassName:a,steps:o,strokeColor:i,percent:s=0,size:c="default",showInfo:u=!0,type:d="line",status:f,format:p,style:g,percentPosition:h={}}=e,b=$1e(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:y="end",type:S="outer"}=h,v=Array.isArray(i)?i[0]:i,x=typeof i=="string"||Array.isArray(i)?i:void 0,C=l.useMemo(()=>{if(v){const L=typeof v=="string"?v:Object.values(v)[0];return new an(L).isLight()}return!1},[i]),w=l.useMemo(()=>{var L,F;const j=wb(e);return parseInt(j!==void 0?(L=j??0)===null||L===void 0?void 0:L.toString():(F=s??0)===null||F===void 0?void 0:F.toString(),10)},[s,e.success,e.successPercent]),E=l.useMemo(()=>!O1e.includes(f)&&w>=100?"success":f||"normal",[f,w]),{getPrefixCls:I,direction:T,progress:R}=l.useContext(st),_=I("progress",n),[$,P,D]=C1e(_),A=d==="line",O=A&&!o,N=l.useMemo(()=>{if(!u)return null;const L=wb(e);let F;const j=p||(z=>`${z}%`),B=A&&C&&S==="inner";return S==="inner"||p||E!=="exception"&&E!=="success"?F=j(fl(s),fl(L)):E==="exception"?F=A?l.createElement(Pc,null):l.createElement(Jr,null):E==="success"&&(F=A?l.createElement(Ug,null):l.createElement(nm,null)),l.createElement("span",{className:ne(`${_}-text`,{[`${_}-text-bright`]:B,[`${_}-text-${y}`]:O,[`${_}-text-${S}`]:O}),title:typeof F=="string"?F:void 0},F)},[u,s,w,E,d,_,p]);let k;d==="line"?k=o?l.createElement(_1e,Object.assign({},e,{strokeColor:x,prefixCls:_,steps:typeof o=="object"?o.count:o}),N):l.createElement(R1e,Object.assign({},e,{strokeColor:v,prefixCls:_,direction:T,percentPosition:{align:y,type:S}}),N):(d==="circle"||d==="dashboard")&&(k=l.createElement(v1e,Object.assign({},e,{strokeColor:v,prefixCls:_,progressStatus:E}),N));const M=ne(_,`${_}-status-${E}`,{[`${_}-${d==="dashboard"&&"circle"||d}`]:d!=="line",[`${_}-inline-circle`]:d==="circle"&&oy(c,"circle")[0]<=20,[`${_}-line`]:O,[`${_}-line-align-${y}`]:O,[`${_}-line-position-${S}`]:O,[`${_}-steps`]:o,[`${_}-show-info`]:u,[`${_}-${c}`]:typeof c=="string",[`${_}-rtl`]:T==="rtl"},R==null?void 0:R.className,r,a,P,D);return $(l.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},R==null?void 0:R.style),g),className:M,role:"progressbar","aria-valuenow":w,"aria-valuemin":0,"aria-valuemax":100},On(b,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),k))});var N1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M855 160.1l-189.2 23.5c-6.6.8-9.3 8.8-4.7 13.5l54.7 54.7-153.5 153.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l153.6-153.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L863.9 169a7.9 7.9 0 00-8.9-8.9zM416.6 562.3a8.03 8.03 0 00-11.3 0L251.8 715.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L160.1 855c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 153.6-153.6c3.1-3.1 3.1-8.2 0-11.3l-45.2-45z"}}]},name:"arrows-alt",theme:"outlined"},k1e=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:N1e}))},A1e=l.forwardRef(k1e),M1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-260 72h96v209.9L621.5 312 572 347.4V136zm220 752H232V136h280v296.9c0 3.3 1 6.6 3 9.3a15.9 15.9 0 0022.3 3.7l83.8-59.9 81.4 59.4c2.7 2 6 3.1 9.4 3.1 8.8 0 16-7.2 16-16V136h64v752z"}}]},name:"book",theme:"outlined"},P1e=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:M1e}))},D1e=l.forwardRef(P1e),L1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M740 161c-61.8 0-112 50.2-112 112 0 50.1 33.1 92.6 78.5 106.9v95.9L320 602.4V318.1c44.2-15 76-56.9 76-106.1 0-61.8-50.2-112-112-112s-112 50.2-112 112c0 49.2 31.8 91 76 106.1V706c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c0-49.2-31.8-91-76-106.1v-27.8l423.5-138.7a50.52 50.52 0 0034.9-48.2V378.2c42.9-15.8 73.6-57 73.6-105.2 0-61.8-50.2-112-112-112zm-504 51a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm96 600a48.01 48.01 0 01-96 0 48.01 48.01 0 0196 0zm408-491a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"branches",theme:"outlined"},F1e=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:L1e}))},j1e=l.forwardRef(F1e),B1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M632 888H392c-4.4 0-8 3.6-8 8v32c0 17.7 14.3 32 32 32h192c17.7 0 32-14.3 32-32v-32c0-4.4-3.6-8-8-8zM512 64c-181.1 0-328 146.9-328 328 0 121.4 66 227.4 164 284.1V792c0 17.7 14.3 32 32 32h264c17.7 0 32-14.3 32-32V676.1c98-56.7 164-162.7 164-284.1 0-181.1-146.9-328-328-328zm127.9 549.8L604 634.6V752H420V634.6l-35.9-20.8C305.4 568.3 256 484.5 256 392c0-141.4 114.6-256 256-256s256 114.6 256 256c0 92.5-49.4 176.3-128.1 221.8z"}}]},name:"bulb",theme:"outlined"},z1e=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:B1e}))},H1e=l.forwardRef(z1e),U1e={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"},V1e=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:U1e}))},W1e=l.forwardRef(V1e),G1e={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"},q1e=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:G1e}))},K1e=l.forwardRef(q1e),Y1e={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"},X1e=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Y1e}))},Z1e=l.forwardRef(X1e),Q1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{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"}}]},name:"check-circle",theme:"outlined"},J1e=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Q1e}))},MR=l.forwardRef(J1e),exe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M433.1 657.7a31.8 31.8 0 0051.7 0l210.6-292c3.8-5.3 0-12.7-6.5-12.7H642c-10.2 0-19.9 4.9-25.9 13.3L459 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H315c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.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:"check-square",theme:"outlined"},txe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:exe}))},PR=l.forwardRef(txe),nxe={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 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},rxe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:nxe}))},MP=l.forwardRef(rxe),axe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M704 446H320c-4.4 0-8 3.6-8 8v402c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8V454c0-4.4-3.6-8-8-8zm-328 64h272v117H376V510zm272 290H376V683h272v117z"}},{tag:"path",attrs:{d:"M424 748a32 32 0 1064 0 32 32 0 10-64 0zm0-178a32 32 0 1064 0 32 32 0 10-64 0z"}},{tag:"path",attrs:{d:"M811.4 368.9C765.6 248 648.9 162 512.2 162S258.8 247.9 213 368.8C126.9 391.5 63.5 470.2 64 563.6 64.6 668 145.6 752.9 247.6 762c4.7.4 8.7-3.3 8.7-8v-60.4c0-4-3-7.4-7-7.9-27-3.4-52.5-15.2-72.1-34.5-24-23.5-37.2-55.1-37.2-88.6 0-28 9.1-54.4 26.2-76.4 16.7-21.4 40.2-36.9 66.1-43.7l37.9-10 13.9-36.7c8.6-22.8 20.6-44.2 35.7-63.5 14.9-19.2 32.6-36 52.4-50 41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.3c19.9 14 37.5 30.8 52.4 50 15.1 19.3 27.1 40.7 35.7 63.5l13.8 36.6 37.8 10c54.2 14.4 92.1 63.7 92.1 120 0 33.6-13.2 65.1-37.2 88.6-19.5 19.2-44.9 31.1-71.9 34.5-4 .5-6.9 3.9-6.9 7.9V754c0 4.7 4.1 8.4 8.8 8 101.7-9.2 182.5-94 183.2-198.2.6-93.4-62.7-172.1-148.6-194.9z"}}]},name:"cloud-server",theme:"outlined"},oxe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:axe}))},ixe=l.forwardRef(oxe),sxe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M811.4 368.9C765.6 248 648.9 162 512.2 162S258.8 247.9 213 368.8C126.9 391.5 63.5 470.2 64 563.6 64.6 668 145.6 752.9 247.6 762c4.7.4 8.7-3.3 8.7-8v-60.4c0-4-3-7.4-7-7.9-27-3.4-52.5-15.2-72.1-34.5-24-23.5-37.2-55.1-37.2-88.6 0-28 9.1-54.4 26.2-76.4 16.7-21.4 40.2-36.9 66.1-43.7l37.9-10 13.9-36.7c8.6-22.8 20.6-44.2 35.7-63.5 14.9-19.2 32.6-36 52.4-50 41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.3c19.9 14 37.5 30.8 52.4 50 15.1 19.3 27.1 40.7 35.7 63.5l13.8 36.6 37.8 10c54.2 14.4 92.1 63.7 92.1 120 0 33.6-13.2 65.1-37.2 88.6-19.5 19.2-44.9 31.1-71.9 34.5-4 .5-6.9 3.9-6.9 7.9V754c0 4.7 4.1 8.4 8.8 8 101.7-9.2 182.5-94 183.2-198.2.6-93.4-62.7-172.1-148.6-194.9z"}},{tag:"path",attrs:{d:"M376.9 656.4c1.8-33.5 15.7-64.7 39.5-88.6 25.4-25.5 60-39.8 96-39.8 36.2 0 70.3 14.1 96 39.8 1.4 1.4 2.7 2.8 4.1 4.3l-25 19.6a8 8 0 003 14.1l98.2 24c5 1.2 9.9-2.6 9.9-7.7l.5-101.3c0-6.7-7.6-10.5-12.9-6.3L663 532.7c-36.6-42-90.4-68.6-150.5-68.6-107.4 0-195 85.1-199.4 191.7-.2 4.5 3.4 8.3 8 8.3H369c4.2-.1 7.7-3.4 7.9-7.7zM703 664h-47.9c-4.2 0-7.7 3.3-8 7.6-1.8 33.5-15.7 64.7-39.5 88.6-25.4 25.5-60 39.8-96 39.8-36.2 0-70.3-14.1-96-39.8-1.4-1.4-2.7-2.8-4.1-4.3l25-19.6a8 8 0 00-3-14.1l-98.2-24c-5-1.2-9.9 2.6-9.9 7.7l-.4 101.4c0 6.7 7.6 10.5 12.9 6.3l23.2-18.2c36.6 42 90.4 68.6 150.5 68.6 107.4 0 195-85.1 199.4-191.7.2-4.5-3.4-8.3-8-8.3z"}}]},name:"cloud-sync",theme:"outlined"},lxe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:sxe}))},DR=l.forwardRef(lxe),cxe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M518.3 459a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-upload",theme:"outlined"},uxe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:cxe}))},dxe=l.forwardRef(uxe),fxe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48zm-194.9 6.1l192-161c3.8-3.2 3.8-9.1 0-12.3l-192-160.9A7.95 7.95 0 00308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 00-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM880 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:"code",theme:"outlined"},pxe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:fxe}))},XO=l.forwardRef(pxe),gxe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M573 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40zm-280 0c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40z"}},{tag:"path",attrs:{d:"M894 345a343.92 343.92 0 00-189-130v.1c-17.1-19-36.4-36.5-58-52.1-163.7-119-393.5-82.7-513 81-96.3 133-92.2 311.9 6 439l.8 132.6c0 3.2.5 6.4 1.5 9.4a31.95 31.95 0 0040.1 20.9L309 806c33.5 11.9 68.1 18.7 102.5 20.6l-.5.4c89.1 64.9 205.9 84.4 313 49l127.1 41.4c3.2 1 6.5 1.6 9.9 1.6 17.7 0 32-14.3 32-32V753c88.1-119.6 90.4-284.9 1-408zM323 735l-12-5-99 31-1-104-8-9c-84.6-103.2-90.2-251.9-11-361 96.4-132.2 281.2-161.4 413-66 132.2 96.1 161.5 280.6 66 412-80.1 109.9-223.5 150.5-348 102zm505-17l-8 10 1 104-98-33-12 5c-56 20.8-115.7 22.5-171 7l-.2-.1A367.31 367.31 0 00729 676c76.4-105.3 88.8-237.6 44.4-350.4l.6.4c23 16.5 44.1 37.1 62 62 72.6 99.6 68.5 235.2-8 330z"}},{tag:"path",attrs:{d:"M433 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40z"}}]},name:"comment",theme:"outlined"},mxe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:gxe}))},hxe=l.forwardRef(mxe),vxe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-40 824H232V687h97.9c11.6 32.8 32 62.3 59.1 84.7 34.5 28.5 78.2 44.3 123 44.3s88.5-15.7 123-44.3c27.1-22.4 47.5-51.9 59.1-84.7H792v-63H643.6l-5.2 24.7C626.4 708.5 573.2 752 512 752s-114.4-43.5-126.5-103.3l-5.2-24.7H232V136h560v752zM320 341h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 160h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}}]},name:"container",theme:"outlined"},bxe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:vxe}))},yxe=l.forwardRef(bxe),Sxe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},xxe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Sxe}))},ZO=l.forwardRef(xxe),wxe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},Cxe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:wxe}))},Ed=l.forwardRef(Cxe),Exe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M632 698.3l141.9-112a8 8 0 000-12.6L632 461.7c-5.3-4.2-13-.4-13 6.3v76H295c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h324v76c0 6.7 7.8 10.4 13 6.3zm261.3-405L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v278c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V422c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-83.5c0-17-6.7-33.2-18.7-45.2zM640 288H384V184h256v104zm264 436h-56c-4.4 0-8 3.6-8 8v108H184V732c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v148c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V732c0-4.4-3.6-8-8-8z"}}]},name:"delivered-procedure",theme:"outlined"},Ixe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Exe}))},Zf=l.forwardRef(Ixe),Txe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888.3 693.2c-42.5-24.6-94.3-18-129.2 12.8l-53-30.7V523.6c0-15.7-8.4-30.3-22-38.1l-136-78.3v-67.1c44.2-15 76-56.8 76-106.1 0-61.9-50.1-112-112-112s-112 50.1-112 112c0 49.3 31.8 91.1 76 106.1v67.1l-136 78.3c-13.6 7.8-22 22.4-22 38.1v151.6l-53 30.7c-34.9-30.8-86.8-37.4-129.2-12.8-53.5 31-71.7 99.4-41 152.9 30.8 53.5 98.9 71.9 152.2 41 42.5-24.6 62.7-73 53.6-118.8l48.7-28.3 140.6 81c6.8 3.9 14.4 5.9 22 5.9s15.2-2 22-5.9L674.5 740l48.7 28.3c-9.1 45.7 11.2 94.2 53.6 118.8 53.3 30.9 121.5 12.6 152.2-41 30.8-53.6 12.6-122-40.7-152.9zm-673 138.4a47.6 47.6 0 01-65.2-17.6c-13.2-22.9-5.4-52.3 17.5-65.5a47.6 47.6 0 0165.2 17.6c13.2 22.9 5.4 52.3-17.5 65.5zM522 463.8zM464 234a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm170 446.2l-122 70.3-122-70.3V539.8l122-70.3 122 70.3v140.4zm239.9 133.9c-13.2 22.9-42.4 30.8-65.2 17.6-22.8-13.2-30.7-42.6-17.5-65.5s42.4-30.8 65.2-17.6c22.9 13.2 30.7 42.5 17.5 65.5z"}}]},name:"deployment-unit",theme:"outlined"},Rxe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Txe}))},_xe=l.forwardRef(Rxe),$xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},Oxe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:$xe}))},QO=l.forwardRef(Oxe),Nxe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},kxe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Nxe}))},vg=l.forwardRef(kxe),Axe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},Mxe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Axe}))},Pxe=l.forwardRef(Mxe),Dxe={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 42h216v494zM544 472c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v108H372c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h108v108c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V644h108c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V472z"}}]},name:"file-add",theme:"outlined"},Lxe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Dxe}))},Fxe=l.forwardRef(Lxe),jxe={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"},Bxe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:jxe}))},sq=l.forwardRef(Bxe),zxe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm144 452H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm445.7 51.5l-93.3-93.3C814.7 780.7 828 743.9 828 704c0-97.2-78.8-176-176-176s-176 78.8-176 176 78.8 176 176 176c35.8 0 69-10.7 96.8-29l94.7 94.7c1.6 1.6 3.6 2.3 5.6 2.3s4.1-.8 5.6-2.3l31-31a7.9 7.9 0 000-11.2zM652 816c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"file-search",theme:"outlined"},Hxe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:zxe}))},Uxe=l.forwardRef(Hxe),Vxe={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:n}},{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.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"},Wxe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Vxe}))},Gxe=l.forwardRef(Wxe),qxe={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"},Kxe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:qxe}))},Yxe=l.forwardRef(Kxe),Xxe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M834.1 469.2A347.49 347.49 0 00751.2 354l-29.1-26.7a8.09 8.09 0 00-13 3.3l-13 37.3c-8.1 23.4-23 47.3-44.1 70.8-1.4 1.5-3 1.9-4.1 2-1.1.1-2.8-.1-4.3-1.5-1.4-1.2-2.1-3-2-4.8 3.7-60.2-14.3-128.1-53.7-202C555.3 171 510 123.1 453.4 89.7l-41.3-24.3c-5.4-3.2-12.3 1-12 7.3l2.2 48c1.5 32.8-2.3 61.8-11.3 85.9-11 29.5-26.8 56.9-47 81.5a295.64 295.64 0 01-47.5 46.1 352.6 352.6 0 00-100.3 121.5A347.75 347.75 0 00160 610c0 47.2 9.3 92.9 27.7 136a349.4 349.4 0 0075.5 110.9c32.4 32 70 57.2 111.9 74.7C418.5 949.8 464.5 959 512 959s93.5-9.2 136.9-27.3A348.6 348.6 0 00760.8 857c32.4-32 57.8-69.4 75.5-110.9a344.2 344.2 0 0027.7-136c0-48.8-10-96.2-29.9-140.9zM713 808.5c-53.7 53.2-125 82.4-201 82.4s-147.3-29.2-201-82.4c-53.5-53.1-83-123.5-83-198.4 0-43.5 9.8-85.2 29.1-124 18.8-37.9 46.8-71.8 80.8-97.9a349.6 349.6 0 0058.6-56.8c25-30.5 44.6-64.5 58.2-101a240 240 0 0012.1-46.5c24.1 22.2 44.3 49 61.2 80.4 33.4 62.6 48.8 118.3 45.8 165.7a74.01 74.01 0 0024.4 59.8 73.36 73.36 0 0053.4 18.8c19.7-1 37.8-9.7 51-24.4 13.3-14.9 24.8-30.1 34.4-45.6 14 17.9 25.7 37.4 35 58.4 15.9 35.8 24 73.9 24 113.1 0 74.9-29.5 145.4-83 198.4z"}}]},name:"fire",theme:"outlined"},Zxe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Xxe}))},Qxe=l.forwardRef(Zxe),Jxe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M484 443.1V528h-84.5c-4.1 0-7.5 3.1-7.5 7v42c0 3.8 3.4 7 7.5 7H484v84.9c0 3.9 3.2 7.1 7 7.1h42c3.9 0 7-3.2 7-7.1V584h84.5c4.1 0 7.5-3.2 7.5-7v-42c0-3.9-3.4-7-7.5-7H540v-84.9c0-3.9-3.1-7.1-7-7.1h-42c-3.8 0-7 3.2-7 7.1zm396-144.7H521L403.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-add",theme:"outlined"},ewe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Jxe}))},LR=l.forwardRef(ewe),twe={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"},nwe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:twe}))},JO=l.forwardRef(nwe),rwe={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"},awe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:rwe}))},owe=l.forwardRef(awe),iwe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z"}}]},name:"form",theme:"outlined"},swe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:iwe}))},lwe=l.forwardRef(swe),cwe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"},uwe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:cwe}))},lq=l.forwardRef(uwe),dwe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M536.1 273H488c-4.4 0-8 3.6-8 8v275.3c0 2.6 1.2 5 3.3 6.5l165.3 120.7c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.7-3.7 1.9-8.7-1.7-11.2L544.1 528.5V281c0-4.4-3.6-8-8-8zm219.8 75.2l156.8 38.3c5 1.2 9.9-2.6 9.9-7.7l.8-161.5c0-6.7-7.7-10.5-12.9-6.3L752.9 334.1a8 8 0 003 14.1zm167.7 301.1l-56.7-19.5a8 8 0 00-10.1 4.8c-1.9 5.1-3.9 10.1-6 15.1-17.8 42.1-43.3 80-75.9 112.5a353 353 0 01-112.5 75.9 352.18 352.18 0 01-137.7 27.8c-47.8 0-94.1-9.3-137.7-27.8a353 353 0 01-112.5-75.9c-32.5-32.5-58-70.4-75.9-112.5A353.44 353.44 0 01171 512c0-47.8 9.3-94.2 27.8-137.8 17.8-42.1 43.3-80 75.9-112.5a353 353 0 01112.5-75.9C430.6 167.3 477 158 524.8 158s94.1 9.3 137.7 27.8A353 353 0 01775 261.7c10.2 10.3 19.8 21 28.6 32.3l59.8-46.8C784.7 146.6 662.2 81.9 524.6 82 285 82.1 92.6 276.7 95 516.4 97.4 751.9 288.9 942 524.8 942c185.5 0 343.5-117.6 403.7-282.3 1.5-4.2-.7-8.9-4.9-10.4z"}}]},name:"history",theme:"outlined"},fwe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:dwe}))},pwe=l.forwardRef(fwe),gwe={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"},mwe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:gwe}))},hwe=l.forwardRef(mwe),vwe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 00-44.4 0L77.5 505a63.9 63.9 0 00-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0018.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z"}}]},name:"home",theme:"outlined"},bwe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:vwe}))},ywe=l.forwardRef(bwe),Swe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},xwe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Swe}))},eN=l.forwardRef(xwe),wwe={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:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},Cwe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:wwe}))},Hu=l.forwardRef(Cwe),Ewe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M956.9 845.1L896.4 632V168c0-17.7-14.3-32-32-32h-704c-17.7 0-32 14.3-32 32v464L67.9 845.1C60.4 866 75.8 888 98 888h828.8c22.2 0 37.6-22 30.1-42.9zM200.4 208h624v395h-624V208zm228.3 608l8.1-37h150.3l8.1 37H428.7zm224 0l-19.1-86.7c-.8-3.7-4.1-6.3-7.8-6.3H398.2c-3.8 0-7 2.6-7.8 6.3L371.3 816H151l42.3-149h638.2l42.3 149H652.7z"}}]},name:"laptop",theme:"outlined"},Iwe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Ewe}))},Twe=l.forwardRef(Iwe),Rwe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 00-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 00471 99.9c-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81zm636.4-353l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5a44.1 44.1 0 0142.2-32.3c7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z"}}]},name:"like",theme:"outlined"},_we=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Rwe}))},$we=l.forwardRef(_we),Owe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M574 665.4a8.03 8.03 0 00-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 00-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 000 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 000 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 00-11.3 0L372.3 598.7a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z"}}]},name:"link",theme:"outlined"},Nwe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Owe}))},kwe=l.forwardRef(Nwe),Awe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"},Mwe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Awe}))},Pwe=l.forwardRef(Mwe),Dwe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"},Lwe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Dwe}))},Fwe=l.forwardRef(Lwe),jwe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{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"}}]},name:"minus-circle",theme:"outlined"},Bwe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:jwe}))},zwe=l.forwardRef(Bwe),Hwe={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"},Uwe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Hwe}))},Vwe=l.forwardRef(Uwe),Wwe={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M489.5 111.66c30.65-1.8 45.98 36.44 22.58 56.33A243.35 243.35 0 00426 354c0 134.76 109.24 244 244 244 72.58 0 139.9-31.83 186.01-86.08 19.87-23.38 58.07-8.1 56.34 22.53C900.4 745.82 725.15 912 512.5 912 291.31 912 112 732.69 112 511.5c0-211.39 164.29-386.02 374.2-399.65l.2-.01zm-81.15 79.75l-4.11 1.36C271.1 237.94 176 364.09 176 511.5 176 697.34 326.66 848 512.5 848c148.28 0 274.94-96.2 319.45-230.41l.63-1.93-.11.07a307.06 307.06 0 01-159.73 46.26L670 662c-170.1 0-308-137.9-308-308 0-58.6 16.48-114.54 46.27-162.47z"}}]},name:"moon",theme:"outlined"},Gwe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Wwe}))},qwe=l.forwardRef(Gwe),Kwe={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M771.91 115a31.65 31.65 0 00-17.42 5.27L400 351.97H236a16 16 0 00-16 16v288.06a16 16 0 0016 16h164l354.5 231.7a31.66 31.66 0 0017.42 5.27c16.65 0 32.08-13.25 32.08-32.06V147.06c0-18.8-15.44-32.06-32.09-32.06M732 221v582L439.39 611.75l-17.95-11.73H292V423.98h129.44l17.95-11.73z"}}]},name:"muted",theme:"outlined"},Ywe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Kwe}))},Xwe=l.forwardRef(Ywe),Zwe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M952 612c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H298a95.92 95.92 0 00-89-60c-53 0-96 43-96 96s43 96 96 96c40.3 0 74.8-24.8 89-60h150.3v152c0 55.2 44.8 100 100 100H952c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H548.3c-15.5 0-28-12.5-28-28V612H952zM456 344h264v98.2c0 8.1 9.5 12.8 15.8 7.7l172.5-136.2c5-3.9 5-11.4 0-15.3L735.8 162.1c-6.4-5.1-15.8-.5-15.8 7.7V268H456c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8z"}}]},name:"node-expand",theme:"outlined"},Qwe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Zwe}))},PP=l.forwardRef(Qwe),Jwe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M920 760H336c-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-568H336c-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 284H336c-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-8zM216 712H100c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h72.4v20.5h-35.7c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h35.7V838H100c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h116c2.2 0 4-1.8 4-4V716c0-2.2-1.8-4-4-4zM100 188h38v120c0 2.2 1.8 4 4 4h40c2.2 0 4-1.8 4-4V152c0-4.4-3.6-8-8-8h-78c-2.2 0-4 1.8-4 4v36c0 2.2 1.8 4 4 4zm116 240H100c-2.2 0-4 1.8-4 4v36c0 2.2 1.8 4 4 4h68.4l-70.3 77.7a8.3 8.3 0 00-2.1 5.4V592c0 2.2 1.8 4 4 4h116c2.2 0 4-1.8 4-4v-36c0-2.2-1.8-4-4-4h-68.4l70.3-77.7a8.3 8.3 0 002.1-5.4V432c0-2.2-1.8-4-4-4z"}}]},name:"ordered-list",theme:"outlined"},eCe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Jwe}))},tCe=l.forwardRef(eCe),nCe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},rCe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:nCe}))},aCe=l.forwardRef(rCe),oCe={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 372zm-88-532h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8zm224 0h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8z"}}]},name:"pause-circle",theme:"outlined"},iCe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:oCe}))},DP=l.forwardRef(iCe),sCe={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:n}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:n}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:n}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"},lCe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:sCe}))},cCe=l.forwardRef(lCe),uCe={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:"M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z"}}]},name:"play-circle",theme:"outlined"},dCe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:uCe}))},Di=l.forwardRef(dCe),fCe={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"},pCe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:fCe}))},cq=l.forwardRef(pCe),gCe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M705.6 124.9a8 8 0 00-11.6 7.2v64.2c0 5.5 2.9 10.6 7.5 13.6a352.2 352.2 0 0162.2 49.8c32.7 32.8 58.4 70.9 76.3 113.3a355 355 0 0127.9 138.7c0 48.1-9.4 94.8-27.9 138.7a355.92 355.92 0 01-76.3 113.3 353.06 353.06 0 01-113.2 76.4c-43.8 18.6-90.5 28-138.5 28s-94.7-9.4-138.5-28a353.06 353.06 0 01-113.2-76.4A355.92 355.92 0 01184 650.4a355 355 0 01-27.9-138.7c0-48.1 9.4-94.8 27.9-138.7 17.9-42.4 43.6-80.5 76.3-113.3 19-19 39.8-35.6 62.2-49.8 4.7-2.9 7.5-8.1 7.5-13.6V132c0-6-6.3-9.8-11.6-7.2C178.5 195.2 82 339.3 80 506.3 77.2 745.1 272.5 943.5 511.2 944c239 .5 432.8-193.3 432.8-432.4 0-169.2-97-315.7-238.4-386.7zM480 560h64c4.4 0 8-3.6 8-8V88c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z"}}]},name:"poweroff",theme:"outlined"},mCe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:gCe}))},hCe=l.forwardRef(mCe),vCe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M136 552h63.6c4.4 0 8-3.6 8-8V288.7h528.6v72.6c0 1.9.6 3.7 1.8 5.2a8.3 8.3 0 0011.7 1.4L893 255.4c4.3-5 3.6-10.3 0-13.2L749.7 129.8a8.22 8.22 0 00-5.2-1.8c-4.6 0-8.4 3.8-8.4 8.4V209H199.7c-39.5 0-71.7 32.2-71.7 71.8V544c0 4.4 3.6 8 8 8zm752-80h-63.6c-4.4 0-8 3.6-8 8v255.3H287.8v-72.6c0-1.9-.6-3.7-1.8-5.2a8.3 8.3 0 00-11.7-1.4L131 768.6c-4.3 5-3.6 10.3 0 13.2l143.3 112.4c1.5 1.2 3.3 1.8 5.2 1.8 4.6 0 8.4-3.8 8.4-8.4V815h536.6c39.5 0 71.7-32.2 71.7-71.8V480c-.2-4.4-3.8-8-8.2-8z"}}]},name:"retweet",theme:"outlined"},bCe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:vCe}))},LP=l.forwardRef(bCe),yCe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zm-405.8-201c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0026 0l212.6-292.7c3.8-5.3 0-12.7-6.5-12.7h-55.2c-5.1 0-10 2.5-13 6.6L468.9 542.4l-64.7-89.1z"}}]},name:"safety-certificate",theme:"outlined"},SCe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:yCe}))},tN=l.forwardRef(SCe),xCe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-12-12-28.3-18.7-45.3-18.7H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 176h256v112H384V176zm128 554c-79.5 0-144-64.5-144-144s64.5-144 144-144 144 64.5 144 144-64.5 144-144 144zm0-224c-44.2 0-80 35.8-80 80s35.8 80 80 80 80-35.8 80-80-35.8-80-80-80z"}}]},name:"save",theme:"filled"},wCe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:xCe}))},uq=l.forwardRef(wCe),CCe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"},ECe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:CCe}))},ICe=l.forwardRef(ECe),TCe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},RCe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:TCe}))},nN=l.forwardRef(RCe),_Ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M881.7 187.4l-45.1-45.1a8.03 8.03 0 00-11.3 0L667.8 299.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L576.1 439c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 157.6-157.6c3-3 3-8.1-.1-11.2zM439 576.1l-189.2 23.5c-6.6.8-9.3 8.9-4.7 13.5l54.7 54.7-157.5 157.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l157.6-157.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L447.9 585a7.9 7.9 0 00-8.9-8.9z"}}]},name:"shrink",theme:"outlined"},$Ce=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:_Ce}))},OCe=l.forwardRef($Ce),NCe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM664 533h-48.1c-4.2 0-7.8 3.2-8.1 7.4C604 589.9 562.5 629 512 629s-92.1-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 00-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 00-8-8.4z"}}]},name:"smile",theme:"outlined"},kCe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:NCe}))},ACe=l.forwardRef(kCe),MCe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M625.9 115c-5.9 0-11.9 1.6-17.4 5.3L254 352H90c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h164l354.5 231.7c5.5 3.6 11.6 5.3 17.4 5.3 16.7 0 32.1-13.3 32.1-32.1V147.1c0-18.8-15.4-32.1-32.1-32.1zM586 803L293.4 611.7l-18-11.7H146V424h129.4l17.9-11.7L586 221v582zm348-327H806c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16h128c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16zm-41.9 261.8l-110.3-63.7a15.9 15.9 0 00-21.7 5.9l-19.9 34.5c-4.4 7.6-1.8 17.4 5.8 21.8L856.3 800a15.9 15.9 0 0021.7-5.9l19.9-34.5c4.4-7.6 1.7-17.4-5.8-21.8zM760 344a15.9 15.9 0 0021.7 5.9L892 286.2c7.6-4.4 10.2-14.2 5.8-21.8L878 230a15.9 15.9 0 00-21.7-5.9L746 287.8a15.99 15.99 0 00-5.8 21.8L760 344z"}}]},name:"sound",theme:"outlined"},PCe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:MCe}))},dq=l.forwardRef(PCe),DCe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M347.6 528.95l383.2 301.02c14.25 11.2 35.2 1.1 35.2-16.95V210.97c0-18.05-20.95-28.14-35.2-16.94L347.6 495.05a21.53 21.53 0 000 33.9M330 864h-64a8 8 0 01-8-8V168a8 8 0 018-8h64a8 8 0 018 8v688a8 8 0 01-8 8"}}]},name:"step-backward",theme:"outlined"},LCe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:DCe}))},FCe=l.forwardRef(LCe),jCe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M676.4 528.95L293.2 829.97c-14.25 11.2-35.2 1.1-35.2-16.95V210.97c0-18.05 20.95-28.14 35.2-16.94l383.2 301.02a21.53 21.53 0 010 33.9M694 864h64a8 8 0 008-8V168a8 8 0 00-8-8h-64a8 8 0 00-8 8v688a8 8 0 008 8"}}]},name:"step-forward",theme:"outlined"},BCe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:jCe}))},zCe=l.forwardRef(BCe),HCe={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M548 818v126a16 16 0 01-16 16h-40a16 16 0 01-16-16V818c15.85 1.64 27.84 2.46 36 2.46 8.15 0 20.16-.82 36-2.46m205.25-115.66l89.1 89.1a16 16 0 010 22.62l-28.29 28.29a16 16 0 01-22.62 0l-89.1-89.1c12.37-10.04 21.43-17.95 27.2-23.71 5.76-5.77 13.67-14.84 23.71-27.2m-482.5 0c10.04 12.36 17.95 21.43 23.71 27.2 5.77 5.76 14.84 13.67 27.2 23.71l-89.1 89.1a16 16 0 01-22.62 0l-28.29-28.29a16 16 0 010-22.63zM512 278c129.24 0 234 104.77 234 234S641.24 746 512 746 278 641.24 278 512s104.77-234 234-234m0 72c-89.47 0-162 72.53-162 162s72.53 162 162 162 162-72.53 162-162-72.53-162-162-162M206 476c-1.64 15.85-2.46 27.84-2.46 36 0 8.15.82 20.16 2.46 36H80a16 16 0 01-16-16v-40a16 16 0 0116-16zm738 0a16 16 0 0116 16v40a16 16 0 01-16 16H818c1.64-15.85 2.46-27.84 2.46-36 0-8.15-.82-20.16-2.46-36zM814.06 180.65l28.29 28.29a16 16 0 010 22.63l-89.1 89.09c-10.04-12.37-17.95-21.43-23.71-27.2-5.77-5.76-14.84-13.67-27.2-23.71l89.1-89.1a16 16 0 0122.62 0m-581.5 0l89.1 89.1c-12.37 10.04-21.43 17.95-27.2 23.71-5.76 5.77-13.67 14.84-23.71 27.2l-89.1-89.1a16 16 0 010-22.62l28.29-28.29a16 16 0 0122.62 0M532 64a16 16 0 0116 16v126c-15.85-1.64-27.84-2.46-36-2.46-8.15 0-20.16.82-36 2.46V80a16 16 0 0116-16z"}}]},name:"sun",theme:"outlined"},UCe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:HCe}))},VCe=l.forwardRef(UCe),WCe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"},GCe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:WCe}))},fq=l.forwardRef(GCe),qCe={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M608 192a32 32 0 0132 32v160h174.81a32 32 0 0126.68 14.33l113.19 170.84a32 32 0 015.32 17.68V672a32 32 0 01-32 32h-96c0 70.7-57.3 128-128 128s-128-57.3-128-128H384c0 70.7-57.3 128-128 128s-128-57.3-128-128H96a32 32 0 01-32-32V224a32 32 0 0132-32zM256 640a64 64 0 000 128h1.06A64 64 0 00256 640m448 0a64 64 0 000 128h1.06A64 64 0 00704 640M576 256H128v384h17.12c22.13-38.26 63.5-64 110.88-64 47.38 0 88.75 25.74 110.88 64H576zm221.63 192H640v145.12A127.43 127.43 0 01704 576c47.38 0 88.75 25.74 110.88 64H896v-43.52zM500 448a12 12 0 0112 12v40a12 12 0 01-12 12H332a12 12 0 01-12-12v-40a12 12 0 0112-12zM308 320a12 12 0 0112 12v40a12 12 0 01-12 12H204a12 12 0 01-12-12v-40a12 12 0 0112-12z"}}]},name:"truck",theme:"outlined"},KCe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:qCe}))},YCe=l.forwardRef(KCe),XCe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",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:"unordered-list",theme:"outlined"},ZCe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:XCe}))},QCe=l.forwardRef(ZCe),JCe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},eEe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:JCe}))},tEe=l.forwardRef(eEe),nEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M678.3 642.4c24.2-13 51.9-20.4 81.4-20.4h.1c3 0 4.4-3.6 2.2-5.6a371.67 371.67 0 00-103.7-65.8c-.4-.2-.8-.3-1.2-.5C719.2 505 759.6 431.7 759.6 349c0-137-110.8-248-247.5-248S264.7 212 264.7 349c0 82.7 40.4 156 102.6 201.1-.4.2-.8.3-1.2.5-44.7 18.9-84.8 46-119.3 80.6a373.42 373.42 0 00-80.4 119.5A373.6 373.6 0 00137 888.8a8 8 0 008 8.2h59.9c4.3 0 7.9-3.5 8-7.8 2-77.2 32.9-149.5 87.6-204.3C357 628.2 432.2 597 512.2 597c56.7 0 111.1 15.7 158 45.1a8.1 8.1 0 008.1.3zM512.2 521c-45.8 0-88.9-17.9-121.4-50.4A171.2 171.2 0 01340.5 349c0-45.9 17.9-89.1 50.3-121.6S466.3 177 512.2 177s88.9 17.9 121.4 50.4A171.2 171.2 0 01683.9 349c0 45.9-17.9 89.1-50.3 121.6C601.1 503.1 558 521 512.2 521zM880 759h-84v-84c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v84h-84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h84v84c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-84h84c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"user-add",theme:"outlined"},rEe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:nEe}))},aEe=l.forwardRef(rEe),oEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},iEe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:oEe}))},pq=l.forwardRef(iEe),sEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"},lEe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:sEe}))},gq=l.forwardRef(lEe),cEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M723 620.5C666.8 571.6 593.4 542 513 542s-153.8 29.6-210.1 78.6a8.1 8.1 0 00-.8 11.2l36 42.9c2.9 3.4 8 3.8 11.4.9C393.1 637.2 450.3 614 513 614s119.9 23.2 163.5 61.5c3.4 2.9 8.5 2.5 11.4-.9l36-42.9c2.8-3.3 2.4-8.3-.9-11.2zm117.4-140.1C751.7 406.5 637.6 362 513 362s-238.7 44.5-327.5 118.4a8.05 8.05 0 00-1 11.3l36 42.9c2.8 3.4 7.9 3.8 11.2 1C308 472.2 406.1 434 513 434s205 38.2 281.2 101.6c3.4 2.8 8.4 2.4 11.2-1l36-42.9c2.8-3.4 2.4-8.5-1-11.3zm116.7-139C835.7 241.8 680.3 182 511 182c-168.2 0-322.6 59-443.7 157.4a8 8 0 00-1.1 11.4l36 42.9c2.8 3.3 7.8 3.8 11.1 1.1C222 306.7 360.3 254 511 254c151.8 0 291 53.5 400 142.7 3.4 2.8 8.4 2.3 11.2-1.1l36-42.9c2.9-3.4 2.4-8.5-1.1-11.3zM448 778a64 64 0 10128 0 64 64 0 10-128 0z"}}]},name:"wifi",theme:"outlined"},uEe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:cEe}))},FR=l.forwardRef(uEe),dEe=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick","render"];function FP(e){return typeof e=="string"}function mq(e){var t,n=e.className,r=e.prefixCls,a=e.style,o=e.active,i=e.status,s=e.iconPrefix,c=e.icon;e.wrapperStyle;var u=e.stepNumber,d=e.disabled,f=e.description,p=e.title,g=e.subTitle,h=e.progressDot,b=e.stepIcon,y=e.tailContent,S=e.icons,v=e.stepIndex,x=e.onStepClick,C=e.onClick,w=e.render,E=xt(e,dEe),I=!!x&&!d,T={};I&&(T.role="button",T.tabIndex=0,T.onClick=function(A){C==null||C(A),x(v)},T.onKeyDown=function(A){var O=A.which;(O===Le.ENTER||O===Le.SPACE)&&x(v)});var R=function(){var O,N,k=ne("".concat(r,"-icon"),"".concat(s,"icon"),(O={},W(O,"".concat(s,"icon-").concat(c),c&&FP(c)),W(O,"".concat(s,"icon-check"),!c&&i==="finish"&&(S&&!S.finish||!S)),W(O,"".concat(s,"icon-cross"),!c&&i==="error"&&(S&&!S.error||!S)),O)),M=l.createElement("span",{className:"".concat(r,"-icon-dot")});return h?typeof h=="function"?N=l.createElement("span",{className:"".concat(r,"-icon")},h(M,{index:u-1,status:i,title:p,description:f})):N=l.createElement("span",{className:"".concat(r,"-icon")},M):c&&!FP(c)?N=l.createElement("span",{className:"".concat(r,"-icon")},c):S&&S.finish&&i==="finish"?N=l.createElement("span",{className:"".concat(r,"-icon")},S.finish):S&&S.error&&i==="error"?N=l.createElement("span",{className:"".concat(r,"-icon")},S.error):c||i==="finish"||i==="error"?N=l.createElement("span",{className:k}):N=l.createElement("span",{className:"".concat(r,"-icon")},u),b&&(N=b({index:u-1,status:i,title:p,description:f,node:N})),N},_=i||"wait",$=ne("".concat(r,"-item"),"".concat(r,"-item-").concat(_),n,(t={},W(t,"".concat(r,"-item-custom"),c),W(t,"".concat(r,"-item-active"),o),W(t,"".concat(r,"-item-disabled"),d===!0),t)),P=Z({},a),D=l.createElement("div",pe({},E,{className:$,style:P}),l.createElement("div",pe({onClick:C},T,{className:"".concat(r,"-item-container")}),l.createElement("div",{className:"".concat(r,"-item-tail")},y),l.createElement("div",{className:"".concat(r,"-item-icon")},R()),l.createElement("div",{className:"".concat(r,"-item-content")},l.createElement("div",{className:"".concat(r,"-item-title")},p,g&&l.createElement("div",{title:typeof g=="string"?g:void 0,className:"".concat(r,"-item-subtitle")},g)),f&&l.createElement("div",{className:"".concat(r,"-item-description")},f))));return w&&(D=w(D)||null),D}var fEe=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","itemRender","items"];function rN(e){var t,n=e.prefixCls,r=n===void 0?"rc-steps":n,a=e.style,o=a===void 0?{}:a,i=e.className;e.children;var s=e.direction,c=s===void 0?"horizontal":s,u=e.type,d=u===void 0?"default":u,f=e.labelPlacement,p=f===void 0?"horizontal":f,g=e.iconPrefix,h=g===void 0?"rc":g,b=e.status,y=b===void 0?"process":b,S=e.size,v=e.current,x=v===void 0?0:v,C=e.progressDot,w=C===void 0?!1:C,E=e.stepIcon,I=e.initial,T=I===void 0?0:I,R=e.icons,_=e.onChange,$=e.itemRender,P=e.items,D=P===void 0?[]:P,A=xt(e,fEe),O=d==="navigation",N=d==="inline",k=N||w,M=N?"horizontal":c,L=N?void 0:S,F=k?"vertical":p,j=ne(r,"".concat(r,"-").concat(M),i,(t={},W(t,"".concat(r,"-").concat(L),L),W(t,"".concat(r,"-label-").concat(F),M==="horizontal"),W(t,"".concat(r,"-dot"),!!k),W(t,"".concat(r,"-navigation"),O),W(t,"".concat(r,"-inline"),N),t)),B=function(V){_&&x!==V&&_(V)},z=function(V,te){var Y=Z({},V),J=T+te;return y==="error"&&te===x-1&&(Y.className="".concat(r,"-next-error")),Y.status||(J===x?Y.status=y:J{const{componentCls:t,customIconTop:n,customIconSize:r,customIconFontSize:a}=e;return{[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:n,width:r,height:r,fontSize:a,lineHeight:K(r)}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},gEe=e=>{const{componentCls:t}=e,n=`${t}-item`;return{[`${t}-horizontal`]:{[`${n}-tail`]:{transform:"translateY(-50%)"}}}},mEe=e=>{const{componentCls:t,inlineDotSize:n,inlineTitleColor:r,inlineTailColor:a}=e,o=e.calc(e.paddingXS).add(e.lineWidth).equal(),i={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:r}};return{[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${K(o)} ${K(e.paddingXXS)} 0`,margin:`0 ${K(e.calc(e.marginXXS).div(2).equal())}`,borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:n,height:n,marginInlineStart:`calc(50% - ${K(e.calc(n).div(2).equal())})`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:e.calc(e.fontSizeSM).div(4).equal(),"&::after":{display:"none"}}},"&-content":{width:"auto",marginTop:e.calc(e.marginXS).sub(e.lineWidth).equal()},"&-title":{color:r,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:"normal",marginBottom:e.calc(e.marginXXS).div(2).equal()},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:e.calc(n).div(2).add(o).equal(),transform:"translateY(-50%)","&:after":{width:"100%",height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:a}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":Object.assign({[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:e.colorBorderBg,border:`${K(e.lineWidth)} ${e.lineType} ${a}`}},i),"&-finish":Object.assign({[`${t}-item-tail::after`]:{backgroundColor:a},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:a,border:`${K(e.lineWidth)} ${e.lineType} ${a}`}},i),"&-error":i,"&-active, &-process":Object.assign({[`${t}-item-icon`]:{width:n,height:n,marginInlineStart:`calc(50% - ${K(e.calc(n).div(2).equal())})`,top:0}},i),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:r}}}}}},hEe=e=>{const{componentCls:t,iconSize:n,lineHeight:r,iconSizeSM:a}=e;return{[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:e.calc(n).div(2).add(e.controlHeightLG).equal(),padding:`0 ${K(e.paddingLG)}`},"&-content":{display:"block",width:e.calc(n).div(2).add(e.controlHeightLG).mul(2).equal(),marginTop:e.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:e.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:e.marginXXS,marginInlineStart:0,lineHeight:r}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:e.calc(n).sub(a).div(2).add(e.controlHeightLG).equal()}}}}}},vEe=e=>{const{componentCls:t,navContentMaxWidth:n,navArrowColor:r,stepsNavActiveColor:a,motionDurationSlow:o}=e;return{[`&${t}-navigation`]:{paddingTop:e.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:e.calc(e.marginSM).mul(-1).equal()}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:e.calc(e.margin).mul(-1).equal(),paddingBottom:e.paddingSM,textAlign:"start",transition:`opacity ${o}`,[`${t}-item-content`]:{maxWidth:n},[`${t}-item-title`]:Object.assign(Object.assign({maxWidth:"100%",paddingInlineEnd:0},xo),{"&::after":{display:"none"}})},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${K(e.calc(e.paddingSM).div(2).equal())})`,insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:`${K(e.lineWidth)} ${e.lineType} ${r}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${K(e.lineWidth)} ${e.lineType} ${r}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:e.lineWidthBold,backgroundColor:a,transition:`width ${o}, inset-inline-start ${o}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:e.calc(e.lineWidth).mul(3).equal(),height:`calc(100% - ${K(e.marginLG)})`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:e.calc(e.controlHeight).mul(.25).equal(),height:e.calc(e.controlHeight).mul(.25).equal(),marginBottom:e.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},"&:last-child":{"&::after":{display:"none"}},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},bEe=e=>{const{antCls:t,componentCls:n,iconSize:r,iconSizeSM:a,processIconColor:o,marginXXS:i,lineWidthBold:s,lineWidth:c,paddingXXS:u}=e,d=e.calc(r).add(e.calc(s).mul(4).equal()).equal(),f=e.calc(a).add(e.calc(e.lineWidth).mul(4).equal()).equal();return{[`&${n}-with-progress`]:{[`${n}-item`]:{paddingTop:u,[`&-process ${n}-item-container ${n}-item-icon ${n}-icon`]:{color:o}},[`&${n}-vertical > ${n}-item `]:{paddingInlineStart:u,[`> ${n}-item-container > ${n}-item-tail`]:{top:i,insetInlineStart:e.calc(r).div(2).sub(c).add(u).equal()}},[`&, &${n}-small`]:{[`&${n}-horizontal ${n}-item:first-child`]:{paddingBottom:u,paddingInlineStart:u}},[`&${n}-small${n}-vertical > ${n}-item > ${n}-item-container > ${n}-item-tail`]:{insetInlineStart:e.calc(a).div(2).sub(c).add(u).equal()},[`&${n}-label-vertical ${n}-item ${n}-item-tail`]:{top:e.calc(r).div(2).add(u).equal()},[`${n}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetInlineStart:"50%",top:"50%",transform:"translate(-50%, -50%)","&-inner":{width:`${K(d)} !important`,height:`${K(d)} !important`}}},[`&${n}-small`]:{[`&${n}-label-vertical ${n}-item ${n}-item-tail`]:{top:e.calc(a).div(2).add(u).equal()},[`${n}-item-icon ${t}-progress-inner`]:{width:`${K(f)} !important`,height:`${K(f)} !important`}}}}},yEe=e=>{const{componentCls:t,descriptionMaxWidth:n,lineHeight:r,dotCurrentSize:a,dotSize:o,motionDurationSlow:i}=e;return{[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:r},"&-tail":{top:e.calc(e.dotSize).sub(e.calc(e.lineWidth).mul(3).equal()).div(2).equal(),width:"100%",marginTop:0,marginBottom:0,marginInline:`${K(e.calc(n).div(2).equal())} 0`,padding:0,"&::after":{width:`calc(100% - ${K(e.calc(e.marginSM).mul(2).equal())})`,height:e.calc(e.lineWidth).mul(3).equal(),marginInlineStart:e.marginSM}},"&-icon":{width:o,height:o,marginInlineStart:e.calc(e.descriptionMaxWidth).sub(o).div(2).equal(),paddingInlineEnd:0,lineHeight:K(o),background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${i}`,"&::after":{position:"absolute",top:e.calc(e.marginSM).mul(-1).equal(),insetInlineStart:e.calc(o).sub(e.calc(e.controlHeightLG).mul(1.5).equal()).div(2).equal(),width:e.calc(e.controlHeightLG).mul(1.5).equal(),height:e.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:n},[`&-process ${t}-item-icon`]:{position:"relative",top:e.calc(o).sub(a).div(2).equal(),width:a,height:a,lineHeight:K(a),background:"none",marginInlineStart:e.calc(e.descriptionMaxWidth).sub(a).div(2).equal()},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(o).div(2).equal(),marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(a).div(2).equal(),top:0,insetInlineStart:e.calc(o).sub(a).div(2).equal(),marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeight).sub(o).div(2).equal(),insetInlineStart:0,margin:0,padding:`${K(e.calc(o).add(e.paddingXS).equal())} 0 ${K(e.paddingXS)}`,"&::after":{marginInlineStart:e.calc(o).sub(e.lineWidth).div(2).equal()}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(o).div(2).equal()},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(a).div(2).equal()},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeightSM).sub(o).div(2).equal()}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},SEe=e=>{const{componentCls:t}=e;return{[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}},xEe=e=>{const{componentCls:t,iconSizeSM:n,fontSizeSM:r,fontSize:a,colorTextDescription:o}=e;return{[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:n,height:n,marginTop:0,marginBottom:0,marginInline:`0 ${K(e.marginXS)}`,fontSize:r,lineHeight:K(n),textAlign:"center",borderRadius:n},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:a,lineHeight:K(n),"&::after":{top:e.calc(n).div(2).equal()}},[`${t}-item-description`]:{color:o,fontSize:a},[`${t}-item-tail`]:{top:e.calc(n).div(2).sub(e.paddingXXS).equal()},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:n,lineHeight:K(n),transform:"none"}}}}},wEe=e=>{const{componentCls:t,iconSizeSM:n,iconSize:r}=e;return{[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:e.margin},[`${t}-item-content`]:{display:"block",minHeight:e.calc(e.controlHeight).mul(1.5).equal(),overflow:"hidden"},[`${t}-item-title`]:{lineHeight:K(r)},[`${t}-item-description`]:{paddingBottom:e.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(r).div(2).sub(e.lineWidth).equal(),width:e.lineWidth,height:"100%",padding:`${K(e.calc(e.marginXXS).mul(1.5).add(r).equal())} 0 ${K(e.calc(e.marginXXS).mul(1.5).equal())}`,"&::after":{width:e.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(n).div(2).sub(e.lineWidth).equal(),padding:`${K(e.calc(e.marginXXS).mul(1.5).add(n).equal())} 0 ${K(e.calc(e.marginXXS).mul(1.5).equal())}`},[`${t}-item-title`]:{lineHeight:K(n)}}}}},CEe="wait",EEe="process",IEe="finish",TEe="error",yh=(e,t)=>{const n=`${t.componentCls}-item`,r=`${e}IconColor`,a=`${e}TitleColor`,o=`${e}DescriptionColor`,i=`${e}TailColor`,s=`${e}IconBgColor`,c=`${e}IconBorderColor`,u=`${e}DotColor`;return{[`${n}-${e} ${n}-icon`]:{backgroundColor:t[s],borderColor:t[c],[`> ${t.componentCls}-icon`]:{color:t[r],[`${t.componentCls}-icon-dot`]:{background:t[u]}}},[`${n}-${e}${n}-custom ${n}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[u]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-title`]:{color:t[a],"&::after":{backgroundColor:t[i]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-description`]:{color:t[o]},[`${n}-${e} > ${n}-container > ${n}-tail::after`]:{backgroundColor:t[i]}}},REe=e=>{const{componentCls:t,motionDurationSlow:n}=e,r=`${t}-item`,a=`${r}-icon`;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[r]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${r}-container > ${r}-tail, > ${r}-container > ${r}-content > ${r}-title::after`]:{display:"none"}}},[`${r}-container`]:{outline:"none","&:focus-visible":{[a]:Object.assign({},ws(e))}},[`${a}, ${r}-content`]:{display:"inline-block",verticalAlign:"top"},[a]:{width:e.iconSize,height:e.iconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:e.marginXS,fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:K(e.iconSize),textAlign:"center",borderRadius:e.iconSize,border:`${K(e.lineWidth)} ${e.lineType} transparent`,transition:`background-color ${n}, border-color ${n}`,[`${t}-icon`]:{position:"relative",top:e.iconTop,color:e.colorPrimary,lineHeight:1}},[`${r}-tail`]:{position:"absolute",top:e.calc(e.iconSize).div(2).equal(),insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:e.lineWidth,background:e.colorSplit,borderRadius:e.lineWidth,transition:`background ${n}`,content:'""'}},[`${r}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:e.padding,color:e.colorText,fontSize:e.fontSizeLG,lineHeight:K(e.titleLineHeight),"&::after":{position:"absolute",top:e.calc(e.titleLineHeight).div(2).equal(),insetInlineStart:"100%",display:"block",width:9999,height:e.lineWidth,background:e.processTailColor,content:'""'}},[`${r}-subtitle`]:{display:"inline",marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize},[`${r}-description`]:{color:e.colorTextDescription,fontSize:e.fontSize}},yh(CEe,e)),yh(EEe,e)),{[`${r}-process > ${r}-container > ${r}-title`]:{fontWeight:e.fontWeightStrong}}),yh(IEe,e)),yh(TEe,e)),{[`${r}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${r}-disabled`]:{cursor:"not-allowed"}})},_Ee=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${n}`}},"&:hover":{[`${t}-item`]:{"&-title, &-subtitle, &-description":{color:e.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:e.colorPrimary,[`${t}-icon`]:{color:e.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:e.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:e.descriptionMaxWidth,whiteSpace:"normal"}}}}},$Ee=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},nn(e)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),REe(e)),_Ee(e)),pEe(e)),xEe(e)),wEe(e)),gEe(e)),hEe(e)),yEe(e)),vEe(e)),SEe(e)),bEe(e)),mEe(e))}},OEe=e=>({titleLineHeight:e.controlHeight,customIconSize:e.controlHeight,customIconTop:0,customIconFontSize:e.controlHeightSM,iconSize:e.controlHeight,iconTop:-.5,iconFontSize:e.fontSize,iconSizeSM:e.fontSizeHeading3,dotSize:e.controlHeight/4,dotCurrentSize:e.controlHeightLG/4,navArrowColor:e.colorTextDisabled,navContentMaxWidth:"auto",descriptionMaxWidth:140,waitIconColor:e.wireframe?e.colorTextDisabled:e.colorTextLabel,waitIconBgColor:e.wireframe?e.colorBgContainer:e.colorFillContent,waitIconBorderColor:e.wireframe?e.colorTextDisabled:"transparent",finishIconBgColor:e.wireframe?e.colorBgContainer:e.controlItemBgActive,finishIconBorderColor:e.wireframe?e.colorPrimary:e.controlItemBgActive}),NEe=on("Steps",e=>{const{colorTextDisabled:t,controlHeightLG:n,colorTextLightSolid:r,colorText:a,colorPrimary:o,colorTextDescription:i,colorTextQuaternary:s,colorError:c,colorBorderSecondary:u,colorSplit:d}=e,f=zt(e,{processIconColor:r,processTitleColor:a,processDescriptionColor:a,processIconBgColor:o,processIconBorderColor:o,processDotColor:o,processTailColor:d,waitTitleColor:i,waitDescriptionColor:i,waitTailColor:d,waitDotColor:t,finishIconColor:o,finishTitleColor:a,finishDescriptionColor:i,finishTailColor:o,finishDotColor:o,errorIconColor:r,errorTitleColor:c,errorDescriptionColor:c,errorTailColor:d,errorIconBgColor:c,errorIconBorderColor:c,errorDotColor:c,stepsNavActiveColor:o,stepsProgressSize:n,inlineDotSize:6,inlineTitleColor:s,inlineTailColor:u});return[$Ee(f)]},OEe);function kEe(e){return e.filter(t=>t)}function AEe(e,t){if(e)return e;const n=vr(t).map(r=>{if(l.isValidElement(r)){const{props:a}=r;return Object.assign({},a)}return null});return kEe(n)}var MEe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{percent:t,size:n,className:r,rootClassName:a,direction:o,items:i,responsive:s=!0,current:c=0,children:u,style:d}=e,f=MEe(e,["percent","size","className","rootClassName","direction","items","responsive","current","children","style"]),{xs:p}=L0(s),{getPrefixCls:g,direction:h,steps:b}=l.useContext(st),y=l.useMemo(()=>s&&p?"vertical":o,[p,o]),S=Er(n),v=g("steps",e.prefixCls),[x,C,w]=NEe(v),E=e.type==="inline",I=g("",e.iconPrefix),T=AEe(i,u),R=E?void 0:t,_=Object.assign(Object.assign({},b==null?void 0:b.style),d),$=ne(b==null?void 0:b.className,{[`${v}-rtl`]:h==="rtl",[`${v}-with-progress`]:R!==void 0},r,a,C,w),P={finish:l.createElement(nm,{className:`${v}-finish-icon`}),error:l.createElement(Jr,{className:`${v}-error-icon`})},D=O=>{let{node:N,status:k}=O;if(k==="process"&&R!==void 0){const M=S==="small"?32:40;return l.createElement("div",{className:`${v}-progress-icon`},l.createElement(iy,{type:"circle",percent:R,size:M,strokeWidth:4,format:()=>null}),N)}return N},A=(O,N)=>O.description?l.createElement(Zt,{title:O.description},N):N;return x(l.createElement(rN,Object.assign({icons:P},f,{style:_,current:c,size:S,items:T,itemRender:E?A:void 0,stepIcon:D,direction:y,prefixCls:v,iconPrefix:I,className:$})))};Ns.Step=rN.Step;var PEe=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],hq=l.forwardRef(function(e,t){var n,r=e.prefixCls,a=r===void 0?"rc-switch":r,o=e.className,i=e.checked,s=e.defaultChecked,c=e.disabled,u=e.loadingIcon,d=e.checkedChildren,f=e.unCheckedChildren,p=e.onClick,g=e.onChange,h=e.onKeyDown,b=xt(e,PEe),y=sn(!1,{value:i,defaultValue:s}),S=re(y,2),v=S[0],x=S[1];function C(T,R){var _=v;return c||(_=T,x(_),g==null||g(_,R)),_}function w(T){T.which===Le.LEFT?C(!1,T):T.which===Le.RIGHT&&C(!0,T),h==null||h(T)}function E(T){var R=C(!v,T);p==null||p(R,T)}var I=ne(a,o,(n={},W(n,"".concat(a,"-checked"),v),W(n,"".concat(a,"-disabled"),c),n));return l.createElement("button",pe({},b,{type:"button",role:"switch","aria-checked":v,disabled:c,className:I,ref:t,onKeyDown:w,onClick:E}),u,l.createElement("span",{className:"".concat(a,"-inner")},l.createElement("span",{className:"".concat(a,"-inner-checked")},d),l.createElement("span",{className:"".concat(a,"-inner-unchecked")},f)))});hq.displayName="Switch";const DEe=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:a,innerMinMarginSM:o,innerMaxMarginSM:i,handleSizeSM:s,calc:c}=e,u=`${t}-inner`,d=K(c(s).add(c(r).mul(2)).equal()),f=K(c(i).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:a,height:n,lineHeight:K(n),[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:o,[`${u}-checked, ${u}-unchecked`]:{minHeight:n},[`${u}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${f})`,marginInlineEnd:`calc(100% - ${d} + ${f})`},[`${u}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:c(c(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:i,[`${u}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${u}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${f})`,marginInlineEnd:`calc(-100% + ${d} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${K(c(s).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${u}`]:{[`${u}-unchecked`]:{marginInlineStart:c(e.marginXXS).div(2).equal(),marginInlineEnd:c(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${u}`]:{[`${u}-checked`]:{marginInlineStart:c(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:c(e.marginXXS).div(2).equal()}}}}}}},LEe=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},FEe=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:a,handleSize:o,calc:i}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:n,insetInlineStart:n,width:o,height:o,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:i(o).div(2).equal(),boxShadow:a,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${K(i(o).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},jEe=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:a,innerMaxMargin:o,handleSize:i,calc:s}=e,c=`${t}-inner`,u=K(s(i).add(s(r).mul(2)).equal()),d=K(s(o).mul(2).equal());return{[t]:{[c]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:o,paddingInlineEnd:a,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${c}-checked, ${c}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${c}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${c}`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:s(r).mul(2).equal(),marginInlineEnd:s(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:s(r).mul(-1).mul(2).equal(),marginInlineEnd:s(r).mul(2).equal()}}}}}},BEe=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},nn(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:K(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),zi(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},zEe=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:a}=e,o=t*n,i=r/2,s=2,c=o-s*2,u=i-s*2;return{trackHeight:o,trackHeightSM:i,trackMinWidth:c*2+s*4,trackMinWidthSM:u*2+s*2,trackPadding:s,handleBg:a,handleSize:c,handleSizeSM:u,handleShadow:`0 2px 4px 0 ${new an("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:c/2,innerMaxMargin:c+s+s*2,innerMinMarginSM:u/2,innerMaxMarginSM:u+s+s*2}},HEe=on("Switch",e=>{const t=zt(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[BEe(t),jEe(t),FEe(t),LEe(t),DEe(t)]},zEe);var UEe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,size:r,disabled:a,loading:o,className:i,rootClassName:s,style:c,checked:u,value:d,defaultChecked:f,defaultValue:p,onChange:g}=e,h=UEe(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[b,y]=sn(!1,{value:u??d,defaultValue:f??p}),{getPrefixCls:S,direction:v,switch:x}=l.useContext(st),C=l.useContext(Zr),w=(a??C)||o,E=S("switch",n),I=l.createElement("div",{className:`${E}-handle`},o&&l.createElement(Hi,{className:`${E}-loading-icon`})),[T,R,_]=HEe(E),$=Er(r),P=ne(x==null?void 0:x.className,{[`${E}-small`]:$==="small",[`${E}-loading`]:o,[`${E}-rtl`]:v==="rtl"},i,s,R,_),D=Object.assign(Object.assign({},x==null?void 0:x.style),c),A=function(){y(arguments.length<=0?void 0:arguments[0]),g==null||g.apply(void 0,arguments)};return T(l.createElement(Gg,{component:"Switch"},l.createElement(hq,Object.assign({},h,{checked:b,onChange:A,prefixCls:E,className:P,style:D,disabled:w,ref:t,loadingIcon:I}))))}),za=VEe;za.__ANT_SWITCH=!0;var Vs={},pm="rc-table-internal-hook";function aN(e){var t=l.createContext(void 0),n=function(a){var o=a.value,i=a.children,s=l.useRef(o);s.current=o;var c=l.useState(function(){return{getValue:function(){return s.current},listeners:new Set}}),u=re(c,1),d=u[0];return Xt(function(){Lr.unstable_batchedUpdates(function(){d.listeners.forEach(function(f){f(o)})})},[o]),l.createElement(t.Provider,{value:d},i)};return{Context:t,Provider:n,defaultValue:e}}function wa(e,t){var n=Wt(typeof t=="function"?t:function(f){if(t===void 0)return f;if(!Array.isArray(t))return f[t];var p={};return t.forEach(function(g){p[g]=f[g]}),p}),r=l.useContext(e==null?void 0:e.Context),a=r||{},o=a.listeners,i=a.getValue,s=l.useRef();s.current=n(r?i():e==null?void 0:e.defaultValue);var c=l.useState({}),u=re(c,2),d=u[1];return Xt(function(){if(!r)return;function f(p){var g=n(p);zo(s.current,g,!0)||d({})}return o.add(f),function(){o.delete(f)}},[r]),s.current}function WEe(){var e=l.createContext(null);function t(){return l.useContext(e)}function n(a,o){var i=gi(a),s=function(u,d){var f=i?{ref:d}:{},p=l.useRef(0),g=l.useRef(u),h=t();return h!==null?l.createElement(a,pe({},u,f)):((!o||o(g.current,u))&&(p.current+=1),g.current=u,l.createElement(e.Provider,{value:p.current},l.createElement(a,pe({},u,f))))};return i?l.forwardRef(s):s}function r(a,o){var i=gi(a),s=function(u,d){var f=i?{ref:d}:{};return t(),l.createElement(a,pe({},u,f))};return i?l.memo(l.forwardRef(s),o):l.memo(s,o)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var oN=WEe(),vq=oN.makeImmutable,tf=oN.responseImmutable,GEe=oN.useImmutableMark,eo=aN(),bq=l.createContext({renderWithProps:!1}),qEe="RC_TABLE_KEY";function KEe(e){return e==null?[]:Array.isArray(e)?e:[e]}function sy(e){var t=[],n={};return e.forEach(function(r){for(var a=r||{},o=a.key,i=a.dataIndex,s=o||KEe(i).join("-")||qEe;n[s];)s="".concat(s,"_next");n[s]=!0,t.push(s)}),t}function jR(e){return e!=null}function YEe(e){return e&&ht(e)==="object"&&!Array.isArray(e)&&!l.isValidElement(e)}function XEe(e,t,n,r,a,o){var i=l.useContext(bq),s=GEe(),c=_l(function(){if(jR(r))return[r];var u=t==null||t===""?[]:Array.isArray(t)?t:[t],d=fo(e,u),f=d,p=void 0;if(a){var g=a(d,e,n);YEe(g)?(f=g.children,p=g.props,i.renderWithProps=!0):f=g}return[f,p]},[s,e,r,t,a,n],function(u,d){if(o){var f=re(u,2),p=f[1],g=re(d,2),h=g[1];return o(h,p)}return i.renderWithProps?!0:!zo(u,d,!0)});return c}function ZEe(e,t,n,r){var a=e+t-1;return e<=r&&a>=n}function QEe(e,t){return wa(eo,function(n){var r=ZEe(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var JEe=function(t){var n=t.ellipsis,r=t.rowType,a=t.children,o,i=n===!0?{showTitle:!0}:n;return i&&(i.showTitle||r==="header")&&(typeof a=="string"||typeof a=="number"?o=a.toString():l.isValidElement(a)&&typeof a.props.children=="string"&&(o=a.props.children)),o};function e2e(e){var t,n,r,a,o,i,s,c,u=e.component,d=e.children,f=e.ellipsis,p=e.scope,g=e.prefixCls,h=e.className,b=e.align,y=e.record,S=e.render,v=e.dataIndex,x=e.renderIndex,C=e.shouldCellUpdate,w=e.index,E=e.rowType,I=e.colSpan,T=e.rowSpan,R=e.fixLeft,_=e.fixRight,$=e.firstFixLeft,P=e.lastFixLeft,D=e.firstFixRight,A=e.lastFixRight,O=e.appendNode,N=e.additionalProps,k=N===void 0?{}:N,M=e.isSticky,L="".concat(g,"-cell"),F=wa(eo,["supportSticky","allColumnsFixedLeft","rowHoverable"]),j=F.supportSticky,B=F.allColumnsFixedLeft,z=F.rowHoverable,H=XEe(y,v,x,d,S,C),V=re(H,2),te=V[0],Y=V[1],J={},G=typeof R=="number"&&j,U=typeof _=="number"&&j;G&&(J.position="sticky",J.left=R),U&&(J.position="sticky",J.right=_);var q=(t=(n=(r=Y==null?void 0:Y.colSpan)!==null&&r!==void 0?r:k.colSpan)!==null&&n!==void 0?n:I)!==null&&t!==void 0?t:1,X=(a=(o=(i=Y==null?void 0:Y.rowSpan)!==null&&i!==void 0?i:k.rowSpan)!==null&&o!==void 0?o:T)!==null&&a!==void 0?a:1,Q=QEe(w,X),ee=re(Q,2),oe=ee[0],le=ee[1],fe=Wt(function(ue){var ye;y&&le(w,w+X-1),k==null||(ye=k.onMouseEnter)===null||ye===void 0||ye.call(k,ue)}),ce=Wt(function(ue){var ye;y&&le(-1,-1),k==null||(ye=k.onMouseLeave)===null||ye===void 0||ye.call(k,ue)});if(q===0||X===0)return null;var Te=(s=k.title)!==null&&s!==void 0?s:JEe({rowType:E,ellipsis:f,children:te}),Se=ne(L,h,(c={},W(c,"".concat(L,"-fix-left"),G&&j),W(c,"".concat(L,"-fix-left-first"),$&&j),W(c,"".concat(L,"-fix-left-last"),P&&j),W(c,"".concat(L,"-fix-left-all"),P&&B&&j),W(c,"".concat(L,"-fix-right"),U&&j),W(c,"".concat(L,"-fix-right-first"),D&&j),W(c,"".concat(L,"-fix-right-last"),A&&j),W(c,"".concat(L,"-ellipsis"),f),W(c,"".concat(L,"-with-append"),O),W(c,"".concat(L,"-fix-sticky"),(G||U)&&M&&j),W(c,"".concat(L,"-row-hover"),!Y&&oe),c),k.className,Y==null?void 0:Y.className),ve={};b&&(ve.textAlign=b);var ae=Z(Z(Z(Z({},J),k.style),ve),Y==null?void 0:Y.style),ie=te;return ht(ie)==="object"&&!Array.isArray(ie)&&!l.isValidElement(ie)&&(ie=null),f&&(P||D)&&(ie=l.createElement("span",{className:"".concat(L,"-content")},ie)),l.createElement(u,pe({},Y,k,{className:Se,style:ae,title:Te,scope:p,onMouseEnter:z?fe:void 0,onMouseLeave:z?ce:void 0,colSpan:q!==1?q:null,rowSpan:X!==1?X:null}),O,ie)}const Bc=l.memo(e2e);function iN(e,t,n,r,a){var o=n[e]||{},i=n[t]||{},s,c;o.fixed==="left"?s=r.left[a==="rtl"?t:e]:i.fixed==="right"&&(c=r.right[a==="rtl"?e:t]);var u=!1,d=!1,f=!1,p=!1,g=n[t+1],h=n[e-1],b=g&&!g.fixed||h&&!h.fixed||n.every(function(C){return C.fixed==="left"});if(a==="rtl"){if(s!==void 0){var y=h&&h.fixed==="left";p=!y&&b}else if(c!==void 0){var S=g&&g.fixed==="right";f=!S&&b}}else if(s!==void 0){var v=g&&g.fixed==="left";u=!v&&b}else if(c!==void 0){var x=h&&h.fixed==="right";d=!x&&b}return{fixLeft:s,fixRight:c,lastFixLeft:u,firstFixRight:d,lastFixRight:f,firstFixLeft:p,isSticky:r.isSticky}}var yq=l.createContext({});function t2e(e){var t=e.className,n=e.index,r=e.children,a=e.colSpan,o=a===void 0?1:a,i=e.rowSpan,s=e.align,c=wa(eo,["prefixCls","direction"]),u=c.prefixCls,d=c.direction,f=l.useContext(yq),p=f.scrollColumnIndex,g=f.stickyOffsets,h=f.flattenColumns,b=n+o-1,y=b+1===p?o+1:o,S=iN(n,n+y-1,h,g,d);return l.createElement(Bc,pe({className:t,index:n,component:"td",prefixCls:u,record:null,dataIndex:null,align:s,colSpan:y,rowSpan:i,render:function(){return r}},S))}var n2e=["children"];function r2e(e){var t=e.children,n=xt(e,n2e);return l.createElement("tr",n,t)}function ly(e){var t=e.children;return t}ly.Row=r2e;ly.Cell=t2e;function a2e(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,a=wa(eo,"prefixCls"),o=r.length-1,i=r[o],s=l.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:i!=null&&i.scrollbar?o:null}},[i,r,o,n]);return l.createElement(yq.Provider,{value:s},l.createElement("tfoot",{className:"".concat(a,"-summary")},t))}const Sh=tf(a2e);var Sq=ly;function o2e(e){return null}function i2e(e){return null}function xq(e,t,n,r,a,o,i){e.push({record:t,indent:n,index:i});var s=o(t),c=a==null?void 0:a.has(s);if(t&&Array.isArray(t[r])&&c)for(var u=0;u1?$-1:0),D=1;D<$;D++)P[D-1]=arguments[D];w==null||w.apply(void 0,[_].concat(P))},I;typeof g=="string"?I=g:typeof g=="function"&&(I=g(e,n,r));var T=sy(o);return Z(Z({},a),{},{columnsKey:T,nestExpandable:h,expanded:S,hasNestChildren:v,record:e,onTriggerExpand:x,rowSupportExpand:b,expandable:y,rowProps:Z(Z({},C),{},{className:ne(I,C==null?void 0:C.className),onClick:E})})}function Eq(e){var t=e.prefixCls,n=e.children,r=e.component,a=e.cellComponent,o=e.className,i=e.expanded,s=e.colSpan,c=e.isEmpty,u=wa(eo,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),d=u.scrollbarSize,f=u.fixHeader,p=u.fixColumn,g=u.componentWidth,h=u.horizonScroll,b=n;return(c?h&&g:p)&&(b=l.createElement("div",{style:{width:g-(f?d:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},b)),l.createElement(r,{className:o,style:{display:i?null:"none"}},l.createElement(Bc,{component:a,prefixCls:t,colSpan:s},b))}function Iq(e,t,n,r,a){var o=e.record,i=e.prefixCls,s=e.columnsKey,c=e.fixedInfoList,u=e.expandIconColumnIndex,d=e.nestExpandable,f=e.indentSize,p=e.expandIcon,g=e.expanded,h=e.hasNestChildren,b=e.onTriggerExpand,y=s[n],S=c[n],v;n===(u||0)&&d&&(v=l.createElement(l.Fragment,null,l.createElement("span",{style:{paddingLeft:"".concat(f*r,"px")},className:"".concat(i,"-row-indent indent-level-").concat(r)}),p({prefixCls:i,expanded:g,expandable:h,record:o,onExpand:b})));var x;return t.onCell&&(x=t.onCell(o,a)),{key:y,fixedInfo:S,appendCellNode:v,additionalCellProps:x||{}}}function s2e(e){var t=e.className,n=e.style,r=e.record,a=e.index,o=e.renderIndex,i=e.rowKey,s=e.indent,c=s===void 0?0:s,u=e.rowComponent,d=e.cellComponent,f=e.scopeCellComponent,p=Cq(r,i,a,c),g=p.prefixCls,h=p.flattenColumns,b=p.expandedRowClassName,y=p.expandedRowRender,S=p.rowProps,v=p.expanded,x=p.rowSupportExpand,C=l.useRef(!1);C.current||(C.current=v);var w=b&&b(r,a,c),E=l.createElement(u,pe({},S,{"data-row-key":i,className:ne(t,"".concat(g,"-row"),"".concat(g,"-row-level-").concat(c),S==null?void 0:S.className,c>=1?w:""),style:Z(Z({},n),S==null?void 0:S.style)}),h.map(function(R,_){var $=R.render,P=R.dataIndex,D=R.className,A=Iq(p,R,_,c,a),O=A.key,N=A.fixedInfo,k=A.appendCellNode,M=A.additionalCellProps;return l.createElement(Bc,pe({className:D,ellipsis:R.ellipsis,align:R.align,scope:R.rowScope,component:R.rowScope?f:d,prefixCls:g,key:O,record:r,index:a,renderIndex:o,dataIndex:P,render:$,shouldCellUpdate:R.shouldCellUpdate},N,{appendNode:k,additionalProps:M}))})),I;if(x&&(C.current||v)){var T=y(r,a,c+1,v);I=l.createElement(Eq,{expanded:v,className:ne("".concat(g,"-expanded-row"),"".concat(g,"-expanded-row-level-").concat(c+1),w),prefixCls:g,component:u,cellComponent:d,colSpan:h.length,isEmpty:!1},T)}return l.createElement(l.Fragment,null,E,I)}const l2e=tf(s2e);function c2e(e){var t=e.columnKey,n=e.onColumnResize,r=l.useRef();return l.useEffect(function(){r.current&&n(t,r.current.offsetWidth)},[]),l.createElement(sa,{data:t},l.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},l.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function u2e(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize;return l.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0}},l.createElement(sa.Collection,{onBatchResize:function(o){o.forEach(function(i){var s=i.data,c=i.size;r(s,c.offsetWidth)})}},n.map(function(a){return l.createElement(c2e,{key:a,columnKey:a,onColumnResize:r})})))}function d2e(e){var t=e.data,n=e.measureColumnWidth,r=wa(eo,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),a=r.prefixCls,o=r.getComponent,i=r.onColumnResize,s=r.flattenColumns,c=r.getRowKey,u=r.expandedKeys,d=r.childrenColumnName,f=r.emptyNode,p=wq(t,d,u,c),g=l.useRef({renderWithProps:!1}),h=o(["body","wrapper"],"tbody"),b=o(["body","row"],"tr"),y=o(["body","cell"],"td"),S=o(["body","cell"],"th"),v;t.length?v=p.map(function(C,w){var E=C.record,I=C.indent,T=C.index,R=c(E,w);return l.createElement(l2e,{key:R,rowKey:R,record:E,index:w,renderIndex:T,rowComponent:b,cellComponent:y,scopeCellComponent:S,getRowKey:c,indent:I})}):v=l.createElement(Eq,{expanded:!0,className:"".concat(a,"-placeholder"),prefixCls:a,component:b,cellComponent:y,colSpan:s.length,isEmpty:!0},f);var x=sy(s);return l.createElement(bq.Provider,{value:g.current},l.createElement(h,{className:"".concat(a,"-tbody")},n&&l.createElement(u2e,{prefixCls:a,columnsKey:x,onColumnResize:i}),v))}const f2e=tf(d2e);var p2e=["expandable"],Cp="RC_TABLE_INTERNAL_COL_DEFINE";function g2e(e){var t=e.expandable,n=xt(e,p2e),r;return"expandable"in e?r=Z(Z({},n),t):r=n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}var m2e=["columnType"];function Tq(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,a=[],o=r||n.length,i=!1,s=o-1;s>=0;s-=1){var c=t[s],u=n&&n[s],d=u&&u[Cp];if(c||d||i){var f=d||{};f.columnType;var p=xt(f,m2e);a.unshift(l.createElement("col",pe({key:s,style:{width:c}},p))),i=!0}}return l.createElement("colgroup",null,a)}var h2e=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function v2e(e,t){return l.useMemo(function(){for(var n=[],r=0;r1?"colgroup":"col":null,ellipsis:y.ellipsis,align:y.align,component:i,prefixCls:d,key:g[b]},S,{additionalProps:v,rowType:"header"}))}))};function S2e(e){var t=[];function n(i,s){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[c]=t[c]||[];var u=s,d=i.filter(Boolean).map(function(f){var p={key:f.key,className:f.className||"",children:f.title,column:f,colStart:u},g=1,h=f.children;return h&&h.length>0&&(g=n(h,u,c+1).reduce(function(b,y){return b+y},0),p.hasSubColumns=!0),"colSpan"in f&&(g=f.colSpan),"rowSpan"in f&&(p.rowSpan=f.rowSpan),p.colSpan=g,p.colEnd=p.colStart+g-1,t[c].push(p),u+=g,g});return d}n(e,0);for(var r=t.length,a=function(s){t[s].forEach(function(c){!("rowSpan"in c)&&!c.hasSubColumns&&(c.rowSpan=r-s)})},o=0;o1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function w2e(e,t,n){return l.useMemo(function(){if(t&&t>0){var r=0,a=0;e.forEach(function(p){var g=zP(t,p.width);g?r+=g:a+=1});var o=Math.max(t,n),i=Math.max(o-r,a),s=a,c=i/a,u=0,d=e.map(function(p){var g=Z({},p),h=zP(t,g.width);if(h)g.width=h;else{var b=Math.floor(c);g.width=s===1?i:b,i-=b,s-=1}return u+=g.width,g});if(u0?Z(Z({},t),{},{children:Rq(n)}):t})}function BR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&ht(n)==="object"}).reduce(function(n,r,a){var o=r.fixed,i=o===!0?"left":o,s="".concat(t,"-").concat(a),c=r.children;return c&&c.length>0?[].concat(De(n),De(BR(c,s).map(function(u){return Z({fixed:i},u)}))):[].concat(De(n),[Z(Z({key:s},r),{},{fixed:i})])},[])}function I2e(e){return e.map(function(t){var n=t.fixed,r=xt(t,E2e),a=n;return n==="left"?a="right":n==="right"&&(a="left"),Z({fixed:a},r)})}function T2e(e,t){var n=e.prefixCls,r=e.columns,a=e.children,o=e.expandable,i=e.expandedKeys,s=e.columnTitle,c=e.getRowKey,u=e.onTriggerExpand,d=e.expandIcon,f=e.rowExpandable,p=e.expandIconColumnIndex,g=e.direction,h=e.expandRowByClick,b=e.columnWidth,y=e.fixed,S=e.scrollWidth,v=e.clientWidth,x=l.useMemo(function(){var P=r||sN(a)||[];return Rq(P.slice())},[r,a]),C=l.useMemo(function(){if(o){var P,D=x.slice();if(!D.includes(Vs)){var A=p||0;A>=0&&D.splice(A,0,Vs)}var O=D.indexOf(Vs);D=D.filter(function(L,F){return L!==Vs||F===O});var N=x[O],k;(y==="left"||y)&&!p?k="left":(y==="right"||y)&&p===x.length?k="right":k=N?N.fixed:null;var M=(P={},W(P,Cp,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),W(P,"title",s),W(P,"fixed",k),W(P,"className","".concat(n,"-row-expand-icon-cell")),W(P,"width",b),W(P,"render",function(F,j,B){var z=c(j,B),H=i.has(z),V=f?f(j):!0,te=d({prefixCls:n,expanded:H,expandable:V,record:j,onExpand:u});return h?l.createElement("span",{onClick:function(J){return J.stopPropagation()}},te):te}),P);return D.map(function(L){return L===Vs?M:L})}return x.filter(function(L){return L!==Vs})},[o,x,c,i,d,g]),w=l.useMemo(function(){var P=C;return t&&(P=t(P)),P.length||(P=[{render:function(){return null}}]),P},[t,C,g]),E=l.useMemo(function(){return g==="rtl"?I2e(BR(w)):BR(w)},[w,g,S]),I=l.useMemo(function(){for(var P=-1,D=E.length-1;D>=0;D-=1){var A=E[D].fixed;if(A==="left"||A===!0){P=D;break}}if(P>=0)for(var O=0;O<=P;O+=1){var N=E[O].fixed;if(N!=="left"&&N!==!0)return!0}var k=E.findIndex(function(F){var j=F.fixed;return j==="right"});if(k>=0)for(var M=k;M=f&&(M=f-p),i({scrollLeft:M/f*(d+2)}),v.current.x=A.pageX},$=function(){I.current=Ut(function(){if(o.current){var A=NR(o.current).top,O=A+o.current.offsetHeight,N=c===window?document.documentElement.scrollTop+window.innerHeight:NR(c).top+c.clientHeight;O-xM()<=N||A>=N-s?S(function(k){return Z(Z({},k),{},{isHiddenScrollBar:!0})}):S(function(k){return Z(Z({},k),{},{isHiddenScrollBar:!1})})}})},P=function(A){S(function(O){return Z(Z({},O),{},{scrollLeft:A/d*f||0})})};return l.useImperativeHandle(n,function(){return{setScrollLeft:P,checkScrollBarVisible:$}}),l.useEffect(function(){var D=Pi(document.body,"mouseup",T,!1),A=Pi(document.body,"mousemove",_,!1);return $(),function(){D.remove(),A.remove()}},[p,w]),l.useEffect(function(){var D=Pi(c,"scroll",$,!1),A=Pi(window,"resize",$,!1);return function(){D.remove(),A.remove()}},[c]),l.useEffect(function(){y.isHiddenScrollBar||S(function(D){var A=o.current;return A?Z(Z({},D),{},{scrollLeft:A.scrollLeft/A.scrollWidth*A.clientWidth}):D})},[y.isHiddenScrollBar]),d<=f||!p||y.isHiddenScrollBar?null:l.createElement("div",{style:{height:xM(),width:f,bottom:s},className:"".concat(u,"-sticky-scroll")},l.createElement("div",{onMouseDown:R,ref:g,className:ne("".concat(u,"-sticky-scroll-bar"),W({},"".concat(u,"-sticky-scroll-bar-active"),w)),style:{width:"".concat(p,"px"),transform:"translate3d(".concat(y.scrollLeft,"px, 0, 0)")}}))};const D2e=l.forwardRef(P2e);var $q="rc-table",L2e=[],F2e={};function j2e(){return"No Data"}function B2e(e,t){var n,r=Z({rowKey:"key",prefixCls:$q,emptyText:j2e},e),a=r.prefixCls,o=r.className,i=r.rowClassName,s=r.style,c=r.data,u=r.rowKey,d=r.scroll,f=r.tableLayout,p=r.direction,g=r.title,h=r.footer,b=r.summary,y=r.caption,S=r.id,v=r.showHeader,x=r.components,C=r.emptyText,w=r.onRow,E=r.onHeaderRow,I=r.onScroll,T=r.internalHooks,R=r.transformColumns,_=r.internalRefs,$=r.tailor,P=r.getContainerWidth,D=r.sticky,A=r.rowHoverable,O=A===void 0?!0:A,N=c||L2e,k=!!N.length,M=T===pm,L=l.useCallback(function(pt,Dt){return fo(x,pt)||Dt},[x]),F=l.useMemo(function(){return typeof u=="function"?u:function(pt){var Dt=pt&&pt[u];return Dt}},[u]),j=L(["body"]),B=k2e(),z=re(B,3),H=z[0],V=z[1],te=z[2],Y=$2e(r,N,F),J=re(Y,6),G=J[0],U=J[1],q=J[2],X=J[3],Q=J[4],ee=J[5],oe=d==null?void 0:d.x,le=l.useState(0),fe=re(le,2),ce=fe[0],Te=fe[1],Se=T2e(Z(Z(Z({},r),G),{},{expandable:!!G.expandedRowRender,columnTitle:G.columnTitle,expandedKeys:q,getRowKey:F,onTriggerExpand:ee,expandIcon:X,expandIconColumnIndex:G.expandIconColumnIndex,direction:p,scrollWidth:M&&$&&typeof oe=="number"?oe:null,clientWidth:ce}),M?R:null),ve=re(Se,4),ae=ve[0],ie=ve[1],ue=ve[2],ye=ve[3],Ee=ue??oe,Me=l.useMemo(function(){return{columns:ae,flattenColumns:ie}},[ae,ie]),Ie=l.useRef(),Ce=l.useRef(),me=l.useRef(),we=l.useRef();l.useImperativeHandle(t,function(){return{nativeElement:Ie.current,scrollTo:function(Dt){var yn;if(me.current instanceof HTMLElement){var fr=Dt.index,mn=Dt.top,ua=Dt.key;if(mn){var Ia;(Ia=me.current)===null||Ia===void 0||Ia.scrollTo({top:mn})}else{var ra,Fa=ua??F(N[fr]);(ra=me.current.querySelector('[data-row-key="'.concat(Fa,'"]')))===null||ra===void 0||ra.scrollIntoView()}}else(yn=me.current)!==null&&yn!==void 0&&yn.scrollTo&&me.current.scrollTo(Dt)}}});var _e=l.useRef(),Ne=l.useState(!1),he=re(Ne,2),ke=he[0],xe=he[1],ge=l.useState(!1),Pe=re(ge,2),Ve=Pe[0],Ae=Pe[1],be=_q(new Map),Oe=re(be,2),Fe=Oe[0],Ke=Oe[1],He=sy(ie),ze=He.map(function(pt){return Fe.get(pt)}),Ze=l.useMemo(function(){return ze},[ze.join("_")]),je=M2e(Ze,ie,p),Je=d&&jR(d.y),mt=d&&jR(Ee)||!!G.fixed,ft=mt&&ie.some(function(pt){var Dt=pt.fixed;return Dt}),qe=l.useRef(),We=A2e(D,a),Qe=We.isSticky,ct=We.offsetHeader,Rt=We.offsetSummary,$t=We.offsetScroll,vt=We.stickyClassName,lt=We.container,ot=l.useMemo(function(){return b==null?void 0:b(N)},[b,N]),et=(Je||Qe)&&l.isValidElement(ot)&&ot.type===ly&&ot.props.fixed,bt,rt,St;Je&&(rt={overflowY:"scroll",maxHeight:d.y}),mt&&(bt={overflowX:"auto"},Je||(rt={overflowY:"hidden"}),St={width:Ee===!0?"auto":Ee,minWidth:"100%"});var Et=l.useCallback(function(pt,Dt){Vd(Ie.current)&&Ke(function(yn){if(yn.get(pt)!==Dt){var fr=new Map(yn);return fr.set(pt,Dt),fr}return yn})},[]),tt=N2e(),at=re(tt,2),Ye=at[0],Ge=at[1];function yt(pt,Dt){Dt&&(typeof Dt=="function"?Dt(pt):Dt.scrollLeft!==pt&&(Dt.scrollLeft=pt,Dt.scrollLeft!==pt&&setTimeout(function(){Dt.scrollLeft=pt},0)))}var Tt=Wt(function(pt){var Dt=pt.currentTarget,yn=pt.scrollLeft,fr=p==="rtl",mn=typeof yn=="number"?yn:Dt.scrollLeft,ua=Dt||F2e;if(!Ge()||Ge()===ua){var Ia;Ye(ua),yt(mn,Ce.current),yt(mn,me.current),yt(mn,_e.current),yt(mn,(Ia=qe.current)===null||Ia===void 0?void 0:Ia.setScrollLeft)}var ra=Dt||Ce.current;if(ra){var Fa=ra.scrollWidth,wi=ra.clientWidth;if(Fa===wi){xe(!1),Ae(!1);return}fr?(xe(-mn0)):(xe(mn>0),Ae(mn1?y-A:0,N=Z(Z(Z({},T),u),{},{flex:"0 0 ".concat(A,"px"),width:"".concat(A,"px"),marginRight:O,pointerEvents:"auto"}),k=l.useMemo(function(){return f?P<=1:_===0||P===0||P>1},[P,_,f]);k?N.visibility="hidden":f&&(N.height=p==null?void 0:p(P));var M=k?function(){return null}:g,L={};return(P===0||_===0)&&(L.rowSpan=1,L.colSpan=1),l.createElement(Bc,pe({className:ne(b,d),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:i,prefixCls:t.prefixCls,key:C,record:c,index:o,renderIndex:s,dataIndex:h,render:M,shouldCellUpdate:n.shouldCellUpdate},w,{appendNode:E,additionalProps:Z(Z({},I),{},{style:N},L)}))}var V2e=["data","index","className","rowKey","style","extra","getHeight"],W2e=l.forwardRef(function(e,t){var n=e.data,r=e.index,a=e.className,o=e.rowKey,i=e.style,s=e.extra,c=e.getHeight,u=xt(e,V2e),d=n.record,f=n.indent,p=n.index,g=wa(eo,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),h=g.scrollX,b=g.flattenColumns,y=g.prefixCls,S=g.fixColumn,v=g.componentWidth,x=wa(lN,["getComponent"]),C=x.getComponent,w=Cq(d,o,r,f),E=C(["body","row"],"div"),I=C(["body","cell"],"div"),T=w.rowSupportExpand,R=w.expanded,_=w.rowProps,$=w.expandedRowRender,P=w.expandedRowClassName,D;if(T&&R){var A=$(d,r,f+1,R),O=P==null?void 0:P(d,r,f),N={};S&&(N={style:W({},"--virtual-width","".concat(v,"px"))});var k="".concat(y,"-expanded-row-cell");D=l.createElement(E,{className:ne("".concat(y,"-expanded-row"),"".concat(y,"-expanded-row-level-").concat(f+1),O)},l.createElement(Bc,{component:I,prefixCls:y,className:ne(k,W({},"".concat(k,"-fixed"),S)),additionalProps:N},A))}var M=Z(Z({},i),{},{width:h});s&&(M.position="absolute",M.pointerEvents="none");var L=l.createElement(E,pe({},_,u,{"data-row-key":o,ref:T?null:t,className:ne(a,"".concat(y,"-row"),_==null?void 0:_.className,W({},"".concat(y,"-row-extra"),s)),style:Z(Z({},M),_==null?void 0:_.style)}),b.map(function(F,j){return l.createElement(U2e,{key:j,component:I,rowInfo:w,column:F,colIndex:j,indent:f,index:r,renderIndex:p,record:d,inverse:s,getHeight:c})}));return T?l.createElement("div",{ref:t},L,D):L}),VP=tf(W2e),G2e=l.forwardRef(function(e,t){var n=e.data,r=e.onScroll,a=wa(eo,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),o=a.flattenColumns,i=a.onColumnResize,s=a.getRowKey,c=a.expandedKeys,u=a.prefixCls,d=a.childrenColumnName,f=a.emptyNode,p=a.scrollX,g=wa(lN),h=g.sticky,b=g.scrollY,y=g.listItemHeight,S=g.getComponent,v=g.onScroll,x=l.useRef(),C=wq(n,d,c,s),w=l.useMemo(function(){var N=0;return o.map(function(k){var M=k.width,L=k.key;return N+=M,[L,M,N]})},[o]),E=l.useMemo(function(){return w.map(function(N){return N[2]})},[w]);l.useEffect(function(){w.forEach(function(N){var k=re(N,2),M=k[0],L=k[1];i(M,L)})},[w]),l.useImperativeHandle(t,function(){var N={scrollTo:function(M){var L;(L=x.current)===null||L===void 0||L.scrollTo(M)}};return Object.defineProperty(N,"scrollLeft",{get:function(){var M;return((M=x.current)===null||M===void 0?void 0:M.getScrollInfo().x)||0},set:function(M){var L;(L=x.current)===null||L===void 0||L.scrollTo({left:M})}}),N});var I=function(k,M){var L,F=(L=C[M])===null||L===void 0?void 0:L.record,j=k.onCell;if(j){var B,z=j(F,M);return(B=z==null?void 0:z.rowSpan)!==null&&B!==void 0?B:1}return 1},T=function(k){var M=k.start,L=k.end,F=k.getSize,j=k.offsetY;if(L<0)return null;for(var B=o.filter(function(ee){return I(ee,M)===0}),z=M,H=function(oe){if(B=B.filter(function(le){return I(le,oe)===0}),!B.length)return z=oe,1},V=M;V>=0&&!H(V);V-=1);for(var te=o.filter(function(ee){return I(ee,L)!==1}),Y=L,J=function(oe){if(te=te.filter(function(le){return I(le,oe)!==1}),!te.length)return Y=Math.max(oe-1,L),1},G=L;G1})&&U.push(oe)},X=z;X<=Y;X+=1)q(X);var Q=U.map(function(ee){var oe=C[ee],le=s(oe.record,ee),fe=function(Se){var ve=ee+Se-1,ae=s(C[ve].record,ve),ie=F(le,ae);return ie.bottom-ie.top},ce=F(le);return l.createElement(VP,{key:ee,data:oe,rowKey:le,index:ee,style:{top:-j+ce.top},extra:!0,getHeight:fe})});return Q},R=l.useMemo(function(){return{columnsOffset:E}},[E]),_="".concat(u,"-tbody"),$=S(["body","wrapper"]),P=S(["body","row"],"div"),D=S(["body","cell"],"div"),A;if(C.length){var O={};h&&(O.position="sticky",O.bottom=0,ht(h)==="object"&&h.offsetScroll&&(O.bottom=h.offsetScroll)),A=l.createElement(M0,{fullHeight:!1,ref:x,prefixCls:"".concat(_,"-virtual"),styles:{horizontalScrollBar:O},className:_,height:b,itemHeight:y||24,data:C,itemKey:function(k){return s(k.record)},component:$,scrollWidth:p,onVirtualScroll:function(k){var M=k.x;r({scrollLeft:M})},onScroll:v,extraRender:T},function(N,k,M){var L=s(N.record,k);return l.createElement(VP,{data:N,rowKey:L,index:k,style:M.style})})}else A=l.createElement(P,{className:ne("".concat(u,"-placeholder"))},l.createElement(Bc,{component:D,prefixCls:u},f));return l.createElement(Nq.Provider,{value:R},A)}),q2e=tf(G2e),K2e=function(t,n){var r=n.ref,a=n.onScroll;return l.createElement(q2e,{ref:r,data:t,onScroll:a})};function Y2e(e,t){var n=e.columns,r=e.scroll,a=e.sticky,o=e.prefixCls,i=o===void 0?$q:o,s=e.className,c=e.listItemHeight,u=e.components,d=e.onScroll,f=r||{},p=f.x,g=f.y;typeof p!="number"&&(p=1),typeof g!="number"&&(g=500);var h=Wt(function(S,v){return fo(u,S)||v}),b=Wt(d),y=l.useMemo(function(){return{sticky:a,scrollY:g,listItemHeight:c,getComponent:h,onScroll:b}},[a,g,c,h,b]);return l.createElement(lN.Provider,{value:y},l.createElement(nf,pe({},e,{className:ne(s,"".concat(i,"-virtual")),scroll:Z(Z({},r),{},{x:p}),components:Z(Z({},u),{},{body:K2e}),columns:n,internalHooks:pm,tailor:!0,ref:t})))}var X2e=l.forwardRef(Y2e);function kq(e){return vq(X2e,e)}kq();const Z2e=e=>null,Q2e=e=>null;var cN=l.createContext(null),J2e=function(t){for(var n=t.prefixCls,r=t.level,a=t.isStart,o=t.isEnd,i="".concat(n,"-indent-unit"),s=[],c=0;c=0&&n.splice(r,1),n}function ns(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function uN(e){return e.split("-")}function aIe(e,t){var n=[],r=Va(t,e);function a(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];o.forEach(function(i){var s=i.key,c=i.children;n.push(s),a(c)})}return a(r.children),n}function oIe(e){if(e.parent){var t=uN(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function iIe(e){var t=uN(e.pos);return Number(t[t.length-1])===0}function qP(e,t,n,r,a,o,i,s,c,u){var d,f=e.clientX,p=e.clientY,g=e.target.getBoundingClientRect(),h=g.top,b=g.height,y=(u==="rtl"?-1:1)*(((a==null?void 0:a.x)||0)-f),S=(y-12)/r,v=c.filter(function(N){var k;return(k=s[N])===null||k===void 0||(k=k.children)===null||k===void 0?void 0:k.length}),x=Va(s,n.props.eventKey);if(p-1.5?o({dragNode:D,dropNode:A,dropPosition:1})?_=1:O=!1:o({dragNode:D,dropNode:A,dropPosition:0})?_=0:o({dragNode:D,dropNode:A,dropPosition:1})?_=1:O=!1:o({dragNode:D,dropNode:A,dropPosition:1})?_=1:O=!1,{dropPosition:_,dropLevelOffset:$,dropTargetKey:x.key,dropTargetPos:x.pos,dragOverNodeKey:R,dropContainerKey:_===0?null:((d=x.parent)===null||d===void 0?void 0:d.key)||null,dropAllowed:O}}function KP(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function b1(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(ht(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return vn(!1,"`checkedKeys` is not an array or an object"),null;return t}function zR(e,t){var n=new Set;function r(a){if(!n.has(a)){var o=Va(t,a);if(o){n.add(a);var i=o.parent,s=o.node;s.disabled||i&&r(i.key)}}}return(e||[]).forEach(function(a){r(a)}),De(n)}function sIe(e){const[t,n]=l.useState(null);return[l.useCallback((o,i,s)=>{const c=t??o,u=Math.min(c||0,o),d=Math.max(c||0,o),f=i.slice(u,d+1).map(h=>e(h)),p=f.some(h=>!s.has(h)),g=[];return f.forEach(h=>{p?(s.has(h)||g.push(h),s.add(h)):(s.delete(h),g.push(h))}),n(p?d:null),g},[t]),o=>{n(o)}]}const Bs={},HR="SELECT_ALL",UR="SELECT_INVERT",VR="SELECT_NONE",YP=[],Aq=(e,t)=>{let n=[];return(t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&(n=[].concat(De(n),De(Aq(e,r[e]))))}),n},lIe=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:a,getCheckboxProps:o,onChange:i,onSelect:s,onSelectAll:c,onSelectInvert:u,onSelectNone:d,onSelectMultiple:f,columnWidth:p,type:g,selections:h,fixed:b,renderCell:y,hideSelectAll:S,checkStrictly:v=!0}=t||{},{prefixCls:x,data:C,pageData:w,getRecordByKey:E,getRowKey:I,expandType:T,childrenColumnName:R,locale:_,getPopupContainer:$}=e,P=$l(),[D,A]=sIe(q=>q),[O,N]=sn(r||a||YP,{value:r}),k=l.useRef(new Map),M=l.useCallback(q=>{if(n){const X=new Map;q.forEach(Q=>{let ee=E(Q);!ee&&k.current.has(Q)&&(ee=k.current.get(Q)),X.set(Q,ee)}),k.current=X}},[E,n]);l.useEffect(()=>{M(O)},[O]);const{keyEntities:L}=l.useMemo(()=>{if(v)return{keyEntities:null};let q=C;if(n){const X=new Set(C.map((ee,oe)=>I(ee,oe))),Q=Array.from(k.current).reduce((ee,oe)=>{let[le,fe]=oe;return X.has(le)?ee:ee.concat(fe)},[]);q=[].concat(De(q),De(Q))}return J0(q,{externalGetKey:I,childrenPropName:R})},[C,I,v,R,n]),F=l.useMemo(()=>Aq(R,w),[R,w]),j=l.useMemo(()=>{const q=new Map;return F.forEach((X,Q)=>{const ee=I(X,Q),oe=(o?o(X):null)||{};q.set(ee,oe)}),q},[F,I,o]),B=l.useCallback(q=>{var X;return!!(!((X=j.get(I(q)))===null||X===void 0)&&X.disabled)},[j,I]),[z,H]=l.useMemo(()=>{if(v)return[O||[],[]];const{checkedKeys:q,halfCheckedKeys:X}=hs(O,!0,L,B);return[q||[],X]},[O,v,L,B]),V=l.useMemo(()=>{const q=g==="radio"?z.slice(0,1):z;return new Set(q)},[z,g]),te=l.useMemo(()=>g==="radio"?new Set:new Set(H),[H,g]);l.useEffect(()=>{t||N(YP)},[!!t]);const Y=l.useCallback((q,X)=>{let Q,ee;M(q),n?(Q=q,ee=q.map(oe=>k.current.get(oe))):(Q=[],ee=[],q.forEach(oe=>{const le=E(oe);le!==void 0&&(Q.push(oe),ee.push(le))})),N(Q),i==null||i(Q,ee,{type:X})},[N,E,i,n]),J=l.useCallback((q,X,Q,ee)=>{if(s){const oe=Q.map(le=>E(le));s(E(q),X,oe,ee)}Y(Q,"single")},[s,E,Y]),G=l.useMemo(()=>!h||S?null:(h===!0?[HR,UR,VR]:h).map(X=>X===HR?{key:"all",text:_.selectionAll,onSelect(){Y(C.map((Q,ee)=>I(Q,ee)).filter(Q=>{const ee=j.get(Q);return!(ee!=null&&ee.disabled)||V.has(Q)}),"all")}}:X===UR?{key:"invert",text:_.selectInvert,onSelect(){const Q=new Set(V);w.forEach((oe,le)=>{const fe=I(oe,le),ce=j.get(fe);ce!=null&&ce.disabled||(Q.has(fe)?Q.delete(fe):Q.add(fe))});const ee=Array.from(Q);u&&(P.deprecated(!1,"onSelectInvert","onChange"),u(ee)),Y(ee,"invert")}}:X===VR?{key:"none",text:_.selectNone,onSelect(){d==null||d(),Y(Array.from(V).filter(Q=>{const ee=j.get(Q);return ee==null?void 0:ee.disabled}),"none")}}:X).map(X=>Object.assign(Object.assign({},X),{onSelect:function(){for(var Q,ee,oe=arguments.length,le=new Array(oe),fe=0;fe{var X;if(!t)return q.filter(me=>me!==Bs);let Q=De(q);const ee=new Set(V),oe=F.map(I).filter(me=>!j.get(me).disabled),le=oe.every(me=>ee.has(me)),fe=oe.some(me=>ee.has(me)),ce=()=>{const me=[];le?oe.forEach(_e=>{ee.delete(_e),me.push(_e)}):oe.forEach(_e=>{ee.has(_e)||(ee.add(_e),me.push(_e))});const we=Array.from(ee);c==null||c(!le,we.map(_e=>E(_e)),me.map(_e=>E(_e))),Y(we,"all"),A(null)};let Te,Se;if(g!=="radio"){let me;if(G){const ke={getPopupContainer:$,items:G.map((xe,ge)=>{const{key:Pe,text:Ve,onSelect:Ae}=xe;return{key:Pe??ge,onClick:()=>{Ae==null||Ae(oe)},label:Ve}})};me=l.createElement("div",{className:`${x}-selection-extra`},l.createElement(ny,{menu:ke,getPopupContainer:$},l.createElement("span",null,l.createElement(D0,null))))}const we=F.map((ke,xe)=>{const ge=I(ke,xe),Pe=j.get(ge)||{};return Object.assign({checked:ee.has(ge)},Pe)}).filter(ke=>{let{disabled:xe}=ke;return xe}),_e=!!we.length&&we.length===F.length,Ne=_e&&we.every(ke=>{let{checked:xe}=ke;return xe}),he=_e&&we.some(ke=>{let{checked:xe}=ke;return xe});Se=l.createElement(Rs,{checked:_e?Ne:!!F.length&&le,indeterminate:_e?!Ne&&he:!le&&fe,onChange:ce,disabled:F.length===0||_e,"aria-label":me?"Custom selection":"Select all",skipGroup:!0}),Te=!S&&l.createElement("div",{className:`${x}-selection`},Se,me)}let ve;g==="radio"?ve=(me,we,_e)=>{const Ne=I(we,_e),he=ee.has(Ne);return{node:l.createElement(mo,Object.assign({},j.get(Ne),{checked:he,onClick:ke=>ke.stopPropagation(),onChange:ke=>{ee.has(Ne)||J(Ne,!0,[Ne],ke.nativeEvent)}})),checked:he}}:ve=(me,we,_e)=>{var Ne;const he=I(we,_e),ke=ee.has(he),xe=te.has(he),ge=j.get(he);let Pe;return T==="nest"?Pe=xe:Pe=(Ne=ge==null?void 0:ge.indeterminate)!==null&&Ne!==void 0?Ne:xe,{node:l.createElement(Rs,Object.assign({},ge,{indeterminate:Pe,checked:ke,skipGroup:!0,onClick:Ve=>Ve.stopPropagation(),onChange:Ve=>{let{nativeEvent:Ae}=Ve;const{shiftKey:be}=Ae,Oe=oe.findIndex(Ke=>Ke===he),Fe=z.some(Ke=>oe.includes(Ke));if(be&&v&&Fe){const Ke=D(Oe,oe,ee),He=Array.from(ee);f==null||f(!ke,He.map(ze=>E(ze)),Ke.map(ze=>E(ze))),Y(He,"multiple")}else{const Ke=z;if(v){const He=ke?Ri(Ke,he):ns(Ke,he);J(he,!ke,He,Ae)}else{const He=hs([].concat(De(Ke),[he]),!0,L,B),{checkedKeys:ze,halfCheckedKeys:Ze}=He;let je=ze;if(ke){const Je=new Set(ze);Je.delete(he),je=hs(Array.from(Je),{checked:!1,halfCheckedKeys:Ze},L,B).checkedKeys}J(he,!ke,je,Ae)}}A(ke?null:Oe)}})),checked:ke}};const ae=(me,we,_e)=>{const{node:Ne,checked:he}=ve(me,we,_e);return y?y(he,we,_e,Ne):Ne};if(!Q.includes(Bs))if(Q.findIndex(me=>{var we;return((we=me[Cp])===null||we===void 0?void 0:we.columnType)==="EXPAND_COLUMN"})===0){const[me,...we]=Q;Q=[me,Bs].concat(De(we))}else Q=[Bs].concat(De(Q));const ie=Q.indexOf(Bs);Q=Q.filter((me,we)=>me!==Bs||we===ie);const ue=Q[ie-1],ye=Q[ie+1];let Ee=b;Ee===void 0&&((ye==null?void 0:ye.fixed)!==void 0?Ee=ye.fixed:(ue==null?void 0:ue.fixed)!==void 0&&(Ee=ue.fixed)),Ee&&ue&&((X=ue[Cp])===null||X===void 0?void 0:X.columnType)==="EXPAND_COLUMN"&&ue.fixed===void 0&&(ue.fixed=Ee);const Me=ne(`${x}-selection-col`,{[`${x}-selection-col-with-dropdown`]:h&&g==="checkbox"}),Ie=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(Se):t.columnTitle:Te,Ce={fixed:Ee,width:p,className:`${x}-selection-column`,title:Ie(),render:ae,onCell:t.onCell,[Cp]:{className:Me}};return Q.map(me=>me===Bs?Ce:me)},[I,F,t,z,V,te,p,G,T,j,f,J,B]),V]};function cIe(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){const r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e}function uIe(e,t){return l.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy<"u"?new Proxy(r,{get(a,o){return n[o]?n[o]:Reflect.get(a,o)}}):cIe(r,n)})}function dIe(e){return t=>{const{prefixCls:n,onExpand:r,record:a,expanded:o,expandable:i}=t,s=`${n}-row-expand-icon`;return l.createElement("button",{type:"button",onClick:c=>{r(a,c),c.stopPropagation()},className:ne(s,{[`${s}-spaced`]:!i,[`${s}-expanded`]:i&&o,[`${s}-collapsed`]:i&&!o}),"aria-label":o?e.collapse:e.expand,"aria-expanded":o})}}function fIe(e){return(n,r)=>{const a=n.querySelector(`.${e}-container`);let o=r;if(a){const i=getComputedStyle(a),s=parseInt(i.borderLeftWidth,10),c=parseInt(i.borderRightWidth,10);o=r-s-c}return o}}const wl=(e,t)=>"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function rf(e,t){return t?`${t}-${e}`:`${e}`}const cy=(e,t)=>typeof e=="function"?e(t):e,pIe=(e,t)=>{const n=cy(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n};function gIe(e){const t=l.useRef(e),n=fO();return[()=>t.current,r=>{t.current=r,n()}]}function mIe(e){var t=e.dropPosition,n=e.dropLevelOffset,r=e.indent,a={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:a.top=0,a.left=-n*r;break;case 1:a.bottom=0,a.left=-n*r;break;case 0:a.bottom=0,a.left=r;break}return l.createElement("div",{style:a})}function Mq(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function hIe(e,t){var n=l.useState(!1),r=re(n,2),a=r[0],o=r[1];Xt(function(){if(a)return e(),function(){t()}},[a]),Xt(function(){return o(!0),function(){o(!1)}},[])}var vIe=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Pq=function(t,n){var r=t.className,a=t.style,o=t.motion,i=t.motionNodes,s=t.motionType,c=t.onMotionStart,u=t.onMotionEnd,d=t.active,f=t.treeNodeRequiredProps,p=xt(t,vIe),g=l.useState(!0),h=re(g,2),b=h[0],y=h[1],S=l.useContext(cN),v=S.prefixCls,x=i&&s!=="hide";Xt(function(){i&&x!==b&&y(x)},[i]);var C=function(){i&&c()},w=l.useRef(!1),E=function(){i&&!w.current&&(w.current=!0,u())};hIe(C,E);var I=function(R){x===R&&E()};return i?l.createElement(Qr,pe({ref:n,visible:b},o,{motionAppear:s==="show",onVisibleChanged:I}),function(T,R){var _=T.className,$=T.style;return l.createElement("div",{ref:R,className:ne("".concat(v,"-treenode-motion"),_),style:$},i.map(function(P){var D=Object.assign({},(Mq(P.data),P.data)),A=P.title,O=P.key,N=P.isStart,k=P.isEnd;delete D.children;var M=xp(O,f);return l.createElement(Id,pe({},D,M,{title:A,active:d,data:P.data,key:O,isStart:N,isEnd:k}))}))}):l.createElement(Id,pe({domRef:n,className:r,style:a},p,{active:d}))};Pq.displayName="MotionTreeNode";var bIe=l.forwardRef(Pq);function yIe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function a(o,i){var s=new Map;o.forEach(function(u){s.set(u,!0)});var c=i.filter(function(u){return!s.has(u)});return c.length===1?c[0]:null}return n ").concat(t);return t}var Lq=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var a=e.expandedKeys,o=e.selectedKeys,i=e.checkedKeys,s=e.loadedKeys,c=e.loadingKeys,u=e.halfCheckedKeys,d=e.keyEntities,f=e.disabled,p=e.dragging,g=e.dragOverNodeKey,h=e.dropPosition,b=e.motion,y=e.height,S=e.itemHeight,v=e.virtual,x=e.focusable,C=e.activeItem,w=e.focused,E=e.tabIndex,I=e.onKeyDown,T=e.onFocus,R=e.onBlur,_=e.onActiveChange,$=e.onListChangeStart,P=e.onListChangeEnd,D=xt(e,SIe),A=l.useRef(null),O=l.useRef(null);l.useImperativeHandle(t,function(){return{scrollTo:function(ve){A.current.scrollTo(ve)},getIndentWidth:function(){return O.current.offsetWidth}}});var N=l.useState(a),k=re(N,2),M=k[0],L=k[1],F=l.useState(r),j=re(F,2),B=j[0],z=j[1],H=l.useState(r),V=re(H,2),te=V[0],Y=V[1],J=l.useState([]),G=re(J,2),U=G[0],q=G[1],X=l.useState(null),Q=re(X,2),ee=Q[0],oe=Q[1],le=l.useRef(r);le.current=r;function fe(){var Se=le.current;z(Se),Y(Se),q([]),oe(null),P()}Xt(function(){L(a);var Se=yIe(M,a);if(Se.key!==null)if(Se.add){var ve=B.findIndex(function(Me){var Ie=Me.key;return Ie===Se.key}),ae=JP(XP(B,r,Se.key),v,y,S),ie=B.slice();ie.splice(ve+1,0,QP),Y(ie),q(ae),oe("show")}else{var ue=r.findIndex(function(Me){var Ie=Me.key;return Ie===Se.key}),ye=JP(XP(r,B,Se.key),v,y,S),Ee=r.slice();Ee.splice(ue+1,0,QP),Y(Ee),q(ye),oe("hide")}else B!==r&&(z(r),Y(r))},[a,r]),l.useEffect(function(){p||fe()},[p]);var ce=b?te:r,Te={expandedKeys:a,selectedKeys:o,loadedKeys:s,loadingKeys:c,checkedKeys:i,halfCheckedKeys:u,dragOverNodeKey:g,dropPosition:h,keyEntities:d};return l.createElement(l.Fragment,null,w&&C&&l.createElement("span",{style:ZP,"aria-live":"assertive"},wIe(C)),l.createElement("div",null,l.createElement("input",{style:ZP,disabled:x===!1||f,tabIndex:x!==!1?E:null,onKeyDown:I,onFocus:T,onBlur:R,value:"",onChange:xIe,"aria-label":"for screen reader"})),l.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},l.createElement("div",{className:"".concat(n,"-indent")},l.createElement("div",{ref:O,className:"".concat(n,"-indent-unit")}))),l.createElement(M0,pe({},D,{data:ce,itemKey:eD,height:y,fullHeight:!1,virtual:v,itemHeight:S,prefixCls:"".concat(n,"-list"),ref:A,onVisibleChange:function(ve){ve.every(function(ae){return eD(ae)!==_c})&&fe()}}),function(Se){var ve=Se.pos,ae=Object.assign({},(Mq(Se.data),Se.data)),ie=Se.title,ue=Se.key,ye=Se.isStart,Ee=Se.isEnd,Me=um(ue,ve);delete ae.key,delete ae.children;var Ie=xp(Me,Te);return l.createElement(bIe,pe({},ae,Ie,{title:ie,active:!!C&&ue===C.key,pos:ve,data:Se.data,isStart:ye,isEnd:Ee,motion:b,motionNodes:ue===_c?U:null,motionType:ee,onMotionStart:$,onMotionEnd:fe,treeNodeRequiredProps:Te,onMouseMove:function(){_(null)}}))}))});Lq.displayName="NodeList";var CIe=10,uy=function(e){Eo(n,e);var t=Ko(n);function n(){var r;Xn(this,n);for(var a=arguments.length,o=new Array(a),i=0;i2&&arguments[2]!==void 0?arguments[2]:!1,f=r.state,p=f.dragChildrenKeys,g=f.dropPosition,h=f.dropTargetKey,b=f.dropTargetPos,y=f.dropAllowed;if(y){var S=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),h!==null){var v=Z(Z({},xp(h,r.getTreeNodeRequiredProps())),{},{active:((u=r.getActiveItem())===null||u===void 0?void 0:u.key)===h,data:Va(r.state.keyEntities,h).node}),x=p.indexOf(h)!==-1;vn(!x,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var C=uN(b),w={event:s,node:Ir(v),dragNode:r.dragNode?Ir(r.dragNode.props):null,dragNodesKeys:[r.dragNode.props.eventKey].concat(p),dropToGap:g!==0,dropPosition:g+Number(C[C.length-1])};d||S==null||S(w),r.dragNode=null}}}),W(Ue(r),"cleanDragState",function(){var s=r.state.draggingNodeKey;s!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),W(Ue(r),"triggerExpandActionExpand",function(s,c){var u=r.state,d=u.expandedKeys,f=u.flattenNodes,p=c.expanded,g=c.key,h=c.isLeaf;if(!(h||s.shiftKey||s.metaKey||s.ctrlKey)){var b=f.filter(function(S){return S.key===g})[0],y=Ir(Z(Z({},xp(g,r.getTreeNodeRequiredProps())),{},{data:b.data}));r.setExpandedKeys(p?Ri(d,g):ns(d,g)),r.onNodeExpand(s,y)}}),W(Ue(r),"onNodeClick",function(s,c){var u=r.props,d=u.onClick,f=u.expandAction;f==="click"&&r.triggerExpandActionExpand(s,c),d==null||d(s,c)}),W(Ue(r),"onNodeDoubleClick",function(s,c){var u=r.props,d=u.onDoubleClick,f=u.expandAction;f==="doubleClick"&&r.triggerExpandActionExpand(s,c),d==null||d(s,c)}),W(Ue(r),"onNodeSelect",function(s,c){var u=r.state.selectedKeys,d=r.state,f=d.keyEntities,p=d.fieldNames,g=r.props,h=g.onSelect,b=g.multiple,y=c.selected,S=c[p.key],v=!y;v?b?u=ns(u,S):u=[S]:u=Ri(u,S);var x=u.map(function(C){var w=Va(f,C);return w?w.node:null}).filter(function(C){return C});r.setUncontrolledState({selectedKeys:u}),h==null||h(u,{event:"select",selected:v,node:c,selectedNodes:x,nativeEvent:s.nativeEvent})}),W(Ue(r),"onNodeCheck",function(s,c,u){var d=r.state,f=d.keyEntities,p=d.checkedKeys,g=d.halfCheckedKeys,h=r.props,b=h.checkStrictly,y=h.onCheck,S=c.key,v,x={event:"check",node:c,checked:u,nativeEvent:s.nativeEvent};if(b){var C=u?ns(p,S):Ri(p,S),w=Ri(g,S);v={checked:C,halfChecked:w},x.checkedNodes=C.map(function($){return Va(f,$)}).filter(function($){return $}).map(function($){return $.node}),r.setUncontrolledState({checkedKeys:C})}else{var E=hs([].concat(De(p),[S]),!0,f),I=E.checkedKeys,T=E.halfCheckedKeys;if(!u){var R=new Set(I);R.delete(S);var _=hs(Array.from(R),{checked:!1,halfCheckedKeys:T},f);I=_.checkedKeys,T=_.halfCheckedKeys}v=I,x.checkedNodes=[],x.checkedNodesPositions=[],x.halfCheckedKeys=T,I.forEach(function($){var P=Va(f,$);if(P){var D=P.node,A=P.pos;x.checkedNodes.push(D),x.checkedNodesPositions.push({node:D,pos:A})}}),r.setUncontrolledState({checkedKeys:I},!1,{halfCheckedKeys:T})}y==null||y(v,x)}),W(Ue(r),"onNodeLoad",function(s){var c,u=s.key,d=r.state.keyEntities,f=Va(d,u);if(!(f!=null&&(c=f.children)!==null&&c!==void 0&&c.length)){var p=new Promise(function(g,h){r.setState(function(b){var y=b.loadedKeys,S=y===void 0?[]:y,v=b.loadingKeys,x=v===void 0?[]:v,C=r.props,w=C.loadData,E=C.onLoad;if(!w||S.indexOf(u)!==-1||x.indexOf(u)!==-1)return null;var I=w(s);return I.then(function(){var T=r.state.loadedKeys,R=ns(T,u);E==null||E(R,{event:"load",node:s}),r.setUncontrolledState({loadedKeys:R}),r.setState(function(_){return{loadingKeys:Ri(_.loadingKeys,u)}}),g()}).catch(function(T){if(r.setState(function(_){return{loadingKeys:Ri(_.loadingKeys,u)}}),r.loadingRetryTimes[u]=(r.loadingRetryTimes[u]||0)+1,r.loadingRetryTimes[u]>=CIe){var R=r.state.loadedKeys;vn(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:ns(R,u)}),g()}h(T)}),{loadingKeys:ns(x,u)}})});return p.catch(function(){}),p}}),W(Ue(r),"onNodeMouseEnter",function(s,c){var u=r.props.onMouseEnter;u==null||u({event:s,node:c})}),W(Ue(r),"onNodeMouseLeave",function(s,c){var u=r.props.onMouseLeave;u==null||u({event:s,node:c})}),W(Ue(r),"onNodeContextMenu",function(s,c){var u=r.props.onRightClick;u&&(s.preventDefault(),u({event:s,node:c}))}),W(Ue(r),"onFocus",function(){var s=r.props.onFocus;r.setState({focused:!0});for(var c=arguments.length,u=new Array(c),d=0;d1&&arguments[1]!==void 0?arguments[1]:!1,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var d=!1,f=!0,p={};Object.keys(s).forEach(function(g){if(g in r.props){f=!1;return}d=!0,p[g]=s[g]}),d&&(!c||f)&&r.setState(Z(Z({},p),u))}}),W(Ue(r),"scrollTo",function(s){r.listRef.current.scrollTo(s)}),r}return Zn(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var a=this.props,o=a.activeKey,i=a.itemScrollOffset,s=i===void 0?0:i;o!==void 0&&o!==this.state.activeKey&&(this.setState({activeKey:o}),o!==null&&this.scrollTo({key:o,offset:s}))}},{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 a=this.state,o=a.focused,i=a.flattenNodes,s=a.keyEntities,c=a.draggingNodeKey,u=a.activeKey,d=a.dropLevelOffset,f=a.dropContainerKey,p=a.dropTargetKey,g=a.dropPosition,h=a.dragOverNodeKey,b=a.indent,y=this.props,S=y.prefixCls,v=y.className,x=y.style,C=y.showLine,w=y.focusable,E=y.tabIndex,I=E===void 0?0:E,T=y.selectable,R=y.showIcon,_=y.icon,$=y.switcherIcon,P=y.draggable,D=y.checkable,A=y.checkStrictly,O=y.disabled,N=y.motion,k=y.loadData,M=y.filterTreeNode,L=y.height,F=y.itemHeight,j=y.virtual,B=y.titleRender,z=y.dropIndicatorRender,H=y.onContextMenu,V=y.onScroll,te=y.direction,Y=y.rootClassName,J=y.rootStyle,G=Yn(this.props,{aria:!0,data:!0}),U;return P&&(ht(P)==="object"?U=P:typeof P=="function"?U={nodeDraggable:P}:U={}),l.createElement(cN.Provider,{value:{prefixCls:S,selectable:T,showIcon:R,icon:_,switcherIcon:$,draggable:U,draggingNodeKey:c,checkable:D,checkStrictly:A,disabled:O,keyEntities:s,dropLevelOffset:d,dropContainerKey:f,dropTargetKey:p,dropPosition:g,dragOverNodeKey:h,indent:b,direction:te,dropIndicatorRender:z,loadData:k,filterTreeNode:M,titleRender:B,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}},l.createElement("div",{role:"tree",className:ne(S,v,Y,W(W(W({},"".concat(S,"-show-line"),C),"".concat(S,"-focused"),o),"".concat(S,"-active-focused"),u!==null)),style:J},l.createElement(Lq,pe({ref:this.listRef,prefixCls:S,style:x,data:i,disabled:O,selectable:T,checkable:!!D,motion:N,dragging:c!==null,height:L,itemHeight:F,virtual:j,focusable:w,focused:o,tabIndex:I,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:H,onScroll:V},this.getTreeNodeRequiredProps(),G))))}}],[{key:"getDerivedStateFromProps",value:function(a,o){var i=o.prevProps,s={prevProps:a};function c(I){return!i&&I in a||i&&i[I]!==a[I]}var u,d=o.fieldNames;if(c("fieldNames")&&(d=Cd(a.fieldNames),s.fieldNames=d),c("treeData")?u=a.treeData:c("children")&&(vn(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),u=ZW(a.children)),u){s.treeData=u;var f=J0(u,{fieldNames:d});s.keyEntities=Z(W({},_c,Dq),f.keyEntities)}var p=s.keyEntities||o.keyEntities;if(c("expandedKeys")||i&&c("autoExpandParent"))s.expandedKeys=a.autoExpandParent||!i&&a.defaultExpandParent?zR(a.expandedKeys,p):a.expandedKeys;else if(!i&&a.defaultExpandAll){var g=Z({},p);delete g[_c];var h=[];Object.keys(g).forEach(function(I){var T=g[I];T.children&&T.children.length&&h.push(T.key)}),s.expandedKeys=h}else!i&&a.defaultExpandedKeys&&(s.expandedKeys=a.autoExpandParent||a.defaultExpandParent?zR(a.defaultExpandedKeys,p):a.defaultExpandedKeys);if(s.expandedKeys||delete s.expandedKeys,u||s.expandedKeys){var b=c1(u||o.treeData,s.expandedKeys||o.expandedKeys,d);s.flattenNodes=b}if(a.selectable&&(c("selectedKeys")?s.selectedKeys=KP(a.selectedKeys,a):!i&&a.defaultSelectedKeys&&(s.selectedKeys=KP(a.defaultSelectedKeys,a))),a.checkable){var y;if(c("checkedKeys")?y=b1(a.checkedKeys)||{}:!i&&a.defaultCheckedKeys?y=b1(a.defaultCheckedKeys)||{}:u&&(y=b1(a.checkedKeys)||{checkedKeys:o.checkedKeys,halfCheckedKeys:o.halfCheckedKeys}),y){var S=y,v=S.checkedKeys,x=v===void 0?[]:v,C=S.halfCheckedKeys,w=C===void 0?[]:C;if(!a.checkStrictly){var E=hs(x,!0,p);x=E.checkedKeys,w=E.halfCheckedKeys}s.checkedKeys=x,s.halfCheckedKeys=w}}return c("loadedKeys")&&(s.loadedKeys=a.loadedKeys),s}}]),n}(l.Component);W(uy,"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:mIe,allowDrop:function(){return!0},expandAction:!1});W(uy,"TreeNode",Id);const EIe=new un("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),IIe=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),TIe=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${K(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),RIe=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:a,titleHeight:o,nodeSelectedBg:i,nodeHoverBg:s}=t,c=t.paddingXS;return{[n]:Object.assign(Object.assign({},nn(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},ws(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:a,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:EIe,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[r]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${K(a)} 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:o,lineHeight:K(o),textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${r}:hover &`]:{opacity:.45}},[`&${r}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:o}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:Object.assign(Object.assign({},IIe(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:o,margin:0,lineHeight:K(o),textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:o,height:o,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(o).div(2).equal(),bottom:t.calc(a).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(o).div(2).equal()).mul(.8).equal(),height:t.calc(o).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:c,alignSelf:"flex-start",marginTop:t.marginXXS},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:o,margin:0,padding:`0 ${K(t.calc(t.paddingXS).div(2).equal())}`,color:"inherit",lineHeight:K(o),background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:s},[`&${n}-node-selected`]:{backgroundColor:i},[`${n}-iconEle`]:{display:"inline-block",width:o,height:o,lineHeight:K(o),textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:Object.assign({lineHeight:K(o),userSelect:"none"},TIe(e,t)),[`${r}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${n}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(o).div(2).equal(),bottom:t.calc(a).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last`]:{[`${n}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${K(t.calc(o).div(2).equal())} !important`}}}}})}},_Ie=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:r,directoryNodeSelectedBg:a,directoryNodeSelectedColor:o}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:o,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:a},[`${t}-switcher`]:{color:o},[`${t}-node-content-wrapper`]:{color:o,background:"transparent"}}}}}},Fq=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,a=t.calc(t.paddingXS).div(2).equal(),o=zt(t,{treeCls:n,treeNodeCls:r,treeNodePadding:a});return[RIe(e,o),_Ie(o)]},jq=e=>{const{controlHeightSM:t}=e;return{titleHeight:t,nodeHoverBg:e.controlItemBgHover,nodeSelectedBg:e.controlItemBgActive}},$Ie=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},jq(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},OIe=on("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:LO(`${n}-checkbox`,e)},Fq(n,e),Zg(e)]},$Ie),tD=4;function NIe(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:a,direction:o="ltr"}=e,i=o==="ltr"?"left":"right",s=o==="ltr"?"right":"left",c={[i]:-n*a+tD,[s]:0};switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[i]=a+tD;break}return se.createElement("div",{style:c,className:`${r}-drop-indicator`})}const Bq=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:a,switcherLoadingIcon:o}=e,{isLeaf:i,expanded:s,loading:c}=r;if(c)return l.isValidElement(o)?o:l.createElement(Hi,{className:`${t}-switcher-loading-icon`});let u;if(a&&typeof a=="object"&&(u=a.showLeafIcon),i){if(!a)return null;if(typeof u!="boolean"&&u){const p=typeof u=="function"?u(r):u,g=`${t}-switcher-line-custom-icon`;return l.isValidElement(p)?Cr(p,{className:ne(p.props.className||"",g)}):p}return u?l.createElement(sq,{className:`${t}-switcher-line-icon`}):l.createElement("span",{className:`${t}-switcher-leaf-line`})}const d=`${t}-switcher-icon`,f=typeof n=="function"?n(r):n;return l.isValidElement(f)?Cr(f,{className:ne(f.props.className||"",d)}):f!==void 0?f:a?s?l.createElement(Vwe,{className:`${t}-switcher-line-icon`}):l.createElement(cq,{className:`${t}-switcher-line-icon`}):l.createElement(W1e,{className:d})},zq=se.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:a,virtual:o,tree:i}=se.useContext(st),{prefixCls:s,className:c,showIcon:u=!1,showLine:d,switcherIcon:f,switcherLoadingIcon:p,blockNode:g=!1,children:h,checkable:b=!1,selectable:y=!0,draggable:S,motion:v,style:x}=e,C=r("tree",s),w=r(),E=v??Object.assign(Object.assign({},Sd(w)),{motionAppear:!1}),I=Object.assign(Object.assign({},e),{checkable:b,selectable:y,showIcon:u,motion:E,blockNode:g,showLine:!!d,dropIndicatorRender:NIe}),[T,R,_]=OIe(C),[,$]=ta(),P=$.paddingXS/2+(((n=$.Tree)===null||n===void 0?void 0:n.titleHeight)||$.controlHeightSM),D=se.useMemo(()=>{if(!S)return!1;let O={};switch(typeof S){case"function":O.nodeDraggable=S;break;case"object":O=Object.assign({},S);break}return O.icon!==!1&&(O.icon=O.icon||se.createElement(hwe,null)),O},[S]),A=O=>se.createElement(Bq,{prefixCls:C,switcherIcon:f,switcherLoadingIcon:p,treeNodeProps:O,showLine:d});return T(se.createElement(uy,Object.assign({itemHeight:P,ref:t,virtual:o},I,{style:Object.assign(Object.assign({},i==null?void 0:i.style),x),prefixCls:C,className:ne({[`${C}-icon-hide`]:!u,[`${C}-block-node`]:g,[`${C}-unselectable`]:!y,[`${C}-rtl`]:a==="rtl"},i==null?void 0:i.className,c,R,_),direction:a,checkable:b&&se.createElement("span",{className:`${C}-checkbox-inner`}),selectable:y,switcherIcon:A,draggable:D}),h))}),nD=0,y1=1,rD=2;function dN(e,t,n){const{key:r,children:a}=n;function o(i){const s=i[r],c=i[a];t(s,i)!==!1&&dN(c||[],t,n)}e.forEach(o)}function kIe(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:a,fieldNames:o}=e;const i=[];let s=nD;if(r&&r===a)return[r];if(!r||!a)return[];function c(u){return u===r||u===a}return dN(t,u=>{if(s===rD)return!1;if(c(u)){if(i.push(u),s===nD)s=y1;else if(s===y1)return s=rD,!1}else s===y1&&i.push(u);return n.includes(u)},Cd(o)),i}function S1(e,t,n){const r=De(t),a=[];return dN(e,(o,i)=>{const s=r.indexOf(o);return s!==-1&&(a.push(i),r.splice(s,1)),!!r.length},Cd(n)),a}var aD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:a}=e,o=aD(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const i=l.useRef(),s=l.useRef(),c=()=>{const{keyEntities:T}=J0(oD(o));let R;return n?R=Object.keys(T):r?R=zR(o.expandedKeys||a||[],T):R=o.expandedKeys||a||[],R},[u,d]=l.useState(o.selectedKeys||o.defaultSelectedKeys||[]),[f,p]=l.useState(()=>c());l.useEffect(()=>{"selectedKeys"in o&&d(o.selectedKeys)},[o.selectedKeys]),l.useEffect(()=>{"expandedKeys"in o&&p(o.expandedKeys)},[o.expandedKeys]);const g=(T,R)=>{var _;return"expandedKeys"in o||p(T),(_=o.onExpand)===null||_===void 0?void 0:_.call(o,T,R)},h=(T,R)=>{var _;const{multiple:$,fieldNames:P}=o,{node:D,nativeEvent:A}=R,{key:O=""}=D,N=oD(o),k=Object.assign(Object.assign({},R),{selected:!0}),M=(A==null?void 0:A.ctrlKey)||(A==null?void 0:A.metaKey),L=A==null?void 0:A.shiftKey;let F;$&&M?(F=T,i.current=O,s.current=F,k.selectedNodes=S1(N,F,P)):$&&L?(F=Array.from(new Set([].concat(De(s.current||[]),De(kIe({treeData:N,expandedKeys:f,startKey:O,endKey:i.current,fieldNames:P}))))),k.selectedNodes=S1(N,F,P)):(F=[O],i.current=O,s.current=F,k.selectedNodes=S1(N,F,P)),(_=o.onSelect)===null||_===void 0||_.call(o,F,k),"selectedKeys"in o||d(F)},{getPrefixCls:b,direction:y}=l.useContext(st),{prefixCls:S,className:v,showIcon:x=!0,expandAction:C="click"}=o,w=aD(o,["prefixCls","className","showIcon","expandAction"]),E=b("tree",S),I=ne(`${E}-directory`,{[`${E}-directory-rtl`]:y==="rtl"},v);return l.createElement(zq,Object.assign({icon:AIe,ref:t,blockNode:!0},w,{showIcon:x,expandAction:C,prefixCls:E,className:I,expandedKeys:f,selectedKeys:u,onSelect:h,onExpand:g}))},PIe=l.forwardRef(MIe),fN=zq;fN.DirectoryTree=PIe;fN.TreeNode=Id;const iD=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:a,onChange:o}=e;return n?l.createElement("div",{className:`${r}-filter-dropdown-search`},l.createElement(Jt,{prefix:l.createElement(rm,null),placeholder:a.filterSearchPlaceholder,onChange:o,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},DIe=e=>{const{keyCode:t}=e;t===Le.ENTER&&e.stopPropagation()},LIe=l.forwardRef((e,t)=>l.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:DIe,ref:t},e.children));function rd(e){let t=[];return(e||[]).forEach(n=>{let{value:r,children:a}=n;t.push(r),a&&(t=[].concat(De(t),De(rd(a))))}),t}function FIe(e){return e.some(t=>{let{children:n}=t;return n})}function Hq(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function Uq(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:a,searchValue:o,filterSearch:i}=e;return t.map((s,c)=>{const u=String(s.value);if(s.children)return{key:u||c,label:s.text,popupClassName:`${n}-dropdown-submenu`,children:Uq({filters:s.children,prefixCls:n,filteredKeys:r,filterMultiple:a,searchValue:o,filterSearch:i})};const d=a?Rs:mo,f={key:s.value!==void 0?u:c,label:l.createElement(l.Fragment,null,l.createElement(d,{checked:r.includes(u)}),l.createElement("span",null,s.text))};return o.trim()?typeof i=="function"?i(o,s)?f:null:Hq(o,s.text)?f:null:f})}function x1(e){return e||[]}const jIe=e=>{var t,n;const{tablePrefixCls:r,prefixCls:a,column:o,dropdownPrefixCls:i,columnKey:s,filterOnClose:c,filterMultiple:u,filterMode:d="menu",filterSearch:f=!1,filterState:p,triggerFilter:g,locale:h,children:b,getPopupContainer:y,rootClassName:S}=e,{filterDropdownOpen:v,onFilterDropdownOpenChange:x,filterResetToDefaultFilteredValue:C,defaultFilteredValue:w,filterDropdownVisible:E,onFilterDropdownVisibleChange:I}=o,[T,R]=l.useState(!1),_=!!(p&&(!((t=p.filteredKeys)===null||t===void 0)&&t.length||p.forceFiltered)),$=ce=>{R(ce),x==null||x(ce),I==null||I(ce)},P=(n=v??E)!==null&&n!==void 0?n:T,D=p==null?void 0:p.filteredKeys,[A,O]=gIe(x1(D)),N=ce=>{let{selectedKeys:Te}=ce;O(Te)},k=(ce,Te)=>{let{node:Se,checked:ve}=Te;N(u?{selectedKeys:ce}:{selectedKeys:ve&&Se.key?[Se.key]:[]})};l.useEffect(()=>{T&&N({selectedKeys:x1(D)})},[D]);const[M,L]=l.useState([]),F=ce=>{L(ce)},[j,B]=l.useState(""),z=ce=>{const{value:Te}=ce.target;B(Te)};l.useEffect(()=>{T||B("")},[T]);const H=ce=>{const Te=ce!=null&&ce.length?ce:null;if(Te===null&&(!p||!p.filteredKeys)||zo(Te,p==null?void 0:p.filteredKeys,!0))return null;g({column:o,key:s,filteredKeys:Te})},V=()=>{$(!1),H(A())},te=function(){let{confirm:ce,closeDropdown:Te}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};ce&&H([]),Te&&$(!1),B(""),O(C?(w||[]).map(Se=>String(Se)):[])},Y=function(){let{closeDropdown:ce}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};ce&&$(!1),H(A())},J=(ce,Te)=>{Te.source==="trigger"&&(ce&&D!==void 0&&O(x1(D)),$(ce),!ce&&!o.filterDropdown&&c&&V())},G=ne({[`${i}-menu-without-submenu`]:!FIe(o.filters||[])}),U=ce=>{if(ce.target.checked){const Te=rd(o==null?void 0:o.filters).map(Se=>String(Se));O(Te)}else O([])},q=ce=>{let{filters:Te}=ce;return(Te||[]).map((Se,ve)=>{const ae=String(Se.value),ie={title:Se.text,key:Se.value!==void 0?ae:String(ve)};return Se.children&&(ie.children=q({filters:Se.children})),ie})},X=ce=>{var Te;return Object.assign(Object.assign({},ce),{text:ce.title,value:ce.key,children:((Te=ce.children)===null||Te===void 0?void 0:Te.map(Se=>X(Se)))||[]})};let Q;const{direction:ee,renderEmpty:oe}=l.useContext(st);if(typeof o.filterDropdown=="function")Q=o.filterDropdown({prefixCls:`${i}-custom`,setSelectedKeys:ce=>N({selectedKeys:ce}),selectedKeys:A(),confirm:Y,clearFilters:te,filters:o.filters,visible:P,close:()=>{$(!1)}});else if(o.filterDropdown)Q=o.filterDropdown;else{const ce=A()||[],Te=()=>{var ve;const ae=(ve=oe==null?void 0:oe("Table.filter"))!==null&&ve!==void 0?ve:l.createElement(us,{image:us.PRESENTED_IMAGE_SIMPLE,description:h.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}});if((o.filters||[]).length===0)return ae;if(d==="tree")return l.createElement(l.Fragment,null,l.createElement(iD,{filterSearch:f,value:j,onChange:z,tablePrefixCls:r,locale:h}),l.createElement("div",{className:`${r}-filter-dropdown-tree`},u?l.createElement(Rs,{checked:ce.length===rd(o.filters).length,indeterminate:ce.length>0&&ce.lengthtypeof f=="function"?f(j,X(ye)):Hq(j,ye.title):void 0})));const ie=Uq({filters:o.filters||[],filterSearch:f,prefixCls:a,filteredKeys:A(),filterMultiple:u,searchValue:j}),ue=ie.every(ye=>ye===null);return l.createElement(l.Fragment,null,l.createElement(iD,{filterSearch:f,value:j,onChange:z,tablePrefixCls:r,locale:h}),ue?ae:l.createElement(Wi,{selectable:!0,multiple:u,prefixCls:`${i}-menu`,className:G,onSelect:N,onDeselect:N,selectedKeys:ce,getPopupContainer:y,openKeys:M,onOpenChange:F,items:ie}))},Se=()=>C?zo((w||[]).map(ve=>String(ve)),ce,!0):ce.length===0;Q=l.createElement(l.Fragment,null,Te(),l.createElement("div",{className:`${a}-dropdown-btns`},l.createElement(ut,{type:"link",size:"small",disabled:Se(),onClick:()=>te()},h.filterReset),l.createElement(ut,{type:"primary",size:"small",onClick:V},h.filterConfirm)))}o.filterDropdown&&(Q=l.createElement(VV,{selectable:void 0},Q));const le=()=>l.createElement(LIe,{className:`${a}-dropdown`},Q);let fe;return typeof o.filterIcon=="function"?fe=o.filterIcon(_):o.filterIcon?fe=o.filterIcon:fe=l.createElement(Yxe,null),l.createElement("div",{className:`${a}-column`},l.createElement("span",{className:`${r}-column-title`},b),l.createElement(ny,{dropdownRender:le,trigger:["click"],open:P,onOpenChange:J,getPopupContainer:y,placement:ee==="rtl"?"bottomLeft":"bottomRight",rootClassName:S},l.createElement("span",{role:"button",tabIndex:-1,className:ne(`${a}-trigger`,{active:_}),onClick:ce=>{ce.stopPropagation()}},fe)))},GR=(e,t,n)=>{let r=[];return(e||[]).forEach((a,o)=>{var i;const s=rf(o,n);if(a.filters||"filterDropdown"in a||"onFilter"in a)if("filteredValue"in a){let c=a.filteredValue;"filterDropdown"in a||(c=(i=c==null?void 0:c.map(String))!==null&&i!==void 0?i:c),r.push({column:a,key:wl(a,s),filteredKeys:c,forceFiltered:a.filtered})}else r.push({column:a,key:wl(a,s),filteredKeys:t&&a.defaultFilteredValue?a.defaultFilteredValue:void 0,forceFiltered:a.filtered});"children"in a&&(r=[].concat(De(r),De(GR(a.children,t,s))))}),r};function Vq(e,t,n,r,a,o,i,s,c){return n.map((u,d)=>{const f=rf(d,s),{filterOnClose:p=!0,filterMultiple:g=!0,filterMode:h,filterSearch:b}=u;let y=u;if(y.filters||y.filterDropdown){const S=wl(y,f),v=r.find(x=>{let{key:C}=x;return S===C});y=Object.assign(Object.assign({},y),{title:x=>l.createElement(jIe,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:y,columnKey:S,filterState:v,filterOnClose:p,filterMultiple:g,filterMode:h,filterSearch:b,triggerFilter:o,locale:a,getPopupContainer:i,rootClassName:c},cy(u.title,x))})}return"children"in y&&(y=Object.assign(Object.assign({},y),{children:Vq(e,t,y.children,r,a,o,i,f,c)})),y})}const sD=e=>{const t={};return e.forEach(n=>{let{key:r,filteredKeys:a,column:o}=n;const i=r,{filters:s,filterDropdown:c}=o;if(c)t[i]=a||null;else if(Array.isArray(a)){const u=rd(s);t[i]=u.filter(d=>a.includes(String(d)))}else t[i]=null}),t},qR=(e,t,n)=>t.reduce((a,o)=>{const{column:{onFilter:i,filters:s},filteredKeys:c}=o;return i&&c&&c.length?a.map(u=>Object.assign({},u)).filter(u=>c.some(d=>{const f=rd(s),p=f.findIndex(h=>String(h)===String(d)),g=p!==-1?f[p]:d;return u[n]&&(u[n]=qR(u[n],t,n)),i(g,u)})):a},e),Wq=e=>e.flatMap(t=>"children"in t?[t].concat(De(Wq(t.children||[]))):[t]),BIe=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:a,getPopupContainer:o,locale:i,rootClassName:s}=e;$l();const c=l.useMemo(()=>Wq(r||[]),[r]),[u,d]=l.useState(()=>GR(c,!0)),f=l.useMemo(()=>{const b=GR(c,!1);if(b.length===0)return b;let y=!0;if(b.forEach(S=>{let{filteredKeys:v}=S;v!==void 0&&(y=!1)}),y){const S=(c||[]).map((v,x)=>wl(v,rf(x)));return u.filter(v=>{let{key:x}=v;return S.includes(x)}).map(v=>{const x=c[S.findIndex(C=>C===v.key)];return Object.assign(Object.assign({},v),{column:Object.assign(Object.assign({},v.column),x),forceFiltered:x.filtered})})}return b},[c,u]),p=l.useMemo(()=>sD(f),[f]),g=b=>{const y=f.filter(S=>{let{key:v}=S;return v!==b.key});y.push(b),d(y),a(sD(y),y)};return[b=>Vq(t,n,b,f,i,g,o,void 0,s),f,p]},zIe=(e,t,n)=>{const r=l.useRef({});function a(o){var i;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let u=function(d){d.forEach((f,p)=>{const g=n(f,p);c.set(g,f),f&&typeof f=="object"&&t in f&&u(f[t]||[])})};var s=u;const c=new Map;u(e),r.current={data:e,childrenColumnName:t,kvMap:c,getRowKey:n}}return(i=r.current.kvMap)===null||i===void 0?void 0:i.get(o)}return[a]};var HIe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const o=e[a];typeof o!="function"&&(n[a]=o)}),n}function VIe(e,t,n){const r=n&&typeof n=="object"?n:{},{total:a=0}=r,o=HIe(r,["total"]),[i,s]=l.useState(()=>({current:"defaultCurrent"in o?o.defaultCurrent:1,pageSize:"defaultPageSize"in o?o.defaultPageSize:Gq})),c=XG(i,o,{total:a>0?a:e}),u=Math.ceil((a||e)/c.pageSize);c.current>u&&(c.current=u||1);const d=(p,g)=>{s({current:p??1,pageSize:g||c.pageSize})},f=(p,g)=>{var h;n&&((h=n.onChange)===null||h===void 0||h.call(n,p,g)),d(p,g),t(p,g||(c==null?void 0:c.pageSize))};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},c),{onChange:f}),d]}const hv="ascend",w1="descend",Eb=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1,lD=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1,WIe=(e,t)=>t?e[e.indexOf(t)+1]:e[0],KR=(e,t,n)=>{let r=[];const a=(o,i)=>{r.push({column:o,key:wl(o,i),multiplePriority:Eb(o),sortOrder:o.sortOrder})};return(e||[]).forEach((o,i)=>{const s=rf(i,n);o.children?("sortOrder"in o&&a(o,s),r=[].concat(De(r),De(KR(o.children,t,s)))):o.sorter&&("sortOrder"in o?a(o,s):t&&o.defaultSortOrder&&r.push({column:o,key:wl(o,s),multiplePriority:Eb(o),sortOrder:o.defaultSortOrder}))}),r},qq=(e,t,n,r,a,o,i,s)=>(t||[]).map((u,d)=>{const f=rf(d,s);let p=u;if(p.sorter){const g=p.sortDirections||a,h=p.showSorterTooltip===void 0?i:p.showSorterTooltip,b=wl(p,f),y=n.find(R=>{let{key:_}=R;return _===b}),S=y?y.sortOrder:null,v=WIe(g,S);let x;if(u.sortIcon)x=u.sortIcon({sortOrder:S});else{const R=g.includes(hv)&&l.createElement(Z1e,{className:ne(`${e}-column-sorter-up`,{active:S===hv})}),_=g.includes(w1)&&l.createElement(K1e,{className:ne(`${e}-column-sorter-down`,{active:S===w1})});x=l.createElement("span",{className:ne(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(R&&_)})},l.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},R,_))}const{cancelSort:C,triggerAsc:w,triggerDesc:E}=o||{};let I=C;v===w1?I=E:v===hv&&(I=w);const T=typeof h=="object"?Object.assign({title:I},h):{title:I};p=Object.assign(Object.assign({},p),{className:ne(p.className,{[`${e}-column-sort`]:S}),title:R=>{const _=`${e}-column-sorters`,$=l.createElement("span",{className:`${e}-column-title`},cy(u.title,R)),P=l.createElement("div",{className:_},$,x);return h?typeof h!="boolean"&&(h==null?void 0:h.target)==="sorter-icon"?l.createElement("div",{className:`${_} ${e}-column-sorters-tooltip-target-sorter`},$,l.createElement(Zt,Object.assign({},T),x)):l.createElement(Zt,Object.assign({},T),P):P},onHeaderCell:R=>{var _;const $=((_=u.onHeaderCell)===null||_===void 0?void 0:_.call(u,R))||{},P=$.onClick,D=$.onKeyDown;$.onClick=N=>{r({column:u,key:b,sortOrder:v,multiplePriority:Eb(u)}),P==null||P(N)},$.onKeyDown=N=>{N.keyCode===Le.ENTER&&(r({column:u,key:b,sortOrder:v,multiplePriority:Eb(u)}),D==null||D(N))};const A=pIe(u.title,{}),O=A==null?void 0:A.toString();return S?$["aria-sort"]=S==="ascend"?"ascending":"descending":$["aria-label"]=O||"",$.className=ne($.className,`${e}-column-has-sorters`),$.tabIndex=0,u.ellipsis&&($.title=(A??"").toString()),$}})}return"children"in p&&(p=Object.assign(Object.assign({},p),{children:qq(e,p.children,n,r,a,o,i,f)})),p}),cD=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},uD=e=>{const t=e.filter(n=>{let{sortOrder:r}=n;return r}).map(cD);if(t.length===0&&e.length){const n=e.length-1;return Object.assign(Object.assign({},cD(e[n])),{column:void 0})}return t.length<=1?t[0]||{}:t},YR=(e,t,n)=>{const r=t.slice().sort((i,s)=>s.multiplePriority-i.multiplePriority),a=e.slice(),o=r.filter(i=>{let{column:{sorter:s},sortOrder:c}=i;return lD(s)&&c});return o.length?a.sort((i,s)=>{for(let c=0;c{const s=i[n];return s?Object.assign(Object.assign({},i),{[n]:YR(s,t,n)}):i}):a},GIe=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:a,showSorterTooltip:o,onSorterChange:i}=e,[s,c]=l.useState(KR(n,!0)),u=(b,y)=>{const S=[];return b.forEach((v,x)=>{const C=rf(x,y);if(S.push(wl(v,C)),Array.isArray(v.children)){const w=u(v.children,C);S.push.apply(S,De(w))}}),S},d=l.useMemo(()=>{let b=!0;const y=KR(n,!1);if(!y.length){const C=u(n);return s.filter(w=>{let{key:E}=w;return C.includes(E)})}const S=[];function v(C){b?S.push(C):S.push(Object.assign(Object.assign({},C),{sortOrder:null}))}let x=null;return y.forEach(C=>{x===null?(v(C),C.sortOrder&&(C.multiplePriority===!1?b=!1:x=!0)):(x&&C.multiplePriority!==!1||(b=!1),v(C))}),S},[n,s]),f=l.useMemo(()=>{var b,y;const S=d.map(v=>{let{column:x,sortOrder:C}=v;return{column:x,order:C}});return{sortColumns:S,sortColumn:(b=S[0])===null||b===void 0?void 0:b.column,sortOrder:(y=S[0])===null||y===void 0?void 0:y.order}},[d]),p=b=>{let y;b.multiplePriority===!1||!d.length||d[0].multiplePriority===!1?y=[b]:y=[].concat(De(d.filter(S=>{let{key:v}=S;return v!==b.key})),[b]),c(y),i(uD(y),y)};return[b=>qq(t,b,d,p,r,a,o),d,f,()=>uD(d)]},Kq=(e,t)=>e.map(r=>{const a=Object.assign({},r);return a.title=cy(r.title,t),"children"in a&&(a.children=Kq(a.children,t)),a}),qIe=e=>[l.useCallback(n=>Kq(n,e),[e])],KIe=Oq((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),YIe=kq((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),XIe=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:a,tableHeaderBg:o,tablePaddingVertical:i,tablePaddingHorizontal:s,calc:c}=e,u=`${K(n)} ${r} ${a}`,d=(f,p,g)=>({[`&${t}-${f}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${K(c(p).mul(-1).equal())} + `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:K(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${K(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:K(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},dm(e)),OO(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},Q0(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},xSe=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:K(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${K(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${K(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},wSe=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},nn(e)),{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:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:K(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),xSe(e)),SSe(e)),ySe(e)),bSe(e)),vSe(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},CSe=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Hi(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Cs(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},Cs(e))}}}},JG=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},um(e)),eq=e=>zt(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},cm(e)),ESe=on("Pagination",e=>{const t=eq(e);return[wSe(t),CSe(t)]},JG),ISe=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},TSe=Hd(["Pagination","bordered"],e=>{const t=eq(e);return[ISe(t)]},JG);var RSe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{align:t,prefixCls:n,selectPrefixCls:r,className:a,rootClassName:o,style:i,size:s,locale:c,selectComponentClass:u,responsive:d,showSizeChanger:f}=e,p=RSe(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:g}=F0(d),[,h]=ra(),{getPrefixCls:b,direction:y,pagination:S={}}=l.useContext(st),v=b("pagination",n),[x,w,C]=ESe(v),E=f??S.showSizeChanger,I=l.useMemo(()=>{const O=l.createElement("span",{className:`${v}-item-ellipsis`},"•••"),N=l.createElement("button",{className:`${v}-item-link`,type:"button",tabIndex:-1},y==="rtl"?l.createElement(Qa,null):l.createElement(Rs,null)),k=l.createElement("button",{className:`${v}-item-link`,type:"button",tabIndex:-1},y==="rtl"?l.createElement(Rs,null):l.createElement(Qa,null)),M=l.createElement("a",{className:`${v}-item-link`},l.createElement("div",{className:`${v}-item-container`},y==="rtl"?l.createElement(wP,{className:`${v}-item-link-icon`}):l.createElement(xP,{className:`${v}-item-link-icon`}),O)),L=l.createElement("a",{className:`${v}-item-link`},l.createElement("div",{className:`${v}-item-container`},y==="rtl"?l.createElement(xP,{className:`${v}-item-link-icon`}):l.createElement(wP,{className:`${v}-item-link-icon`}),O));return{prevIcon:N,nextIcon:k,jumpPrevIcon:M,jumpNextIcon:L}},[y,v]),[T]=Ki("Pagination",dH),R=Object.assign(Object.assign({},T),c),_=Er(s),$=_==="small"||!!(g&&!_&&d),P=b("select",r),D=ne({[`${v}-${t}`]:!!t,[`${v}-mini`]:$,[`${v}-rtl`]:y==="rtl",[`${v}-bordered`]:h.wireframe},S==null?void 0:S.className,a,o,w,C),A=Object.assign(Object.assign({},S==null?void 0:S.style),i);return x(l.createElement(l.Fragment,null,h.wireframe&&l.createElement(TSe,{prefixCls:v}),l.createElement(hSe,Object.assign({},I,p,{style:A,prefixCls:v,selectPrefixCls:P,className:D,selectComponentClass:u||($?ZG:QG),locale:R,showSizeChanger:E}))))},wb=100,tq=wb/5,nq=wb/2-tq/2,v1=nq*2*Math.PI,IP=50,TP=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return l.createElement("circle",{className:ne(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:nq,cx:IP,cy:IP,strokeWidth:tq,style:n})},_Se=e=>{let{percent:t,prefixCls:n}=e;const r=`${n}-dot`,a=`${r}-holder`,o=`${a}-hidden`,[i,s]=l.useState(!1);Xt(()=>{t!==0&&s(!0)},[t!==0]);const c=Math.max(Math.min(t,100),0);if(!i)return null;const u={strokeDashoffset:`${v1/4}`,strokeDasharray:`${v1*c/100} ${v1*(100-c)/100}`};return l.createElement("span",{className:ne(a,`${r}-progress`,c<=0&&o)},l.createElement("svg",{viewBox:`0 0 ${wb} ${wb}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c},l.createElement(TP,{dotClassName:r,hasCircleCls:!0}),l.createElement(TP,{dotClassName:r,style:u})))};function $Se(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,a=`${r}-holder`,o=`${a}-hidden`;return l.createElement(l.Fragment,null,l.createElement("span",{className:ne(a,n>0&&o)},l.createElement("span",{className:ne(r,`${t}-dot-spin`)},[1,2,3,4].map(i=>l.createElement("i",{className:`${t}-dot-item`,key:i})))),l.createElement(_Se,{prefixCls:t,percent:n}))}function OSe(e){const{prefixCls:t,indicator:n,percent:r}=e,a=`${t}-dot`;return n&&l.isValidElement(n)?Cr(n,{className:ne(n.props.className,a),percent:r}):l.createElement($Se,{prefixCls:t,percent:r})}const NSe=new un("antSpinMove",{to:{opacity:1}}),kSe=new un("antRotate",{to:{transform:"rotate(405deg)"}}),ASe=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},nn(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",top:"50%",transform:"translate(-50%, -50%)",insetInlineStart:"50%"},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:NSe,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:kSe,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(r=>`${r} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},MSe=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},PSe=on("Spin",e=>{const t=zt(e,{spinDotDefault:e.colorTextDescription});return[ASe(t)]},MSe),DSe=200,RP=[[30,.05],[70,.03],[96,.01]];function LSe(e,t){const[n,r]=l.useState(0),a=l.useRef(),o=t==="auto";return l.useEffect(()=>(o&&e&&(r(0),a.current=setInterval(()=>{r(i=>{const s=100-i;for(let c=0;c{clearInterval(a.current)}),[o,e]),o?n:t}var FSe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var t;const{prefixCls:n,spinning:r=!0,delay:a=0,className:o,rootClassName:i,size:s="default",tip:c,wrapperClassName:u,style:d,children:f,fullscreen:p=!1,indicator:g,percent:h}=e,b=FSe(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:y,direction:S,spin:v}=l.useContext(st),x=y("spin",n),[w,C,E]=PSe(x),[I,T]=l.useState(()=>r&&!jSe(r,a)),R=LSe(I,h);l.useEffect(()=>{if(r){const N=Nhe(a,()=>{T(!0)});return N(),()=>{var k;(k=N==null?void 0:N.cancel)===null||k===void 0||k.call(N)}}T(!1)},[a,r]);const _=l.useMemo(()=>typeof f<"u"&&!p,[f,p]),$=ne(x,v==null?void 0:v.className,{[`${x}-sm`]:s==="small",[`${x}-lg`]:s==="large",[`${x}-spinning`]:I,[`${x}-show-text`]:!!c,[`${x}-rtl`]:S==="rtl"},o,!p&&i,C,E),P=ne(`${x}-container`,{[`${x}-blur`]:I}),D=(t=g??(v==null?void 0:v.indicator))!==null&&t!==void 0?t:rq,A=Object.assign(Object.assign({},v==null?void 0:v.style),d),O=l.createElement("div",Object.assign({},b,{style:A,className:$,"aria-live":"polite","aria-busy":I}),l.createElement(OSe,{prefixCls:x,indicator:D,percent:R}),c&&(_||p)?l.createElement("div",{className:`${x}-text`},c):null);return w(_?l.createElement("div",Object.assign({},b,{className:ne(`${x}-nested-loading`,u,C,E)}),I&&l.createElement("div",{key:"loading"},O),l.createElement("div",{className:P,key:"container"},f)):p?l.createElement("div",{className:ne(`${x}-fullscreen`,{[`${x}-fullscreen-show`]:I},i,C,E)},O):O)};YO.setDefaultIndicator=e=>{rq=e};const XO=se.createContext({});XO.Consumer;var aq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{prefixCls:t,className:n,avatar:r,title:a,description:o}=e,i=aq(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:s}=l.useContext(st),c=s("list",t),u=ne(`${c}-item-meta`,n),d=se.createElement("div",{className:`${c}-item-meta-content`},a&&se.createElement("h4",{className:`${c}-item-meta-title`},a),o&&se.createElement("div",{className:`${c}-item-meta-description`},o));return se.createElement("div",Object.assign({},i,{className:u}),r&&se.createElement("div",{className:`${c}-item-meta-avatar`},r),(a||o)&&d)},zSe=se.forwardRef((e,t)=>{const{prefixCls:n,children:r,actions:a,extra:o,styles:i,className:s,classNames:c,colStyle:u}=e,d=aq(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:f,itemLayout:p}=l.useContext(XO),{getPrefixCls:g,list:h}=l.useContext(st),b=I=>{var T,R;return ne((R=(T=h==null?void 0:h.item)===null||T===void 0?void 0:T.classNames)===null||R===void 0?void 0:R[I],c==null?void 0:c[I])},y=I=>{var T,R;return Object.assign(Object.assign({},(R=(T=h==null?void 0:h.item)===null||T===void 0?void 0:T.styles)===null||R===void 0?void 0:R[I]),i==null?void 0:i[I])},S=()=>{let I=!1;return l.Children.forEach(r,T=>{typeof T=="string"&&(I=!0)}),I&&l.Children.count(r)>1},v=()=>p==="vertical"?!!o:!S(),x=g("list",n),w=a&&a.length>0&&se.createElement("ul",{className:ne(`${x}-item-action`,b("actions")),key:"actions",style:y("actions")},a.map((I,T)=>se.createElement("li",{key:`${x}-item-action-${T}`},I,T!==a.length-1&&se.createElement("em",{className:`${x}-item-action-split`})))),C=f?"div":"li",E=se.createElement(C,Object.assign({},d,f?{}:{ref:t},{className:ne(`${x}-item`,{[`${x}-item-no-flex`]:!v()},s)}),p==="vertical"&&o?[se.createElement("div",{className:`${x}-item-main`,key:"content"},r,w),se.createElement("div",{className:ne(`${x}-item-extra`,b("extra")),key:"extra",style:y("extra")},o)]:[r,w,Cr(o,{key:"extra"})]);return f?se.createElement(En,{ref:t,flex:1,style:u},E):E}),nd=zSe;nd.Meta=BSe;const HSe=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:a,itemPaddingSM:o,itemPaddingLG:i,marginLG:s,borderRadiusLG:c}=e;return{[t]:{border:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:c,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${K(a)} ${K(s)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:o}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:i}}}},USe=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:a,marginSM:o,margin:i}=e;return{[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:a}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:a}}}},[`@media screen and (max-width: ${n}px)`]:{[t]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:o}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${K(i)}`}}}}}},VSe=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:a,paddingSM:o,marginLG:i,padding:s,itemPadding:c,colorPrimary:u,itemPaddingSM:d,itemPaddingLG:f,paddingXS:p,margin:g,colorText:h,colorTextDescription:b,motionDurationSlow:y,lineWidth:S,headerBg:v,footerBg:x,emptyTextPadding:w,metaMarginBottom:C,avatarMarginRight:E,titleMarginBottom:I,descriptionFontSize:T}=e;return{[t]:Object.assign(Object.assign({},nn(e)),{position:"relative","*":{outline:"none"},[`${t}-header`]:{background:v},[`${t}-footer`]:{background:x},[`${t}-header, ${t}-footer`]:{paddingBlock:o},[`${t}-pagination`]:{marginBlockStart:i,[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:a,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:c,color:h,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:E},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:h},[`${t}-item-meta-title`]:{margin:`0 0 ${K(e.marginXXS)} 0`,color:h,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:h,transition:`all ${y}`,"&:hover":{color:u}}},[`${t}-item-meta-description`]:{color:b,fontSize:T,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${K(p)}`,color:b,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:S,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${K(s)} 0`,color:b,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:w,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:g,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:i},[`${t}-item-meta`]:{marginBlockEnd:C,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:I,color:h,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:s,marginInlineStart:"auto","> li":{padding:`0 ${K(s)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${K(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${K(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${K(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${K(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:f},[`${t}-sm ${t}-item`]:{padding:d},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},WSe=e=>({contentWidth:220,itemPadding:`${K(e.paddingContentVertical)} 0`,itemPaddingSM:`${K(e.paddingContentVerticalSM)} ${K(e.paddingContentHorizontal)}`,itemPaddingLG:`${K(e.paddingContentVerticalLG)} ${K(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),GSe=on("List",e=>{const t=zt(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[VSe(t),HSe(t),USe(t)]},WSe);var qSe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a(he,ae)=>{var ie;I(he),R(ae),t&&((ie=t==null?void 0:t[be])===null||ie===void 0||ie.call(t,he,ae))},N=O("onChange"),k=O("onShowSizeChange"),M=(be,he)=>{if(!v)return null;let ae;return typeof S=="function"?ae=S(be):S?ae=be[S]:ae=be.key,ae||(ae=`list-item-${he}`),l.createElement(l.Fragment,{key:ae},v(be,he))},L=()=>!!(d||t||b),F=_("list",n),[j,B,z]=GSe(F);let H=y;typeof H=="boolean"&&(H={spinning:H});const V=!!(H!=null&&H.spinning),te=Er(g);let Y="";switch(te){case"large":Y="lg";break;case"small":Y="sm";break}const J=ne(F,{[`${F}-vertical`]:u==="vertical",[`${F}-${Y}`]:Y,[`${F}-split`]:a,[`${F}-bordered`]:r,[`${F}-loading`]:V,[`${F}-grid`]:!!f,[`${F}-something-after-last-item`]:L(),[`${F}-rtl`]:P==="rtl"},D==null?void 0:D.className,o,i,B,z),G=XG(A,{total:p.length,current:E,pageSize:T},t||{}),U=Math.ceil(G.total/G.pageSize);G.current>U&&(G.current=U);const q=t&&l.createElement("div",{className:ne(`${F}-pagination`)},l.createElement(KO,Object.assign({align:"end"},G,{onChange:N,onShowSizeChange:k})));let X=Pe(p);t&&p.length>(G.current-1)*G.pageSize&&(X=Pe(p).splice((G.current-1)*G.pageSize,G.pageSize));const Q=Object.keys(f||{}).some(be=>["xs","sm","md","lg","xl","xxl"].includes(be)),ee=F0(Q),oe=l.useMemo(()=>{for(let be=0;be{if(!f)return;const be=oe&&f[oe]?f[oe]:f.column;if(be)return{width:`${100/be}%`,maxWidth:`${100/be}%`}},[JSON.stringify(f),oe]);let fe=V&&l.createElement("div",{style:{minHeight:53}});if(X.length>0){const be=X.map((he,ae)=>M(he,ae));fe=f?l.createElement(Na,{gutter:f.gutter},l.Children.map(be,he=>l.createElement("div",{key:he==null?void 0:he.key,style:le},he))):l.createElement("ul",{className:`${F}-items`},be)}else!c&&!V&&(fe=l.createElement("div",{className:`${F}-empty-text`},(x==null?void 0:x.emptyText)||($==null?void 0:$("List"))||l.createElement(D0,{componentName:"List"})));const ce=G.position||"bottom",Ie=l.useMemo(()=>({grid:f,itemLayout:u}),[JSON.stringify(f),u]);return j(l.createElement(XO.Provider,{value:Ie},l.createElement("div",Object.assign({style:Object.assign(Object.assign({},D==null?void 0:D.style),s),className:J},w),(ce==="top"||ce==="both")&&q,h&&l.createElement("div",{className:`${F}-header`},h),l.createElement(YO,Object.assign({},H),fe,c),b&&l.createElement("div",{className:`${F}-footer`},b),d||(ce==="bottom"||ce==="both")&&q)))}xl.Item=nd;let Ao=null,tc=e=>e(),vg=[],bg={};function _P(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:a}=bg,o=(e==null?void 0:e())||document.body;return{getContainer:()=>o,duration:t,rtl:n,maxCount:r,top:a}}const KSe=se.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:a}=l.useContext(st),o=bg.prefixCls||a("message"),i=l.useContext(zce),[s,c]=eU(Object.assign(Object.assign(Object.assign({},n),{prefixCls:o}),i.message));return se.useImperativeHandle(t,()=>{const u=Object.assign({},s);return Object.keys(u).forEach(d=>{u[d]=function(){return r(),s[d].apply(s,arguments)}}),{instance:u,sync:r}}),c}),YSe=se.forwardRef((e,t)=>{const[n,r]=se.useState(_P),a=()=>{r(_P)};se.useEffect(a,[]);const o=zH(),i=o.getRootPrefixCls(),s=o.getIconPrefixCls(),c=o.getTheme(),u=se.createElement(KSe,{ref:t,sync:a,messageConfig:n});return se.createElement(Si,{prefixCls:i,iconPrefixCls:s,theme:c},o.holderRender?o.holderRender(u):u)});function oy(){if(!Ao){const e=document.createDocumentFragment(),t={fragment:e};Ao=t,tc(()=>{Z$(se.createElement(YSe,{ref:n=>{const{instance:r,sync:a}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=a,oy())})}}),e)});return}Ao.instance&&(vg.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{tc(()=>{const r=Ao.instance.open(Object.assign(Object.assign({},bg),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":tc(()=>{Ao==null||Ao.instance.destroy(e.key)});break;default:tc(()=>{var r;const a=(r=Ao.instance)[t].apply(r,Pe(e.args));a==null||a.then(e.resolve),e.setCloseFn(a)})}}),vg=[])}function XSe(e){bg=Object.assign(Object.assign({},bg),e),tc(()=>{var t;(t=Ao==null?void 0:Ao.sync)===null||t===void 0||t.call(Ao)})}function ZSe(e){const t=X$(n=>{let r;const a={type:"open",config:e,resolve:n,setCloseFn:o=>{r=o}};return vg.push(a),()=>{r?tc(()=>{r()}):a.skipped=!0}});return oy(),t}function QSe(e,t){const n=X$(r=>{let a;const o={type:e,args:t,resolve:r,setCloseFn:i=>{a=i}};return vg.push(o),()=>{a?tc(()=>{a()}):o.skipped=!0}});return oy(),n}const JSe=e=>{vg.push({type:"destroy",key:e}),oy()},e1e=["success","info","warning","error","loading"],t1e={open:ZSe,destroy:JSe,config:XSe,useMessage:xie,_InternalPanelDoNotUseOrYouWillBeFired:pie},Ye=t1e;e1e.forEach(e=>{Ye[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r{const{prefixCls:t,className:n,closeIcon:r,closable:a,type:o,title:i,children:s,footer:c}=e,u=n1e(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:d}=l.useContext(st),f=d(),p=t||d("modal"),g=Un(f),[h,b,y]=DU(p,g),S=`${p}-confirm`;let v={};return o?v={closable:a??!1,title:"",footer:"",children:l.createElement(FU,Object.assign({},e,{prefixCls:p,confirmPrefixCls:S,rootPrefixCls:f,content:s}))}:v={closable:a??!0,title:i,footer:c!==null&&l.createElement(kU,Object.assign({},e)),children:s},h(l.createElement(vU,Object.assign({prefixCls:p,className:ne(b,`${p}-pure-panel`,o&&S,o&&`${S}-${o}`,n,y,g)},u,{closeIcon:NU(p,r),closable:a},v)))},a1e=qU(r1e);function oq(e){return em(HU(e))}const Sn=LU;Sn.useModal=Bce;Sn.info=function(t){return em(UU(t))};Sn.success=function(t){return em(VU(t))};Sn.error=function(t){return em(WU(t))};Sn.warning=oq;Sn.warn=oq;Sn.confirm=function(t){return em(GU(t))};Sn.destroyAll=function(){for(;Jl.length;){const t=Jl.pop();t&&t()}};Sn.config=Pce;Sn._InternalPanelDoNotUseOrYouWillBeFired=a1e;var o1e={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},i1e=function(){var t=l.useRef([]),n=l.useRef(null);return l.useEffect(function(){var r=Date.now(),a=!1;t.current.forEach(function(o){if(o){a=!0;var i=o.style;i.transitionDuration=".3s, .3s, .3s, .06s",n.current&&r-n.current<100&&(i.transitionDuration="0s, 0s")}}),a&&(n.current=Date.now())}),t.current},$P=0,s1e=Qr();function l1e(){var e;return s1e?(e=$P,$P+=1):e="TEST_OR_SSR",e}const c1e=function(e){var t=l.useState(),n=re(t,2),r=n[0],a=n[1];return l.useEffect(function(){a("rc_progress_".concat(l1e()))},[]),e||r};var OP=function(t){var n=t.bg,r=t.children;return l.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function NP(e,t){return Object.keys(e).map(function(n){var r=parseFloat(n),a="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(a)})}var u1e=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,a=e.gradientId,o=e.radius,i=e.style,s=e.ptg,c=e.strokeLinecap,u=e.strokeWidth,d=e.size,f=e.gapDegree,p=r&&mt(r)==="object",g=p?"#FFF":void 0,h=d/2,b=l.createElement("circle",{className:"".concat(n,"-circle-path"),r:o,cx:h,cy:h,stroke:g,strokeLinecap:c,strokeWidth:u,opacity:s===0?0:1,style:i,ref:t});if(!p)return b;var y="".concat(a,"-conic"),S=f?"".concat(180+f/2,"deg"):"0deg",v=NP(r,(360-f)/360),x=NP(r,1),w="conic-gradient(from ".concat(S,", ").concat(v.join(", "),")"),C="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(x.join(", "),")");return l.createElement(l.Fragment,null,l.createElement("mask",{id:y},b),l.createElement("foreignObject",{x:0,y:0,width:d,height:d,mask:"url(#".concat(y,")")},l.createElement(OP,{bg:C},l.createElement(OP,{bg:w}))))}),Qf=100,b1=function(t,n,r,a,o,i,s,c,u,d){var f=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,p=r/100*360*((360-i)/360),g=i===0?0:{bottom:0,top:180,left:90,right:-90}[s],h=(100-a)/100*n;u==="round"&&a!==100&&(h+=d/2,h>=n&&(h=n-.01));var b=Qf/2;return{stroke:typeof c=="string"?c:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:h+f,transform:"rotate(".concat(o+p+g,"deg)"),transformOrigin:"".concat(b,"px ").concat(b,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},d1e=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function kP(e){var t=e??[];return Array.isArray(t)?t:[t]}var f1e=function(t){var n=Z(Z({},o1e),t),r=n.id,a=n.prefixCls,o=n.steps,i=n.strokeWidth,s=n.trailWidth,c=n.gapDegree,u=c===void 0?0:c,d=n.gapPosition,f=n.trailColor,p=n.strokeLinecap,g=n.style,h=n.className,b=n.strokeColor,y=n.percent,S=xt(n,d1e),v=Qf/2,x=c1e(r),w="".concat(x,"-gradient"),C=v-i/2,E=Math.PI*2*C,I=u>0?90+u/2:-90,T=E*((360-u)/360),R=mt(o)==="object"?o:{count:o,gap:2},_=R.count,$=R.gap,P=kP(y),D=kP(b),A=D.find(function(j){return j&&mt(j)==="object"}),O=A&&mt(A)==="object",N=O?"butt":p,k=b1(E,T,0,100,I,u,d,f,N,i),M=i1e(),L=function(){var B=0;return P.map(function(z,H){var V=D[H]||D[D.length-1],te=b1(E,T,B,z,I,u,d,V,N,i);return B+=z,l.createElement(u1e,{key:H,color:V,ptg:z,radius:C,prefixCls:a,gradientId:w,style:te,strokeLinecap:N,strokeWidth:i,gapDegree:u,ref:function(J){M[H]=J},size:Qf})}).reverse()},F=function(){var B=Math.round(_*(P[0]/100)),z=100/_,H=0;return new Array(_).fill(null).map(function(V,te){var Y=te<=B-1?D[0]:f,J=Y&&mt(Y)==="object"?"url(#".concat(w,")"):void 0,G=b1(E,T,H,z,I,u,d,Y,"butt",i,$);return H+=(T-G.strokeDashoffset+$)*100/T,l.createElement("circle",{key:te,className:"".concat(a,"-circle-path"),r:C,cx:v,cy:v,stroke:J,strokeWidth:i,opacity:1,style:G,ref:function(q){M[te]=q}})})};return l.createElement("svg",pe({className:ne("".concat(a,"-circle"),h),viewBox:"0 0 ".concat(Qf," ").concat(Qf),style:g,id:r,role:"presentation"},S),!_&&l.createElement("circle",{className:"".concat(a,"-circle-trail"),r:C,cx:v,cy:v,stroke:f,strokeLinecap:N,strokeWidth:s||i,style:k}),_?F():L())};function fl(e){return!e||e<0?0:e>100?100:e}function Cb(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}const p1e=e=>{let{percent:t,success:n,successPercent:r}=e;const a=fl(Cb({success:n,successPercent:r}));return[a,fl(fl(t)-a)]},g1e=e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||Ju.green,n||null]},iy=(e,t,n)=>{var r,a,o,i;let s=-1,c=-1;if(t==="step"){const u=n.steps,d=n.strokeWidth;typeof e=="string"||typeof e>"u"?(s=e==="small"?2:14,c=d??8):typeof e=="number"?[s,c]=[e,e]:[s=14,c=8]=Array.isArray(e)?e:[e.width,e.height],s*=u}else if(t==="line"){const u=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?c=u||(e==="small"?6:8):typeof e=="number"?[s,c]=[e,e]:[s=-1,c=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[s,c]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[s,c]=[e,e]:Array.isArray(e)&&(s=(a=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&a!==void 0?a:120,c=(i=(o=e[0])!==null&&o!==void 0?o:e[1])!==null&&i!==void 0?i:120));return[s,c]},m1e=3,h1e=e=>m1e/e*100,v1e=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:a,gapDegree:o,width:i=120,type:s,children:c,success:u,size:d=i,steps:f}=e,[p,g]=iy(d,"circle");let{strokeWidth:h}=e;h===void 0&&(h=Math.max(h1e(p),6));const b={width:p,height:g,fontSize:p*.15+6},y=l.useMemo(()=>{if(o||o===0)return o;if(s==="dashboard")return 75},[o,s]),S=p1e(e),v=a||s==="dashboard"&&"bottom"||void 0,x=Object.prototype.toString.call(e.strokeColor)==="[object Object]",w=g1e({success:u,strokeColor:e.strokeColor}),C=ne(`${t}-inner`,{[`${t}-circle-gradient`]:x}),E=l.createElement(f1e,{steps:f,percent:f?S[1]:S,strokeWidth:h,trailWidth:h,strokeColor:f?w[1]:w,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:y,gapPosition:v}),I=p<=20,T=l.createElement("div",{className:C,style:b},E,!I&&c);return I?l.createElement(Zt,{title:c},T):T},Eb="--progress-line-stroke-color",iq="--progress-percent",AP=e=>{const t=e?"100%":"-100%";return new un(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},b1e=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},nn(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${Eb})`]},height:"100%",width:`calc(1 / var(${iq}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${K(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:AP(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:AP(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},y1e=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},S1e=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},x1e=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},w1e=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),C1e=on("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=zt(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[b1e(n),y1e(n),S1e(n),x1e(n)]},w1e);var E1e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{let t=[];return Object.keys(e).forEach(n=>{const r=parseFloat(n.replace(/%/g,""));isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(n=>{let{key:r,value:a}=n;return`${a} ${r}%`}).join(", ")},T1e=(e,t)=>{const{from:n=Ju.blue,to:r=Ju.blue,direction:a=t==="rtl"?"to left":"to right"}=e,o=E1e(e,["from","to","direction"]);if(Object.keys(o).length!==0){const s=I1e(o),c=`linear-gradient(${a}, ${s})`;return{background:c,[Eb]:c}}const i=`linear-gradient(${a}, ${n}, ${r})`;return{background:i,[Eb]:i}},R1e=e=>{const{prefixCls:t,direction:n,percent:r,size:a,strokeWidth:o,strokeColor:i,strokeLinecap:s="round",children:c,trailColor:u=null,percentPosition:d,success:f}=e,{align:p,type:g}=d,h=i&&typeof i!="string"?T1e(i,n):{[Eb]:i,background:i},b=s==="square"||s==="butt"?0:void 0,y=a??[-1,o||(a==="small"?6:8)],[S,v]=iy(y,"line",{strokeWidth:o}),x={backgroundColor:u||void 0,borderRadius:b},w=Object.assign(Object.assign({width:`${fl(r)}%`,height:v,borderRadius:b},h),{[iq]:fl(r)/100}),C=Cb(e),E={width:`${fl(C)}%`,height:v,borderRadius:b,backgroundColor:f==null?void 0:f.strokeColor},I={width:S<0?"100%":S},T=l.createElement("div",{className:`${t}-inner`,style:x},l.createElement("div",{className:ne(`${t}-bg`,`${t}-bg-${g}`),style:w},g==="inner"&&c),C!==void 0&&l.createElement("div",{className:`${t}-success-bg`,style:E})),R=g==="outer"&&p==="start",_=g==="outer"&&p==="end";return g==="outer"&&p==="center"?l.createElement("div",{className:`${t}-layout-bottom`},T,c):l.createElement("div",{className:`${t}-outer`,style:I},R&&c,T,_&&c)},_1e=e=>{const{size:t,steps:n,percent:r=0,strokeWidth:a=8,strokeColor:o,trailColor:i=null,prefixCls:s,children:c}=e,u=Math.round(n*(r/100)),f=t??[t==="small"?2:14,a],[p,g]=iy(f,"step",{steps:n,strokeWidth:a}),h=p/n,b=new Array(n);for(let y=0;y{const{prefixCls:n,className:r,rootClassName:a,steps:o,strokeColor:i,percent:s=0,size:c="default",showInfo:u=!0,type:d="line",status:f,format:p,style:g,percentPosition:h={}}=e,b=$1e(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:y="end",type:S="outer"}=h,v=Array.isArray(i)?i[0]:i,x=typeof i=="string"||Array.isArray(i)?i:void 0,w=l.useMemo(()=>{if(v){const L=typeof v=="string"?v:Object.values(v)[0];return new an(L).isLight()}return!1},[i]),C=l.useMemo(()=>{var L,F;const j=Cb(e);return parseInt(j!==void 0?(L=j??0)===null||L===void 0?void 0:L.toString():(F=s??0)===null||F===void 0?void 0:F.toString(),10)},[s,e.success,e.successPercent]),E=l.useMemo(()=>!O1e.includes(f)&&C>=100?"success":f||"normal",[f,C]),{getPrefixCls:I,direction:T,progress:R}=l.useContext(st),_=I("progress",n),[$,P,D]=C1e(_),A=d==="line",O=A&&!o,N=l.useMemo(()=>{if(!u)return null;const L=Cb(e);let F;const j=p||(z=>`${z}%`),B=A&&w&&S==="inner";return S==="inner"||p||E!=="exception"&&E!=="success"?F=j(fl(s),fl(L)):E==="exception"?F=A?l.createElement(Pc,null):l.createElement(ta,null):E==="success"&&(F=A?l.createElement(Wg,null):l.createElement(am,null)),l.createElement("span",{className:ne(`${_}-text`,{[`${_}-text-bright`]:B,[`${_}-text-${y}`]:O,[`${_}-text-${S}`]:O}),title:typeof F=="string"?F:void 0},F)},[u,s,C,E,d,_,p]);let k;d==="line"?k=o?l.createElement(_1e,Object.assign({},e,{strokeColor:x,prefixCls:_,steps:typeof o=="object"?o.count:o}),N):l.createElement(R1e,Object.assign({},e,{strokeColor:v,prefixCls:_,direction:T,percentPosition:{align:y,type:S}}),N):(d==="circle"||d==="dashboard")&&(k=l.createElement(v1e,Object.assign({},e,{strokeColor:v,prefixCls:_,progressStatus:E}),N));const M=ne(_,`${_}-status-${E}`,{[`${_}-${d==="dashboard"&&"circle"||d}`]:d!=="line",[`${_}-inline-circle`]:d==="circle"&&iy(c,"circle")[0]<=20,[`${_}-line`]:O,[`${_}-line-align-${y}`]:O,[`${_}-line-position-${S}`]:O,[`${_}-steps`]:o,[`${_}-show-info`]:u,[`${_}-${c}`]:typeof c=="string",[`${_}-rtl`]:T==="rtl"},R==null?void 0:R.className,r,a,P,D);return $(l.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},R==null?void 0:R.style),g),className:M,role:"progressbar","aria-valuenow":C,"aria-valuemin":0,"aria-valuemax":100},On(b,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),k))});var N1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M855 160.1l-189.2 23.5c-6.6.8-9.3 8.8-4.7 13.5l54.7 54.7-153.5 153.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l153.6-153.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L863.9 169a7.9 7.9 0 00-8.9-8.9zM416.6 562.3a8.03 8.03 0 00-11.3 0L251.8 715.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L160.1 855c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 153.6-153.6c3.1-3.1 3.1-8.2 0-11.3l-45.2-45z"}}]},name:"arrows-alt",theme:"outlined"},k1e=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:N1e}))},A1e=l.forwardRef(k1e),M1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-260 72h96v209.9L621.5 312 572 347.4V136zm220 752H232V136h280v296.9c0 3.3 1 6.6 3 9.3a15.9 15.9 0 0022.3 3.7l83.8-59.9 81.4 59.4c2.7 2 6 3.1 9.4 3.1 8.8 0 16-7.2 16-16V136h64v752z"}}]},name:"book",theme:"outlined"},P1e=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:M1e}))},D1e=l.forwardRef(P1e),L1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M740 161c-61.8 0-112 50.2-112 112 0 50.1 33.1 92.6 78.5 106.9v95.9L320 602.4V318.1c44.2-15 76-56.9 76-106.1 0-61.8-50.2-112-112-112s-112 50.2-112 112c0 49.2 31.8 91 76 106.1V706c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c0-49.2-31.8-91-76-106.1v-27.8l423.5-138.7a50.52 50.52 0 0034.9-48.2V378.2c42.9-15.8 73.6-57 73.6-105.2 0-61.8-50.2-112-112-112zm-504 51a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm96 600a48.01 48.01 0 01-96 0 48.01 48.01 0 0196 0zm408-491a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"branches",theme:"outlined"},F1e=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:L1e}))},j1e=l.forwardRef(F1e),B1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M632 888H392c-4.4 0-8 3.6-8 8v32c0 17.7 14.3 32 32 32h192c17.7 0 32-14.3 32-32v-32c0-4.4-3.6-8-8-8zM512 64c-181.1 0-328 146.9-328 328 0 121.4 66 227.4 164 284.1V792c0 17.7 14.3 32 32 32h264c17.7 0 32-14.3 32-32V676.1c98-56.7 164-162.7 164-284.1 0-181.1-146.9-328-328-328zm127.9 549.8L604 634.6V752H420V634.6l-35.9-20.8C305.4 568.3 256 484.5 256 392c0-141.4 114.6-256 256-256s256 114.6 256 256c0 92.5-49.4 176.3-128.1 221.8z"}}]},name:"bulb",theme:"outlined"},z1e=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:B1e}))},H1e=l.forwardRef(z1e),U1e={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"},V1e=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:U1e}))},W1e=l.forwardRef(V1e),G1e={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"},q1e=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:G1e}))},K1e=l.forwardRef(q1e),Y1e={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"},X1e=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Y1e}))},Z1e=l.forwardRef(X1e),Q1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{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"}}]},name:"check-circle",theme:"outlined"},J1e=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Q1e}))},PR=l.forwardRef(J1e),exe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M433.1 657.7a31.8 31.8 0 0051.7 0l210.6-292c3.8-5.3 0-12.7-6.5-12.7H642c-10.2 0-19.9 4.9-25.9 13.3L459 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H315c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.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:"check-square",theme:"outlined"},txe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:exe}))},DR=l.forwardRef(txe),nxe={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 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},rxe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:nxe}))},MP=l.forwardRef(rxe),axe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M704 446H320c-4.4 0-8 3.6-8 8v402c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8V454c0-4.4-3.6-8-8-8zm-328 64h272v117H376V510zm272 290H376V683h272v117z"}},{tag:"path",attrs:{d:"M424 748a32 32 0 1064 0 32 32 0 10-64 0zm0-178a32 32 0 1064 0 32 32 0 10-64 0z"}},{tag:"path",attrs:{d:"M811.4 368.9C765.6 248 648.9 162 512.2 162S258.8 247.9 213 368.8C126.9 391.5 63.5 470.2 64 563.6 64.6 668 145.6 752.9 247.6 762c4.7.4 8.7-3.3 8.7-8v-60.4c0-4-3-7.4-7-7.9-27-3.4-52.5-15.2-72.1-34.5-24-23.5-37.2-55.1-37.2-88.6 0-28 9.1-54.4 26.2-76.4 16.7-21.4 40.2-36.9 66.1-43.7l37.9-10 13.9-36.7c8.6-22.8 20.6-44.2 35.7-63.5 14.9-19.2 32.6-36 52.4-50 41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.3c19.9 14 37.5 30.8 52.4 50 15.1 19.3 27.1 40.7 35.7 63.5l13.8 36.6 37.8 10c54.2 14.4 92.1 63.7 92.1 120 0 33.6-13.2 65.1-37.2 88.6-19.5 19.2-44.9 31.1-71.9 34.5-4 .5-6.9 3.9-6.9 7.9V754c0 4.7 4.1 8.4 8.8 8 101.7-9.2 182.5-94 183.2-198.2.6-93.4-62.7-172.1-148.6-194.9z"}}]},name:"cloud-server",theme:"outlined"},oxe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:axe}))},ixe=l.forwardRef(oxe),sxe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M811.4 368.9C765.6 248 648.9 162 512.2 162S258.8 247.9 213 368.8C126.9 391.5 63.5 470.2 64 563.6 64.6 668 145.6 752.9 247.6 762c4.7.4 8.7-3.3 8.7-8v-60.4c0-4-3-7.4-7-7.9-27-3.4-52.5-15.2-72.1-34.5-24-23.5-37.2-55.1-37.2-88.6 0-28 9.1-54.4 26.2-76.4 16.7-21.4 40.2-36.9 66.1-43.7l37.9-10 13.9-36.7c8.6-22.8 20.6-44.2 35.7-63.5 14.9-19.2 32.6-36 52.4-50 41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.3c19.9 14 37.5 30.8 52.4 50 15.1 19.3 27.1 40.7 35.7 63.5l13.8 36.6 37.8 10c54.2 14.4 92.1 63.7 92.1 120 0 33.6-13.2 65.1-37.2 88.6-19.5 19.2-44.9 31.1-71.9 34.5-4 .5-6.9 3.9-6.9 7.9V754c0 4.7 4.1 8.4 8.8 8 101.7-9.2 182.5-94 183.2-198.2.6-93.4-62.7-172.1-148.6-194.9z"}},{tag:"path",attrs:{d:"M376.9 656.4c1.8-33.5 15.7-64.7 39.5-88.6 25.4-25.5 60-39.8 96-39.8 36.2 0 70.3 14.1 96 39.8 1.4 1.4 2.7 2.8 4.1 4.3l-25 19.6a8 8 0 003 14.1l98.2 24c5 1.2 9.9-2.6 9.9-7.7l.5-101.3c0-6.7-7.6-10.5-12.9-6.3L663 532.7c-36.6-42-90.4-68.6-150.5-68.6-107.4 0-195 85.1-199.4 191.7-.2 4.5 3.4 8.3 8 8.3H369c4.2-.1 7.7-3.4 7.9-7.7zM703 664h-47.9c-4.2 0-7.7 3.3-8 7.6-1.8 33.5-15.7 64.7-39.5 88.6-25.4 25.5-60 39.8-96 39.8-36.2 0-70.3-14.1-96-39.8-1.4-1.4-2.7-2.8-4.1-4.3l25-19.6a8 8 0 00-3-14.1l-98.2-24c-5-1.2-9.9 2.6-9.9 7.7l-.4 101.4c0 6.7 7.6 10.5 12.9 6.3l23.2-18.2c36.6 42 90.4 68.6 150.5 68.6 107.4 0 195-85.1 199.4-191.7.2-4.5-3.4-8.3-8-8.3z"}}]},name:"cloud-sync",theme:"outlined"},lxe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:sxe}))},LR=l.forwardRef(lxe),cxe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M518.3 459a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-upload",theme:"outlined"},uxe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:cxe}))},dxe=l.forwardRef(uxe),fxe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48zm-194.9 6.1l192-161c3.8-3.2 3.8-9.1 0-12.3l-192-160.9A7.95 7.95 0 00308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 00-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM880 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:"code",theme:"outlined"},pxe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:fxe}))},ZO=l.forwardRef(pxe),gxe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M573 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40zm-280 0c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40z"}},{tag:"path",attrs:{d:"M894 345a343.92 343.92 0 00-189-130v.1c-17.1-19-36.4-36.5-58-52.1-163.7-119-393.5-82.7-513 81-96.3 133-92.2 311.9 6 439l.8 132.6c0 3.2.5 6.4 1.5 9.4a31.95 31.95 0 0040.1 20.9L309 806c33.5 11.9 68.1 18.7 102.5 20.6l-.5.4c89.1 64.9 205.9 84.4 313 49l127.1 41.4c3.2 1 6.5 1.6 9.9 1.6 17.7 0 32-14.3 32-32V753c88.1-119.6 90.4-284.9 1-408zM323 735l-12-5-99 31-1-104-8-9c-84.6-103.2-90.2-251.9-11-361 96.4-132.2 281.2-161.4 413-66 132.2 96.1 161.5 280.6 66 412-80.1 109.9-223.5 150.5-348 102zm505-17l-8 10 1 104-98-33-12 5c-56 20.8-115.7 22.5-171 7l-.2-.1A367.31 367.31 0 00729 676c76.4-105.3 88.8-237.6 44.4-350.4l.6.4c23 16.5 44.1 37.1 62 62 72.6 99.6 68.5 235.2-8 330z"}},{tag:"path",attrs:{d:"M433 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40z"}}]},name:"comment",theme:"outlined"},mxe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:gxe}))},hxe=l.forwardRef(mxe),vxe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-40 824H232V687h97.9c11.6 32.8 32 62.3 59.1 84.7 34.5 28.5 78.2 44.3 123 44.3s88.5-15.7 123-44.3c27.1-22.4 47.5-51.9 59.1-84.7H792v-63H643.6l-5.2 24.7C626.4 708.5 573.2 752 512 752s-114.4-43.5-126.5-103.3l-5.2-24.7H232V136h560v752zM320 341h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 160h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}}]},name:"container",theme:"outlined"},bxe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:vxe}))},yxe=l.forwardRef(bxe),Sxe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},xxe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Sxe}))},QO=l.forwardRef(xxe),wxe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},Cxe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:wxe}))},Ed=l.forwardRef(Cxe),Exe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M632 698.3l141.9-112a8 8 0 000-12.6L632 461.7c-5.3-4.2-13-.4-13 6.3v76H295c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h324v76c0 6.7 7.8 10.4 13 6.3zm261.3-405L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v278c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V422c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-83.5c0-17-6.7-33.2-18.7-45.2zM640 288H384V184h256v104zm264 436h-56c-4.4 0-8 3.6-8 8v108H184V732c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v148c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V732c0-4.4-3.6-8-8-8z"}}]},name:"delivered-procedure",theme:"outlined"},Ixe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Exe}))},Jf=l.forwardRef(Ixe),Txe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888.3 693.2c-42.5-24.6-94.3-18-129.2 12.8l-53-30.7V523.6c0-15.7-8.4-30.3-22-38.1l-136-78.3v-67.1c44.2-15 76-56.8 76-106.1 0-61.9-50.1-112-112-112s-112 50.1-112 112c0 49.3 31.8 91.1 76 106.1v67.1l-136 78.3c-13.6 7.8-22 22.4-22 38.1v151.6l-53 30.7c-34.9-30.8-86.8-37.4-129.2-12.8-53.5 31-71.7 99.4-41 152.9 30.8 53.5 98.9 71.9 152.2 41 42.5-24.6 62.7-73 53.6-118.8l48.7-28.3 140.6 81c6.8 3.9 14.4 5.9 22 5.9s15.2-2 22-5.9L674.5 740l48.7 28.3c-9.1 45.7 11.2 94.2 53.6 118.8 53.3 30.9 121.5 12.6 152.2-41 30.8-53.6 12.6-122-40.7-152.9zm-673 138.4a47.6 47.6 0 01-65.2-17.6c-13.2-22.9-5.4-52.3 17.5-65.5a47.6 47.6 0 0165.2 17.6c13.2 22.9 5.4 52.3-17.5 65.5zM522 463.8zM464 234a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm170 446.2l-122 70.3-122-70.3V539.8l122-70.3 122 70.3v140.4zm239.9 133.9c-13.2 22.9-42.4 30.8-65.2 17.6-22.8-13.2-30.7-42.6-17.5-65.5s42.4-30.8 65.2-17.6c22.9 13.2 30.7 42.5 17.5 65.5z"}}]},name:"deployment-unit",theme:"outlined"},Rxe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Txe}))},_xe=l.forwardRef(Rxe),$xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},Oxe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:$xe}))},JO=l.forwardRef(Oxe),Nxe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},kxe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Nxe}))},yg=l.forwardRef(kxe),Axe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},Mxe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Axe}))},Pxe=l.forwardRef(Mxe),Dxe={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 42h216v494zM544 472c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v108H372c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h108v108c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V644h108c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V472z"}}]},name:"file-add",theme:"outlined"},Lxe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Dxe}))},Fxe=l.forwardRef(Lxe),jxe={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"},Bxe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:jxe}))},sq=l.forwardRef(Bxe),zxe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm144 452H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm445.7 51.5l-93.3-93.3C814.7 780.7 828 743.9 828 704c0-97.2-78.8-176-176-176s-176 78.8-176 176 78.8 176 176 176c35.8 0 69-10.7 96.8-29l94.7 94.7c1.6 1.6 3.6 2.3 5.6 2.3s4.1-.8 5.6-2.3l31-31a7.9 7.9 0 000-11.2zM652 816c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"file-search",theme:"outlined"},Hxe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:zxe}))},Uxe=l.forwardRef(Hxe),Vxe={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:n}},{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.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"},Wxe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Vxe}))},Gxe=l.forwardRef(Wxe),qxe={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"},Kxe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:qxe}))},Yxe=l.forwardRef(Kxe),Xxe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M834.1 469.2A347.49 347.49 0 00751.2 354l-29.1-26.7a8.09 8.09 0 00-13 3.3l-13 37.3c-8.1 23.4-23 47.3-44.1 70.8-1.4 1.5-3 1.9-4.1 2-1.1.1-2.8-.1-4.3-1.5-1.4-1.2-2.1-3-2-4.8 3.7-60.2-14.3-128.1-53.7-202C555.3 171 510 123.1 453.4 89.7l-41.3-24.3c-5.4-3.2-12.3 1-12 7.3l2.2 48c1.5 32.8-2.3 61.8-11.3 85.9-11 29.5-26.8 56.9-47 81.5a295.64 295.64 0 01-47.5 46.1 352.6 352.6 0 00-100.3 121.5A347.75 347.75 0 00160 610c0 47.2 9.3 92.9 27.7 136a349.4 349.4 0 0075.5 110.9c32.4 32 70 57.2 111.9 74.7C418.5 949.8 464.5 959 512 959s93.5-9.2 136.9-27.3A348.6 348.6 0 00760.8 857c32.4-32 57.8-69.4 75.5-110.9a344.2 344.2 0 0027.7-136c0-48.8-10-96.2-29.9-140.9zM713 808.5c-53.7 53.2-125 82.4-201 82.4s-147.3-29.2-201-82.4c-53.5-53.1-83-123.5-83-198.4 0-43.5 9.8-85.2 29.1-124 18.8-37.9 46.8-71.8 80.8-97.9a349.6 349.6 0 0058.6-56.8c25-30.5 44.6-64.5 58.2-101a240 240 0 0012.1-46.5c24.1 22.2 44.3 49 61.2 80.4 33.4 62.6 48.8 118.3 45.8 165.7a74.01 74.01 0 0024.4 59.8 73.36 73.36 0 0053.4 18.8c19.7-1 37.8-9.7 51-24.4 13.3-14.9 24.8-30.1 34.4-45.6 14 17.9 25.7 37.4 35 58.4 15.9 35.8 24 73.9 24 113.1 0 74.9-29.5 145.4-83 198.4z"}}]},name:"fire",theme:"outlined"},Zxe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Xxe}))},Qxe=l.forwardRef(Zxe),Jxe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M484 443.1V528h-84.5c-4.1 0-7.5 3.1-7.5 7v42c0 3.8 3.4 7 7.5 7H484v84.9c0 3.9 3.2 7.1 7 7.1h42c3.9 0 7-3.2 7-7.1V584h84.5c4.1 0 7.5-3.2 7.5-7v-42c0-3.9-3.4-7-7.5-7H540v-84.9c0-3.9-3.1-7.1-7-7.1h-42c-3.8 0-7 3.2-7 7.1zm396-144.7H521L403.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-add",theme:"outlined"},ewe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Jxe}))},FR=l.forwardRef(ewe),twe={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"},nwe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:twe}))},eN=l.forwardRef(nwe),rwe={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"},awe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:rwe}))},owe=l.forwardRef(awe),iwe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z"}}]},name:"form",theme:"outlined"},swe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:iwe}))},lwe=l.forwardRef(swe),cwe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"},uwe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:cwe}))},lq=l.forwardRef(uwe),dwe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M536.1 273H488c-4.4 0-8 3.6-8 8v275.3c0 2.6 1.2 5 3.3 6.5l165.3 120.7c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.7-3.7 1.9-8.7-1.7-11.2L544.1 528.5V281c0-4.4-3.6-8-8-8zm219.8 75.2l156.8 38.3c5 1.2 9.9-2.6 9.9-7.7l.8-161.5c0-6.7-7.7-10.5-12.9-6.3L752.9 334.1a8 8 0 003 14.1zm167.7 301.1l-56.7-19.5a8 8 0 00-10.1 4.8c-1.9 5.1-3.9 10.1-6 15.1-17.8 42.1-43.3 80-75.9 112.5a353 353 0 01-112.5 75.9 352.18 352.18 0 01-137.7 27.8c-47.8 0-94.1-9.3-137.7-27.8a353 353 0 01-112.5-75.9c-32.5-32.5-58-70.4-75.9-112.5A353.44 353.44 0 01171 512c0-47.8 9.3-94.2 27.8-137.8 17.8-42.1 43.3-80 75.9-112.5a353 353 0 01112.5-75.9C430.6 167.3 477 158 524.8 158s94.1 9.3 137.7 27.8A353 353 0 01775 261.7c10.2 10.3 19.8 21 28.6 32.3l59.8-46.8C784.7 146.6 662.2 81.9 524.6 82 285 82.1 92.6 276.7 95 516.4 97.4 751.9 288.9 942 524.8 942c185.5 0 343.5-117.6 403.7-282.3 1.5-4.2-.7-8.9-4.9-10.4z"}}]},name:"history",theme:"outlined"},fwe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:dwe}))},pwe=l.forwardRef(fwe),gwe={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"},mwe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:gwe}))},hwe=l.forwardRef(mwe),vwe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 00-44.4 0L77.5 505a63.9 63.9 0 00-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0018.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z"}}]},name:"home",theme:"outlined"},bwe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:vwe}))},ywe=l.forwardRef(bwe),Swe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},xwe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Swe}))},tN=l.forwardRef(xwe),wwe={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:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},Cwe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:wwe}))},Hu=l.forwardRef(Cwe),Ewe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M956.9 845.1L896.4 632V168c0-17.7-14.3-32-32-32h-704c-17.7 0-32 14.3-32 32v464L67.9 845.1C60.4 866 75.8 888 98 888h828.8c22.2 0 37.6-22 30.1-42.9zM200.4 208h624v395h-624V208zm228.3 608l8.1-37h150.3l8.1 37H428.7zm224 0l-19.1-86.7c-.8-3.7-4.1-6.3-7.8-6.3H398.2c-3.8 0-7 2.6-7.8 6.3L371.3 816H151l42.3-149h638.2l42.3 149H652.7z"}}]},name:"laptop",theme:"outlined"},Iwe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Ewe}))},Twe=l.forwardRef(Iwe),Rwe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 00-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 00471 99.9c-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81zm636.4-353l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5a44.1 44.1 0 0142.2-32.3c7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z"}}]},name:"like",theme:"outlined"},_we=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Rwe}))},$we=l.forwardRef(_we),Owe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M574 665.4a8.03 8.03 0 00-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 00-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 000 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 000 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 00-11.3 0L372.3 598.7a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z"}}]},name:"link",theme:"outlined"},Nwe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Owe}))},kwe=l.forwardRef(Nwe),Awe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"},Mwe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Awe}))},Pwe=l.forwardRef(Mwe),Dwe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"},Lwe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Dwe}))},Fwe=l.forwardRef(Lwe),jwe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{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"}}]},name:"minus-circle",theme:"outlined"},Bwe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:jwe}))},zwe=l.forwardRef(Bwe),Hwe={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"},Uwe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Hwe}))},Vwe=l.forwardRef(Uwe),Wwe={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M489.5 111.66c30.65-1.8 45.98 36.44 22.58 56.33A243.35 243.35 0 00426 354c0 134.76 109.24 244 244 244 72.58 0 139.9-31.83 186.01-86.08 19.87-23.38 58.07-8.1 56.34 22.53C900.4 745.82 725.15 912 512.5 912 291.31 912 112 732.69 112 511.5c0-211.39 164.29-386.02 374.2-399.65l.2-.01zm-81.15 79.75l-4.11 1.36C271.1 237.94 176 364.09 176 511.5 176 697.34 326.66 848 512.5 848c148.28 0 274.94-96.2 319.45-230.41l.63-1.93-.11.07a307.06 307.06 0 01-159.73 46.26L670 662c-170.1 0-308-137.9-308-308 0-58.6 16.48-114.54 46.27-162.47z"}}]},name:"moon",theme:"outlined"},Gwe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Wwe}))},qwe=l.forwardRef(Gwe),Kwe={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M771.91 115a31.65 31.65 0 00-17.42 5.27L400 351.97H236a16 16 0 00-16 16v288.06a16 16 0 0016 16h164l354.5 231.7a31.66 31.66 0 0017.42 5.27c16.65 0 32.08-13.25 32.08-32.06V147.06c0-18.8-15.44-32.06-32.09-32.06M732 221v582L439.39 611.75l-17.95-11.73H292V423.98h129.44l17.95-11.73z"}}]},name:"muted",theme:"outlined"},Ywe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Kwe}))},Xwe=l.forwardRef(Ywe),Zwe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M952 612c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H298a95.92 95.92 0 00-89-60c-53 0-96 43-96 96s43 96 96 96c40.3 0 74.8-24.8 89-60h150.3v152c0 55.2 44.8 100 100 100H952c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H548.3c-15.5 0-28-12.5-28-28V612H952zM456 344h264v98.2c0 8.1 9.5 12.8 15.8 7.7l172.5-136.2c5-3.9 5-11.4 0-15.3L735.8 162.1c-6.4-5.1-15.8-.5-15.8 7.7V268H456c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8z"}}]},name:"node-expand",theme:"outlined"},Qwe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Zwe}))},PP=l.forwardRef(Qwe),Jwe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M920 760H336c-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-568H336c-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 284H336c-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-8zM216 712H100c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h72.4v20.5h-35.7c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h35.7V838H100c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h116c2.2 0 4-1.8 4-4V716c0-2.2-1.8-4-4-4zM100 188h38v120c0 2.2 1.8 4 4 4h40c2.2 0 4-1.8 4-4V152c0-4.4-3.6-8-8-8h-78c-2.2 0-4 1.8-4 4v36c0 2.2 1.8 4 4 4zm116 240H100c-2.2 0-4 1.8-4 4v36c0 2.2 1.8 4 4 4h68.4l-70.3 77.7a8.3 8.3 0 00-2.1 5.4V592c0 2.2 1.8 4 4 4h116c2.2 0 4-1.8 4-4v-36c0-2.2-1.8-4-4-4h-68.4l70.3-77.7a8.3 8.3 0 002.1-5.4V432c0-2.2-1.8-4-4-4z"}}]},name:"ordered-list",theme:"outlined"},eCe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:Jwe}))},tCe=l.forwardRef(eCe),nCe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},rCe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:nCe}))},aCe=l.forwardRef(rCe),oCe={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 372zm-88-532h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8zm224 0h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8z"}}]},name:"pause-circle",theme:"outlined"},iCe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:oCe}))},DP=l.forwardRef(iCe),sCe={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:n}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:n}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:n}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"},lCe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:sCe}))},cCe=l.forwardRef(lCe),uCe={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:"M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z"}}]},name:"play-circle",theme:"outlined"},dCe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:uCe}))},Li=l.forwardRef(dCe),fCe={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"},pCe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:fCe}))},cq=l.forwardRef(pCe),gCe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M705.6 124.9a8 8 0 00-11.6 7.2v64.2c0 5.5 2.9 10.6 7.5 13.6a352.2 352.2 0 0162.2 49.8c32.7 32.8 58.4 70.9 76.3 113.3a355 355 0 0127.9 138.7c0 48.1-9.4 94.8-27.9 138.7a355.92 355.92 0 01-76.3 113.3 353.06 353.06 0 01-113.2 76.4c-43.8 18.6-90.5 28-138.5 28s-94.7-9.4-138.5-28a353.06 353.06 0 01-113.2-76.4A355.92 355.92 0 01184 650.4a355 355 0 01-27.9-138.7c0-48.1 9.4-94.8 27.9-138.7 17.9-42.4 43.6-80.5 76.3-113.3 19-19 39.8-35.6 62.2-49.8 4.7-2.9 7.5-8.1 7.5-13.6V132c0-6-6.3-9.8-11.6-7.2C178.5 195.2 82 339.3 80 506.3 77.2 745.1 272.5 943.5 511.2 944c239 .5 432.8-193.3 432.8-432.4 0-169.2-97-315.7-238.4-386.7zM480 560h64c4.4 0 8-3.6 8-8V88c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z"}}]},name:"poweroff",theme:"outlined"},mCe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:gCe}))},hCe=l.forwardRef(mCe),vCe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M136 552h63.6c4.4 0 8-3.6 8-8V288.7h528.6v72.6c0 1.9.6 3.7 1.8 5.2a8.3 8.3 0 0011.7 1.4L893 255.4c4.3-5 3.6-10.3 0-13.2L749.7 129.8a8.22 8.22 0 00-5.2-1.8c-4.6 0-8.4 3.8-8.4 8.4V209H199.7c-39.5 0-71.7 32.2-71.7 71.8V544c0 4.4 3.6 8 8 8zm752-80h-63.6c-4.4 0-8 3.6-8 8v255.3H287.8v-72.6c0-1.9-.6-3.7-1.8-5.2a8.3 8.3 0 00-11.7-1.4L131 768.6c-4.3 5-3.6 10.3 0 13.2l143.3 112.4c1.5 1.2 3.3 1.8 5.2 1.8 4.6 0 8.4-3.8 8.4-8.4V815h536.6c39.5 0 71.7-32.2 71.7-71.8V480c-.2-4.4-3.8-8-8.2-8z"}}]},name:"retweet",theme:"outlined"},bCe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:vCe}))},LP=l.forwardRef(bCe),yCe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zm-405.8-201c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0026 0l212.6-292.7c3.8-5.3 0-12.7-6.5-12.7h-55.2c-5.1 0-10 2.5-13 6.6L468.9 542.4l-64.7-89.1z"}}]},name:"safety-certificate",theme:"outlined"},SCe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:yCe}))},nN=l.forwardRef(SCe),xCe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-12-12-28.3-18.7-45.3-18.7H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 176h256v112H384V176zm128 554c-79.5 0-144-64.5-144-144s64.5-144 144-144 144 64.5 144 144-64.5 144-144 144zm0-224c-44.2 0-80 35.8-80 80s35.8 80 80 80 80-35.8 80-80-35.8-80-80-80z"}}]},name:"save",theme:"filled"},wCe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:xCe}))},uq=l.forwardRef(wCe),CCe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"},ECe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:CCe}))},ICe=l.forwardRef(ECe),TCe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},RCe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:TCe}))},rN=l.forwardRef(RCe),_Ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M881.7 187.4l-45.1-45.1a8.03 8.03 0 00-11.3 0L667.8 299.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L576.1 439c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 157.6-157.6c3-3 3-8.1-.1-11.2zM439 576.1l-189.2 23.5c-6.6.8-9.3 8.9-4.7 13.5l54.7 54.7-157.5 157.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l157.6-157.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L447.9 585a7.9 7.9 0 00-8.9-8.9z"}}]},name:"shrink",theme:"outlined"},$Ce=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:_Ce}))},OCe=l.forwardRef($Ce),NCe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM664 533h-48.1c-4.2 0-7.8 3.2-8.1 7.4C604 589.9 562.5 629 512 629s-92.1-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 00-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 00-8-8.4z"}}]},name:"smile",theme:"outlined"},kCe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:NCe}))},ACe=l.forwardRef(kCe),MCe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M625.9 115c-5.9 0-11.9 1.6-17.4 5.3L254 352H90c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h164l354.5 231.7c5.5 3.6 11.6 5.3 17.4 5.3 16.7 0 32.1-13.3 32.1-32.1V147.1c0-18.8-15.4-32.1-32.1-32.1zM586 803L293.4 611.7l-18-11.7H146V424h129.4l17.9-11.7L586 221v582zm348-327H806c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16h128c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16zm-41.9 261.8l-110.3-63.7a15.9 15.9 0 00-21.7 5.9l-19.9 34.5c-4.4 7.6-1.8 17.4 5.8 21.8L856.3 800a15.9 15.9 0 0021.7-5.9l19.9-34.5c4.4-7.6 1.7-17.4-5.8-21.8zM760 344a15.9 15.9 0 0021.7 5.9L892 286.2c7.6-4.4 10.2-14.2 5.8-21.8L878 230a15.9 15.9 0 00-21.7-5.9L746 287.8a15.99 15.99 0 00-5.8 21.8L760 344z"}}]},name:"sound",theme:"outlined"},PCe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:MCe}))},dq=l.forwardRef(PCe),DCe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M347.6 528.95l383.2 301.02c14.25 11.2 35.2 1.1 35.2-16.95V210.97c0-18.05-20.95-28.14-35.2-16.94L347.6 495.05a21.53 21.53 0 000 33.9M330 864h-64a8 8 0 01-8-8V168a8 8 0 018-8h64a8 8 0 018 8v688a8 8 0 01-8 8"}}]},name:"step-backward",theme:"outlined"},LCe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:DCe}))},FCe=l.forwardRef(LCe),jCe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M676.4 528.95L293.2 829.97c-14.25 11.2-35.2 1.1-35.2-16.95V210.97c0-18.05 20.95-28.14 35.2-16.94l383.2 301.02a21.53 21.53 0 010 33.9M694 864h64a8 8 0 008-8V168a8 8 0 00-8-8h-64a8 8 0 00-8 8v688a8 8 0 008 8"}}]},name:"step-forward",theme:"outlined"},BCe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:jCe}))},zCe=l.forwardRef(BCe),HCe={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M548 818v126a16 16 0 01-16 16h-40a16 16 0 01-16-16V818c15.85 1.64 27.84 2.46 36 2.46 8.15 0 20.16-.82 36-2.46m205.25-115.66l89.1 89.1a16 16 0 010 22.62l-28.29 28.29a16 16 0 01-22.62 0l-89.1-89.1c12.37-10.04 21.43-17.95 27.2-23.71 5.76-5.77 13.67-14.84 23.71-27.2m-482.5 0c10.04 12.36 17.95 21.43 23.71 27.2 5.77 5.76 14.84 13.67 27.2 23.71l-89.1 89.1a16 16 0 01-22.62 0l-28.29-28.29a16 16 0 010-22.63zM512 278c129.24 0 234 104.77 234 234S641.24 746 512 746 278 641.24 278 512s104.77-234 234-234m0 72c-89.47 0-162 72.53-162 162s72.53 162 162 162 162-72.53 162-162-72.53-162-162-162M206 476c-1.64 15.85-2.46 27.84-2.46 36 0 8.15.82 20.16 2.46 36H80a16 16 0 01-16-16v-40a16 16 0 0116-16zm738 0a16 16 0 0116 16v40a16 16 0 01-16 16H818c1.64-15.85 2.46-27.84 2.46-36 0-8.15-.82-20.16-2.46-36zM814.06 180.65l28.29 28.29a16 16 0 010 22.63l-89.1 89.09c-10.04-12.37-17.95-21.43-23.71-27.2-5.77-5.76-14.84-13.67-27.2-23.71l89.1-89.1a16 16 0 0122.62 0m-581.5 0l89.1 89.1c-12.37 10.04-21.43 17.95-27.2 23.71-5.76 5.77-13.67 14.84-23.71 27.2l-89.1-89.1a16 16 0 010-22.62l28.29-28.29a16 16 0 0122.62 0M532 64a16 16 0 0116 16v126c-15.85-1.64-27.84-2.46-36-2.46-8.15 0-20.16.82-36 2.46V80a16 16 0 0116-16z"}}]},name:"sun",theme:"outlined"},UCe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:HCe}))},VCe=l.forwardRef(UCe),WCe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"},GCe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:WCe}))},fq=l.forwardRef(GCe),qCe={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M608 192a32 32 0 0132 32v160h174.81a32 32 0 0126.68 14.33l113.19 170.84a32 32 0 015.32 17.68V672a32 32 0 01-32 32h-96c0 70.7-57.3 128-128 128s-128-57.3-128-128H384c0 70.7-57.3 128-128 128s-128-57.3-128-128H96a32 32 0 01-32-32V224a32 32 0 0132-32zM256 640a64 64 0 000 128h1.06A64 64 0 00256 640m448 0a64 64 0 000 128h1.06A64 64 0 00704 640M576 256H128v384h17.12c22.13-38.26 63.5-64 110.88-64 47.38 0 88.75 25.74 110.88 64H576zm221.63 192H640v145.12A127.43 127.43 0 01704 576c47.38 0 88.75 25.74 110.88 64H896v-43.52zM500 448a12 12 0 0112 12v40a12 12 0 01-12 12H332a12 12 0 01-12-12v-40a12 12 0 0112-12zM308 320a12 12 0 0112 12v40a12 12 0 01-12 12H204a12 12 0 01-12-12v-40a12 12 0 0112-12z"}}]},name:"truck",theme:"outlined"},KCe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:qCe}))},YCe=l.forwardRef(KCe),XCe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",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:"unordered-list",theme:"outlined"},ZCe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:XCe}))},QCe=l.forwardRef(ZCe),JCe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},eEe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:JCe}))},tEe=l.forwardRef(eEe),nEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M678.3 642.4c24.2-13 51.9-20.4 81.4-20.4h.1c3 0 4.4-3.6 2.2-5.6a371.67 371.67 0 00-103.7-65.8c-.4-.2-.8-.3-1.2-.5C719.2 505 759.6 431.7 759.6 349c0-137-110.8-248-247.5-248S264.7 212 264.7 349c0 82.7 40.4 156 102.6 201.1-.4.2-.8.3-1.2.5-44.7 18.9-84.8 46-119.3 80.6a373.42 373.42 0 00-80.4 119.5A373.6 373.6 0 00137 888.8a8 8 0 008 8.2h59.9c4.3 0 7.9-3.5 8-7.8 2-77.2 32.9-149.5 87.6-204.3C357 628.2 432.2 597 512.2 597c56.7 0 111.1 15.7 158 45.1a8.1 8.1 0 008.1.3zM512.2 521c-45.8 0-88.9-17.9-121.4-50.4A171.2 171.2 0 01340.5 349c0-45.9 17.9-89.1 50.3-121.6S466.3 177 512.2 177s88.9 17.9 121.4 50.4A171.2 171.2 0 01683.9 349c0 45.9-17.9 89.1-50.3 121.6C601.1 503.1 558 521 512.2 521zM880 759h-84v-84c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v84h-84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h84v84c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-84h84c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"user-add",theme:"outlined"},rEe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:nEe}))},aEe=l.forwardRef(rEe),oEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},iEe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:oEe}))},pq=l.forwardRef(iEe),sEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"},lEe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:sEe}))},gq=l.forwardRef(lEe),cEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M723 620.5C666.8 571.6 593.4 542 513 542s-153.8 29.6-210.1 78.6a8.1 8.1 0 00-.8 11.2l36 42.9c2.9 3.4 8 3.8 11.4.9C393.1 637.2 450.3 614 513 614s119.9 23.2 163.5 61.5c3.4 2.9 8.5 2.5 11.4-.9l36-42.9c2.8-3.3 2.4-8.3-.9-11.2zm117.4-140.1C751.7 406.5 637.6 362 513 362s-238.7 44.5-327.5 118.4a8.05 8.05 0 00-1 11.3l36 42.9c2.8 3.4 7.9 3.8 11.2 1C308 472.2 406.1 434 513 434s205 38.2 281.2 101.6c3.4 2.8 8.4 2.4 11.2-1l36-42.9c2.8-3.4 2.4-8.5-1-11.3zm116.7-139C835.7 241.8 680.3 182 511 182c-168.2 0-322.6 59-443.7 157.4a8 8 0 00-1.1 11.4l36 42.9c2.8 3.3 7.8 3.8 11.1 1.1C222 306.7 360.3 254 511 254c151.8 0 291 53.5 400 142.7 3.4 2.8 8.4 2.3 11.2-1.1l36-42.9c2.9-3.4 2.4-8.5-1.1-11.3zM448 778a64 64 0 10128 0 64 64 0 10-128 0z"}}]},name:"wifi",theme:"outlined"},uEe=function(t,n){return l.createElement(nt,pe({},t,{ref:n,icon:cEe}))},jR=l.forwardRef(uEe),dEe=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick","render"];function FP(e){return typeof e=="string"}function mq(e){var t,n=e.className,r=e.prefixCls,a=e.style,o=e.active,i=e.status,s=e.iconPrefix,c=e.icon;e.wrapperStyle;var u=e.stepNumber,d=e.disabled,f=e.description,p=e.title,g=e.subTitle,h=e.progressDot,b=e.stepIcon,y=e.tailContent,S=e.icons,v=e.stepIndex,x=e.onStepClick,w=e.onClick,C=e.render,E=xt(e,dEe),I=!!x&&!d,T={};I&&(T.role="button",T.tabIndex=0,T.onClick=function(A){w==null||w(A),x(v)},T.onKeyDown=function(A){var O=A.which;(O===Le.ENTER||O===Le.SPACE)&&x(v)});var R=function(){var O,N,k=ne("".concat(r,"-icon"),"".concat(s,"icon"),(O={},W(O,"".concat(s,"icon-").concat(c),c&&FP(c)),W(O,"".concat(s,"icon-check"),!c&&i==="finish"&&(S&&!S.finish||!S)),W(O,"".concat(s,"icon-cross"),!c&&i==="error"&&(S&&!S.error||!S)),O)),M=l.createElement("span",{className:"".concat(r,"-icon-dot")});return h?typeof h=="function"?N=l.createElement("span",{className:"".concat(r,"-icon")},h(M,{index:u-1,status:i,title:p,description:f})):N=l.createElement("span",{className:"".concat(r,"-icon")},M):c&&!FP(c)?N=l.createElement("span",{className:"".concat(r,"-icon")},c):S&&S.finish&&i==="finish"?N=l.createElement("span",{className:"".concat(r,"-icon")},S.finish):S&&S.error&&i==="error"?N=l.createElement("span",{className:"".concat(r,"-icon")},S.error):c||i==="finish"||i==="error"?N=l.createElement("span",{className:k}):N=l.createElement("span",{className:"".concat(r,"-icon")},u),b&&(N=b({index:u-1,status:i,title:p,description:f,node:N})),N},_=i||"wait",$=ne("".concat(r,"-item"),"".concat(r,"-item-").concat(_),n,(t={},W(t,"".concat(r,"-item-custom"),c),W(t,"".concat(r,"-item-active"),o),W(t,"".concat(r,"-item-disabled"),d===!0),t)),P=Z({},a),D=l.createElement("div",pe({},E,{className:$,style:P}),l.createElement("div",pe({onClick:w},T,{className:"".concat(r,"-item-container")}),l.createElement("div",{className:"".concat(r,"-item-tail")},y),l.createElement("div",{className:"".concat(r,"-item-icon")},R()),l.createElement("div",{className:"".concat(r,"-item-content")},l.createElement("div",{className:"".concat(r,"-item-title")},p,g&&l.createElement("div",{title:typeof g=="string"?g:void 0,className:"".concat(r,"-item-subtitle")},g)),f&&l.createElement("div",{className:"".concat(r,"-item-description")},f))));return C&&(D=C(D)||null),D}var fEe=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","itemRender","items"];function aN(e){var t,n=e.prefixCls,r=n===void 0?"rc-steps":n,a=e.style,o=a===void 0?{}:a,i=e.className;e.children;var s=e.direction,c=s===void 0?"horizontal":s,u=e.type,d=u===void 0?"default":u,f=e.labelPlacement,p=f===void 0?"horizontal":f,g=e.iconPrefix,h=g===void 0?"rc":g,b=e.status,y=b===void 0?"process":b,S=e.size,v=e.current,x=v===void 0?0:v,w=e.progressDot,C=w===void 0?!1:w,E=e.stepIcon,I=e.initial,T=I===void 0?0:I,R=e.icons,_=e.onChange,$=e.itemRender,P=e.items,D=P===void 0?[]:P,A=xt(e,fEe),O=d==="navigation",N=d==="inline",k=N||C,M=N?"horizontal":c,L=N?void 0:S,F=k?"vertical":p,j=ne(r,"".concat(r,"-").concat(M),i,(t={},W(t,"".concat(r,"-").concat(L),L),W(t,"".concat(r,"-label-").concat(F),M==="horizontal"),W(t,"".concat(r,"-dot"),!!k),W(t,"".concat(r,"-navigation"),O),W(t,"".concat(r,"-inline"),N),t)),B=function(V){_&&x!==V&&_(V)},z=function(V,te){var Y=Z({},V),J=T+te;return y==="error"&&te===x-1&&(Y.className="".concat(r,"-next-error")),Y.status||(J===x?Y.status=y:J{const{componentCls:t,customIconTop:n,customIconSize:r,customIconFontSize:a}=e;return{[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:n,width:r,height:r,fontSize:a,lineHeight:K(r)}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},gEe=e=>{const{componentCls:t}=e,n=`${t}-item`;return{[`${t}-horizontal`]:{[`${n}-tail`]:{transform:"translateY(-50%)"}}}},mEe=e=>{const{componentCls:t,inlineDotSize:n,inlineTitleColor:r,inlineTailColor:a}=e,o=e.calc(e.paddingXS).add(e.lineWidth).equal(),i={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:r}};return{[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${K(o)} ${K(e.paddingXXS)} 0`,margin:`0 ${K(e.calc(e.marginXXS).div(2).equal())}`,borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:n,height:n,marginInlineStart:`calc(50% - ${K(e.calc(n).div(2).equal())})`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:e.calc(e.fontSizeSM).div(4).equal(),"&::after":{display:"none"}}},"&-content":{width:"auto",marginTop:e.calc(e.marginXS).sub(e.lineWidth).equal()},"&-title":{color:r,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:"normal",marginBottom:e.calc(e.marginXXS).div(2).equal()},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:e.calc(n).div(2).add(o).equal(),transform:"translateY(-50%)","&:after":{width:"100%",height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:a}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":Object.assign({[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:e.colorBorderBg,border:`${K(e.lineWidth)} ${e.lineType} ${a}`}},i),"&-finish":Object.assign({[`${t}-item-tail::after`]:{backgroundColor:a},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:a,border:`${K(e.lineWidth)} ${e.lineType} ${a}`}},i),"&-error":i,"&-active, &-process":Object.assign({[`${t}-item-icon`]:{width:n,height:n,marginInlineStart:`calc(50% - ${K(e.calc(n).div(2).equal())})`,top:0}},i),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:r}}}}}},hEe=e=>{const{componentCls:t,iconSize:n,lineHeight:r,iconSizeSM:a}=e;return{[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:e.calc(n).div(2).add(e.controlHeightLG).equal(),padding:`0 ${K(e.paddingLG)}`},"&-content":{display:"block",width:e.calc(n).div(2).add(e.controlHeightLG).mul(2).equal(),marginTop:e.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:e.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:e.marginXXS,marginInlineStart:0,lineHeight:r}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:e.calc(n).sub(a).div(2).add(e.controlHeightLG).equal()}}}}}},vEe=e=>{const{componentCls:t,navContentMaxWidth:n,navArrowColor:r,stepsNavActiveColor:a,motionDurationSlow:o}=e;return{[`&${t}-navigation`]:{paddingTop:e.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:e.calc(e.marginSM).mul(-1).equal()}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:e.calc(e.margin).mul(-1).equal(),paddingBottom:e.paddingSM,textAlign:"start",transition:`opacity ${o}`,[`${t}-item-content`]:{maxWidth:n},[`${t}-item-title`]:Object.assign(Object.assign({maxWidth:"100%",paddingInlineEnd:0},wo),{"&::after":{display:"none"}})},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${K(e.calc(e.paddingSM).div(2).equal())})`,insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:`${K(e.lineWidth)} ${e.lineType} ${r}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${K(e.lineWidth)} ${e.lineType} ${r}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:e.lineWidthBold,backgroundColor:a,transition:`width ${o}, inset-inline-start ${o}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:e.calc(e.lineWidth).mul(3).equal(),height:`calc(100% - ${K(e.marginLG)})`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:e.calc(e.controlHeight).mul(.25).equal(),height:e.calc(e.controlHeight).mul(.25).equal(),marginBottom:e.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},"&:last-child":{"&::after":{display:"none"}},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},bEe=e=>{const{antCls:t,componentCls:n,iconSize:r,iconSizeSM:a,processIconColor:o,marginXXS:i,lineWidthBold:s,lineWidth:c,paddingXXS:u}=e,d=e.calc(r).add(e.calc(s).mul(4).equal()).equal(),f=e.calc(a).add(e.calc(e.lineWidth).mul(4).equal()).equal();return{[`&${n}-with-progress`]:{[`${n}-item`]:{paddingTop:u,[`&-process ${n}-item-container ${n}-item-icon ${n}-icon`]:{color:o}},[`&${n}-vertical > ${n}-item `]:{paddingInlineStart:u,[`> ${n}-item-container > ${n}-item-tail`]:{top:i,insetInlineStart:e.calc(r).div(2).sub(c).add(u).equal()}},[`&, &${n}-small`]:{[`&${n}-horizontal ${n}-item:first-child`]:{paddingBottom:u,paddingInlineStart:u}},[`&${n}-small${n}-vertical > ${n}-item > ${n}-item-container > ${n}-item-tail`]:{insetInlineStart:e.calc(a).div(2).sub(c).add(u).equal()},[`&${n}-label-vertical ${n}-item ${n}-item-tail`]:{top:e.calc(r).div(2).add(u).equal()},[`${n}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetInlineStart:"50%",top:"50%",transform:"translate(-50%, -50%)","&-inner":{width:`${K(d)} !important`,height:`${K(d)} !important`}}},[`&${n}-small`]:{[`&${n}-label-vertical ${n}-item ${n}-item-tail`]:{top:e.calc(a).div(2).add(u).equal()},[`${n}-item-icon ${t}-progress-inner`]:{width:`${K(f)} !important`,height:`${K(f)} !important`}}}}},yEe=e=>{const{componentCls:t,descriptionMaxWidth:n,lineHeight:r,dotCurrentSize:a,dotSize:o,motionDurationSlow:i}=e;return{[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:r},"&-tail":{top:e.calc(e.dotSize).sub(e.calc(e.lineWidth).mul(3).equal()).div(2).equal(),width:"100%",marginTop:0,marginBottom:0,marginInline:`${K(e.calc(n).div(2).equal())} 0`,padding:0,"&::after":{width:`calc(100% - ${K(e.calc(e.marginSM).mul(2).equal())})`,height:e.calc(e.lineWidth).mul(3).equal(),marginInlineStart:e.marginSM}},"&-icon":{width:o,height:o,marginInlineStart:e.calc(e.descriptionMaxWidth).sub(o).div(2).equal(),paddingInlineEnd:0,lineHeight:K(o),background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${i}`,"&::after":{position:"absolute",top:e.calc(e.marginSM).mul(-1).equal(),insetInlineStart:e.calc(o).sub(e.calc(e.controlHeightLG).mul(1.5).equal()).div(2).equal(),width:e.calc(e.controlHeightLG).mul(1.5).equal(),height:e.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:n},[`&-process ${t}-item-icon`]:{position:"relative",top:e.calc(o).sub(a).div(2).equal(),width:a,height:a,lineHeight:K(a),background:"none",marginInlineStart:e.calc(e.descriptionMaxWidth).sub(a).div(2).equal()},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(o).div(2).equal(),marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(a).div(2).equal(),top:0,insetInlineStart:e.calc(o).sub(a).div(2).equal(),marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeight).sub(o).div(2).equal(),insetInlineStart:0,margin:0,padding:`${K(e.calc(o).add(e.paddingXS).equal())} 0 ${K(e.paddingXS)}`,"&::after":{marginInlineStart:e.calc(o).sub(e.lineWidth).div(2).equal()}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(o).div(2).equal()},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(a).div(2).equal()},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeightSM).sub(o).div(2).equal()}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},SEe=e=>{const{componentCls:t}=e;return{[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}},xEe=e=>{const{componentCls:t,iconSizeSM:n,fontSizeSM:r,fontSize:a,colorTextDescription:o}=e;return{[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:n,height:n,marginTop:0,marginBottom:0,marginInline:`0 ${K(e.marginXS)}`,fontSize:r,lineHeight:K(n),textAlign:"center",borderRadius:n},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:a,lineHeight:K(n),"&::after":{top:e.calc(n).div(2).equal()}},[`${t}-item-description`]:{color:o,fontSize:a},[`${t}-item-tail`]:{top:e.calc(n).div(2).sub(e.paddingXXS).equal()},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:n,lineHeight:K(n),transform:"none"}}}}},wEe=e=>{const{componentCls:t,iconSizeSM:n,iconSize:r}=e;return{[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:e.margin},[`${t}-item-content`]:{display:"block",minHeight:e.calc(e.controlHeight).mul(1.5).equal(),overflow:"hidden"},[`${t}-item-title`]:{lineHeight:K(r)},[`${t}-item-description`]:{paddingBottom:e.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(r).div(2).sub(e.lineWidth).equal(),width:e.lineWidth,height:"100%",padding:`${K(e.calc(e.marginXXS).mul(1.5).add(r).equal())} 0 ${K(e.calc(e.marginXXS).mul(1.5).equal())}`,"&::after":{width:e.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(n).div(2).sub(e.lineWidth).equal(),padding:`${K(e.calc(e.marginXXS).mul(1.5).add(n).equal())} 0 ${K(e.calc(e.marginXXS).mul(1.5).equal())}`},[`${t}-item-title`]:{lineHeight:K(n)}}}}},CEe="wait",EEe="process",IEe="finish",TEe="error",xh=(e,t)=>{const n=`${t.componentCls}-item`,r=`${e}IconColor`,a=`${e}TitleColor`,o=`${e}DescriptionColor`,i=`${e}TailColor`,s=`${e}IconBgColor`,c=`${e}IconBorderColor`,u=`${e}DotColor`;return{[`${n}-${e} ${n}-icon`]:{backgroundColor:t[s],borderColor:t[c],[`> ${t.componentCls}-icon`]:{color:t[r],[`${t.componentCls}-icon-dot`]:{background:t[u]}}},[`${n}-${e}${n}-custom ${n}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[u]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-title`]:{color:t[a],"&::after":{backgroundColor:t[i]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-description`]:{color:t[o]},[`${n}-${e} > ${n}-container > ${n}-tail::after`]:{backgroundColor:t[i]}}},REe=e=>{const{componentCls:t,motionDurationSlow:n}=e,r=`${t}-item`,a=`${r}-icon`;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[r]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${r}-container > ${r}-tail, > ${r}-container > ${r}-content > ${r}-title::after`]:{display:"none"}}},[`${r}-container`]:{outline:"none","&:focus-visible":{[a]:Object.assign({},Cs(e))}},[`${a}, ${r}-content`]:{display:"inline-block",verticalAlign:"top"},[a]:{width:e.iconSize,height:e.iconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:e.marginXS,fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:K(e.iconSize),textAlign:"center",borderRadius:e.iconSize,border:`${K(e.lineWidth)} ${e.lineType} transparent`,transition:`background-color ${n}, border-color ${n}`,[`${t}-icon`]:{position:"relative",top:e.iconTop,color:e.colorPrimary,lineHeight:1}},[`${r}-tail`]:{position:"absolute",top:e.calc(e.iconSize).div(2).equal(),insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:e.lineWidth,background:e.colorSplit,borderRadius:e.lineWidth,transition:`background ${n}`,content:'""'}},[`${r}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:e.padding,color:e.colorText,fontSize:e.fontSizeLG,lineHeight:K(e.titleLineHeight),"&::after":{position:"absolute",top:e.calc(e.titleLineHeight).div(2).equal(),insetInlineStart:"100%",display:"block",width:9999,height:e.lineWidth,background:e.processTailColor,content:'""'}},[`${r}-subtitle`]:{display:"inline",marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize},[`${r}-description`]:{color:e.colorTextDescription,fontSize:e.fontSize}},xh(CEe,e)),xh(EEe,e)),{[`${r}-process > ${r}-container > ${r}-title`]:{fontWeight:e.fontWeightStrong}}),xh(IEe,e)),xh(TEe,e)),{[`${r}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${r}-disabled`]:{cursor:"not-allowed"}})},_Ee=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${n}`}},"&:hover":{[`${t}-item`]:{"&-title, &-subtitle, &-description":{color:e.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:e.colorPrimary,[`${t}-icon`]:{color:e.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:e.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:e.descriptionMaxWidth,whiteSpace:"normal"}}}}},$Ee=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},nn(e)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),REe(e)),_Ee(e)),pEe(e)),xEe(e)),wEe(e)),gEe(e)),hEe(e)),yEe(e)),vEe(e)),SEe(e)),bEe(e)),mEe(e))}},OEe=e=>({titleLineHeight:e.controlHeight,customIconSize:e.controlHeight,customIconTop:0,customIconFontSize:e.controlHeightSM,iconSize:e.controlHeight,iconTop:-.5,iconFontSize:e.fontSize,iconSizeSM:e.fontSizeHeading3,dotSize:e.controlHeight/4,dotCurrentSize:e.controlHeightLG/4,navArrowColor:e.colorTextDisabled,navContentMaxWidth:"auto",descriptionMaxWidth:140,waitIconColor:e.wireframe?e.colorTextDisabled:e.colorTextLabel,waitIconBgColor:e.wireframe?e.colorBgContainer:e.colorFillContent,waitIconBorderColor:e.wireframe?e.colorTextDisabled:"transparent",finishIconBgColor:e.wireframe?e.colorBgContainer:e.controlItemBgActive,finishIconBorderColor:e.wireframe?e.colorPrimary:e.controlItemBgActive}),NEe=on("Steps",e=>{const{colorTextDisabled:t,controlHeightLG:n,colorTextLightSolid:r,colorText:a,colorPrimary:o,colorTextDescription:i,colorTextQuaternary:s,colorError:c,colorBorderSecondary:u,colorSplit:d}=e,f=zt(e,{processIconColor:r,processTitleColor:a,processDescriptionColor:a,processIconBgColor:o,processIconBorderColor:o,processDotColor:o,processTailColor:d,waitTitleColor:i,waitDescriptionColor:i,waitTailColor:d,waitDotColor:t,finishIconColor:o,finishTitleColor:a,finishDescriptionColor:i,finishTailColor:o,finishDotColor:o,errorIconColor:r,errorTitleColor:c,errorDescriptionColor:c,errorTailColor:d,errorIconBgColor:c,errorIconBorderColor:c,errorDotColor:c,stepsNavActiveColor:o,stepsProgressSize:n,inlineDotSize:6,inlineTitleColor:s,inlineTailColor:u});return[$Ee(f)]},OEe);function kEe(e){return e.filter(t=>t)}function AEe(e,t){if(e)return e;const n=vr(t).map(r=>{if(l.isValidElement(r)){const{props:a}=r;return Object.assign({},a)}return null});return kEe(n)}var MEe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{percent:t,size:n,className:r,rootClassName:a,direction:o,items:i,responsive:s=!0,current:c=0,children:u,style:d}=e,f=MEe(e,["percent","size","className","rootClassName","direction","items","responsive","current","children","style"]),{xs:p}=F0(s),{getPrefixCls:g,direction:h,steps:b}=l.useContext(st),y=l.useMemo(()=>s&&p?"vertical":o,[p,o]),S=Er(n),v=g("steps",e.prefixCls),[x,w,C]=NEe(v),E=e.type==="inline",I=g("",e.iconPrefix),T=AEe(i,u),R=E?void 0:t,_=Object.assign(Object.assign({},b==null?void 0:b.style),d),$=ne(b==null?void 0:b.className,{[`${v}-rtl`]:h==="rtl",[`${v}-with-progress`]:R!==void 0},r,a,w,C),P={finish:l.createElement(am,{className:`${v}-finish-icon`}),error:l.createElement(ta,{className:`${v}-error-icon`})},D=O=>{let{node:N,status:k}=O;if(k==="process"&&R!==void 0){const M=S==="small"?32:40;return l.createElement("div",{className:`${v}-progress-icon`},l.createElement(sy,{type:"circle",percent:R,size:M,strokeWidth:4,format:()=>null}),N)}return N},A=(O,N)=>O.description?l.createElement(Zt,{title:O.description},N):N;return x(l.createElement(aN,Object.assign({icons:P},f,{style:_,current:c,size:S,items:T,itemRender:E?A:void 0,stepIcon:D,direction:y,prefixCls:v,iconPrefix:I,className:$})))};ks.Step=aN.Step;var PEe=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],hq=l.forwardRef(function(e,t){var n,r=e.prefixCls,a=r===void 0?"rc-switch":r,o=e.className,i=e.checked,s=e.defaultChecked,c=e.disabled,u=e.loadingIcon,d=e.checkedChildren,f=e.unCheckedChildren,p=e.onClick,g=e.onChange,h=e.onKeyDown,b=xt(e,PEe),y=sn(!1,{value:i,defaultValue:s}),S=re(y,2),v=S[0],x=S[1];function w(T,R){var _=v;return c||(_=T,x(_),g==null||g(_,R)),_}function C(T){T.which===Le.LEFT?w(!1,T):T.which===Le.RIGHT&&w(!0,T),h==null||h(T)}function E(T){var R=w(!v,T);p==null||p(R,T)}var I=ne(a,o,(n={},W(n,"".concat(a,"-checked"),v),W(n,"".concat(a,"-disabled"),c),n));return l.createElement("button",pe({},b,{type:"button",role:"switch","aria-checked":v,disabled:c,className:I,ref:t,onKeyDown:C,onClick:E}),u,l.createElement("span",{className:"".concat(a,"-inner")},l.createElement("span",{className:"".concat(a,"-inner-checked")},d),l.createElement("span",{className:"".concat(a,"-inner-unchecked")},f)))});hq.displayName="Switch";const DEe=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:a,innerMinMarginSM:o,innerMaxMarginSM:i,handleSizeSM:s,calc:c}=e,u=`${t}-inner`,d=K(c(s).add(c(r).mul(2)).equal()),f=K(c(i).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:a,height:n,lineHeight:K(n),[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:o,[`${u}-checked, ${u}-unchecked`]:{minHeight:n},[`${u}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${f})`,marginInlineEnd:`calc(100% - ${d} + ${f})`},[`${u}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:c(c(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:i,[`${u}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${u}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${f})`,marginInlineEnd:`calc(-100% + ${d} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${K(c(s).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${u}`]:{[`${u}-unchecked`]:{marginInlineStart:c(e.marginXXS).div(2).equal(),marginInlineEnd:c(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${u}`]:{[`${u}-checked`]:{marginInlineStart:c(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:c(e.marginXXS).div(2).equal()}}}}}}},LEe=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},FEe=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:a,handleSize:o,calc:i}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:n,insetInlineStart:n,width:o,height:o,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:i(o).div(2).equal(),boxShadow:a,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${K(i(o).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},jEe=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:a,innerMaxMargin:o,handleSize:i,calc:s}=e,c=`${t}-inner`,u=K(s(i).add(s(r).mul(2)).equal()),d=K(s(o).mul(2).equal());return{[t]:{[c]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:o,paddingInlineEnd:a,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${c}-checked, ${c}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${c}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${c}`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:s(r).mul(2).equal(),marginInlineEnd:s(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:s(r).mul(-1).mul(2).equal(),marginInlineEnd:s(r).mul(2).equal()}}}}}},BEe=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},nn(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:K(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),Hi(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},zEe=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:a}=e,o=t*n,i=r/2,s=2,c=o-s*2,u=i-s*2;return{trackHeight:o,trackHeightSM:i,trackMinWidth:c*2+s*4,trackMinWidthSM:u*2+s*2,trackPadding:s,handleBg:a,handleSize:c,handleSizeSM:u,handleShadow:`0 2px 4px 0 ${new an("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:c/2,innerMaxMargin:c+s+s*2,innerMinMarginSM:u/2,innerMaxMarginSM:u+s+s*2}},HEe=on("Switch",e=>{const t=zt(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[BEe(t),jEe(t),FEe(t),LEe(t),DEe(t)]},zEe);var UEe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,size:r,disabled:a,loading:o,className:i,rootClassName:s,style:c,checked:u,value:d,defaultChecked:f,defaultValue:p,onChange:g}=e,h=UEe(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[b,y]=sn(!1,{value:u??d,defaultValue:f??p}),{getPrefixCls:S,direction:v,switch:x}=l.useContext(st),w=l.useContext(Jr),C=(a??w)||o,E=S("switch",n),I=l.createElement("div",{className:`${E}-handle`},o&&l.createElement(Ui,{className:`${E}-loading-icon`})),[T,R,_]=HEe(E),$=Er(r),P=ne(x==null?void 0:x.className,{[`${E}-small`]:$==="small",[`${E}-loading`]:o,[`${E}-rtl`]:v==="rtl"},i,s,R,_),D=Object.assign(Object.assign({},x==null?void 0:x.style),c),A=function(){y(arguments.length<=0?void 0:arguments[0]),g==null||g.apply(void 0,arguments)};return T(l.createElement(Kg,{component:"Switch"},l.createElement(hq,Object.assign({},h,{checked:b,onChange:A,prefixCls:E,className:P,style:D,disabled:C,ref:t,loadingIcon:I}))))}),Ha=VEe;Ha.__ANT_SWITCH=!0;var Vs={},mm="rc-table-internal-hook";function oN(e){var t=l.createContext(void 0),n=function(a){var o=a.value,i=a.children,s=l.useRef(o);s.current=o;var c=l.useState(function(){return{getValue:function(){return s.current},listeners:new Set}}),u=re(c,1),d=u[0];return Xt(function(){Lr.unstable_batchedUpdates(function(){d.listeners.forEach(function(f){f(o)})})},[o]),l.createElement(t.Provider,{value:d},i)};return{Context:t,Provider:n,defaultValue:e}}function Ea(e,t){var n=Wt(typeof t=="function"?t:function(f){if(t===void 0)return f;if(!Array.isArray(t))return f[t];var p={};return t.forEach(function(g){p[g]=f[g]}),p}),r=l.useContext(e==null?void 0:e.Context),a=r||{},o=a.listeners,i=a.getValue,s=l.useRef();s.current=n(r?i():e==null?void 0:e.defaultValue);var c=l.useState({}),u=re(c,2),d=u[1];return Xt(function(){if(!r)return;function f(p){var g=n(p);Ho(s.current,g,!0)||d({})}return o.add(f),function(){o.delete(f)}},[r]),s.current}function WEe(){var e=l.createContext(null);function t(){return l.useContext(e)}function n(a,o){var i=mi(a),s=function(u,d){var f=i?{ref:d}:{},p=l.useRef(0),g=l.useRef(u),h=t();return h!==null?l.createElement(a,pe({},u,f)):((!o||o(g.current,u))&&(p.current+=1),g.current=u,l.createElement(e.Provider,{value:p.current},l.createElement(a,pe({},u,f))))};return i?l.forwardRef(s):s}function r(a,o){var i=mi(a),s=function(u,d){var f=i?{ref:d}:{};return t(),l.createElement(a,pe({},u,f))};return i?l.memo(l.forwardRef(s),o):l.memo(s,o)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var iN=WEe(),vq=iN.makeImmutable,tf=iN.responseImmutable,GEe=iN.useImmutableMark,to=oN(),bq=l.createContext({renderWithProps:!1}),qEe="RC_TABLE_KEY";function KEe(e){return e==null?[]:Array.isArray(e)?e:[e]}function ly(e){var t=[],n={};return e.forEach(function(r){for(var a=r||{},o=a.key,i=a.dataIndex,s=o||KEe(i).join("-")||qEe;n[s];)s="".concat(s,"_next");n[s]=!0,t.push(s)}),t}function BR(e){return e!=null}function YEe(e){return e&&mt(e)==="object"&&!Array.isArray(e)&&!l.isValidElement(e)}function XEe(e,t,n,r,a,o){var i=l.useContext(bq),s=GEe(),c=_l(function(){if(BR(r))return[r];var u=t==null||t===""?[]:Array.isArray(t)?t:[t],d=po(e,u),f=d,p=void 0;if(a){var g=a(d,e,n);YEe(g)?(f=g.children,p=g.props,i.renderWithProps=!0):f=g}return[f,p]},[s,e,r,t,a,n],function(u,d){if(o){var f=re(u,2),p=f[1],g=re(d,2),h=g[1];return o(h,p)}return i.renderWithProps?!0:!Ho(u,d,!0)});return c}function ZEe(e,t,n,r){var a=e+t-1;return e<=r&&a>=n}function QEe(e,t){return Ea(to,function(n){var r=ZEe(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var JEe=function(t){var n=t.ellipsis,r=t.rowType,a=t.children,o,i=n===!0?{showTitle:!0}:n;return i&&(i.showTitle||r==="header")&&(typeof a=="string"||typeof a=="number"?o=a.toString():l.isValidElement(a)&&typeof a.props.children=="string"&&(o=a.props.children)),o};function e2e(e){var t,n,r,a,o,i,s,c,u=e.component,d=e.children,f=e.ellipsis,p=e.scope,g=e.prefixCls,h=e.className,b=e.align,y=e.record,S=e.render,v=e.dataIndex,x=e.renderIndex,w=e.shouldCellUpdate,C=e.index,E=e.rowType,I=e.colSpan,T=e.rowSpan,R=e.fixLeft,_=e.fixRight,$=e.firstFixLeft,P=e.lastFixLeft,D=e.firstFixRight,A=e.lastFixRight,O=e.appendNode,N=e.additionalProps,k=N===void 0?{}:N,M=e.isSticky,L="".concat(g,"-cell"),F=Ea(to,["supportSticky","allColumnsFixedLeft","rowHoverable"]),j=F.supportSticky,B=F.allColumnsFixedLeft,z=F.rowHoverable,H=XEe(y,v,x,d,S,w),V=re(H,2),te=V[0],Y=V[1],J={},G=typeof R=="number"&&j,U=typeof _=="number"&&j;G&&(J.position="sticky",J.left=R),U&&(J.position="sticky",J.right=_);var q=(t=(n=(r=Y==null?void 0:Y.colSpan)!==null&&r!==void 0?r:k.colSpan)!==null&&n!==void 0?n:I)!==null&&t!==void 0?t:1,X=(a=(o=(i=Y==null?void 0:Y.rowSpan)!==null&&i!==void 0?i:k.rowSpan)!==null&&o!==void 0?o:T)!==null&&a!==void 0?a:1,Q=QEe(C,X),ee=re(Q,2),oe=ee[0],le=ee[1],fe=Wt(function(ue){var xe;y&&le(C,C+X-1),k==null||(xe=k.onMouseEnter)===null||xe===void 0||xe.call(k,ue)}),ce=Wt(function(ue){var xe;y&&le(-1,-1),k==null||(xe=k.onMouseLeave)===null||xe===void 0||xe.call(k,ue)});if(q===0||X===0)return null;var Ie=(s=k.title)!==null&&s!==void 0?s:JEe({rowType:E,ellipsis:f,children:te}),be=ne(L,h,(c={},W(c,"".concat(L,"-fix-left"),G&&j),W(c,"".concat(L,"-fix-left-first"),$&&j),W(c,"".concat(L,"-fix-left-last"),P&&j),W(c,"".concat(L,"-fix-left-all"),P&&B&&j),W(c,"".concat(L,"-fix-right"),U&&j),W(c,"".concat(L,"-fix-right-first"),D&&j),W(c,"".concat(L,"-fix-right-last"),A&&j),W(c,"".concat(L,"-ellipsis"),f),W(c,"".concat(L,"-with-append"),O),W(c,"".concat(L,"-fix-sticky"),(G||U)&&M&&j),W(c,"".concat(L,"-row-hover"),!Y&&oe),c),k.className,Y==null?void 0:Y.className),he={};b&&(he.textAlign=b);var ae=Z(Z(Z(Z({},J),k.style),he),Y==null?void 0:Y.style),ie=te;return mt(ie)==="object"&&!Array.isArray(ie)&&!l.isValidElement(ie)&&(ie=null),f&&(P||D)&&(ie=l.createElement("span",{className:"".concat(L,"-content")},ie)),l.createElement(u,pe({},Y,k,{className:be,style:ae,title:Ie,scope:p,onMouseEnter:z?fe:void 0,onMouseLeave:z?ce:void 0,colSpan:q!==1?q:null,rowSpan:X!==1?X:null}),O,ie)}const Bc=l.memo(e2e);function sN(e,t,n,r,a){var o=n[e]||{},i=n[t]||{},s,c;o.fixed==="left"?s=r.left[a==="rtl"?t:e]:i.fixed==="right"&&(c=r.right[a==="rtl"?e:t]);var u=!1,d=!1,f=!1,p=!1,g=n[t+1],h=n[e-1],b=g&&!g.fixed||h&&!h.fixed||n.every(function(w){return w.fixed==="left"});if(a==="rtl"){if(s!==void 0){var y=h&&h.fixed==="left";p=!y&&b}else if(c!==void 0){var S=g&&g.fixed==="right";f=!S&&b}}else if(s!==void 0){var v=g&&g.fixed==="left";u=!v&&b}else if(c!==void 0){var x=h&&h.fixed==="right";d=!x&&b}return{fixLeft:s,fixRight:c,lastFixLeft:u,firstFixRight:d,lastFixRight:f,firstFixLeft:p,isSticky:r.isSticky}}var yq=l.createContext({});function t2e(e){var t=e.className,n=e.index,r=e.children,a=e.colSpan,o=a===void 0?1:a,i=e.rowSpan,s=e.align,c=Ea(to,["prefixCls","direction"]),u=c.prefixCls,d=c.direction,f=l.useContext(yq),p=f.scrollColumnIndex,g=f.stickyOffsets,h=f.flattenColumns,b=n+o-1,y=b+1===p?o+1:o,S=sN(n,n+y-1,h,g,d);return l.createElement(Bc,pe({className:t,index:n,component:"td",prefixCls:u,record:null,dataIndex:null,align:s,colSpan:y,rowSpan:i,render:function(){return r}},S))}var n2e=["children"];function r2e(e){var t=e.children,n=xt(e,n2e);return l.createElement("tr",n,t)}function cy(e){var t=e.children;return t}cy.Row=r2e;cy.Cell=t2e;function a2e(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,a=Ea(to,"prefixCls"),o=r.length-1,i=r[o],s=l.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:i!=null&&i.scrollbar?o:null}},[i,r,o,n]);return l.createElement(yq.Provider,{value:s},l.createElement("tfoot",{className:"".concat(a,"-summary")},t))}const wh=tf(a2e);var Sq=cy;function o2e(e){return null}function i2e(e){return null}function xq(e,t,n,r,a,o,i){e.push({record:t,indent:n,index:i});var s=o(t),c=a==null?void 0:a.has(s);if(t&&Array.isArray(t[r])&&c)for(var u=0;u1?$-1:0),D=1;D<$;D++)P[D-1]=arguments[D];C==null||C.apply(void 0,[_].concat(P))},I;typeof g=="string"?I=g:typeof g=="function"&&(I=g(e,n,r));var T=ly(o);return Z(Z({},a),{},{columnsKey:T,nestExpandable:h,expanded:S,hasNestChildren:v,record:e,onTriggerExpand:x,rowSupportExpand:b,expandable:y,rowProps:Z(Z({},w),{},{className:ne(I,w==null?void 0:w.className),onClick:E})})}function Eq(e){var t=e.prefixCls,n=e.children,r=e.component,a=e.cellComponent,o=e.className,i=e.expanded,s=e.colSpan,c=e.isEmpty,u=Ea(to,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),d=u.scrollbarSize,f=u.fixHeader,p=u.fixColumn,g=u.componentWidth,h=u.horizonScroll,b=n;return(c?h&&g:p)&&(b=l.createElement("div",{style:{width:g-(f?d:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},b)),l.createElement(r,{className:o,style:{display:i?null:"none"}},l.createElement(Bc,{component:a,prefixCls:t,colSpan:s},b))}function Iq(e,t,n,r,a){var o=e.record,i=e.prefixCls,s=e.columnsKey,c=e.fixedInfoList,u=e.expandIconColumnIndex,d=e.nestExpandable,f=e.indentSize,p=e.expandIcon,g=e.expanded,h=e.hasNestChildren,b=e.onTriggerExpand,y=s[n],S=c[n],v;n===(u||0)&&d&&(v=l.createElement(l.Fragment,null,l.createElement("span",{style:{paddingLeft:"".concat(f*r,"px")},className:"".concat(i,"-row-indent indent-level-").concat(r)}),p({prefixCls:i,expanded:g,expandable:h,record:o,onExpand:b})));var x;return t.onCell&&(x=t.onCell(o,a)),{key:y,fixedInfo:S,appendCellNode:v,additionalCellProps:x||{}}}function s2e(e){var t=e.className,n=e.style,r=e.record,a=e.index,o=e.renderIndex,i=e.rowKey,s=e.indent,c=s===void 0?0:s,u=e.rowComponent,d=e.cellComponent,f=e.scopeCellComponent,p=Cq(r,i,a,c),g=p.prefixCls,h=p.flattenColumns,b=p.expandedRowClassName,y=p.expandedRowRender,S=p.rowProps,v=p.expanded,x=p.rowSupportExpand,w=l.useRef(!1);w.current||(w.current=v);var C=b&&b(r,a,c),E=l.createElement(u,pe({},S,{"data-row-key":i,className:ne(t,"".concat(g,"-row"),"".concat(g,"-row-level-").concat(c),S==null?void 0:S.className,c>=1?C:""),style:Z(Z({},n),S==null?void 0:S.style)}),h.map(function(R,_){var $=R.render,P=R.dataIndex,D=R.className,A=Iq(p,R,_,c,a),O=A.key,N=A.fixedInfo,k=A.appendCellNode,M=A.additionalCellProps;return l.createElement(Bc,pe({className:D,ellipsis:R.ellipsis,align:R.align,scope:R.rowScope,component:R.rowScope?f:d,prefixCls:g,key:O,record:r,index:a,renderIndex:o,dataIndex:P,render:$,shouldCellUpdate:R.shouldCellUpdate},N,{appendNode:k,additionalProps:M}))})),I;if(x&&(w.current||v)){var T=y(r,a,c+1,v);I=l.createElement(Eq,{expanded:v,className:ne("".concat(g,"-expanded-row"),"".concat(g,"-expanded-row-level-").concat(c+1),C),prefixCls:g,component:u,cellComponent:d,colSpan:h.length,isEmpty:!1},T)}return l.createElement(l.Fragment,null,E,I)}const l2e=tf(s2e);function c2e(e){var t=e.columnKey,n=e.onColumnResize,r=l.useRef();return l.useEffect(function(){r.current&&n(t,r.current.offsetWidth)},[]),l.createElement(ca,{data:t},l.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},l.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function u2e(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize;return l.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0}},l.createElement(ca.Collection,{onBatchResize:function(o){o.forEach(function(i){var s=i.data,c=i.size;r(s,c.offsetWidth)})}},n.map(function(a){return l.createElement(c2e,{key:a,columnKey:a,onColumnResize:r})})))}function d2e(e){var t=e.data,n=e.measureColumnWidth,r=Ea(to,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),a=r.prefixCls,o=r.getComponent,i=r.onColumnResize,s=r.flattenColumns,c=r.getRowKey,u=r.expandedKeys,d=r.childrenColumnName,f=r.emptyNode,p=wq(t,d,u,c),g=l.useRef({renderWithProps:!1}),h=o(["body","wrapper"],"tbody"),b=o(["body","row"],"tr"),y=o(["body","cell"],"td"),S=o(["body","cell"],"th"),v;t.length?v=p.map(function(w,C){var E=w.record,I=w.indent,T=w.index,R=c(E,C);return l.createElement(l2e,{key:R,rowKey:R,record:E,index:C,renderIndex:T,rowComponent:b,cellComponent:y,scopeCellComponent:S,getRowKey:c,indent:I})}):v=l.createElement(Eq,{expanded:!0,className:"".concat(a,"-placeholder"),prefixCls:a,component:b,cellComponent:y,colSpan:s.length,isEmpty:!0},f);var x=ly(s);return l.createElement(bq.Provider,{value:g.current},l.createElement(h,{className:"".concat(a,"-tbody")},n&&l.createElement(u2e,{prefixCls:a,columnsKey:x,onColumnResize:i}),v))}const f2e=tf(d2e);var p2e=["expandable"],Ip="RC_TABLE_INTERNAL_COL_DEFINE";function g2e(e){var t=e.expandable,n=xt(e,p2e),r;return"expandable"in e?r=Z(Z({},n),t):r=n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}var m2e=["columnType"];function Tq(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,a=[],o=r||n.length,i=!1,s=o-1;s>=0;s-=1){var c=t[s],u=n&&n[s],d=u&&u[Ip];if(c||d||i){var f=d||{};f.columnType;var p=xt(f,m2e);a.unshift(l.createElement("col",pe({key:s,style:{width:c}},p))),i=!0}}return l.createElement("colgroup",null,a)}var h2e=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function v2e(e,t){return l.useMemo(function(){for(var n=[],r=0;r1?"colgroup":"col":null,ellipsis:y.ellipsis,align:y.align,component:i,prefixCls:d,key:g[b]},S,{additionalProps:v,rowType:"header"}))}))};function S2e(e){var t=[];function n(i,s){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[c]=t[c]||[];var u=s,d=i.filter(Boolean).map(function(f){var p={key:f.key,className:f.className||"",children:f.title,column:f,colStart:u},g=1,h=f.children;return h&&h.length>0&&(g=n(h,u,c+1).reduce(function(b,y){return b+y},0),p.hasSubColumns=!0),"colSpan"in f&&(g=f.colSpan),"rowSpan"in f&&(p.rowSpan=f.rowSpan),p.colSpan=g,p.colEnd=p.colStart+g-1,t[c].push(p),u+=g,g});return d}n(e,0);for(var r=t.length,a=function(s){t[s].forEach(function(c){!("rowSpan"in c)&&!c.hasSubColumns&&(c.rowSpan=r-s)})},o=0;o1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function w2e(e,t,n){return l.useMemo(function(){if(t&&t>0){var r=0,a=0;e.forEach(function(p){var g=zP(t,p.width);g?r+=g:a+=1});var o=Math.max(t,n),i=Math.max(o-r,a),s=a,c=i/a,u=0,d=e.map(function(p){var g=Z({},p),h=zP(t,g.width);if(h)g.width=h;else{var b=Math.floor(c);g.width=s===1?i:b,i-=b,s-=1}return u+=g.width,g});if(u0?Z(Z({},t),{},{children:Rq(n)}):t})}function zR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&mt(n)==="object"}).reduce(function(n,r,a){var o=r.fixed,i=o===!0?"left":o,s="".concat(t,"-").concat(a),c=r.children;return c&&c.length>0?[].concat(Pe(n),Pe(zR(c,s).map(function(u){return Z({fixed:i},u)}))):[].concat(Pe(n),[Z(Z({key:s},r),{},{fixed:i})])},[])}function I2e(e){return e.map(function(t){var n=t.fixed,r=xt(t,E2e),a=n;return n==="left"?a="right":n==="right"&&(a="left"),Z({fixed:a},r)})}function T2e(e,t){var n=e.prefixCls,r=e.columns,a=e.children,o=e.expandable,i=e.expandedKeys,s=e.columnTitle,c=e.getRowKey,u=e.onTriggerExpand,d=e.expandIcon,f=e.rowExpandable,p=e.expandIconColumnIndex,g=e.direction,h=e.expandRowByClick,b=e.columnWidth,y=e.fixed,S=e.scrollWidth,v=e.clientWidth,x=l.useMemo(function(){var P=r||lN(a)||[];return Rq(P.slice())},[r,a]),w=l.useMemo(function(){if(o){var P,D=x.slice();if(!D.includes(Vs)){var A=p||0;A>=0&&D.splice(A,0,Vs)}var O=D.indexOf(Vs);D=D.filter(function(L,F){return L!==Vs||F===O});var N=x[O],k;(y==="left"||y)&&!p?k="left":(y==="right"||y)&&p===x.length?k="right":k=N?N.fixed:null;var M=(P={},W(P,Ip,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),W(P,"title",s),W(P,"fixed",k),W(P,"className","".concat(n,"-row-expand-icon-cell")),W(P,"width",b),W(P,"render",function(F,j,B){var z=c(j,B),H=i.has(z),V=f?f(j):!0,te=d({prefixCls:n,expanded:H,expandable:V,record:j,onExpand:u});return h?l.createElement("span",{onClick:function(J){return J.stopPropagation()}},te):te}),P);return D.map(function(L){return L===Vs?M:L})}return x.filter(function(L){return L!==Vs})},[o,x,c,i,d,g]),C=l.useMemo(function(){var P=w;return t&&(P=t(P)),P.length||(P=[{render:function(){return null}}]),P},[t,w,g]),E=l.useMemo(function(){return g==="rtl"?I2e(zR(C)):zR(C)},[C,g,S]),I=l.useMemo(function(){for(var P=-1,D=E.length-1;D>=0;D-=1){var A=E[D].fixed;if(A==="left"||A===!0){P=D;break}}if(P>=0)for(var O=0;O<=P;O+=1){var N=E[O].fixed;if(N!=="left"&&N!==!0)return!0}var k=E.findIndex(function(F){var j=F.fixed;return j==="right"});if(k>=0)for(var M=k;M=f&&(M=f-p),i({scrollLeft:M/f*(d+2)}),v.current.x=A.pageX},$=function(){I.current=Ut(function(){if(o.current){var A=kR(o.current).top,O=A+o.current.offsetHeight,N=c===window?document.documentElement.scrollTop+window.innerHeight:kR(c).top+c.clientHeight;O-xM()<=N||A>=N-s?S(function(k){return Z(Z({},k),{},{isHiddenScrollBar:!0})}):S(function(k){return Z(Z({},k),{},{isHiddenScrollBar:!1})})}})},P=function(A){S(function(O){return Z(Z({},O),{},{scrollLeft:A/d*f||0})})};return l.useImperativeHandle(n,function(){return{setScrollLeft:P,checkScrollBarVisible:$}}),l.useEffect(function(){var D=Di(document.body,"mouseup",T,!1),A=Di(document.body,"mousemove",_,!1);return $(),function(){D.remove(),A.remove()}},[p,C]),l.useEffect(function(){var D=Di(c,"scroll",$,!1),A=Di(window,"resize",$,!1);return function(){D.remove(),A.remove()}},[c]),l.useEffect(function(){y.isHiddenScrollBar||S(function(D){var A=o.current;return A?Z(Z({},D),{},{scrollLeft:A.scrollLeft/A.scrollWidth*A.clientWidth}):D})},[y.isHiddenScrollBar]),d<=f||!p||y.isHiddenScrollBar?null:l.createElement("div",{style:{height:xM(),width:f,bottom:s},className:"".concat(u,"-sticky-scroll")},l.createElement("div",{onMouseDown:R,ref:g,className:ne("".concat(u,"-sticky-scroll-bar"),W({},"".concat(u,"-sticky-scroll-bar-active"),C)),style:{width:"".concat(p,"px"),transform:"translate3d(".concat(y.scrollLeft,"px, 0, 0)")}}))};const D2e=l.forwardRef(P2e);var $q="rc-table",L2e=[],F2e={};function j2e(){return"No Data"}function B2e(e,t){var n,r=Z({rowKey:"key",prefixCls:$q,emptyText:j2e},e),a=r.prefixCls,o=r.className,i=r.rowClassName,s=r.style,c=r.data,u=r.rowKey,d=r.scroll,f=r.tableLayout,p=r.direction,g=r.title,h=r.footer,b=r.summary,y=r.caption,S=r.id,v=r.showHeader,x=r.components,w=r.emptyText,C=r.onRow,E=r.onHeaderRow,I=r.onScroll,T=r.internalHooks,R=r.transformColumns,_=r.internalRefs,$=r.tailor,P=r.getContainerWidth,D=r.sticky,A=r.rowHoverable,O=A===void 0?!0:A,N=c||L2e,k=!!N.length,M=T===mm,L=l.useCallback(function(pt,Dt){return po(x,pt)||Dt},[x]),F=l.useMemo(function(){return typeof u=="function"?u:function(pt){var Dt=pt&&pt[u];return Dt}},[u]),j=L(["body"]),B=k2e(),z=re(B,3),H=z[0],V=z[1],te=z[2],Y=$2e(r,N,F),J=re(Y,6),G=J[0],U=J[1],q=J[2],X=J[3],Q=J[4],ee=J[5],oe=d==null?void 0:d.x,le=l.useState(0),fe=re(le,2),ce=fe[0],Ie=fe[1],be=T2e(Z(Z(Z({},r),G),{},{expandable:!!G.expandedRowRender,columnTitle:G.columnTitle,expandedKeys:q,getRowKey:F,onTriggerExpand:ee,expandIcon:X,expandIconColumnIndex:G.expandIconColumnIndex,direction:p,scrollWidth:M&&$&&typeof oe=="number"?oe:null,clientWidth:ce}),M?R:null),he=re(be,4),ae=he[0],ie=he[1],ue=he[2],xe=he[3],we=ue??oe,Me=l.useMemo(function(){return{columns:ae,flattenColumns:ie}},[ae,ie]),Ce=l.useRef(),De=l.useRef(),ye=l.useRef(),ve=l.useRef();l.useImperativeHandle(t,function(){return{nativeElement:Ce.current,scrollTo:function(Dt){var yn;if(ye.current instanceof HTMLElement){var fr=Dt.index,mn=Dt.top,fa=Dt.key;if(mn){var Ra;(Ra=ye.current)===null||Ra===void 0||Ra.scrollTo({top:mn})}else{var oa,ja=fa??F(N[fr]);(oa=ye.current.querySelector('[data-row-key="'.concat(ja,'"]')))===null||oa===void 0||oa.scrollIntoView()}}else(yn=ye.current)!==null&&yn!==void 0&&yn.scrollTo&&ye.current.scrollTo(Dt)}}});var $e=l.useRef(),Ee=l.useState(!1),ge=re(Ee,2),Ne=ge[0],Re=ge[1],me=l.useState(!1),_e=re(me,2),Ze=_e[0],Oe=_e[1],Se=_q(new Map),Ae=re(Se,2),Fe=Ae[0],Ve=Ae[1],He=ly(ie),ze=He.map(function(pt){return Fe.get(pt)}),Xe=l.useMemo(function(){return ze},[ze.join("_")]),je=M2e(Xe,ie,p),Je=d&&BR(d.y),gt=d&&BR(we)||!!G.fixed,ft=gt&&ie.some(function(pt){var Dt=pt.fixed;return Dt}),qe=l.useRef(),We=A2e(D,a),Qe=We.isSticky,ut=We.offsetHeader,Rt=We.offsetSummary,$t=We.offsetScroll,ht=We.stickyClassName,lt=We.container,ot=l.useMemo(function(){return b==null?void 0:b(N)},[b,N]),et=(Je||Qe)&&l.isValidElement(ot)&&ot.type===cy&&ot.props.fixed,vt,rt,St;Je&&(rt={overflowY:"scroll",maxHeight:d.y}),gt&&(vt={overflowX:"auto"},Je||(rt={overflowY:"hidden"}),St={width:we===!0?"auto":we,minWidth:"100%"});var Et=l.useCallback(function(pt,Dt){Vd(Ce.current)&&Ve(function(yn){if(yn.get(pt)!==Dt){var fr=new Map(yn);return fr.set(pt,Dt),fr}return yn})},[]),tt=N2e(),at=re(tt,2),Ke=at[0],Ge=at[1];function bt(pt,Dt){Dt&&(typeof Dt=="function"?Dt(pt):Dt.scrollLeft!==pt&&(Dt.scrollLeft=pt,Dt.scrollLeft!==pt&&setTimeout(function(){Dt.scrollLeft=pt},0)))}var Tt=Wt(function(pt){var Dt=pt.currentTarget,yn=pt.scrollLeft,fr=p==="rtl",mn=typeof yn=="number"?yn:Dt.scrollLeft,fa=Dt||F2e;if(!Ge()||Ge()===fa){var Ra;Ke(fa),bt(mn,De.current),bt(mn,ye.current),bt(mn,$e.current),bt(mn,(Ra=qe.current)===null||Ra===void 0?void 0:Ra.setScrollLeft)}var oa=Dt||De.current;if(oa){var ja=oa.scrollWidth,Ci=oa.clientWidth;if(ja===Ci){Re(!1),Oe(!1);return}fr?(Re(-mn0)):(Re(mn>0),Oe(mn1?y-A:0,N=Z(Z(Z({},T),u),{},{flex:"0 0 ".concat(A,"px"),width:"".concat(A,"px"),marginRight:O,pointerEvents:"auto"}),k=l.useMemo(function(){return f?P<=1:_===0||P===0||P>1},[P,_,f]);k?N.visibility="hidden":f&&(N.height=p==null?void 0:p(P));var M=k?function(){return null}:g,L={};return(P===0||_===0)&&(L.rowSpan=1,L.colSpan=1),l.createElement(Bc,pe({className:ne(b,d),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:i,prefixCls:t.prefixCls,key:w,record:c,index:o,renderIndex:s,dataIndex:h,render:M,shouldCellUpdate:n.shouldCellUpdate},C,{appendNode:E,additionalProps:Z(Z({},I),{},{style:N},L)}))}var V2e=["data","index","className","rowKey","style","extra","getHeight"],W2e=l.forwardRef(function(e,t){var n=e.data,r=e.index,a=e.className,o=e.rowKey,i=e.style,s=e.extra,c=e.getHeight,u=xt(e,V2e),d=n.record,f=n.indent,p=n.index,g=Ea(to,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),h=g.scrollX,b=g.flattenColumns,y=g.prefixCls,S=g.fixColumn,v=g.componentWidth,x=Ea(cN,["getComponent"]),w=x.getComponent,C=Cq(d,o,r,f),E=w(["body","row"],"div"),I=w(["body","cell"],"div"),T=C.rowSupportExpand,R=C.expanded,_=C.rowProps,$=C.expandedRowRender,P=C.expandedRowClassName,D;if(T&&R){var A=$(d,r,f+1,R),O=P==null?void 0:P(d,r,f),N={};S&&(N={style:W({},"--virtual-width","".concat(v,"px"))});var k="".concat(y,"-expanded-row-cell");D=l.createElement(E,{className:ne("".concat(y,"-expanded-row"),"".concat(y,"-expanded-row-level-").concat(f+1),O)},l.createElement(Bc,{component:I,prefixCls:y,className:ne(k,W({},"".concat(k,"-fixed"),S)),additionalProps:N},A))}var M=Z(Z({},i),{},{width:h});s&&(M.position="absolute",M.pointerEvents="none");var L=l.createElement(E,pe({},_,u,{"data-row-key":o,ref:T?null:t,className:ne(a,"".concat(y,"-row"),_==null?void 0:_.className,W({},"".concat(y,"-row-extra"),s)),style:Z(Z({},M),_==null?void 0:_.style)}),b.map(function(F,j){return l.createElement(U2e,{key:j,component:I,rowInfo:C,column:F,colIndex:j,indent:f,index:r,renderIndex:p,record:d,inverse:s,getHeight:c})}));return T?l.createElement("div",{ref:t},L,D):L}),VP=tf(W2e),G2e=l.forwardRef(function(e,t){var n=e.data,r=e.onScroll,a=Ea(to,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),o=a.flattenColumns,i=a.onColumnResize,s=a.getRowKey,c=a.expandedKeys,u=a.prefixCls,d=a.childrenColumnName,f=a.emptyNode,p=a.scrollX,g=Ea(cN),h=g.sticky,b=g.scrollY,y=g.listItemHeight,S=g.getComponent,v=g.onScroll,x=l.useRef(),w=wq(n,d,c,s),C=l.useMemo(function(){var N=0;return o.map(function(k){var M=k.width,L=k.key;return N+=M,[L,M,N]})},[o]),E=l.useMemo(function(){return C.map(function(N){return N[2]})},[C]);l.useEffect(function(){C.forEach(function(N){var k=re(N,2),M=k[0],L=k[1];i(M,L)})},[C]),l.useImperativeHandle(t,function(){var N={scrollTo:function(M){var L;(L=x.current)===null||L===void 0||L.scrollTo(M)}};return Object.defineProperty(N,"scrollLeft",{get:function(){var M;return((M=x.current)===null||M===void 0?void 0:M.getScrollInfo().x)||0},set:function(M){var L;(L=x.current)===null||L===void 0||L.scrollTo({left:M})}}),N});var I=function(k,M){var L,F=(L=w[M])===null||L===void 0?void 0:L.record,j=k.onCell;if(j){var B,z=j(F,M);return(B=z==null?void 0:z.rowSpan)!==null&&B!==void 0?B:1}return 1},T=function(k){var M=k.start,L=k.end,F=k.getSize,j=k.offsetY;if(L<0)return null;for(var B=o.filter(function(ee){return I(ee,M)===0}),z=M,H=function(oe){if(B=B.filter(function(le){return I(le,oe)===0}),!B.length)return z=oe,1},V=M;V>=0&&!H(V);V-=1);for(var te=o.filter(function(ee){return I(ee,L)!==1}),Y=L,J=function(oe){if(te=te.filter(function(le){return I(le,oe)!==1}),!te.length)return Y=Math.max(oe-1,L),1},G=L;G1})&&U.push(oe)},X=z;X<=Y;X+=1)q(X);var Q=U.map(function(ee){var oe=w[ee],le=s(oe.record,ee),fe=function(be){var he=ee+be-1,ae=s(w[he].record,he),ie=F(le,ae);return ie.bottom-ie.top},ce=F(le);return l.createElement(VP,{key:ee,data:oe,rowKey:le,index:ee,style:{top:-j+ce.top},extra:!0,getHeight:fe})});return Q},R=l.useMemo(function(){return{columnsOffset:E}},[E]),_="".concat(u,"-tbody"),$=S(["body","wrapper"]),P=S(["body","row"],"div"),D=S(["body","cell"],"div"),A;if(w.length){var O={};h&&(O.position="sticky",O.bottom=0,mt(h)==="object"&&h.offsetScroll&&(O.bottom=h.offsetScroll)),A=l.createElement(P0,{fullHeight:!1,ref:x,prefixCls:"".concat(_,"-virtual"),styles:{horizontalScrollBar:O},className:_,height:b,itemHeight:y||24,data:w,itemKey:function(k){return s(k.record)},component:$,scrollWidth:p,onVirtualScroll:function(k){var M=k.x;r({scrollLeft:M})},onScroll:v,extraRender:T},function(N,k,M){var L=s(N.record,k);return l.createElement(VP,{data:N,rowKey:L,index:k,style:M.style})})}else A=l.createElement(P,{className:ne("".concat(u,"-placeholder"))},l.createElement(Bc,{component:D,prefixCls:u},f));return l.createElement(Nq.Provider,{value:R},A)}),q2e=tf(G2e),K2e=function(t,n){var r=n.ref,a=n.onScroll;return l.createElement(q2e,{ref:r,data:t,onScroll:a})};function Y2e(e,t){var n=e.columns,r=e.scroll,a=e.sticky,o=e.prefixCls,i=o===void 0?$q:o,s=e.className,c=e.listItemHeight,u=e.components,d=e.onScroll,f=r||{},p=f.x,g=f.y;typeof p!="number"&&(p=1),typeof g!="number"&&(g=500);var h=Wt(function(S,v){return po(u,S)||v}),b=Wt(d),y=l.useMemo(function(){return{sticky:a,scrollY:g,listItemHeight:c,getComponent:h,onScroll:b}},[a,g,c,h,b]);return l.createElement(cN.Provider,{value:y},l.createElement(nf,pe({},e,{className:ne(s,"".concat(i,"-virtual")),scroll:Z(Z({},r),{},{x:p}),components:Z(Z({},u),{},{body:K2e}),columns:n,internalHooks:mm,tailor:!0,ref:t})))}var X2e=l.forwardRef(Y2e);function kq(e){return vq(X2e,e)}kq();const Z2e=e=>null,Q2e=e=>null;var uN=l.createContext(null),J2e=function(t){for(var n=t.prefixCls,r=t.level,a=t.isStart,o=t.isEnd,i="".concat(n,"-indent-unit"),s=[],c=0;c=0&&n.splice(r,1),n}function rs(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function dN(e){return e.split("-")}function aIe(e,t){var n=[],r=Wa(t,e);function a(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];o.forEach(function(i){var s=i.key,c=i.children;n.push(s),a(c)})}return a(r.children),n}function oIe(e){if(e.parent){var t=dN(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function iIe(e){var t=dN(e.pos);return Number(t[t.length-1])===0}function qP(e,t,n,r,a,o,i,s,c,u){var d,f=e.clientX,p=e.clientY,g=e.target.getBoundingClientRect(),h=g.top,b=g.height,y=(u==="rtl"?-1:1)*(((a==null?void 0:a.x)||0)-f),S=(y-12)/r,v=c.filter(function(N){var k;return(k=s[N])===null||k===void 0||(k=k.children)===null||k===void 0?void 0:k.length}),x=Wa(s,n.props.eventKey);if(p-1.5?o({dragNode:D,dropNode:A,dropPosition:1})?_=1:O=!1:o({dragNode:D,dropNode:A,dropPosition:0})?_=0:o({dragNode:D,dropNode:A,dropPosition:1})?_=1:O=!1:o({dragNode:D,dropNode:A,dropPosition:1})?_=1:O=!1,{dropPosition:_,dropLevelOffset:$,dropTargetKey:x.key,dropTargetPos:x.pos,dragOverNodeKey:R,dropContainerKey:_===0?null:((d=x.parent)===null||d===void 0?void 0:d.key)||null,dropAllowed:O}}function KP(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function y1(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(mt(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return vn(!1,"`checkedKeys` is not an array or an object"),null;return t}function HR(e,t){var n=new Set;function r(a){if(!n.has(a)){var o=Wa(t,a);if(o){n.add(a);var i=o.parent,s=o.node;s.disabled||i&&r(i.key)}}}return(e||[]).forEach(function(a){r(a)}),Pe(n)}function sIe(e){const[t,n]=l.useState(null);return[l.useCallback((o,i,s)=>{const c=t??o,u=Math.min(c||0,o),d=Math.max(c||0,o),f=i.slice(u,d+1).map(h=>e(h)),p=f.some(h=>!s.has(h)),g=[];return f.forEach(h=>{p?(s.has(h)||g.push(h),s.add(h)):(s.delete(h),g.push(h))}),n(p?d:null),g},[t]),o=>{n(o)}]}const Bs={},UR="SELECT_ALL",VR="SELECT_INVERT",WR="SELECT_NONE",YP=[],Aq=(e,t)=>{let n=[];return(t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&(n=[].concat(Pe(n),Pe(Aq(e,r[e]))))}),n},lIe=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:a,getCheckboxProps:o,onChange:i,onSelect:s,onSelectAll:c,onSelectInvert:u,onSelectNone:d,onSelectMultiple:f,columnWidth:p,type:g,selections:h,fixed:b,renderCell:y,hideSelectAll:S,checkStrictly:v=!0}=t||{},{prefixCls:x,data:w,pageData:C,getRecordByKey:E,getRowKey:I,expandType:T,childrenColumnName:R,locale:_,getPopupContainer:$}=e,P=$l(),[D,A]=sIe(q=>q),[O,N]=sn(r||a||YP,{value:r}),k=l.useRef(new Map),M=l.useCallback(q=>{if(n){const X=new Map;q.forEach(Q=>{let ee=E(Q);!ee&&k.current.has(Q)&&(ee=k.current.get(Q)),X.set(Q,ee)}),k.current=X}},[E,n]);l.useEffect(()=>{M(O)},[O]);const{keyEntities:L}=l.useMemo(()=>{if(v)return{keyEntities:null};let q=w;if(n){const X=new Set(w.map((ee,oe)=>I(ee,oe))),Q=Array.from(k.current).reduce((ee,oe)=>{let[le,fe]=oe;return X.has(le)?ee:ee.concat(fe)},[]);q=[].concat(Pe(q),Pe(Q))}return ey(q,{externalGetKey:I,childrenPropName:R})},[w,I,v,R,n]),F=l.useMemo(()=>Aq(R,C),[R,C]),j=l.useMemo(()=>{const q=new Map;return F.forEach((X,Q)=>{const ee=I(X,Q),oe=(o?o(X):null)||{};q.set(ee,oe)}),q},[F,I,o]),B=l.useCallback(q=>{var X;return!!(!((X=j.get(I(q)))===null||X===void 0)&&X.disabled)},[j,I]),[z,H]=l.useMemo(()=>{if(v)return[O||[],[]];const{checkedKeys:q,halfCheckedKeys:X}=vs(O,!0,L,B);return[q||[],X]},[O,v,L,B]),V=l.useMemo(()=>{const q=g==="radio"?z.slice(0,1):z;return new Set(q)},[z,g]),te=l.useMemo(()=>g==="radio"?new Set:new Set(H),[H,g]);l.useEffect(()=>{t||N(YP)},[!!t]);const Y=l.useCallback((q,X)=>{let Q,ee;M(q),n?(Q=q,ee=q.map(oe=>k.current.get(oe))):(Q=[],ee=[],q.forEach(oe=>{const le=E(oe);le!==void 0&&(Q.push(oe),ee.push(le))})),N(Q),i==null||i(Q,ee,{type:X})},[N,E,i,n]),J=l.useCallback((q,X,Q,ee)=>{if(s){const oe=Q.map(le=>E(le));s(E(q),X,oe,ee)}Y(Q,"single")},[s,E,Y]),G=l.useMemo(()=>!h||S?null:(h===!0?[UR,VR,WR]:h).map(X=>X===UR?{key:"all",text:_.selectionAll,onSelect(){Y(w.map((Q,ee)=>I(Q,ee)).filter(Q=>{const ee=j.get(Q);return!(ee!=null&&ee.disabled)||V.has(Q)}),"all")}}:X===VR?{key:"invert",text:_.selectInvert,onSelect(){const Q=new Set(V);C.forEach((oe,le)=>{const fe=I(oe,le),ce=j.get(fe);ce!=null&&ce.disabled||(Q.has(fe)?Q.delete(fe):Q.add(fe))});const ee=Array.from(Q);u&&(P.deprecated(!1,"onSelectInvert","onChange"),u(ee)),Y(ee,"invert")}}:X===WR?{key:"none",text:_.selectNone,onSelect(){d==null||d(),Y(Array.from(V).filter(Q=>{const ee=j.get(Q);return ee==null?void 0:ee.disabled}),"none")}}:X).map(X=>Object.assign(Object.assign({},X),{onSelect:function(){for(var Q,ee,oe=arguments.length,le=new Array(oe),fe=0;fe{var X;if(!t)return q.filter(ye=>ye!==Bs);let Q=Pe(q);const ee=new Set(V),oe=F.map(I).filter(ye=>!j.get(ye).disabled),le=oe.every(ye=>ee.has(ye)),fe=oe.some(ye=>ee.has(ye)),ce=()=>{const ye=[];le?oe.forEach($e=>{ee.delete($e),ye.push($e)}):oe.forEach($e=>{ee.has($e)||(ee.add($e),ye.push($e))});const ve=Array.from(ee);c==null||c(!le,ve.map($e=>E($e)),ye.map($e=>E($e))),Y(ve,"all"),A(null)};let Ie,be;if(g!=="radio"){let ye;if(G){const Ne={getPopupContainer:$,items:G.map((Re,me)=>{const{key:_e,text:Ze,onSelect:Oe}=Re;return{key:_e??me,onClick:()=>{Oe==null||Oe(oe)},label:Ze}})};ye=l.createElement("div",{className:`${x}-selection-extra`},l.createElement(ry,{menu:Ne,getPopupContainer:$},l.createElement("span",null,l.createElement(L0,null))))}const ve=F.map((Ne,Re)=>{const me=I(Ne,Re),_e=j.get(me)||{};return Object.assign({checked:ee.has(me)},_e)}).filter(Ne=>{let{disabled:Re}=Ne;return Re}),$e=!!ve.length&&ve.length===F.length,Ee=$e&&ve.every(Ne=>{let{checked:Re}=Ne;return Re}),ge=$e&&ve.some(Ne=>{let{checked:Re}=Ne;return Re});be=l.createElement(_s,{checked:$e?Ee:!!F.length&&le,indeterminate:$e?!Ee&&ge:!le&&fe,onChange:ce,disabled:F.length===0||$e,"aria-label":ye?"Custom selection":"Select all",skipGroup:!0}),Ie=!S&&l.createElement("div",{className:`${x}-selection`},be,ye)}let he;g==="radio"?he=(ye,ve,$e)=>{const Ee=I(ve,$e),ge=ee.has(Ee);return{node:l.createElement(ho,Object.assign({},j.get(Ee),{checked:ge,onClick:Ne=>Ne.stopPropagation(),onChange:Ne=>{ee.has(Ee)||J(Ee,!0,[Ee],Ne.nativeEvent)}})),checked:ge}}:he=(ye,ve,$e)=>{var Ee;const ge=I(ve,$e),Ne=ee.has(ge),Re=te.has(ge),me=j.get(ge);let _e;return T==="nest"?_e=Re:_e=(Ee=me==null?void 0:me.indeterminate)!==null&&Ee!==void 0?Ee:Re,{node:l.createElement(_s,Object.assign({},me,{indeterminate:_e,checked:Ne,skipGroup:!0,onClick:Ze=>Ze.stopPropagation(),onChange:Ze=>{let{nativeEvent:Oe}=Ze;const{shiftKey:Se}=Oe,Ae=oe.findIndex(Ve=>Ve===ge),Fe=z.some(Ve=>oe.includes(Ve));if(Se&&v&&Fe){const Ve=D(Ae,oe,ee),He=Array.from(ee);f==null||f(!Ne,He.map(ze=>E(ze)),Ve.map(ze=>E(ze))),Y(He,"multiple")}else{const Ve=z;if(v){const He=Ne?_i(Ve,ge):rs(Ve,ge);J(ge,!Ne,He,Oe)}else{const He=vs([].concat(Pe(Ve),[ge]),!0,L,B),{checkedKeys:ze,halfCheckedKeys:Xe}=He;let je=ze;if(Ne){const Je=new Set(ze);Je.delete(ge),je=vs(Array.from(Je),{checked:!1,halfCheckedKeys:Xe},L,B).checkedKeys}J(ge,!Ne,je,Oe)}}A(Ne?null:Ae)}})),checked:Ne}};const ae=(ye,ve,$e)=>{const{node:Ee,checked:ge}=he(ye,ve,$e);return y?y(ge,ve,$e,Ee):Ee};if(!Q.includes(Bs))if(Q.findIndex(ye=>{var ve;return((ve=ye[Ip])===null||ve===void 0?void 0:ve.columnType)==="EXPAND_COLUMN"})===0){const[ye,...ve]=Q;Q=[ye,Bs].concat(Pe(ve))}else Q=[Bs].concat(Pe(Q));const ie=Q.indexOf(Bs);Q=Q.filter((ye,ve)=>ye!==Bs||ve===ie);const ue=Q[ie-1],xe=Q[ie+1];let we=b;we===void 0&&((xe==null?void 0:xe.fixed)!==void 0?we=xe.fixed:(ue==null?void 0:ue.fixed)!==void 0&&(we=ue.fixed)),we&&ue&&((X=ue[Ip])===null||X===void 0?void 0:X.columnType)==="EXPAND_COLUMN"&&ue.fixed===void 0&&(ue.fixed=we);const Me=ne(`${x}-selection-col`,{[`${x}-selection-col-with-dropdown`]:h&&g==="checkbox"}),Ce=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(be):t.columnTitle:Ie,De={fixed:we,width:p,className:`${x}-selection-column`,title:Ce(),render:ae,onCell:t.onCell,[Ip]:{className:Me}};return Q.map(ye=>ye===Bs?De:ye)},[I,F,t,z,V,te,p,G,T,j,f,J,B]),V]};function cIe(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){const r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e}function uIe(e,t){return l.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy<"u"?new Proxy(r,{get(a,o){return n[o]?n[o]:Reflect.get(a,o)}}):cIe(r,n)})}function dIe(e){return t=>{const{prefixCls:n,onExpand:r,record:a,expanded:o,expandable:i}=t,s=`${n}-row-expand-icon`;return l.createElement("button",{type:"button",onClick:c=>{r(a,c),c.stopPropagation()},className:ne(s,{[`${s}-spaced`]:!i,[`${s}-expanded`]:i&&o,[`${s}-collapsed`]:i&&!o}),"aria-label":o?e.collapse:e.expand,"aria-expanded":o})}}function fIe(e){return(n,r)=>{const a=n.querySelector(`.${e}-container`);let o=r;if(a){const i=getComputedStyle(a),s=parseInt(i.borderLeftWidth,10),c=parseInt(i.borderRightWidth,10);o=r-s-c}return o}}const wl=(e,t)=>"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function rf(e,t){return t?`${t}-${e}`:`${e}`}const uy=(e,t)=>typeof e=="function"?e(t):e,pIe=(e,t)=>{const n=uy(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n};function gIe(e){const t=l.useRef(e),n=pO();return[()=>t.current,r=>{t.current=r,n()}]}function mIe(e){var t=e.dropPosition,n=e.dropLevelOffset,r=e.indent,a={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:a.top=0,a.left=-n*r;break;case 1:a.bottom=0,a.left=-n*r;break;case 0:a.bottom=0,a.left=r;break}return l.createElement("div",{style:a})}function Mq(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function hIe(e,t){var n=l.useState(!1),r=re(n,2),a=r[0],o=r[1];Xt(function(){if(a)return e(),function(){t()}},[a]),Xt(function(){return o(!0),function(){o(!1)}},[])}var vIe=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Pq=function(t,n){var r=t.className,a=t.style,o=t.motion,i=t.motionNodes,s=t.motionType,c=t.onMotionStart,u=t.onMotionEnd,d=t.active,f=t.treeNodeRequiredProps,p=xt(t,vIe),g=l.useState(!0),h=re(g,2),b=h[0],y=h[1],S=l.useContext(uN),v=S.prefixCls,x=i&&s!=="hide";Xt(function(){i&&x!==b&&y(x)},[i]);var w=function(){i&&c()},C=l.useRef(!1),E=function(){i&&!C.current&&(C.current=!0,u())};hIe(w,E);var I=function(R){x===R&&E()};return i?l.createElement(ea,pe({ref:n,visible:b},o,{motionAppear:s==="show",onVisibleChanged:I}),function(T,R){var _=T.className,$=T.style;return l.createElement("div",{ref:R,className:ne("".concat(v,"-treenode-motion"),_),style:$},i.map(function(P){var D=Object.assign({},(Mq(P.data),P.data)),A=P.title,O=P.key,N=P.isStart,k=P.isEnd;delete D.children;var M=Cp(O,f);return l.createElement(Id,pe({},D,M,{title:A,active:d,data:P.data,key:O,isStart:N,isEnd:k}))}))}):l.createElement(Id,pe({domRef:n,className:r,style:a},p,{active:d}))};Pq.displayName="MotionTreeNode";var bIe=l.forwardRef(Pq);function yIe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function a(o,i){var s=new Map;o.forEach(function(u){s.set(u,!0)});var c=i.filter(function(u){return!s.has(u)});return c.length===1?c[0]:null}return n ").concat(t);return t}var Lq=l.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var a=e.expandedKeys,o=e.selectedKeys,i=e.checkedKeys,s=e.loadedKeys,c=e.loadingKeys,u=e.halfCheckedKeys,d=e.keyEntities,f=e.disabled,p=e.dragging,g=e.dragOverNodeKey,h=e.dropPosition,b=e.motion,y=e.height,S=e.itemHeight,v=e.virtual,x=e.focusable,w=e.activeItem,C=e.focused,E=e.tabIndex,I=e.onKeyDown,T=e.onFocus,R=e.onBlur,_=e.onActiveChange,$=e.onListChangeStart,P=e.onListChangeEnd,D=xt(e,SIe),A=l.useRef(null),O=l.useRef(null);l.useImperativeHandle(t,function(){return{scrollTo:function(he){A.current.scrollTo(he)},getIndentWidth:function(){return O.current.offsetWidth}}});var N=l.useState(a),k=re(N,2),M=k[0],L=k[1],F=l.useState(r),j=re(F,2),B=j[0],z=j[1],H=l.useState(r),V=re(H,2),te=V[0],Y=V[1],J=l.useState([]),G=re(J,2),U=G[0],q=G[1],X=l.useState(null),Q=re(X,2),ee=Q[0],oe=Q[1],le=l.useRef(r);le.current=r;function fe(){var be=le.current;z(be),Y(be),q([]),oe(null),P()}Xt(function(){L(a);var be=yIe(M,a);if(be.key!==null)if(be.add){var he=B.findIndex(function(Me){var Ce=Me.key;return Ce===be.key}),ae=JP(XP(B,r,be.key),v,y,S),ie=B.slice();ie.splice(he+1,0,QP),Y(ie),q(ae),oe("show")}else{var ue=r.findIndex(function(Me){var Ce=Me.key;return Ce===be.key}),xe=JP(XP(r,B,be.key),v,y,S),we=r.slice();we.splice(ue+1,0,QP),Y(we),q(xe),oe("hide")}else B!==r&&(z(r),Y(r))},[a,r]),l.useEffect(function(){p||fe()},[p]);var ce=b?te:r,Ie={expandedKeys:a,selectedKeys:o,loadedKeys:s,loadingKeys:c,checkedKeys:i,halfCheckedKeys:u,dragOverNodeKey:g,dropPosition:h,keyEntities:d};return l.createElement(l.Fragment,null,C&&w&&l.createElement("span",{style:ZP,"aria-live":"assertive"},wIe(w)),l.createElement("div",null,l.createElement("input",{style:ZP,disabled:x===!1||f,tabIndex:x!==!1?E:null,onKeyDown:I,onFocus:T,onBlur:R,value:"",onChange:xIe,"aria-label":"for screen reader"})),l.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},l.createElement("div",{className:"".concat(n,"-indent")},l.createElement("div",{ref:O,className:"".concat(n,"-indent-unit")}))),l.createElement(P0,pe({},D,{data:ce,itemKey:eD,height:y,fullHeight:!1,virtual:v,itemHeight:S,prefixCls:"".concat(n,"-list"),ref:A,onVisibleChange:function(he){he.every(function(ae){return eD(ae)!==_c})&&fe()}}),function(be){var he=be.pos,ae=Object.assign({},(Mq(be.data),be.data)),ie=be.title,ue=be.key,xe=be.isStart,we=be.isEnd,Me=fm(ue,he);delete ae.key,delete ae.children;var Ce=Cp(Me,Ie);return l.createElement(bIe,pe({},ae,Ce,{title:ie,active:!!w&&ue===w.key,pos:he,data:be.data,isStart:xe,isEnd:we,motion:b,motionNodes:ue===_c?U:null,motionType:ee,onMotionStart:$,onMotionEnd:fe,treeNodeRequiredProps:Ie,onMouseMove:function(){_(null)}}))}))});Lq.displayName="NodeList";var CIe=10,dy=function(e){Io(n,e);var t=Yo(n);function n(){var r;Xn(this,n);for(var a=arguments.length,o=new Array(a),i=0;i2&&arguments[2]!==void 0?arguments[2]:!1,f=r.state,p=f.dragChildrenKeys,g=f.dropPosition,h=f.dropTargetKey,b=f.dropTargetPos,y=f.dropAllowed;if(y){var S=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),h!==null){var v=Z(Z({},Cp(h,r.getTreeNodeRequiredProps())),{},{active:((u=r.getActiveItem())===null||u===void 0?void 0:u.key)===h,data:Wa(r.state.keyEntities,h).node}),x=p.indexOf(h)!==-1;vn(!x,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var w=dN(b),C={event:s,node:Ir(v),dragNode:r.dragNode?Ir(r.dragNode.props):null,dragNodesKeys:[r.dragNode.props.eventKey].concat(p),dropToGap:g!==0,dropPosition:g+Number(w[w.length-1])};d||S==null||S(C),r.dragNode=null}}}),W(Ue(r),"cleanDragState",function(){var s=r.state.draggingNodeKey;s!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),W(Ue(r),"triggerExpandActionExpand",function(s,c){var u=r.state,d=u.expandedKeys,f=u.flattenNodes,p=c.expanded,g=c.key,h=c.isLeaf;if(!(h||s.shiftKey||s.metaKey||s.ctrlKey)){var b=f.filter(function(S){return S.key===g})[0],y=Ir(Z(Z({},Cp(g,r.getTreeNodeRequiredProps())),{},{data:b.data}));r.setExpandedKeys(p?_i(d,g):rs(d,g)),r.onNodeExpand(s,y)}}),W(Ue(r),"onNodeClick",function(s,c){var u=r.props,d=u.onClick,f=u.expandAction;f==="click"&&r.triggerExpandActionExpand(s,c),d==null||d(s,c)}),W(Ue(r),"onNodeDoubleClick",function(s,c){var u=r.props,d=u.onDoubleClick,f=u.expandAction;f==="doubleClick"&&r.triggerExpandActionExpand(s,c),d==null||d(s,c)}),W(Ue(r),"onNodeSelect",function(s,c){var u=r.state.selectedKeys,d=r.state,f=d.keyEntities,p=d.fieldNames,g=r.props,h=g.onSelect,b=g.multiple,y=c.selected,S=c[p.key],v=!y;v?b?u=rs(u,S):u=[S]:u=_i(u,S);var x=u.map(function(w){var C=Wa(f,w);return C?C.node:null}).filter(function(w){return w});r.setUncontrolledState({selectedKeys:u}),h==null||h(u,{event:"select",selected:v,node:c,selectedNodes:x,nativeEvent:s.nativeEvent})}),W(Ue(r),"onNodeCheck",function(s,c,u){var d=r.state,f=d.keyEntities,p=d.checkedKeys,g=d.halfCheckedKeys,h=r.props,b=h.checkStrictly,y=h.onCheck,S=c.key,v,x={event:"check",node:c,checked:u,nativeEvent:s.nativeEvent};if(b){var w=u?rs(p,S):_i(p,S),C=_i(g,S);v={checked:w,halfChecked:C},x.checkedNodes=w.map(function($){return Wa(f,$)}).filter(function($){return $}).map(function($){return $.node}),r.setUncontrolledState({checkedKeys:w})}else{var E=vs([].concat(Pe(p),[S]),!0,f),I=E.checkedKeys,T=E.halfCheckedKeys;if(!u){var R=new Set(I);R.delete(S);var _=vs(Array.from(R),{checked:!1,halfCheckedKeys:T},f);I=_.checkedKeys,T=_.halfCheckedKeys}v=I,x.checkedNodes=[],x.checkedNodesPositions=[],x.halfCheckedKeys=T,I.forEach(function($){var P=Wa(f,$);if(P){var D=P.node,A=P.pos;x.checkedNodes.push(D),x.checkedNodesPositions.push({node:D,pos:A})}}),r.setUncontrolledState({checkedKeys:I},!1,{halfCheckedKeys:T})}y==null||y(v,x)}),W(Ue(r),"onNodeLoad",function(s){var c,u=s.key,d=r.state.keyEntities,f=Wa(d,u);if(!(f!=null&&(c=f.children)!==null&&c!==void 0&&c.length)){var p=new Promise(function(g,h){r.setState(function(b){var y=b.loadedKeys,S=y===void 0?[]:y,v=b.loadingKeys,x=v===void 0?[]:v,w=r.props,C=w.loadData,E=w.onLoad;if(!C||S.indexOf(u)!==-1||x.indexOf(u)!==-1)return null;var I=C(s);return I.then(function(){var T=r.state.loadedKeys,R=rs(T,u);E==null||E(R,{event:"load",node:s}),r.setUncontrolledState({loadedKeys:R}),r.setState(function(_){return{loadingKeys:_i(_.loadingKeys,u)}}),g()}).catch(function(T){if(r.setState(function(_){return{loadingKeys:_i(_.loadingKeys,u)}}),r.loadingRetryTimes[u]=(r.loadingRetryTimes[u]||0)+1,r.loadingRetryTimes[u]>=CIe){var R=r.state.loadedKeys;vn(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:rs(R,u)}),g()}h(T)}),{loadingKeys:rs(x,u)}})});return p.catch(function(){}),p}}),W(Ue(r),"onNodeMouseEnter",function(s,c){var u=r.props.onMouseEnter;u==null||u({event:s,node:c})}),W(Ue(r),"onNodeMouseLeave",function(s,c){var u=r.props.onMouseLeave;u==null||u({event:s,node:c})}),W(Ue(r),"onNodeContextMenu",function(s,c){var u=r.props.onRightClick;u&&(s.preventDefault(),u({event:s,node:c}))}),W(Ue(r),"onFocus",function(){var s=r.props.onFocus;r.setState({focused:!0});for(var c=arguments.length,u=new Array(c),d=0;d1&&arguments[1]!==void 0?arguments[1]:!1,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var d=!1,f=!0,p={};Object.keys(s).forEach(function(g){if(g in r.props){f=!1;return}d=!0,p[g]=s[g]}),d&&(!c||f)&&r.setState(Z(Z({},p),u))}}),W(Ue(r),"scrollTo",function(s){r.listRef.current.scrollTo(s)}),r}return Zn(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var a=this.props,o=a.activeKey,i=a.itemScrollOffset,s=i===void 0?0:i;o!==void 0&&o!==this.state.activeKey&&(this.setState({activeKey:o}),o!==null&&this.scrollTo({key:o,offset:s}))}},{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 a=this.state,o=a.focused,i=a.flattenNodes,s=a.keyEntities,c=a.draggingNodeKey,u=a.activeKey,d=a.dropLevelOffset,f=a.dropContainerKey,p=a.dropTargetKey,g=a.dropPosition,h=a.dragOverNodeKey,b=a.indent,y=this.props,S=y.prefixCls,v=y.className,x=y.style,w=y.showLine,C=y.focusable,E=y.tabIndex,I=E===void 0?0:E,T=y.selectable,R=y.showIcon,_=y.icon,$=y.switcherIcon,P=y.draggable,D=y.checkable,A=y.checkStrictly,O=y.disabled,N=y.motion,k=y.loadData,M=y.filterTreeNode,L=y.height,F=y.itemHeight,j=y.virtual,B=y.titleRender,z=y.dropIndicatorRender,H=y.onContextMenu,V=y.onScroll,te=y.direction,Y=y.rootClassName,J=y.rootStyle,G=Yn(this.props,{aria:!0,data:!0}),U;return P&&(mt(P)==="object"?U=P:typeof P=="function"?U={nodeDraggable:P}:U={}),l.createElement(uN.Provider,{value:{prefixCls:S,selectable:T,showIcon:R,icon:_,switcherIcon:$,draggable:U,draggingNodeKey:c,checkable:D,checkStrictly:A,disabled:O,keyEntities:s,dropLevelOffset:d,dropContainerKey:f,dropTargetKey:p,dropPosition:g,dragOverNodeKey:h,indent:b,direction:te,dropIndicatorRender:z,loadData:k,filterTreeNode:M,titleRender:B,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}},l.createElement("div",{role:"tree",className:ne(S,v,Y,W(W(W({},"".concat(S,"-show-line"),w),"".concat(S,"-focused"),o),"".concat(S,"-active-focused"),u!==null)),style:J},l.createElement(Lq,pe({ref:this.listRef,prefixCls:S,style:x,data:i,disabled:O,selectable:T,checkable:!!D,motion:N,dragging:c!==null,height:L,itemHeight:F,virtual:j,focusable:C,focused:o,tabIndex:I,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:H,onScroll:V},this.getTreeNodeRequiredProps(),G))))}}],[{key:"getDerivedStateFromProps",value:function(a,o){var i=o.prevProps,s={prevProps:a};function c(I){return!i&&I in a||i&&i[I]!==a[I]}var u,d=o.fieldNames;if(c("fieldNames")&&(d=Cd(a.fieldNames),s.fieldNames=d),c("treeData")?u=a.treeData:c("children")&&(vn(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),u=ZW(a.children)),u){s.treeData=u;var f=ey(u,{fieldNames:d});s.keyEntities=Z(W({},_c,Dq),f.keyEntities)}var p=s.keyEntities||o.keyEntities;if(c("expandedKeys")||i&&c("autoExpandParent"))s.expandedKeys=a.autoExpandParent||!i&&a.defaultExpandParent?HR(a.expandedKeys,p):a.expandedKeys;else if(!i&&a.defaultExpandAll){var g=Z({},p);delete g[_c];var h=[];Object.keys(g).forEach(function(I){var T=g[I];T.children&&T.children.length&&h.push(T.key)}),s.expandedKeys=h}else!i&&a.defaultExpandedKeys&&(s.expandedKeys=a.autoExpandParent||a.defaultExpandParent?HR(a.defaultExpandedKeys,p):a.defaultExpandedKeys);if(s.expandedKeys||delete s.expandedKeys,u||s.expandedKeys){var b=u1(u||o.treeData,s.expandedKeys||o.expandedKeys,d);s.flattenNodes=b}if(a.selectable&&(c("selectedKeys")?s.selectedKeys=KP(a.selectedKeys,a):!i&&a.defaultSelectedKeys&&(s.selectedKeys=KP(a.defaultSelectedKeys,a))),a.checkable){var y;if(c("checkedKeys")?y=y1(a.checkedKeys)||{}:!i&&a.defaultCheckedKeys?y=y1(a.defaultCheckedKeys)||{}:u&&(y=y1(a.checkedKeys)||{checkedKeys:o.checkedKeys,halfCheckedKeys:o.halfCheckedKeys}),y){var S=y,v=S.checkedKeys,x=v===void 0?[]:v,w=S.halfCheckedKeys,C=w===void 0?[]:w;if(!a.checkStrictly){var E=vs(x,!0,p);x=E.checkedKeys,C=E.halfCheckedKeys}s.checkedKeys=x,s.halfCheckedKeys=C}}return c("loadedKeys")&&(s.loadedKeys=a.loadedKeys),s}}]),n}(l.Component);W(dy,"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:mIe,allowDrop:function(){return!0},expandAction:!1});W(dy,"TreeNode",Id);const EIe=new un("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),IIe=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),TIe=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${K(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),RIe=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:a,titleHeight:o,nodeSelectedBg:i,nodeHoverBg:s}=t,c=t.paddingXS;return{[n]:Object.assign(Object.assign({},nn(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},Cs(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:a,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:EIe,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[r]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${K(a)} 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:o,lineHeight:K(o),textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${r}:hover &`]:{opacity:.45}},[`&${r}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:o}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:Object.assign(Object.assign({},IIe(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:o,margin:0,lineHeight:K(o),textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:o,height:o,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(o).div(2).equal(),bottom:t.calc(a).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(o).div(2).equal()).mul(.8).equal(),height:t.calc(o).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:c,alignSelf:"flex-start",marginTop:t.marginXXS},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:o,margin:0,padding:`0 ${K(t.calc(t.paddingXS).div(2).equal())}`,color:"inherit",lineHeight:K(o),background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:s},[`&${n}-node-selected`]:{backgroundColor:i},[`${n}-iconEle`]:{display:"inline-block",width:o,height:o,lineHeight:K(o),textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:Object.assign({lineHeight:K(o),userSelect:"none"},TIe(e,t)),[`${r}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${n}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(o).div(2).equal(),bottom:t.calc(a).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last`]:{[`${n}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${K(t.calc(o).div(2).equal())} !important`}}}}})}},_Ie=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:r,directoryNodeSelectedBg:a,directoryNodeSelectedColor:o}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:o,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:a},[`${t}-switcher`]:{color:o},[`${t}-node-content-wrapper`]:{color:o,background:"transparent"}}}}}},Fq=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,a=t.calc(t.paddingXS).div(2).equal(),o=zt(t,{treeCls:n,treeNodeCls:r,treeNodePadding:a});return[RIe(e,o),_Ie(o)]},jq=e=>{const{controlHeightSM:t}=e;return{titleHeight:t,nodeHoverBg:e.controlItemBgHover,nodeSelectedBg:e.controlItemBgActive}},$Ie=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},jq(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},OIe=on("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:FO(`${n}-checkbox`,e)},Fq(n,e),Jg(e)]},$Ie),tD=4;function NIe(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:a,direction:o="ltr"}=e,i=o==="ltr"?"left":"right",s=o==="ltr"?"right":"left",c={[i]:-n*a+tD,[s]:0};switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[i]=a+tD;break}return se.createElement("div",{style:c,className:`${r}-drop-indicator`})}const Bq=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:a,switcherLoadingIcon:o}=e,{isLeaf:i,expanded:s,loading:c}=r;if(c)return l.isValidElement(o)?o:l.createElement(Ui,{className:`${t}-switcher-loading-icon`});let u;if(a&&typeof a=="object"&&(u=a.showLeafIcon),i){if(!a)return null;if(typeof u!="boolean"&&u){const p=typeof u=="function"?u(r):u,g=`${t}-switcher-line-custom-icon`;return l.isValidElement(p)?Cr(p,{className:ne(p.props.className||"",g)}):p}return u?l.createElement(sq,{className:`${t}-switcher-line-icon`}):l.createElement("span",{className:`${t}-switcher-leaf-line`})}const d=`${t}-switcher-icon`,f=typeof n=="function"?n(r):n;return l.isValidElement(f)?Cr(f,{className:ne(f.props.className||"",d)}):f!==void 0?f:a?s?l.createElement(Vwe,{className:`${t}-switcher-line-icon`}):l.createElement(cq,{className:`${t}-switcher-line-icon`}):l.createElement(W1e,{className:d})},zq=se.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:a,virtual:o,tree:i}=se.useContext(st),{prefixCls:s,className:c,showIcon:u=!1,showLine:d,switcherIcon:f,switcherLoadingIcon:p,blockNode:g=!1,children:h,checkable:b=!1,selectable:y=!0,draggable:S,motion:v,style:x}=e,w=r("tree",s),C=r(),E=v??Object.assign(Object.assign({},Sd(C)),{motionAppear:!1}),I=Object.assign(Object.assign({},e),{checkable:b,selectable:y,showIcon:u,motion:E,blockNode:g,showLine:!!d,dropIndicatorRender:NIe}),[T,R,_]=OIe(w),[,$]=ra(),P=$.paddingXS/2+(((n=$.Tree)===null||n===void 0?void 0:n.titleHeight)||$.controlHeightSM),D=se.useMemo(()=>{if(!S)return!1;let O={};switch(typeof S){case"function":O.nodeDraggable=S;break;case"object":O=Object.assign({},S);break}return O.icon!==!1&&(O.icon=O.icon||se.createElement(hwe,null)),O},[S]),A=O=>se.createElement(Bq,{prefixCls:w,switcherIcon:f,switcherLoadingIcon:p,treeNodeProps:O,showLine:d});return T(se.createElement(dy,Object.assign({itemHeight:P,ref:t,virtual:o},I,{style:Object.assign(Object.assign({},i==null?void 0:i.style),x),prefixCls:w,className:ne({[`${w}-icon-hide`]:!u,[`${w}-block-node`]:g,[`${w}-unselectable`]:!y,[`${w}-rtl`]:a==="rtl"},i==null?void 0:i.className,c,R,_),direction:a,checkable:b&&se.createElement("span",{className:`${w}-checkbox-inner`}),selectable:y,switcherIcon:A,draggable:D}),h))}),nD=0,S1=1,rD=2;function fN(e,t,n){const{key:r,children:a}=n;function o(i){const s=i[r],c=i[a];t(s,i)!==!1&&fN(c||[],t,n)}e.forEach(o)}function kIe(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:a,fieldNames:o}=e;const i=[];let s=nD;if(r&&r===a)return[r];if(!r||!a)return[];function c(u){return u===r||u===a}return fN(t,u=>{if(s===rD)return!1;if(c(u)){if(i.push(u),s===nD)s=S1;else if(s===S1)return s=rD,!1}else s===S1&&i.push(u);return n.includes(u)},Cd(o)),i}function x1(e,t,n){const r=Pe(t),a=[];return fN(e,(o,i)=>{const s=r.indexOf(o);return s!==-1&&(a.push(i),r.splice(s,1)),!!r.length},Cd(n)),a}var aD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:a}=e,o=aD(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const i=l.useRef(),s=l.useRef(),c=()=>{const{keyEntities:T}=ey(oD(o));let R;return n?R=Object.keys(T):r?R=HR(o.expandedKeys||a||[],T):R=o.expandedKeys||a||[],R},[u,d]=l.useState(o.selectedKeys||o.defaultSelectedKeys||[]),[f,p]=l.useState(()=>c());l.useEffect(()=>{"selectedKeys"in o&&d(o.selectedKeys)},[o.selectedKeys]),l.useEffect(()=>{"expandedKeys"in o&&p(o.expandedKeys)},[o.expandedKeys]);const g=(T,R)=>{var _;return"expandedKeys"in o||p(T),(_=o.onExpand)===null||_===void 0?void 0:_.call(o,T,R)},h=(T,R)=>{var _;const{multiple:$,fieldNames:P}=o,{node:D,nativeEvent:A}=R,{key:O=""}=D,N=oD(o),k=Object.assign(Object.assign({},R),{selected:!0}),M=(A==null?void 0:A.ctrlKey)||(A==null?void 0:A.metaKey),L=A==null?void 0:A.shiftKey;let F;$&&M?(F=T,i.current=O,s.current=F,k.selectedNodes=x1(N,F,P)):$&&L?(F=Array.from(new Set([].concat(Pe(s.current||[]),Pe(kIe({treeData:N,expandedKeys:f,startKey:O,endKey:i.current,fieldNames:P}))))),k.selectedNodes=x1(N,F,P)):(F=[O],i.current=O,s.current=F,k.selectedNodes=x1(N,F,P)),(_=o.onSelect)===null||_===void 0||_.call(o,F,k),"selectedKeys"in o||d(F)},{getPrefixCls:b,direction:y}=l.useContext(st),{prefixCls:S,className:v,showIcon:x=!0,expandAction:w="click"}=o,C=aD(o,["prefixCls","className","showIcon","expandAction"]),E=b("tree",S),I=ne(`${E}-directory`,{[`${E}-directory-rtl`]:y==="rtl"},v);return l.createElement(zq,Object.assign({icon:AIe,ref:t,blockNode:!0},C,{showIcon:x,expandAction:w,prefixCls:E,className:I,expandedKeys:f,selectedKeys:u,onSelect:h,onExpand:g}))},PIe=l.forwardRef(MIe),pN=zq;pN.DirectoryTree=PIe;pN.TreeNode=Id;const iD=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:a,onChange:o}=e;return n?l.createElement("div",{className:`${r}-filter-dropdown-search`},l.createElement(Jt,{prefix:l.createElement(om,null),placeholder:a.filterSearchPlaceholder,onChange:o,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},DIe=e=>{const{keyCode:t}=e;t===Le.ENTER&&e.stopPropagation()},LIe=l.forwardRef((e,t)=>l.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:DIe,ref:t},e.children));function rd(e){let t=[];return(e||[]).forEach(n=>{let{value:r,children:a}=n;t.push(r),a&&(t=[].concat(Pe(t),Pe(rd(a))))}),t}function FIe(e){return e.some(t=>{let{children:n}=t;return n})}function Hq(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function Uq(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:a,searchValue:o,filterSearch:i}=e;return t.map((s,c)=>{const u=String(s.value);if(s.children)return{key:u||c,label:s.text,popupClassName:`${n}-dropdown-submenu`,children:Uq({filters:s.children,prefixCls:n,filteredKeys:r,filterMultiple:a,searchValue:o,filterSearch:i})};const d=a?_s:ho,f={key:s.value!==void 0?u:c,label:l.createElement(l.Fragment,null,l.createElement(d,{checked:r.includes(u)}),l.createElement("span",null,s.text))};return o.trim()?typeof i=="function"?i(o,s)?f:null:Hq(o,s.text)?f:null:f})}function w1(e){return e||[]}const jIe=e=>{var t,n;const{tablePrefixCls:r,prefixCls:a,column:o,dropdownPrefixCls:i,columnKey:s,filterOnClose:c,filterMultiple:u,filterMode:d="menu",filterSearch:f=!1,filterState:p,triggerFilter:g,locale:h,children:b,getPopupContainer:y,rootClassName:S}=e,{filterDropdownOpen:v,onFilterDropdownOpenChange:x,filterResetToDefaultFilteredValue:w,defaultFilteredValue:C,filterDropdownVisible:E,onFilterDropdownVisibleChange:I}=o,[T,R]=l.useState(!1),_=!!(p&&(!((t=p.filteredKeys)===null||t===void 0)&&t.length||p.forceFiltered)),$=ce=>{R(ce),x==null||x(ce),I==null||I(ce)},P=(n=v??E)!==null&&n!==void 0?n:T,D=p==null?void 0:p.filteredKeys,[A,O]=gIe(w1(D)),N=ce=>{let{selectedKeys:Ie}=ce;O(Ie)},k=(ce,Ie)=>{let{node:be,checked:he}=Ie;N(u?{selectedKeys:ce}:{selectedKeys:he&&be.key?[be.key]:[]})};l.useEffect(()=>{T&&N({selectedKeys:w1(D)})},[D]);const[M,L]=l.useState([]),F=ce=>{L(ce)},[j,B]=l.useState(""),z=ce=>{const{value:Ie}=ce.target;B(Ie)};l.useEffect(()=>{T||B("")},[T]);const H=ce=>{const Ie=ce!=null&&ce.length?ce:null;if(Ie===null&&(!p||!p.filteredKeys)||Ho(Ie,p==null?void 0:p.filteredKeys,!0))return null;g({column:o,key:s,filteredKeys:Ie})},V=()=>{$(!1),H(A())},te=function(){let{confirm:ce,closeDropdown:Ie}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};ce&&H([]),Ie&&$(!1),B(""),O(w?(C||[]).map(be=>String(be)):[])},Y=function(){let{closeDropdown:ce}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};ce&&$(!1),H(A())},J=(ce,Ie)=>{Ie.source==="trigger"&&(ce&&D!==void 0&&O(w1(D)),$(ce),!ce&&!o.filterDropdown&&c&&V())},G=ne({[`${i}-menu-without-submenu`]:!FIe(o.filters||[])}),U=ce=>{if(ce.target.checked){const Ie=rd(o==null?void 0:o.filters).map(be=>String(be));O(Ie)}else O([])},q=ce=>{let{filters:Ie}=ce;return(Ie||[]).map((be,he)=>{const ae=String(be.value),ie={title:be.text,key:be.value!==void 0?ae:String(he)};return be.children&&(ie.children=q({filters:be.children})),ie})},X=ce=>{var Ie;return Object.assign(Object.assign({},ce),{text:ce.title,value:ce.key,children:((Ie=ce.children)===null||Ie===void 0?void 0:Ie.map(be=>X(be)))||[]})};let Q;const{direction:ee,renderEmpty:oe}=l.useContext(st);if(typeof o.filterDropdown=="function")Q=o.filterDropdown({prefixCls:`${i}-custom`,setSelectedKeys:ce=>N({selectedKeys:ce}),selectedKeys:A(),confirm:Y,clearFilters:te,filters:o.filters,visible:P,close:()=>{$(!1)}});else if(o.filterDropdown)Q=o.filterDropdown;else{const ce=A()||[],Ie=()=>{var he;const ae=(he=oe==null?void 0:oe("Table.filter"))!==null&&he!==void 0?he:l.createElement(ds,{image:ds.PRESENTED_IMAGE_SIMPLE,description:h.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}});if((o.filters||[]).length===0)return ae;if(d==="tree")return l.createElement(l.Fragment,null,l.createElement(iD,{filterSearch:f,value:j,onChange:z,tablePrefixCls:r,locale:h}),l.createElement("div",{className:`${r}-filter-dropdown-tree`},u?l.createElement(_s,{checked:ce.length===rd(o.filters).length,indeterminate:ce.length>0&&ce.lengthtypeof f=="function"?f(j,X(xe)):Hq(j,xe.title):void 0})));const ie=Uq({filters:o.filters||[],filterSearch:f,prefixCls:a,filteredKeys:A(),filterMultiple:u,searchValue:j}),ue=ie.every(xe=>xe===null);return l.createElement(l.Fragment,null,l.createElement(iD,{filterSearch:f,value:j,onChange:z,tablePrefixCls:r,locale:h}),ue?ae:l.createElement(Gi,{selectable:!0,multiple:u,prefixCls:`${i}-menu`,className:G,onSelect:N,onDeselect:N,selectedKeys:ce,getPopupContainer:y,openKeys:M,onOpenChange:F,items:ie}))},be=()=>w?Ho((C||[]).map(he=>String(he)),ce,!0):ce.length===0;Q=l.createElement(l.Fragment,null,Ie(),l.createElement("div",{className:`${a}-dropdown-btns`},l.createElement(ct,{type:"link",size:"small",disabled:be(),onClick:()=>te()},h.filterReset),l.createElement(ct,{type:"primary",size:"small",onClick:V},h.filterConfirm)))}o.filterDropdown&&(Q=l.createElement(VV,{selectable:void 0},Q));const le=()=>l.createElement(LIe,{className:`${a}-dropdown`},Q);let fe;return typeof o.filterIcon=="function"?fe=o.filterIcon(_):o.filterIcon?fe=o.filterIcon:fe=l.createElement(Yxe,null),l.createElement("div",{className:`${a}-column`},l.createElement("span",{className:`${r}-column-title`},b),l.createElement(ry,{dropdownRender:le,trigger:["click"],open:P,onOpenChange:J,getPopupContainer:y,placement:ee==="rtl"?"bottomLeft":"bottomRight",rootClassName:S},l.createElement("span",{role:"button",tabIndex:-1,className:ne(`${a}-trigger`,{active:_}),onClick:ce=>{ce.stopPropagation()}},fe)))},qR=(e,t,n)=>{let r=[];return(e||[]).forEach((a,o)=>{var i;const s=rf(o,n);if(a.filters||"filterDropdown"in a||"onFilter"in a)if("filteredValue"in a){let c=a.filteredValue;"filterDropdown"in a||(c=(i=c==null?void 0:c.map(String))!==null&&i!==void 0?i:c),r.push({column:a,key:wl(a,s),filteredKeys:c,forceFiltered:a.filtered})}else r.push({column:a,key:wl(a,s),filteredKeys:t&&a.defaultFilteredValue?a.defaultFilteredValue:void 0,forceFiltered:a.filtered});"children"in a&&(r=[].concat(Pe(r),Pe(qR(a.children,t,s))))}),r};function Vq(e,t,n,r,a,o,i,s,c){return n.map((u,d)=>{const f=rf(d,s),{filterOnClose:p=!0,filterMultiple:g=!0,filterMode:h,filterSearch:b}=u;let y=u;if(y.filters||y.filterDropdown){const S=wl(y,f),v=r.find(x=>{let{key:w}=x;return S===w});y=Object.assign(Object.assign({},y),{title:x=>l.createElement(jIe,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:y,columnKey:S,filterState:v,filterOnClose:p,filterMultiple:g,filterMode:h,filterSearch:b,triggerFilter:o,locale:a,getPopupContainer:i,rootClassName:c},uy(u.title,x))})}return"children"in y&&(y=Object.assign(Object.assign({},y),{children:Vq(e,t,y.children,r,a,o,i,f,c)})),y})}const sD=e=>{const t={};return e.forEach(n=>{let{key:r,filteredKeys:a,column:o}=n;const i=r,{filters:s,filterDropdown:c}=o;if(c)t[i]=a||null;else if(Array.isArray(a)){const u=rd(s);t[i]=u.filter(d=>a.includes(String(d)))}else t[i]=null}),t},KR=(e,t,n)=>t.reduce((a,o)=>{const{column:{onFilter:i,filters:s},filteredKeys:c}=o;return i&&c&&c.length?a.map(u=>Object.assign({},u)).filter(u=>c.some(d=>{const f=rd(s),p=f.findIndex(h=>String(h)===String(d)),g=p!==-1?f[p]:d;return u[n]&&(u[n]=KR(u[n],t,n)),i(g,u)})):a},e),Wq=e=>e.flatMap(t=>"children"in t?[t].concat(Pe(Wq(t.children||[]))):[t]),BIe=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:a,getPopupContainer:o,locale:i,rootClassName:s}=e;$l();const c=l.useMemo(()=>Wq(r||[]),[r]),[u,d]=l.useState(()=>qR(c,!0)),f=l.useMemo(()=>{const b=qR(c,!1);if(b.length===0)return b;let y=!0;if(b.forEach(S=>{let{filteredKeys:v}=S;v!==void 0&&(y=!1)}),y){const S=(c||[]).map((v,x)=>wl(v,rf(x)));return u.filter(v=>{let{key:x}=v;return S.includes(x)}).map(v=>{const x=c[S.findIndex(w=>w===v.key)];return Object.assign(Object.assign({},v),{column:Object.assign(Object.assign({},v.column),x),forceFiltered:x.filtered})})}return b},[c,u]),p=l.useMemo(()=>sD(f),[f]),g=b=>{const y=f.filter(S=>{let{key:v}=S;return v!==b.key});y.push(b),d(y),a(sD(y),y)};return[b=>Vq(t,n,b,f,i,g,o,void 0,s),f,p]},zIe=(e,t,n)=>{const r=l.useRef({});function a(o){var i;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let u=function(d){d.forEach((f,p)=>{const g=n(f,p);c.set(g,f),f&&typeof f=="object"&&t in f&&u(f[t]||[])})};var s=u;const c=new Map;u(e),r.current={data:e,childrenColumnName:t,kvMap:c,getRowKey:n}}return(i=r.current.kvMap)===null||i===void 0?void 0:i.get(o)}return[a]};var HIe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const o=e[a];typeof o!="function"&&(n[a]=o)}),n}function VIe(e,t,n){const r=n&&typeof n=="object"?n:{},{total:a=0}=r,o=HIe(r,["total"]),[i,s]=l.useState(()=>({current:"defaultCurrent"in o?o.defaultCurrent:1,pageSize:"defaultPageSize"in o?o.defaultPageSize:Gq})),c=XG(i,o,{total:a>0?a:e}),u=Math.ceil((a||e)/c.pageSize);c.current>u&&(c.current=u||1);const d=(p,g)=>{s({current:p??1,pageSize:g||c.pageSize})},f=(p,g)=>{var h;n&&((h=n.onChange)===null||h===void 0||h.call(n,p,g)),d(p,g),t(p,g||(c==null?void 0:c.pageSize))};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},c),{onChange:f}),d]}const vv="ascend",C1="descend",Ib=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1,lD=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1,WIe=(e,t)=>t?e[e.indexOf(t)+1]:e[0],YR=(e,t,n)=>{let r=[];const a=(o,i)=>{r.push({column:o,key:wl(o,i),multiplePriority:Ib(o),sortOrder:o.sortOrder})};return(e||[]).forEach((o,i)=>{const s=rf(i,n);o.children?("sortOrder"in o&&a(o,s),r=[].concat(Pe(r),Pe(YR(o.children,t,s)))):o.sorter&&("sortOrder"in o?a(o,s):t&&o.defaultSortOrder&&r.push({column:o,key:wl(o,s),multiplePriority:Ib(o),sortOrder:o.defaultSortOrder}))}),r},qq=(e,t,n,r,a,o,i,s)=>(t||[]).map((u,d)=>{const f=rf(d,s);let p=u;if(p.sorter){const g=p.sortDirections||a,h=p.showSorterTooltip===void 0?i:p.showSorterTooltip,b=wl(p,f),y=n.find(R=>{let{key:_}=R;return _===b}),S=y?y.sortOrder:null,v=WIe(g,S);let x;if(u.sortIcon)x=u.sortIcon({sortOrder:S});else{const R=g.includes(vv)&&l.createElement(Z1e,{className:ne(`${e}-column-sorter-up`,{active:S===vv})}),_=g.includes(C1)&&l.createElement(K1e,{className:ne(`${e}-column-sorter-down`,{active:S===C1})});x=l.createElement("span",{className:ne(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(R&&_)})},l.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},R,_))}const{cancelSort:w,triggerAsc:C,triggerDesc:E}=o||{};let I=w;v===C1?I=E:v===vv&&(I=C);const T=typeof h=="object"?Object.assign({title:I},h):{title:I};p=Object.assign(Object.assign({},p),{className:ne(p.className,{[`${e}-column-sort`]:S}),title:R=>{const _=`${e}-column-sorters`,$=l.createElement("span",{className:`${e}-column-title`},uy(u.title,R)),P=l.createElement("div",{className:_},$,x);return h?typeof h!="boolean"&&(h==null?void 0:h.target)==="sorter-icon"?l.createElement("div",{className:`${_} ${e}-column-sorters-tooltip-target-sorter`},$,l.createElement(Zt,Object.assign({},T),x)):l.createElement(Zt,Object.assign({},T),P):P},onHeaderCell:R=>{var _;const $=((_=u.onHeaderCell)===null||_===void 0?void 0:_.call(u,R))||{},P=$.onClick,D=$.onKeyDown;$.onClick=N=>{r({column:u,key:b,sortOrder:v,multiplePriority:Ib(u)}),P==null||P(N)},$.onKeyDown=N=>{N.keyCode===Le.ENTER&&(r({column:u,key:b,sortOrder:v,multiplePriority:Ib(u)}),D==null||D(N))};const A=pIe(u.title,{}),O=A==null?void 0:A.toString();return S?$["aria-sort"]=S==="ascend"?"ascending":"descending":$["aria-label"]=O||"",$.className=ne($.className,`${e}-column-has-sorters`),$.tabIndex=0,u.ellipsis&&($.title=(A??"").toString()),$}})}return"children"in p&&(p=Object.assign(Object.assign({},p),{children:qq(e,p.children,n,r,a,o,i,f)})),p}),cD=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},uD=e=>{const t=e.filter(n=>{let{sortOrder:r}=n;return r}).map(cD);if(t.length===0&&e.length){const n=e.length-1;return Object.assign(Object.assign({},cD(e[n])),{column:void 0})}return t.length<=1?t[0]||{}:t},XR=(e,t,n)=>{const r=t.slice().sort((i,s)=>s.multiplePriority-i.multiplePriority),a=e.slice(),o=r.filter(i=>{let{column:{sorter:s},sortOrder:c}=i;return lD(s)&&c});return o.length?a.sort((i,s)=>{for(let c=0;c{const s=i[n];return s?Object.assign(Object.assign({},i),{[n]:XR(s,t,n)}):i}):a},GIe=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:a,showSorterTooltip:o,onSorterChange:i}=e,[s,c]=l.useState(YR(n,!0)),u=(b,y)=>{const S=[];return b.forEach((v,x)=>{const w=rf(x,y);if(S.push(wl(v,w)),Array.isArray(v.children)){const C=u(v.children,w);S.push.apply(S,Pe(C))}}),S},d=l.useMemo(()=>{let b=!0;const y=YR(n,!1);if(!y.length){const w=u(n);return s.filter(C=>{let{key:E}=C;return w.includes(E)})}const S=[];function v(w){b?S.push(w):S.push(Object.assign(Object.assign({},w),{sortOrder:null}))}let x=null;return y.forEach(w=>{x===null?(v(w),w.sortOrder&&(w.multiplePriority===!1?b=!1:x=!0)):(x&&w.multiplePriority!==!1||(b=!1),v(w))}),S},[n,s]),f=l.useMemo(()=>{var b,y;const S=d.map(v=>{let{column:x,sortOrder:w}=v;return{column:x,order:w}});return{sortColumns:S,sortColumn:(b=S[0])===null||b===void 0?void 0:b.column,sortOrder:(y=S[0])===null||y===void 0?void 0:y.order}},[d]),p=b=>{let y;b.multiplePriority===!1||!d.length||d[0].multiplePriority===!1?y=[b]:y=[].concat(Pe(d.filter(S=>{let{key:v}=S;return v!==b.key})),[b]),c(y),i(uD(y),y)};return[b=>qq(t,b,d,p,r,a,o),d,f,()=>uD(d)]},Kq=(e,t)=>e.map(r=>{const a=Object.assign({},r);return a.title=uy(r.title,t),"children"in a&&(a.children=Kq(a.children,t)),a}),qIe=e=>[l.useCallback(n=>Kq(n,e),[e])],KIe=Oq((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),YIe=kq((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),XIe=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:a,tableHeaderBg:o,tablePaddingVertical:i,tablePaddingHorizontal:s,calc:c}=e,u=`${K(n)} ${r} ${a}`,d=(f,p,g)=>({[`&${t}-${f}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${K(c(p).mul(-1).equal())} ${K(c(c(g).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:u,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:u,borderTop:u,[` > ${t}-content, > ${t}-header, @@ -396,10 +396,10 @@ html body { `]:{"> 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:u},"> thead":{"> tr:not(:last-child) > th":{borderBottom:u},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:u}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${K(c(i).mul(-1).equal())} ${K(c(c(s).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:u,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[` > tr${t}-expanded-row, > tr${t}-placeholder - `]:{"> th, > td":{borderInlineEnd:0}}}}}},d("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),d("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:u,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${K(n)} 0 ${K(n)} ${o}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:u}}}},ZIe=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},xo),{wordBreak:"keep-all",[` + `]:{"> th, > td":{borderInlineEnd:0}}}}}},d("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),d("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:u,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${K(n)} 0 ${K(n)} ${o}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:u}}}},ZIe=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},wo),{wordBreak:"keep-all",[` &${t}-cell-fix-left-last, &${t}-cell-fix-right-first - `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},QIe=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},JIe=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:a,paddingXS:o,lineType:i,tableBorderColor:s,tableExpandIconBg:c,tableExpandColumnWidth:u,borderRadius:d,tablePaddingVertical:f,tablePaddingHorizontal:p,tableExpandedRowBg:g,paddingXXS:h,expandIconMarginTop:b,expandIconSize:y,expandIconHalfInner:S,expandIconScale:v,calc:x}=e,C=`${K(a)} ${i} ${s}`,w=x(h).sub(a).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:u},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},V$(e)),{position:"relative",float:"left",boxSizing:"border-box",width:y,height:y,padding:0,color:"inherit",lineHeight:K(y),background:c,border:C,borderRadius:d,transform:`scale(${v})`,transition:`all ${r}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:S,insetInlineEnd:w,insetInlineStart:w,height:a},"&::after":{top:w,bottom:w,insetInlineStart:S,width:a,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"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:b,marginInlineEnd:o},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:g}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${K(x(f).mul(-1).equal())} ${K(x(p).mul(-1).equal())}`,padding:`${K(f)} ${K(p)}`}}}},eTe=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:a,tableFilterDropdownSearchWidth:o,paddingXXS:i,paddingXS:s,colorText:c,lineWidth:u,lineType:d,tableBorderColor:f,headerIconColor:p,fontSizeSM:g,tablePaddingHorizontal:h,borderRadius:b,motionDurationSlow:y,colorTextDescription:S,colorPrimary:v,tableHeaderFilterActiveBg:x,colorTextDisabled:C,tableFilterDropdownBg:w,tableFilterDropdownHeight:E,controlItemBgHover:I,controlItemBgActive:T,boxShadowSecondary:R,filterDropdownMenuBg:_,calc:$}=e,P=`${n}-dropdown`,D=`${t}-filter-dropdown`,A=`${n}-tree`,O=`${K(u)} ${d} ${f}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:$(i).mul(-1).equal(),marginInline:`${K(i)} ${K($(h).div(2).mul(-1).equal())}`,padding:`0 ${K(i)}`,color:p,fontSize:g,borderRadius:b,cursor:"pointer",transition:`all ${y}`,"&:hover":{color:S,background:x},"&.active":{color:v}}}},{[`${n}-dropdown`]:{[D]:Object.assign(Object.assign({},nn(e)),{minWidth:a,backgroundColor:w,borderRadius:b,boxShadow:R,overflow:"hidden",[`${P}-menu`]:{maxHeight:E,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:_,"&:empty::after":{display:"block",padding:`${K(s)} 0`,color:C,fontSize:g,textAlign:"center",content:'"Not Found"'}},[`${D}-tree`]:{paddingBlock:`${K(s)} 0`,paddingInline:s,[A]:{padding:0},[`${A}-treenode ${A}-node-content-wrapper:hover`]:{backgroundColor:I},[`${A}-treenode-checkbox-checked ${A}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:T}}},[`${D}-search`]:{padding:s,borderBottom:O,"&-input":{input:{minWidth:o},[r]:{color:C}}},[`${D}-checkall`]:{width:"100%",marginBottom:i,marginInlineStart:i},[`${D}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${K($(s).sub(u).equal())} ${K(s)}`,overflow:"hidden",borderTop:O}})}},{[`${n}-dropdown ${D}, ${D}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:c},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},tTe=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:a,zIndexTableFixed:o,tableBg:i,zIndexTableSticky:s,calc:c}=e,u=r;return{[`${t}-wrapper`]:{[` + `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},QIe=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},JIe=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:a,paddingXS:o,lineType:i,tableBorderColor:s,tableExpandIconBg:c,tableExpandColumnWidth:u,borderRadius:d,tablePaddingVertical:f,tablePaddingHorizontal:p,tableExpandedRowBg:g,paddingXXS:h,expandIconMarginTop:b,expandIconSize:y,expandIconHalfInner:S,expandIconScale:v,calc:x}=e,w=`${K(a)} ${i} ${s}`,C=x(h).sub(a).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:u},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},W$(e)),{position:"relative",float:"left",boxSizing:"border-box",width:y,height:y,padding:0,color:"inherit",lineHeight:K(y),background:c,border:w,borderRadius:d,transform:`scale(${v})`,transition:`all ${r}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:S,insetInlineEnd:C,insetInlineStart:C,height:a},"&::after":{top:C,bottom:C,insetInlineStart:S,width:a,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"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:b,marginInlineEnd:o},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:g}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${K(x(f).mul(-1).equal())} ${K(x(p).mul(-1).equal())}`,padding:`${K(f)} ${K(p)}`}}}},eTe=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:a,tableFilterDropdownSearchWidth:o,paddingXXS:i,paddingXS:s,colorText:c,lineWidth:u,lineType:d,tableBorderColor:f,headerIconColor:p,fontSizeSM:g,tablePaddingHorizontal:h,borderRadius:b,motionDurationSlow:y,colorTextDescription:S,colorPrimary:v,tableHeaderFilterActiveBg:x,colorTextDisabled:w,tableFilterDropdownBg:C,tableFilterDropdownHeight:E,controlItemBgHover:I,controlItemBgActive:T,boxShadowSecondary:R,filterDropdownMenuBg:_,calc:$}=e,P=`${n}-dropdown`,D=`${t}-filter-dropdown`,A=`${n}-tree`,O=`${K(u)} ${d} ${f}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:$(i).mul(-1).equal(),marginInline:`${K(i)} ${K($(h).div(2).mul(-1).equal())}`,padding:`0 ${K(i)}`,color:p,fontSize:g,borderRadius:b,cursor:"pointer",transition:`all ${y}`,"&:hover":{color:S,background:x},"&.active":{color:v}}}},{[`${n}-dropdown`]:{[D]:Object.assign(Object.assign({},nn(e)),{minWidth:a,backgroundColor:C,borderRadius:b,boxShadow:R,overflow:"hidden",[`${P}-menu`]:{maxHeight:E,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:_,"&:empty::after":{display:"block",padding:`${K(s)} 0`,color:w,fontSize:g,textAlign:"center",content:'"Not Found"'}},[`${D}-tree`]:{paddingBlock:`${K(s)} 0`,paddingInline:s,[A]:{padding:0},[`${A}-treenode ${A}-node-content-wrapper:hover`]:{backgroundColor:I},[`${A}-treenode-checkbox-checked ${A}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:T}}},[`${D}-search`]:{padding:s,borderBottom:O,"&-input":{input:{minWidth:o},[r]:{color:w}}},[`${D}-checkall`]:{width:"100%",marginBottom:i,marginInlineStart:i},[`${D}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${K($(s).sub(u).equal())} ${K(s)}`,overflow:"hidden",borderTop:O}})}},{[`${n}-dropdown ${D}, ${D}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:c},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},tTe=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:a,zIndexTableFixed:o,tableBg:i,zIndexTableSticky:s,calc:c}=e,u=r;return{[`${t}-wrapper`]:{[` ${t}-cell-fix-left, ${t}-cell-fix-right `]:{position:"sticky !important",zIndex:o,background:i},[` @@ -438,7 +438,7 @@ html body { `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:a,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:o}}}},lTe=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:a,tableScrollThumbSize:o,tableScrollBg:i,zIndexTableSticky:s,stickyScrollBarBorderRadius:c,lineWidth:u,lineType:d,tableBorderColor:f}=e,p=`${K(u)} ${d} ${f}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:s,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${K(o)} !important`,zIndex:s,display:"flex",alignItems:"center",background:i,borderTop:p,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:o,backgroundColor:r,borderRadius:c,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:a}}}}}}},dD=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:a}=e,o=`${K(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:o}}},[`div${t}-summary`]:{boxShadow:`0 ${K(a(n).mul(-1).equal())} 0 ${r}`}}}},cTe=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:a,tableBorderColor:o,calc:i}=e,s=`${K(r)} ${a} ${o}`,c=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[` & > ${t}-row, & > div:not(${t}-row) > ${t}-row - `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:s,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${K(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:s,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:s,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:i(r).mul(-1).equal(),borderInlineStart:s}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:s,borderBottom:s}}}}}},uTe=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:a,tableExpandColumnWidth:o,lineWidth:i,lineType:s,tableBorderColor:c,tableFontSize:u,tableBg:d,tableRadius:f,tableHeaderTextColor:p,motionDurationMid:g,tableHeaderBg:h,tableHeaderCellSplitColor:b,tableFooterTextColor:y,tableFooterBg:S,calc:v}=e,x=`${K(i)} ${s} ${c}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},mi()),{[t]:Object.assign(Object.assign({},nn(e)),{fontSize:u,background:d,borderRadius:`${K(f)} ${K(f)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${K(f)} ${K(f)} 0 0`,borderCollapse:"separate",borderSpacing:0},[` + `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:s,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${K(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:s,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:s,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:i(r).mul(-1).equal(),borderInlineStart:s}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:s,borderBottom:s}}}}}},uTe=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:a,tableExpandColumnWidth:o,lineWidth:i,lineType:s,tableBorderColor:c,tableFontSize:u,tableBg:d,tableRadius:f,tableHeaderTextColor:p,motionDurationMid:g,tableHeaderBg:h,tableHeaderCellSplitColor:b,tableFooterTextColor:y,tableFooterBg:S,calc:v}=e,x=`${K(i)} ${s} ${c}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},hi()),{[t]:Object.assign(Object.assign({},nn(e)),{fontSize:u,background:d,borderRadius:`${K(f)} ${K(f)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${K(f)} ${K(f)} 0 0`,borderCollapse:"separate",borderSpacing:0},[` ${t}-cell, ${t}-thead > tr > th, ${t}-tbody > tr > th, @@ -449,7 +449,7 @@ html body { > ${t}-wrapper:only-child, > ${t}-expanded-row-fixed > ${t}-wrapper:only-child `]:{[t]:{marginBlock:K(v(r).mul(-1).equal()),marginInline:`${K(v(o).sub(a).equal())} - ${K(v(a).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:p,fontWeight:n,textAlign:"start",background:h,borderBottom:x,transition:`background ${g} ease`}}},[`${t}-footer`]:{padding:`${K(r)} ${K(a)}`,color:y,background:S}})}},dTe=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:a,colorFillContent:o,controlItemBgActive:i,controlItemBgActiveHover:s,padding:c,paddingSM:u,paddingXS:d,colorBorderSecondary:f,borderRadiusLG:p,controlHeight:g,colorTextPlaceholder:h,fontSize:b,fontSizeSM:y,lineHeight:S,lineWidth:v,colorIcon:x,colorIconHover:C,opacityLoading:w,controlInteractiveSize:E}=e,I=new an(a).onBackground(n).toHexShortString(),T=new an(o).onBackground(n).toHexShortString(),R=new an(t).onBackground(n).toHexShortString(),_=new an(x),$=new an(C),P=E/2-v,D=P*2+v*3;return{headerBg:R,headerColor:r,headerSortActiveBg:I,headerSortHoverBg:T,bodySortBg:R,rowHoverBg:R,rowSelectedBg:i,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:u,cellPaddingInlineMD:d,cellPaddingBlockSM:d,cellPaddingInlineSM:d,borderColor:f,headerBorderRadius:p,footerBg:R,footerColor:r,cellFontSize:b,cellFontSizeMD:b,cellFontSizeSM:b,headerSplitColor:f,fixedHeaderSortActiveBg:I,headerFilterHoverBg:o,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:g,stickyScrollBarBg:h,stickyScrollBarBorderRadius:100,expandIconMarginTop:(b*S-v*3)/2-Math.ceil((y*1.4-v*3)/2),headerIconColor:_.clone().setAlpha(_.getAlpha()*w).toRgbString(),headerIconHoverColor:$.clone().setAlpha($.getAlpha()*w).toRgbString(),expandIconHalfInner:P,expandIconSize:D,expandIconScale:E/D}},fD=2,fTe=on("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:a,headerBg:o,headerColor:i,headerSortActiveBg:s,headerSortHoverBg:c,bodySortBg:u,rowHoverBg:d,rowSelectedBg:f,rowSelectedHoverBg:p,rowExpandedBg:g,cellPaddingBlock:h,cellPaddingInline:b,cellPaddingBlockMD:y,cellPaddingInlineMD:S,cellPaddingBlockSM:v,cellPaddingInlineSM:x,borderColor:C,footerBg:w,footerColor:E,headerBorderRadius:I,cellFontSize:T,cellFontSizeMD:R,cellFontSizeSM:_,headerSplitColor:$,fixedHeaderSortActiveBg:P,headerFilterHoverBg:D,filterDropdownBg:A,expandIconBg:O,selectionColumnWidth:N,stickyScrollBarBg:k,calc:M}=e,L=zt(e,{tableFontSize:T,tableBg:r,tableRadius:I,tablePaddingVertical:h,tablePaddingHorizontal:b,tablePaddingVerticalMiddle:y,tablePaddingHorizontalMiddle:S,tablePaddingVerticalSmall:v,tablePaddingHorizontalSmall:x,tableBorderColor:C,tableHeaderTextColor:i,tableHeaderBg:o,tableFooterTextColor:E,tableFooterBg:w,tableHeaderCellSplitColor:$,tableHeaderSortBg:s,tableHeaderSortHoverBg:c,tableBodySortBg:u,tableFixedHeaderSortActiveBg:P,tableHeaderFilterActiveBg:D,tableFilterDropdownBg:A,tableRowHoverBg:d,tableSelectedRowBg:f,tableSelectedRowHoverBg:p,zIndexTableFixed:fD,zIndexTableSticky:M(fD).add(1).equal({unit:!1}),tableFontSizeMiddle:R,tableFontSizeSmall:_,tableSelectionColumnWidth:N,tableExpandIconBg:O,tableExpandColumnWidth:M(a).add(M(e.padding).mul(2)).equal(),tableExpandedRowBg:g,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:k,tableScrollThumbBgHover:t,tableScrollBg:n});return[uTe(L),nTe(L),dD(L),sTe(L),eTe(L),XIe(L),rTe(L),JIe(L),dD(L),QIe(L),oTe(L),tTe(L),lTe(L),ZIe(L),iTe(L),aTe(L),cTe(L)]},dTe,{unitless:{expandIconScale:!0}}),pTe=[],gTe=(e,t)=>{var n,r;const{prefixCls:a,className:o,rootClassName:i,style:s,size:c,bordered:u,dropdownPrefixCls:d,dataSource:f,pagination:p,rowSelection:g,rowKey:h="key",rowClassName:b,columns:y,children:S,childrenColumnName:v,onChange:x,getPopupContainer:C,loading:w,expandIcon:E,expandable:I,expandedRowRender:T,expandIconColumnIndex:R,indentSize:_,scroll:$,sortDirections:P,locale:D,showSorterTooltip:A={target:"full-header"},virtual:O}=e;$l();const N=l.useMemo(()=>y||sN(S),[y,S]),k=l.useMemo(()=>N.some(vt=>vt.responsive),[N]),M=L0(k),L=l.useMemo(()=>{const vt=new Set(Object.keys(M).filter(lt=>M[lt]));return N.filter(lt=>!lt.responsive||lt.responsive.some(ot=>vt.has(ot)))},[N,M]),F=On(e,["className","style","columns"]),{locale:j=Uo,direction:B,table:z,renderEmpty:H,getPrefixCls:V,getPopupContainer:te}=l.useContext(st),Y=Er(c),J=Object.assign(Object.assign({},j.Table),D),G=f||pTe,U=V("table",a),q=V("dropdown",d),[,X]=ta(),Q=Un(U),[ee,oe,le]=fTe(U,Q),fe=Object.assign(Object.assign({childrenColumnName:v,expandIconColumnIndex:R},I),{expandIcon:(n=I==null?void 0:I.expandIcon)!==null&&n!==void 0?n:(r=z==null?void 0:z.expandable)===null||r===void 0?void 0:r.expandIcon}),{childrenColumnName:ce="children"}=fe,Te=l.useMemo(()=>G.some(vt=>vt==null?void 0:vt[ce])?"nest":T||I!=null&&I.expandedRowRender?"row":null,[G]),Se={body:l.useRef()},ve=fIe(U),ae=l.useRef(null),ie=l.useRef(null);uIe(t,()=>Object.assign(Object.assign({},ie.current),{nativeElement:ae.current}));const ue=l.useMemo(()=>typeof h=="function"?h:vt=>vt==null?void 0:vt[h],[h]),[ye]=zIe(G,ce,ue),Ee={},Me=function(vt,lt){let ot=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var et,bt,rt,St;const Et=Object.assign(Object.assign({},Ee),vt);ot&&((et=Ee.resetPagination)===null||et===void 0||et.call(Ee),!((bt=Et.pagination)===null||bt===void 0)&&bt.current&&(Et.pagination.current=1),p&&((rt=p.onChange)===null||rt===void 0||rt.call(p,1,(St=Et.pagination)===null||St===void 0?void 0:St.pageSize))),$&&$.scrollToFirstRowOnChange!==!1&&Se.body.current&&Koe(0,{getContainer:()=>Se.body.current}),x==null||x(Et.pagination,Et.filters,Et.sorter,{currentDataSource:qR(YR(G,Et.sorterStates,ce),Et.filterStates,ce),action:lt})},Ie=(vt,lt)=>{Me({sorter:vt,sorterStates:lt},"sort",!1)},[Ce,me,we,_e]=GIe({prefixCls:U,mergedColumns:L,onSorterChange:Ie,sortDirections:P||["ascend","descend"],tableLocale:J,showSorterTooltip:A}),Ne=l.useMemo(()=>YR(G,me,ce),[G,me]);Ee.sorter=_e(),Ee.sorterStates=me;const he=(vt,lt)=>{Me({filters:vt,filterStates:lt},"filter",!0)},[ke,xe,ge]=BIe({prefixCls:U,locale:J,dropdownPrefixCls:q,mergedColumns:L,onFilterChange:he,getPopupContainer:C||te,rootClassName:ne(i,Q)}),Pe=qR(Ne,xe,ce);Ee.filters=ge,Ee.filterStates=xe;const Ve=l.useMemo(()=>{const vt={};return Object.keys(ge).forEach(lt=>{ge[lt]!==null&&(vt[lt]=ge[lt])}),Object.assign(Object.assign({},we),{filters:vt})},[we,ge]),[Ae]=qIe(Ve),be=(vt,lt)=>{Me({pagination:Object.assign(Object.assign({},Ee.pagination),{current:vt,pageSize:lt})},"paginate")},[Oe,Fe]=VIe(Pe.length,be,p);Ee.pagination=p===!1?{}:UIe(Oe,p),Ee.resetPagination=Fe;const Ke=l.useMemo(()=>{if(p===!1||!Oe.pageSize)return Pe;const{current:vt=1,total:lt,pageSize:ot=Gq}=Oe;return Pe.lengthot?Pe.slice((vt-1)*ot,vt*ot):Pe:Pe.slice((vt-1)*ot,vt*ot)},[!!p,Pe,Oe==null?void 0:Oe.current,Oe==null?void 0:Oe.pageSize,Oe==null?void 0:Oe.total]),[He,ze]=lIe({prefixCls:U,data:Pe,pageData:Ke,getRowKey:ue,getRecordByKey:ye,expandType:Te,childrenColumnName:ce,locale:J,getPopupContainer:C||te},g),Ze=(vt,lt,ot)=>{let et;return typeof b=="function"?et=ne(b(vt,lt,ot)):et=ne(b),ne({[`${U}-row-selected`]:ze.has(ue(vt,lt))},et)};fe.__PARENT_RENDER_ICON__=fe.expandIcon,fe.expandIcon=fe.expandIcon||E||dIe(J),Te==="nest"&&fe.expandIconColumnIndex===void 0?fe.expandIconColumnIndex=g?1:0:fe.expandIconColumnIndex>0&&g&&(fe.expandIconColumnIndex-=1),typeof fe.indentSize!="number"&&(fe.indentSize=typeof _=="number"?_:15);const je=l.useCallback(vt=>Ae(He(ke(Ce(vt)))),[Ce,ke,He]);let Je,mt;if(p!==!1&&(Oe!=null&&Oe.total)){let vt;Oe.size?vt=Oe.size:vt=Y==="small"||Y==="middle"?"small":void 0;const lt=bt=>l.createElement(qO,Object.assign({},Oe,{className:ne(`${U}-pagination ${U}-pagination-${bt}`,Oe.className),size:vt})),ot=B==="rtl"?"left":"right",{position:et}=Oe;if(et!==null&&Array.isArray(et)){const bt=et.find(Et=>Et.includes("top")),rt=et.find(Et=>Et.includes("bottom")),St=et.every(Et=>`${Et}`=="none");!bt&&!rt&&!St&&(mt=lt(ot)),bt&&(Je=lt(bt.toLowerCase().replace("top",""))),rt&&(mt=lt(rt.toLowerCase().replace("bottom","")))}else mt=lt(ot)}let ft;typeof w=="boolean"?ft={spinning:w}:typeof w=="object"&&(ft=Object.assign({spinning:!0},w));const qe=ne(le,Q,`${U}-wrapper`,z==null?void 0:z.className,{[`${U}-wrapper-rtl`]:B==="rtl"},o,i,oe),We=Object.assign(Object.assign({},z==null?void 0:z.style),s),Qe=typeof(D==null?void 0:D.emptyText)<"u"?D.emptyText:(H==null?void 0:H("Table"))||l.createElement(P0,{componentName:"Table"}),ct=O?YIe:KIe,Rt={},$t=l.useMemo(()=>{const{fontSize:vt,lineHeight:lt,padding:ot,paddingXS:et,paddingSM:bt}=X,rt=Math.floor(vt*lt);switch(Y){case"large":return ot*2+rt;case"small":return et*2+rt;default:return bt*2+rt}},[X,Y]);return O&&(Rt.listItemHeight=$t),ee(l.createElement("div",{ref:ae,className:qe,style:We},l.createElement(KO,Object.assign({spinning:!1},ft),Je,l.createElement(ct,Object.assign({},Rt,F,{ref:ie,columns:L,direction:B,expandable:fe,prefixCls:U,className:ne({[`${U}-middle`]:Y==="middle",[`${U}-small`]:Y==="small",[`${U}-bordered`]:u,[`${U}-empty`]:G.length===0},le,Q,oe),data:Ke,rowKey:ue,rowClassName:Ze,emptyText:Qe,internalHooks:pm,internalRefs:Se,transformColumns:je,getContainerWidth:ve})),mt)))},mTe=l.forwardRef(gTe),hTe=(e,t)=>{const n=l.useRef(0);return n.current+=1,l.createElement(mTe,Object.assign({},e,{ref:t,_renderTimes:n.current}))},Qa=l.forwardRef(hTe);Qa.SELECTION_COLUMN=Bs;Qa.EXPAND_COLUMN=Vs;Qa.SELECTION_ALL=HR;Qa.SELECTION_INVERT=UR;Qa.SELECTION_NONE=VR;Qa.Column=Z2e;Qa.ColumnGroup=Q2e;Qa.Summary=Sq;const vTe=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:a,calc:o}=e,i=o(r).sub(n).equal(),s=o(t).sub(n).equal();return{[a]:Object.assign(Object.assign({},nn(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${a}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${a}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${a}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${a}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:i}}),[`${a}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},pN=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,a=e.fontSizeSM;return zt(e,{tagFontSize:a,tagLineHeight:K(r(e.lineHeightSM).mul(a).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},gN=e=>({defaultBg:new an(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),Yq=on("Tag",e=>{const t=pN(e);return vTe(t)},gN);var bTe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,style:r,className:a,checked:o,onChange:i,onClick:s}=e,c=bTe(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:u,tag:d}=l.useContext(st),f=S=>{i==null||i(!o),s==null||s(S)},p=u("tag",n),[g,h,b]=Yq(p),y=ne(p,`${p}-checkable`,{[`${p}-checkable-checked`]:o},d==null?void 0:d.className,a,h,b);return g(l.createElement("span",Object.assign({},c,{ref:t,style:Object.assign(Object.assign({},r),d==null?void 0:d.style),className:y,onClick:f})))}),STe=e=>RH(e,(t,n)=>{let{textColor:r,lightBorderColor:a,lightColor:o,darkColor:i}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:o,borderColor:a,"&-inverse":{color:e.colorTextLightSolid,background:i,borderColor:i},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),xTe=Hd(["Tag","preset"],e=>{const t=pN(e);return STe(t)},gN);function wTe(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const xh=(e,t,n)=>{const r=wTe(n);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},CTe=Hd(["Tag","status"],e=>{const t=pN(e);return[xh(t,"success","Success"),xh(t,"processing","Info"),xh(t,"error","Error"),xh(t,"warning","Warning")]},gN);var ETe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,className:r,rootClassName:a,style:o,children:i,icon:s,color:c,onClose:u,bordered:d=!0,visible:f}=e,p=ETe(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:g,direction:h,tag:b}=l.useContext(st),[y,S]=l.useState(!0),v=On(p,["closeIcon","closable"]);l.useEffect(()=>{f!==void 0&&S(f)},[f]);const x=EV(c),C=nfe(c),w=x||C,E=Object.assign(Object.assign({backgroundColor:c&&!w?c:void 0},b==null?void 0:b.style),o),I=g("tag",n),[T,R,_]=Yq(I),$=ne(I,b==null?void 0:b.className,{[`${I}-${c}`]:w,[`${I}-has-color`]:c&&!w,[`${I}-hidden`]:!y,[`${I}-rtl`]:h==="rtl",[`${I}-borderless`]:!d},r,a,R,_),P=M=>{M.stopPropagation(),u==null||u(M),!M.defaultPrevented&&S(!1)},[,D]=aO(xd(e),xd(b),{closable:!1,closeIconRender:M=>{const L=l.createElement("span",{className:`${I}-close-icon`,onClick:P},M);return K$(M,L,F=>({onClick:j=>{var B;(B=F==null?void 0:F.onClick)===null||B===void 0||B.call(F,j),P(j)},className:ne(F==null?void 0:F.className,`${I}-close-icon`)}))}}),A=typeof p.onClick=="function"||i&&i.type==="a",O=s||null,N=O?l.createElement(l.Fragment,null,O,i&&l.createElement("span",null,i)):i,k=l.createElement("span",Object.assign({},v,{ref:t,className:$,style:E}),N,D,x&&l.createElement(xTe,{key:"preset",prefixCls:I}),C&&l.createElement(CTe,{key:"status",prefixCls:I}));return T(A?l.createElement(Gg,{component:"Tag"},k):k)}),Ib=ITe;Ib.CheckableTag=yTe;const TTe=e=>{const t=e!=null&&e.algorithm?og(e.algorithm):og(Hg),n=Object.assign(Object.assign({},yd),e==null?void 0:e.token);return K9(n,{override:e==null?void 0:e.token},t,U$)};function RTe(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}const _Te=(e,t)=>{const n=t??Hg(e),r=n.fontSizeSM,a=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),RTe(t??e)),yH(r)),{controlHeight:a}),bH(Object.assign(Object.assign({},n),{controlHeight:a})))},Ji=(e,t)=>new an(e).setAlpha(t).toRgbString(),fu=(e,t)=>new an(e).lighten(t).toHexString(),$Te=e=>{const t=wc(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},OTe=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:Ji(r,.85),colorTextSecondary:Ji(r,.65),colorTextTertiary:Ji(r,.45),colorTextQuaternary:Ji(r,.25),colorFill:Ji(r,.18),colorFillSecondary:Ji(r,.12),colorFillTertiary:Ji(r,.08),colorFillQuaternary:Ji(r,.04),colorBgElevated:fu(n,12),colorBgContainer:fu(n,8),colorBgLayout:fu(n,0),colorBgSpotlight:fu(n,26),colorBgBlur:Ji(r,.04),colorBorder:fu(n,26),colorBorderSecondary:fu(n,19)}},NTe=(e,t)=>{const n=Object.keys(j$).map(a=>{const o=wc(e[a],{theme:"dark"});return new Array(10).fill(1).reduce((i,s,c)=>(i[`${a}-${c+1}`]=o[c],i[`${a}${c+1}`]=o[c],i),{})}).reduce((a,o)=>(a=Object.assign(Object.assign({},a),o),a),{}),r=t??Hg(e);return Object.assign(Object.assign(Object.assign({},r),n),vH(e,{generateColorPalettes:$Te,generateNeutralColorPalettes:OTe}))};function kTe(){const[e,t,n]=ta();return{theme:e,token:t,hashId:n}}const Ea={defaultSeed:lg.token,useToken:kTe,defaultAlgorithm:Hg,darkAlgorithm:NTe,compactAlgorithm:_Te,getDesignToken:TTe,defaultConfig:lg,_internalContext:B$},ATe=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},nn(e)),{margin:0,padding:0,listStyle:"none",[`${t}-item`]:{position:"relative",margin:0,paddingBottom:e.itemPaddingBottom,fontSize:e.fontSize,listStyle:"none","&-tail":{position:"absolute",insetBlockStart:e.itemHeadSize,insetInlineStart:n(n(e.itemHeadSize).sub(e.tailWidth)).div(2).equal(),height:`calc(100% - ${K(e.itemHeadSize)})`,borderInlineStart:`${K(e.tailWidth)} ${e.lineType} ${e.tailColor}`},"&-pending":{[`${t}-item-head`]:{fontSize:e.fontSizeSM,backgroundColor:"transparent"},[`${t}-item-tail`]:{display:"none"}},"&-head":{position:"absolute",width:e.itemHeadSize,height:e.itemHeadSize,backgroundColor:e.dotBg,border:`${K(e.dotBorderWidth)} ${e.lineType} transparent`,borderRadius:"50%","&-blue":{color:e.colorPrimary,borderColor:e.colorPrimary},"&-red":{color:e.colorError,borderColor:e.colorError},"&-green":{color:e.colorSuccess,borderColor:e.colorSuccess},"&-gray":{color:e.colorTextDisabled,borderColor:e.colorTextDisabled}},"&-head-custom":{position:"absolute",insetBlockStart:n(e.itemHeadSize).div(2).equal(),insetInlineStart:n(e.itemHeadSize).div(2).equal(),width:"auto",height:"auto",marginBlockStart:0,paddingBlock:e.customHeadPaddingVertical,lineHeight:1,textAlign:"center",border:0,borderRadius:0,transform:"translate(-50%, -50%)"},"&-content":{position:"relative",insetBlockStart:n(n(e.fontSize).mul(e.lineHeight).sub(e.fontSize)).mul(-1).add(e.lineWidth).equal(),marginInlineStart:n(e.margin).add(e.itemHeadSize).equal(),marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:"break-word"},"&-last":{[`> ${t}-item-tail`]:{display:"none"},[`> ${t}-item-content`]:{minHeight:n(e.controlHeightLG).mul(1.2).equal()}}},[`&${t}-alternate, + ${K(v(a).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:p,fontWeight:n,textAlign:"start",background:h,borderBottom:x,transition:`background ${g} ease`}}},[`${t}-footer`]:{padding:`${K(r)} ${K(a)}`,color:y,background:S}})}},dTe=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:a,colorFillContent:o,controlItemBgActive:i,controlItemBgActiveHover:s,padding:c,paddingSM:u,paddingXS:d,colorBorderSecondary:f,borderRadiusLG:p,controlHeight:g,colorTextPlaceholder:h,fontSize:b,fontSizeSM:y,lineHeight:S,lineWidth:v,colorIcon:x,colorIconHover:w,opacityLoading:C,controlInteractiveSize:E}=e,I=new an(a).onBackground(n).toHexShortString(),T=new an(o).onBackground(n).toHexShortString(),R=new an(t).onBackground(n).toHexShortString(),_=new an(x),$=new an(w),P=E/2-v,D=P*2+v*3;return{headerBg:R,headerColor:r,headerSortActiveBg:I,headerSortHoverBg:T,bodySortBg:R,rowHoverBg:R,rowSelectedBg:i,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:u,cellPaddingInlineMD:d,cellPaddingBlockSM:d,cellPaddingInlineSM:d,borderColor:f,headerBorderRadius:p,footerBg:R,footerColor:r,cellFontSize:b,cellFontSizeMD:b,cellFontSizeSM:b,headerSplitColor:f,fixedHeaderSortActiveBg:I,headerFilterHoverBg:o,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:g,stickyScrollBarBg:h,stickyScrollBarBorderRadius:100,expandIconMarginTop:(b*S-v*3)/2-Math.ceil((y*1.4-v*3)/2),headerIconColor:_.clone().setAlpha(_.getAlpha()*C).toRgbString(),headerIconHoverColor:$.clone().setAlpha($.getAlpha()*C).toRgbString(),expandIconHalfInner:P,expandIconSize:D,expandIconScale:E/D}},fD=2,fTe=on("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:a,headerBg:o,headerColor:i,headerSortActiveBg:s,headerSortHoverBg:c,bodySortBg:u,rowHoverBg:d,rowSelectedBg:f,rowSelectedHoverBg:p,rowExpandedBg:g,cellPaddingBlock:h,cellPaddingInline:b,cellPaddingBlockMD:y,cellPaddingInlineMD:S,cellPaddingBlockSM:v,cellPaddingInlineSM:x,borderColor:w,footerBg:C,footerColor:E,headerBorderRadius:I,cellFontSize:T,cellFontSizeMD:R,cellFontSizeSM:_,headerSplitColor:$,fixedHeaderSortActiveBg:P,headerFilterHoverBg:D,filterDropdownBg:A,expandIconBg:O,selectionColumnWidth:N,stickyScrollBarBg:k,calc:M}=e,L=zt(e,{tableFontSize:T,tableBg:r,tableRadius:I,tablePaddingVertical:h,tablePaddingHorizontal:b,tablePaddingVerticalMiddle:y,tablePaddingHorizontalMiddle:S,tablePaddingVerticalSmall:v,tablePaddingHorizontalSmall:x,tableBorderColor:w,tableHeaderTextColor:i,tableHeaderBg:o,tableFooterTextColor:E,tableFooterBg:C,tableHeaderCellSplitColor:$,tableHeaderSortBg:s,tableHeaderSortHoverBg:c,tableBodySortBg:u,tableFixedHeaderSortActiveBg:P,tableHeaderFilterActiveBg:D,tableFilterDropdownBg:A,tableRowHoverBg:d,tableSelectedRowBg:f,tableSelectedRowHoverBg:p,zIndexTableFixed:fD,zIndexTableSticky:M(fD).add(1).equal({unit:!1}),tableFontSizeMiddle:R,tableFontSizeSmall:_,tableSelectionColumnWidth:N,tableExpandIconBg:O,tableExpandColumnWidth:M(a).add(M(e.padding).mul(2)).equal(),tableExpandedRowBg:g,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:k,tableScrollThumbBgHover:t,tableScrollBg:n});return[uTe(L),nTe(L),dD(L),sTe(L),eTe(L),XIe(L),rTe(L),JIe(L),dD(L),QIe(L),oTe(L),tTe(L),lTe(L),ZIe(L),iTe(L),aTe(L),cTe(L)]},dTe,{unitless:{expandIconScale:!0}}),pTe=[],gTe=(e,t)=>{var n,r;const{prefixCls:a,className:o,rootClassName:i,style:s,size:c,bordered:u,dropdownPrefixCls:d,dataSource:f,pagination:p,rowSelection:g,rowKey:h="key",rowClassName:b,columns:y,children:S,childrenColumnName:v,onChange:x,getPopupContainer:w,loading:C,expandIcon:E,expandable:I,expandedRowRender:T,expandIconColumnIndex:R,indentSize:_,scroll:$,sortDirections:P,locale:D,showSorterTooltip:A={target:"full-header"},virtual:O}=e;$l();const N=l.useMemo(()=>y||lN(S),[y,S]),k=l.useMemo(()=>N.some(ht=>ht.responsive),[N]),M=F0(k),L=l.useMemo(()=>{const ht=new Set(Object.keys(M).filter(lt=>M[lt]));return N.filter(lt=>!lt.responsive||lt.responsive.some(ot=>ht.has(ot)))},[N,M]),F=On(e,["className","style","columns"]),{locale:j=Vo,direction:B,table:z,renderEmpty:H,getPrefixCls:V,getPopupContainer:te}=l.useContext(st),Y=Er(c),J=Object.assign(Object.assign({},j.Table),D),G=f||pTe,U=V("table",a),q=V("dropdown",d),[,X]=ra(),Q=Un(U),[ee,oe,le]=fTe(U,Q),fe=Object.assign(Object.assign({childrenColumnName:v,expandIconColumnIndex:R},I),{expandIcon:(n=I==null?void 0:I.expandIcon)!==null&&n!==void 0?n:(r=z==null?void 0:z.expandable)===null||r===void 0?void 0:r.expandIcon}),{childrenColumnName:ce="children"}=fe,Ie=l.useMemo(()=>G.some(ht=>ht==null?void 0:ht[ce])?"nest":T||I!=null&&I.expandedRowRender?"row":null,[G]),be={body:l.useRef()},he=fIe(U),ae=l.useRef(null),ie=l.useRef(null);uIe(t,()=>Object.assign(Object.assign({},ie.current),{nativeElement:ae.current}));const ue=l.useMemo(()=>typeof h=="function"?h:ht=>ht==null?void 0:ht[h],[h]),[xe]=zIe(G,ce,ue),we={},Me=function(ht,lt){let ot=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var et,vt,rt,St;const Et=Object.assign(Object.assign({},we),ht);ot&&((et=we.resetPagination)===null||et===void 0||et.call(we),!((vt=Et.pagination)===null||vt===void 0)&&vt.current&&(Et.pagination.current=1),p&&((rt=p.onChange)===null||rt===void 0||rt.call(p,1,(St=Et.pagination)===null||St===void 0?void 0:St.pageSize))),$&&$.scrollToFirstRowOnChange!==!1&&be.body.current&&Koe(0,{getContainer:()=>be.body.current}),x==null||x(Et.pagination,Et.filters,Et.sorter,{currentDataSource:KR(XR(G,Et.sorterStates,ce),Et.filterStates,ce),action:lt})},Ce=(ht,lt)=>{Me({sorter:ht,sorterStates:lt},"sort",!1)},[De,ye,ve,$e]=GIe({prefixCls:U,mergedColumns:L,onSorterChange:Ce,sortDirections:P||["ascend","descend"],tableLocale:J,showSorterTooltip:A}),Ee=l.useMemo(()=>XR(G,ye,ce),[G,ye]);we.sorter=$e(),we.sorterStates=ye;const ge=(ht,lt)=>{Me({filters:ht,filterStates:lt},"filter",!0)},[Ne,Re,me]=BIe({prefixCls:U,locale:J,dropdownPrefixCls:q,mergedColumns:L,onFilterChange:ge,getPopupContainer:w||te,rootClassName:ne(i,Q)}),_e=KR(Ee,Re,ce);we.filters=me,we.filterStates=Re;const Ze=l.useMemo(()=>{const ht={};return Object.keys(me).forEach(lt=>{me[lt]!==null&&(ht[lt]=me[lt])}),Object.assign(Object.assign({},ve),{filters:ht})},[ve,me]),[Oe]=qIe(Ze),Se=(ht,lt)=>{Me({pagination:Object.assign(Object.assign({},we.pagination),{current:ht,pageSize:lt})},"paginate")},[Ae,Fe]=VIe(_e.length,Se,p);we.pagination=p===!1?{}:UIe(Ae,p),we.resetPagination=Fe;const Ve=l.useMemo(()=>{if(p===!1||!Ae.pageSize)return _e;const{current:ht=1,total:lt,pageSize:ot=Gq}=Ae;return _e.lengthot?_e.slice((ht-1)*ot,ht*ot):_e:_e.slice((ht-1)*ot,ht*ot)},[!!p,_e,Ae==null?void 0:Ae.current,Ae==null?void 0:Ae.pageSize,Ae==null?void 0:Ae.total]),[He,ze]=lIe({prefixCls:U,data:_e,pageData:Ve,getRowKey:ue,getRecordByKey:xe,expandType:Ie,childrenColumnName:ce,locale:J,getPopupContainer:w||te},g),Xe=(ht,lt,ot)=>{let et;return typeof b=="function"?et=ne(b(ht,lt,ot)):et=ne(b),ne({[`${U}-row-selected`]:ze.has(ue(ht,lt))},et)};fe.__PARENT_RENDER_ICON__=fe.expandIcon,fe.expandIcon=fe.expandIcon||E||dIe(J),Ie==="nest"&&fe.expandIconColumnIndex===void 0?fe.expandIconColumnIndex=g?1:0:fe.expandIconColumnIndex>0&&g&&(fe.expandIconColumnIndex-=1),typeof fe.indentSize!="number"&&(fe.indentSize=typeof _=="number"?_:15);const je=l.useCallback(ht=>Oe(He(Ne(De(ht)))),[De,Ne,He]);let Je,gt;if(p!==!1&&(Ae!=null&&Ae.total)){let ht;Ae.size?ht=Ae.size:ht=Y==="small"||Y==="middle"?"small":void 0;const lt=vt=>l.createElement(KO,Object.assign({},Ae,{className:ne(`${U}-pagination ${U}-pagination-${vt}`,Ae.className),size:ht})),ot=B==="rtl"?"left":"right",{position:et}=Ae;if(et!==null&&Array.isArray(et)){const vt=et.find(Et=>Et.includes("top")),rt=et.find(Et=>Et.includes("bottom")),St=et.every(Et=>`${Et}`=="none");!vt&&!rt&&!St&&(gt=lt(ot)),vt&&(Je=lt(vt.toLowerCase().replace("top",""))),rt&&(gt=lt(rt.toLowerCase().replace("bottom","")))}else gt=lt(ot)}let ft;typeof C=="boolean"?ft={spinning:C}:typeof C=="object"&&(ft=Object.assign({spinning:!0},C));const qe=ne(le,Q,`${U}-wrapper`,z==null?void 0:z.className,{[`${U}-wrapper-rtl`]:B==="rtl"},o,i,oe),We=Object.assign(Object.assign({},z==null?void 0:z.style),s),Qe=typeof(D==null?void 0:D.emptyText)<"u"?D.emptyText:(H==null?void 0:H("Table"))||l.createElement(D0,{componentName:"Table"}),ut=O?YIe:KIe,Rt={},$t=l.useMemo(()=>{const{fontSize:ht,lineHeight:lt,padding:ot,paddingXS:et,paddingSM:vt}=X,rt=Math.floor(ht*lt);switch(Y){case"large":return ot*2+rt;case"small":return et*2+rt;default:return vt*2+rt}},[X,Y]);return O&&(Rt.listItemHeight=$t),ee(l.createElement("div",{ref:ae,className:qe,style:We},l.createElement(YO,Object.assign({spinning:!1},ft),Je,l.createElement(ut,Object.assign({},Rt,F,{ref:ie,columns:L,direction:B,expandable:fe,prefixCls:U,className:ne({[`${U}-middle`]:Y==="middle",[`${U}-small`]:Y==="small",[`${U}-bordered`]:u,[`${U}-empty`]:G.length===0},le,Q,oe),data:Ve,rowKey:ue,rowClassName:Xe,emptyText:Qe,internalHooks:mm,internalRefs:be,transformColumns:je,getContainerWidth:he})),gt)))},mTe=l.forwardRef(gTe),hTe=(e,t)=>{const n=l.useRef(0);return n.current+=1,l.createElement(mTe,Object.assign({},e,{ref:t,_renderTimes:n.current}))},Ja=l.forwardRef(hTe);Ja.SELECTION_COLUMN=Bs;Ja.EXPAND_COLUMN=Vs;Ja.SELECTION_ALL=UR;Ja.SELECTION_INVERT=VR;Ja.SELECTION_NONE=WR;Ja.Column=Z2e;Ja.ColumnGroup=Q2e;Ja.Summary=Sq;const vTe=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:a,calc:o}=e,i=o(r).sub(n).equal(),s=o(t).sub(n).equal();return{[a]:Object.assign(Object.assign({},nn(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${a}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${a}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${a}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${a}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:i}}),[`${a}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},gN=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,a=e.fontSizeSM;return zt(e,{tagFontSize:a,tagLineHeight:K(r(e.lineHeightSM).mul(a).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},mN=e=>({defaultBg:new an(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),Yq=on("Tag",e=>{const t=gN(e);return vTe(t)},mN);var bTe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,style:r,className:a,checked:o,onChange:i,onClick:s}=e,c=bTe(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:u,tag:d}=l.useContext(st),f=S=>{i==null||i(!o),s==null||s(S)},p=u("tag",n),[g,h,b]=Yq(p),y=ne(p,`${p}-checkable`,{[`${p}-checkable-checked`]:o},d==null?void 0:d.className,a,h,b);return g(l.createElement("span",Object.assign({},c,{ref:t,style:Object.assign(Object.assign({},r),d==null?void 0:d.style),className:y,onClick:f})))}),STe=e=>RH(e,(t,n)=>{let{textColor:r,lightBorderColor:a,lightColor:o,darkColor:i}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:o,borderColor:a,"&-inverse":{color:e.colorTextLightSolid,background:i,borderColor:i},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),xTe=Hd(["Tag","preset"],e=>{const t=gN(e);return STe(t)},mN);function wTe(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Ch=(e,t,n)=>{const r=wTe(n);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},CTe=Hd(["Tag","status"],e=>{const t=gN(e);return[Ch(t,"success","Success"),Ch(t,"processing","Info"),Ch(t,"error","Error"),Ch(t,"warning","Warning")]},mN);var ETe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,className:r,rootClassName:a,style:o,children:i,icon:s,color:c,onClose:u,bordered:d=!0,visible:f}=e,p=ETe(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:g,direction:h,tag:b}=l.useContext(st),[y,S]=l.useState(!0),v=On(p,["closeIcon","closable"]);l.useEffect(()=>{f!==void 0&&S(f)},[f]);const x=EV(c),w=nfe(c),C=x||w,E=Object.assign(Object.assign({backgroundColor:c&&!C?c:void 0},b==null?void 0:b.style),o),I=g("tag",n),[T,R,_]=Yq(I),$=ne(I,b==null?void 0:b.className,{[`${I}-${c}`]:C,[`${I}-has-color`]:c&&!C,[`${I}-hidden`]:!y,[`${I}-rtl`]:h==="rtl",[`${I}-borderless`]:!d},r,a,R,_),P=M=>{M.stopPropagation(),u==null||u(M),!M.defaultPrevented&&S(!1)},[,D]=oO(xd(e),xd(b),{closable:!1,closeIconRender:M=>{const L=l.createElement("span",{className:`${I}-close-icon`,onClick:P},M);return Y$(M,L,F=>({onClick:j=>{var B;(B=F==null?void 0:F.onClick)===null||B===void 0||B.call(F,j),P(j)},className:ne(F==null?void 0:F.className,`${I}-close-icon`)}))}}),A=typeof p.onClick=="function"||i&&i.type==="a",O=s||null,N=O?l.createElement(l.Fragment,null,O,i&&l.createElement("span",null,i)):i,k=l.createElement("span",Object.assign({},v,{ref:t,className:$,style:E}),N,D,x&&l.createElement(xTe,{key:"preset",prefixCls:I}),w&&l.createElement(CTe,{key:"status",prefixCls:I}));return T(A?l.createElement(Kg,{component:"Tag"},k):k)}),Tb=ITe;Tb.CheckableTag=yTe;const TTe=e=>{const t=e!=null&&e.algorithm?sg(e.algorithm):sg(Vg),n=Object.assign(Object.assign({},yd),e==null?void 0:e.token);return K9(n,{override:e==null?void 0:e.token},t,V$)};function RTe(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}const _Te=(e,t)=>{const n=t??Vg(e),r=n.fontSizeSM,a=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),RTe(t??e)),yH(r)),{controlHeight:a}),bH(Object.assign(Object.assign({},n),{controlHeight:a})))},es=(e,t)=>new an(e).setAlpha(t).toRgbString(),fu=(e,t)=>new an(e).lighten(t).toHexString(),$Te=e=>{const t=wc(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},OTe=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:es(r,.85),colorTextSecondary:es(r,.65),colorTextTertiary:es(r,.45),colorTextQuaternary:es(r,.25),colorFill:es(r,.18),colorFillSecondary:es(r,.12),colorFillTertiary:es(r,.08),colorFillQuaternary:es(r,.04),colorBgElevated:fu(n,12),colorBgContainer:fu(n,8),colorBgLayout:fu(n,0),colorBgSpotlight:fu(n,26),colorBgBlur:es(r,.04),colorBorder:fu(n,26),colorBorderSecondary:fu(n,19)}},NTe=(e,t)=>{const n=Object.keys(B$).map(a=>{const o=wc(e[a],{theme:"dark"});return new Array(10).fill(1).reduce((i,s,c)=>(i[`${a}-${c+1}`]=o[c],i[`${a}${c+1}`]=o[c],i),{})}).reduce((a,o)=>(a=Object.assign(Object.assign({},a),o),a),{}),r=t??Vg(e);return Object.assign(Object.assign(Object.assign({},r),n),vH(e,{generateColorPalettes:$Te,generateNeutralColorPalettes:OTe}))};function kTe(){const[e,t,n]=ra();return{theme:e,token:t,hashId:n}}const Ta={defaultSeed:ug.token,useToken:kTe,defaultAlgorithm:Vg,darkAlgorithm:NTe,compactAlgorithm:_Te,getDesignToken:TTe,defaultConfig:ug,_internalContext:z$},ATe=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},nn(e)),{margin:0,padding:0,listStyle:"none",[`${t}-item`]:{position:"relative",margin:0,paddingBottom:e.itemPaddingBottom,fontSize:e.fontSize,listStyle:"none","&-tail":{position:"absolute",insetBlockStart:e.itemHeadSize,insetInlineStart:n(n(e.itemHeadSize).sub(e.tailWidth)).div(2).equal(),height:`calc(100% - ${K(e.itemHeadSize)})`,borderInlineStart:`${K(e.tailWidth)} ${e.lineType} ${e.tailColor}`},"&-pending":{[`${t}-item-head`]:{fontSize:e.fontSizeSM,backgroundColor:"transparent"},[`${t}-item-tail`]:{display:"none"}},"&-head":{position:"absolute",width:e.itemHeadSize,height:e.itemHeadSize,backgroundColor:e.dotBg,border:`${K(e.dotBorderWidth)} ${e.lineType} transparent`,borderRadius:"50%","&-blue":{color:e.colorPrimary,borderColor:e.colorPrimary},"&-red":{color:e.colorError,borderColor:e.colorError},"&-green":{color:e.colorSuccess,borderColor:e.colorSuccess},"&-gray":{color:e.colorTextDisabled,borderColor:e.colorTextDisabled}},"&-head-custom":{position:"absolute",insetBlockStart:n(e.itemHeadSize).div(2).equal(),insetInlineStart:n(e.itemHeadSize).div(2).equal(),width:"auto",height:"auto",marginBlockStart:0,paddingBlock:e.customHeadPaddingVertical,lineHeight:1,textAlign:"center",border:0,borderRadius:0,transform:"translate(-50%, -50%)"},"&-content":{position:"relative",insetBlockStart:n(n(e.fontSize).mul(e.lineHeight).sub(e.fontSize)).mul(-1).add(e.lineWidth).equal(),marginInlineStart:n(e.margin).add(e.itemHeadSize).equal(),marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:"break-word"},"&-last":{[`> ${t}-item-tail`]:{display:"none"},[`> ${t}-item-content`]:{minHeight:n(e.controlHeightLG).mul(1.2).equal()}}},[`&${t}-alternate, &${t}-right, &${t}-label`]:{[`${t}-item`]:{"&-tail, &-head, &-head-custom":{insetInlineStart:"50%"},"&-head":{marginInlineStart:n(e.marginXXS).mul(-1).equal(),"&-custom":{marginInlineStart:n(e.tailWidth).div(2).equal()}},"&-left":{[`${t}-item-content`]:{insetInlineStart:`calc(50% - ${K(e.marginXXS)})`,width:`calc(50% - ${K(e.marginSM)})`,textAlign:"start"}},"&-right":{[`${t}-item-content`]:{width:`calc(50% - ${K(e.marginSM)})`,margin:0,textAlign:"end"}}}},[`&${t}-right`]:{[`${t}-item-right`]:{[`${t}-item-tail, ${t}-item-head, @@ -457,12 +457,12 @@ html body { ${t}-item-last ${t}-item-tail`]:{display:"block",height:`calc(100% - ${K(e.margin)})`,borderInlineStart:`${K(e.tailWidth)} dotted ${e.tailColor}`},[`&${t}-reverse ${t}-item-last - ${t}-item-tail`]:{display:"none"},[`&${t}-reverse ${t}-item-pending`]:{[`${t}-item-tail`]:{insetBlockStart:e.margin,display:"block",height:`calc(100% - ${K(e.margin)})`,borderInlineStart:`${K(e.tailWidth)} dotted ${e.tailColor}`},[`${t}-item-content`]:{minHeight:n(e.controlHeightLG).mul(1.2).equal()}},[`&${t}-label`]:{[`${t}-item-label`]:{position:"absolute",insetBlockStart:n(n(e.fontSize).mul(e.lineHeight).sub(e.fontSize)).mul(-1).add(e.tailWidth).equal(),width:`calc(50% - ${K(e.marginSM)})`,textAlign:"end"},[`${t}-item-right`]:{[`${t}-item-label`]:{insetInlineStart:`calc(50% + ${K(e.marginSM)})`,width:`calc(50% - ${K(e.marginSM)})`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${t}-item-head-custom`]:{transform:"translate(50%, -50%)"}}})}},MTe=e=>({tailColor:e.colorSplit,tailWidth:e.lineWidthBold,dotBorderWidth:e.wireframe?e.lineWidthBold:e.lineWidth*3,dotBg:e.colorBgContainer,itemPaddingBottom:e.padding*1.25}),PTe=on("Timeline",e=>{const t=zt(e,{itemHeadSize:10,customHeadPaddingVertical:e.paddingXXS,paddingInlineEnd:2});return[ATe(t)]},MTe);var DTe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{prefixCls:t,className:n,color:r="blue",dot:a,pending:o=!1,position:i,label:s,children:c}=e,u=DTe(e,["prefixCls","className","color","dot","pending","position","label","children"]);const{getPrefixCls:d}=l.useContext(st),f=d("timeline",t),p=ne(`${f}-item`,{[`${f}-item-pending`]:o},n),g=/blue|red|green|gray/.test(r||"")?void 0:r,h=ne(`${f}-item-head`,{[`${f}-item-head-custom`]:!!a,[`${f}-item-head-${r}`]:!g});return l.createElement("li",Object.assign({},u,{className:p}),s&&l.createElement("div",{className:`${f}-item-label`},s),l.createElement("div",{className:`${f}-item-tail`}),l.createElement("div",{className:h,style:{borderColor:g,color:g}},a),l.createElement("div",{className:`${f}-item-content`},c))};var pD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{prefixCls:t,className:n,pending:r=!1,children:a,items:o,rootClassName:i,reverse:s=!1,direction:c,hashId:u,pendingDot:d,mode:f=""}=e,p=pD(e,["prefixCls","className","pending","children","items","rootClassName","reverse","direction","hashId","pendingDot","mode"]);const g=(w,E)=>f==="alternate"?w==="right"?`${t}-item-right`:w==="left"?`${t}-item-left`:E%2===0?`${t}-item-left`:`${t}-item-right`:f==="left"?`${t}-item-left`:f==="right"?`${t}-item-right`:w==="right"?`${t}-item-right`:"",h=De(o||[]),b=typeof r=="boolean"?null:r;r&&h.push({pending:!!r,dot:d||l.createElement(Hi,null),children:b}),s&&h.reverse();const y=h.length,S=`${t}-item-last`,v=h.filter(w=>!!w).map((w,E)=>{var I;const T=E===y-2?S:"",R=E===y-1?S:"",{className:_}=w,$=pD(w,["className"]);return l.createElement(Xq,Object.assign({},$,{className:ne([_,!s&&r?T:R,g((I=w==null?void 0:w.position)!==null&&I!==void 0?I:"",E)]),key:(w==null?void 0:w.key)||E}))}),x=h.some(w=>!!(w!=null&&w.label)),C=ne(t,{[`${t}-pending`]:!!r,[`${t}-reverse`]:!!s,[`${t}-${f}`]:!!f&&!x,[`${t}-label`]:x,[`${t}-rtl`]:c==="rtl"},n,i,u);return l.createElement("ul",Object.assign({},p,{className:C}),v)};function FTe(e,t){return e&&Array.isArray(e)?e:vr(t).map(n=>{var r,a;return Object.assign({children:(a=(r=n==null?void 0:n.props)===null||r===void 0?void 0:r.children)!==null&&a!==void 0?a:""},n.props)})}var jTe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:t,direction:n,timeline:r}=l.useContext(st),{prefixCls:a,children:o,items:i,className:s,style:c}=e,u=jTe(e,["prefixCls","children","items","className","style"]),d=t("timeline",a),f=Un(d),[p,g,h]=PTe(d,f),b=FTe(i,o);return p(l.createElement(LTe,Object.assign({},u,{className:ne(r==null?void 0:r.className,s,h,f),style:Object.assign(Object.assign({},r==null?void 0:r.style),c),prefixCls:d,direction:n,items:b,hashId:g})))};Zq.Item=Xq;var BTe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const n=d=>{const{keyCode:f}=d;f===Le.ENTER&&d.preventDefault()},r=d=>{const{keyCode:f}=d,{onClick:p}=e;f===Le.ENTER&&p&&p()},{style:a,noStyle:o,disabled:i,tabIndex:s=0}=e,c=BTe(e,["style","noStyle","disabled","tabIndex"]);let u={};return o||(u=Object.assign({},zTe)),i&&(u.pointerEvents="none"),u=Object.assign(Object.assign({},u),a),l.createElement("div",Object.assign({role:"button",tabIndex:s,ref:t},c,{onKeyDown:n,onKeyUp:r,style:u}))}),HTe=function(e){var t=l.useRef({valueLabels:new Map});return l.useMemo(function(){var n=t.current.valueLabels,r=new Map,a=e.map(function(o){var i,s=o.value,c=(i=o.label)!==null&&i!==void 0?i:n.get(s);return r.set(s,c),Z(Z({},o),{},{label:c})});return t.current.valueLabels=r,[a]},[e])},UTe=function(e,t,n,r){return l.useMemo(function(){var a=e.map(function(c){var u=c.value;return u}),o=t.map(function(c){var u=c.value;return u}),i=a.filter(function(c){return!r[c]});if(n){var s=hs(a,!0,r);a=s.checkedKeys,o=s.halfCheckedKeys}return[Array.from(new Set([].concat(De(i),De(a)))),o]},[e,t,n,r])};function VTe(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function WTe(e){var t=e||{},n=t.label,r=t.value,a=t.children,o=r||"value";return{_title:n?[n]:["title","label"],value:o,key:o,children:a||"children"}}function ZR(e){return!e||e.disabled||e.disableCheckbox||e.checkable===!1}function GTe(e,t){var n=[];function r(a){a.forEach(function(o){var i=o[t.children];i&&(n.push(o[t.value]),r(i))})}return r(e),n}function gD(e){return e==null}const qTe=function(e,t){return l.useMemo(function(){var n=J0(e,{fieldNames:t,initWrapper:function(a){return Z(Z({},a),{},{valueEntities:new Map})},processEntity:function(a,o){var i=a.node[t.value];o.valueEntities.set(i,a)}});return n},[e,t])};var mN=function(){return null},KTe=["children","value"];function Qq(e){return vr(e).map(function(t){if(!l.isValidElement(t)||!t.type)return null;var n=t,r=n.key,a=n.props,o=a.children,i=a.value,s=xt(a,KTe),c=Z({key:r,value:i},s),u=Qq(o);return u.length&&(c.children=u),c}).filter(function(t){return t})}function QR(e){if(!e)return e;var t=Z({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return vn(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}function YTe(e,t,n,r,a,o){var i=null,s=null;function c(){function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return d.map(function(g,h){var b="".concat(f,"-").concat(h),y=g[o.value],S=n.includes(y),v=u(g[o.children]||[],b,S),x=l.createElement(mN,g,v.map(function(w){return w.node}));if(t===y&&(i=x),S){var C={pos:b,node:x,children:v};return p||s.push(C),C}return null}).filter(function(g){return g})}s||(s=[],u(r),s.sort(function(d,f){var p=d.node.props.value,g=f.node.props.value,h=n.indexOf(p),b=n.indexOf(g);return h-b}))}Object.defineProperty(e,"triggerNode",{get:function(){return vn(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),c(),i}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return vn(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),c(),a?s:s.map(function(d){var f=d.node;return f})}})}const XTe=function(e,t,n){var r=n.treeNodeFilterProp,a=n.filterTreeNode,o=n.fieldNames,i=o.children;return l.useMemo(function(){if(!t||a===!1)return e;var s;if(typeof a=="function")s=a;else{var c=t.toUpperCase();s=function(f,p){var g=p[r];return String(g).toUpperCase().includes(c)}}function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return d.reduce(function(p,g){var h=g[i],b=f||s(t,QR(g)),y=u(h||[],b);return(b||y.length)&&p.push(Z(Z({},g),{},W({isLeaf:void 0},i,y))),p},[])}return u(e)},[e,t,i,r,a])};function mD(e){var t=l.useRef();t.current=e;var n=l.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}function ZTe(e,t){var n=t.id,r=t.pId,a=t.rootPId,o={},i=[],s=e.map(function(c){var u=Z({},c),d=u[n];return o[d]=u,u.key=u.key||d,u});return s.forEach(function(c){var u=c[r],d=o[u];d&&(d.children=d.children||[],d.children.push(c)),(u===a||!d&&a===null)&&i.push(c)}),i}function QTe(e,t,n){return l.useMemo(function(){return e?n?ZTe(e,Z({id:"id",pId:"pId",rootPId:null},n!==!0?n:{})):e:Qq(t)},[t,n,e])}var Jq=l.createContext(null),eK=l.createContext(null),JTe={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},eRe=function(t,n){var r=YU(),a=r.prefixCls,o=r.multiple,i=r.searchValue,s=r.toggleOpen,c=r.open,u=r.notFoundContent,d=l.useContext(eK),f=d.virtual,p=d.listHeight,g=d.listItemHeight,h=d.listItemScrollOffset,b=d.treeData,y=d.fieldNames,S=d.onSelect,v=d.dropdownMatchSelectWidth,x=d.treeExpandAction,C=d.treeTitleRender,w=d.onPopupScroll,E=l.useContext(Jq),I=E.checkable,T=E.checkedKeys,R=E.halfCheckedKeys,_=E.treeExpandedKeys,$=E.treeDefaultExpandAll,P=E.treeDefaultExpandedKeys,D=E.onTreeExpand,A=E.treeIcon,O=E.showTreeIcon,N=E.switcherIcon,k=E.treeLine,M=E.treeNodeFilterProp,L=E.loadData,F=E.treeLoadedKeys,j=E.treeMotion,B=E.onTreeLoad,z=E.keyEntities,H=l.useRef(),V=_l(function(){return b},[c,b],function(Me,Ie){return Ie[0]&&Me[1]!==Ie[1]}),te=l.useState(null),Y=re(te,2),J=Y[0],G=Y[1],U=z[J],q=l.useMemo(function(){return I?{checked:T,halfChecked:R}:null},[I,T,R]);l.useEffect(function(){if(c&&!o&&T.length){var Me;(Me=H.current)===null||Me===void 0||Me.scrollTo({key:T[0]}),G(T[0])}},[c]);var X=String(i).toLowerCase(),Q=function(Ie){return X?String(Ie[M]).toLowerCase().includes(X):!1},ee=l.useState(P),oe=re(ee,2),le=oe[0],fe=oe[1],ce=l.useState(null),Te=re(ce,2),Se=Te[0],ve=Te[1],ae=l.useMemo(function(){return _?De(_):i?Se:le},[le,Se,_,i]);l.useEffect(function(){i&&ve(GTe(b,y))},[i]);var ie=function(Ie){fe(Ie),ve(Ie),D&&D(Ie)},ue=function(Ie){Ie.preventDefault()},ye=function(Ie,Ce){var me=Ce.node;I&&ZR(me)||(S(me.key,{selected:!T.includes(me.key)}),o||s(!1))};if(l.useImperativeHandle(n,function(){var Me;return{scrollTo:(Me=H.current)===null||Me===void 0?void 0:Me.scrollTo,onKeyDown:function(Ce){var me,we=Ce.which;switch(we){case Le.UP:case Le.DOWN:case Le.LEFT:case Le.RIGHT:(me=H.current)===null||me===void 0||me.onKeyDown(Ce);break;case Le.ENTER:{if(U){var _e=(U==null?void 0:U.node)||{},Ne=_e.selectable,he=_e.value;Ne!==!1&&ye(null,{node:{key:J},selected:!T.includes(he)})}break}case Le.ESC:s(!1)}},onKeyUp:function(){}}}),V.length===0)return l.createElement("div",{role:"listbox",className:"".concat(a,"-empty"),onMouseDown:ue},u);var Ee={fieldNames:y};return F&&(Ee.loadedKeys=F),ae&&(Ee.expandedKeys=ae),l.createElement("div",{onMouseDown:ue},U&&c&&l.createElement("span",{style:JTe,"aria-live":"assertive"},U.node.value),l.createElement(uy,pe({ref:H,focusable:!1,prefixCls:"".concat(a,"-tree"),treeData:V,height:p,itemHeight:g,itemScrollOffset:h,virtual:f!==!1&&v!==!1,multiple:o,icon:A,showIcon:O,switcherIcon:N,showLine:k,loadData:i?null:L,motion:j,activeKey:J,checkable:I,checkStrictly:!0,checkedKeys:q,selectedKeys:I?[]:T,defaultExpandAll:$,titleRender:C},Ee,{onActiveChange:G,onSelect:ye,onCheck:ye,onExpand:ie,onLoad:B,filterTreeNode:Q,expandAction:x,onScroll:w})))},tRe=l.forwardRef(eRe),hN="SHOW_ALL",vN="SHOW_PARENT",dy="SHOW_CHILD";function hD(e,t,n,r){var a=new Set(e);return t===dy?e.filter(function(o){var i=n[o];return!(i&&i.children&&i.children.some(function(s){var c=s.node;return a.has(c[r.value])})&&i.children.every(function(s){var c=s.node;return ZR(c)||a.has(c[r.value])}))}):t===vN?e.filter(function(o){var i=n[o],s=i?i.parent:null;return!(s&&!ZR(s.node)&&a.has(s.key))}):e}var nRe=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender","onPopupScroll"];function rRe(e){return!e||ht(e)!=="object"}var aRe=l.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,a=r===void 0?"rc-tree-select":r,o=e.value,i=e.defaultValue,s=e.onChange,c=e.onSelect,u=e.onDeselect,d=e.searchValue,f=e.inputValue,p=e.onSearch,g=e.autoClearSearchValue,h=g===void 0?!0:g,b=e.filterTreeNode,y=e.treeNodeFilterProp,S=y===void 0?"value":y,v=e.showCheckedStrategy,x=e.treeNodeLabelProp,C=e.multiple,w=e.treeCheckable,E=e.treeCheckStrictly,I=e.labelInValue,T=e.fieldNames,R=e.treeDataSimpleMode,_=e.treeData,$=e.children,P=e.loadData,D=e.treeLoadedKeys,A=e.onTreeLoad,O=e.treeDefaultExpandAll,N=e.treeExpandedKeys,k=e.treeDefaultExpandedKeys,M=e.onTreeExpand,L=e.treeExpandAction,F=e.virtual,j=e.listHeight,B=j===void 0?200:j,z=e.listItemHeight,H=z===void 0?20:z,V=e.listItemScrollOffset,te=V===void 0?0:V,Y=e.onDropdownVisibleChange,J=e.dropdownMatchSelectWidth,G=J===void 0?!0:J,U=e.treeLine,q=e.treeIcon,X=e.showTreeIcon,Q=e.switcherIcon,ee=e.treeMotion,oe=e.treeTitleRender,le=e.onPopupScroll,fe=xt(e,nRe),ce=sV(n),Te=w&&!E,Se=w||E,ve=E||I,ae=Se||C,ie=sn(i,{value:o}),ue=re(ie,2),ye=ue[0],Ee=ue[1],Me=l.useMemo(function(){return w?v||dy:hN},[v,w]),Ie=l.useMemo(function(){return WTe(T)},[JSON.stringify(T)]),Ce=sn("",{value:d!==void 0?d:f,postState:function(St){return St||""}}),me=re(Ce,2),we=me[0],_e=me[1],Ne=function(St){_e(St),p==null||p(St)},he=QTe(_,$,R),ke=qTe(he,Ie),xe=ke.keyEntities,ge=ke.valueEntities,Pe=l.useCallback(function(rt){var St=[],Et=[];return rt.forEach(function(tt){ge.has(tt)?Et.push(tt):St.push(tt)}),{missingRawValues:St,existRawValues:Et}},[ge]),Ve=XTe(he,we,{fieldNames:Ie,treeNodeFilterProp:S,filterTreeNode:b}),Ae=l.useCallback(function(rt){if(rt){if(x)return rt[x];for(var St=Ie._title,Et=0;Et{const{componentCls:t,treePrefixCls:n,colorBgElevated:r}=e,a=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${K(e.paddingXS)} ${K(e.calc(e.paddingXS).div(2).equal())}`},Fq(n,zt(e,{colorBgContainer:r})),{[a]:{borderRadius:0,[`${a}-list-holder-inner`]:{alignItems:"stretch",[`${a}-treenode`]:{[`${a}-node-content-wrapper`]:{flex:"auto"}}}}},LO(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${a}-switcher${a}-switcher_close`]:{[`${a}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function iRe(e,t,n){return on("TreeSelect",r=>{const a=zt(r,{treePrefixCls:t});return[oRe(a)]},jq)(e,n)}var sRe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const{prefixCls:r,size:a,disabled:o,bordered:i=!0,className:s,rootClassName:c,treeCheckable:u,multiple:d,listHeight:f=256,listItemHeight:p=26,placement:g,notFoundContent:h,switcherIcon:b,treeLine:y,getPopupContainer:S,popupClassName:v,dropdownClassName:x,treeIcon:C=!1,transitionName:w,choiceTransitionName:E="",status:I,treeExpandAction:T,builtinPlacements:R,dropdownMatchSelectWidth:_,popupMatchSelectWidth:$,allowClear:P,variant:D,dropdownStyle:A,tagRender:O}=e,N=sRe(e,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear","variant","dropdownStyle","tagRender"]),{getPopupContainer:k,getPrefixCls:M,renderEmpty:L,direction:F,virtual:j,popupMatchSelectWidth:B,popupOverflow:z}=l.useContext(st),H=M(),V=M("select",r),te=M("select-tree",r),Y=M("tree-select",r),{compactSize:J,compactItemClassnames:G}=Os(V,F),U=Un(V),q=Un(Y),[X,Q,ee]=hV(V,U),[oe]=iRe(Y,te,q),[le,fe]=Dc("treeSelect",D,i),ce=ne(v||x,`${Y}-dropdown`,{[`${Y}-dropdown-rtl`]:F==="rtl"},c,ee,U,q,Q),Te=!!(u||d),Se=vV(e.suffixIcon,e.showArrow),ve=(n=$??_)!==null&&n!==void 0?n:B,{status:ae,hasFeedback:ie,isFormItemInput:ue,feedbackIcon:ye}=l.useContext(zr),Ee=Nl(ae,I),{suffixIcon:Me,removeIcon:Ie,clearIcon:Ce}=dO(Object.assign(Object.assign({},N),{multiple:Te,showSuffixIcon:Se,hasFeedback:ie,feedbackIcon:ye,prefixCls:V,componentName:"TreeSelect"})),me=P===!0?{clearIcon:Ce}:P;let we;h!==void 0?we=h:we=(L==null?void 0:L("Select"))||l.createElement(P0,{componentName:"Select"});const _e=On(N,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon"]),Ne=l.useMemo(()=>g!==void 0?g:F==="rtl"?"bottomRight":"bottomLeft",[g,F]),he=Er(be=>{var Oe;return(Oe=a??J)!==null&&Oe!==void 0?Oe:be}),ke=l.useContext(Zr),xe=o??ke,ge=ne(!r&&Y,{[`${V}-lg`]:he==="large",[`${V}-sm`]:he==="small",[`${V}-rtl`]:F==="rtl",[`${V}-${le}`]:fe,[`${V}-in-form-item`]:ue},Is(V,Ee,ie),G,s,c,ee,U,q,Q),Pe=be=>l.createElement(Bq,{prefixCls:te,switcherIcon:b,treeNodeProps:be,showLine:y}),[Ve]=Si("SelectLike",A==null?void 0:A.zIndex),Ae=l.createElement(gm,Object.assign({virtual:j,disabled:xe},_e,{dropdownMatchSelectWidth:ve,builtinPlacements:dV(R,z),ref:t,prefixCls:V,className:ge,listHeight:f,listItemHeight:p,treeCheckable:u&&l.createElement("span",{className:`${V}-tree-checkbox-inner`}),treeLine:!!y,suffixIcon:Me,multiple:Te,placement:Ne,removeIcon:Ie,allowClear:me,switcherIcon:Pe,showTreeIcon:C,notFoundContent:we,getPopupContainer:S||k,treeMotion:null,dropdownClassName:ce,dropdownStyle:Object.assign(Object.assign({},A),{zIndex:Ve}),choiceTransitionName:xa(H,"",E),transitionName:xa(H,"slide-up",w),treeExpandAction:T,tagRender:Te?O:void 0}));return X(oe(Ae))},cRe=l.forwardRef(lRe),Al=cRe,uRe=Jg(Al);Al.TreeNode=mN;Al.SHOW_ALL=hN;Al.SHOW_PARENT=vN;Al.SHOW_CHILD=dy;Al._InternalPanelDoNotUseOrYouWillBeFired=uRe;const dRe=(e,t,n,r)=>{const{titleMarginBottom:a,fontWeightStrong:o}=r;return{marginBottom:a,color:n,fontWeight:o,fontSize:e,lineHeight:t}},fRe=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[` + ${t}-item-tail`]:{display:"none"},[`&${t}-reverse ${t}-item-pending`]:{[`${t}-item-tail`]:{insetBlockStart:e.margin,display:"block",height:`calc(100% - ${K(e.margin)})`,borderInlineStart:`${K(e.tailWidth)} dotted ${e.tailColor}`},[`${t}-item-content`]:{minHeight:n(e.controlHeightLG).mul(1.2).equal()}},[`&${t}-label`]:{[`${t}-item-label`]:{position:"absolute",insetBlockStart:n(n(e.fontSize).mul(e.lineHeight).sub(e.fontSize)).mul(-1).add(e.tailWidth).equal(),width:`calc(50% - ${K(e.marginSM)})`,textAlign:"end"},[`${t}-item-right`]:{[`${t}-item-label`]:{insetInlineStart:`calc(50% + ${K(e.marginSM)})`,width:`calc(50% - ${K(e.marginSM)})`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${t}-item-head-custom`]:{transform:"translate(50%, -50%)"}}})}},MTe=e=>({tailColor:e.colorSplit,tailWidth:e.lineWidthBold,dotBorderWidth:e.wireframe?e.lineWidthBold:e.lineWidth*3,dotBg:e.colorBgContainer,itemPaddingBottom:e.padding*1.25}),PTe=on("Timeline",e=>{const t=zt(e,{itemHeadSize:10,customHeadPaddingVertical:e.paddingXXS,paddingInlineEnd:2});return[ATe(t)]},MTe);var DTe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{prefixCls:t,className:n,color:r="blue",dot:a,pending:o=!1,position:i,label:s,children:c}=e,u=DTe(e,["prefixCls","className","color","dot","pending","position","label","children"]);const{getPrefixCls:d}=l.useContext(st),f=d("timeline",t),p=ne(`${f}-item`,{[`${f}-item-pending`]:o},n),g=/blue|red|green|gray/.test(r||"")?void 0:r,h=ne(`${f}-item-head`,{[`${f}-item-head-custom`]:!!a,[`${f}-item-head-${r}`]:!g});return l.createElement("li",Object.assign({},u,{className:p}),s&&l.createElement("div",{className:`${f}-item-label`},s),l.createElement("div",{className:`${f}-item-tail`}),l.createElement("div",{className:h,style:{borderColor:g,color:g}},a),l.createElement("div",{className:`${f}-item-content`},c))};var pD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{prefixCls:t,className:n,pending:r=!1,children:a,items:o,rootClassName:i,reverse:s=!1,direction:c,hashId:u,pendingDot:d,mode:f=""}=e,p=pD(e,["prefixCls","className","pending","children","items","rootClassName","reverse","direction","hashId","pendingDot","mode"]);const g=(C,E)=>f==="alternate"?C==="right"?`${t}-item-right`:C==="left"?`${t}-item-left`:E%2===0?`${t}-item-left`:`${t}-item-right`:f==="left"?`${t}-item-left`:f==="right"?`${t}-item-right`:C==="right"?`${t}-item-right`:"",h=Pe(o||[]),b=typeof r=="boolean"?null:r;r&&h.push({pending:!!r,dot:d||l.createElement(Ui,null),children:b}),s&&h.reverse();const y=h.length,S=`${t}-item-last`,v=h.filter(C=>!!C).map((C,E)=>{var I;const T=E===y-2?S:"",R=E===y-1?S:"",{className:_}=C,$=pD(C,["className"]);return l.createElement(Xq,Object.assign({},$,{className:ne([_,!s&&r?T:R,g((I=C==null?void 0:C.position)!==null&&I!==void 0?I:"",E)]),key:(C==null?void 0:C.key)||E}))}),x=h.some(C=>!!(C!=null&&C.label)),w=ne(t,{[`${t}-pending`]:!!r,[`${t}-reverse`]:!!s,[`${t}-${f}`]:!!f&&!x,[`${t}-label`]:x,[`${t}-rtl`]:c==="rtl"},n,i,u);return l.createElement("ul",Object.assign({},p,{className:w}),v)};function FTe(e,t){return e&&Array.isArray(e)?e:vr(t).map(n=>{var r,a;return Object.assign({children:(a=(r=n==null?void 0:n.props)===null||r===void 0?void 0:r.children)!==null&&a!==void 0?a:""},n.props)})}var jTe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:t,direction:n,timeline:r}=l.useContext(st),{prefixCls:a,children:o,items:i,className:s,style:c}=e,u=jTe(e,["prefixCls","children","items","className","style"]),d=t("timeline",a),f=Un(d),[p,g,h]=PTe(d,f),b=FTe(i,o);return p(l.createElement(LTe,Object.assign({},u,{className:ne(r==null?void 0:r.className,s,h,f),style:Object.assign(Object.assign({},r==null?void 0:r.style),c),prefixCls:d,direction:n,items:b,hashId:g})))};Zq.Item=Xq;var BTe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const n=d=>{const{keyCode:f}=d;f===Le.ENTER&&d.preventDefault()},r=d=>{const{keyCode:f}=d,{onClick:p}=e;f===Le.ENTER&&p&&p()},{style:a,noStyle:o,disabled:i,tabIndex:s=0}=e,c=BTe(e,["style","noStyle","disabled","tabIndex"]);let u={};return o||(u=Object.assign({},zTe)),i&&(u.pointerEvents="none"),u=Object.assign(Object.assign({},u),a),l.createElement("div",Object.assign({role:"button",tabIndex:s,ref:t},c,{onKeyDown:n,onKeyUp:r,style:u}))}),HTe=function(e){var t=l.useRef({valueLabels:new Map});return l.useMemo(function(){var n=t.current.valueLabels,r=new Map,a=e.map(function(o){var i,s=o.value,c=(i=o.label)!==null&&i!==void 0?i:n.get(s);return r.set(s,c),Z(Z({},o),{},{label:c})});return t.current.valueLabels=r,[a]},[e])},UTe=function(e,t,n,r){return l.useMemo(function(){var a=e.map(function(c){var u=c.value;return u}),o=t.map(function(c){var u=c.value;return u}),i=a.filter(function(c){return!r[c]});if(n){var s=vs(a,!0,r);a=s.checkedKeys,o=s.halfCheckedKeys}return[Array.from(new Set([].concat(Pe(i),Pe(a)))),o]},[e,t,n,r])};function VTe(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function WTe(e){var t=e||{},n=t.label,r=t.value,a=t.children,o=r||"value";return{_title:n?[n]:["title","label"],value:o,key:o,children:a||"children"}}function QR(e){return!e||e.disabled||e.disableCheckbox||e.checkable===!1}function GTe(e,t){var n=[];function r(a){a.forEach(function(o){var i=o[t.children];i&&(n.push(o[t.value]),r(i))})}return r(e),n}function gD(e){return e==null}const qTe=function(e,t){return l.useMemo(function(){var n=ey(e,{fieldNames:t,initWrapper:function(a){return Z(Z({},a),{},{valueEntities:new Map})},processEntity:function(a,o){var i=a.node[t.value];o.valueEntities.set(i,a)}});return n},[e,t])};var hN=function(){return null},KTe=["children","value"];function Qq(e){return vr(e).map(function(t){if(!l.isValidElement(t)||!t.type)return null;var n=t,r=n.key,a=n.props,o=a.children,i=a.value,s=xt(a,KTe),c=Z({key:r,value:i},s),u=Qq(o);return u.length&&(c.children=u),c}).filter(function(t){return t})}function JR(e){if(!e)return e;var t=Z({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return vn(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}function YTe(e,t,n,r,a,o){var i=null,s=null;function c(){function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return d.map(function(g,h){var b="".concat(f,"-").concat(h),y=g[o.value],S=n.includes(y),v=u(g[o.children]||[],b,S),x=l.createElement(hN,g,v.map(function(C){return C.node}));if(t===y&&(i=x),S){var w={pos:b,node:x,children:v};return p||s.push(w),w}return null}).filter(function(g){return g})}s||(s=[],u(r),s.sort(function(d,f){var p=d.node.props.value,g=f.node.props.value,h=n.indexOf(p),b=n.indexOf(g);return h-b}))}Object.defineProperty(e,"triggerNode",{get:function(){return vn(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),c(),i}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return vn(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),c(),a?s:s.map(function(d){var f=d.node;return f})}})}const XTe=function(e,t,n){var r=n.treeNodeFilterProp,a=n.filterTreeNode,o=n.fieldNames,i=o.children;return l.useMemo(function(){if(!t||a===!1)return e;var s;if(typeof a=="function")s=a;else{var c=t.toUpperCase();s=function(f,p){var g=p[r];return String(g).toUpperCase().includes(c)}}function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return d.reduce(function(p,g){var h=g[i],b=f||s(t,JR(g)),y=u(h||[],b);return(b||y.length)&&p.push(Z(Z({},g),{},W({isLeaf:void 0},i,y))),p},[])}return u(e)},[e,t,i,r,a])};function mD(e){var t=l.useRef();t.current=e;var n=l.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}function ZTe(e,t){var n=t.id,r=t.pId,a=t.rootPId,o={},i=[],s=e.map(function(c){var u=Z({},c),d=u[n];return o[d]=u,u.key=u.key||d,u});return s.forEach(function(c){var u=c[r],d=o[u];d&&(d.children=d.children||[],d.children.push(c)),(u===a||!d&&a===null)&&i.push(c)}),i}function QTe(e,t,n){return l.useMemo(function(){return e?n?ZTe(e,Z({id:"id",pId:"pId",rootPId:null},n!==!0?n:{})):e:Qq(t)},[t,n,e])}var Jq=l.createContext(null),eK=l.createContext(null),JTe={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},eRe=function(t,n){var r=YU(),a=r.prefixCls,o=r.multiple,i=r.searchValue,s=r.toggleOpen,c=r.open,u=r.notFoundContent,d=l.useContext(eK),f=d.virtual,p=d.listHeight,g=d.listItemHeight,h=d.listItemScrollOffset,b=d.treeData,y=d.fieldNames,S=d.onSelect,v=d.dropdownMatchSelectWidth,x=d.treeExpandAction,w=d.treeTitleRender,C=d.onPopupScroll,E=l.useContext(Jq),I=E.checkable,T=E.checkedKeys,R=E.halfCheckedKeys,_=E.treeExpandedKeys,$=E.treeDefaultExpandAll,P=E.treeDefaultExpandedKeys,D=E.onTreeExpand,A=E.treeIcon,O=E.showTreeIcon,N=E.switcherIcon,k=E.treeLine,M=E.treeNodeFilterProp,L=E.loadData,F=E.treeLoadedKeys,j=E.treeMotion,B=E.onTreeLoad,z=E.keyEntities,H=l.useRef(),V=_l(function(){return b},[c,b],function(Me,Ce){return Ce[0]&&Me[1]!==Ce[1]}),te=l.useState(null),Y=re(te,2),J=Y[0],G=Y[1],U=z[J],q=l.useMemo(function(){return I?{checked:T,halfChecked:R}:null},[I,T,R]);l.useEffect(function(){if(c&&!o&&T.length){var Me;(Me=H.current)===null||Me===void 0||Me.scrollTo({key:T[0]}),G(T[0])}},[c]);var X=String(i).toLowerCase(),Q=function(Ce){return X?String(Ce[M]).toLowerCase().includes(X):!1},ee=l.useState(P),oe=re(ee,2),le=oe[0],fe=oe[1],ce=l.useState(null),Ie=re(ce,2),be=Ie[0],he=Ie[1],ae=l.useMemo(function(){return _?Pe(_):i?be:le},[le,be,_,i]);l.useEffect(function(){i&&he(GTe(b,y))},[i]);var ie=function(Ce){fe(Ce),he(Ce),D&&D(Ce)},ue=function(Ce){Ce.preventDefault()},xe=function(Ce,De){var ye=De.node;I&&QR(ye)||(S(ye.key,{selected:!T.includes(ye.key)}),o||s(!1))};if(l.useImperativeHandle(n,function(){var Me;return{scrollTo:(Me=H.current)===null||Me===void 0?void 0:Me.scrollTo,onKeyDown:function(De){var ye,ve=De.which;switch(ve){case Le.UP:case Le.DOWN:case Le.LEFT:case Le.RIGHT:(ye=H.current)===null||ye===void 0||ye.onKeyDown(De);break;case Le.ENTER:{if(U){var $e=(U==null?void 0:U.node)||{},Ee=$e.selectable,ge=$e.value;Ee!==!1&&xe(null,{node:{key:J},selected:!T.includes(ge)})}break}case Le.ESC:s(!1)}},onKeyUp:function(){}}}),V.length===0)return l.createElement("div",{role:"listbox",className:"".concat(a,"-empty"),onMouseDown:ue},u);var we={fieldNames:y};return F&&(we.loadedKeys=F),ae&&(we.expandedKeys=ae),l.createElement("div",{onMouseDown:ue},U&&c&&l.createElement("span",{style:JTe,"aria-live":"assertive"},U.node.value),l.createElement(dy,pe({ref:H,focusable:!1,prefixCls:"".concat(a,"-tree"),treeData:V,height:p,itemHeight:g,itemScrollOffset:h,virtual:f!==!1&&v!==!1,multiple:o,icon:A,showIcon:O,switcherIcon:N,showLine:k,loadData:i?null:L,motion:j,activeKey:J,checkable:I,checkStrictly:!0,checkedKeys:q,selectedKeys:I?[]:T,defaultExpandAll:$,titleRender:w},we,{onActiveChange:G,onSelect:xe,onCheck:xe,onExpand:ie,onLoad:B,filterTreeNode:Q,expandAction:x,onScroll:C})))},tRe=l.forwardRef(eRe),vN="SHOW_ALL",bN="SHOW_PARENT",fy="SHOW_CHILD";function hD(e,t,n,r){var a=new Set(e);return t===fy?e.filter(function(o){var i=n[o];return!(i&&i.children&&i.children.some(function(s){var c=s.node;return a.has(c[r.value])})&&i.children.every(function(s){var c=s.node;return QR(c)||a.has(c[r.value])}))}):t===bN?e.filter(function(o){var i=n[o],s=i?i.parent:null;return!(s&&!QR(s.node)&&a.has(s.key))}):e}var nRe=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender","onPopupScroll"];function rRe(e){return!e||mt(e)!=="object"}var aRe=l.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,a=r===void 0?"rc-tree-select":r,o=e.value,i=e.defaultValue,s=e.onChange,c=e.onSelect,u=e.onDeselect,d=e.searchValue,f=e.inputValue,p=e.onSearch,g=e.autoClearSearchValue,h=g===void 0?!0:g,b=e.filterTreeNode,y=e.treeNodeFilterProp,S=y===void 0?"value":y,v=e.showCheckedStrategy,x=e.treeNodeLabelProp,w=e.multiple,C=e.treeCheckable,E=e.treeCheckStrictly,I=e.labelInValue,T=e.fieldNames,R=e.treeDataSimpleMode,_=e.treeData,$=e.children,P=e.loadData,D=e.treeLoadedKeys,A=e.onTreeLoad,O=e.treeDefaultExpandAll,N=e.treeExpandedKeys,k=e.treeDefaultExpandedKeys,M=e.onTreeExpand,L=e.treeExpandAction,F=e.virtual,j=e.listHeight,B=j===void 0?200:j,z=e.listItemHeight,H=z===void 0?20:z,V=e.listItemScrollOffset,te=V===void 0?0:V,Y=e.onDropdownVisibleChange,J=e.dropdownMatchSelectWidth,G=J===void 0?!0:J,U=e.treeLine,q=e.treeIcon,X=e.showTreeIcon,Q=e.switcherIcon,ee=e.treeMotion,oe=e.treeTitleRender,le=e.onPopupScroll,fe=xt(e,nRe),ce=sV(n),Ie=C&&!E,be=C||E,he=E||I,ae=be||w,ie=sn(i,{value:o}),ue=re(ie,2),xe=ue[0],we=ue[1],Me=l.useMemo(function(){return C?v||fy:vN},[v,C]),Ce=l.useMemo(function(){return WTe(T)},[JSON.stringify(T)]),De=sn("",{value:d!==void 0?d:f,postState:function(St){return St||""}}),ye=re(De,2),ve=ye[0],$e=ye[1],Ee=function(St){$e(St),p==null||p(St)},ge=QTe(_,$,R),Ne=qTe(ge,Ce),Re=Ne.keyEntities,me=Ne.valueEntities,_e=l.useCallback(function(rt){var St=[],Et=[];return rt.forEach(function(tt){me.has(tt)?Et.push(tt):St.push(tt)}),{missingRawValues:St,existRawValues:Et}},[me]),Ze=XTe(ge,ve,{fieldNames:Ce,treeNodeFilterProp:S,filterTreeNode:b}),Oe=l.useCallback(function(rt){if(rt){if(x)return rt[x];for(var St=Ce._title,Et=0;Et{const{componentCls:t,treePrefixCls:n,colorBgElevated:r}=e,a=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${K(e.paddingXS)} ${K(e.calc(e.paddingXS).div(2).equal())}`},Fq(n,zt(e,{colorBgContainer:r})),{[a]:{borderRadius:0,[`${a}-list-holder-inner`]:{alignItems:"stretch",[`${a}-treenode`]:{[`${a}-node-content-wrapper`]:{flex:"auto"}}}}},FO(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${a}-switcher${a}-switcher_close`]:{[`${a}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function iRe(e,t,n){return on("TreeSelect",r=>{const a=zt(r,{treePrefixCls:t});return[oRe(a)]},jq)(e,n)}var sRe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const{prefixCls:r,size:a,disabled:o,bordered:i=!0,className:s,rootClassName:c,treeCheckable:u,multiple:d,listHeight:f=256,listItemHeight:p=26,placement:g,notFoundContent:h,switcherIcon:b,treeLine:y,getPopupContainer:S,popupClassName:v,dropdownClassName:x,treeIcon:w=!1,transitionName:C,choiceTransitionName:E="",status:I,treeExpandAction:T,builtinPlacements:R,dropdownMatchSelectWidth:_,popupMatchSelectWidth:$,allowClear:P,variant:D,dropdownStyle:A,tagRender:O}=e,N=sRe(e,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear","variant","dropdownStyle","tagRender"]),{getPopupContainer:k,getPrefixCls:M,renderEmpty:L,direction:F,virtual:j,popupMatchSelectWidth:B,popupOverflow:z}=l.useContext(st),H=M(),V=M("select",r),te=M("select-tree",r),Y=M("tree-select",r),{compactSize:J,compactItemClassnames:G}=Ns(V,F),U=Un(V),q=Un(Y),[X,Q,ee]=hV(V,U),[oe]=iRe(Y,te,q),[le,fe]=Dc("treeSelect",D,i),ce=ne(v||x,`${Y}-dropdown`,{[`${Y}-dropdown-rtl`]:F==="rtl"},c,ee,U,q,Q),Ie=!!(u||d),be=vV(e.suffixIcon,e.showArrow),he=(n=$??_)!==null&&n!==void 0?n:B,{status:ae,hasFeedback:ie,isFormItemInput:ue,feedbackIcon:xe}=l.useContext(zr),we=Nl(ae,I),{suffixIcon:Me,removeIcon:Ce,clearIcon:De}=fO(Object.assign(Object.assign({},N),{multiple:Ie,showSuffixIcon:be,hasFeedback:ie,feedbackIcon:xe,prefixCls:V,componentName:"TreeSelect"})),ye=P===!0?{clearIcon:De}:P;let ve;h!==void 0?ve=h:ve=(L==null?void 0:L("Select"))||l.createElement(D0,{componentName:"Select"});const $e=On(N,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon"]),Ee=l.useMemo(()=>g!==void 0?g:F==="rtl"?"bottomRight":"bottomLeft",[g,F]),ge=Er(Se=>{var Ae;return(Ae=a??J)!==null&&Ae!==void 0?Ae:Se}),Ne=l.useContext(Jr),Re=o??Ne,me=ne(!r&&Y,{[`${V}-lg`]:ge==="large",[`${V}-sm`]:ge==="small",[`${V}-rtl`]:F==="rtl",[`${V}-${le}`]:fe,[`${V}-in-form-item`]:ue},Ts(V,we,ie),G,s,c,ee,U,q,Q),_e=Se=>l.createElement(Bq,{prefixCls:te,switcherIcon:b,treeNodeProps:Se,showLine:y}),[Ze]=xi("SelectLike",A==null?void 0:A.zIndex),Oe=l.createElement(hm,Object.assign({virtual:j,disabled:Re},$e,{dropdownMatchSelectWidth:he,builtinPlacements:dV(R,z),ref:t,prefixCls:V,className:me,listHeight:f,listItemHeight:p,treeCheckable:u&&l.createElement("span",{className:`${V}-tree-checkbox-inner`}),treeLine:!!y,suffixIcon:Me,multiple:Ie,placement:Ee,removeIcon:Ce,allowClear:ye,switcherIcon:_e,showTreeIcon:w,notFoundContent:ve,getPopupContainer:S||k,treeMotion:null,dropdownClassName:ce,dropdownStyle:Object.assign(Object.assign({},A),{zIndex:Ze}),choiceTransitionName:Ca(H,"",E),transitionName:Ca(H,"slide-up",C),treeExpandAction:T,tagRender:Ie?O:void 0}));return X(oe(Oe))},cRe=l.forwardRef(lRe),Al=cRe,uRe=tm(Al);Al.TreeNode=hN;Al.SHOW_ALL=vN;Al.SHOW_PARENT=bN;Al.SHOW_CHILD=fy;Al._InternalPanelDoNotUseOrYouWillBeFired=uRe;const dRe=(e,t,n,r)=>{const{titleMarginBottom:a,fontWeightStrong:o}=r;return{marginBottom:a,color:n,fontWeight:o,fontSize:e,lineHeight:t}},fRe=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[` h${r}&, div&-h${r}, div&-h${r} > textarea, h${r} - `]=dRe(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},pRe=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},V$(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},gRe=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:ib[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),mRe=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(r).mul(-1).equal(),marginBottom:`calc(1em - ${K(r)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},hRe=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),vRe=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),bRe=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},fRe(e)),{[` + `]=dRe(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},pRe=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},W$(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},gRe=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:sb[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),mRe=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(r).mul(-1).equal(),marginBottom:`calc(1em - ${K(r)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},hRe=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),vRe=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),bRe=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},fRe(e)),{[` & + h1${t}, & + h2${t}, & + h3${t}, @@ -473,27 +473,27 @@ html body { ${t}-collapse, ${t}-edit, ${t}-copy - `]:Object.assign(Object.assign({},V$(e)),{marginInlineStart:e.marginXXS})}),mRe(e)),hRe(e)),vRe()),{"&-rtl":{direction:"rtl"}})}},yRe=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),tK=on("Typography",e=>[bRe(e)],yRe),SRe=e=>{const{prefixCls:t,"aria-label":n,className:r,style:a,direction:o,maxLength:i,autoSize:s=!0,value:c,onSave:u,onCancel:d,onEnd:f,component:p,enterIcon:g=l.createElement(Pxe,null)}=e,h=l.useRef(null),b=l.useRef(!1),y=l.useRef(),[S,v]=l.useState(c);l.useEffect(()=>{v(c)},[c]),l.useEffect(()=>{var A;if(!((A=h.current)===null||A===void 0)&&A.resizableTextArea){const{textArea:O}=h.current.resizableTextArea;O.focus();const{length:N}=O.value;O.setSelectionRange(N,N)}},[]);const x=A=>{let{target:O}=A;v(O.value.replace(/[\n\r]/g,""))},C=()=>{b.current=!0},w=()=>{b.current=!1},E=A=>{let{keyCode:O}=A;b.current||(y.current=O)},I=()=>{u(S.trim())},T=A=>{let{keyCode:O,ctrlKey:N,altKey:k,metaKey:M,shiftKey:L}=A;y.current!==O||b.current||N||k||M||L||(O===Le.ENTER?(I(),f==null||f()):O===Le.ESC&&d())},R=()=>{I()},[_,$,P]=tK(t),D=ne(t,`${t}-edit-content`,{[`${t}-rtl`]:o==="rtl",[`${t}-${p}`]:!!p},r,$,P);return _(l.createElement("div",{className:D,style:a},l.createElement(fG,{ref:h,maxLength:i,value:S,onChange:x,onKeyDown:E,onKeyUp:T,onCompositionStart:C,onCompositionEnd:w,onBlur:R,"aria-label":n,rows:1,autoSize:s}),g!==null?Cr(g,{className:`${t}-edit-content-confirm`}):null))};var xRe=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var f=vD[t.format]||vD.default;window.clipboardData.setData(f,e)}else d.clipboardData.clearData(),d.clipboardData.setData(t.format,e);t.onCopy&&(d.preventDefault(),t.onCopy(d.clipboardData))}),document.body.appendChild(s),o.selectNodeContents(s),i.addRange(o);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");c=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),r=ERe("message"in t?t.message:CRe),window.prompt(r,e)}}finally{i&&(typeof i.removeRange=="function"?i.removeRange(o):i.removeAllRanges()),s&&document.body.removeChild(s),a()}return c}var TRe=IRe;const RRe=Ma(TRe);var _Re=function(e,t,n,r){function a(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function s(d){try{u(r.next(d))}catch(f){i(f)}}function c(d){try{u(r.throw(d))}catch(f){i(f)}}function u(d){d.done?o(d.value):a(d.value).then(s,c)}u((r=r.apply(e,t||[])).next())})};const $Re=e=>{let{copyConfig:t,children:n}=e;const[r,a]=l.useState(!1),[o,i]=l.useState(!1),s=l.useRef(null),c=()=>{s.current&&clearTimeout(s.current)},u={};t.format&&(u.format=t.format),l.useEffect(()=>c,[]);const d=Wt(f=>_Re(void 0,void 0,void 0,function*(){var p;f==null||f.preventDefault(),f==null||f.stopPropagation(),i(!0);try{const g=typeof t.text=="function"?yield t.text():t.text;RRe(g||String(n)||"",u),i(!1),a(!0),c(),s.current=setTimeout(()=>{a(!1)},3e3),(p=t.onCopy)===null||p===void 0||p.call(t,f)}catch(g){throw i(!1),g}}));return{copied:r,copyLoading:o,onClick:d}};function C1(e,t){return l.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const ORe=e=>{const t=l.useRef();return l.useEffect(()=>{t.current=e}),t.current},NRe=(e,t,n)=>l.useMemo(()=>e===!0?{title:t??n}:l.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);var kRe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,component:r="article",className:a,rootClassName:o,setContentRef:i,children:s,direction:c,style:u}=e,d=kRe(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:p,typography:g}=l.useContext(st),h=c??p,b=i?ea(t,i):t,y=f("typography",n),[S,v,x]=tK(y),C=ne(y,g==null?void 0:g.className,{[`${y}-rtl`]:h==="rtl"},a,o,v,x),w=Object.assign(Object.assign({},g==null?void 0:g.style),u);return S(l.createElement(r,Object.assign({className:C,style:w,ref:b},d),s))});function bD(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function E1(e,t,n){return e===!0||e===void 0?t:e||n&&t}function ARe(e){const t=document.createElement("em");e.appendChild(t);const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}const bN=e=>["string","number"].includes(typeof e),MRe=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:a,tooltips:o,icon:i,tabIndex:s,onCopy:c,loading:u}=e;const d=bD(o),f=bD(i),{copied:p,copy:g}=r??{},h=n?p:g,b=E1(d[n?1:0],h),y=typeof b=="string"?b:h;return l.createElement(Zt,{title:b},l.createElement(XR,{className:ne(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:a}),onClick:c,"aria-label":y,tabIndex:s},n?E1(f[1],l.createElement(nm,null),!0):E1(f[0],u?l.createElement(Hi,null):l.createElement(ZO,null),!0)))},wh=l.forwardRef((e,t)=>{let{style:n,children:r}=e;const a=l.useRef(null);return l.useImperativeHandle(t,()=>({isExceed:()=>{const o=a.current;return o.scrollHeight>o.clientHeight},getHeight:()=>a.current.clientHeight})),l.createElement("span",{"aria-hidden":!0,ref:a,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},n)},r)}),PRe=e=>e.reduce((t,n)=>t+(bN(n)?String(n).length:1),0);function yD(e,t){let n=0;const r=[];for(let a=0;at){const u=t-n;return r.push(String(o).slice(0,u)),r}r.push(o),n=c}return e}const I1=0,T1=1,R1=2,_1=3,SD=4,Ch={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function DRe(e){const{enableMeasure:t,width:n,text:r,children:a,rows:o,expanded:i,miscDeps:s,onEllipsis:c}=e,u=l.useMemo(()=>vr(r),[r]),d=l.useMemo(()=>PRe(u),[r]),f=l.useMemo(()=>a(u,!1),[r]),[p,g]=l.useState(null),h=l.useRef(null),b=l.useRef(null),y=l.useRef(null),S=l.useRef(null),v=l.useRef(null),[x,C]=l.useState(!1),[w,E]=l.useState(I1),[I,T]=l.useState(0),[R,_]=l.useState(null);Xt(()=>{E(t&&n&&d?T1:I1)},[n,r,o,t,u]),Xt(()=>{var A,O,N,k;if(w===T1){E(R1);const M=b.current&&getComputedStyle(b.current).whiteSpace;_(M)}else if(w===R1){const M=!!(!((A=y.current)===null||A===void 0)&&A.isExceed());E(M?_1:SD),g(M?[0,d]:null),C(M);const L=((O=y.current)===null||O===void 0?void 0:O.getHeight())||0,F=o===1?0:((N=S.current)===null||N===void 0?void 0:N.getHeight())||0,j=((k=v.current)===null||k===void 0?void 0:k.getHeight())||0,B=Math.max(L,F+j);T(B+1),c(M)}},[w]);const $=p?Math.ceil((p[0]+p[1])/2):0;Xt(()=>{var A;const[O,N]=p||[0,0];if(O!==N){const M=(((A=h.current)===null||A===void 0?void 0:A.getHeight())||0)>I;let L=$;N-O===1&&(L=M?O:N),g(M?[O,L]:[L,N])}},[p,$]);const P=l.useMemo(()=>{if(!t)return a(u,!1);if(w!==_1||!p||p[0]!==p[1]){const A=a(u,!1);return[SD,I1].includes(w)?A:l.createElement("span",{style:Object.assign(Object.assign({},Ch),{WebkitLineClamp:o})},A)}return a(i?u:yD(u,p[0]),x)},[i,w,p,u].concat(De(s))),D={width:n,margin:0,padding:0,whiteSpace:R==="nowrap"?"normal":"inherit"};return l.createElement(l.Fragment,null,P,w===R1&&l.createElement(l.Fragment,null,l.createElement(wh,{style:Object.assign(Object.assign(Object.assign({},D),Ch),{WebkitLineClamp:o}),ref:y},f),l.createElement(wh,{style:Object.assign(Object.assign(Object.assign({},D),Ch),{WebkitLineClamp:o-1}),ref:S},f),l.createElement(wh,{style:Object.assign(Object.assign(Object.assign({},D),Ch),{WebkitLineClamp:1}),ref:v},a([],!0))),w===_1&&p&&p[0]!==p[1]&&l.createElement(wh,{style:Object.assign(Object.assign({},D),{top:400}),ref:h},a(yD(u,$),!0)),w===T1&&l.createElement("span",{style:{whiteSpace:"inherit"},ref:b}))}const LRe=e=>{let{enableEllipsis:t,isEllipsis:n,children:r,tooltipProps:a}=e;return!(a!=null&&a.title)||!t?r:l.createElement(Zt,Object.assign({open:n?void 0:!1},a),r)};var FRe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const{prefixCls:r,className:a,style:o,type:i,disabled:s,children:c,ellipsis:u,editable:d,copyable:f,component:p,title:g}=e,h=FRe(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:b,direction:y}=l.useContext(st),[S]=qi("Text"),v=l.useRef(null),x=l.useRef(null),C=b("typography",r),w=On(h,["mark","code","delete","underline","strong","keyboard","italic"]),[E,I]=C1(d),[T,R]=sn(!1,{value:I.editing}),{triggerType:_=["icon"]}=I,$=xe=>{var ge;xe&&((ge=I.onStart)===null||ge===void 0||ge.call(I)),R(xe)},P=ORe(T);Xt(()=>{var xe;!T&&P&&((xe=x.current)===null||xe===void 0||xe.focus())},[T]);const D=xe=>{xe==null||xe.preventDefault(),$(!0)},A=xe=>{var ge;(ge=I.onChange)===null||ge===void 0||ge.call(I,xe),$(!1)},O=()=>{var xe;(xe=I.onCancel)===null||xe===void 0||xe.call(I),$(!1)},[N,k]=C1(f),{copied:M,copyLoading:L,onClick:F}=$Re({copyConfig:k,children:c}),[j,B]=l.useState(!1),[z,H]=l.useState(!1),[V,te]=l.useState(!1),[Y,J]=l.useState(!1),[G,U]=l.useState(!0),[q,X]=C1(u,{expandable:!1,symbol:xe=>xe?S==null?void 0:S.collapse:S==null?void 0:S.expand}),[Q,ee]=sn(X.defaultExpanded||!1,{value:X.expanded}),oe=q&&(!Q||X.expandable==="collapsible"),{rows:le=1}=X,fe=l.useMemo(()=>oe&&(X.suffix!==void 0||X.onEllipsis||X.expandable||E||N),[oe,X,E,N]);Xt(()=>{q&&!fe&&(B(fR("webkitLineClamp")),H(fR("textOverflow")))},[fe,q]);const[ce,Te]=l.useState(oe),Se=l.useMemo(()=>fe?!1:le===1?z:j,[fe,z,j]);Xt(()=>{Te(Se&&oe)},[Se,oe]);const ve=oe&&(ce?Y:V),ae=oe&&le===1&&ce,ie=oe&&le>1&&ce,ue=(xe,ge)=>{var Pe;ee(ge.expanded),(Pe=X.onExpand)===null||Pe===void 0||Pe.call(X,xe,ge)},[ye,Ee]=l.useState(0),Me=xe=>{let{offsetWidth:ge}=xe;Ee(ge)},Ie=xe=>{var ge;te(xe),V!==xe&&((ge=X.onEllipsis)===null||ge===void 0||ge.call(X,xe))};l.useEffect(()=>{const xe=v.current;if(q&&ce&&xe){const ge=ARe(xe);Y!==ge&&J(ge)}},[q,ce,c,ie,G,ye]),l.useEffect(()=>{const xe=v.current;if(typeof IntersectionObserver>"u"||!xe||!ce||!oe)return;const ge=new IntersectionObserver(()=>{U(!!xe.offsetParent)});return ge.observe(xe),()=>{ge.disconnect()}},[ce,oe]);const Ce=NRe(X.tooltip,I.text,c),me=l.useMemo(()=>{if(!(!q||ce))return[I.text,c,g,Ce.title].find(bN)},[q,ce,g,Ce.title,ve]);if(T)return l.createElement(SRe,{value:(n=I.text)!==null&&n!==void 0?n:typeof c=="string"?c:"",onSave:A,onCancel:O,onEnd:I.onEnd,prefixCls:C,className:a,style:o,direction:y,component:p,maxLength:I.maxLength,autoSize:I.autoSize,enterIcon:I.enterIcon});const we=()=>{const{expandable:xe,symbol:ge}=X;return xe?l.createElement(XR,{key:"expand",className:`${C}-${Q?"collapse":"expand"}`,onClick:Pe=>ue(Pe,{expanded:!Q}),"aria-label":Q?S.collapse:S==null?void 0:S.expand},typeof ge=="function"?ge(Q):ge):null},_e=()=>{if(!E)return;const{icon:xe,tooltip:ge,tabIndex:Pe}=I,Ve=vr(ge)[0]||(S==null?void 0:S.edit),Ae=typeof Ve=="string"?Ve:"";return _.includes("icon")?l.createElement(Zt,{key:"edit",title:ge===!1?"":Ve},l.createElement(XR,{ref:x,className:`${C}-edit`,onClick:D,"aria-label":Ae,tabIndex:Pe},xe||l.createElement(vg,{role:"button"}))):null},Ne=()=>N?l.createElement(MRe,Object.assign({key:"copy"},k,{prefixCls:C,copied:M,locale:S,onCopy:F,loading:L,iconOnly:c==null})):null,he=xe=>[xe&&we(),_e(),Ne()],ke=xe=>[xe&&!Q&&l.createElement("span",{"aria-hidden":!0,key:"ellipsis"},BRe),X.suffix,he(xe)];return l.createElement(sa,{onResize:Me,disabled:!oe},xe=>l.createElement(LRe,{tooltipProps:Ce,enableEllipsis:oe,isEllipsis:ve},l.createElement(nK,Object.assign({className:ne({[`${C}-${i}`]:i,[`${C}-disabled`]:s,[`${C}-ellipsis`]:q,[`${C}-ellipsis-single-line`]:ae,[`${C}-ellipsis-multiple-line`]:ie},a),prefixCls:r,style:Object.assign(Object.assign({},o),{WebkitLineClamp:ie?le:void 0}),component:p,ref:ea(xe,v,t),direction:y,onClick:_.includes("text")?D:void 0,"aria-label":me==null?void 0:me.toString(),title:g},w),l.createElement(DRe,{enableMeasure:oe&&!ce,text:c,rows:le,width:ye,onEllipsis:Ie,expanded:Q,miscDeps:[M,Q,L,E,N]},(ge,Pe)=>jRe(e,l.createElement(l.Fragment,null,ge.length>0&&Pe&&!Q&&me?l.createElement("span",{key:"show-content","aria-hidden":!0},ge):ge,ke(Pe)))))))});var zRe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{ellipsis:n,rel:r}=e,a=zRe(e,["ellipsis","rel"]);const o=Object.assign(Object.assign({},a),{rel:r===void 0&&a.target==="_blank"?"noopener noreferrer":r});return delete o.navigate,l.createElement(fy,Object.assign({},o,{ref:t,ellipsis:!!n,component:"a"}))}),URe=l.forwardRef((e,t)=>l.createElement(fy,Object.assign({ref:t},e,{component:"div"})));var VRe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{ellipsis:n}=e,r=VRe(e,["ellipsis"]);const a=l.useMemo(()=>n&&typeof n=="object"?On(n,["expandable","rows"]):n,[n]);return l.createElement(fy,Object.assign({ref:t},r,{ellipsis:a,component:"span"}))},GRe=l.forwardRef(WRe);var qRe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{level:n=1}=e,r=qRe(e,["level"]),a=KRe.includes(n)?`h${n}`:"h1";return l.createElement(fy,Object.assign({ref:t},r,{component:a}))}),bn=nK;bn.Text=GRe;bn.Link=HRe;bn.Title=YRe;bn.Paragraph=URe;const $1=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",a=e.type||"",o=a.replace(/\/.*$/,"");return n.some(function(i){var s=i.trim();if(/^\*(\/\*)?$/.test(i))return!0;if(s.charAt(0)==="."){var c=r.toLowerCase(),u=s.toLowerCase(),d=[u];return(u===".jpg"||u===".jpeg")&&(d=[".jpg",".jpeg"]),d.some(function(f){return c.endsWith(f)})}return/\/\*$/.test(s)?o===s.replace(/\/.*$/,""):a===s?!0:/^\w+$/.test(s)?(vn(!1,"Upload takes an invalidate 'accept' type '".concat(s,"'.Skip for check.")),!0):!1})}return!0};function XRe(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}function xD(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function ZRe(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(o){o.total>0&&(o.percent=o.loaded/o.total*100),e.onProgress(o)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(a){var o=e.data[a];if(Array.isArray(o)){o.forEach(function(i){n.append("".concat(a,"[]"),i)});return}n.append(a,o)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(o){e.onError(o)},t.onload=function(){return t.status<200||t.status>=300?e.onError(XRe(e,t),xD(t)):e.onSuccess(xD(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return r["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(function(a){r[a]!==null&&t.setRequestHeader(a,r[a])}),t.send(n),{abort:function(){t.abort()}}}var QRe=function(){var e=po(Hn().mark(function t(n,r){var a,o,i,s,c,u,d,f;return Hn().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:u=function(){return u=po(Hn().mark(function b(y){return Hn().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.abrupt("return",new Promise(function(x){y.file(function(C){r(C)?(y.fullPath&&!C.webkitRelativePath&&(Object.defineProperties(C,{webkitRelativePath:{writable:!0}}),C.webkitRelativePath=y.fullPath.replace(/^\//,""),Object.defineProperties(C,{webkitRelativePath:{writable:!1}})),x(C)):x(null)})}));case 1:case"end":return v.stop()}},b)})),u.apply(this,arguments)},c=function(b){return u.apply(this,arguments)},s=function(){return s=po(Hn().mark(function b(y){var S,v,x,C,w;return Hn().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:S=y.createReader(),v=[];case 2:return I.next=5,new Promise(function(T){S.readEntries(T,function(){return T([])})});case 5:if(x=I.sent,C=x.length,C){I.next=9;break}return I.abrupt("break",12);case 9:for(w=0;w{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${K(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${K(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` + `]:Object.assign(Object.assign({},W$(e)),{marginInlineStart:e.marginXXS})}),mRe(e)),hRe(e)),vRe()),{"&-rtl":{direction:"rtl"}})}},yRe=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),tK=on("Typography",e=>[bRe(e)],yRe),SRe=e=>{const{prefixCls:t,"aria-label":n,className:r,style:a,direction:o,maxLength:i,autoSize:s=!0,value:c,onSave:u,onCancel:d,onEnd:f,component:p,enterIcon:g=l.createElement(Pxe,null)}=e,h=l.useRef(null),b=l.useRef(!1),y=l.useRef(),[S,v]=l.useState(c);l.useEffect(()=>{v(c)},[c]),l.useEffect(()=>{var A;if(!((A=h.current)===null||A===void 0)&&A.resizableTextArea){const{textArea:O}=h.current.resizableTextArea;O.focus();const{length:N}=O.value;O.setSelectionRange(N,N)}},[]);const x=A=>{let{target:O}=A;v(O.value.replace(/[\n\r]/g,""))},w=()=>{b.current=!0},C=()=>{b.current=!1},E=A=>{let{keyCode:O}=A;b.current||(y.current=O)},I=()=>{u(S.trim())},T=A=>{let{keyCode:O,ctrlKey:N,altKey:k,metaKey:M,shiftKey:L}=A;y.current!==O||b.current||N||k||M||L||(O===Le.ENTER?(I(),f==null||f()):O===Le.ESC&&d())},R=()=>{I()},[_,$,P]=tK(t),D=ne(t,`${t}-edit-content`,{[`${t}-rtl`]:o==="rtl",[`${t}-${p}`]:!!p},r,$,P);return _(l.createElement("div",{className:D,style:a},l.createElement(fG,{ref:h,maxLength:i,value:S,onChange:x,onKeyDown:E,onKeyUp:T,onCompositionStart:w,onCompositionEnd:C,onBlur:R,"aria-label":n,rows:1,autoSize:s}),g!==null?Cr(g,{className:`${t}-edit-content-confirm`}):null))};var xRe=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var f=vD[t.format]||vD.default;window.clipboardData.setData(f,e)}else d.clipboardData.clearData(),d.clipboardData.setData(t.format,e);t.onCopy&&(d.preventDefault(),t.onCopy(d.clipboardData))}),document.body.appendChild(s),o.selectNodeContents(s),i.addRange(o);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");c=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),r=ERe("message"in t?t.message:CRe),window.prompt(r,e)}}finally{i&&(typeof i.removeRange=="function"?i.removeRange(o):i.removeAllRanges()),s&&document.body.removeChild(s),a()}return c}var TRe=IRe;const RRe=Pa(TRe);var _Re=function(e,t,n,r){function a(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function s(d){try{u(r.next(d))}catch(f){i(f)}}function c(d){try{u(r.throw(d))}catch(f){i(f)}}function u(d){d.done?o(d.value):a(d.value).then(s,c)}u((r=r.apply(e,t||[])).next())})};const $Re=e=>{let{copyConfig:t,children:n}=e;const[r,a]=l.useState(!1),[o,i]=l.useState(!1),s=l.useRef(null),c=()=>{s.current&&clearTimeout(s.current)},u={};t.format&&(u.format=t.format),l.useEffect(()=>c,[]);const d=Wt(f=>_Re(void 0,void 0,void 0,function*(){var p;f==null||f.preventDefault(),f==null||f.stopPropagation(),i(!0);try{const g=typeof t.text=="function"?yield t.text():t.text;RRe(g||String(n)||"",u),i(!1),a(!0),c(),s.current=setTimeout(()=>{a(!1)},3e3),(p=t.onCopy)===null||p===void 0||p.call(t,f)}catch(g){throw i(!1),g}}));return{copied:r,copyLoading:o,onClick:d}};function E1(e,t){return l.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const ORe=e=>{const t=l.useRef();return l.useEffect(()=>{t.current=e}),t.current},NRe=(e,t,n)=>l.useMemo(()=>e===!0?{title:t??n}:l.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);var kRe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,component:r="article",className:a,rootClassName:o,setContentRef:i,children:s,direction:c,style:u}=e,d=kRe(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:p,typography:g}=l.useContext(st),h=c??p,b=i?na(t,i):t,y=f("typography",n),[S,v,x]=tK(y),w=ne(y,g==null?void 0:g.className,{[`${y}-rtl`]:h==="rtl"},a,o,v,x),C=Object.assign(Object.assign({},g==null?void 0:g.style),u);return S(l.createElement(r,Object.assign({className:w,style:C,ref:b},d),s))});function bD(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function I1(e,t,n){return e===!0||e===void 0?t:e||n&&t}function ARe(e){const t=document.createElement("em");e.appendChild(t);const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}const yN=e=>["string","number"].includes(typeof e),MRe=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:a,tooltips:o,icon:i,tabIndex:s,onCopy:c,loading:u}=e;const d=bD(o),f=bD(i),{copied:p,copy:g}=r??{},h=n?p:g,b=I1(d[n?1:0],h),y=typeof b=="string"?b:h;return l.createElement(Zt,{title:b},l.createElement(ZR,{className:ne(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:a}),onClick:c,"aria-label":y,tabIndex:s},n?I1(f[1],l.createElement(am,null),!0):I1(f[0],u?l.createElement(Ui,null):l.createElement(QO,null),!0)))},Eh=l.forwardRef((e,t)=>{let{style:n,children:r}=e;const a=l.useRef(null);return l.useImperativeHandle(t,()=>({isExceed:()=>{const o=a.current;return o.scrollHeight>o.clientHeight},getHeight:()=>a.current.clientHeight})),l.createElement("span",{"aria-hidden":!0,ref:a,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},n)},r)}),PRe=e=>e.reduce((t,n)=>t+(yN(n)?String(n).length:1),0);function yD(e,t){let n=0;const r=[];for(let a=0;at){const u=t-n;return r.push(String(o).slice(0,u)),r}r.push(o),n=c}return e}const T1=0,R1=1,_1=2,$1=3,SD=4,Ih={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function DRe(e){const{enableMeasure:t,width:n,text:r,children:a,rows:o,expanded:i,miscDeps:s,onEllipsis:c}=e,u=l.useMemo(()=>vr(r),[r]),d=l.useMemo(()=>PRe(u),[r]),f=l.useMemo(()=>a(u,!1),[r]),[p,g]=l.useState(null),h=l.useRef(null),b=l.useRef(null),y=l.useRef(null),S=l.useRef(null),v=l.useRef(null),[x,w]=l.useState(!1),[C,E]=l.useState(T1),[I,T]=l.useState(0),[R,_]=l.useState(null);Xt(()=>{E(t&&n&&d?R1:T1)},[n,r,o,t,u]),Xt(()=>{var A,O,N,k;if(C===R1){E(_1);const M=b.current&&getComputedStyle(b.current).whiteSpace;_(M)}else if(C===_1){const M=!!(!((A=y.current)===null||A===void 0)&&A.isExceed());E(M?$1:SD),g(M?[0,d]:null),w(M);const L=((O=y.current)===null||O===void 0?void 0:O.getHeight())||0,F=o===1?0:((N=S.current)===null||N===void 0?void 0:N.getHeight())||0,j=((k=v.current)===null||k===void 0?void 0:k.getHeight())||0,B=Math.max(L,F+j);T(B+1),c(M)}},[C]);const $=p?Math.ceil((p[0]+p[1])/2):0;Xt(()=>{var A;const[O,N]=p||[0,0];if(O!==N){const M=(((A=h.current)===null||A===void 0?void 0:A.getHeight())||0)>I;let L=$;N-O===1&&(L=M?O:N),g(M?[O,L]:[L,N])}},[p,$]);const P=l.useMemo(()=>{if(!t)return a(u,!1);if(C!==$1||!p||p[0]!==p[1]){const A=a(u,!1);return[SD,T1].includes(C)?A:l.createElement("span",{style:Object.assign(Object.assign({},Ih),{WebkitLineClamp:o})},A)}return a(i?u:yD(u,p[0]),x)},[i,C,p,u].concat(Pe(s))),D={width:n,margin:0,padding:0,whiteSpace:R==="nowrap"?"normal":"inherit"};return l.createElement(l.Fragment,null,P,C===_1&&l.createElement(l.Fragment,null,l.createElement(Eh,{style:Object.assign(Object.assign(Object.assign({},D),Ih),{WebkitLineClamp:o}),ref:y},f),l.createElement(Eh,{style:Object.assign(Object.assign(Object.assign({},D),Ih),{WebkitLineClamp:o-1}),ref:S},f),l.createElement(Eh,{style:Object.assign(Object.assign(Object.assign({},D),Ih),{WebkitLineClamp:1}),ref:v},a([],!0))),C===$1&&p&&p[0]!==p[1]&&l.createElement(Eh,{style:Object.assign(Object.assign({},D),{top:400}),ref:h},a(yD(u,$),!0)),C===R1&&l.createElement("span",{style:{whiteSpace:"inherit"},ref:b}))}const LRe=e=>{let{enableEllipsis:t,isEllipsis:n,children:r,tooltipProps:a}=e;return!(a!=null&&a.title)||!t?r:l.createElement(Zt,Object.assign({open:n?void 0:!1},a),r)};var FRe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const{prefixCls:r,className:a,style:o,type:i,disabled:s,children:c,ellipsis:u,editable:d,copyable:f,component:p,title:g}=e,h=FRe(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:b,direction:y}=l.useContext(st),[S]=Ki("Text"),v=l.useRef(null),x=l.useRef(null),w=b("typography",r),C=On(h,["mark","code","delete","underline","strong","keyboard","italic"]),[E,I]=E1(d),[T,R]=sn(!1,{value:I.editing}),{triggerType:_=["icon"]}=I,$=Re=>{var me;Re&&((me=I.onStart)===null||me===void 0||me.call(I)),R(Re)},P=ORe(T);Xt(()=>{var Re;!T&&P&&((Re=x.current)===null||Re===void 0||Re.focus())},[T]);const D=Re=>{Re==null||Re.preventDefault(),$(!0)},A=Re=>{var me;(me=I.onChange)===null||me===void 0||me.call(I,Re),$(!1)},O=()=>{var Re;(Re=I.onCancel)===null||Re===void 0||Re.call(I),$(!1)},[N,k]=E1(f),{copied:M,copyLoading:L,onClick:F}=$Re({copyConfig:k,children:c}),[j,B]=l.useState(!1),[z,H]=l.useState(!1),[V,te]=l.useState(!1),[Y,J]=l.useState(!1),[G,U]=l.useState(!0),[q,X]=E1(u,{expandable:!1,symbol:Re=>Re?S==null?void 0:S.collapse:S==null?void 0:S.expand}),[Q,ee]=sn(X.defaultExpanded||!1,{value:X.expanded}),oe=q&&(!Q||X.expandable==="collapsible"),{rows:le=1}=X,fe=l.useMemo(()=>oe&&(X.suffix!==void 0||X.onEllipsis||X.expandable||E||N),[oe,X,E,N]);Xt(()=>{q&&!fe&&(B(pR("webkitLineClamp")),H(pR("textOverflow")))},[fe,q]);const[ce,Ie]=l.useState(oe),be=l.useMemo(()=>fe?!1:le===1?z:j,[fe,z,j]);Xt(()=>{Ie(be&&oe)},[be,oe]);const he=oe&&(ce?Y:V),ae=oe&&le===1&&ce,ie=oe&&le>1&&ce,ue=(Re,me)=>{var _e;ee(me.expanded),(_e=X.onExpand)===null||_e===void 0||_e.call(X,Re,me)},[xe,we]=l.useState(0),Me=Re=>{let{offsetWidth:me}=Re;we(me)},Ce=Re=>{var me;te(Re),V!==Re&&((me=X.onEllipsis)===null||me===void 0||me.call(X,Re))};l.useEffect(()=>{const Re=v.current;if(q&&ce&&Re){const me=ARe(Re);Y!==me&&J(me)}},[q,ce,c,ie,G,xe]),l.useEffect(()=>{const Re=v.current;if(typeof IntersectionObserver>"u"||!Re||!ce||!oe)return;const me=new IntersectionObserver(()=>{U(!!Re.offsetParent)});return me.observe(Re),()=>{me.disconnect()}},[ce,oe]);const De=NRe(X.tooltip,I.text,c),ye=l.useMemo(()=>{if(!(!q||ce))return[I.text,c,g,De.title].find(yN)},[q,ce,g,De.title,he]);if(T)return l.createElement(SRe,{value:(n=I.text)!==null&&n!==void 0?n:typeof c=="string"?c:"",onSave:A,onCancel:O,onEnd:I.onEnd,prefixCls:w,className:a,style:o,direction:y,component:p,maxLength:I.maxLength,autoSize:I.autoSize,enterIcon:I.enterIcon});const ve=()=>{const{expandable:Re,symbol:me}=X;return Re?l.createElement(ZR,{key:"expand",className:`${w}-${Q?"collapse":"expand"}`,onClick:_e=>ue(_e,{expanded:!Q}),"aria-label":Q?S.collapse:S==null?void 0:S.expand},typeof me=="function"?me(Q):me):null},$e=()=>{if(!E)return;const{icon:Re,tooltip:me,tabIndex:_e}=I,Ze=vr(me)[0]||(S==null?void 0:S.edit),Oe=typeof Ze=="string"?Ze:"";return _.includes("icon")?l.createElement(Zt,{key:"edit",title:me===!1?"":Ze},l.createElement(ZR,{ref:x,className:`${w}-edit`,onClick:D,"aria-label":Oe,tabIndex:_e},Re||l.createElement(yg,{role:"button"}))):null},Ee=()=>N?l.createElement(MRe,Object.assign({key:"copy"},k,{prefixCls:w,copied:M,locale:S,onCopy:F,loading:L,iconOnly:c==null})):null,ge=Re=>[Re&&ve(),$e(),Ee()],Ne=Re=>[Re&&!Q&&l.createElement("span",{"aria-hidden":!0,key:"ellipsis"},BRe),X.suffix,ge(Re)];return l.createElement(ca,{onResize:Me,disabled:!oe},Re=>l.createElement(LRe,{tooltipProps:De,enableEllipsis:oe,isEllipsis:he},l.createElement(nK,Object.assign({className:ne({[`${w}-${i}`]:i,[`${w}-disabled`]:s,[`${w}-ellipsis`]:q,[`${w}-ellipsis-single-line`]:ae,[`${w}-ellipsis-multiple-line`]:ie},a),prefixCls:r,style:Object.assign(Object.assign({},o),{WebkitLineClamp:ie?le:void 0}),component:p,ref:na(Re,v,t),direction:y,onClick:_.includes("text")?D:void 0,"aria-label":ye==null?void 0:ye.toString(),title:g},C),l.createElement(DRe,{enableMeasure:oe&&!ce,text:c,rows:le,width:xe,onEllipsis:Ce,expanded:Q,miscDeps:[M,Q,L,E,N]},(me,_e)=>jRe(e,l.createElement(l.Fragment,null,me.length>0&&_e&&!Q&&ye?l.createElement("span",{key:"show-content","aria-hidden":!0},me):me,Ne(_e)))))))});var zRe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{ellipsis:n,rel:r}=e,a=zRe(e,["ellipsis","rel"]);const o=Object.assign(Object.assign({},a),{rel:r===void 0&&a.target==="_blank"?"noopener noreferrer":r});return delete o.navigate,l.createElement(py,Object.assign({},o,{ref:t,ellipsis:!!n,component:"a"}))}),URe=l.forwardRef((e,t)=>l.createElement(py,Object.assign({ref:t},e,{component:"div"})));var VRe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{ellipsis:n}=e,r=VRe(e,["ellipsis"]);const a=l.useMemo(()=>n&&typeof n=="object"?On(n,["expandable","rows"]):n,[n]);return l.createElement(py,Object.assign({ref:t},r,{ellipsis:a,component:"span"}))},GRe=l.forwardRef(WRe);var qRe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{level:n=1}=e,r=qRe(e,["level"]),a=KRe.includes(n)?`h${n}`:"h1";return l.createElement(py,Object.assign({ref:t},r,{component:a}))}),bn=nK;bn.Text=GRe;bn.Link=HRe;bn.Title=YRe;bn.Paragraph=URe;const O1=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",a=e.type||"",o=a.replace(/\/.*$/,"");return n.some(function(i){var s=i.trim();if(/^\*(\/\*)?$/.test(i))return!0;if(s.charAt(0)==="."){var c=r.toLowerCase(),u=s.toLowerCase(),d=[u];return(u===".jpg"||u===".jpeg")&&(d=[".jpg",".jpeg"]),d.some(function(f){return c.endsWith(f)})}return/\/\*$/.test(s)?o===s.replace(/\/.*$/,""):a===s?!0:/^\w+$/.test(s)?(vn(!1,"Upload takes an invalidate 'accept' type '".concat(s,"'.Skip for check.")),!0):!1})}return!0};function XRe(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}function xD(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function ZRe(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(o){o.total>0&&(o.percent=o.loaded/o.total*100),e.onProgress(o)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(a){var o=e.data[a];if(Array.isArray(o)){o.forEach(function(i){n.append("".concat(a,"[]"),i)});return}n.append(a,o)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(o){e.onError(o)},t.onload=function(){return t.status<200||t.status>=300?e.onError(XRe(e,t),xD(t)):e.onSuccess(xD(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return r["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(function(a){r[a]!==null&&t.setRequestHeader(a,r[a])}),t.send(n),{abort:function(){t.abort()}}}var QRe=function(){var e=go(Hn().mark(function t(n,r){var a,o,i,s,c,u,d,f;return Hn().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:u=function(){return u=go(Hn().mark(function b(y){return Hn().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.abrupt("return",new Promise(function(x){y.file(function(w){r(w)?(y.fullPath&&!w.webkitRelativePath&&(Object.defineProperties(w,{webkitRelativePath:{writable:!0}}),w.webkitRelativePath=y.fullPath.replace(/^\//,""),Object.defineProperties(w,{webkitRelativePath:{writable:!1}})),x(w)):x(null)})}));case 1:case"end":return v.stop()}},b)})),u.apply(this,arguments)},c=function(b){return u.apply(this,arguments)},s=function(){return s=go(Hn().mark(function b(y){var S,v,x,w,C;return Hn().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:S=y.createReader(),v=[];case 2:return I.next=5,new Promise(function(T){S.readEntries(T,function(){return T([])})});case 5:if(x=I.sent,w=x.length,w){I.next=9;break}return I.abrupt("break",12);case 9:for(C=0;C{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${K(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${K(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` &:not(${t}-disabled):hover, &-hover:not(${t}-disabled) `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${K(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n}, p${t}-text, p${t}-hint - `]:{color:e.colorTextDisabled}}}}}},a_e=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSize:a,lineHeight:o,calc:i}=e,s=`${t}-list-item`,c=`${s}-actions`,u=`${s}-action`,d=e.fontHeightSM;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},mi()),{lineHeight:e.lineHeight,[s]:{position:"relative",height:i(e.lineHeight).mul(a).equal(),marginTop:e.marginXS,fontSize:a,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${s}-name`]:Object.assign(Object.assign({},xo),{padding:`0 ${K(e.paddingXS)}`,lineHeight:o,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[c]:{whiteSpace:"nowrap",[u]:{opacity:0},[r]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[` + `]:{color:e.colorTextDisabled}}}}}},a_e=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSize:a,lineHeight:o,calc:i}=e,s=`${t}-list-item`,c=`${s}-actions`,u=`${s}-action`,d=e.fontHeightSM;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},hi()),{lineHeight:e.lineHeight,[s]:{position:"relative",height:i(e.lineHeight).mul(a).equal(),marginTop:e.marginXS,fontSize:a,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${s}-name`]:Object.assign(Object.assign({},wo),{padding:`0 ${K(e.paddingXS)}`,lineHeight:o,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[c]:{whiteSpace:"nowrap",[u]:{opacity:0},[r]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[` ${u}:focus-visible, &.picture ${u} - `]:{opacity:1},[`${u}${n}-btn`]:{height:d,border:0,lineHeight:1}},[`${t}-icon ${r}`]:{color:e.colorTextDescription,fontSize:a},[`${s}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:i(a).add(e.paddingXS).equal(),fontSize:a,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${s}:hover ${u}`]:{opacity:1},[`${s}-error`]:{color:e.colorError,[`${s}-name, ${t}-icon ${r}`]:{color:e.colorError},[c]:{[`${r}, ${r}:hover`]:{color:e.colorError},[u]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},o_e=e=>{const{componentCls:t}=e,n=new un("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new un("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),a=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${a}-appear, ${a}-enter, ${a}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${a}-appear, ${a}-enter`]:{animationName:n},[`${a}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:oO(e)},n,r]},i_e=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:a,calc:o}=e,i=`${t}-list`,s=`${i}-item`;return{[`${t}-wrapper`]:{[` + `]:{opacity:1},[`${u}${n}-btn`]:{height:d,border:0,lineHeight:1}},[`${t}-icon ${r}`]:{color:e.colorTextDescription,fontSize:a},[`${s}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:i(a).add(e.paddingXS).equal(),fontSize:a,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${s}:hover ${u}`]:{opacity:1},[`${s}-error`]:{color:e.colorError,[`${s}-name, ${t}-icon ${r}`]:{color:e.colorError},[c]:{[`${r}, ${r}:hover`]:{color:e.colorError},[u]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},o_e=e=>{const{componentCls:t}=e,n=new un("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new un("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),a=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${a}-appear, ${a}-enter, ${a}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${a}-appear, ${a}-enter`]:{animationName:n},[`${a}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:iO(e)},n,r]},i_e=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:a,calc:o}=e,i=`${t}-list`,s=`${i}-item`;return{[`${t}-wrapper`]:{[` ${i}${i}-picture, ${i}${i}-picture-card, ${i}${i}-picture-circle - `]:{[s]:{position:"relative",height:o(r).add(o(e.lineWidth).mul(2)).add(o(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:Object.assign(Object.assign({},xo),{width:r,height:r,lineHeight:K(o(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${s}-progress`]:{bottom:a,width:`calc(100% - ${K(o(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:o(r).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${n}`]:{[`svg path[fill='${bd[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${bd.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:a}}},[`${i}${i}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:"50%"}}}}},s_e=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:a,calc:o}=e,i=`${t}-list`,s=`${i}-item`,c=e.uploadPicCardSize;return{[` + `]:{[s]:{position:"relative",height:o(r).add(o(e.lineWidth).mul(2)).add(o(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:Object.assign(Object.assign({},wo),{width:r,height:r,lineHeight:K(o(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${s}-progress`]:{bottom:a,width:`calc(100% - ${K(o(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:o(r).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${n}`]:{[`svg path[fill='${bd[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${bd.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:a}}},[`${i}${i}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:"50%"}}}}},s_e=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:a,calc:o}=e,i=`${t}-list`,s=`${i}-item`,c=e.uploadPicCardSize;return{[` ${t}-wrapper${t}-picture-card-wrapper, ${t}-wrapper${t}-picture-circle-wrapper - `]:Object.assign(Object.assign({},mi()),{display:"block",[`${t}${t}-select`]:{width:c,height:c,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${K(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${i}${i}-picture-card, ${i}${i}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${i}-item-container`]:{display:"inline-block",width:c,height:c,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[s]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${K(o(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${K(o(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[` + `]:Object.assign(Object.assign({},hi()),{display:"block",[`${t}${t}-select`]:{width:c,height:c,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${K(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${i}${i}-picture-card, ${i}${i}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${i}-item-container`]:{display:"inline-block",width:c,height:c,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[s]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${K(o(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${K(o(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[` ${n}-eye, ${n}-download, ${n}-delete - `]:{zIndex:10,width:r,margin:`0 ${K(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:a,"&:hover":{color:a},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${K(o(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${K(o(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},l_e=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},c_e=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},nn(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},u_e=e=>({actionsColor:e.colorTextDescription}),d_e=on("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:a,calc:o}=e,i=zt(e,{uploadThumbnailSize:o(t).mul(2).equal(),uploadProgressOffset:o(o(n).div(2)).add(r).equal(),uploadPicCardSize:o(a).mul(2.55).equal()});return[c_e(i),r_e(i),i_e(i),s_e(i),a_e(i),o_e(i),l_e(i),Zg(i)]},u_e);function Eh(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function Ih(e,t){const n=De(t),r=n.findIndex(a=>{let{uid:o}=a;return o===e.uid});return r===-1?n.push(e):n[r]=e,n}function k1(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function f_e(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(a=>a[n]!==e[n]);return r.length===t.length?null:r}const p_e=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},rK=e=>e.indexOf("image/")===0,g_e=e=>{if(e.type&&!e.thumbUrl)return rK(e.type);const t=e.thumbUrl||e.url||"",n=p_e(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n)?!0:!(/^data:/.test(t)||n)},Ls=200;function m_e(e){return new Promise(t=>{if(!e.type||!rK(e.type)){t("");return}const n=document.createElement("canvas");n.width=Ls,n.height=Ls,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${Ls}px; height: ${Ls}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),a=new Image;if(a.onload=()=>{const{width:o,height:i}=a;let s=Ls,c=Ls,u=0,d=0;o>i?(c=i*(Ls/o),d=-(c-s)/2):(s=o*(Ls/i),u=-(s-c)/2),r.drawImage(a,u,d,s,c);const f=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(a.src),t(f)},a.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const o=new FileReader;o.onload=()=>{o.result&&typeof o.result=="string"&&(a.src=o.result)},o.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const o=new FileReader;o.onload=()=>{o.result&&t(o.result)},o.readAsDataURL(e)}else a.src=window.URL.createObjectURL(e)})}const h_e=l.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:a,locale:o,listType:i,file:s,items:c,progress:u,iconRender:d,actionIconRender:f,itemRender:p,isImgUrl:g,showPreviewIcon:h,showRemoveIcon:b,showDownloadIcon:y,previewIcon:S,removeIcon:v,downloadIcon:x,extra:C,onPreview:w,onDownload:E,onClose:I}=e;var T,R;const{status:_}=s,[$,P]=l.useState(_);l.useEffect(()=>{_!=="removed"&&P(_)},[_]);const[D,A]=l.useState(!1);l.useEffect(()=>{const Q=setTimeout(()=>{A(!0)},300);return()=>{clearTimeout(Q)}},[]);const O=d(s);let N=l.createElement("div",{className:`${n}-icon`},O);if(i==="picture"||i==="picture-card"||i==="picture-circle")if($==="uploading"||!s.thumbUrl&&!s.url){const Q=ne(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:$!=="uploading"});N=l.createElement("div",{className:Q},O)}else{const Q=g!=null&&g(s)?l.createElement("img",{src:s.thumbUrl||s.url,alt:s.name,className:`${n}-list-item-image`,crossOrigin:s.crossOrigin}):O,ee=ne(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:g&&!g(s)});N=l.createElement("a",{className:ee,onClick:oe=>w(s,oe),href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Q)}const k=ne(`${n}-list-item`,`${n}-list-item-${$}`),M=typeof s.linkProps=="string"?JSON.parse(s.linkProps):s.linkProps,L=b?f((typeof v=="function"?v(s):v)||l.createElement(Ed,null),()=>I(s),n,o.removeFile,!0):null,F=y&&$==="done"?f((typeof x=="function"?x(s):x)||l.createElement(QO,null),()=>E(s),n,o.downloadFile):null,j=i!=="picture-card"&&i!=="picture-circle"&&l.createElement("span",{key:"download-delete",className:ne(`${n}-list-item-actions`,{picture:i==="picture"})},F,L),B=typeof C=="function"?C(s):C,z=B&&l.createElement("span",{className:`${n}-list-item-extra`},B),H=ne(`${n}-list-item-name`),V=s.url?l.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:H,title:s.name},M,{href:s.url,onClick:Q=>w(s,Q)}),s.name,z):l.createElement("span",{key:"view",className:H,onClick:Q=>w(s,Q),title:s.name},s.name,z),te=h&&(s.url||s.thumbUrl)?l.createElement("a",{href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:Q=>w(s,Q),title:o.previewFile},typeof S=="function"?S(s):S||l.createElement(Sl,null)):null,Y=(i==="picture-card"||i==="picture-circle")&&$!=="uploading"&&l.createElement("span",{className:`${n}-list-item-actions`},te,$==="done"&&F,L),{getPrefixCls:J}=l.useContext(st),G=J(),U=l.createElement("div",{className:k},N,V,j,Y,D&&l.createElement(Qr,{motionName:`${G}-fade`,visible:$==="uploading",motionDeadline:2e3},Q=>{let{className:ee}=Q;const oe="percent"in s?l.createElement(iy,Object.assign({},u,{type:"line",percent:s.percent,"aria-label":s["aria-label"],"aria-labelledby":s["aria-labelledby"]})):null;return l.createElement("div",{className:ne(`${n}-list-item-progress`,ee)},oe)})),q=s.response&&typeof s.response=="string"?s.response:((T=s.error)===null||T===void 0?void 0:T.statusText)||((R=s.error)===null||R===void 0?void 0:R.message)||o.uploadError,X=$==="error"?l.createElement(Zt,{title:q,getPopupContainer:Q=>Q.parentNode},U):U;return l.createElement("div",{className:ne(`${n}-list-item-container`,r),style:a,ref:t},p?p(X,s,c,{download:E.bind(null,s),preview:w.bind(null,s),remove:I.bind(null,s)}):X)}),v_e=(e,t)=>{const{listType:n="text",previewFile:r=m_e,onPreview:a,onDownload:o,onRemove:i,locale:s,iconRender:c,isImageUrl:u=g_e,prefixCls:d,items:f=[],showPreviewIcon:p=!0,showRemoveIcon:g=!0,showDownloadIcon:h=!1,removeIcon:b,previewIcon:y,downloadIcon:S,extra:v,progress:x={size:[-1,2],showInfo:!1},appendAction:C,appendActionVisible:w=!0,itemRender:E,disabled:I}=e,T=fO(),[R,_]=l.useState(!1);l.useEffect(()=>{n!=="picture"&&n!=="picture-card"&&n!=="picture-circle"||(f||[]).forEach(H=>{typeof document>"u"||typeof window>"u"||!window.FileReader||!window.File||!(H.originFileObj instanceof File||H.originFileObj instanceof Blob)||H.thumbUrl!==void 0||(H.thumbUrl="",r&&r(H.originFileObj).then(V=>{H.thumbUrl=V||"",T()}))})},[n,f,r]),l.useEffect(()=>{_(!0)},[]);const $=(H,V)=>{if(a)return V==null||V.preventDefault(),a(H)},P=H=>{typeof o=="function"?o(H):H.url&&window.open(H.url)},D=H=>{i==null||i(H)},A=H=>{if(c)return c(H,n);const V=H.status==="uploading",te=u!=null&&u(H)?l.createElement(cCe,null):l.createElement(Gxe,null);let Y=V?l.createElement(Hi,null):l.createElement(aCe,null);return n==="picture"?Y=V?l.createElement(Hi,null):te:(n==="picture-card"||n==="picture-circle")&&(Y=V?s.uploading:te),Y},O=(H,V,te,Y,J)=>{const G={type:"text",size:"small",title:Y,onClick:U=>{var q,X;V(),l.isValidElement(H)&&((X=(q=H.props).onClick)===null||X===void 0||X.call(q,U))},className:`${te}-list-item-action`};if(J&&(G.disabled=I),l.isValidElement(H)){const U=Cr(H,Object.assign(Object.assign({},H.props),{onClick:()=>{}}));return l.createElement(ut,Object.assign({},G,{icon:U}))}return l.createElement(ut,Object.assign({},G),l.createElement("span",null,H))};l.useImperativeHandle(t,()=>({handlePreview:$,handleDownload:P}));const{getPrefixCls:N}=l.useContext(st),k=N("upload",d),M=N(),L=ne(`${k}-list`,`${k}-list-${n}`),F=De(f.map(H=>({key:H.uid,file:H})));let B={motionDeadline:2e3,motionName:`${k}-${n==="picture-card"||n==="picture-circle"?"animate-inline":"animate"}`,keys:F,motionAppear:R};const z=l.useMemo(()=>{const H=Object.assign({},Sd(M));return delete H.onAppearEnd,delete H.onEnterEnd,delete H.onLeaveEnd,H},[M]);return n!=="picture-card"&&n!=="picture-circle"&&(B=Object.assign(Object.assign({},z),B)),l.createElement("div",{className:L},l.createElement(G$,Object.assign({},B,{component:!1}),H=>{let{key:V,file:te,className:Y,style:J}=H;return l.createElement(h_e,{key:V,locale:s,prefixCls:k,className:Y,style:J,file:te,items:f,progress:x,listType:n,isImgUrl:u,showPreviewIcon:p,showRemoveIcon:g,showDownloadIcon:h,removeIcon:b,previewIcon:y,downloadIcon:S,extra:v,iconRender:A,actionIconRender:O,itemRender:E,onPreview:$,onDownload:P,onClose:D})}),C&&l.createElement(Qr,Object.assign({},B,{visible:w,forceRender:!0}),H=>{let{className:V,style:te}=H;return Cr(C,Y=>({className:ne(Y.className,V),style:Object.assign(Object.assign(Object.assign({},te),{pointerEvents:V?"none":void 0}),Y.style)}))}))},b_e=l.forwardRef(v_e);var y_e=function(e,t,n,r){function a(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function s(d){try{u(r.next(d))}catch(f){i(f)}}function c(d){try{u(r.throw(d))}catch(f){i(f)}}function u(d){d.done?o(d.value):a(d.value).then(s,c)}u((r=r.apply(e,[])).next())})};const Qf=`__LIST_IGNORE_${Date.now()}__`,S_e=(e,t)=>{const{fileList:n,defaultFileList:r,onRemove:a,showUploadList:o=!0,listType:i="text",onPreview:s,onDownload:c,onChange:u,onDrop:d,previewFile:f,disabled:p,locale:g,iconRender:h,isImageUrl:b,progress:y,prefixCls:S,className:v,type:x="select",children:C,style:w,itemRender:E,maxCount:I,data:T={},multiple:R=!1,hasControlInside:_=!0,action:$="",accept:P="",supportServerRender:D=!0,rootClassName:A}=e,O=l.useContext(Zr),N=p??O,[k,M]=sn(r||[],{value:n,postState:he=>he??[]}),[L,F]=l.useState("drop"),j=l.useRef(null),B=l.useRef(null);l.useMemo(()=>{const he=Date.now();(n||[]).forEach((ke,xe)=>{!ke.uid&&!Object.isFrozen(ke)&&(ke.uid=`__AUTO__${he}_${xe}__`)})},[n]);const z=(he,ke,xe)=>{let ge=De(ke),Pe=!1;I===1?ge=ge.slice(-1):I&&(Pe=ge.length>I,ge=ge.slice(0,I)),Lr.flushSync(()=>{M(ge)});const Ve={file:he,fileList:ge};xe&&(Ve.event=xe),(!Pe||he.status==="removed"||ge.some(Ae=>Ae.uid===he.uid))&&Lr.flushSync(()=>{u==null||u(Ve)})},H=(he,ke)=>y_e(void 0,void 0,void 0,function*(){const{beforeUpload:xe,transformFile:ge}=e;let Pe=he;if(xe){const Ve=yield xe(he,ke);if(Ve===!1)return!1;if(delete he[Qf],Ve===Qf)return Object.defineProperty(he,Qf,{value:!0,configurable:!0}),!1;typeof Ve=="object"&&Ve&&(Pe=Ve)}return ge&&(Pe=yield ge(Pe)),Pe}),V=he=>{const ke=he.filter(Pe=>!Pe.file[Qf]);if(!ke.length)return;const xe=ke.map(Pe=>Eh(Pe.file));let ge=De(k);xe.forEach(Pe=>{ge=Ih(Pe,ge)}),xe.forEach((Pe,Ve)=>{let Ae=Pe;if(ke[Ve].parsedFile)Pe.status="uploading";else{const{originFileObj:be}=Pe;let Oe;try{Oe=new File([be],be.name,{type:be.type})}catch{Oe=new Blob([be],{type:be.type}),Oe.name=be.name,Oe.lastModifiedDate=new Date,Oe.lastModified=new Date().getTime()}Oe.uid=Pe.uid,Ae=Oe}z(Ae,ge)})},te=(he,ke,xe)=>{try{typeof he=="string"&&(he=JSON.parse(he))}catch{}if(!k1(ke,k))return;const ge=Eh(ke);ge.status="done",ge.percent=100,ge.response=he,ge.xhr=xe;const Pe=Ih(ge,k);z(ge,Pe)},Y=(he,ke)=>{if(!k1(ke,k))return;const xe=Eh(ke);xe.status="uploading",xe.percent=he.percent;const ge=Ih(xe,k);z(xe,ge,he)},J=(he,ke,xe)=>{if(!k1(xe,k))return;const ge=Eh(xe);ge.error=he,ge.response=ke,ge.status="error";const Pe=Ih(ge,k);z(ge,Pe)},G=he=>{let ke;Promise.resolve(typeof a=="function"?a(he):a).then(xe=>{var ge;if(xe===!1)return;const Pe=f_e(he,k);Pe&&(ke=Object.assign(Object.assign({},he),{status:"removed"}),k==null||k.forEach(Ve=>{const Ae=ke.uid!==void 0?"uid":"name";Ve[Ae]===ke[Ae]&&!Object.isFrozen(Ve)&&(Ve.status="removed")}),(ge=j.current)===null||ge===void 0||ge.abort(ke),z(ke,Pe))})},U=he=>{F(he.type),he.type==="drop"&&(d==null||d(he))};l.useImperativeHandle(t,()=>({onBatchStart:V,onSuccess:te,onProgress:Y,onError:J,fileList:k,upload:j.current,nativeElement:B.current}));const{getPrefixCls:q,direction:X,upload:Q}=l.useContext(st),ee=q("upload",S),oe=Object.assign(Object.assign({onBatchStart:V,onError:J,onProgress:Y,onSuccess:te},e),{data:T,multiple:R,action:$,accept:P,supportServerRender:D,prefixCls:ee,disabled:N,beforeUpload:H,onChange:void 0,hasControlInside:_});delete oe.className,delete oe.style,(!C||N)&&delete oe.id;const le=`${ee}-wrapper`,[fe,ce,Te]=d_e(ee,le),[Se]=qi("Upload",Uo.Upload),{showRemoveIcon:ve,showPreviewIcon:ae,showDownloadIcon:ie,removeIcon:ue,previewIcon:ye,downloadIcon:Ee,extra:Me}=typeof o=="boolean"?{}:o,Ie=typeof ve>"u"?!N:!!ve,Ce=(he,ke)=>o?l.createElement(b_e,{prefixCls:ee,listType:i,items:k,previewFile:f,onPreview:s,onDownload:c,onRemove:G,showRemoveIcon:Ie,showPreviewIcon:ae,showDownloadIcon:ie,removeIcon:ue,previewIcon:ye,downloadIcon:Ee,iconRender:h,extra:Me,locale:Object.assign(Object.assign({},Se),g),isImageUrl:b,progress:y,appendAction:he,appendActionVisible:ke,itemRender:E,disabled:N}):he,me=ne(le,v,A,ce,Te,Q==null?void 0:Q.className,{[`${ee}-rtl`]:X==="rtl",[`${ee}-picture-card-wrapper`]:i==="picture-card",[`${ee}-picture-circle-wrapper`]:i==="picture-circle"}),we=Object.assign(Object.assign({},Q==null?void 0:Q.style),w);if(x==="drag"){const he=ne(ce,ee,`${ee}-drag`,{[`${ee}-drag-uploading`]:k.some(ke=>ke.status==="uploading"),[`${ee}-drag-hover`]:L==="dragover",[`${ee}-disabled`]:N,[`${ee}-rtl`]:X==="rtl"});return fe(l.createElement("span",{className:me,ref:B},l.createElement("div",{className:he,style:we,onDrop:U,onDragOver:U,onDragLeave:U},l.createElement(JR,Object.assign({},oe,{ref:j,className:`${ee}-btn`}),l.createElement("div",{className:`${ee}-drag-container`},C))),Ce()))}const _e=ne(ee,`${ee}-select`,{[`${ee}-disabled`]:N}),Ne=l.createElement("div",{className:_e,style:C?void 0:{display:"none"}},l.createElement(JR,Object.assign({},oe,{ref:j})));return fe(i==="picture-card"||i==="picture-circle"?l.createElement("span",{className:me,ref:B},Ce(Ne,!!C)):l.createElement("span",{className:me,ref:B},Ne,Ce()))},aK=l.forwardRef(S_e);var x_e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{style:n,height:r,hasControlInside:a=!1}=e,o=x_e(e,["style","height","hasControlInside"]);return l.createElement(aK,Object.assign({ref:t,hasControlInside:a},o,{type:"drag",style:Object.assign(Object.assign({},n),{height:r})}))}),mm=aK;mm.Dragger=w_e;mm.LIST_IGNORE=Qf;/** + `]:{zIndex:10,width:r,margin:`0 ${K(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:a,"&:hover":{color:a},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${K(o(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${K(o(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},l_e=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},c_e=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},nn(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},u_e=e=>({actionsColor:e.colorTextDescription}),d_e=on("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:a,calc:o}=e,i=zt(e,{uploadThumbnailSize:o(t).mul(2).equal(),uploadProgressOffset:o(o(n).div(2)).add(r).equal(),uploadPicCardSize:o(a).mul(2.55).equal()});return[c_e(i),r_e(i),i_e(i),s_e(i),a_e(i),o_e(i),l_e(i),Jg(i)]},u_e);function Th(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function Rh(e,t){const n=Pe(t),r=n.findIndex(a=>{let{uid:o}=a;return o===e.uid});return r===-1?n.push(e):n[r]=e,n}function A1(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function f_e(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(a=>a[n]!==e[n]);return r.length===t.length?null:r}const p_e=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},rK=e=>e.indexOf("image/")===0,g_e=e=>{if(e.type&&!e.thumbUrl)return rK(e.type);const t=e.thumbUrl||e.url||"",n=p_e(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n)?!0:!(/^data:/.test(t)||n)},Fs=200;function m_e(e){return new Promise(t=>{if(!e.type||!rK(e.type)){t("");return}const n=document.createElement("canvas");n.width=Fs,n.height=Fs,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${Fs}px; height: ${Fs}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),a=new Image;if(a.onload=()=>{const{width:o,height:i}=a;let s=Fs,c=Fs,u=0,d=0;o>i?(c=i*(Fs/o),d=-(c-s)/2):(s=o*(Fs/i),u=-(s-c)/2),r.drawImage(a,u,d,s,c);const f=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(a.src),t(f)},a.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const o=new FileReader;o.onload=()=>{o.result&&typeof o.result=="string"&&(a.src=o.result)},o.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const o=new FileReader;o.onload=()=>{o.result&&t(o.result)},o.readAsDataURL(e)}else a.src=window.URL.createObjectURL(e)})}const h_e=l.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:a,locale:o,listType:i,file:s,items:c,progress:u,iconRender:d,actionIconRender:f,itemRender:p,isImgUrl:g,showPreviewIcon:h,showRemoveIcon:b,showDownloadIcon:y,previewIcon:S,removeIcon:v,downloadIcon:x,extra:w,onPreview:C,onDownload:E,onClose:I}=e;var T,R;const{status:_}=s,[$,P]=l.useState(_);l.useEffect(()=>{_!=="removed"&&P(_)},[_]);const[D,A]=l.useState(!1);l.useEffect(()=>{const Q=setTimeout(()=>{A(!0)},300);return()=>{clearTimeout(Q)}},[]);const O=d(s);let N=l.createElement("div",{className:`${n}-icon`},O);if(i==="picture"||i==="picture-card"||i==="picture-circle")if($==="uploading"||!s.thumbUrl&&!s.url){const Q=ne(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:$!=="uploading"});N=l.createElement("div",{className:Q},O)}else{const Q=g!=null&&g(s)?l.createElement("img",{src:s.thumbUrl||s.url,alt:s.name,className:`${n}-list-item-image`,crossOrigin:s.crossOrigin}):O,ee=ne(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:g&&!g(s)});N=l.createElement("a",{className:ee,onClick:oe=>C(s,oe),href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Q)}const k=ne(`${n}-list-item`,`${n}-list-item-${$}`),M=typeof s.linkProps=="string"?JSON.parse(s.linkProps):s.linkProps,L=b?f((typeof v=="function"?v(s):v)||l.createElement(Ed,null),()=>I(s),n,o.removeFile,!0):null,F=y&&$==="done"?f((typeof x=="function"?x(s):x)||l.createElement(JO,null),()=>E(s),n,o.downloadFile):null,j=i!=="picture-card"&&i!=="picture-circle"&&l.createElement("span",{key:"download-delete",className:ne(`${n}-list-item-actions`,{picture:i==="picture"})},F,L),B=typeof w=="function"?w(s):w,z=B&&l.createElement("span",{className:`${n}-list-item-extra`},B),H=ne(`${n}-list-item-name`),V=s.url?l.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:H,title:s.name},M,{href:s.url,onClick:Q=>C(s,Q)}),s.name,z):l.createElement("span",{key:"view",className:H,onClick:Q=>C(s,Q),title:s.name},s.name,z),te=h&&(s.url||s.thumbUrl)?l.createElement("a",{href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:Q=>C(s,Q),title:o.previewFile},typeof S=="function"?S(s):S||l.createElement(Sl,null)):null,Y=(i==="picture-card"||i==="picture-circle")&&$!=="uploading"&&l.createElement("span",{className:`${n}-list-item-actions`},te,$==="done"&&F,L),{getPrefixCls:J}=l.useContext(st),G=J(),U=l.createElement("div",{className:k},N,V,j,Y,D&&l.createElement(ea,{motionName:`${G}-fade`,visible:$==="uploading",motionDeadline:2e3},Q=>{let{className:ee}=Q;const oe="percent"in s?l.createElement(sy,Object.assign({},u,{type:"line",percent:s.percent,"aria-label":s["aria-label"],"aria-labelledby":s["aria-labelledby"]})):null;return l.createElement("div",{className:ne(`${n}-list-item-progress`,ee)},oe)})),q=s.response&&typeof s.response=="string"?s.response:((T=s.error)===null||T===void 0?void 0:T.statusText)||((R=s.error)===null||R===void 0?void 0:R.message)||o.uploadError,X=$==="error"?l.createElement(Zt,{title:q,getPopupContainer:Q=>Q.parentNode},U):U;return l.createElement("div",{className:ne(`${n}-list-item-container`,r),style:a,ref:t},p?p(X,s,c,{download:E.bind(null,s),preview:C.bind(null,s),remove:I.bind(null,s)}):X)}),v_e=(e,t)=>{const{listType:n="text",previewFile:r=m_e,onPreview:a,onDownload:o,onRemove:i,locale:s,iconRender:c,isImageUrl:u=g_e,prefixCls:d,items:f=[],showPreviewIcon:p=!0,showRemoveIcon:g=!0,showDownloadIcon:h=!1,removeIcon:b,previewIcon:y,downloadIcon:S,extra:v,progress:x={size:[-1,2],showInfo:!1},appendAction:w,appendActionVisible:C=!0,itemRender:E,disabled:I}=e,T=pO(),[R,_]=l.useState(!1);l.useEffect(()=>{n!=="picture"&&n!=="picture-card"&&n!=="picture-circle"||(f||[]).forEach(H=>{typeof document>"u"||typeof window>"u"||!window.FileReader||!window.File||!(H.originFileObj instanceof File||H.originFileObj instanceof Blob)||H.thumbUrl!==void 0||(H.thumbUrl="",r&&r(H.originFileObj).then(V=>{H.thumbUrl=V||"",T()}))})},[n,f,r]),l.useEffect(()=>{_(!0)},[]);const $=(H,V)=>{if(a)return V==null||V.preventDefault(),a(H)},P=H=>{typeof o=="function"?o(H):H.url&&window.open(H.url)},D=H=>{i==null||i(H)},A=H=>{if(c)return c(H,n);const V=H.status==="uploading",te=u!=null&&u(H)?l.createElement(cCe,null):l.createElement(Gxe,null);let Y=V?l.createElement(Ui,null):l.createElement(aCe,null);return n==="picture"?Y=V?l.createElement(Ui,null):te:(n==="picture-card"||n==="picture-circle")&&(Y=V?s.uploading:te),Y},O=(H,V,te,Y,J)=>{const G={type:"text",size:"small",title:Y,onClick:U=>{var q,X;V(),l.isValidElement(H)&&((X=(q=H.props).onClick)===null||X===void 0||X.call(q,U))},className:`${te}-list-item-action`};if(J&&(G.disabled=I),l.isValidElement(H)){const U=Cr(H,Object.assign(Object.assign({},H.props),{onClick:()=>{}}));return l.createElement(ct,Object.assign({},G,{icon:U}))}return l.createElement(ct,Object.assign({},G),l.createElement("span",null,H))};l.useImperativeHandle(t,()=>({handlePreview:$,handleDownload:P}));const{getPrefixCls:N}=l.useContext(st),k=N("upload",d),M=N(),L=ne(`${k}-list`,`${k}-list-${n}`),F=Pe(f.map(H=>({key:H.uid,file:H})));let B={motionDeadline:2e3,motionName:`${k}-${n==="picture-card"||n==="picture-circle"?"animate-inline":"animate"}`,keys:F,motionAppear:R};const z=l.useMemo(()=>{const H=Object.assign({},Sd(M));return delete H.onAppearEnd,delete H.onEnterEnd,delete H.onLeaveEnd,H},[M]);return n!=="picture-card"&&n!=="picture-circle"&&(B=Object.assign(Object.assign({},z),B)),l.createElement("div",{className:L},l.createElement(q$,Object.assign({},B,{component:!1}),H=>{let{key:V,file:te,className:Y,style:J}=H;return l.createElement(h_e,{key:V,locale:s,prefixCls:k,className:Y,style:J,file:te,items:f,progress:x,listType:n,isImgUrl:u,showPreviewIcon:p,showRemoveIcon:g,showDownloadIcon:h,removeIcon:b,previewIcon:y,downloadIcon:S,extra:v,iconRender:A,actionIconRender:O,itemRender:E,onPreview:$,onDownload:P,onClose:D})}),w&&l.createElement(ea,Object.assign({},B,{visible:C,forceRender:!0}),H=>{let{className:V,style:te}=H;return Cr(w,Y=>({className:ne(Y.className,V),style:Object.assign(Object.assign(Object.assign({},te),{pointerEvents:V?"none":void 0}),Y.style)}))}))},b_e=l.forwardRef(v_e);var y_e=function(e,t,n,r){function a(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function s(d){try{u(r.next(d))}catch(f){i(f)}}function c(d){try{u(r.throw(d))}catch(f){i(f)}}function u(d){d.done?o(d.value):a(d.value).then(s,c)}u((r=r.apply(e,[])).next())})};const ep=`__LIST_IGNORE_${Date.now()}__`,S_e=(e,t)=>{const{fileList:n,defaultFileList:r,onRemove:a,showUploadList:o=!0,listType:i="text",onPreview:s,onDownload:c,onChange:u,onDrop:d,previewFile:f,disabled:p,locale:g,iconRender:h,isImageUrl:b,progress:y,prefixCls:S,className:v,type:x="select",children:w,style:C,itemRender:E,maxCount:I,data:T={},multiple:R=!1,hasControlInside:_=!0,action:$="",accept:P="",supportServerRender:D=!0,rootClassName:A}=e,O=l.useContext(Jr),N=p??O,[k,M]=sn(r||[],{value:n,postState:ge=>ge??[]}),[L,F]=l.useState("drop"),j=l.useRef(null),B=l.useRef(null);l.useMemo(()=>{const ge=Date.now();(n||[]).forEach((Ne,Re)=>{!Ne.uid&&!Object.isFrozen(Ne)&&(Ne.uid=`__AUTO__${ge}_${Re}__`)})},[n]);const z=(ge,Ne,Re)=>{let me=Pe(Ne),_e=!1;I===1?me=me.slice(-1):I&&(_e=me.length>I,me=me.slice(0,I)),Lr.flushSync(()=>{M(me)});const Ze={file:ge,fileList:me};Re&&(Ze.event=Re),(!_e||ge.status==="removed"||me.some(Oe=>Oe.uid===ge.uid))&&Lr.flushSync(()=>{u==null||u(Ze)})},H=(ge,Ne)=>y_e(void 0,void 0,void 0,function*(){const{beforeUpload:Re,transformFile:me}=e;let _e=ge;if(Re){const Ze=yield Re(ge,Ne);if(Ze===!1)return!1;if(delete ge[ep],Ze===ep)return Object.defineProperty(ge,ep,{value:!0,configurable:!0}),!1;typeof Ze=="object"&&Ze&&(_e=Ze)}return me&&(_e=yield me(_e)),_e}),V=ge=>{const Ne=ge.filter(_e=>!_e.file[ep]);if(!Ne.length)return;const Re=Ne.map(_e=>Th(_e.file));let me=Pe(k);Re.forEach(_e=>{me=Rh(_e,me)}),Re.forEach((_e,Ze)=>{let Oe=_e;if(Ne[Ze].parsedFile)_e.status="uploading";else{const{originFileObj:Se}=_e;let Ae;try{Ae=new File([Se],Se.name,{type:Se.type})}catch{Ae=new Blob([Se],{type:Se.type}),Ae.name=Se.name,Ae.lastModifiedDate=new Date,Ae.lastModified=new Date().getTime()}Ae.uid=_e.uid,Oe=Ae}z(Oe,me)})},te=(ge,Ne,Re)=>{try{typeof ge=="string"&&(ge=JSON.parse(ge))}catch{}if(!A1(Ne,k))return;const me=Th(Ne);me.status="done",me.percent=100,me.response=ge,me.xhr=Re;const _e=Rh(me,k);z(me,_e)},Y=(ge,Ne)=>{if(!A1(Ne,k))return;const Re=Th(Ne);Re.status="uploading",Re.percent=ge.percent;const me=Rh(Re,k);z(Re,me,ge)},J=(ge,Ne,Re)=>{if(!A1(Re,k))return;const me=Th(Re);me.error=ge,me.response=Ne,me.status="error";const _e=Rh(me,k);z(me,_e)},G=ge=>{let Ne;Promise.resolve(typeof a=="function"?a(ge):a).then(Re=>{var me;if(Re===!1)return;const _e=f_e(ge,k);_e&&(Ne=Object.assign(Object.assign({},ge),{status:"removed"}),k==null||k.forEach(Ze=>{const Oe=Ne.uid!==void 0?"uid":"name";Ze[Oe]===Ne[Oe]&&!Object.isFrozen(Ze)&&(Ze.status="removed")}),(me=j.current)===null||me===void 0||me.abort(Ne),z(Ne,_e))})},U=ge=>{F(ge.type),ge.type==="drop"&&(d==null||d(ge))};l.useImperativeHandle(t,()=>({onBatchStart:V,onSuccess:te,onProgress:Y,onError:J,fileList:k,upload:j.current,nativeElement:B.current}));const{getPrefixCls:q,direction:X,upload:Q}=l.useContext(st),ee=q("upload",S),oe=Object.assign(Object.assign({onBatchStart:V,onError:J,onProgress:Y,onSuccess:te},e),{data:T,multiple:R,action:$,accept:P,supportServerRender:D,prefixCls:ee,disabled:N,beforeUpload:H,onChange:void 0,hasControlInside:_});delete oe.className,delete oe.style,(!w||N)&&delete oe.id;const le=`${ee}-wrapper`,[fe,ce,Ie]=d_e(ee,le),[be]=Ki("Upload",Vo.Upload),{showRemoveIcon:he,showPreviewIcon:ae,showDownloadIcon:ie,removeIcon:ue,previewIcon:xe,downloadIcon:we,extra:Me}=typeof o=="boolean"?{}:o,Ce=typeof he>"u"?!N:!!he,De=(ge,Ne)=>o?l.createElement(b_e,{prefixCls:ee,listType:i,items:k,previewFile:f,onPreview:s,onDownload:c,onRemove:G,showRemoveIcon:Ce,showPreviewIcon:ae,showDownloadIcon:ie,removeIcon:ue,previewIcon:xe,downloadIcon:we,iconRender:h,extra:Me,locale:Object.assign(Object.assign({},be),g),isImageUrl:b,progress:y,appendAction:ge,appendActionVisible:Ne,itemRender:E,disabled:N}):ge,ye=ne(le,v,A,ce,Ie,Q==null?void 0:Q.className,{[`${ee}-rtl`]:X==="rtl",[`${ee}-picture-card-wrapper`]:i==="picture-card",[`${ee}-picture-circle-wrapper`]:i==="picture-circle"}),ve=Object.assign(Object.assign({},Q==null?void 0:Q.style),C);if(x==="drag"){const ge=ne(ce,ee,`${ee}-drag`,{[`${ee}-drag-uploading`]:k.some(Ne=>Ne.status==="uploading"),[`${ee}-drag-hover`]:L==="dragover",[`${ee}-disabled`]:N,[`${ee}-rtl`]:X==="rtl"});return fe(l.createElement("span",{className:ye,ref:B},l.createElement("div",{className:ge,style:ve,onDrop:U,onDragOver:U,onDragLeave:U},l.createElement(e_,Object.assign({},oe,{ref:j,className:`${ee}-btn`}),l.createElement("div",{className:`${ee}-drag-container`},w))),De()))}const $e=ne(ee,`${ee}-select`,{[`${ee}-disabled`]:N}),Ee=l.createElement("div",{className:$e,style:w?void 0:{display:"none"}},l.createElement(e_,Object.assign({},oe,{ref:j})));return fe(i==="picture-card"||i==="picture-circle"?l.createElement("span",{className:ye,ref:B},De(Ee,!!w)):l.createElement("span",{className:ye,ref:B},Ee,De()))},aK=l.forwardRef(S_e);var x_e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{style:n,height:r,hasControlInside:a=!1}=e,o=x_e(e,["style","height","hasControlInside"]);return l.createElement(aK,Object.assign({ref:t,hasControlInside:a},o,{type:"drag",style:Object.assign(Object.assign({},n),{height:r})}))}),vm=aK;vm.Dragger=w_e;vm.LIST_IGNORE=ep;/** * @remix-run/router v1.19.2 * * Copyright (c) Remix Software Inc. @@ -502,7 +502,7 @@ html body { * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function bg(){return bg=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function oK(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function E_e(){return Math.random().toString(36).substr(2,8)}function CD(e,t){return{usr:e.state,key:e.key,idx:t}}function e_(e,t,n,r){return n===void 0&&(n=null),bg({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?af(t):t,{state:n,key:t&&t.key||r||E_e()})}function Tb(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function af(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function I_e(e,t,n,r){r===void 0&&(r={});let{window:a=document.defaultView,v5Compat:o=!1}=r,i=a.history,s=tl.Pop,c=null,u=d();u==null&&(u=0,i.replaceState(bg({},i.state,{idx:u}),""));function d(){return(i.state||{idx:null}).idx}function f(){s=tl.Pop;let y=d(),S=y==null?null:y-u;u=y,c&&c({action:s,location:b.location,delta:S})}function p(y,S){s=tl.Push;let v=e_(b.location,y,S);u=d()+1;let x=CD(v,u),C=b.createHref(v);try{i.pushState(x,"",C)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;a.location.assign(C)}o&&c&&c({action:s,location:b.location,delta:1})}function g(y,S){s=tl.Replace;let v=e_(b.location,y,S);u=d();let x=CD(v,u),C=b.createHref(v);i.replaceState(x,"",C),o&&c&&c({action:s,location:b.location,delta:0})}function h(y){let S=a.location.origin!=="null"?a.location.origin:a.location.href,v=typeof y=="string"?y:Tb(y);return v=v.replace(/ $/,"%20"),Or(S,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,S)}let b={get action(){return s},get location(){return e(a,i)},listen(y){if(c)throw new Error("A history only accepts one active listener");return a.addEventListener(wD,f),c=y,()=>{a.removeEventListener(wD,f),c=null}},createHref(y){return t(a,y)},createURL:h,encodeLocation(y){let S=h(y);return{pathname:S.pathname,search:S.search,hash:S.hash}},push:p,replace:g,go(y){return i.go(y)}};return b}var ED;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ED||(ED={}));function T_e(e,t,n){return n===void 0&&(n="/"),R_e(e,t,n,!1)}function R_e(e,t,n,r){let a=typeof t=="string"?af(t):t,o=yN(a.pathname||"/",n);if(o==null)return null;let i=iK(e);__e(i);let s=null;for(let c=0;s==null&&c{let c={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};c.relativePath.startsWith("/")&&(Or(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let u=pl([r,c.relativePath]),d=n.concat(c);o.children&&o.children.length>0&&(Or(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),iK(o.children,t,d,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:P_e(u,o.index),routesMeta:d})};return e.forEach((o,i)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))a(o,i);else for(let c of sK(o.path))a(o,i,c)}),t}function sK(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return a?[o,""]:[o];let i=sK(r.join("/")),s=[];return s.push(...i.map(c=>c===""?o:[o,c].join("/"))),a&&s.push(...i),s.map(c=>e.startsWith("/")&&c===""?"/":c)}function __e(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:D_e(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const $_e=/^:[\w-]+$/,O_e=3,N_e=2,k_e=1,A_e=10,M_e=-2,ID=e=>e==="*";function P_e(e,t){let n=e.split("/"),r=n.length;return n.some(ID)&&(r+=M_e),t&&(r+=N_e),n.filter(a=>!ID(a)).reduce((a,o)=>a+($_e.test(o)?O_e:o===""?k_e:A_e),r)}function D_e(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function L_e(e,t,n){let{routesMeta:r}=e,a={},o="/",i=[];for(let s=0;s{let{paramName:p,isOptional:g}=d;if(p==="*"){let b=s[f]||"";i=o.slice(0,o.length-b.length).replace(/(.)\/+$/,"$1")}const h=s[f];return g&&!h?u[p]=void 0:u[p]=(h||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:i,pattern:e}}function F_e(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),oK(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,c)=>(r.push({paramName:s,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function j_e(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return oK(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function yN(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function B_e(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?af(e):e;return{pathname:n?n.startsWith("/")?n:z_e(n,t):t,search:V_e(r),hash:W_e(a)}}function z_e(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function A1(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function H_e(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function lK(e,t){let n=H_e(e);return t?n.map((r,a)=>a===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function cK(e,t,n,r){r===void 0&&(r=!1);let a;typeof e=="string"?a=af(e):(a=bg({},e),Or(!a.pathname||!a.pathname.includes("?"),A1("?","pathname","search",a)),Or(!a.pathname||!a.pathname.includes("#"),A1("#","pathname","hash",a)),Or(!a.search||!a.search.includes("#"),A1("#","search","hash",a)));let o=e===""||a.pathname==="",i=o?"/":a.pathname,s;if(i==null)s=n;else{let f=t.length-1;if(!r&&i.startsWith("..")){let p=i.split("/");for(;p[0]==="..";)p.shift(),f-=1;a.pathname=p.join("/")}s=f>=0?t[f]:"/"}let c=B_e(a,s),u=i&&i!=="/"&&i.endsWith("/"),d=(o||i===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const pl=e=>e.join("/").replace(/\/\/+/g,"/"),U_e=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),V_e=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,W_e=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function G_e(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const uK=["post","put","patch","delete"];new Set(uK);const q_e=["get",...uK];new Set(q_e);/** + */function Sg(){return Sg=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function oK(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function E_e(){return Math.random().toString(36).substr(2,8)}function CD(e,t){return{usr:e.state,key:e.key,idx:t}}function t_(e,t,n,r){return n===void 0&&(n=null),Sg({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?af(t):t,{state:n,key:t&&t.key||r||E_e()})}function Rb(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function af(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function I_e(e,t,n,r){r===void 0&&(r={});let{window:a=document.defaultView,v5Compat:o=!1}=r,i=a.history,s=tl.Pop,c=null,u=d();u==null&&(u=0,i.replaceState(Sg({},i.state,{idx:u}),""));function d(){return(i.state||{idx:null}).idx}function f(){s=tl.Pop;let y=d(),S=y==null?null:y-u;u=y,c&&c({action:s,location:b.location,delta:S})}function p(y,S){s=tl.Push;let v=t_(b.location,y,S);u=d()+1;let x=CD(v,u),w=b.createHref(v);try{i.pushState(x,"",w)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;a.location.assign(w)}o&&c&&c({action:s,location:b.location,delta:1})}function g(y,S){s=tl.Replace;let v=t_(b.location,y,S);u=d();let x=CD(v,u),w=b.createHref(v);i.replaceState(x,"",w),o&&c&&c({action:s,location:b.location,delta:0})}function h(y){let S=a.location.origin!=="null"?a.location.origin:a.location.href,v=typeof y=="string"?y:Rb(y);return v=v.replace(/ $/,"%20"),Or(S,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,S)}let b={get action(){return s},get location(){return e(a,i)},listen(y){if(c)throw new Error("A history only accepts one active listener");return a.addEventListener(wD,f),c=y,()=>{a.removeEventListener(wD,f),c=null}},createHref(y){return t(a,y)},createURL:h,encodeLocation(y){let S=h(y);return{pathname:S.pathname,search:S.search,hash:S.hash}},push:p,replace:g,go(y){return i.go(y)}};return b}var ED;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ED||(ED={}));function T_e(e,t,n){return n===void 0&&(n="/"),R_e(e,t,n,!1)}function R_e(e,t,n,r){let a=typeof t=="string"?af(t):t,o=SN(a.pathname||"/",n);if(o==null)return null;let i=iK(e);__e(i);let s=null;for(let c=0;s==null&&c{let c={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};c.relativePath.startsWith("/")&&(Or(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let u=pl([r,c.relativePath]),d=n.concat(c);o.children&&o.children.length>0&&(Or(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),iK(o.children,t,d,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:P_e(u,o.index),routesMeta:d})};return e.forEach((o,i)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))a(o,i);else for(let c of sK(o.path))a(o,i,c)}),t}function sK(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return a?[o,""]:[o];let i=sK(r.join("/")),s=[];return s.push(...i.map(c=>c===""?o:[o,c].join("/"))),a&&s.push(...i),s.map(c=>e.startsWith("/")&&c===""?"/":c)}function __e(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:D_e(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const $_e=/^:[\w-]+$/,O_e=3,N_e=2,k_e=1,A_e=10,M_e=-2,ID=e=>e==="*";function P_e(e,t){let n=e.split("/"),r=n.length;return n.some(ID)&&(r+=M_e),t&&(r+=N_e),n.filter(a=>!ID(a)).reduce((a,o)=>a+($_e.test(o)?O_e:o===""?k_e:A_e),r)}function D_e(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function L_e(e,t,n){let{routesMeta:r}=e,a={},o="/",i=[];for(let s=0;s{let{paramName:p,isOptional:g}=d;if(p==="*"){let b=s[f]||"";i=o.slice(0,o.length-b.length).replace(/(.)\/+$/,"$1")}const h=s[f];return g&&!h?u[p]=void 0:u[p]=(h||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:i,pattern:e}}function F_e(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),oK(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,c)=>(r.push({paramName:s,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function j_e(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return oK(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function SN(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function B_e(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?af(e):e;return{pathname:n?n.startsWith("/")?n:z_e(n,t):t,search:V_e(r),hash:W_e(a)}}function z_e(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function M1(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function H_e(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function lK(e,t){let n=H_e(e);return t?n.map((r,a)=>a===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function cK(e,t,n,r){r===void 0&&(r=!1);let a;typeof e=="string"?a=af(e):(a=Sg({},e),Or(!a.pathname||!a.pathname.includes("?"),M1("?","pathname","search",a)),Or(!a.pathname||!a.pathname.includes("#"),M1("#","pathname","hash",a)),Or(!a.search||!a.search.includes("#"),M1("#","search","hash",a)));let o=e===""||a.pathname==="",i=o?"/":a.pathname,s;if(i==null)s=n;else{let f=t.length-1;if(!r&&i.startsWith("..")){let p=i.split("/");for(;p[0]==="..";)p.shift(),f-=1;a.pathname=p.join("/")}s=f>=0?t[f]:"/"}let c=B_e(a,s),u=i&&i!=="/"&&i.endsWith("/"),d=(o||i===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const pl=e=>e.join("/").replace(/\/\/+/g,"/"),U_e=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),V_e=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,W_e=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function G_e(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const uK=["post","put","patch","delete"];new Set(uK);const q_e=["get",...uK];new Set(q_e);/** * React Router v6.26.2 * * Copyright (c) Remix Software Inc. @@ -511,7 +511,7 @@ html body { * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function yg(){return yg=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),l.useCallback(function(u,d){if(d===void 0&&(d={}),!s.current)return;if(typeof u=="number"){r.go(u);return}let f=cK(u,JSON.parse(i),o,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:pl([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,i,o,e])}function pK(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=l.useContext(zc),{matches:a}=l.useContext(Hc),{pathname:o}=Ki(),i=JSON.stringify(lK(a,r.v7_relativeSplatPath));return l.useMemo(()=>cK(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function Z_e(e,t){return Q_e(e,t)}function Q_e(e,t,n,r){hm()||Or(!1);let{navigator:a}=l.useContext(zc),{matches:o}=l.useContext(Hc),i=o[o.length-1],s=i?i.params:{};i&&i.pathname;let c=i?i.pathnameBase:"/";i&&i.route;let u=Ki(),d;if(t){var f;let y=typeof t=="string"?af(t):t;c==="/"||(f=y.pathname)!=null&&f.startsWith(c)||Or(!1),d=y}else d=u;let p=d.pathname||"/",g=p;if(c!=="/"){let y=c.replace(/^\//,"").split("/");g="/"+p.replace(/^\//,"").split("/").slice(y.length).join("/")}let h=T_e(e,{pathname:g}),b=r$e(h&&h.map(y=>Object.assign({},y,{params:Object.assign({},s,y.params),pathname:pl([c,a.encodeLocation?a.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?c:pl([c,a.encodeLocation?a.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),o,n,r);return t&&b?l.createElement(py.Provider,{value:{location:yg({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:tl.Pop}},b):b}function J_e(){let e=s$e(),t=G_e(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return l.createElement(l.Fragment,null,l.createElement("h2",null,"Unexpected Application Error!"),l.createElement("h3",{style:{fontStyle:"italic"}},t),n?l.createElement("pre",{style:a},n):null,null)}const e$e=l.createElement(J_e,null);class t$e extends l.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?l.createElement(Hc.Provider,{value:this.props.routeContext},l.createElement(dK.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function n$e(e){let{routeContext:t,match:n,children:r}=e,a=l.useContext(SN);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),l.createElement(Hc.Provider,{value:t},r)}function r$e(e,t,n,r){var a;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,s=(a=n)==null?void 0:a.errors;if(s!=null){let d=i.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);d>=0||Or(!1),i=i.slice(0,Math.min(i.length,d+1))}let c=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((d,f,p)=>{let g,h=!1,b=null,y=null;n&&(g=s&&f.route.id?s[f.route.id]:void 0,b=f.route.errorElement||e$e,c&&(u<0&&p===0?(h=!0,y=null):u===p&&(h=!0,y=f.route.hydrateFallbackElement||null)));let S=t.concat(i.slice(0,p+1)),v=()=>{let x;return g?x=b:h?x=y:f.route.Component?x=l.createElement(f.route.Component,null):f.route.element?x=f.route.element:x=d,l.createElement(n$e,{match:f,routeContext:{outlet:d,matches:S,isDataRoute:n!=null},children:x})};return n&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?l.createElement(t$e,{location:n.location,revalidation:n.revalidation,component:b,error:g,children:v(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):v()},null)}var gK=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(gK||{}),Rb=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Rb||{});function a$e(e){let t=l.useContext(SN);return t||Or(!1),t}function o$e(e){let t=l.useContext(K_e);return t||Or(!1),t}function i$e(e){let t=l.useContext(Hc);return t||Or(!1),t}function mK(e){let t=i$e(),n=t.matches[t.matches.length-1];return n.route.id||Or(!1),n.route.id}function s$e(){var e;let t=l.useContext(dK),n=o$e(Rb.UseRouteError),r=mK(Rb.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function l$e(){let{router:e}=a$e(gK.UseNavigateStable),t=mK(Rb.UseNavigateStable),n=l.useRef(!1);return fK(()=>{n.current=!0}),l.useCallback(function(a,o){o===void 0&&(o={}),n.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,yg({fromRouteId:t},o)))},[e,t])}function $n(e){Or(!1)}function c$e(e){let{basename:t="/",children:n=null,location:r,navigationType:a=tl.Pop,navigator:o,static:i=!1,future:s}=e;hm()&&Or(!1);let c=t.replace(/^\/*/,"/"),u=l.useMemo(()=>({basename:c,navigator:o,static:i,future:yg({v7_relativeSplatPath:!1},s)}),[c,s,o,i]);typeof r=="string"&&(r=af(r));let{pathname:d="/",search:f="",hash:p="",state:g=null,key:h="default"}=r,b=l.useMemo(()=>{let y=yN(d,c);return y==null?null:{location:{pathname:y,search:f,hash:p,state:g,key:h},navigationType:a}},[c,d,f,p,g,h,a]);return b==null?null:l.createElement(zc.Provider,{value:u},l.createElement(py.Provider,{children:n,value:b}))}function u$e(e){let{children:t,location:n}=e;return Z_e(t_(t),n)}new Promise(()=>{});function t_(e,t){t===void 0&&(t=[]);let n=[];return l.Children.forEach(e,(r,a)=>{if(!l.isValidElement(r))return;let o=[...t,a];if(r.type===l.Fragment){n.push.apply(n,t_(r.props.children,o));return}r.type!==$n&&Or(!1),!r.props.index||!r.props.children||Or(!1);let i={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=t_(r.props.children,o)),n.push(i)}),n}/** + */function xg(){return xg=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),l.useCallback(function(u,d){if(d===void 0&&(d={}),!s.current)return;if(typeof u=="number"){r.go(u);return}let f=cK(u,JSON.parse(i),o,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:pl([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,i,o,e])}function pK(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=l.useContext(zc),{matches:a}=l.useContext(Hc),{pathname:o}=Yi(),i=JSON.stringify(lK(a,r.v7_relativeSplatPath));return l.useMemo(()=>cK(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function Z_e(e,t){return Q_e(e,t)}function Q_e(e,t,n,r){bm()||Or(!1);let{navigator:a}=l.useContext(zc),{matches:o}=l.useContext(Hc),i=o[o.length-1],s=i?i.params:{};i&&i.pathname;let c=i?i.pathnameBase:"/";i&&i.route;let u=Yi(),d;if(t){var f;let y=typeof t=="string"?af(t):t;c==="/"||(f=y.pathname)!=null&&f.startsWith(c)||Or(!1),d=y}else d=u;let p=d.pathname||"/",g=p;if(c!=="/"){let y=c.replace(/^\//,"").split("/");g="/"+p.replace(/^\//,"").split("/").slice(y.length).join("/")}let h=T_e(e,{pathname:g}),b=r$e(h&&h.map(y=>Object.assign({},y,{params:Object.assign({},s,y.params),pathname:pl([c,a.encodeLocation?a.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?c:pl([c,a.encodeLocation?a.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),o,n,r);return t&&b?l.createElement(gy.Provider,{value:{location:xg({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:tl.Pop}},b):b}function J_e(){let e=s$e(),t=G_e(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return l.createElement(l.Fragment,null,l.createElement("h2",null,"Unexpected Application Error!"),l.createElement("h3",{style:{fontStyle:"italic"}},t),n?l.createElement("pre",{style:a},n):null,null)}const e$e=l.createElement(J_e,null);class t$e extends l.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?l.createElement(Hc.Provider,{value:this.props.routeContext},l.createElement(dK.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function n$e(e){let{routeContext:t,match:n,children:r}=e,a=l.useContext(xN);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),l.createElement(Hc.Provider,{value:t},r)}function r$e(e,t,n,r){var a;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,s=(a=n)==null?void 0:a.errors;if(s!=null){let d=i.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);d>=0||Or(!1),i=i.slice(0,Math.min(i.length,d+1))}let c=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((d,f,p)=>{let g,h=!1,b=null,y=null;n&&(g=s&&f.route.id?s[f.route.id]:void 0,b=f.route.errorElement||e$e,c&&(u<0&&p===0?(h=!0,y=null):u===p&&(h=!0,y=f.route.hydrateFallbackElement||null)));let S=t.concat(i.slice(0,p+1)),v=()=>{let x;return g?x=b:h?x=y:f.route.Component?x=l.createElement(f.route.Component,null):f.route.element?x=f.route.element:x=d,l.createElement(n$e,{match:f,routeContext:{outlet:d,matches:S,isDataRoute:n!=null},children:x})};return n&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?l.createElement(t$e,{location:n.location,revalidation:n.revalidation,component:b,error:g,children:v(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):v()},null)}var gK=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(gK||{}),_b=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(_b||{});function a$e(e){let t=l.useContext(xN);return t||Or(!1),t}function o$e(e){let t=l.useContext(K_e);return t||Or(!1),t}function i$e(e){let t=l.useContext(Hc);return t||Or(!1),t}function mK(e){let t=i$e(),n=t.matches[t.matches.length-1];return n.route.id||Or(!1),n.route.id}function s$e(){var e;let t=l.useContext(dK),n=o$e(_b.UseRouteError),r=mK(_b.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function l$e(){let{router:e}=a$e(gK.UseNavigateStable),t=mK(_b.UseNavigateStable),n=l.useRef(!1);return fK(()=>{n.current=!0}),l.useCallback(function(a,o){o===void 0&&(o={}),n.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,xg({fromRouteId:t},o)))},[e,t])}function $n(e){Or(!1)}function c$e(e){let{basename:t="/",children:n=null,location:r,navigationType:a=tl.Pop,navigator:o,static:i=!1,future:s}=e;bm()&&Or(!1);let c=t.replace(/^\/*/,"/"),u=l.useMemo(()=>({basename:c,navigator:o,static:i,future:xg({v7_relativeSplatPath:!1},s)}),[c,s,o,i]);typeof r=="string"&&(r=af(r));let{pathname:d="/",search:f="",hash:p="",state:g=null,key:h="default"}=r,b=l.useMemo(()=>{let y=SN(d,c);return y==null?null:{location:{pathname:y,search:f,hash:p,state:g,key:h},navigationType:a}},[c,d,f,p,g,h,a]);return b==null?null:l.createElement(zc.Provider,{value:u},l.createElement(gy.Provider,{children:n,value:b}))}function u$e(e){let{children:t,location:n}=e;return Z_e(n_(t),n)}new Promise(()=>{});function n_(e,t){t===void 0&&(t=[]);let n=[];return l.Children.forEach(e,(r,a)=>{if(!l.isValidElement(r))return;let o=[...t,a];if(r.type===l.Fragment){n.push.apply(n,n_(r.props.children,o));return}r.type!==$n&&Or(!1),!r.props.index||!r.props.children||Or(!1);let i={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=n_(r.props.children,o)),n.push(i)}),n}/** * React Router DOM v6.26.2 * * Copyright (c) Remix Software Inc. @@ -520,75 +520,75 @@ html body { * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function n_(){return n_=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[a]=e[a]);return n}function f$e(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function p$e(e,t){return e.button===0&&(!t||t==="_self")&&!f$e(e)}const g$e=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],m$e="6";try{window.__reactRouterVersion=m$e}catch{}const h$e="startTransition",RD=Lg[h$e];function v$e(e){let{basename:t,children:n,future:r,window:a}=e,o=l.useRef();o.current==null&&(o.current=C_e({window:a,v5Compat:!0}));let i=o.current,[s,c]=l.useState({action:i.action,location:i.location}),{v7_startTransition:u}=r||{},d=l.useCallback(f=>{u&&RD?RD(()=>c(f)):c(f)},[c,u]);return l.useLayoutEffect(()=>i.listen(d),[i,d]),l.createElement(c$e,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:i,future:r})}const b$e=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",y$e=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,gt=l.forwardRef(function(t,n){let{onClick:r,relative:a,reloadDocument:o,replace:i,state:s,target:c,to:u,preventScrollReset:d,unstable_viewTransition:f}=t,p=d$e(t,g$e),{basename:g}=l.useContext(zc),h,b=!1;if(typeof u=="string"&&y$e.test(u)&&(h=u,b$e))try{let x=new URL(window.location.href),C=u.startsWith("//")?new URL(x.protocol+u):new URL(u),w=yN(C.pathname,g);C.origin===x.origin&&w!=null?u=w+C.search+C.hash:b=!0}catch{}let y=Y_e(u,{relative:a}),S=S$e(u,{replace:i,state:s,target:c,preventScrollReset:d,relative:a,unstable_viewTransition:f});function v(x){r&&r(x),x.defaultPrevented||S(x)}return l.createElement("a",n_({},p,{href:h||y,onClick:b||o?r:v,ref:n,target:c}))});var _D;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(_D||(_D={}));var $D;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})($D||($D={}));function S$e(e,t){let{target:n,replace:r,state:a,preventScrollReset:o,relative:i,unstable_viewTransition:s}=t===void 0?{}:t,c=xN(),u=Ki(),d=pK(e,{relative:i});return l.useCallback(f=>{if(p$e(f,n)){f.preventDefault();let p=r!==void 0?r:Tb(u)===Tb(d);c(e,{replace:p,state:a,preventScrollReset:o,relative:i,unstable_viewTransition:s})}},[u,c,d,r,a,n,e,o,i,s])}const hK="/web/assets/logo-aw46LCqE.png",x$e=()=>{const t=document.createElement("audio").canPlayType("audio/ogg; codecs=opus");return console.log("Supports OGG/Opus:",t),t==="probably"||t==="maybe"};function vs(){const e=window.matchMedia("(prefers-color-scheme: dark)").matches,t=localStorage.getItem("theme");return t==="auto"?e?"dark":"light":t}const vK=se.createContext(void 0),gy=()=>{const e=l.useContext(vK);if(!e)throw new Error("useAudioContext must be used within an AudioProvider");return e},OD=e=>{const n=e.split("?")[0].split("/");return n[n.length-1]},w$e=({children:e})=>{const{t}=Nt(),[n,r]=l.useState(""),[a,o]=l.useState(""),[i,s]=l.useState(""),[c,u]=l.useState([]),d=(f,p,g)=>{if(console.log("Play audio: "+f),/\/....04E0\?|(\?ogg)/.test(f)&&!x$e())Sn.error({title:t("audio.errorNoOggOpusSupport"),content:t("audio.errorNoOggOpusSupportByApple"),okText:t("audio.errorConfirm")});else{const y=document.getElementById("globalAudioPlayer");y.src=f,p?(r(p.picture),o(p.series||p.episode?p.series:OD(decodeURI(f).replace("500304E0",t("audio.unknownSource")))),s(p.episode)):(r(decodeURI(f).includes(".taf?")?"/img_unknown.png":hK),o(""),s(OD(decodeURI(f)))),u(g||[0]),y.play()}};return m.jsx(vK.Provider,{value:{playAudio:d,songImage:n,songArtist:a,songTitle:i,songTracks:c},children:e})},C$e=[{key:"sub",label:"subnav",children:[{key:"1",label:"option1"},{key:"2",label:"option2"},{key:"3",label:"option3"},{key:"4",label:"option4"}],icon:se.createElement(pq)},{key:"sub2",label:"subnav",children:[{key:"1",label:"option1"},{key:"2",label:"option2"},{key:"3",label:"option3"},{key:"4",label:"option4"}],icon:se.createElement(Twe)}],E$e=()=>{const{t:e}=Nt();return m.jsxs(m.Fragment,{children:[m.jsx(U0,{width:200,children:m.jsx(Wi,{mode:"inline",style:{height:"100%",borderRight:0},items:C$e})}),m.jsxs(Gi,{style:{padding:"0 24px 24px"},children:[m.jsxs(Xd,{style:{margin:"16px 0"},children:[m.jsx(nd,{children:"Home"}),m.jsx(nd,{children:"List"}),m.jsx(nd,{children:"App"})]}),m.jsxs(YG,{style:{padding:24,margin:0,minHeight:280},children:[m.jsx("p",{children:e("welcome.title")}),m.jsx("p",{children:"Sample datepicker from ant design:"}),m.jsx(ef,{})]})]})]})};var Ga=function(){return Ga=Object.assign||function(t){for(var n,r=1,a=arguments.length;r0?qr(of,--Vo):0,Rd--,_r===10&&(Rd=1,hy--),_r}function fi(){return _r=Vo2||a_(_r)>3?"":" "}function M$e(e,t){for(;--t&&fi()&&!(_r<48||_r>102||_r>57&&_r<65||_r>70&&_r<97););return by(e,bv()+(t<6&&fc()==32&&fi()==32))}function o_(e){for(;fi();)switch(_r){case e:return Vo;case 34:case 39:e!==34&&e!==39&&o_(_r);break;case 40:e===41&&o_(e);break;case 92:fi();break}return Vo}function P$e(e,t){for(;fi()&&e+_r!==57;)if(e+_r===84&&fc()===47)break;return"/*"+by(t,Vo-1)+"*"+CN(e===47?e:fi())}function D$e(e){for(;!a_(fc());)fi();return by(e,Vo)}function L$e(e){return k$e(yv("",null,null,null,[""],e=N$e(e),0,[0],e))}function yv(e,t,n,r,a,o,i,s,c){for(var u=0,d=0,f=i,p=0,g=0,h=0,b=1,y=1,S=1,v=0,x="",C=a,w=o,E=r,I=x;y;)switch(h=v,v=fi()){case 40:if(h!=108&&qr(I,f-1)==58){vv(I+=ln(M1(v),"&","&\f"),"&\f",SK(u?s[u-1]:0))!=-1&&(S=-1);break}case 34:case 39:case 91:I+=M1(v);break;case 9:case 10:case 13:case 32:I+=A$e(h);break;case 92:I+=M$e(bv()-1,7);continue;case 47:switch(fc()){case 42:case 47:Jf(F$e(P$e(fi(),bv()),t,n,c),c);break;default:I+="/"}break;case 123*b:s[u++]=Oi(I)*S;case 125*b:case 59:case 0:switch(v){case 0:case 125:y=0;case 59+d:S==-1&&(I=ln(I,/\f/g,"")),g>0&&Oi(I)-f&&Jf(g>32?AD(I+";",r,n,f-1,c):AD(ln(I," ","")+";",r,n,f-2,c),c);break;case 59:I+=";";default:if(Jf(E=kD(I,t,n,u,d,a,s,x,C=[],w=[],f,o),o),v===123)if(d===0)yv(I,t,E,E,C,o,f,s,w);else switch(p===99&&qr(I,3)===110?100:p){case 100:case 108:case 109:case 115:yv(e,E,E,r&&Jf(kD(e,E,E,0,0,a,s,x,a,C=[],f,w),w),a,w,f,s,r?C:w);break;default:yv(I,E,E,E,[""],w,0,s,w)}}u=d=g=0,b=S=1,x=I="",f=i;break;case 58:f=1+Oi(I),g=h;default:if(b<1){if(v==123)--b;else if(v==125&&b++==0&&O$e()==125)continue}switch(I+=CN(v),v*b){case 38:S=d>0?1:(I+="\f",-1);break;case 44:s[u++]=(Oi(I)-1)*S,S=1;break;case 64:fc()===45&&(I+=M1(fi())),p=fc(),d=f=Oi(x=I+=D$e(bv())),v++;break;case 45:h===45&&Oi(I)==2&&(b=0)}}return o}function kD(e,t,n,r,a,o,i,s,c,u,d,f){for(var p=a-1,g=a===0?o:[""],h=wK(g),b=0,y=0,S=0;b0?g[v]+" "+x:ln(x,/&\f/g,g[v])))&&(c[S++]=C);return vy(e,t,n,a===0?my:s,c,u,d,f)}function F$e(e,t,n,r){return vy(e,t,n,bK,CN($$e()),Td(e,2,-2),0,r)}function AD(e,t,n,r,a){return vy(e,t,n,wN,Td(e,0,r),Td(e,r+1,-1),r,a)}function EK(e,t,n){switch(R$e(e,t)){case 5103:return Nn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Nn+e+e;case 4789:return Ep+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Nn+e+Ep+e+rr+e+e;case 5936:switch(qr(e,t+11)){case 114:return Nn+e+rr+ln(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Nn+e+rr+ln(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Nn+e+rr+ln(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Nn+e+rr+e+e;case 6165:return Nn+e+rr+"flex-"+e+e;case 5187:return Nn+e+ln(e,/(\w+).+(:[^]+)/,Nn+"box-$1$2"+rr+"flex-$1$2")+e;case 5443:return Nn+e+rr+"flex-item-"+ln(e,/flex-|-self/g,"")+(as(e,/flex-|baseline/)?"":rr+"grid-row-"+ln(e,/flex-|-self/g,""))+e;case 4675:return Nn+e+rr+"flex-line-pack"+ln(e,/align-content|flex-|-self/g,"")+e;case 5548:return Nn+e+rr+ln(e,"shrink","negative")+e;case 5292:return Nn+e+rr+ln(e,"basis","preferred-size")+e;case 6060:return Nn+"box-"+ln(e,"-grow","")+Nn+e+rr+ln(e,"grow","positive")+e;case 4554:return Nn+ln(e,/([^-])(transform)/g,"$1"+Nn+"$2")+e;case 6187:return ln(ln(ln(e,/(zoom-|grab)/,Nn+"$1"),/(image-set)/,Nn+"$1"),e,"")+e;case 5495:case 3959:return ln(e,/(image-set\([^]*)/,Nn+"$1$`$1");case 4968:return ln(ln(e,/(.+:)(flex-)?(.*)/,Nn+"box-pack:$3"+rr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Nn+e+e;case 4200:if(!as(e,/flex-|baseline/))return rr+"grid-column-align"+Td(e,t)+e;break;case 2592:case 3360:return rr+ln(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,a){return t=a,as(r.props,/grid-\w+-end/)})?~vv(e+(n=n[t].value),"span",0)?e:rr+ln(e,"-start","")+e+rr+"grid-row-span:"+(~vv(n,"span",0)?as(n,/\d+/):+as(n,/\d+/)-+as(e,/\d+/))+";":rr+ln(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return as(r.props,/grid-\w+-start/)})?e:rr+ln(ln(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return ln(e,/(.+)-inline(.+)/,Nn+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Oi(e)-1-t>6)switch(qr(e,t+1)){case 109:if(qr(e,t+4)!==45)break;case 102:return ln(e,/(.+:)(.+)-([^]+)/,"$1"+Nn+"$2-$3$1"+Ep+(qr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~vv(e,"stretch",0)?EK(ln(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return ln(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,a,o,i,s,c,u){return rr+a+":"+o+u+(i?rr+a+"-span:"+(s?c:+c-+o)+u:"")+e});case 4949:if(qr(e,t+6)===121)return ln(e,":",":"+Nn)+e;break;case 6444:switch(qr(e,qr(e,14)===45?18:11)){case 120:return ln(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Nn+(qr(e,14)===45?"inline-":"")+"box$3$1"+Nn+"$2$3$1"+rr+"$2box$3")+e;case 100:return ln(e,":",":"+rr)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return ln(e,"scroll-","scroll-snap-")+e}return e}function $b(e,t){for(var n="",r=0;r-1&&!e.return)switch(e.type){case wN:e.return=EK(e.value,e.length,n);return;case yK:return $b([zs(e,{value:ln(e.value,"@","@"+Nn)})],r);case my:if(e.length)return _$e(n=e.props,function(a){switch(as(a,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":pu(zs(e,{props:[ln(a,/:(read-\w+)/,":"+Ep+"$1")]})),pu(zs(e,{props:[a]})),r_(e,{props:ND(n,r)});break;case"::placeholder":pu(zs(e,{props:[ln(a,/:(plac\w+)/,":"+Nn+"input-$1")]})),pu(zs(e,{props:[ln(a,/:(plac\w+)/,":"+Ep+"$1")]})),pu(zs(e,{props:[ln(a,/:(plac\w+)/,rr+"input-$1")]})),pu(zs(e,{props:[a]})),r_(e,{props:ND(n,r)});break}return""})}}var U$e={animationIterationCount:1,aspectRatio: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},so={},_d=typeof process<"u"&&so!==void 0&&(so.REACT_APP_SC_ATTR||so.SC_ATTR)||"data-styled",IK="active",TK="data-styled-version",yy="6.1.13",EN=`/*!sc*/ -`,Ob=typeof window<"u"&&"HTMLElement"in window,V$e=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&so!==void 0&&so.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&so.REACT_APP_SC_DISABLE_SPEEDY!==""?so.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&so.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&so!==void 0&&so.SC_DISABLE_SPEEDY!==void 0&&so.SC_DISABLE_SPEEDY!==""&&so.SC_DISABLE_SPEEDY!=="false"&&so.SC_DISABLE_SPEEDY),Sy=Object.freeze([]),$d=Object.freeze({});function W$e(e,t,n){return n===void 0&&(n=$d),e.theme!==n.theme&&e.theme||t||n.theme}var RK=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),G$e=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,q$e=/(^-|-$)/g;function MD(e){return e.replace(G$e,"-").replace(q$e,"")}var K$e=/(a)(d)/gi,Th=52,PD=function(e){return String.fromCharCode(e+(e>25?39:97))};function i_(e){var t,n="";for(t=Math.abs(e);t>Th;t=t/Th|0)n=PD(t%Th)+n;return(PD(t%Th)+n).replace(K$e,"$1-$2")}var P1,_K=5381,Uu=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},$K=function(e){return Uu(_K,e)};function Y$e(e){return i_($K(e)>>>0)}function X$e(e){return e.displayName||e.name||"Component"}function D1(e){return typeof e=="string"&&!0}var OK=typeof Symbol=="function"&&Symbol.for,NK=OK?Symbol.for("react.memo"):60115,Z$e=OK?Symbol.for("react.forward_ref"):60112,Q$e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},J$e={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},kK={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},eOe=((P1={})[Z$e]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},P1[NK]=kK,P1);function DD(e){return("type"in(t=e)&&t.type.$$typeof)===NK?kK:"$$typeof"in e?eOe[e.$$typeof]:Q$e;var t}var tOe=Object.defineProperty,nOe=Object.getOwnPropertyNames,LD=Object.getOwnPropertySymbols,rOe=Object.getOwnPropertyDescriptor,aOe=Object.getPrototypeOf,FD=Object.prototype;function AK(e,t,n){if(typeof t!="string"){if(FD){var r=aOe(t);r&&r!==FD&&AK(e,r,n)}var a=nOe(t);LD&&(a=a.concat(LD(t)));for(var o=DD(e),i=DD(t),s=0;s0?" Args: ".concat(t.join(", ")):""))}var oOe=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r=this.groupSizes.length){for(var r=this.groupSizes,a=r.length,o=a;t>=o;)if((o<<=1)<0)throw vm(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=a;i=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],a=this.indexOfGroup(t),o=a+r,i=a;i=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t0&&(y+="".concat(S,","))}),c+="".concat(h).concat(b,'{content:"').concat(y,'"}').concat(EN)},d=0;d0?".".concat(t):p},d=c.slice();d.push(function(p){p.type===my&&p.value.includes("&")&&(p.props[0]=p.props[0].replace(hOe,n).replace(r,u))}),i.prefix&&d.push(H$e),d.push(j$e);var f=function(p,g,h,b){g===void 0&&(g=""),h===void 0&&(h=""),b===void 0&&(b="&"),t=b,n=g,r=new RegExp("\\".concat(n,"\\b"),"g");var y=p.replace(vOe,""),S=L$e(h||g?"".concat(h," ").concat(g," { ").concat(y," }"):y);i.namespace&&(S=DK(S,i.namespace));var v=[];return $b(S,B$e(d.concat(z$e(function(x){return v.push(x)})))),v};return f.hash=c.length?c.reduce(function(p,g){return g.name||vm(15),Uu(p,g.name)},_K).toString():"",f}var yOe=new PK,l_=bOe(),LK=se.createContext({shouldForwardProp:void 0,styleSheet:yOe,stylis:l_});LK.Consumer;se.createContext(void 0);function HD(){return l.useContext(LK)}var SOe=function(){function e(t,n){var r=this;this.inject=function(a,o){o===void 0&&(o=l_);var i=r.name+o.hash;a.hasNameForId(r.id,i)||a.insertRules(r.id,i,o(r.rules,i,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,TN(this,function(){throw vm(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=l_),this.name+t.hash},e}(),xOe=function(e){return e>="A"&&e<="Z"};function UD(e){for(var t="",n=0;n>>0);if(!n.hasNameForId(this.componentId,i)){var s=r(o,".".concat(i),void 0,this.componentId);n.insertRules(this.componentId,i,s)}a=nc(a,i),this.staticRulesId=i}else{for(var c=Uu(this.baseHash,r.hash),u="",d=0;d>>0);n.hasNameForId(this.componentId,g)||n.insertRules(this.componentId,g,r(u,".".concat(g),void 0,this.componentId)),a=nc(a,g)}}return a},e}(),BK=se.createContext(void 0);BK.Consumer;var L1={};function IOe(e,t,n){var r=IN(e),a=e,o=!D1(e),i=t.attrs,s=i===void 0?Sy:i,c=t.componentId,u=c===void 0?function(C,w){var E=typeof C!="string"?"sc":MD(C);L1[E]=(L1[E]||0)+1;var I="".concat(E,"-").concat(Y$e(yy+E+L1[E]));return w?"".concat(w,"-").concat(I):I}(t.displayName,t.parentComponentId):c,d=t.displayName,f=d===void 0?function(C){return D1(C)?"styled.".concat(C):"Styled(".concat(X$e(C),")")}(e):d,p=t.displayName&&t.componentId?"".concat(MD(t.displayName),"-").concat(t.componentId):t.componentId||u,g=r&&a.attrs?a.attrs.concat(s).filter(Boolean):s,h=t.shouldForwardProp;if(r&&a.shouldForwardProp){var b=a.shouldForwardProp;if(t.shouldForwardProp){var y=t.shouldForwardProp;h=function(C,w){return b(C,w)&&y(C,w)}}else h=b}var S=new EOe(n,p,r?a.componentStyle:void 0);function v(C,w){return function(E,I,T){var R=E.attrs,_=E.componentStyle,$=E.defaultProps,P=E.foldedComponentIds,D=E.styledComponentId,A=E.target,O=se.useContext(BK),N=HD(),k=E.shouldForwardProp||N.shouldForwardProp,M=W$e(I,O,$)||$d,L=function(V,te,Y){for(var J,G=Ga(Ga({},te),{className:void 0,theme:Y}),U=0;UROe().token,bm=La(Wi)` + */function r_(){return r_=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[a]=e[a]);return n}function f$e(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function p$e(e,t){return e.button===0&&(!t||t==="_self")&&!f$e(e)}const g$e=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],m$e="6";try{window.__reactRouterVersion=m$e}catch{}const h$e="startTransition",RD=jg[h$e];function v$e(e){let{basename:t,children:n,future:r,window:a}=e,o=l.useRef();o.current==null&&(o.current=C_e({window:a,v5Compat:!0}));let i=o.current,[s,c]=l.useState({action:i.action,location:i.location}),{v7_startTransition:u}=r||{},d=l.useCallback(f=>{u&&RD?RD(()=>c(f)):c(f)},[c,u]);return l.useLayoutEffect(()=>i.listen(d),[i,d]),l.createElement(c$e,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:i,future:r})}const b$e=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",y$e=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,yt=l.forwardRef(function(t,n){let{onClick:r,relative:a,reloadDocument:o,replace:i,state:s,target:c,to:u,preventScrollReset:d,unstable_viewTransition:f}=t,p=d$e(t,g$e),{basename:g}=l.useContext(zc),h,b=!1;if(typeof u=="string"&&y$e.test(u)&&(h=u,b$e))try{let x=new URL(window.location.href),w=u.startsWith("//")?new URL(x.protocol+u):new URL(u),C=SN(w.pathname,g);w.origin===x.origin&&C!=null?u=C+w.search+w.hash:b=!0}catch{}let y=Y_e(u,{relative:a}),S=S$e(u,{replace:i,state:s,target:c,preventScrollReset:d,relative:a,unstable_viewTransition:f});function v(x){r&&r(x),x.defaultPrevented||S(x)}return l.createElement("a",r_({},p,{href:h||y,onClick:b||o?r:v,ref:n,target:c}))});var _D;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(_D||(_D={}));var $D;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})($D||($D={}));function S$e(e,t){let{target:n,replace:r,state:a,preventScrollReset:o,relative:i,unstable_viewTransition:s}=t===void 0?{}:t,c=of(),u=Yi(),d=pK(e,{relative:i});return l.useCallback(f=>{if(p$e(f,n)){f.preventDefault();let p=r!==void 0?r:Rb(u)===Rb(d);c(e,{replace:p,state:a,preventScrollReset:o,relative:i,unstable_viewTransition:s})}},[u,c,d,r,a,n,e,o,i,s])}const hK="/web/assets/logo-aw46LCqE.png",x$e=()=>{const t=document.createElement("audio").canPlayType("audio/ogg; codecs=opus");return console.log("Supports OGG/Opus:",t),t==="probably"||t==="maybe"};function bs(){const e=window.matchMedia("(prefers-color-scheme: dark)").matches,t=localStorage.getItem("theme");return t==="auto"?e?"dark":"light":t}const vK=se.createContext(void 0),my=()=>{const e=l.useContext(vK);if(!e)throw new Error("useAudioContext must be used within an AudioProvider");return e},OD=e=>{const n=e.split("?")[0].split("/");return n[n.length-1]},w$e=({children:e})=>{const{t}=Nt(),[n,r]=l.useState(""),[a,o]=l.useState(""),[i,s]=l.useState(""),[c,u]=l.useState([]),d=(f,p,g)=>{if(console.log("Play audio: "+f),/\/....04E0\?|(\?ogg)/.test(f)&&!x$e())Sn.error({title:t("audio.errorNoOggOpusSupport"),content:t("audio.errorNoOggOpusSupportByApple"),okText:t("audio.errorConfirm")});else{const y=document.getElementById("globalAudioPlayer");y.src=f,p?(r(p.picture),o(p.series||p.episode?p.series:OD(decodeURI(f).replace("500304E0",t("audio.unknownSource")))),s(p.episode)):(r(decodeURI(f).includes(".taf?")?"/img_unknown.png":hK),o(""),s(OD(decodeURI(f)))),u(g||[0]),y.play()}};return m.jsx(vK.Provider,{value:{playAudio:d,songImage:n,songArtist:a,songTitle:i,songTracks:c},children:e})},C$e=[{key:"sub",label:"subnav",children:[{key:"1",label:"option1"},{key:"2",label:"option2"},{key:"3",label:"option3"},{key:"4",label:"option4"}],icon:se.createElement(pq)},{key:"sub2",label:"subnav",children:[{key:"1",label:"option1"},{key:"2",label:"option2"},{key:"3",label:"option3"},{key:"4",label:"option4"}],icon:se.createElement(Twe)}],E$e=()=>{const{t:e}=Nt();return m.jsxs(m.Fragment,{children:[m.jsx(V0,{width:200,children:m.jsx(Gi,{mode:"inline",style:{height:"100%",borderRight:0},items:C$e})}),m.jsxs(qi,{style:{padding:"0 24px 24px"},children:[m.jsxs(Xd,{style:{margin:"16px 0"},children:[m.jsx(nd,{children:"Home"}),m.jsx(nd,{children:"List"}),m.jsx(nd,{children:"App"})]}),m.jsxs(YG,{style:{padding:24,margin:0,minHeight:280},children:[m.jsx("p",{children:e("welcome.title")}),m.jsx("p",{children:"Sample datepicker from ant design:"}),m.jsx(ef,{})]})]})]})};var qa=function(){return qa=Object.assign||function(t){for(var n,r=1,a=arguments.length;r0?Yr(sf,--Wo):0,Rd--,_r===10&&(Rd=1,vy--),_r}function pi(){return _r=Wo2||o_(_r)>3?"":" "}function M$e(e,t){for(;--t&&pi()&&!(_r<48||_r>102||_r>57&&_r<65||_r>70&&_r<97););return yy(e,yv()+(t<6&&fc()==32&&pi()==32))}function i_(e){for(;pi();)switch(_r){case e:return Wo;case 34:case 39:e!==34&&e!==39&&i_(_r);break;case 40:e===41&&i_(e);break;case 92:pi();break}return Wo}function P$e(e,t){for(;pi()&&e+_r!==57;)if(e+_r===84&&fc()===47)break;return"/*"+yy(t,Wo-1)+"*"+CN(e===47?e:pi())}function D$e(e){for(;!o_(fc());)pi();return yy(e,Wo)}function L$e(e){return k$e(Sv("",null,null,null,[""],e=N$e(e),0,[0],e))}function Sv(e,t,n,r,a,o,i,s,c){for(var u=0,d=0,f=i,p=0,g=0,h=0,b=1,y=1,S=1,v=0,x="",w=a,C=o,E=r,I=x;y;)switch(h=v,v=pi()){case 40:if(h!=108&&Yr(I,f-1)==58){bv(I+=ln(P1(v),"&","&\f"),"&\f",SK(u?s[u-1]:0))!=-1&&(S=-1);break}case 34:case 39:case 91:I+=P1(v);break;case 9:case 10:case 13:case 32:I+=A$e(h);break;case 92:I+=M$e(yv()-1,7);continue;case 47:switch(fc()){case 42:case 47:tp(F$e(P$e(pi(),yv()),t,n,c),c);break;default:I+="/"}break;case 123*b:s[u++]=Ni(I)*S;case 125*b:case 59:case 0:switch(v){case 0:case 125:y=0;case 59+d:S==-1&&(I=ln(I,/\f/g,"")),g>0&&Ni(I)-f&&tp(g>32?AD(I+";",r,n,f-1,c):AD(ln(I," ","")+";",r,n,f-2,c),c);break;case 59:I+=";";default:if(tp(E=kD(I,t,n,u,d,a,s,x,w=[],C=[],f,o),o),v===123)if(d===0)Sv(I,t,E,E,w,o,f,s,C);else switch(p===99&&Yr(I,3)===110?100:p){case 100:case 108:case 109:case 115:Sv(e,E,E,r&&tp(kD(e,E,E,0,0,a,s,x,a,w=[],f,C),C),a,C,f,s,r?w:C);break;default:Sv(I,E,E,E,[""],C,0,s,C)}}u=d=g=0,b=S=1,x=I="",f=i;break;case 58:f=1+Ni(I),g=h;default:if(b<1){if(v==123)--b;else if(v==125&&b++==0&&O$e()==125)continue}switch(I+=CN(v),v*b){case 38:S=d>0?1:(I+="\f",-1);break;case 44:s[u++]=(Ni(I)-1)*S,S=1;break;case 64:fc()===45&&(I+=P1(pi())),p=fc(),d=f=Ni(x=I+=D$e(yv())),v++;break;case 45:h===45&&Ni(I)==2&&(b=0)}}return o}function kD(e,t,n,r,a,o,i,s,c,u,d,f){for(var p=a-1,g=a===0?o:[""],h=wK(g),b=0,y=0,S=0;b0?g[v]+" "+x:ln(x,/&\f/g,g[v])))&&(c[S++]=w);return by(e,t,n,a===0?hy:s,c,u,d,f)}function F$e(e,t,n,r){return by(e,t,n,bK,CN($$e()),Td(e,2,-2),0,r)}function AD(e,t,n,r,a){return by(e,t,n,wN,Td(e,0,r),Td(e,r+1,-1),r,a)}function EK(e,t,n){switch(R$e(e,t)){case 5103:return Nn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Nn+e+e;case 4789:return Tp+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Nn+e+Tp+e+ar+e+e;case 5936:switch(Yr(e,t+11)){case 114:return Nn+e+ar+ln(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Nn+e+ar+ln(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Nn+e+ar+ln(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Nn+e+ar+e+e;case 6165:return Nn+e+ar+"flex-"+e+e;case 5187:return Nn+e+ln(e,/(\w+).+(:[^]+)/,Nn+"box-$1$2"+ar+"flex-$1$2")+e;case 5443:return Nn+e+ar+"flex-item-"+ln(e,/flex-|-self/g,"")+(os(e,/flex-|baseline/)?"":ar+"grid-row-"+ln(e,/flex-|-self/g,""))+e;case 4675:return Nn+e+ar+"flex-line-pack"+ln(e,/align-content|flex-|-self/g,"")+e;case 5548:return Nn+e+ar+ln(e,"shrink","negative")+e;case 5292:return Nn+e+ar+ln(e,"basis","preferred-size")+e;case 6060:return Nn+"box-"+ln(e,"-grow","")+Nn+e+ar+ln(e,"grow","positive")+e;case 4554:return Nn+ln(e,/([^-])(transform)/g,"$1"+Nn+"$2")+e;case 6187:return ln(ln(ln(e,/(zoom-|grab)/,Nn+"$1"),/(image-set)/,Nn+"$1"),e,"")+e;case 5495:case 3959:return ln(e,/(image-set\([^]*)/,Nn+"$1$`$1");case 4968:return ln(ln(e,/(.+:)(flex-)?(.*)/,Nn+"box-pack:$3"+ar+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Nn+e+e;case 4200:if(!os(e,/flex-|baseline/))return ar+"grid-column-align"+Td(e,t)+e;break;case 2592:case 3360:return ar+ln(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,a){return t=a,os(r.props,/grid-\w+-end/)})?~bv(e+(n=n[t].value),"span",0)?e:ar+ln(e,"-start","")+e+ar+"grid-row-span:"+(~bv(n,"span",0)?os(n,/\d+/):+os(n,/\d+/)-+os(e,/\d+/))+";":ar+ln(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return os(r.props,/grid-\w+-start/)})?e:ar+ln(ln(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return ln(e,/(.+)-inline(.+)/,Nn+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ni(e)-1-t>6)switch(Yr(e,t+1)){case 109:if(Yr(e,t+4)!==45)break;case 102:return ln(e,/(.+:)(.+)-([^]+)/,"$1"+Nn+"$2-$3$1"+Tp+(Yr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~bv(e,"stretch",0)?EK(ln(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return ln(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,a,o,i,s,c,u){return ar+a+":"+o+u+(i?ar+a+"-span:"+(s?c:+c-+o)+u:"")+e});case 4949:if(Yr(e,t+6)===121)return ln(e,":",":"+Nn)+e;break;case 6444:switch(Yr(e,Yr(e,14)===45?18:11)){case 120:return ln(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Nn+(Yr(e,14)===45?"inline-":"")+"box$3$1"+Nn+"$2$3$1"+ar+"$2box$3")+e;case 100:return ln(e,":",":"+ar)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return ln(e,"scroll-","scroll-snap-")+e}return e}function Ob(e,t){for(var n="",r=0;r-1&&!e.return)switch(e.type){case wN:e.return=EK(e.value,e.length,n);return;case yK:return Ob([zs(e,{value:ln(e.value,"@","@"+Nn)})],r);case hy:if(e.length)return _$e(n=e.props,function(a){switch(os(a,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":pu(zs(e,{props:[ln(a,/:(read-\w+)/,":"+Tp+"$1")]})),pu(zs(e,{props:[a]})),a_(e,{props:ND(n,r)});break;case"::placeholder":pu(zs(e,{props:[ln(a,/:(plac\w+)/,":"+Nn+"input-$1")]})),pu(zs(e,{props:[ln(a,/:(plac\w+)/,":"+Tp+"$1")]})),pu(zs(e,{props:[ln(a,/:(plac\w+)/,ar+"input-$1")]})),pu(zs(e,{props:[a]})),a_(e,{props:ND(n,r)});break}return""})}}var U$e={animationIterationCount:1,aspectRatio: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},lo={},_d=typeof process<"u"&&lo!==void 0&&(lo.REACT_APP_SC_ATTR||lo.SC_ATTR)||"data-styled",IK="active",TK="data-styled-version",Sy="6.1.13",EN=`/*!sc*/ +`,Nb=typeof window<"u"&&"HTMLElement"in window,V$e=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&lo!==void 0&&lo.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&lo.REACT_APP_SC_DISABLE_SPEEDY!==""?lo.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&lo.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&lo!==void 0&&lo.SC_DISABLE_SPEEDY!==void 0&&lo.SC_DISABLE_SPEEDY!==""&&lo.SC_DISABLE_SPEEDY!=="false"&&lo.SC_DISABLE_SPEEDY),xy=Object.freeze([]),$d=Object.freeze({});function W$e(e,t,n){return n===void 0&&(n=$d),e.theme!==n.theme&&e.theme||t||n.theme}var RK=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),G$e=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,q$e=/(^-|-$)/g;function MD(e){return e.replace(G$e,"-").replace(q$e,"")}var K$e=/(a)(d)/gi,_h=52,PD=function(e){return String.fromCharCode(e+(e>25?39:97))};function s_(e){var t,n="";for(t=Math.abs(e);t>_h;t=t/_h|0)n=PD(t%_h)+n;return(PD(t%_h)+n).replace(K$e,"$1-$2")}var D1,_K=5381,Uu=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},$K=function(e){return Uu(_K,e)};function Y$e(e){return s_($K(e)>>>0)}function X$e(e){return e.displayName||e.name||"Component"}function L1(e){return typeof e=="string"&&!0}var OK=typeof Symbol=="function"&&Symbol.for,NK=OK?Symbol.for("react.memo"):60115,Z$e=OK?Symbol.for("react.forward_ref"):60112,Q$e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},J$e={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},kK={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},eOe=((D1={})[Z$e]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},D1[NK]=kK,D1);function DD(e){return("type"in(t=e)&&t.type.$$typeof)===NK?kK:"$$typeof"in e?eOe[e.$$typeof]:Q$e;var t}var tOe=Object.defineProperty,nOe=Object.getOwnPropertyNames,LD=Object.getOwnPropertySymbols,rOe=Object.getOwnPropertyDescriptor,aOe=Object.getPrototypeOf,FD=Object.prototype;function AK(e,t,n){if(typeof t!="string"){if(FD){var r=aOe(t);r&&r!==FD&&AK(e,r,n)}var a=nOe(t);LD&&(a=a.concat(LD(t)));for(var o=DD(e),i=DD(t),s=0;s0?" Args: ".concat(t.join(", ")):""))}var oOe=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r=this.groupSizes.length){for(var r=this.groupSizes,a=r.length,o=a;t>=o;)if((o<<=1)<0)throw ym(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=a;i=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],a=this.indexOfGroup(t),o=a+r,i=a;i=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t0&&(y+="".concat(S,","))}),c+="".concat(h).concat(b,'{content:"').concat(y,'"}').concat(EN)},d=0;d0?".".concat(t):p},d=c.slice();d.push(function(p){p.type===hy&&p.value.includes("&")&&(p.props[0]=p.props[0].replace(hOe,n).replace(r,u))}),i.prefix&&d.push(H$e),d.push(j$e);var f=function(p,g,h,b){g===void 0&&(g=""),h===void 0&&(h=""),b===void 0&&(b="&"),t=b,n=g,r=new RegExp("\\".concat(n,"\\b"),"g");var y=p.replace(vOe,""),S=L$e(h||g?"".concat(h," ").concat(g," { ").concat(y," }"):y);i.namespace&&(S=DK(S,i.namespace));var v=[];return Ob(S,B$e(d.concat(z$e(function(x){return v.push(x)})))),v};return f.hash=c.length?c.reduce(function(p,g){return g.name||ym(15),Uu(p,g.name)},_K).toString():"",f}var yOe=new PK,c_=bOe(),LK=se.createContext({shouldForwardProp:void 0,styleSheet:yOe,stylis:c_});LK.Consumer;se.createContext(void 0);function HD(){return l.useContext(LK)}var SOe=function(){function e(t,n){var r=this;this.inject=function(a,o){o===void 0&&(o=c_);var i=r.name+o.hash;a.hasNameForId(r.id,i)||a.insertRules(r.id,i,o(r.rules,i,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,TN(this,function(){throw ym(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=c_),this.name+t.hash},e}(),xOe=function(e){return e>="A"&&e<="Z"};function UD(e){for(var t="",n=0;n>>0);if(!n.hasNameForId(this.componentId,i)){var s=r(o,".".concat(i),void 0,this.componentId);n.insertRules(this.componentId,i,s)}a=nc(a,i),this.staticRulesId=i}else{for(var c=Uu(this.baseHash,r.hash),u="",d=0;d>>0);n.hasNameForId(this.componentId,g)||n.insertRules(this.componentId,g,r(u,".".concat(g),void 0,this.componentId)),a=nc(a,g)}}return a},e}(),BK=se.createContext(void 0);BK.Consumer;var F1={};function IOe(e,t,n){var r=IN(e),a=e,o=!L1(e),i=t.attrs,s=i===void 0?xy:i,c=t.componentId,u=c===void 0?function(w,C){var E=typeof w!="string"?"sc":MD(w);F1[E]=(F1[E]||0)+1;var I="".concat(E,"-").concat(Y$e(Sy+E+F1[E]));return C?"".concat(C,"-").concat(I):I}(t.displayName,t.parentComponentId):c,d=t.displayName,f=d===void 0?function(w){return L1(w)?"styled.".concat(w):"Styled(".concat(X$e(w),")")}(e):d,p=t.displayName&&t.componentId?"".concat(MD(t.displayName),"-").concat(t.componentId):t.componentId||u,g=r&&a.attrs?a.attrs.concat(s).filter(Boolean):s,h=t.shouldForwardProp;if(r&&a.shouldForwardProp){var b=a.shouldForwardProp;if(t.shouldForwardProp){var y=t.shouldForwardProp;h=function(w,C){return b(w,C)&&y(w,C)}}else h=b}var S=new EOe(n,p,r?a.componentStyle:void 0);function v(w,C){return function(E,I,T){var R=E.attrs,_=E.componentStyle,$=E.defaultProps,P=E.foldedComponentIds,D=E.styledComponentId,A=E.target,O=se.useContext(BK),N=HD(),k=E.shouldForwardProp||N.shouldForwardProp,M=W$e(I,O,$)||$d,L=function(V,te,Y){for(var J,G=qa(qa({},te),{className:void 0,theme:Y}),U=0;UROe().token,Sm=Fa(Gi)` height: 100%; border-right: 0; -`,jn=La(U0)` +`,jn=Fa(V0)` width: 200px; @media (max-width: 768px) { display: none; margin: 8px; } -`,Bn=La(Gi)` +`,Bn=Fa(qi)` padding: 0 24px 24px; -`,$Oe=La(Xd)` +`,$Oe=Fa(Xd)` margin: 16px 0; -`,Dn=La(Gi.Content)` +`,Dn=Fa(qi.Content)` padding: 24px; margin: 0; min-height: 280px; background: ${()=>_Oe().colorBgContainer}; -`,In=La.span` +`,In=Fa.span` @media (min-width: 768px) { display: none; } -`,xg=La.span` +`,Cg=Fa.span` @media (max-width: 768px) { display: none; } -`;La(nd)` +`;Fa(nd)` padding: 10px; -`;const zn=({items:e})=>{const{t}=Nt();return l.useEffect(()=>{if(e.length===1)document.title="TeddyCloud";else{const n=e.slice(1).map(r=>t(r.title)).join(" - ");document.title="TeddyCloud - "+n}},[e,t]),m.jsx($Oe,{items:e})},OOe="http://localhost".replace(/\/+$/,"");class HK{constructor(t={}){this.configuration=t}set config(t){this.configuration=t}get basePath(){return this.configuration.basePath!=null?this.configuration.basePath:OOe}get fetchApi(){return this.configuration.fetchApi}get middleware(){return this.configuration.middleware||[]}get queryParamsStringify(){return this.configuration.queryParamsStringify||VK}get username(){return this.configuration.username}get password(){return this.configuration.password}get apiKey(){const t=this.configuration.apiKey;if(t)return typeof t=="function"?t:()=>t}get accessToken(){const t=this.configuration.accessToken;if(t)return typeof t=="function"?t:async()=>t}get headers(){return this.configuration.headers}get credentials(){return this.configuration.credentials}}const NOe=new HK,zb=class zb{constructor(t=NOe){Ll(this,"middleware");Ll(this,"fetchApi",async(t,n)=>{let r={url:t,init:n};for(const o of this.middleware)o.pre&&(r=await o.pre({fetch:this.fetchApi,...r})||r);let a;try{a=await(this.configuration.fetchApi||fetch)(r.url,r.init)}catch(o){for(const i of this.middleware)i.onError&&(a=await i.onError({fetch:this.fetchApi,url:r.url,init:r.init,error:o,response:a?a.clone():void 0})||a);if(a===void 0)throw o instanceof Error?new POe(o,"The request failed and the interceptors did not return an alternative response"):o}for(const o of this.middleware)o.post&&(a=await o.post({fetch:this.fetchApi,url:r.url,init:r.init,response:a.clone()})||a);return a});this.configuration=t,this.middleware=t.middleware}withMiddleware(...t){const n=this.clone();return n.middleware=n.middleware.concat(...t),n}withPreMiddleware(...t){const n=t.map(r=>({pre:r}));return this.withMiddleware(...n)}withPostMiddleware(...t){const n=t.map(r=>({post:r}));return this.withMiddleware(...n)}isJsonMime(t){return t?zb.jsonRegex.test(t):!1}async request(t,n){const{url:r,init:a}=await this.createFetchParams(t,n),o=await this.fetchApi(r,a);if(o&&o.status>=200&&o.status<300)return o;throw new MOe(o,"Response returned an error code")}async createFetchParams(t,n){let r=this.configuration.basePath+t.path;t.query!==void 0&&Object.keys(t.query).length!==0&&(r+="?"+this.configuration.queryParamsStringify(t.query));const a=Object.assign({},this.configuration.headers,t.headers);Object.keys(a).forEach(u=>a[u]===void 0?delete a[u]:{});const o=typeof n=="function"?n:async()=>n,i={method:t.method,headers:a,body:t.body,credentials:this.configuration.credentials},s={...i,...await o({init:i,context:t})},c={...s,body:AOe(s.body)||s.body instanceof URLSearchParams||kOe(s.body)?s.body:JSON.stringify(s.body)};return{url:r,init:c}}clone(){const t=this.constructor,n=new t(this.configuration);return n.middleware=this.middleware.slice(),n}};Ll(zb,"jsonRegex",new RegExp("^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$","i"));let wg=zb;function kOe(e){return typeof Blob<"u"&&e instanceof Blob}function AOe(e){return typeof FormData<"u"&&e instanceof FormData}class MOe extends Error{constructor(n,r){super(r);Ll(this,"name","ResponseError");this.response=n}}class POe extends Error{constructor(n,r){super(r);Ll(this,"name","FetchError");this.cause=n}}class DOe extends Error{constructor(n,r){super(r);Ll(this,"name","RequiredError");this.field=n}}function UK(e,t){const n=e[t];return n!=null}function VK(e,t=""){return Object.keys(e).map(n=>WK(n,e[n],t)).filter(n=>n.length>0).join("&")}function WK(e,t,n=""){const r=n+(n.length?`[${e}]`:e);if(t instanceof Array){const a=t.map(o=>encodeURIComponent(String(o))).join(`&${encodeURIComponent(r)}=`);return`${encodeURIComponent(r)}=${a}`}if(t instanceof Set){const a=Array.from(t);return WK(e,a,n)}return t instanceof Date?`${encodeURIComponent(r)}=${encodeURIComponent(t.toISOString())}`:t instanceof Object?VK(t,r):`${encodeURIComponent(r)}=${encodeURIComponent(String(t))}`}function LOe(e){for(const t of e)if(t.contentType==="multipart/form-data")return!0;return!1}class os{constructor(t,n=r=>r){this.raw=t,this.transformer=n}async value(){return this.transformer(await this.raw.json())}}class FOe{constructor(t){this.raw=t}async value(){}}class kb{constructor(t){this.raw=t}async value(){return await this.raw.text()}}class GK extends wg{async v1TimeGetRaw(t){const n={},r={},a=await this.request({path:"/v1/time",method:"GET",headers:r,query:n},t);return this.isJsonMime(a.headers.get("content-type"))?new os(a):new kb(a)}async v1TimeGet(t){return await(await this.v1TimeGetRaw(t)).value()}}class jOe extends wg{async reverseV1TimeGetRaw(t){const n={},r={},a=await this.request({path:"/reverse/v1/time",method:"GET",headers:r,query:n},t);return this.isJsonMime(a.headers.get("content-type"))?new os(a):new kb(a)}async reverseV1TimeGet(t){return await(await this.reverseV1TimeGetRaw(t)).value()}}function BOe(e){return zOe(e)}function zOe(e,t){return e==null?e:{iD:e.ID,shortname:e.shortname,description:e.description,label:e.label,type:e.type,value:e.value,overlayed:e.overlayed}}function HOe(e){return UOe(e)}function UOe(e,t){return e==null?e:{options:UK(e,"options")?e.options.map(BOe):void 0}}function VOe(e){return WOe(e)}function WOe(e,t){return e==null?e:{iD:e.ID,description:e.description,value:e.value}}function GOe(e){return qOe(e)}function qOe(e,t){return e==null?e:{stats:UK(e,"stats")?e.stats.map(VOe):void 0}}class xn extends wg{async apiGetTonieboxesIndexRaw(t){const n=await this.apiGetTeddyCloudApiRaw("/api/getBoxes",void 0,t);return new os(n)}async apiGetTonieboxesIndex(t){return(await(await this.apiGetTonieboxesIndexRaw(t)).value()).boxes}async apiGetTagIndexRaw(t,n){const r=await this.apiGetTeddyCloudApiRaw("/api/getTagIndex",t,n);return new os(r)}async apiGetTagIndex(t,n,r){return(await(await this.apiGetTagIndexRaw(t,r)).value()).tags}async apiGetTagInfoRaw(t,n,r){const a=await this.apiGetTeddyCloudApiRaw(`/api/getTagInfo?ruid=${t}`,n,r);return new os(a)}async apiGetTagInfo(t,n,r){return(await(await this.apiGetTagInfoRaw(t,n,r)).value()).tagInfo}async apiGetTagIndexMergedAllOverlays(t,n){const r=await this.apiGetTonieboxesIndex();return(await Promise.all([...r.map(async s=>await this.apiGetTagIndex(s.ID,t,n)),this.apiGetTagIndex("",t,n)])).flat().filter((s,c,u)=>c===u.findIndex(d=>d.ruid===s.ruid&&d.source===s.source))}async apiGetIndexGetRaw(t,n){const r=await this.apiGetTeddyCloudApiRaw("/api/settings/getIndex",t,n);return new os(r,a=>HOe(a))}async apiGetIndexGet(t,n){return await(await this.apiGetIndexGetRaw(t,n)).value()}async apiSetCloudCacheContentPostRaw(t,n){if(t.body===null||t.body===void 0)throw new DOe("body","Required parameter requestParameters.body was null or undefined when calling apiSetCloudCacheContentPost.");const r=await this.apiPostTeddyCloudSetting("cloud.cacheContent",t.body,void 0,void 0,n);return new FOe(r)}async apiSetCloudCacheContentPost(t,n){await this.apiSetCloudCacheContentPostRaw(t,n)}async apiStatsGetRaw(t){const n=await this.apiGetTeddyCloudApiRaw("/api/stats",void 0,t);return new os(n,r=>GOe(r))}async apiStatsGet(t){return await(await this.apiStatsGetRaw(t)).value()}async apiTriggerWriteConfigGetRaw(t){const n=await this.apiGetTeddyCloudApiRaw("/api/triggerWriteConfig",void 0,t);return this.isJsonMime(n.headers.get("content-type"))?new os(n):new kb(n)}async apiTriggerWriteConfigGet(t){return await(await this.apiTriggerWriteConfigGetRaw(t)).value()}async apiUploadCertPostRaw(t,n,r){const a={},o={},s=LOe([{contentType:"multipart/form-data"}]);let c,u=!1,d="/api/uploadCert";n!==""&&n!==void 0&&(d=d+"?overlay="+n),u=s,u?c=new FormData:c=new URLSearchParams,t.filename&&t.filename.forEach(p=>{c.append("filename",p)});const f=await this.request({path:d,method:"POST",headers:o,query:a,body:c},r);return this.isJsonMime(f.headers.get("content-type"))?new os(f):new kb(f)}async apiUploadCertPost(t={},n,r){return await(await this.apiUploadCertPostRaw(t,n,r)).value()}async apiGetLastOnline(t,n){const a=await(await this.apiGetTeddyCloudSettingRaw("internal.last_connection",t,n)).text();return(a&&a!=="0"?new Date(parseInt(a,10)*1e3):"").toLocaleString()}async apiGetTonieboxStatus(t,n){return await(await this.apiGetTeddyCloudSettingRaw("internal.online",t,n)).text()==="true"}async apiGetTonieboxVersion(t,n){return await(await this.apiGetTeddyCloudSettingRaw("internal.toniebox_firmware.boxIC",t,n)).text()}async apiGetTonieboxLastRUID(t,n){return await(await this.apiGetTeddyCloudSettingRaw("internal.last_ruid",t,n)).text()}async apiGetTonieboxLastRUIDTime(t,n){const a=await(await this.apiGetTeddyCloudSettingRaw("internal.last_ruid_time",t,n)).text();return(a?new Date(parseInt(a,10)*1e3):"").toLocaleString()}async apiGetTonieboxLastIp(t,n){return await(await this.apiGetTeddyCloudSettingRaw("internal.ip",t,n)).text()}async apiGetTonieboxContentDir(t,n){return await(await this.apiGetTeddyCloudSettingRaw("core.contentdir",t,n)).text()}async apiGetTonieboxApiAccess(t,n){return await(await this.apiGetTeddyCloudSettingRaw("toniebox.api_access",t,n)).text()==="true"}async apiGetNewBoxesAllowed(t){return await(await this.apiGetTeddyCloudSettingRaw("core.allowNewBox",void 0,t)).text()==="true"}async apiGetSecurityMITAlert(t){return await(await this.apiGetTeddyCloudSettingRaw("internal.security_mit.incident",void 0,t)).text()==="true"}async apiGetTeddyCloudSettingRaw(t,n,r){const a=await this.apiGetTeddyCloudApiRaw(`/api/settings/get/${t}`,n,r);if(!a.ok)throw new Error(`Error: ${a.status} ${a.statusText}`);return a}async apiPostTeddyCloudSetting(t,n,r,a,o,i={}){i["Content-Type"]||(i["Content-Type"]="text/plain");const s=await this.apiPostTeddyCloudRaw(`/api/settings/${a&&a===!0?"reset":"set"}/${t}`,(n==null?void 0:n.toString())||"",r,o,i);if(!s.ok)throw new Error(`Error: ${s.status} ${s.statusText}`);return s}async apiGetTeddyCloudApiRaw(t,n,r){const a={},o={},i=await this.request({path:`${t}${n?"?overlay="+n:""}`,method:"GET",headers:o,query:a},r);if(!i.ok)throw new Error(`Error: ${i.status} ${i.statusText}`);return i}async apiPostTeddyCloudContentJson(t,n,r,a,o={}){const i=await this.apiPostTeddyCloudRaw(`/content/json/set/${t}`,n,r,a,o);if(!i.ok)throw new Error(`Error: ${i.status} ${i.statusText}`);return i}async apiPostTeddyCloudRaw(t,n,r,a,o={}){o["Content-Type"]||(o["Content-Type"]="text/plain");const i=s=>new Blob([s],{type:"text/plain"});try{const s=await this.request({path:`${t}${r?"?overlay="+r:""}`,method:"POST",headers:o,body:i((n==null?void 0:n.toString())||"")},a);if(!s.ok)throw new Error(`Error: ${s.status} ${s.statusText}`);return s}catch(s){return s.response}}async apiPostTeddyCloudFormDataRaw(t,n,r,a,o={}){try{const i=await fetch(""+t,{method:"POST",body:n});if(!i.ok)throw new Error(`Error: ${i.status} ${i.statusText}`);return i}catch(i){return i.response?i.response:i instanceof TypeError?new Response(JSON.stringify({error:"Network error, please try again later.",message:i.message}),{status:500,statusText:"Network Error",headers:{"Content-Type":"application/json"}}):new Response(JSON.stringify({error:"An unexpected error occurred.",message:i}),{status:500,statusText:"Unexpected Error",headers:{"Content-Type":"application/json"}})}}}const pn=()=>new HK({basePath:""}),KOe=new xn(pn()),YOe=new GK(pn()),XOe=async(e=!0)=>{try{if((await(await KOe.apiGetTeddyCloudApiRaw("/api/triggerRestart")).text()).toString()!=="OK"){Xe.error(Tf("settings.restartFailed"));return}}catch{Xe.error(Tf("settings.restartFailed"));return}const t=Xe.loading(Tf("settings.restartInProgress"),0);await new Promise(r=>setTimeout(r,3e3));let n=0;for(;n<10;)try{if((await YOe.v1TimeGet()).length===10){t(),Xe.success(Tf("settings.restartComplete")),e&&(window.location.href="/web");return}}catch{n++,await new Promise(a=>setTimeout(a,3e3))}t(),Xe.error(Tf("settings.restartFailed"))},ZOe=new xn(pn()),Nd=()=>{const{t:e}=Nt(),[t,n]=l.useState(""),[r,a]=Xe.useMessage(),o=async()=>{await XOe(!0),n("")},i=u=>{const d=new URL(u),f=d.port?`:${d.port}`:"";return`${d.protocol}//${d.hostname}${f}`},s=async()=>{const u=Xe.loading(e("settings.toniesJsonReloadInProgress"),0);try{const f=await(await ZOe.apiGetTeddyCloudApiRaw("/api/toniesJsonReload")).text();n(""),f.toString()!=="OK"?(u(),r.open({type:"error",content:e("settings.toniesJsonReloadFailed")})):(u(),r.open({type:"success",content:e("settings.toniesJsonReloadSuccessful")}))}catch{u(),r.open({type:"error",content:e("settings.toniesJsonReloadFailed")})}},c=[{key:"general",label:m.jsx(gt,{to:"/settings",children:e("settings.general.navigationTitle")}),icon:se.createElement(nN),title:e("settings.general.navigationTitle")},{key:"certificates",label:m.jsx(gt,{to:"/settings/certificates",children:e("settings.certificates.navigationTitle")}),icon:se.createElement(tN),title:e("settings.certificates.navigationTitle")},{key:"rtnl",label:m.jsx(gt,{to:"/settings/rtnl",children:e("settings.rtnl.navigationTitle")}),icon:se.createElement(Uxe),title:e("settings.rtnl.navigationTitle")},{key:"reload_toniesJson",label:m.jsx("label",{style:{cursor:"pointer"},children:e("settings.toniesJsonReload")}),onClick:s,icon:se.createElement(fq),title:e("settings.toniesJsonReload")},{key:"restart_server",label:m.jsx("label",{style:{cursor:"pointer"},children:e("settings.restartServer")}),onClick:o,icon:se.createElement(hCe),title:e("settings.restartServer")},{key:"legacy",label:m.jsx(gt,{to:`${i(new URL(window.location.href))}/legacy.html`,target:"_blank",children:e("settings.legacyGui")}),icon:se.createElement(pwe),title:e("settings.legacyGui")}];return m.jsxs(m.Fragment,{children:[a,m.jsx(bm,{mode:"inline",selectedKeys:[t],defaultOpenKeys:["sub"],items:c})]})};var QOe=function(t){return JOe(t)&&!eNe(t)};function JOe(e){return!!e&&typeof e=="object"}function eNe(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||rNe(e)}var tNe=typeof Symbol=="function"&&Symbol.for,nNe=tNe?Symbol.for("react.element"):60103;function rNe(e){return e.$$typeof===nNe}function aNe(e){return Array.isArray(e)?[]:{}}function Ab(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Cg(aNe(e),e,t):e}function oNe(e,t,n){return e.concat(t).map(function(r){return Ab(r,n)})}function iNe(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(a){r[a]=Ab(e[a],n)}),Object.keys(t).forEach(function(a){!n.isMergeableObject(t[a])||!e[a]?r[a]=Ab(t[a],n):r[a]=Cg(e[a],t[a],n)}),r}function Cg(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||oNe,n.isMergeableObject=n.isMergeableObject||QOe;var r=Array.isArray(t),a=Array.isArray(e),o=r===a;return o?r?n.arrayMerge(e,t,n):iNe(e,t,n):Ab(t,n)}Cg.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,a){return Cg(r,a,n)},{})};var u_=Cg,qK=typeof global=="object"&&global&&global.Object===Object&&global,sNe=typeof self=="object"&&self&&self.Object===Object&&self,Yi=qK||sNe||Function("return this")(),Cl=Yi.Symbol,KK=Object.prototype,lNe=KK.hasOwnProperty,cNe=KK.toString,Lf=Cl?Cl.toStringTag:void 0;function uNe(e){var t=lNe.call(e,Lf),n=e[Lf];try{e[Lf]=void 0;var r=!0}catch{}var a=cNe.call(e);return r&&(t?e[Lf]=n:delete e[Lf]),a}var dNe=Object.prototype,fNe=dNe.toString;function pNe(e){return fNe.call(e)}var gNe="[object Null]",mNe="[object Undefined]",GD=Cl?Cl.toStringTag:void 0;function Uc(e){return e==null?e===void 0?mNe:gNe:GD&&GD in Object(e)?uNe(e):pNe(e)}function YK(e,t){return function(n){return e(t(n))}}var RN=YK(Object.getPrototypeOf,Object);function Vc(e){return e!=null&&typeof e=="object"}var hNe="[object Object]",vNe=Function.prototype,bNe=Object.prototype,XK=vNe.toString,yNe=bNe.hasOwnProperty,SNe=XK.call(Object);function qD(e){if(!Vc(e)||Uc(e)!=hNe)return!1;var t=RN(e);if(t===null)return!0;var n=yNe.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&XK.call(n)==SNe}function xNe(){this.__data__=[],this.size=0}function ZK(e,t){return e===t||e!==e&&t!==t}function xy(e,t){for(var n=e.length;n--;)if(ZK(e[n][0],t))return n;return-1}var wNe=Array.prototype,CNe=wNe.splice;function ENe(e){var t=this.__data__,n=xy(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():CNe.call(t,n,1),--this.size,!0}function INe(e){var t=this.__data__,n=xy(t,e);return n<0?void 0:t[n][1]}function TNe(e){return xy(this.__data__,e)>-1}function RNe(e,t){var n=this.__data__,r=xy(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function ks(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=Rke}var _ke="[object Arguments]",$ke="[object Array]",Oke="[object Boolean]",Nke="[object Date]",kke="[object Error]",Ake="[object Function]",Mke="[object Map]",Pke="[object Number]",Dke="[object Object]",Lke="[object RegExp]",Fke="[object Set]",jke="[object String]",Bke="[object WeakMap]",zke="[object ArrayBuffer]",Hke="[object DataView]",Uke="[object Float32Array]",Vke="[object Float64Array]",Wke="[object Int8Array]",Gke="[object Int16Array]",qke="[object Int32Array]",Kke="[object Uint8Array]",Yke="[object Uint8ClampedArray]",Xke="[object Uint16Array]",Zke="[object Uint32Array]",ar={};ar[Uke]=ar[Vke]=ar[Wke]=ar[Gke]=ar[qke]=ar[Kke]=ar[Yke]=ar[Xke]=ar[Zke]=!0;ar[_ke]=ar[$ke]=ar[zke]=ar[Oke]=ar[Hke]=ar[Nke]=ar[kke]=ar[Ake]=ar[Mke]=ar[Pke]=ar[Dke]=ar[Lke]=ar[Fke]=ar[jke]=ar[Bke]=!1;function Qke(e){return Vc(e)&&aY(e.length)&&!!ar[Uc(e)]}function _N(e){return function(t){return e(t)}}var oY=typeof vo=="object"&&vo&&!vo.nodeType&&vo,Ip=oY&&typeof bo=="object"&&bo&&!bo.nodeType&&bo,Jke=Ip&&Ip.exports===oY,j1=Jke&&qK.process,kd=function(){try{var e=Ip&&Ip.require&&Ip.require("util").types;return e||j1&&j1.binding&&j1.binding("util")}catch{}}(),JD=kd&&kd.isTypedArray,eAe=JD?_N(JD):Qke,tAe=Object.prototype,nAe=tAe.hasOwnProperty;function iY(e,t){var n=Sm(e),r=!n&&Ske(e),a=!n&&!r&&rY(e),o=!n&&!r&&!a&&eAe(e),i=n||r||a||o,s=i?hke(e.length,String):[],c=s.length;for(var u in e)(t||nAe.call(e,u))&&!(i&&(u=="length"||a&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Tke(u,c)))&&s.push(u);return s}var rAe=Object.prototype;function $N(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||rAe;return e===n}var aAe=YK(Object.keys,Object),oAe=Object.prototype,iAe=oAe.hasOwnProperty;function sAe(e){if(!$N(e))return aAe(e);var t=[];for(var n in Object(e))iAe.call(e,n)&&n!="constructor"&&t.push(n);return t}function sY(e){return e!=null&&aY(e.length)&&!QK(e)}function ON(e){return sY(e)?iY(e):sAe(e)}function lAe(e,t){return e&&Cy(t,ON(t),e)}function cAe(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var uAe=Object.prototype,dAe=uAe.hasOwnProperty;function fAe(e){if(!ym(e))return cAe(e);var t=$N(e),n=[];for(var r in e)r=="constructor"&&(t||!dAe.call(e,r))||n.push(r);return n}function NN(e){return sY(e)?iY(e,!0):fAe(e)}function pAe(e,t){return e&&Cy(t,NN(t),e)}var lY=typeof vo=="object"&&vo&&!vo.nodeType&&vo,eL=lY&&typeof bo=="object"&&bo&&!bo.nodeType&&bo,gAe=eL&&eL.exports===lY,tL=gAe?Yi.Buffer:void 0,nL=tL?tL.allocUnsafe:void 0;function mAe(e,t){if(t)return e.slice();var n=e.length,r=nL?nL(n):new e.constructor(n);return e.copy(r),r}function cY(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n{const{t}=Nt();return l.useEffect(()=>{if(e.length===1)document.title="TeddyCloud";else{const n=e.slice(1).map(r=>t(r.title)).join(" - ");document.title="TeddyCloud - "+n}},[e,t]),m.jsx($Oe,{items:e})},OOe="http://localhost".replace(/\/+$/,"");class HK{constructor(t={}){this.configuration=t}set config(t){this.configuration=t}get basePath(){return this.configuration.basePath!=null?this.configuration.basePath:OOe}get fetchApi(){return this.configuration.fetchApi}get middleware(){return this.configuration.middleware||[]}get queryParamsStringify(){return this.configuration.queryParamsStringify||VK}get username(){return this.configuration.username}get password(){return this.configuration.password}get apiKey(){const t=this.configuration.apiKey;if(t)return typeof t=="function"?t:()=>t}get accessToken(){const t=this.configuration.accessToken;if(t)return typeof t=="function"?t:async()=>t}get headers(){return this.configuration.headers}get credentials(){return this.configuration.credentials}}const NOe=new HK,Hb=class Hb{constructor(t=NOe){Ll(this,"middleware");Ll(this,"fetchApi",async(t,n)=>{let r={url:t,init:n};for(const o of this.middleware)o.pre&&(r=await o.pre({fetch:this.fetchApi,...r})||r);let a;try{a=await(this.configuration.fetchApi||fetch)(r.url,r.init)}catch(o){for(const i of this.middleware)i.onError&&(a=await i.onError({fetch:this.fetchApi,url:r.url,init:r.init,error:o,response:a?a.clone():void 0})||a);if(a===void 0)throw o instanceof Error?new POe(o,"The request failed and the interceptors did not return an alternative response"):o}for(const o of this.middleware)o.post&&(a=await o.post({fetch:this.fetchApi,url:r.url,init:r.init,response:a.clone()})||a);return a});this.configuration=t,this.middleware=t.middleware}withMiddleware(...t){const n=this.clone();return n.middleware=n.middleware.concat(...t),n}withPreMiddleware(...t){const n=t.map(r=>({pre:r}));return this.withMiddleware(...n)}withPostMiddleware(...t){const n=t.map(r=>({post:r}));return this.withMiddleware(...n)}isJsonMime(t){return t?Hb.jsonRegex.test(t):!1}async request(t,n){const{url:r,init:a}=await this.createFetchParams(t,n),o=await this.fetchApi(r,a);if(o&&o.status>=200&&o.status<300)return o;throw new MOe(o,"Response returned an error code")}async createFetchParams(t,n){let r=this.configuration.basePath+t.path;t.query!==void 0&&Object.keys(t.query).length!==0&&(r+="?"+this.configuration.queryParamsStringify(t.query));const a=Object.assign({},this.configuration.headers,t.headers);Object.keys(a).forEach(u=>a[u]===void 0?delete a[u]:{});const o=typeof n=="function"?n:async()=>n,i={method:t.method,headers:a,body:t.body,credentials:this.configuration.credentials},s={...i,...await o({init:i,context:t})},c={...s,body:AOe(s.body)||s.body instanceof URLSearchParams||kOe(s.body)?s.body:JSON.stringify(s.body)};return{url:r,init:c}}clone(){const t=this.constructor,n=new t(this.configuration);return n.middleware=this.middleware.slice(),n}};Ll(Hb,"jsonRegex",new RegExp("^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$","i"));let Eg=Hb;function kOe(e){return typeof Blob<"u"&&e instanceof Blob}function AOe(e){return typeof FormData<"u"&&e instanceof FormData}class MOe extends Error{constructor(n,r){super(r);Ll(this,"name","ResponseError");this.response=n}}class POe extends Error{constructor(n,r){super(r);Ll(this,"name","FetchError");this.cause=n}}class DOe extends Error{constructor(n,r){super(r);Ll(this,"name","RequiredError");this.field=n}}function UK(e,t){const n=e[t];return n!=null}function VK(e,t=""){return Object.keys(e).map(n=>WK(n,e[n],t)).filter(n=>n.length>0).join("&")}function WK(e,t,n=""){const r=n+(n.length?`[${e}]`:e);if(t instanceof Array){const a=t.map(o=>encodeURIComponent(String(o))).join(`&${encodeURIComponent(r)}=`);return`${encodeURIComponent(r)}=${a}`}if(t instanceof Set){const a=Array.from(t);return WK(e,a,n)}return t instanceof Date?`${encodeURIComponent(r)}=${encodeURIComponent(t.toISOString())}`:t instanceof Object?VK(t,r):`${encodeURIComponent(r)}=${encodeURIComponent(String(t))}`}function LOe(e){for(const t of e)if(t.contentType==="multipart/form-data")return!0;return!1}class is{constructor(t,n=r=>r){this.raw=t,this.transformer=n}async value(){return this.transformer(await this.raw.json())}}class FOe{constructor(t){this.raw=t}async value(){}}class Ab{constructor(t){this.raw=t}async value(){return await this.raw.text()}}class GK extends Eg{async v1TimeGetRaw(t){const n={},r={},a=await this.request({path:"/v1/time",method:"GET",headers:r,query:n},t);return this.isJsonMime(a.headers.get("content-type"))?new is(a):new Ab(a)}async v1TimeGet(t){return await(await this.v1TimeGetRaw(t)).value()}}class jOe extends Eg{async reverseV1TimeGetRaw(t){const n={},r={},a=await this.request({path:"/reverse/v1/time",method:"GET",headers:r,query:n},t);return this.isJsonMime(a.headers.get("content-type"))?new is(a):new Ab(a)}async reverseV1TimeGet(t){return await(await this.reverseV1TimeGetRaw(t)).value()}}function BOe(e){return zOe(e)}function zOe(e,t){return e==null?e:{iD:e.ID,shortname:e.shortname,description:e.description,label:e.label,type:e.type,value:e.value,overlayed:e.overlayed}}function HOe(e){return UOe(e)}function UOe(e,t){return e==null?e:{options:UK(e,"options")?e.options.map(BOe):void 0}}function VOe(e){return WOe(e)}function WOe(e,t){return e==null?e:{iD:e.ID,description:e.description,value:e.value}}function GOe(e){return qOe(e)}function qOe(e,t){return e==null?e:{stats:UK(e,"stats")?e.stats.map(VOe):void 0}}class xn extends Eg{async apiGetTonieboxesIndexRaw(t){const n=await this.apiGetTeddyCloudApiRaw("/api/getBoxes",void 0,t);return new is(n)}async apiGetTonieboxesIndex(t){return(await(await this.apiGetTonieboxesIndexRaw(t)).value()).boxes}async apiGetTagIndexRaw(t,n){const r=await this.apiGetTeddyCloudApiRaw("/api/getTagIndex",t,n);return new is(r)}async apiGetTagIndex(t,n,r){return(await(await this.apiGetTagIndexRaw(t,r)).value()).tags}async apiGetTagInfoRaw(t,n,r){const a=await this.apiGetTeddyCloudApiRaw(`/api/getTagInfo?ruid=${t}`,n,r);return new is(a)}async apiGetTagInfo(t,n,r){return(await(await this.apiGetTagInfoRaw(t,n,r)).value()).tagInfo}async apiGetTagIndexMergedAllOverlays(t,n){const r=await this.apiGetTonieboxesIndex();return(await Promise.all([...r.map(async s=>await this.apiGetTagIndex(s.ID,t,n)),this.apiGetTagIndex("",t,n)])).flat().filter((s,c,u)=>c===u.findIndex(d=>d.ruid===s.ruid&&d.source===s.source))}async apiGetIndexGetRaw(t,n){const r=await this.apiGetTeddyCloudApiRaw("/api/settings/getIndex",t,n);return new is(r,a=>HOe(a))}async apiGetIndexGet(t,n){return await(await this.apiGetIndexGetRaw(t,n)).value()}async apiSetCloudCacheContentPostRaw(t,n){if(t.body===null||t.body===void 0)throw new DOe("body","Required parameter requestParameters.body was null or undefined when calling apiSetCloudCacheContentPost.");const r=await this.apiPostTeddyCloudSetting("cloud.cacheContent",t.body,void 0,void 0,n);return new FOe(r)}async apiSetCloudCacheContentPost(t,n){await this.apiSetCloudCacheContentPostRaw(t,n)}async apiStatsGetRaw(t){const n=await this.apiGetTeddyCloudApiRaw("/api/stats",void 0,t);return new is(n,r=>GOe(r))}async apiStatsGet(t){return await(await this.apiStatsGetRaw(t)).value()}async apiTriggerWriteConfigGetRaw(t){const n=await this.apiGetTeddyCloudApiRaw("/api/triggerWriteConfig",void 0,t);return this.isJsonMime(n.headers.get("content-type"))?new is(n):new Ab(n)}async apiTriggerWriteConfigGet(t){return await(await this.apiTriggerWriteConfigGetRaw(t)).value()}async apiUploadCertPostRaw(t,n,r){const a={},o={},s=LOe([{contentType:"multipart/form-data"}]);let c,u=!1,d="/api/uploadCert";n!==""&&n!==void 0&&(d=d+"?overlay="+n),u=s,u?c=new FormData:c=new URLSearchParams,t.filename&&t.filename.forEach(p=>{c.append("filename",p)});const f=await this.request({path:d,method:"POST",headers:o,query:a,body:c},r);return this.isJsonMime(f.headers.get("content-type"))?new is(f):new Ab(f)}async apiUploadCertPost(t={},n,r){return await(await this.apiUploadCertPostRaw(t,n,r)).value()}async apiGetLastOnline(t,n){const a=await(await this.apiGetTeddyCloudSettingRaw("internal.last_connection",t,n)).text();return(a&&a!=="0"?new Date(parseInt(a,10)*1e3):"").toLocaleString()}async apiGetTonieboxStatus(t,n){return await(await this.apiGetTeddyCloudSettingRaw("internal.online",t,n)).text()==="true"}async apiGetTonieboxVersion(t,n){return await(await this.apiGetTeddyCloudSettingRaw("internal.toniebox_firmware.boxIC",t,n)).text()}async apiGetTonieboxLastRUID(t,n){return await(await this.apiGetTeddyCloudSettingRaw("internal.last_ruid",t,n)).text()}async apiGetTonieboxLastRUIDTime(t,n){const a=await(await this.apiGetTeddyCloudSettingRaw("internal.last_ruid_time",t,n)).text();return(a?new Date(parseInt(a,10)*1e3):"").toLocaleString()}async apiGetTonieboxLastIp(t,n){return await(await this.apiGetTeddyCloudSettingRaw("internal.ip",t,n)).text()}async apiGetTonieboxContentDir(t,n){return await(await this.apiGetTeddyCloudSettingRaw("core.contentdir",t,n)).text()}async apiGetTonieboxApiAccess(t,n){return await(await this.apiGetTeddyCloudSettingRaw("toniebox.api_access",t,n)).text()==="true"}async apiGetNewBoxesAllowed(t){return await(await this.apiGetTeddyCloudSettingRaw("core.allowNewBox",void 0,t)).text()==="true"}async apiGetSecurityMITAlert(t){return await(await this.apiGetTeddyCloudSettingRaw("internal.security_mit.incident",void 0,t)).text()==="true"}async apiGetTeddyCloudSettingRaw(t,n,r){const a=await this.apiGetTeddyCloudApiRaw(`/api/settings/get/${t}`,n,r);if(!a.ok)throw new Error(`Error: ${a.status} ${a.statusText}`);return a}async apiPostTeddyCloudSetting(t,n,r,a,o,i={}){i["Content-Type"]||(i["Content-Type"]="text/plain");const s=await this.apiPostTeddyCloudRaw(`/api/settings/${a&&a===!0?"reset":"set"}/${t}`,(n==null?void 0:n.toString())||"",r,o,i);if(!s.ok)throw new Error(`Error: ${s.status} ${s.statusText}`);return s}async apiGetTeddyCloudApiRaw(t,n,r){const a={},o={},i=await this.request({path:`${t}${n?"?overlay="+n:""}`,method:"GET",headers:o,query:a},r);if(!i.ok)throw new Error(`Error: ${i.status} ${i.statusText}`);return i}async apiPostTeddyCloudContentJson(t,n,r,a,o={}){const i=await this.apiPostTeddyCloudRaw(`/content/json/set/${t}`,n,r,a,o);if(!i.ok)throw new Error(`Error: ${i.status} ${i.statusText}`);return i}async apiPostTeddyCloudRaw(t,n,r,a,o={}){o["Content-Type"]||(o["Content-Type"]="text/plain");const i=s=>new Blob([s],{type:"text/plain"});try{const s=await this.request({path:`${t}${r?"?overlay="+r:""}`,method:"POST",headers:o,body:i((n==null?void 0:n.toString())||"")},a);if(!s.ok)throw new Error(`Error: ${s.status} ${s.statusText}`);return s}catch(s){return s.response}}async apiPostTeddyCloudFormDataRaw(t,n,r,a,o={}){try{const i=await fetch(""+t,{method:"POST",body:n});if(!i.ok)throw new Error(`Error: ${i.status} ${i.statusText}`);return i}catch(i){return i.response?i.response:i instanceof TypeError?new Response(JSON.stringify({error:"Network error, please try again later.",message:i.message}),{status:500,statusText:"Network Error",headers:{"Content-Type":"application/json"}}):new Response(JSON.stringify({error:"An unexpected error occurred.",message:i}),{status:500,statusText:"Unexpected Error",headers:{"Content-Type":"application/json"}})}}}const pn=()=>new HK({basePath:""}),KOe=new xn(pn()),YOe=new GK(pn()),XOe=async(e=!0)=>{try{if((await(await KOe.apiGetTeddyCloudApiRaw("/api/triggerRestart")).text()).toString()!=="OK"){Ye.error(Rf("settings.restartFailed"));return}}catch{Ye.error(Rf("settings.restartFailed"));return}const t=Ye.loading(Rf("settings.restartInProgress"),0);await new Promise(r=>setTimeout(r,3e3));let n=0;for(;n<10;)try{if((await YOe.v1TimeGet()).length===10){t(),Ye.success(Rf("settings.restartComplete")),e&&(window.location.href="/web");return}}catch{n++,await new Promise(a=>setTimeout(a,3e3))}t(),Ye.error(Rf("settings.restartFailed"))},ZOe=new xn(pn()),Nd=()=>{const{t:e}=Nt(),[t,n]=l.useState(""),[r,a]=Ye.useMessage(),o=async()=>{await XOe(!0),n("")},i=u=>{const d=new URL(u),f=d.port?`:${d.port}`:"";return`${d.protocol}//${d.hostname}${f}`},s=async()=>{const u=Ye.loading(e("settings.toniesJsonReloadInProgress"),0);try{const f=await(await ZOe.apiGetTeddyCloudApiRaw("/api/toniesJsonReload")).text();n(""),f.toString()!=="OK"?(u(),r.open({type:"error",content:e("settings.toniesJsonReloadFailed")})):(u(),r.open({type:"success",content:e("settings.toniesJsonReloadSuccessful")}))}catch{u(),r.open({type:"error",content:e("settings.toniesJsonReloadFailed")})}},c=[{key:"general",label:m.jsx(yt,{to:"/settings",children:e("settings.general.navigationTitle")}),icon:se.createElement(rN),title:e("settings.general.navigationTitle")},{key:"certificates",label:m.jsx(yt,{to:"/settings/certificates",children:e("settings.certificates.navigationTitle")}),icon:se.createElement(nN),title:e("settings.certificates.navigationTitle")},{key:"rtnl",label:m.jsx(yt,{to:"/settings/rtnl",children:e("settings.rtnl.navigationTitle")}),icon:se.createElement(Uxe),title:e("settings.rtnl.navigationTitle")},{key:"reload_toniesJson",label:m.jsx("label",{style:{cursor:"pointer"},children:e("settings.toniesJsonReload")}),onClick:s,icon:se.createElement(fq),title:e("settings.toniesJsonReload")},{key:"restart_server",label:m.jsx("label",{style:{cursor:"pointer"},children:e("settings.restartServer")}),onClick:o,icon:se.createElement(hCe),title:e("settings.restartServer")},{key:"legacy",label:m.jsx(yt,{to:`${i(new URL(window.location.href))}/legacy.html`,target:"_blank",children:e("settings.legacyGui")}),icon:se.createElement(pwe),title:e("settings.legacyGui")}];return m.jsxs(m.Fragment,{children:[a,m.jsx(Sm,{mode:"inline",selectedKeys:[t],defaultOpenKeys:["sub"],items:c})]})};var QOe=function(t){return JOe(t)&&!eNe(t)};function JOe(e){return!!e&&typeof e=="object"}function eNe(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||rNe(e)}var tNe=typeof Symbol=="function"&&Symbol.for,nNe=tNe?Symbol.for("react.element"):60103;function rNe(e){return e.$$typeof===nNe}function aNe(e){return Array.isArray(e)?[]:{}}function Mb(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Ig(aNe(e),e,t):e}function oNe(e,t,n){return e.concat(t).map(function(r){return Mb(r,n)})}function iNe(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(a){r[a]=Mb(e[a],n)}),Object.keys(t).forEach(function(a){!n.isMergeableObject(t[a])||!e[a]?r[a]=Mb(t[a],n):r[a]=Ig(e[a],t[a],n)}),r}function Ig(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||oNe,n.isMergeableObject=n.isMergeableObject||QOe;var r=Array.isArray(t),a=Array.isArray(e),o=r===a;return o?r?n.arrayMerge(e,t,n):iNe(e,t,n):Mb(t,n)}Ig.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,a){return Ig(r,a,n)},{})};var d_=Ig,qK=typeof global=="object"&&global&&global.Object===Object&&global,sNe=typeof self=="object"&&self&&self.Object===Object&&self,Xi=qK||sNe||Function("return this")(),Cl=Xi.Symbol,KK=Object.prototype,lNe=KK.hasOwnProperty,cNe=KK.toString,Ff=Cl?Cl.toStringTag:void 0;function uNe(e){var t=lNe.call(e,Ff),n=e[Ff];try{e[Ff]=void 0;var r=!0}catch{}var a=cNe.call(e);return r&&(t?e[Ff]=n:delete e[Ff]),a}var dNe=Object.prototype,fNe=dNe.toString;function pNe(e){return fNe.call(e)}var gNe="[object Null]",mNe="[object Undefined]",GD=Cl?Cl.toStringTag:void 0;function Uc(e){return e==null?e===void 0?mNe:gNe:GD&&GD in Object(e)?uNe(e):pNe(e)}function YK(e,t){return function(n){return e(t(n))}}var RN=YK(Object.getPrototypeOf,Object);function Vc(e){return e!=null&&typeof e=="object"}var hNe="[object Object]",vNe=Function.prototype,bNe=Object.prototype,XK=vNe.toString,yNe=bNe.hasOwnProperty,SNe=XK.call(Object);function qD(e){if(!Vc(e)||Uc(e)!=hNe)return!1;var t=RN(e);if(t===null)return!0;var n=yNe.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&XK.call(n)==SNe}function xNe(){this.__data__=[],this.size=0}function ZK(e,t){return e===t||e!==e&&t!==t}function wy(e,t){for(var n=e.length;n--;)if(ZK(e[n][0],t))return n;return-1}var wNe=Array.prototype,CNe=wNe.splice;function ENe(e){var t=this.__data__,n=wy(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():CNe.call(t,n,1),--this.size,!0}function INe(e){var t=this.__data__,n=wy(t,e);return n<0?void 0:t[n][1]}function TNe(e){return wy(this.__data__,e)>-1}function RNe(e,t){var n=this.__data__,r=wy(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function As(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=Rke}var _ke="[object Arguments]",$ke="[object Array]",Oke="[object Boolean]",Nke="[object Date]",kke="[object Error]",Ake="[object Function]",Mke="[object Map]",Pke="[object Number]",Dke="[object Object]",Lke="[object RegExp]",Fke="[object Set]",jke="[object String]",Bke="[object WeakMap]",zke="[object ArrayBuffer]",Hke="[object DataView]",Uke="[object Float32Array]",Vke="[object Float64Array]",Wke="[object Int8Array]",Gke="[object Int16Array]",qke="[object Int32Array]",Kke="[object Uint8Array]",Yke="[object Uint8ClampedArray]",Xke="[object Uint16Array]",Zke="[object Uint32Array]",or={};or[Uke]=or[Vke]=or[Wke]=or[Gke]=or[qke]=or[Kke]=or[Yke]=or[Xke]=or[Zke]=!0;or[_ke]=or[$ke]=or[zke]=or[Oke]=or[Hke]=or[Nke]=or[kke]=or[Ake]=or[Mke]=or[Pke]=or[Dke]=or[Lke]=or[Fke]=or[jke]=or[Bke]=!1;function Qke(e){return Vc(e)&&aY(e.length)&&!!or[Uc(e)]}function _N(e){return function(t){return e(t)}}var oY=typeof bo=="object"&&bo&&!bo.nodeType&&bo,Rp=oY&&typeof yo=="object"&&yo&&!yo.nodeType&&yo,Jke=Rp&&Rp.exports===oY,B1=Jke&&qK.process,kd=function(){try{var e=Rp&&Rp.require&&Rp.require("util").types;return e||B1&&B1.binding&&B1.binding("util")}catch{}}(),JD=kd&&kd.isTypedArray,eAe=JD?_N(JD):Qke,tAe=Object.prototype,nAe=tAe.hasOwnProperty;function iY(e,t){var n=wm(e),r=!n&&Ske(e),a=!n&&!r&&rY(e),o=!n&&!r&&!a&&eAe(e),i=n||r||a||o,s=i?hke(e.length,String):[],c=s.length;for(var u in e)(t||nAe.call(e,u))&&!(i&&(u=="length"||a&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Tke(u,c)))&&s.push(u);return s}var rAe=Object.prototype;function $N(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||rAe;return e===n}var aAe=YK(Object.keys,Object),oAe=Object.prototype,iAe=oAe.hasOwnProperty;function sAe(e){if(!$N(e))return aAe(e);var t=[];for(var n in Object(e))iAe.call(e,n)&&n!="constructor"&&t.push(n);return t}function sY(e){return e!=null&&aY(e.length)&&!QK(e)}function ON(e){return sY(e)?iY(e):sAe(e)}function lAe(e,t){return e&&Ey(t,ON(t),e)}function cAe(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var uAe=Object.prototype,dAe=uAe.hasOwnProperty;function fAe(e){if(!xm(e))return cAe(e);var t=$N(e),n=[];for(var r in e)r=="constructor"&&(t||!dAe.call(e,r))||n.push(r);return n}function NN(e){return sY(e)?iY(e,!0):fAe(e)}function pAe(e,t){return e&&Ey(t,NN(t),e)}var lY=typeof bo=="object"&&bo&&!bo.nodeType&&bo,eL=lY&&typeof yo=="object"&&yo&&!yo.nodeType&&yo,gAe=eL&&eL.exports===lY,tL=gAe?Xi.Buffer:void 0,nL=tL?tL.allocUnsafe:void 0;function mAe(e,t){if(t)return e.slice();var n=e.length,r=nL?nL(n):new e.constructor(n);return e.copy(r),r}function cY(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n=0)&&(n[a]=e[a]);return n}var My=l.createContext(void 0);My.displayName="FormikContext";var cMe=My.Provider;My.Consumer;function IY(){var e=l.useContext(My);return e}var No=function(t){return typeof t=="function"},xm=function(t){return t!==null&&typeof t=="object"},uMe=function(t){return String(Math.floor(Number(t)))===t},B1=function(t){return Object.prototype.toString.call(t)==="[object String]"},dMe=function(t){return l.Children.count(t)===0},z1=function(t){return xm(t)&&No(t.then)};function io(e,t,n,r){r===void 0&&(r=0);for(var a=yY(t);e&&r=0?[]:{}}}return(o===0?e:a)[i[o]]===n?e:(n===void 0?delete a[i[o]]:a[i[o]]=n,o===0&&n===void 0&&delete r[i[o]],r)}function TY(e,t,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var a=0,o=Object.keys(e);a0?ie.map(function(ye){return _(ye,io(ae,ye))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(ue).then(function(ye){return ye.reduce(function(Ee,Me,Ie){return Me==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||Me&&(Ee=gc(Ee,ie[Ie],Me)),Ee},{})})},[_]),P=l.useCallback(function(ae){return Promise.all([$(ae),p.validationSchema?R(ae):{},p.validate?T(ae):{}]).then(function(ie){var ue=ie[0],ye=ie[1],Ee=ie[2],Me=u_.all([ue,ye,Ee],{arrayMerge:hMe});return Me})},[p.validate,p.validationSchema,$,T,R]),D=$o(function(ae){return ae===void 0&&(ae=E.values),I({type:"SET_ISVALIDATING",payload:!0}),P(ae).then(function(ie){return S.current&&(I({type:"SET_ISVALIDATING",payload:!1}),I({type:"SET_ERRORS",payload:ie})),ie})});l.useEffect(function(){i&&S.current===!0&&Gl(g.current,p.initialValues)&&D(g.current)},[i,D]);var A=l.useCallback(function(ae){var ie=ae&&ae.values?ae.values:g.current,ue=ae&&ae.errors?ae.errors:h.current?h.current:p.initialErrors||{},ye=ae&&ae.touched?ae.touched:b.current?b.current:p.initialTouched||{},Ee=ae&&ae.status?ae.status:y.current?y.current:p.initialStatus;g.current=ie,h.current=ue,b.current=ye,y.current=Ee;var Me=function(){I({type:"RESET_FORM",payload:{isSubmitting:!!ae&&!!ae.isSubmitting,errors:ue,touched:ye,status:Ee,values:ie,isValidating:!!ae&&!!ae.isValidating,submitCount:ae&&ae.submitCount&&typeof ae.submitCount=="number"?ae.submitCount:0}})};if(p.onReset){var Ie=p.onReset(E.values,Q);z1(Ie)?Ie.then(Me):Me()}else Me()},[p.initialErrors,p.initialStatus,p.initialTouched,p.onReset]);l.useEffect(function(){S.current===!0&&!Gl(g.current,p.initialValues)&&u&&(g.current=p.initialValues,A(),i&&D(g.current))},[u,p.initialValues,A,i,D]),l.useEffect(function(){u&&S.current===!0&&!Gl(h.current,p.initialErrors)&&(h.current=p.initialErrors||zl,I({type:"SET_ERRORS",payload:p.initialErrors||zl}))},[u,p.initialErrors]),l.useEffect(function(){u&&S.current===!0&&!Gl(b.current,p.initialTouched)&&(b.current=p.initialTouched||$h,I({type:"SET_TOUCHED",payload:p.initialTouched||$h}))},[u,p.initialTouched]),l.useEffect(function(){u&&S.current===!0&&!Gl(y.current,p.initialStatus)&&(y.current=p.initialStatus,I({type:"SET_STATUS",payload:p.initialStatus}))},[u,p.initialStatus,p.initialTouched]);var O=$o(function(ae){if(v.current[ae]&&No(v.current[ae].validate)){var ie=io(E.values,ae),ue=v.current[ae].validate(ie);return z1(ue)?(I({type:"SET_ISVALIDATING",payload:!0}),ue.then(function(ye){return ye}).then(function(ye){I({type:"SET_FIELD_ERROR",payload:{field:ae,value:ye}}),I({type:"SET_ISVALIDATING",payload:!1})})):(I({type:"SET_FIELD_ERROR",payload:{field:ae,value:ue}}),Promise.resolve(ue))}else if(p.validationSchema)return I({type:"SET_ISVALIDATING",payload:!0}),R(E.values,ae).then(function(ye){return ye}).then(function(ye){I({type:"SET_FIELD_ERROR",payload:{field:ae,value:io(ye,ae)}}),I({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),N=l.useCallback(function(ae,ie){var ue=ie.validate;v.current[ae]={validate:ue}},[]),k=l.useCallback(function(ae){delete v.current[ae]},[]),M=$o(function(ae,ie){I({type:"SET_TOUCHED",payload:ae});var ue=ie===void 0?a:ie;return ue?D(E.values):Promise.resolve()}),L=l.useCallback(function(ae){I({type:"SET_ERRORS",payload:ae})},[]),F=$o(function(ae,ie){var ue=No(ae)?ae(E.values):ae;I({type:"SET_VALUES",payload:ue});var ye=ie===void 0?n:ie;return ye?D(ue):Promise.resolve()}),j=l.useCallback(function(ae,ie){I({type:"SET_FIELD_ERROR",payload:{field:ae,value:ie}})},[]),B=$o(function(ae,ie,ue){I({type:"SET_FIELD_VALUE",payload:{field:ae,value:ie}});var ye=ue===void 0?n:ue;return ye?D(gc(E.values,ae,ie)):Promise.resolve()}),z=l.useCallback(function(ae,ie){var ue=ie,ye=ae,Ee;if(!B1(ae)){ae.persist&&ae.persist();var Me=ae.target?ae.target:ae.currentTarget,Ie=Me.type,Ce=Me.name,me=Me.id,we=Me.value,_e=Me.checked,Ne=Me.outerHTML,he=Me.options,ke=Me.multiple;ue=ie||Ce||me,ye=/number|range/.test(Ie)?(Ee=parseFloat(we),isNaN(Ee)?"":Ee):/checkbox/.test(Ie)?bMe(io(E.values,ue),_e,we):he&&ke?vMe(he):we}ue&&B(ue,ye)},[B,E.values]),H=$o(function(ae){if(B1(ae))return function(ie){return z(ie,ae)};z(ae)}),V=$o(function(ae,ie,ue){ie===void 0&&(ie=!0),I({type:"SET_FIELD_TOUCHED",payload:{field:ae,value:ie}});var ye=ue===void 0?a:ue;return ye?D(E.values):Promise.resolve()}),te=l.useCallback(function(ae,ie){ae.persist&&ae.persist();var ue=ae.target,ye=ue.name,Ee=ue.id,Me=ue.outerHTML,Ie=ie||ye||Ee;V(Ie,!0)},[V]),Y=$o(function(ae){if(B1(ae))return function(ie){return te(ie,ae)};te(ae)}),J=l.useCallback(function(ae){No(ae)?I({type:"SET_FORMIK_STATE",payload:ae}):I({type:"SET_FORMIK_STATE",payload:function(){return ae}})},[]),G=l.useCallback(function(ae){I({type:"SET_STATUS",payload:ae})},[]),U=l.useCallback(function(ae){I({type:"SET_ISSUBMITTING",payload:ae})},[]),q=$o(function(){return I({type:"SUBMIT_ATTEMPT"}),D().then(function(ae){var ie=ae instanceof Error,ue=!ie&&Object.keys(ae).length===0;if(ue){var ye;try{if(ye=ee(),ye===void 0)return}catch(Ee){throw Ee}return Promise.resolve(ye).then(function(Ee){return S.current&&I({type:"SUBMIT_SUCCESS"}),Ee}).catch(function(Ee){if(S.current)throw I({type:"SUBMIT_FAILURE"}),Ee})}else if(S.current&&(I({type:"SUBMIT_FAILURE"}),ie))throw ae})}),X=$o(function(ae){ae&&ae.preventDefault&&No(ae.preventDefault)&&ae.preventDefault(),ae&&ae.stopPropagation&&No(ae.stopPropagation)&&ae.stopPropagation(),q().catch(function(ie){console.warn("Warning: An unhandled error was caught from submitForm()",ie)})}),Q={resetForm:A,validateForm:D,validateField:O,setErrors:L,setFieldError:j,setFieldTouched:V,setFieldValue:B,setStatus:G,setSubmitting:U,setTouched:M,setValues:F,setFormikState:J,submitForm:q},ee=$o(function(){return d(E.values,Q)}),oe=$o(function(ae){ae&&ae.preventDefault&&No(ae.preventDefault)&&ae.preventDefault(),ae&&ae.stopPropagation&&No(ae.stopPropagation)&&ae.stopPropagation(),A()}),le=l.useCallback(function(ae){return{value:io(E.values,ae),error:io(E.errors,ae),touched:!!io(E.touched,ae),initialValue:io(g.current,ae),initialTouched:!!io(b.current,ae),initialError:io(h.current,ae)}},[E.errors,E.touched,E.values]),fe=l.useCallback(function(ae){return{setValue:function(ue,ye){return B(ae,ue,ye)},setTouched:function(ue,ye){return V(ae,ue,ye)},setError:function(ue){return j(ae,ue)}}},[B,V,j]),ce=l.useCallback(function(ae){var ie=xm(ae),ue=ie?ae.name:ae,ye=io(E.values,ue),Ee={name:ue,value:ye,onChange:H,onBlur:Y};if(ie){var Me=ae.type,Ie=ae.value,Ce=ae.as,me=ae.multiple;Me==="checkbox"?Ie===void 0?Ee.checked=!!ye:(Ee.checked=!!(Array.isArray(ye)&&~ye.indexOf(Ie)),Ee.value=Ie):Me==="radio"?(Ee.checked=ye===Ie,Ee.value=Ie):Ce==="select"&&me&&(Ee.value=Ee.value||[],Ee.multiple=!0)}return Ee},[Y,H,E.values]),Te=l.useMemo(function(){return!Gl(g.current,E.values)},[g.current,E.values]),Se=l.useMemo(function(){return typeof s<"u"?Te?E.errors&&Object.keys(E.errors).length===0:s!==!1&&No(s)?s(p):s:E.errors&&Object.keys(E.errors).length===0},[s,Te,E.errors,p]),ve=Vr({},E,{initialValues:g.current,initialErrors:h.current,initialTouched:b.current,initialStatus:y.current,handleBlur:Y,handleChange:H,handleReset:oe,handleSubmit:X,resetForm:A,setErrors:L,setFormikState:J,setFieldTouched:V,setFieldValue:B,setFieldError:j,setStatus:G,setSubmitting:U,setTouched:M,setValues:F,submitForm:q,validateForm:D,validateField:O,isValid:Se,dirty:Te,unregisterField:k,registerField:N,getFieldProps:ce,getFieldMeta:le,getFieldHelpers:fe,validateOnBlur:a,validateOnChange:n,validateOnMount:i});return ve}function RY(e){var t=pMe(e),n=e.component,r=e.children,a=e.render,o=e.innerRef;return l.useImperativeHandle(o,function(){return t}),l.createElement(cMe,{value:t},n?l.createElement(n,t):a?a(t):r?No(r)?r(t):dMe(r)?null:l.Children.only(r):null)}function gMe(e){var t={};if(e.inner){if(e.inner.length===0)return gc(t,e.path,e.message);for(var a=e.inner,n=Array.isArray(a),r=0,a=n?a:a[Symbol.iterator]();;){var o;if(n){if(r>=a.length)break;o=a[r++]}else{if(r=a.next(),r.done)break;o=r.value}var i=o;io(t,i.path)||(t=gc(t,i.path,i.message))}}return t}function mMe(e,t,n,r){n===void 0&&(n=!1);var a=h_(e);return t[n?"validateSync":"validate"](a,{abortEarly:!1,context:a})}function h_(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);Array.isArray(e[r])===!0?t[r]=e[r].map(function(a){return Array.isArray(a)===!0||qD(a)?h_(a):a!==""?a:void 0}):qD(e[r])?t[r]=h_(e[r]):t[r]=e[r]!==""?e[r]:void 0}return t}function hMe(e,t,n){var r=e.slice();return t.forEach(function(o,i){if(typeof r[i]>"u"){var s=n.clone!==!1,c=s&&n.isMergeableObject(o);r[i]=c?u_(Array.isArray(o)?[]:{},o,n):o}else n.isMergeableObject(o)?r[i]=u_(e[i],o,n):e.indexOf(o)===-1&&r.push(o)}),r}function vMe(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function bMe(e,t,n){if(typeof e=="boolean")return!!t;var r=[],a=!1,o=-1;if(Array.isArray(e))r=e,o=e.indexOf(n),a=o>=0;else if(!n||n=="true"||n=="false")return!!t;return t&&n&&!a?r.concat(n):a?r.slice(0,o).concat(r.slice(o+1)):r}var yMe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?l.useLayoutEffect:l.useEffect;function $o(e){var t=l.useRef(e);return yMe(function(){t.current=e}),l.useCallback(function(){for(var n=arguments.length,r=new Array(n),a=0;a{const{t}=Nt(),{name:n,label:r,valueConverter:a,description:o,overlayed:i,overlayId:s,...c}=e,[u,d,{setValue:f}]=Py(n),[p,g]=l.useState(i),h=!!(d.touched&&d.error),b=d.touched&&d.error&&t(d.error),y=d.touched&&d.error?"error":void 0,S=a?a.fromValueToBoolean(d.value):d.value,v=new xn(pn()),x=E=>{try{v.apiPostTeddyCloudSetting(n,u.value,s,!E).then(()=>{C(),E?Xe.success(t("settings.overlayEnabled")):(w(),Xe.success(t("settings.overlayDisabled")))}).catch(I=>{Xe.error(`Error while ${E?"saving":"resetting"} config: ${I}`)})}catch(I){Xe.error(`Error while sending data to server: ${I}`)}},C=async()=>{try{await v.apiTriggerWriteConfigGet()}catch{Xe.error("Error while saving config to file.")}},w=async()=>{try{const I=await(await v.apiGetTeddyCloudSettingRaw(n)).text(),T=I===""||a==null?void 0:a.fromValueToBoolean(I);f(T);const R=a?a.fromValueToBoolean(I):I;f(R)}catch(E){Xe.error(`Error fetching field value: ${E}`)}};return m.jsxs(dm,{help:h?b:void 0,validateStatus:y,label:r,tooltip:o,children:[m.jsx(za,{...c,...u,checked:S,disabled:!p&&p!==void 0,onChange:E=>{try{v.apiPostTeddyCloudSetting(n,E,s).then(()=>{C(),Xe.success(t("settings.saved"))}).catch(I=>{Xe.error("Error while saving config to file.")})}catch{Xe.error("Error while sending data to server.")}f(E)}}),p===void 0?"":m.jsx(Rs,{checked:p,style:{marginLeft:"16px"},onChange:E=>{g(E.target.checked),x(E.target.checked)},children:t("settings.overlayed")})]})},wMe=e=>{const{t}=Nt(),{name:n,label:r,description:a,overlayed:o,overlayId:i,...s}=e,[c,u,d]=Py(n),[f,p]=l.useState(o),g=!!(u.touched&&u.error),h=u.touched&&u.error&&t(u.error),b=u.touched&&u.error?"error":void 0,y=new xn(pn()),S=I=>{try{y.apiPostTeddyCloudSetting(n,c.value,i,!I).then(()=>{w(),I?Xe.success(t("settings.overlayEnabled")):(C(),Xe.success(t("settings.overlayDisabled")))}).catch(T=>{Xe.error(`Error while ${I?"saving":"resetting"} config: ${T}`)})}catch(T){Xe.error(`Error while sending data to server: ${T}`)}},v=I=>{const T=async()=>{await y.apiTriggerWriteConfigGet()};try{y.apiPostTeddyCloudSetting(n,c.value,i).then(()=>{T(),Xe.success(t("settings.saved"))}).catch(R=>{Xe.error("Error while sending data to file.")})}catch{Xe.error("Error while sending data to server.")}d.setValue(c.value||"")},x=I=>{v()},C=()=>{try{y.apiGetTeddyCloudSettingRaw(n).then(I=>I.text()).then(I=>{d.setValue(I)}).catch(I=>{Xe.error(`Error fetching field value: ${I}`)})}catch(I){Xe.error(`Error fetching field value: ${I}`)}},w=async()=>{try{await y.apiTriggerWriteConfigGet()}catch{Xe.error("Error while saving config to file.")}},E=[m.jsx(ICe,{disabled:!f,style:{cursor:f||f===void 0?"pointer":"default",margin:f!==void 0?"0 16px 0 0":"0"},onClick:x},"saveIcon"),f===void 0?"":m.jsx(Rs,{checked:f,onChange:I=>{p(I.target.checked),S(I.target.checked)},children:t("settings.overlayed")},"overlayCheckBox")];return m.jsx(dm,{help:g?h:void 0,validateStatus:b,label:r,tooltip:a,children:m.jsx(Jt,{...s,...c,addonAfter:E,disabled:!f&&f!==void 0})})},SL=e=>{const{t}=Nt(),{name:n,label:r,description:a,overlayed:o,overlayId:i,...s}=e,[c,u,d]=Py(n),[f,p]=l.useState(o),g=!!(u.touched&&u.error),h=u.touched&&u.error&&t(u.error),b=u.touched&&u.error?"error":void 0,y=f===void 0?"":m.jsx(Rs,{checked:f,onChange:w=>{p(w.target.checked),v(w.target.checked)},children:t("settings.overlayed")}),S=new xn(pn()),v=w=>{try{S.apiPostTeddyCloudSetting(n,c.value,i,!w).then(()=>{C(),w?Xe.success(t("settings.overlayEnabled")):(x(),Xe.success(t("settings.overlayDisabled")))}).catch(E=>{Xe.error(`Error while ${w?"saving":"resetting"} config: ${E}`)})}catch(E){Xe.error(`Error while sending data to server: ${E}`)}},x=()=>{try{S.apiGetTeddyCloudSettingRaw(n).then(w=>w.text()).then(w=>{d.setValue(w===""?void 0:Number(w))}).catch(w=>{Xe.error(`Error fetching field value: ${w}`)})}catch(w){Xe.error(`Error fetching field value: ${w}`)}},C=async()=>{try{await S.apiTriggerWriteConfigGet()}catch{Xe.error("Error while saving config to file.")}};return m.jsx(dm,{help:g?h:void 0,validateStatus:b,label:r,tooltip:a,children:m.jsx(cG,{...s,...c,addonAfter:y,disabled:!f&&f!==void 0,onChange:w=>{try{S.apiPostTeddyCloudSetting(n,w,i).then(()=>{C(),Xe.success(t("settings.saved"))}).catch(E=>{Xe.error("Error while saving config to file.")})}catch{Xe.error("Error while sending data to server.")}d.setValue(w===null?void 0:Number(w))},onBlur:()=>d.setTouched(!0)})})},_Y=({option:e,noOverlay:t,overlayId:n})=>{const{type:r,iD:a,description:o,label:i,shortname:s,value:c,overlayed:u}=e,[d,f]=l.useState(""),[p,g,{setValue:h}]=Py(a);l.useEffect(()=>{f(c),h(c)},[h,c]);const b=t?void 0:u;return m.jsxs("div",{children:[r==="bool"&&m.jsx(xMe,{name:a,label:i,description:o,overlayed:b,overlayId:n}),r==="int"&&m.jsx(SL,{name:a,label:i,description:o,overlayed:b,overlayId:n}),r==="uint"&&m.jsx(SL,{name:a,label:i,description:o,overlayed:b,overlayId:n}),r==="string"&&m.jsx(wMe,{name:a,label:i,description:o,overlayed:b,overlayId:n})]},a)},Oh=new xn(pn()),CMe=()=>{var u;const{t:e}=Nt(),[t,n]=l.useState(),[r,a]=l.useState(""),[o,i]=l.useState(!1);l.useEffect(()=>{(async()=>{try{const f=await Oh.apiGetTeddyCloudSettingRaw("core.settings_level");if(!f.ok)throw new Error(`HTTP error! status: ${f.status}`);const p=await f.json();a(p.toString())}catch(f){console.error("Error fetching settings level: ",f)}})()},[]),l.useEffect(()=>{(async()=>{var p,g;i(!0);const f=await Oh.apiGetIndexGet("");(p=f==null?void 0:f.options)!=null&&p.length&&((g=f==null?void 0:f.options)==null?void 0:g.length)>0&&n(f),i(!1)})()},[r]);const s=async()=>{try{await Oh.apiTriggerWriteConfigGet()}catch{Xe.error("Error while saving config to file.")}},c=async d=>{try{Oh.apiPostTeddyCloudSetting("core.settings_level",d),s(),a(d)}catch{Xe.error("Error while sending data to server.")}};return m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(Nd,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(Nd,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")},{title:e("settings.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsx("h1",{children:e("settings.title")}),m.jsx(An,{message:e("settings.information"),description:m.jsxs("div",{children:[e("settings.hint")," ",m.jsx(gt,{to:"/tonieboxes",children:e("settings.tonieboxes")}),"."]}),type:"info",showIcon:!0}),m.jsx(An,{message:e("settings.warning"),description:m.jsx("div",{children:e("settings.warningHint")}),type:"warning",showIcon:!0,style:{margin:"8px 0"}}),m.jsx(Rr,{children:e("settings.title")}),m.jsx(RY,{initialValues:{test:"test"},onSubmit:d=>{},children:m.jsx(qt,{labelCol:{span:8},wrapperCol:{span:14},layout:"horizontal",children:(u=t==null?void 0:t.options)==null?void 0:u.map((d,f,p)=>{if(d.iD.includes("core.settings_level"))return null;const g=d.iD.split("."),h=p[f-1]?p[f-1].iD.split("."):[];return m.jsxs(se.Fragment,{children:[g.slice(0,-1).map((b,y)=>h[y]!==b?y===0?m.jsxs("h3",{style:{marginLeft:`${y*20}px`,marginBottom:"10px"},children:["Category ",b]},`category-${b}`):m.jsxs("h4",{style:{marginLeft:`${y*10}px`,marginTop:"10px",marginBottom:"10px"},children:[".",b]},`category-${b}`):null),m.jsx(_Y,{option:d,noOverlay:!0},d.iD)]},f)})})}),m.jsx(Rr,{children:e("settings.levelLabel")}),m.jsxs(mo.Group,{value:r,onChange:d=>c(d.target.value),style:{display:"flex",justifyContent:"center",marginTop:8},disabled:o,children:[m.jsx(mo.Button,{value:"1",children:"Basic"},"1"),m.jsx(mo.Button,{value:"2",children:"Detail"},"2"),m.jsx(mo.Button,{value:"3",children:"Expert"},"3")]})]})]})]})};function xL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Vu(e){for(var t=1;t=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}var H1={};function IMe(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return H1[t]||(H1[t]=EMe(e)),H1[t]}function TMe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=e.filter(function(o){return o!=="token"}),a=IMe(r);return a.reduce(function(o,i){return Vu(Vu({},o),n[i])},t)}function wL(e){return e.join(" ")}function RMe(e,t){var n=0;return function(r){return n+=1,r.map(function(a,o){return $Y({node:a,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(o)})})}}function $Y(e){var t=e.node,n=e.stylesheet,r=e.style,a=r===void 0?{}:r,o=e.useInlineStyles,i=e.key,s=t.properties,c=t.type,u=t.tagName,d=t.value;if(c==="text")return d;if(u){var f=RMe(n,o),p;if(!o)p=Vu(Vu({},s),{},{className:wL(s.className)});else{var g=Object.keys(n).reduce(function(S,v){return v.split(".").forEach(function(x){S.includes(x)||S.push(x)}),S},[]),h=s.className&&s.className.includes("token")?["token"]:[],b=s.className&&h.concat(s.className.filter(function(S){return!g.includes(S)}));p=Vu(Vu({},s),{},{className:wL(b)||void 0,style:TMe(s.className,Object.assign({},s.style,a),n)})}var y=f(t.children);return se.createElement(u,pe({key:i},p),y)}}const _Me=function(e,t){var n=e.listLanguages();return n.indexOf(t)!==-1};var $Me=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function CL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ni(e){for(var t=1;t=0)&&(n[a]=e[a]);return n}var Py=l.createContext(void 0);Py.displayName="FormikContext";var cMe=Py.Provider;Py.Consumer;function IY(){var e=l.useContext(Py);return e}var ko=function(t){return typeof t=="function"},Cm=function(t){return t!==null&&typeof t=="object"},uMe=function(t){return String(Math.floor(Number(t)))===t},z1=function(t){return Object.prototype.toString.call(t)==="[object String]"},dMe=function(t){return l.Children.count(t)===0},H1=function(t){return Cm(t)&&ko(t.then)};function so(e,t,n,r){r===void 0&&(r=0);for(var a=yY(t);e&&r=0?[]:{}}}return(o===0?e:a)[i[o]]===n?e:(n===void 0?delete a[i[o]]:a[i[o]]=n,o===0&&n===void 0&&delete r[i[o]],r)}function TY(e,t,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var a=0,o=Object.keys(e);a0?ie.map(function(xe){return _(xe,so(ae,xe))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(ue).then(function(xe){return xe.reduce(function(we,Me,Ce){return Me==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||Me&&(we=gc(we,ie[Ce],Me)),we},{})})},[_]),P=l.useCallback(function(ae){return Promise.all([$(ae),p.validationSchema?R(ae):{},p.validate?T(ae):{}]).then(function(ie){var ue=ie[0],xe=ie[1],we=ie[2],Me=d_.all([ue,xe,we],{arrayMerge:hMe});return Me})},[p.validate,p.validationSchema,$,T,R]),D=Oo(function(ae){return ae===void 0&&(ae=E.values),I({type:"SET_ISVALIDATING",payload:!0}),P(ae).then(function(ie){return S.current&&(I({type:"SET_ISVALIDATING",payload:!1}),I({type:"SET_ERRORS",payload:ie})),ie})});l.useEffect(function(){i&&S.current===!0&&Gl(g.current,p.initialValues)&&D(g.current)},[i,D]);var A=l.useCallback(function(ae){var ie=ae&&ae.values?ae.values:g.current,ue=ae&&ae.errors?ae.errors:h.current?h.current:p.initialErrors||{},xe=ae&&ae.touched?ae.touched:b.current?b.current:p.initialTouched||{},we=ae&&ae.status?ae.status:y.current?y.current:p.initialStatus;g.current=ie,h.current=ue,b.current=xe,y.current=we;var Me=function(){I({type:"RESET_FORM",payload:{isSubmitting:!!ae&&!!ae.isSubmitting,errors:ue,touched:xe,status:we,values:ie,isValidating:!!ae&&!!ae.isValidating,submitCount:ae&&ae.submitCount&&typeof ae.submitCount=="number"?ae.submitCount:0}})};if(p.onReset){var Ce=p.onReset(E.values,Q);H1(Ce)?Ce.then(Me):Me()}else Me()},[p.initialErrors,p.initialStatus,p.initialTouched,p.onReset]);l.useEffect(function(){S.current===!0&&!Gl(g.current,p.initialValues)&&u&&(g.current=p.initialValues,A(),i&&D(g.current))},[u,p.initialValues,A,i,D]),l.useEffect(function(){u&&S.current===!0&&!Gl(h.current,p.initialErrors)&&(h.current=p.initialErrors||zl,I({type:"SET_ERRORS",payload:p.initialErrors||zl}))},[u,p.initialErrors]),l.useEffect(function(){u&&S.current===!0&&!Gl(b.current,p.initialTouched)&&(b.current=p.initialTouched||Nh,I({type:"SET_TOUCHED",payload:p.initialTouched||Nh}))},[u,p.initialTouched]),l.useEffect(function(){u&&S.current===!0&&!Gl(y.current,p.initialStatus)&&(y.current=p.initialStatus,I({type:"SET_STATUS",payload:p.initialStatus}))},[u,p.initialStatus,p.initialTouched]);var O=Oo(function(ae){if(v.current[ae]&&ko(v.current[ae].validate)){var ie=so(E.values,ae),ue=v.current[ae].validate(ie);return H1(ue)?(I({type:"SET_ISVALIDATING",payload:!0}),ue.then(function(xe){return xe}).then(function(xe){I({type:"SET_FIELD_ERROR",payload:{field:ae,value:xe}}),I({type:"SET_ISVALIDATING",payload:!1})})):(I({type:"SET_FIELD_ERROR",payload:{field:ae,value:ue}}),Promise.resolve(ue))}else if(p.validationSchema)return I({type:"SET_ISVALIDATING",payload:!0}),R(E.values,ae).then(function(xe){return xe}).then(function(xe){I({type:"SET_FIELD_ERROR",payload:{field:ae,value:so(xe,ae)}}),I({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),N=l.useCallback(function(ae,ie){var ue=ie.validate;v.current[ae]={validate:ue}},[]),k=l.useCallback(function(ae){delete v.current[ae]},[]),M=Oo(function(ae,ie){I({type:"SET_TOUCHED",payload:ae});var ue=ie===void 0?a:ie;return ue?D(E.values):Promise.resolve()}),L=l.useCallback(function(ae){I({type:"SET_ERRORS",payload:ae})},[]),F=Oo(function(ae,ie){var ue=ko(ae)?ae(E.values):ae;I({type:"SET_VALUES",payload:ue});var xe=ie===void 0?n:ie;return xe?D(ue):Promise.resolve()}),j=l.useCallback(function(ae,ie){I({type:"SET_FIELD_ERROR",payload:{field:ae,value:ie}})},[]),B=Oo(function(ae,ie,ue){I({type:"SET_FIELD_VALUE",payload:{field:ae,value:ie}});var xe=ue===void 0?n:ue;return xe?D(gc(E.values,ae,ie)):Promise.resolve()}),z=l.useCallback(function(ae,ie){var ue=ie,xe=ae,we;if(!z1(ae)){ae.persist&&ae.persist();var Me=ae.target?ae.target:ae.currentTarget,Ce=Me.type,De=Me.name,ye=Me.id,ve=Me.value,$e=Me.checked,Ee=Me.outerHTML,ge=Me.options,Ne=Me.multiple;ue=ie||De||ye,xe=/number|range/.test(Ce)?(we=parseFloat(ve),isNaN(we)?"":we):/checkbox/.test(Ce)?bMe(so(E.values,ue),$e,ve):ge&&Ne?vMe(ge):ve}ue&&B(ue,xe)},[B,E.values]),H=Oo(function(ae){if(z1(ae))return function(ie){return z(ie,ae)};z(ae)}),V=Oo(function(ae,ie,ue){ie===void 0&&(ie=!0),I({type:"SET_FIELD_TOUCHED",payload:{field:ae,value:ie}});var xe=ue===void 0?a:ue;return xe?D(E.values):Promise.resolve()}),te=l.useCallback(function(ae,ie){ae.persist&&ae.persist();var ue=ae.target,xe=ue.name,we=ue.id,Me=ue.outerHTML,Ce=ie||xe||we;V(Ce,!0)},[V]),Y=Oo(function(ae){if(z1(ae))return function(ie){return te(ie,ae)};te(ae)}),J=l.useCallback(function(ae){ko(ae)?I({type:"SET_FORMIK_STATE",payload:ae}):I({type:"SET_FORMIK_STATE",payload:function(){return ae}})},[]),G=l.useCallback(function(ae){I({type:"SET_STATUS",payload:ae})},[]),U=l.useCallback(function(ae){I({type:"SET_ISSUBMITTING",payload:ae})},[]),q=Oo(function(){return I({type:"SUBMIT_ATTEMPT"}),D().then(function(ae){var ie=ae instanceof Error,ue=!ie&&Object.keys(ae).length===0;if(ue){var xe;try{if(xe=ee(),xe===void 0)return}catch(we){throw we}return Promise.resolve(xe).then(function(we){return S.current&&I({type:"SUBMIT_SUCCESS"}),we}).catch(function(we){if(S.current)throw I({type:"SUBMIT_FAILURE"}),we})}else if(S.current&&(I({type:"SUBMIT_FAILURE"}),ie))throw ae})}),X=Oo(function(ae){ae&&ae.preventDefault&&ko(ae.preventDefault)&&ae.preventDefault(),ae&&ae.stopPropagation&&ko(ae.stopPropagation)&&ae.stopPropagation(),q().catch(function(ie){console.warn("Warning: An unhandled error was caught from submitForm()",ie)})}),Q={resetForm:A,validateForm:D,validateField:O,setErrors:L,setFieldError:j,setFieldTouched:V,setFieldValue:B,setStatus:G,setSubmitting:U,setTouched:M,setValues:F,setFormikState:J,submitForm:q},ee=Oo(function(){return d(E.values,Q)}),oe=Oo(function(ae){ae&&ae.preventDefault&&ko(ae.preventDefault)&&ae.preventDefault(),ae&&ae.stopPropagation&&ko(ae.stopPropagation)&&ae.stopPropagation(),A()}),le=l.useCallback(function(ae){return{value:so(E.values,ae),error:so(E.errors,ae),touched:!!so(E.touched,ae),initialValue:so(g.current,ae),initialTouched:!!so(b.current,ae),initialError:so(h.current,ae)}},[E.errors,E.touched,E.values]),fe=l.useCallback(function(ae){return{setValue:function(ue,xe){return B(ae,ue,xe)},setTouched:function(ue,xe){return V(ae,ue,xe)},setError:function(ue){return j(ae,ue)}}},[B,V,j]),ce=l.useCallback(function(ae){var ie=Cm(ae),ue=ie?ae.name:ae,xe=so(E.values,ue),we={name:ue,value:xe,onChange:H,onBlur:Y};if(ie){var Me=ae.type,Ce=ae.value,De=ae.as,ye=ae.multiple;Me==="checkbox"?Ce===void 0?we.checked=!!xe:(we.checked=!!(Array.isArray(xe)&&~xe.indexOf(Ce)),we.value=Ce):Me==="radio"?(we.checked=xe===Ce,we.value=Ce):De==="select"&&ye&&(we.value=we.value||[],we.multiple=!0)}return we},[Y,H,E.values]),Ie=l.useMemo(function(){return!Gl(g.current,E.values)},[g.current,E.values]),be=l.useMemo(function(){return typeof s<"u"?Ie?E.errors&&Object.keys(E.errors).length===0:s!==!1&&ko(s)?s(p):s:E.errors&&Object.keys(E.errors).length===0},[s,Ie,E.errors,p]),he=Wr({},E,{initialValues:g.current,initialErrors:h.current,initialTouched:b.current,initialStatus:y.current,handleBlur:Y,handleChange:H,handleReset:oe,handleSubmit:X,resetForm:A,setErrors:L,setFormikState:J,setFieldTouched:V,setFieldValue:B,setFieldError:j,setStatus:G,setSubmitting:U,setTouched:M,setValues:F,submitForm:q,validateForm:D,validateField:O,isValid:be,dirty:Ie,unregisterField:k,registerField:N,getFieldProps:ce,getFieldMeta:le,getFieldHelpers:fe,validateOnBlur:a,validateOnChange:n,validateOnMount:i});return he}function RY(e){var t=pMe(e),n=e.component,r=e.children,a=e.render,o=e.innerRef;return l.useImperativeHandle(o,function(){return t}),l.createElement(cMe,{value:t},n?l.createElement(n,t):a?a(t):r?ko(r)?r(t):dMe(r)?null:l.Children.only(r):null)}function gMe(e){var t={};if(e.inner){if(e.inner.length===0)return gc(t,e.path,e.message);for(var a=e.inner,n=Array.isArray(a),r=0,a=n?a:a[Symbol.iterator]();;){var o;if(n){if(r>=a.length)break;o=a[r++]}else{if(r=a.next(),r.done)break;o=r.value}var i=o;so(t,i.path)||(t=gc(t,i.path,i.message))}}return t}function mMe(e,t,n,r){n===void 0&&(n=!1);var a=v_(e);return t[n?"validateSync":"validate"](a,{abortEarly:!1,context:a})}function v_(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);Array.isArray(e[r])===!0?t[r]=e[r].map(function(a){return Array.isArray(a)===!0||qD(a)?v_(a):a!==""?a:void 0}):qD(e[r])?t[r]=v_(e[r]):t[r]=e[r]!==""?e[r]:void 0}return t}function hMe(e,t,n){var r=e.slice();return t.forEach(function(o,i){if(typeof r[i]>"u"){var s=n.clone!==!1,c=s&&n.isMergeableObject(o);r[i]=c?d_(Array.isArray(o)?[]:{},o,n):o}else n.isMergeableObject(o)?r[i]=d_(e[i],o,n):e.indexOf(o)===-1&&r.push(o)}),r}function vMe(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function bMe(e,t,n){if(typeof e=="boolean")return!!t;var r=[],a=!1,o=-1;if(Array.isArray(e))r=e,o=e.indexOf(n),a=o>=0;else if(!n||n=="true"||n=="false")return!!t;return t&&n&&!a?r.concat(n):a?r.slice(0,o).concat(r.slice(o+1)):r}var yMe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?l.useLayoutEffect:l.useEffect;function Oo(e){var t=l.useRef(e);return yMe(function(){t.current=e}),l.useCallback(function(){for(var n=arguments.length,r=new Array(n),a=0;a{const{t}=Nt(),{name:n,label:r,valueConverter:a,description:o,overlayed:i,overlayId:s,...c}=e,[u,d,{setValue:f}]=Dy(n),[p,g]=l.useState(i),h=!!(d.touched&&d.error),b=d.touched&&d.error&&t(d.error),y=d.touched&&d.error?"error":void 0,S=a?a.fromValueToBoolean(d.value):d.value,v=new xn(pn()),x=E=>{try{v.apiPostTeddyCloudSetting(n,u.value,s,!E).then(()=>{w(),E?Ye.success(t("settings.overlayEnabled")):(C(),Ye.success(t("settings.overlayDisabled")))}).catch(I=>{Ye.error(`Error while ${E?"saving":"resetting"} config: ${I}`)})}catch(I){Ye.error(`Error while sending data to server: ${I}`)}},w=async()=>{try{await v.apiTriggerWriteConfigGet()}catch{Ye.error("Error while saving config to file.")}},C=async()=>{try{const I=await(await v.apiGetTeddyCloudSettingRaw(n)).text(),T=I===""||a==null?void 0:a.fromValueToBoolean(I);f(T);const R=a?a.fromValueToBoolean(I):I;f(R)}catch(E){Ye.error(`Error fetching field value: ${E}`)}};return m.jsxs(pm,{help:h?b:void 0,validateStatus:y,label:r,tooltip:o,children:[m.jsx(Ha,{...c,...u,checked:S,disabled:!p&&p!==void 0,onChange:E=>{try{v.apiPostTeddyCloudSetting(n,E,s).then(()=>{w(),Ye.success(t("settings.saved"))}).catch(I=>{Ye.error("Error while saving config to file.")})}catch{Ye.error("Error while sending data to server.")}f(E)}}),p===void 0?"":m.jsx(_s,{checked:p,style:{marginLeft:"16px"},onChange:E=>{g(E.target.checked),x(E.target.checked)},children:t("settings.overlayed")})]})},wMe=e=>{const{t}=Nt(),{name:n,label:r,description:a,overlayed:o,overlayId:i,...s}=e,[c,u,d]=Dy(n),[f,p]=l.useState(o),g=!!(u.touched&&u.error),h=u.touched&&u.error&&t(u.error),b=u.touched&&u.error?"error":void 0,y=new xn(pn()),S=I=>{try{y.apiPostTeddyCloudSetting(n,c.value,i,!I).then(()=>{C(),I?Ye.success(t("settings.overlayEnabled")):(w(),Ye.success(t("settings.overlayDisabled")))}).catch(T=>{Ye.error(`Error while ${I?"saving":"resetting"} config: ${T}`)})}catch(T){Ye.error(`Error while sending data to server: ${T}`)}},v=I=>{const T=async()=>{await y.apiTriggerWriteConfigGet()};try{y.apiPostTeddyCloudSetting(n,c.value,i).then(()=>{T(),Ye.success(t("settings.saved"))}).catch(R=>{Ye.error("Error while sending data to file.")})}catch{Ye.error("Error while sending data to server.")}d.setValue(c.value||"")},x=I=>{v()},w=()=>{try{y.apiGetTeddyCloudSettingRaw(n).then(I=>I.text()).then(I=>{d.setValue(I)}).catch(I=>{Ye.error(`Error fetching field value: ${I}`)})}catch(I){Ye.error(`Error fetching field value: ${I}`)}},C=async()=>{try{await y.apiTriggerWriteConfigGet()}catch{Ye.error("Error while saving config to file.")}},E=[m.jsx(ICe,{disabled:!f,style:{cursor:f||f===void 0?"pointer":"default",margin:f!==void 0?"0 16px 0 0":"0"},onClick:x},"saveIcon"),f===void 0?"":m.jsx(_s,{checked:f,onChange:I=>{p(I.target.checked),S(I.target.checked)},children:t("settings.overlayed")},"overlayCheckBox")];return m.jsx(pm,{help:g?h:void 0,validateStatus:b,label:r,tooltip:a,children:m.jsx(Jt,{...s,...c,addonAfter:E,disabled:!f&&f!==void 0})})},SL=e=>{const{t}=Nt(),{name:n,label:r,description:a,overlayed:o,overlayId:i,...s}=e,[c,u,d]=Dy(n),[f,p]=l.useState(o),g=!!(u.touched&&u.error),h=u.touched&&u.error&&t(u.error),b=u.touched&&u.error?"error":void 0,y=f===void 0?"":m.jsx(_s,{checked:f,onChange:C=>{p(C.target.checked),v(C.target.checked)},children:t("settings.overlayed")}),S=new xn(pn()),v=C=>{try{S.apiPostTeddyCloudSetting(n,c.value,i,!C).then(()=>{w(),C?Ye.success(t("settings.overlayEnabled")):(x(),Ye.success(t("settings.overlayDisabled")))}).catch(E=>{Ye.error(`Error while ${C?"saving":"resetting"} config: ${E}`)})}catch(E){Ye.error(`Error while sending data to server: ${E}`)}},x=()=>{try{S.apiGetTeddyCloudSettingRaw(n).then(C=>C.text()).then(C=>{d.setValue(C===""?void 0:Number(C))}).catch(C=>{Ye.error(`Error fetching field value: ${C}`)})}catch(C){Ye.error(`Error fetching field value: ${C}`)}},w=async()=>{try{await S.apiTriggerWriteConfigGet()}catch{Ye.error("Error while saving config to file.")}};return m.jsx(pm,{help:g?h:void 0,validateStatus:b,label:r,tooltip:a,children:m.jsx(cG,{...s,...c,addonAfter:y,disabled:!f&&f!==void 0,onChange:C=>{try{S.apiPostTeddyCloudSetting(n,C,i).then(()=>{w(),Ye.success(t("settings.saved"))}).catch(E=>{Ye.error("Error while saving config to file.")})}catch{Ye.error("Error while sending data to server.")}d.setValue(C===null?void 0:Number(C))},onBlur:()=>d.setTouched(!0)})})},_Y=({option:e,noOverlay:t,overlayId:n})=>{const{type:r,iD:a,description:o,label:i,shortname:s,value:c,overlayed:u}=e,[d,f]=l.useState(""),[p,g,{setValue:h}]=Dy(a);l.useEffect(()=>{f(c),h(c)},[h,c]);const b=t?void 0:u;return m.jsxs("div",{children:[r==="bool"&&m.jsx(xMe,{name:a,label:i,description:o,overlayed:b,overlayId:n}),r==="int"&&m.jsx(SL,{name:a,label:i,description:o,overlayed:b,overlayId:n}),r==="uint"&&m.jsx(SL,{name:a,label:i,description:o,overlayed:b,overlayId:n}),r==="string"&&m.jsx(wMe,{name:a,label:i,description:o,overlayed:b,overlayId:n})]},a)},kh=new xn(pn()),CMe=()=>{var u;const{t:e}=Nt(),[t,n]=l.useState(),[r,a]=l.useState(""),[o,i]=l.useState(!1);l.useEffect(()=>{(async()=>{try{const f=await kh.apiGetTeddyCloudSettingRaw("core.settings_level");if(!f.ok)throw new Error(`HTTP error! status: ${f.status}`);const p=await f.json();a(p.toString())}catch(f){console.error("Error fetching settings level: ",f)}})()},[]),l.useEffect(()=>{(async()=>{var p,g;i(!0);const f=await kh.apiGetIndexGet("");(p=f==null?void 0:f.options)!=null&&p.length&&((g=f==null?void 0:f.options)==null?void 0:g.length)>0&&n(f),i(!1)})()},[r]);const s=async()=>{try{await kh.apiTriggerWriteConfigGet()}catch{Ye.error("Error while saving config to file.")}},c=async d=>{try{kh.apiPostTeddyCloudSetting("core.settings_level",d),s(),a(d)}catch{Ye.error("Error while sending data to server.")}};return m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(Nd,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(Nd,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")},{title:e("settings.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsx("h1",{children:e("settings.title")}),m.jsx(An,{message:e("settings.information"),description:m.jsxs("div",{children:[e("settings.hint")," ",m.jsx(yt,{to:"/tonieboxes",children:e("settings.tonieboxes")}),"."]}),type:"info",showIcon:!0}),m.jsx(An,{message:e("settings.warning"),description:m.jsx("div",{children:e("settings.warningHint")}),type:"warning",showIcon:!0,style:{margin:"8px 0"}}),m.jsx(Rr,{children:e("settings.title")}),m.jsx(RY,{initialValues:{test:"test"},onSubmit:d=>{},children:m.jsx(qt,{labelCol:{span:8},wrapperCol:{span:14},layout:"horizontal",children:(u=t==null?void 0:t.options)==null?void 0:u.map((d,f,p)=>{if(d.iD.includes("core.settings_level"))return null;const g=d.iD.split("."),h=p[f-1]?p[f-1].iD.split("."):[];return m.jsxs(se.Fragment,{children:[g.slice(0,-1).map((b,y)=>h[y]!==b?y===0?m.jsxs("h3",{style:{marginLeft:`${y*20}px`,marginBottom:"10px"},children:["Category ",b]},`category-${b}`):m.jsxs("h4",{style:{marginLeft:`${y*10}px`,marginTop:"10px",marginBottom:"10px"},children:[".",b]},`category-${b}`):null),m.jsx(_Y,{option:d,noOverlay:!0},d.iD)]},f)})})}),m.jsx(Rr,{children:e("settings.levelLabel")}),m.jsxs(ho.Group,{value:r,onChange:d=>c(d.target.value),style:{display:"flex",justifyContent:"center",marginTop:8},disabled:o,children:[m.jsx(ho.Button,{value:"1",children:"Basic"},"1"),m.jsx(ho.Button,{value:"2",children:"Detail"},"2"),m.jsx(ho.Button,{value:"3",children:"Expert"},"3")]})]})]})]})};function xL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Vu(e){for(var t=1;t=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}var U1={};function IMe(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return U1[t]||(U1[t]=EMe(e)),U1[t]}function TMe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=e.filter(function(o){return o!=="token"}),a=IMe(r);return a.reduce(function(o,i){return Vu(Vu({},o),n[i])},t)}function wL(e){return e.join(" ")}function RMe(e,t){var n=0;return function(r){return n+=1,r.map(function(a,o){return $Y({node:a,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(o)})})}}function $Y(e){var t=e.node,n=e.stylesheet,r=e.style,a=r===void 0?{}:r,o=e.useInlineStyles,i=e.key,s=t.properties,c=t.type,u=t.tagName,d=t.value;if(c==="text")return d;if(u){var f=RMe(n,o),p;if(!o)p=Vu(Vu({},s),{},{className:wL(s.className)});else{var g=Object.keys(n).reduce(function(S,v){return v.split(".").forEach(function(x){S.includes(x)||S.push(x)}),S},[]),h=s.className&&s.className.includes("token")?["token"]:[],b=s.className&&h.concat(s.className.filter(function(S){return!g.includes(S)}));p=Vu(Vu({},s),{},{className:wL(b)||void 0,style:TMe(s.className,Object.assign({},s.style,a),n)})}var y=f(t.children);return se.createElement(u,pe({key:i},p),y)}}const _Me=function(e,t){var n=e.listLanguages();return n.indexOf(t)!==-1};var $Me=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function CL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ki(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=0;r2&&arguments[2]!==void 0?arguments[2]:[];return wv({children:w,lineNumber:E,lineNumberStyle:s,largestLineNumber:i,showInlineLineNumbers:a,lineProps:n,className:I,showLineNumbers:r,wrapLongLines:c})}function b(w,E){if(r&&E&&a){var I=NY(s,E,i);w.unshift(OY(E,I))}return w}function y(w,E){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||I.length>0?h(w,E,I):b(w,E)}for(var S=function(){var E=d[g],I=E.children[0].value,T=NMe(I);if(T){var R=I.split(` +`),style:i,startingLineNumber:s}))}function MMe(e){return"".concat(e.toString().length,".25em")}function OY(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function NY(e,t,n){var r={display:"inline-block",minWidth:MMe(n),paddingRight:"1em",textAlign:"right",userSelect:"none"},a=typeof e=="function"?e(t):e,o=ki(ki({},r),a);return o}function Cv(e){var t=e.children,n=e.lineNumber,r=e.lineNumberStyle,a=e.largestLineNumber,o=e.showInlineLineNumbers,i=e.lineProps,s=i===void 0?{}:i,c=e.className,u=c===void 0?[]:c,d=e.showLineNumbers,f=e.wrapLongLines,p=typeof s=="function"?s(n):s;if(p.className=u,n&&o){var g=NY(r,n,a);t.unshift(OY(n,g))}return f&d&&(p.style=ki(ki({},p.style),{},{display:"flex"})),{type:"element",tagName:"span",properties:p,children:t}}function kY(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=0;r2&&arguments[2]!==void 0?arguments[2]:[];return Cv({children:C,lineNumber:E,lineNumberStyle:s,largestLineNumber:i,showInlineLineNumbers:a,lineProps:n,className:I,showLineNumbers:r,wrapLongLines:c})}function b(C,E){if(r&&E&&a){var I=NY(s,E,i);C.unshift(OY(E,I))}return C}function y(C,E){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||I.length>0?h(C,E,I):b(C,E)}for(var S=function(){var E=d[g],I=E.children[0].value,T=NMe(I);if(T){var R=I.split(` `);R.forEach(function(_,$){var P=r&&f.length+o,D={type:"text",value:"".concat(_,` -`)};if($===0){var A=d.slice(p+1,g).concat(wv({children:[D],className:E.properties.className})),O=y(A,P);f.push(O)}else if($===R.length-1){var N=d[g+1]&&d[g+1].children&&d[g+1].children[0],k={type:"text",value:"".concat(_)};if(N){var M=wv({children:[k],className:E.properties.className});d.splice(g+1,0,M)}else{var L=[k],F=y(L,P,E.properties.className);f.push(F)}}else{var j=[D],B=y(j,P,E.properties.className);f.push(B)}}),p=g}g++};g0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),s=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));a=Promise.allSettled(n.map(c=>{if(c=BMe(c),c in EL)return;EL[c]=!0;const u=c.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${d}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":jMe,u||(f.as="script"),f.crossOrigin="",f.href=c,s&&f.setAttribute("nonce",s),document.head.appendChild(f),u)return new Promise((p,g)=>{f.addEventListener("load",p),f.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${c}`)))})}))}function o(i){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=i,window.dispatchEvent(s),!s.defaultPrevented)throw i}return a.then(i=>{for(const s of i||[])s.status==="rejected"&&o(s.reason);return t().catch(o)})},zMe=["abap","abnf","actionscript","ada","agda","al","antlr4","apacheconf","apex","apl","applescript","aql","arduino","arff","asciidoc","asm6502","asmatmel","aspnet","autohotkey","autoit","avisynth","avro-idl","bash","basic","batch","bbcode","bicep","birb","bison","bnf","brainfuck","brightscript","bro","bsl","c","cfscript","chaiscript","cil","clike","clojure","cmake","cobol","coffeescript","concurnas","coq","cpp","crystal","csharp","cshtml","csp","css-extras","css","csv","cypher","d","dart","dataweave","dax","dhall","diff","django","dns-zone-file","docker","dot","ebnf","editorconfig","eiffel","ejs","elixir","elm","erb","erlang","etlua","excel-formula","factor","false","firestore-security-rules","flow","fortran","fsharp","ftl","gap","gcode","gdscript","gedcom","gherkin","git","glsl","gml","gn","go-module","go","graphql","groovy","haml","handlebars","haskell","haxe","hcl","hlsl","hoon","hpkp","hsts","http","ichigojam","icon","icu-message-format","idris","iecst","ignore","inform7","ini","io","j","java","javadoc","javadoclike","javascript","javastacktrace","jexl","jolie","jq","js-extras","js-templates","jsdoc","json","json5","jsonp","jsstacktrace","jsx","julia","keepalived","keyman","kotlin","kumir","kusto","latex","latte","less","lilypond","liquid","lisp","livescript","llvm","log","lolcode","lua","magma","makefile","markdown","markup-templating","markup","matlab","maxscript","mel","mermaid","mizar","mongodb","monkey","moonscript","n1ql","n4js","nand2tetris-hdl","naniscript","nasm","neon","nevod","nginx","nim","nix","nsis","objectivec","ocaml","opencl","openqasm","oz","parigp","parser","pascal","pascaligo","pcaxis","peoplecode","perl","php-extras","php","phpdoc","plsql","powerquery","powershell","processing","prolog","promql","properties","protobuf","psl","pug","puppet","pure","purebasic","purescript","python","q","qml","qore","qsharp","r","racket","reason","regex","rego","renpy","rest","rip","roboconf","robotframework","ruby","rust","sas","sass","scala","scheme","scss","shell-session","smali","smalltalk","smarty","sml","solidity","solution-file","soy","sparql","splunk-spl","sqf","sql","squirrel","stan","stylus","swift","systemd","t4-cs","t4-templating","t4-vb","tap","tcl","textile","toml","tremor","tsx","tt2","turtle","twig","typescript","typoscript","unrealscript","uorazor","uri","v","vala","vbnet","velocity","verilog","vhdl","vim","visual-basic","warpscript","wasm","web-idl","wiki","wolfram","wren","xeora","xml-doc","xojo","xquery","yaml","yang","zig"];var HMe=VMe,UMe=Object.prototype.hasOwnProperty;function VMe(){for(var e={},t=0;t4&&n.slice(0,4)===UN&&N4e.test(t)&&(t.charAt(4)==="-"?r=M4e(t):t=P4e(t),a=_4e),new a(r,t))}function M4e(e){var t=e.slice(5).replace(HY,L4e);return UN+t.charAt(0).toUpperCase()+t.slice(1)}function P4e(e){var t=e.slice(4);return HY.test(t)?e:(t=t.replace(k4e,D4e),t.charAt(0)!=="-"&&(t="-"+t),UN+t)}function D4e(e){return"-"+e.toLowerCase()}function L4e(e){return e.charAt(1).toUpperCase()}var F4e=j4e,$L=/[#.]/g;function j4e(e,t){for(var n=e||"",r=t||"div",a={},o=0,i,s,c;o=48&&t<=57}var sLe=lLe;function lLe(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}var cLe=uLe;function uLe(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}var dLe=cLe,fLe=WY,pLe=gLe;function gLe(e){return dLe(e)||fLe(e)}var kh,mLe=59,hLe=vLe;function vLe(e){var t="&"+e+";",n;return kh=kh||document.createElement("i"),kh.innerHTML=t,n=kh.textContent,n.charCodeAt(n.length-1)===mLe&&e!=="semi"||n===t?!1:n}var DL=aLe,LL=oLe,bLe=WY,yLe=sLe,GY=pLe,SLe=hLe,xLe=MLe,wLe={}.hasOwnProperty,gu=String.fromCharCode,CLe=Function.prototype,FL={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},ELe=9,jL=10,ILe=12,TLe=32,BL=38,RLe=59,_Le=60,$Le=61,OLe=35,NLe=88,kLe=120,ALe=65533,Eu="named",GN="hexadecimal",qN="decimal",KN={};KN[GN]=16;KN[qN]=10;var Dy={};Dy[Eu]=GY;Dy[qN]=bLe;Dy[GN]=yLe;var qY=1,KY=2,YY=3,XY=4,ZY=5,b_=6,QY=7,Pl={};Pl[qY]="Named character references must be terminated by a semicolon";Pl[KY]="Numeric character references must be terminated by a semicolon";Pl[YY]="Named character references cannot be empty";Pl[XY]="Numeric character references cannot be empty";Pl[ZY]="Named character references must be known";Pl[b_]="Numeric character references cannot be disallowed";Pl[QY]="Numeric character references cannot be outside the permissible Unicode range";function MLe(e,t){var n={},r,a;t||(t={});for(a in FL)r=t[a],n[a]=r??FL[a];return(n.position.indent||n.position.start)&&(n.indent=n.position.indent||[],n.position=n.position.start),PLe(e,n)}function PLe(e,t){var n=t.additional,r=t.nonTerminated,a=t.text,o=t.reference,i=t.warning,s=t.textContext,c=t.referenceContext,u=t.warningContext,d=t.position,f=t.indent||[],p=e.length,g=0,h=-1,b=d.column||1,y=d.line||1,S="",v=[],x,C,w,E,I,T,R,_,$,P,D,A,O,N,k,M,L,F,j;for(typeof n=="string"&&(n=n.charCodeAt(0)),M=B(),_=i?z:CLe,g--,p++;++g65535&&(T-=65536,P+=gu(T>>>10|55296),T=56320|T&1023),T=P+gu(T))):N!==Eu&&_(XY,F)),T?(H(),M=B(),g=j-1,b+=j-O+1,v.push(T),L=B(),L.offset++,o&&o.call(c,T,{start:M,end:L},e.slice(O-1,j)),M=L):(E=e.slice(O-1,j),S+=E,b+=E.length,g=j-1)}else I===10&&(y++,h++,b=0),I===I?(S+=gu(I),b++):H();return v.join("");function B(){return{line:y,column:b,offset:g+(d.offset||0)}}function z(V,te){var Y=B();Y.column+=te,Y.offset+=te,i.call(u,Pl[V],Y,V)}function H(){S&&(v.push(S),a&&a.call(s,S,{start:M,end:B()}),S="")}}function DLe(e){return e>=55296&&e<=57343||e>1114111}function LLe(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}var JY={exports:{}};(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/** +`)};if($===0){var A=d.slice(p+1,g).concat(Cv({children:[D],className:E.properties.className})),O=y(A,P);f.push(O)}else if($===R.length-1){var N=d[g+1]&&d[g+1].children&&d[g+1].children[0],k={type:"text",value:"".concat(_)};if(N){var M=Cv({children:[k],className:E.properties.className});d.splice(g+1,0,M)}else{var L=[k],F=y(L,P,E.properties.className);f.push(F)}}else{var j=[D],B=y(j,P,E.properties.className);f.push(B)}}),p=g}g++};g0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),s=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));a=Promise.allSettled(n.map(c=>{if(c=BMe(c),c in EL)return;EL[c]=!0;const u=c.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${d}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":jMe,u||(f.as="script"),f.crossOrigin="",f.href=c,s&&f.setAttribute("nonce",s),document.head.appendChild(f),u)return new Promise((p,g)=>{f.addEventListener("load",p),f.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${c}`)))})}))}function o(i){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=i,window.dispatchEvent(s),!s.defaultPrevented)throw i}return a.then(i=>{for(const s of i||[])s.status==="rejected"&&o(s.reason);return t().catch(o)})},zMe=["abap","abnf","actionscript","ada","agda","al","antlr4","apacheconf","apex","apl","applescript","aql","arduino","arff","asciidoc","asm6502","asmatmel","aspnet","autohotkey","autoit","avisynth","avro-idl","bash","basic","batch","bbcode","bicep","birb","bison","bnf","brainfuck","brightscript","bro","bsl","c","cfscript","chaiscript","cil","clike","clojure","cmake","cobol","coffeescript","concurnas","coq","cpp","crystal","csharp","cshtml","csp","css-extras","css","csv","cypher","d","dart","dataweave","dax","dhall","diff","django","dns-zone-file","docker","dot","ebnf","editorconfig","eiffel","ejs","elixir","elm","erb","erlang","etlua","excel-formula","factor","false","firestore-security-rules","flow","fortran","fsharp","ftl","gap","gcode","gdscript","gedcom","gherkin","git","glsl","gml","gn","go-module","go","graphql","groovy","haml","handlebars","haskell","haxe","hcl","hlsl","hoon","hpkp","hsts","http","ichigojam","icon","icu-message-format","idris","iecst","ignore","inform7","ini","io","j","java","javadoc","javadoclike","javascript","javastacktrace","jexl","jolie","jq","js-extras","js-templates","jsdoc","json","json5","jsonp","jsstacktrace","jsx","julia","keepalived","keyman","kotlin","kumir","kusto","latex","latte","less","lilypond","liquid","lisp","livescript","llvm","log","lolcode","lua","magma","makefile","markdown","markup-templating","markup","matlab","maxscript","mel","mermaid","mizar","mongodb","monkey","moonscript","n1ql","n4js","nand2tetris-hdl","naniscript","nasm","neon","nevod","nginx","nim","nix","nsis","objectivec","ocaml","opencl","openqasm","oz","parigp","parser","pascal","pascaligo","pcaxis","peoplecode","perl","php-extras","php","phpdoc","plsql","powerquery","powershell","processing","prolog","promql","properties","protobuf","psl","pug","puppet","pure","purebasic","purescript","python","q","qml","qore","qsharp","r","racket","reason","regex","rego","renpy","rest","rip","roboconf","robotframework","ruby","rust","sas","sass","scala","scheme","scss","shell-session","smali","smalltalk","smarty","sml","solidity","solution-file","soy","sparql","splunk-spl","sqf","sql","squirrel","stan","stylus","swift","systemd","t4-cs","t4-templating","t4-vb","tap","tcl","textile","toml","tremor","tsx","tt2","turtle","twig","typescript","typoscript","unrealscript","uorazor","uri","v","vala","vbnet","velocity","verilog","vhdl","vim","visual-basic","warpscript","wasm","web-idl","wiki","wolfram","wren","xeora","xml-doc","xojo","xquery","yaml","yang","zig"];var HMe=VMe,UMe=Object.prototype.hasOwnProperty;function VMe(){for(var e={},t=0;t4&&n.slice(0,4)===UN&&N4e.test(t)&&(t.charAt(4)==="-"?r=M4e(t):t=P4e(t),a=_4e),new a(r,t))}function M4e(e){var t=e.slice(5).replace(HY,L4e);return UN+t.charAt(0).toUpperCase()+t.slice(1)}function P4e(e){var t=e.slice(4);return HY.test(t)?e:(t=t.replace(k4e,D4e),t.charAt(0)!=="-"&&(t="-"+t),UN+t)}function D4e(e){return"-"+e.toLowerCase()}function L4e(e){return e.charAt(1).toUpperCase()}var F4e=j4e,$L=/[#.]/g;function j4e(e,t){for(var n=e||"",r=t||"div",a={},o=0,i,s,c;o=48&&t<=57}var sLe=lLe;function lLe(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}var cLe=uLe;function uLe(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}var dLe=cLe,fLe=WY,pLe=gLe;function gLe(e){return dLe(e)||fLe(e)}var Mh,mLe=59,hLe=vLe;function vLe(e){var t="&"+e+";",n;return Mh=Mh||document.createElement("i"),Mh.innerHTML=t,n=Mh.textContent,n.charCodeAt(n.length-1)===mLe&&e!=="semi"||n===t?!1:n}var DL=aLe,LL=oLe,bLe=WY,yLe=sLe,GY=pLe,SLe=hLe,xLe=MLe,wLe={}.hasOwnProperty,gu=String.fromCharCode,CLe=Function.prototype,FL={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},ELe=9,jL=10,ILe=12,TLe=32,BL=38,RLe=59,_Le=60,$Le=61,OLe=35,NLe=88,kLe=120,ALe=65533,Eu="named",GN="hexadecimal",qN="decimal",KN={};KN[GN]=16;KN[qN]=10;var Ly={};Ly[Eu]=GY;Ly[qN]=bLe;Ly[GN]=yLe;var qY=1,KY=2,YY=3,XY=4,ZY=5,y_=6,QY=7,Pl={};Pl[qY]="Named character references must be terminated by a semicolon";Pl[KY]="Numeric character references must be terminated by a semicolon";Pl[YY]="Named character references cannot be empty";Pl[XY]="Numeric character references cannot be empty";Pl[ZY]="Named character references must be known";Pl[y_]="Numeric character references cannot be disallowed";Pl[QY]="Numeric character references cannot be outside the permissible Unicode range";function MLe(e,t){var n={},r,a;t||(t={});for(a in FL)r=t[a],n[a]=r??FL[a];return(n.position.indent||n.position.start)&&(n.indent=n.position.indent||[],n.position=n.position.start),PLe(e,n)}function PLe(e,t){var n=t.additional,r=t.nonTerminated,a=t.text,o=t.reference,i=t.warning,s=t.textContext,c=t.referenceContext,u=t.warningContext,d=t.position,f=t.indent||[],p=e.length,g=0,h=-1,b=d.column||1,y=d.line||1,S="",v=[],x,w,C,E,I,T,R,_,$,P,D,A,O,N,k,M,L,F,j;for(typeof n=="string"&&(n=n.charCodeAt(0)),M=B(),_=i?z:CLe,g--,p++;++g65535&&(T-=65536,P+=gu(T>>>10|55296),T=56320|T&1023),T=P+gu(T))):N!==Eu&&_(XY,F)),T?(H(),M=B(),g=j-1,b+=j-O+1,v.push(T),L=B(),L.offset++,o&&o.call(c,T,{start:M,end:L},e.slice(O-1,j)),M=L):(E=e.slice(O-1,j),S+=E,b+=E.length,g=j-1)}else I===10&&(y++,h++,b=0),I===I?(S+=gu(I),b++):H();return v.join("");function B(){return{line:y,column:b,offset:g+(d.offset||0)}}function z(V,te){var Y=B();Y.column+=te,Y.offset+=te,i.call(u,Pl[V],Y,V)}function H(){S&&(v.push(S),a&&a.call(s,S,{start:M,end:B()}),S="")}}function DLe(e){return e>=55296&&e<=57343||e>1114111}function LLe(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}var JY={exports:{}};(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/** * Prism: Lightweight, robust, elegant syntax highlighting * * @license MIT * @author Lea Verou * @namespace * @public - */var n=function(r){var a=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,o=0,i={},s={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function v(x){return x instanceof c?new c(x.type,v(x.content),x.alias):Array.isArray(x)?x.map(v):x.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(w){var v=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(w.stack)||[])[1];if(v){var x=document.getElementsByTagName("script");for(var C in x)if(x[C].src==v)return x[C]}return null}},isActive:function(v,x,C){for(var w="no-"+x;v;){var E=v.classList;if(E.contains(x))return!0;if(E.contains(w))return!1;v=v.parentElement}return!!C}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(v,x){var C=s.util.clone(s.languages[v]);for(var w in x)C[w]=x[w];return C},insertBefore:function(v,x,C,w){w=w||s.languages;var E=w[v],I={};for(var T in E)if(E.hasOwnProperty(T)){if(T==x)for(var R in C)C.hasOwnProperty(R)&&(I[R]=C[R]);C.hasOwnProperty(T)||(I[T]=E[T])}var _=w[v];return w[v]=I,s.languages.DFS(s.languages,function($,P){P===_&&$!=v&&(this[$]=I)}),I},DFS:function v(x,C,w,E){E=E||{};var I=s.util.objId;for(var T in x)if(x.hasOwnProperty(T)){C.call(x,T,x[T],w||T);var R=x[T],_=s.util.type(R);_==="Object"&&!E[I(R)]?(E[I(R)]=!0,v(R,C,null,E)):_==="Array"&&!E[I(R)]&&(E[I(R)]=!0,v(R,C,T,E))}}},plugins:{},highlightAll:function(v,x){s.highlightAllUnder(document,v,x)},highlightAllUnder:function(v,x,C){var w={callback:C,container:v,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",w),w.elements=Array.prototype.slice.apply(w.container.querySelectorAll(w.selector)),s.hooks.run("before-all-elements-highlight",w);for(var E=0,I;I=w.elements[E++];)s.highlightElement(I,x===!0,w.callback)},highlightElement:function(v,x,C){var w=s.util.getLanguage(v),E=s.languages[w];s.util.setLanguage(v,w);var I=v.parentElement;I&&I.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(I,w);var T=v.textContent,R={element:v,language:w,grammar:E,code:T};function _(P){R.highlightedCode=P,s.hooks.run("before-insert",R),R.element.innerHTML=R.highlightedCode,s.hooks.run("after-highlight",R),s.hooks.run("complete",R),C&&C.call(R.element)}if(s.hooks.run("before-sanity-check",R),I=R.element.parentElement,I&&I.nodeName.toLowerCase()==="pre"&&!I.hasAttribute("tabindex")&&I.setAttribute("tabindex","0"),!R.code){s.hooks.run("complete",R),C&&C.call(R.element);return}if(s.hooks.run("before-highlight",R),!R.grammar){_(s.util.encode(R.code));return}if(x&&r.Worker){var $=new Worker(s.filename);$.onmessage=function(P){_(P.data)},$.postMessage(JSON.stringify({language:R.language,code:R.code,immediateClose:!0}))}else _(s.highlight(R.code,R.grammar,R.language))},highlight:function(v,x,C){var w={code:v,grammar:x,language:C};if(s.hooks.run("before-tokenize",w),!w.grammar)throw new Error('The language "'+w.language+'" has no grammar.');return w.tokens=s.tokenize(w.code,w.grammar),s.hooks.run("after-tokenize",w),c.stringify(s.util.encode(w.tokens),w.language)},tokenize:function(v,x){var C=x.rest;if(C){for(var w in C)x[w]=C[w];delete x.rest}var E=new f;return p(E,E.head,v),d(v,E,x,E.head,0),h(E)},hooks:{all:{},add:function(v,x){var C=s.hooks.all;C[v]=C[v]||[],C[v].push(x)},run:function(v,x){var C=s.hooks.all[v];if(!(!C||!C.length))for(var w=0,E;E=C[w++];)E(x)}},Token:c};r.Prism=s;function c(v,x,C,w){this.type=v,this.content=x,this.alias=C,this.length=(w||"").length|0}c.stringify=function v(x,C){if(typeof x=="string")return x;if(Array.isArray(x)){var w="";return x.forEach(function(_){w+=v(_,C)}),w}var E={type:x.type,content:v(x.content,C),tag:"span",classes:["token",x.type],attributes:{},language:C},I=x.alias;I&&(Array.isArray(I)?Array.prototype.push.apply(E.classes,I):E.classes.push(I)),s.hooks.run("wrap",E);var T="";for(var R in E.attributes)T+=" "+R+'="'+(E.attributes[R]||"").replace(/"/g,""")+'"';return"<"+E.tag+' class="'+E.classes.join(" ")+'"'+T+">"+E.content+""};function u(v,x,C,w){v.lastIndex=x;var E=v.exec(C);if(E&&w&&E[1]){var I=E[1].length;E.index+=I,E[0]=E[0].slice(I)}return E}function d(v,x,C,w,E,I){for(var T in C)if(!(!C.hasOwnProperty(T)||!C[T])){var R=C[T];R=Array.isArray(R)?R:[R];for(var _=0;_=I.reach);L+=M.value.length,M=M.next){var F=M.value;if(x.length>v.length)return;if(!(F instanceof c)){var j=1,B;if(A){if(B=u(k,L,v,D),!B||B.index>=v.length)break;var te=B.index,z=B.index+B[0].length,H=L;for(H+=M.value.length;te>=H;)M=M.next,H+=M.value.length;if(H-=M.value.length,L=H,M.value instanceof c)continue;for(var V=M;V!==x.tail&&(HI.reach&&(I.reach=U);var q=M.prev;J&&(q=p(x,q,J),L+=J.length),g(x,q,j);var X=new c(T,P?s.tokenize(Y,P):Y,O,Y);if(M=p(x,q,X),G&&p(x,M,G),j>1){var Q={cause:T+","+_,reach:U};d(v,x,C,M.prev,L,Q),I&&Q.reach>I.reach&&(I.reach=Q.reach)}}}}}}function f(){var v={value:null,prev:null,next:null},x={value:null,prev:v,next:null};v.next=x,this.head=v,this.tail=x,this.length=0}function p(v,x,C){var w=x.next,E={value:C,prev:x,next:w};return x.next=E,w.prev=E,v.length++,E}function g(v,x,C){for(var w=x.next,E=0;E/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.value.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,r){var a={};a["language-"+r]={pattern:/(^$)/i,lookbehind:!0,inside:e.languages[r]},a.cdata=/^$/i;var o={"included-cdata":{pattern://i,inside:a}};o["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var i={};i[n]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:o},e.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}var BLe=XN;XN.displayName="css";XN.aliases=[];function XN(e){(function(t){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var r=t.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))})(e)}var zLe=ZN;ZN.displayName="clike";ZN.aliases=[];function ZN(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}var HLe=QN;QN.displayName="javascript";QN.aliases=["js"];function QN(e){e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}var tp=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof ya=="object"?ya:{},ULe=o6e();tp.Prism={manual:!0,disableWorkerMessageHandler:!0};var VLe=oPe,WLe=xLe,eX=FLe,GLe=jLe,qLe=BLe,KLe=zLe,YLe=HLe;ULe();var JN={}.hasOwnProperty;function tX(){}tX.prototype=eX;var Nr=new tX,XLe=Nr;Nr.highlight=QLe;Nr.register=Cm;Nr.alias=ZLe;Nr.registered=JLe;Nr.listLanguages=e6e;Cm(GLe);Cm(qLe);Cm(KLe);Cm(YLe);Nr.util.encode=r6e;Nr.Token.stringify=t6e;function Cm(e){if(typeof e!="function"||!e.displayName)throw new Error("Expected `function` for `grammar`, got `"+e+"`");Nr.languages[e.displayName]===void 0&&e(Nr)}function ZLe(e,t){var n=Nr.languages,r=e,a,o,i,s;t&&(r={},r[e]=t);for(a in r)for(o=r[a],o=typeof o=="string"?[o]:o,i=o.length,s=-1;++s code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}};var U1,zL;function s6e(){if(zL)return U1;zL=1,U1=e,e.displayName="abap",e.aliases=[];function e(t){t.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:SCIENTIFIC_WITH_LEADING_ZERO|SCALE_PRESERVING_SCIENTIFIC|RMC_COMMUNICATION_FAILURE|END-ENHANCEMENT-SECTION|MULTIPLY-CORRESPONDING|SUBTRACT-CORRESPONDING|VERIFICATION-MESSAGE|DIVIDE-CORRESPONDING|ENHANCEMENT-SECTION|CURRENCY_CONVERSION|RMC_SYSTEM_FAILURE|START-OF-SELECTION|MOVE-CORRESPONDING|RMC_INVALID_STATUS|CUSTOMER-FUNCTION|END-OF-DEFINITION|ENHANCEMENT-POINT|SYSTEM-EXCEPTIONS|ADD-CORRESPONDING|SCALE_PRESERVING|SELECTION-SCREEN|CURSOR-SELECTION|END-OF-SELECTION|LOAD-OF-PROGRAM|SCROLL-BOUNDARY|SELECTION-TABLE|EXCEPTION-TABLE|IMPLEMENTATIONS|PARAMETER-TABLE|RIGHT-JUSTIFIED|UNIT_CONVERSION|AUTHORITY-CHECK|LIST-PROCESSING|SIGN_AS_POSTFIX|COL_BACKGROUND|IMPLEMENTATION|INTERFACE-POOL|TRANSFORMATION|IDENTIFICATION|ENDENHANCEMENT|LINE-SELECTION|INITIALIZATION|LEFT-JUSTIFIED|SELECT-OPTIONS|SELECTION-SETS|COMMUNICATION|CORRESPONDING|DECIMAL_SHIFT|PRINT-CONTROL|VALUE-REQUEST|CHAIN-REQUEST|FUNCTION-POOL|FIELD-SYMBOLS|FUNCTIONALITY|INVERTED-DATE|SELECTION-SET|CLASS-METHODS|OUTPUT-LENGTH|CLASS-CODING|COL_NEGATIVE|ERRORMESSAGE|FIELD-GROUPS|HELP-REQUEST|NO-EXTENSION|NO-TOPOFPAGE|REDEFINITION|DISPLAY-MODE|ENDINTERFACE|EXIT-COMMAND|FIELD-SYMBOL|NO-SCROLLING|SHORTDUMP-ID|ACCESSPOLICY|CLASS-EVENTS|COL_POSITIVE|DECLARATIONS|ENHANCEMENTS|FILTER-TABLE|SWITCHSTATES|SYNTAX-CHECK|TRANSPORTING|ASYNCHRONOUS|SYNTAX-TRACE|TOKENIZATION|USER-COMMAND|WITH-HEADING|ABAP-SOURCE|BREAK-POINT|CHAIN-INPUT|COMPRESSION|FIXED-POINT|NEW-SECTION|NON-UNICODE|OCCURRENCES|RESPONSIBLE|SYSTEM-CALL|TRACE-TABLE|ABBREVIATED|CHAR-TO-HEX|END-OF-FILE|ENDFUNCTION|ENVIRONMENT|ASSOCIATION|COL_HEADING|EDITOR-CALL|END-OF-PAGE|ENGINEERING|IMPLEMENTED|INTENSIFIED|RADIOBUTTON|SYSTEM-EXIT|TOP-OF-PAGE|TRANSACTION|APPLICATION|CONCATENATE|DESTINATION|ENHANCEMENT|IMMEDIATELY|NO-GROUPING|PRECOMPILED|REPLACEMENT|TITLE-LINES|ACTIVATION|BYTE-ORDER|CLASS-POOL|CONNECTION|CONVERSION|DEFINITION|DEPARTMENT|EXPIRATION|INHERITING|MESSAGE-ID|NO-HEADING|PERFORMING|QUEUE-ONLY|RIGHTSPACE|SCIENTIFIC|STATUSINFO|STRUCTURES|SYNCPOINTS|WITH-TITLE|ATTRIBUTES|BOUNDARIES|CLASS-DATA|COL_NORMAL|DD\/MM\/YYYY|DESCENDING|INTERFACES|LINE-COUNT|MM\/DD\/YYYY|NON-UNIQUE|PRESERVING|SELECTIONS|STATEMENTS|SUBROUTINE|TRUNCATION|TYPE-POOLS|ARITHMETIC|BACKGROUND|ENDPROVIDE|EXCEPTIONS|IDENTIFIER|INDEX-LINE|OBLIGATORY|PARAMETERS|PERCENTAGE|PUSHBUTTON|RESOLUTION|COMPONENTS|DEALLOCATE|DISCONNECT|DUPLICATES|FIRST-LINE|HEAD-LINES|NO-DISPLAY|OCCURRENCE|RESPECTING|RETURNCODE|SUBMATCHES|TRACE-FILE|ASCENDING|BYPASSING|ENDMODULE|EXCEPTION|EXCLUDING|EXPORTING|INCREMENT|MATCHCODE|PARAMETER|PARTIALLY|PREFERRED|REFERENCE|REPLACING|RETURNING|SELECTION|SEPARATED|SPECIFIED|STATEMENT|TIMESTAMP|TYPE-POOL|ACCEPTING|APPENDAGE|ASSIGNING|COL_GROUP|COMPARING|CONSTANTS|DANGEROUS|IMPORTING|INSTANCES|LEFTSPACE|LOG-POINT|QUICKINFO|READ-ONLY|SCROLLING|SQLSCRIPT|STEP-LOOP|TOP-LINES|TRANSLATE|APPENDING|AUTHORITY|CHARACTER|COMPONENT|CONDITION|DIRECTORY|DUPLICATE|MESSAGING|RECEIVING|SUBSCREEN|ACCORDING|COL_TOTAL|END-LINES|ENDMETHOD|ENDSELECT|EXPANDING|EXTENSION|INCLUDING|INFOTYPES|INTERFACE|INTERVALS|LINE-SIZE|PF-STATUS|PROCEDURE|PROTECTED|REQUESTED|RESUMABLE|RIGHTPLUS|SAP-SPOOL|SECONDARY|STRUCTURE|SUBSTRING|TABLEVIEW|NUMOFCHAR|ADJACENT|ANALYSIS|ASSIGNED|BACKWARD|CHANNELS|CHECKBOX|CONTINUE|CRITICAL|DATAINFO|DD\/MM\/YY|DURATION|ENCODING|ENDCLASS|FUNCTION|LEFTPLUS|LINEFEED|MM\/DD\/YY|OVERFLOW|RECEIVED|SKIPPING|SORTABLE|STANDARD|SUBTRACT|SUPPRESS|TABSTRIP|TITLEBAR|TRUNCATE|UNASSIGN|WHENEVER|ANALYZER|COALESCE|COMMENTS|CONDENSE|DECIMALS|DEFERRED|ENDWHILE|EXPLICIT|KEYWORDS|MESSAGES|POSITION|PRIORITY|RECEIVER|RENAMING|TIMEZONE|TRAILING|ALLOCATE|CENTERED|CIRCULAR|CONTROLS|CURRENCY|DELETING|DESCRIBE|DISTANCE|ENDCATCH|EXPONENT|EXTENDED|GENERATE|IGNORING|INCLUDES|INTERNAL|MAJOR-ID|MODIFIER|NEW-LINE|OPTIONAL|PROPERTY|ROLLBACK|STARTING|SUPPLIED|ABSTRACT|CHANGING|CONTEXTS|CREATING|CUSTOMER|DATABASE|DAYLIGHT|DEFINING|DISTINCT|DIVISION|ENABLING|ENDCHAIN|ESCAPING|HARMLESS|IMPLICIT|INACTIVE|LANGUAGE|MINOR-ID|MULTIPLY|NEW-PAGE|NO-TITLE|POS_HIGH|SEPARATE|TEXTPOOL|TRANSFER|SELECTOR|DBMAXLEN|ITERATOR|ARCHIVE|BIT-XOR|BYTE-CO|COLLECT|COMMENT|CURRENT|DEFAULT|DISPLAY|ENDFORM|EXTRACT|LEADING|LISTBOX|LOCATOR|MEMBERS|METHODS|NESTING|POS_LOW|PROCESS|PROVIDE|RAISING|RESERVE|SECONDS|SUMMARY|VISIBLE|BETWEEN|BIT-AND|BYTE-CS|CLEANUP|COMPUTE|CONTROL|CONVERT|DATASET|ENDCASE|FORWARD|HEADERS|HOTSPOT|INCLUDE|INVERSE|KEEPING|NO-ZERO|OBJECTS|OVERLAY|PADDING|PATTERN|PROGRAM|REFRESH|SECTION|SUMMING|TESTING|VERSION|WINDOWS|WITHOUT|BIT-NOT|BYTE-CA|BYTE-NA|CASTING|CONTEXT|COUNTRY|DYNAMIC|ENABLED|ENDLOOP|EXECUTE|FRIENDS|HANDLER|HEADING|INITIAL|\*-INPUT|LOGFILE|MAXIMUM|MINIMUM|NO-GAPS|NO-SIGN|PRAGMAS|PRIMARY|PRIVATE|REDUCED|REPLACE|REQUEST|RESULTS|UNICODE|WARNING|ALIASES|BYTE-CN|BYTE-NS|CALLING|COL_KEY|COLUMNS|CONNECT|ENDEXEC|ENTRIES|EXCLUDE|FILTERS|FURTHER|HELP-ID|LOGICAL|MAPPING|MESSAGE|NAMETAB|OPTIONS|PACKAGE|PERFORM|RECEIVE|STATICS|VARYING|BINDING|CHARLEN|GREATER|XSTRLEN|ACCEPT|APPEND|DETAIL|ELSEIF|ENDING|ENDTRY|FORMAT|FRAMES|GIVING|HASHED|HEADER|IMPORT|INSERT|MARGIN|MODULE|NATIVE|OBJECT|OFFSET|REMOTE|RESUME|SAVING|SIMPLE|SUBMIT|TABBED|TOKENS|UNIQUE|UNPACK|UPDATE|WINDOW|YELLOW|ACTUAL|ASPECT|CENTER|CURSOR|DELETE|DIALOG|DIVIDE|DURING|ERRORS|EVENTS|EXTEND|FILTER|HANDLE|HAVING|IGNORE|LITTLE|MEMORY|NO-GAP|OCCURS|OPTION|PERSON|PLACES|PUBLIC|REDUCE|REPORT|RESULT|SINGLE|SORTED|SWITCH|SYNTAX|TARGET|VALUES|WRITER|ASSERT|BLOCKS|BOUNDS|BUFFER|CHANGE|COLUMN|COMMIT|CONCAT|COPIES|CREATE|DDMMYY|DEFINE|ENDIAN|ESCAPE|EXPAND|KERNEL|LAYOUT|LEGACY|LEVELS|MMDDYY|NUMBER|OUTPUT|RANGES|READER|RETURN|SCREEN|SEARCH|SELECT|SHARED|SOURCE|STABLE|STATIC|SUBKEY|SUFFIX|TABLES|UNWIND|YYMMDD|ASSIGN|BACKUP|BEFORE|BINARY|BIT-OR|BLANKS|CLIENT|CODING|COMMON|DEMAND|DYNPRO|EXCEPT|EXISTS|EXPORT|FIELDS|GLOBAL|GROUPS|LENGTH|LOCALE|MEDIUM|METHOD|MODIFY|NESTED|OTHERS|REJECT|SCROLL|SUPPLY|SYMBOL|ENDFOR|STRLEN|ALIGN|BEGIN|BOUND|ENDAT|ENTRY|EVENT|FINAL|FLUSH|GRANT|INNER|SHORT|USING|WRITE|AFTER|BLACK|BLOCK|CLOCK|COLOR|COUNT|DUMMY|EMPTY|ENDDO|ENDON|GREEN|INDEX|INOUT|LEAVE|LEVEL|LINES|MODIF|ORDER|OUTER|RANGE|RESET|RETRY|RIGHT|SMART|SPLIT|STYLE|TABLE|THROW|UNDER|UNTIL|UPPER|UTF-8|WHERE|ALIAS|BLANK|CLEAR|CLOSE|EXACT|FETCH|FIRST|FOUND|GROUP|LLANG|LOCAL|OTHER|REGEX|SPOOL|TITLE|TYPES|VALID|WHILE|ALPHA|BOXED|CATCH|CHAIN|CHECK|CLASS|COVER|ENDIF|EQUIV|FIELD|FLOOR|FRAME|INPUT|LOWER|MATCH|NODES|PAGES|PRINT|RAISE|ROUND|SHIFT|SPACE|SPOTS|STAMP|STATE|TASKS|TIMES|TRMAC|ULINE|UNION|VALUE|WIDTH|EQUAL|LOG10|TRUNC|BLOB|CASE|CEIL|CLOB|COND|EXIT|FILE|GAPS|HOLD|INCL|INTO|KEEP|KEYS|LAST|LINE|LONG|LPAD|MAIL|MODE|OPEN|PINK|READ|ROWS|TEST|THEN|ZERO|AREA|BACK|BADI|BYTE|CAST|EDIT|EXEC|FAIL|FIND|FKEQ|FONT|FREE|GKEQ|HIDE|INIT|ITNO|LATE|LOOP|MAIN|MARK|MOVE|NEXT|NULL|RISK|ROLE|UNIT|WAIT|ZONE|BASE|CALL|CODE|DATA|DATE|FKGE|GKGE|HIGH|KIND|LEFT|LIST|MASK|MESH|NAME|NODE|PACK|PAGE|POOL|SEND|SIGN|SIZE|SOME|STOP|TASK|TEXT|TIME|USER|VARY|WITH|WORD|BLUE|CONV|COPY|DEEP|ELSE|FORM|FROM|HINT|ICON|JOIN|LIKE|LOAD|ONLY|PART|SCAN|SKIP|SORT|TYPE|UNIX|VIEW|WHEN|WORK|ACOS|ASIN|ATAN|COSH|EACH|FRAC|LESS|RTTI|SINH|SQRT|TANH|AVG|BIT|DIV|ISO|LET|OUT|PAD|SQL|ALL|CI_|CPI|END|LOB|LPI|MAX|MIN|NEW|OLE|RUN|SET|\?TO|YES|ABS|ADD|AND|BIG|FOR|HDB|JOB|LOW|NOT|SAP|TRY|VIA|XML|ANY|GET|IDS|KEY|MOD|OFF|PUT|RAW|RED|REF|SUM|TAB|XSD|CNT|COS|EXP|LOG|SIN|TAN|XOR|AT|CO|CP|DO|GT|ID|IF|NS|OR|BT|CA|CS|GE|NA|NB|EQ|IN|LT|NE|NO|OF|ON|PF|TO|AS|BY|CN|IS|LE|NP|UP|E|I|M|O|Z|C|X)\b/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}return U1}var V1,HL;function l6e(){if(HL)return V1;HL=1,V1=e,e.displayName="abnf",e.aliases=[];function e(t){(function(n){var r="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";n.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+r+"|<"+r+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(t)}return V1}var W1,UL;function c6e(){if(UL)return W1;UL=1,W1=e,e.displayName="actionscript",e.aliases=[];function e(t){t.languages.actionscript=t.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<>?>?|[!=]=?)=?|[~?@]/}),t.languages.actionscript["class-name"].alias="function",delete t.languages.actionscript.parameter,delete t.languages.actionscript["literal-property"],t.languages.markup&&t.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:t.languages.markup}})}return W1}var G1,VL;function u6e(){if(VL)return G1;VL=1,G1=e,e.displayName="ada",e.aliases=[];function e(t){t.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],"attr-name":/\b'\w+/,keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}return G1}var q1,WL;function d6e(){if(WL)return q1;WL=1,q1=e,e.displayName="agda",e.aliases=[];function e(t){(function(n){n.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(t)}return q1}var K1,GL;function f6e(){if(GL)return K1;GL=1,K1=e,e.displayName="al",e.aliases=[];function e(t){t.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}return K1}var Y1,qL;function p6e(){if(qL)return Y1;qL=1,Y1=e,e.displayName="antlr4",e.aliases=["g4"];function e(t){t.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},t.languages.g4=t.languages.antlr4}return Y1}var X1,KL;function g6e(){if(KL)return X1;KL=1,X1=e,e.displayName="apacheconf",e.aliases=[];function e(t){t.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}return X1}var Z1,YL;function ek(){if(YL)return Z1;YL=1,Z1=e,e.displayName="sql",e.aliases=[];function e(t){t.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}return Z1}var Q1,XL;function m6e(){if(XL)return Q1;XL=1;var e=ek();Q1=t,t.displayName="apex",t.aliases=[];function t(n){n.register(e),function(r){var a=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,o=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(//g,function(){return a.source});function i(c){return RegExp(c.replace(//g,function(){return o}),"i")}var s={keyword:a,punctuation:/[()\[\]{};,:.<>]/};r.languages.apex={comment:r.languages.clike.comment,string:r.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:r.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:i(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)/.source),lookbehind:!0,inside:s},{pattern:i(/(\(\s*)(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:s},{pattern:i(/(?=\s*\w+\s*[;=,(){:])/.source),inside:s}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:a,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(n)}return Q1}var J1,ZL;function h6e(){if(ZL)return J1;ZL=1,J1=e,e.displayName="apl",e.aliases=[];function e(t){t.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}return J1}var ex,QL;function v6e(){if(QL)return ex;QL=1,ex=e,e.displayName="applescript",e.aliases=[];function e(t){t.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}return ex}var tx,JL;function b6e(){if(JL)return tx;JL=1,tx=e,e.displayName="aql",e.aliases=[];function e(t){t.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}return tx}var nx,e6;function Kc(){if(e6)return nx;e6=1,nx=e,e.displayName="c",e.aliases=[];function e(t){t.languages.c=t.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),t.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),t.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},t.languages.c.string],char:t.languages.c.char,comment:t.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:t.languages.c}}}}),t.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete t.languages.c.boolean}return nx}var rx,t6;function tk(){if(t6)return rx;t6=1;var e=Kc();rx=t,t.displayName="cpp",t.aliases=[];function t(n){n.register(e),function(r){var a=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,o=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return a.source});r.languages.cpp=r.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return a.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:a,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),r.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,function(){return o})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),r.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:r.languages.cpp}}}}),r.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),r.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:r.languages.extend("cpp",{})}}),r.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},r.languages.cpp["base-clause"])}(n)}return rx}var ax,n6;function y6e(){if(n6)return ax;n6=1;var e=tk();ax=t,t.displayName="arduino",t.aliases=["ino"];function t(n){n.register(e),n.languages.arduino=n.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),n.languages.ino=n.languages.arduino}return ax}var ox,r6;function S6e(){if(r6)return ox;r6=1,ox=e,e.displayName="arff",e.aliases=[];function e(t){t.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}return ox}var ix,a6;function x6e(){if(a6)return ix;a6=1,ix=e,e.displayName="asciidoc",e.aliases=["adoc"];function e(t){(function(n){var r={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},a=n.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:r,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:r.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:r,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function o(i){i=i.split(" ");for(var s={},c=0,u=i.length;c>=?|<<=?|&&?|\|\|?|[-+*/%&|^!=<>?]=?/,punctuation:/[(),:]/}}return lx}var cx,s6;function Ly(){if(s6)return cx;s6=1,cx=e,e.displayName="csharp",e.aliases=["dotnet","cs"];function e(t){(function(n){function r(j,B){return j.replace(/<<(\d+)>>/g,function(z,H){return"(?:"+B[+H]+")"})}function a(j,B,z){return RegExp(r(j,B),"")}function o(j,B){for(var z=0;z>/g,function(){return"(?:"+j+")"});return j.replace(/<>/g,"[^\\s\\S]")}var i={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function s(j){return"\\b(?:"+j.trim().replace(/ /g,"|")+")\\b"}var c=s(i.typeDeclaration),u=RegExp(s(i.type+" "+i.typeDeclaration+" "+i.contextual+" "+i.other)),d=s(i.typeDeclaration+" "+i.contextual+" "+i.other),f=s(i.type+" "+i.typeDeclaration+" "+i.other),p=o(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),g=o(/\((?:[^()]|<>)*\)/.source,2),h=/@?\b[A-Za-z_]\w*\b/.source,b=r(/<<0>>(?:\s*<<1>>)?/.source,[h,p]),y=r(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[d,b]),S=/\[\s*(?:,\s*)*\]/.source,v=r(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,S]),x=r(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,g,S]),C=r(/\(<<0>>+(?:,<<0>>+)+\)/.source,[x]),w=r(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[C,y,S]),E={keyword:u,punctuation:/[<>()?,.:[\]]/},I=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,T=/"(?:\\.|[^\\"\r\n])*"/.source,R=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;n.languages.csharp=n.languages.extend("clike",{string:[{pattern:a(/(^|[^$\\])<<0>>/.source,[R]),lookbehind:!0,greedy:!0},{pattern:a(/(^|[^@$\\])<<0>>/.source,[T]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:a(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:E},{pattern:a(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[h,w]),lookbehind:!0,inside:E},{pattern:a(/(\busing\s+)<<0>>(?=\s*=)/.source,[h]),lookbehind:!0},{pattern:a(/(\b<<0>>\s+)<<1>>/.source,[c,b]),lookbehind:!0,inside:E},{pattern:a(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:E},{pattern:a(/(\bwhere\s+)<<0>>/.source,[h]),lookbehind:!0},{pattern:a(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[v]),lookbehind:!0,inside:E},{pattern:a(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[w,f,h]),inside:E}],keyword:u,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),n.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),n.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:a(/([(,]\s*)<<0>>(?=\s*:)/.source,[h]),lookbehind:!0,alias:"punctuation"}}),n.languages.insertBefore("csharp","class-name",{namespace:{pattern:a(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[h]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:a(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[g]),lookbehind:!0,alias:"class-name",inside:E},"return-type":{pattern:a(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[w,y]),inside:E,alias:"class-name"},"constructor-invocation":{pattern:a(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[w]),lookbehind:!0,inside:E,alias:"class-name"},"generic-method":{pattern:a(/<<0>>\s*<<1>>(?=\s*\()/.source,[h,p]),inside:{function:a(/^<<0>>/.source,[h]),generic:{pattern:RegExp(p),alias:"class-name",inside:E}}},"type-list":{pattern:a(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[c,b,h,w,u.source,g,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:a(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[b,g]),lookbehind:!0,greedy:!0,inside:n.languages.csharp},keyword:u,"class-name":{pattern:RegExp(w),greedy:!0,inside:E},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var _=T+"|"+I,$=r(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[_]),P=o(r(/[^"'/()]|<<0>>|\(<>*\)/.source,[$]),2),D=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,A=r(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,P]);n.languages.insertBefore("csharp","class-name",{attribute:{pattern:a(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[D,A]),lookbehind:!0,greedy:!0,inside:{target:{pattern:a(/^<<0>>(?=\s*:)/.source,[D]),alias:"keyword"},"attribute-arguments":{pattern:a(/\(<<0>>*\)/.source,[P]),inside:n.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var O=/:[^}\r\n]+/.source,N=o(r(/[^"'/()]|<<0>>|\(<>*\)/.source,[$]),2),k=r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[N,O]),M=o(r(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[_]),2),L=r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[M,O]);function F(j,B){return{interpolation:{pattern:a(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[j]),lookbehind:!0,inside:{"format-string":{pattern:a(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[B,O]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:n.languages.csharp}}},string:/[\s\S]+/}}n.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:a(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[k]),lookbehind:!0,greedy:!0,inside:F(k,N)},{pattern:a(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[L]),lookbehind:!0,greedy:!0,inside:F(L,M)}],char:{pattern:RegExp(I),greedy:!0}}),n.languages.dotnet=n.languages.cs=n.languages.csharp})(t)}return cx}var ux,l6;function E6e(){if(l6)return ux;l6=1;var e=Ly();ux=t,t.displayName="aspnet",t.aliases=[];function t(n){n.register(e),n.languages.aspnet=n.languages.extend("markup",{"page-directive":{pattern:/<%\s*@.*%>/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:n.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:n.languages.csharp}}}),n.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,n.languages.insertBefore("inside","punctuation",{directive:n.languages.aspnet.directive},n.languages.aspnet.tag.inside["attr-value"]),n.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),n.languages.insertBefore("aspnet",n.languages.javascript?"script":"tag",{"asp-script":{pattern:/(]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:n.languages.csharp||{}}})}return ux}var dx,c6;function I6e(){if(c6)return dx;c6=1,dx=e,e.displayName="autohotkey",e.aliases=[];function e(t){t.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,selector:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,important:/#\b(?:AllowSameLineComments|ClipboardTimeout|CommentFlag|DerefChar|ErrorStdOut|EscapeChar|HotkeyInterval|HotkeyModifierTimeout|Hotstring|If|IfTimeout|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Include|IncludeAgain|InputLevel|InstallKeybdHook|InstallMouseHook|KeyHistory|MaxHotkeysPerInterval|MaxMem|MaxThreads|MaxThreadsBuffer|MaxThreadsPerHotkey|MenuMaskKey|NoEnv|NoTrayIcon|Persistent|SingleInstance|UseHook|Warn|WinActivateForce)\b/i,keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}return dx}var fx,u6;function T6e(){if(u6)return fx;u6=1,fx=e,e.displayName="autoit",e.aliases=[];function e(t){t.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}return fx}var px,d6;function R6e(){if(d6)return px;d6=1,px=e,e.displayName="avisynth",e.aliases=["avs"];function e(t){(function(n){function r(d,f){return d.replace(/<<(\d+)>>/g,function(p,g){return f[+g]})}function a(d,f,p){return RegExp(r(d,f),p)}var o=/bool|clip|float|int|string|val/.source,i=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),s=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),c=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),u=[i,s,c].join("|");n.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:a(/\b(?:<<0>>)\s+("?)\w+\1/.source,[o],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:a(/\b(?:<<0>>)\b/.source,[u],"i"),alias:"function"},"type-cast":{pattern:a(/\b(?:<<0>>)(?=\s*\()/.source,[o],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},n.languages.avs=n.languages.avisynth})(t)}return px}var gx,f6;function _6e(){if(f6)return gx;f6=1,gx=e,e.displayName="avroIdl",e.aliases=[];function e(t){t.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},t.languages.avdl=t.languages["avro-idl"]}return gx}var mx,p6;function nX(){if(p6)return mx;p6=1,mx=e,e.displayName="bash",e.aliases=["shell"];function e(t){(function(n){var r="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",a={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},o={bash:a,environment:{pattern:RegExp("\\$"+r),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+r),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};n.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+r),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:o},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:a}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:o},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:o.entity}}],environment:{pattern:RegExp("\\$?"+r),alias:"constant"},variable:o.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},a.inside=n.languages.bash;for(var i=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],s=o.variable[1].inside,c=0;c?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}return hx}var vx,m6;function $6e(){if(m6)return vx;m6=1,vx=e,e.displayName="batch",e.aliases=[];function e(t){(function(n){var r=/%%?[~:\w]+%?|!\S+!/,a={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},o=/"(?:[\\"]"|[^"])*"(?!")/,i=/(?:\b|-)\d+\b/;n.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:o,parameter:a,variable:r,number:i,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:o,parameter:a,variable:r,number:i,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:o,parameter:a,variable:[r,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:i,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:o,parameter:a,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:r,number:i,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(t)}return vx}var bx,h6;function O6e(){if(h6)return bx;h6=1,bx=e,e.displayName="bbcode",e.aliases=["shortcode"];function e(t){t.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},t.languages.shortcode=t.languages.bbcode}return bx}var yx,v6;function N6e(){if(v6)return yx;v6=1,yx=e,e.displayName="bicep",e.aliases=[];function e(t){t.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},t.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=t.languages.bicep}return yx}var Sx,b6;function k6e(){if(b6)return Sx;b6=1,Sx=e,e.displayName="birb",e.aliases=[];function e(t){t.languages.birb=t.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),t.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}return Sx}var xx,y6;function A6e(){if(y6)return xx;y6=1;var e=Kc();xx=t,t.displayName="bison",t.aliases=[];function t(n){n.register(e),n.languages.bison=n.languages.extend("c",{}),n.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:n.languages.c}},comment:n.languages.c.comment,string:n.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}return xx}var wx,S6;function M6e(){if(S6)return wx;S6=1,wx=e,e.displayName="bnf",e.aliases=["rbnf"];function e(t){t.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},t.languages.rbnf=t.languages.bnf}return wx}var Cx,x6;function P6e(){if(x6)return Cx;x6=1,Cx=e,e.displayName="brainfuck",e.aliases=[];function e(t){t.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}return Cx}var Ex,w6;function D6e(){if(w6)return Ex;w6=1,Ex=e,e.displayName="brightscript",e.aliases=[];function e(t){t.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},t.languages.brightscript["directive-statement"].inside.expression.inside=t.languages.brightscript}return Ex}var Ix,C6;function L6e(){if(C6)return Ix;C6=1,Ix=e,e.displayName="bro",e.aliases=[];function e(t){t.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}return Ix}var Tx,E6;function F6e(){if(E6)return Tx;E6=1,Tx=e,e.displayName="bsl",e.aliases=[];function e(t){t.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},t.languages.oscript=t.languages.bsl}return Tx}var Rx,I6;function j6e(){if(I6)return Rx;I6=1,Rx=e,e.displayName="cfscript",e.aliases=[];function e(t){t.languages.cfscript=t.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|<=?|>=?|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|[?:]/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),t.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete t.languages.cfscript["class-name"],t.languages.cfc=t.languages.cfscript}return Rx}var _x,T6;function B6e(){if(T6)return _x;T6=1;var e=tk();_x=t,t.displayName="chaiscript",t.aliases=[];function t(n){n.register(e),n.languages.chaiscript=n.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[n.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),n.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),n.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:n.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}return _x}var $x,R6;function z6e(){if(R6)return $x;R6=1,$x=e,e.displayName="cil",e.aliases=[];function e(t){t.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}return $x}var Ox,_6;function H6e(){if(_6)return Ox;_6=1,Ox=e,e.displayName="clojure",e.aliases=[];function e(t){t.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}return Ox}var Nx,$6;function U6e(){if($6)return Nx;$6=1,Nx=e,e.displayName="cmake",e.aliases=[];function e(t){t.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_(?:BINARY_DIR|DESCRIPTION|HOMEPAGE_URL|NAME|SOURCE_DIR|VERSION|VERSION_(?:MAJOR|MINOR|PATCH|TWEAK))|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE|XCODE_VERSION))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|GLOBAL_KEYWORD|GLOBAL_PROJECT_TYPES|GLOBAL_ROOTNAMESPACE|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}return Nx}var kx,O6;function V6e(){if(O6)return kx;O6=1,kx=e,e.displayName="cobol",e.aliases=[];function e(t){t.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}return kx}var Ax,N6;function W6e(){if(N6)return Ax;N6=1,Ax=e,e.displayName="coffeescript",e.aliases=["coffee"];function e(t){(function(n){var r=/#(?!\{).+/,a={pattern:/#\{[^}]+\}/,alias:"variable"};n.languages.coffeescript=n.languages.extend("javascript",{comment:r,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:a}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),n.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:r,interpolation:a}}}),n.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:n.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:a}}]}),n.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete n.languages.coffeescript["template-string"],n.languages.coffee=n.languages.coffeescript})(t)}return Ax}var Mx,k6;function G6e(){if(k6)return Mx;k6=1,Mx=e,e.displayName="concurnas",e.aliases=["conc"];function e(t){t.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},t.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:t.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:t.languages.concurnas},string:/[\s\S]+/}}}),t.languages.conc=t.languages.concurnas}return Mx}var Px,A6;function q6e(){if(A6)return Px;A6=1,Px=e,e.displayName="coq",e.aliases=[];function e(t){(function(n){for(var r=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|)*\*\)/.source,a=0;a<2;a++)r=r.replace(//g,function(){return r});r=r.replace(//g,"[]"),n.languages.coq={comment:RegExp(r),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|)*\]/.source.replace(//g,function(){return r})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(r),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(t)}return Px}var Dx,M6;function Fy(){if(M6)return Dx;M6=1,Dx=e,e.displayName="ruby",e.aliases=["rb"];function e(t){(function(n){n.languages.ruby=n.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),n.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var r={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:n.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete n.languages.ruby.function;var a="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",o=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;n.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+a+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:r,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:r,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+o),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+o+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),n.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+a),greedy:!0,inside:{interpolation:r,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:r,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:r,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+a),greedy:!0,inside:{interpolation:r,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:r,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete n.languages.ruby.string,n.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),n.languages.rb=n.languages.ruby})(t)}return Dx}var Lx,P6;function K6e(){if(P6)return Lx;P6=1;var e=Fy();Lx=t,t.displayName="crystal",t.aliases=[];function t(n){n.register(e),function(r){r.languages.crystal=r.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,r.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),r.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:r.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:r.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}(n)}return Lx}var Fx,D6;function Y6e(){if(D6)return Fx;D6=1;var e=Ly();Fx=t,t.displayName="cshtml",t.aliases=["razor"];function t(n){n.register(e),function(r){var a=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,o=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function i(y,S){for(var v=0;v/g,function(){return"(?:"+y+")"});return y.replace(//g,"[^\\s\\S]").replace(//g,"(?:"+o+")").replace(//g,"(?:"+a+")")}var s=i(/\((?:[^()'"@/]|||)*\)/.source,2),c=i(/\[(?:[^\[\]'"@/]|||)*\]/.source,2),u=i(/\{(?:[^{}'"@/]|||)*\}/.source,2),d=i(/<(?:[^<>'"@/]|||)*>/.source,2),f=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,p=/(?!\d)[^\s>\/=$<%]+/.source+f+/\s*\/?>/.source,g=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+f+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+p+"|"+i(/<\1/.source+f+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+p+"|")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/|\+|~|\|\|/,punctuation:/[(),]/}},n.languages.css.atrule.inside["selector-function-argument"].inside=a,n.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var o={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},i={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};n.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:o,number:i,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:o,number:i})})(t)}return Bx}var zx,j6;function Q6e(){if(j6)return zx;j6=1,zx=e,e.displayName="csv",e.aliases=[];function e(t){t.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}return zx}var Hx,B6;function J6e(){if(B6)return Hx;B6=1,Hx=e,e.displayName="cypher",e.aliases=[];function e(t){t.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}return Hx}var Ux,z6;function e8e(){if(z6)return Ux;z6=1,Ux=e,e.displayName="d",e.aliases=[];function e(t){t.languages.d=t.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),t.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),t.languages.insertBefore("d","keyword",{property:/\B@\w*/}),t.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}return Ux}var Vx,H6;function t8e(){if(H6)return Vx;H6=1,Vx=e,e.displayName="dart",e.aliases=[];function e(t){(function(n){var r=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],a=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,o={pattern:RegExp(a+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};n.languages.dart=n.languages.extend("clike",{"class-name":[o,{pattern:RegExp(a+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:o.inside}],keyword:r,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),n.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.dart}}},string:/[\s\S]+/}},string:void 0}),n.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),n.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":o,keyword:r,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(t)}return Vx}var Wx,U6;function n8e(){if(U6)return Wx;U6=1,Wx=e,e.displayName="dataweave",e.aliases=[];function e(t){(function(n){n.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(t)}return Wx}var Gx,V6;function r8e(){if(V6)return Gx;V6=1,Gx=e,e.displayName="dax",e.aliases=[];function e(t){t.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}return Gx}var qx,W6;function a8e(){if(W6)return qx;W6=1,qx=e,e.displayName="dhall",e.aliases=[];function e(t){t.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},t.languages.dhall.string.inside.interpolation.inside.expression.inside=t.languages.dhall}return qx}var Kx,G6;function o8e(){if(G6)return Kx;G6=1,Kx=e,e.displayName="diff",e.aliases=[];function e(t){(function(n){n.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var r={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(r).forEach(function(a){var o=r[a],i=[];/^\w+$/.test(a)||i.push(/\w+/.exec(a)[0]),a==="diff"&&i.push("bold"),n.languages.diff[a]={pattern:RegExp("^(?:["+o+`].*(?:\r + */var n=function(r){var a=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,o=0,i={},s={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function v(x){return x instanceof c?new c(x.type,v(x.content),x.alias):Array.isArray(x)?x.map(v):x.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(C){var v=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(C.stack)||[])[1];if(v){var x=document.getElementsByTagName("script");for(var w in x)if(x[w].src==v)return x[w]}return null}},isActive:function(v,x,w){for(var C="no-"+x;v;){var E=v.classList;if(E.contains(x))return!0;if(E.contains(C))return!1;v=v.parentElement}return!!w}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(v,x){var w=s.util.clone(s.languages[v]);for(var C in x)w[C]=x[C];return w},insertBefore:function(v,x,w,C){C=C||s.languages;var E=C[v],I={};for(var T in E)if(E.hasOwnProperty(T)){if(T==x)for(var R in w)w.hasOwnProperty(R)&&(I[R]=w[R]);w.hasOwnProperty(T)||(I[T]=E[T])}var _=C[v];return C[v]=I,s.languages.DFS(s.languages,function($,P){P===_&&$!=v&&(this[$]=I)}),I},DFS:function v(x,w,C,E){E=E||{};var I=s.util.objId;for(var T in x)if(x.hasOwnProperty(T)){w.call(x,T,x[T],C||T);var R=x[T],_=s.util.type(R);_==="Object"&&!E[I(R)]?(E[I(R)]=!0,v(R,w,null,E)):_==="Array"&&!E[I(R)]&&(E[I(R)]=!0,v(R,w,T,E))}}},plugins:{},highlightAll:function(v,x){s.highlightAllUnder(document,v,x)},highlightAllUnder:function(v,x,w){var C={callback:w,container:v,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",C),C.elements=Array.prototype.slice.apply(C.container.querySelectorAll(C.selector)),s.hooks.run("before-all-elements-highlight",C);for(var E=0,I;I=C.elements[E++];)s.highlightElement(I,x===!0,C.callback)},highlightElement:function(v,x,w){var C=s.util.getLanguage(v),E=s.languages[C];s.util.setLanguage(v,C);var I=v.parentElement;I&&I.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(I,C);var T=v.textContent,R={element:v,language:C,grammar:E,code:T};function _(P){R.highlightedCode=P,s.hooks.run("before-insert",R),R.element.innerHTML=R.highlightedCode,s.hooks.run("after-highlight",R),s.hooks.run("complete",R),w&&w.call(R.element)}if(s.hooks.run("before-sanity-check",R),I=R.element.parentElement,I&&I.nodeName.toLowerCase()==="pre"&&!I.hasAttribute("tabindex")&&I.setAttribute("tabindex","0"),!R.code){s.hooks.run("complete",R),w&&w.call(R.element);return}if(s.hooks.run("before-highlight",R),!R.grammar){_(s.util.encode(R.code));return}if(x&&r.Worker){var $=new Worker(s.filename);$.onmessage=function(P){_(P.data)},$.postMessage(JSON.stringify({language:R.language,code:R.code,immediateClose:!0}))}else _(s.highlight(R.code,R.grammar,R.language))},highlight:function(v,x,w){var C={code:v,grammar:x,language:w};if(s.hooks.run("before-tokenize",C),!C.grammar)throw new Error('The language "'+C.language+'" has no grammar.');return C.tokens=s.tokenize(C.code,C.grammar),s.hooks.run("after-tokenize",C),c.stringify(s.util.encode(C.tokens),C.language)},tokenize:function(v,x){var w=x.rest;if(w){for(var C in w)x[C]=w[C];delete x.rest}var E=new f;return p(E,E.head,v),d(v,E,x,E.head,0),h(E)},hooks:{all:{},add:function(v,x){var w=s.hooks.all;w[v]=w[v]||[],w[v].push(x)},run:function(v,x){var w=s.hooks.all[v];if(!(!w||!w.length))for(var C=0,E;E=w[C++];)E(x)}},Token:c};r.Prism=s;function c(v,x,w,C){this.type=v,this.content=x,this.alias=w,this.length=(C||"").length|0}c.stringify=function v(x,w){if(typeof x=="string")return x;if(Array.isArray(x)){var C="";return x.forEach(function(_){C+=v(_,w)}),C}var E={type:x.type,content:v(x.content,w),tag:"span",classes:["token",x.type],attributes:{},language:w},I=x.alias;I&&(Array.isArray(I)?Array.prototype.push.apply(E.classes,I):E.classes.push(I)),s.hooks.run("wrap",E);var T="";for(var R in E.attributes)T+=" "+R+'="'+(E.attributes[R]||"").replace(/"/g,""")+'"';return"<"+E.tag+' class="'+E.classes.join(" ")+'"'+T+">"+E.content+""};function u(v,x,w,C){v.lastIndex=x;var E=v.exec(w);if(E&&C&&E[1]){var I=E[1].length;E.index+=I,E[0]=E[0].slice(I)}return E}function d(v,x,w,C,E,I){for(var T in w)if(!(!w.hasOwnProperty(T)||!w[T])){var R=w[T];R=Array.isArray(R)?R:[R];for(var _=0;_=I.reach);L+=M.value.length,M=M.next){var F=M.value;if(x.length>v.length)return;if(!(F instanceof c)){var j=1,B;if(A){if(B=u(k,L,v,D),!B||B.index>=v.length)break;var te=B.index,z=B.index+B[0].length,H=L;for(H+=M.value.length;te>=H;)M=M.next,H+=M.value.length;if(H-=M.value.length,L=H,M.value instanceof c)continue;for(var V=M;V!==x.tail&&(HI.reach&&(I.reach=U);var q=M.prev;J&&(q=p(x,q,J),L+=J.length),g(x,q,j);var X=new c(T,P?s.tokenize(Y,P):Y,O,Y);if(M=p(x,q,X),G&&p(x,M,G),j>1){var Q={cause:T+","+_,reach:U};d(v,x,w,M.prev,L,Q),I&&Q.reach>I.reach&&(I.reach=Q.reach)}}}}}}function f(){var v={value:null,prev:null,next:null},x={value:null,prev:v,next:null};v.next=x,this.head=v,this.tail=x,this.length=0}function p(v,x,w){var C=x.next,E={value:w,prev:x,next:C};return x.next=E,C.prev=E,v.length++,E}function g(v,x,w){for(var C=x.next,E=0;E/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.value.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,r){var a={};a["language-"+r]={pattern:/(^$)/i,lookbehind:!0,inside:e.languages[r]},a.cdata=/^$/i;var o={"included-cdata":{pattern://i,inside:a}};o["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var i={};i[n]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:o},e.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}var BLe=XN;XN.displayName="css";XN.aliases=[];function XN(e){(function(t){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var r=t.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))})(e)}var zLe=ZN;ZN.displayName="clike";ZN.aliases=[];function ZN(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}var HLe=QN;QN.displayName="javascript";QN.aliases=["js"];function QN(e){e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}var rp=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof xa=="object"?xa:{},ULe=o6e();rp.Prism={manual:!0,disableWorkerMessageHandler:!0};var VLe=oPe,WLe=xLe,eX=FLe,GLe=jLe,qLe=BLe,KLe=zLe,YLe=HLe;ULe();var JN={}.hasOwnProperty;function tX(){}tX.prototype=eX;var Nr=new tX,XLe=Nr;Nr.highlight=QLe;Nr.register=Im;Nr.alias=ZLe;Nr.registered=JLe;Nr.listLanguages=e6e;Im(GLe);Im(qLe);Im(KLe);Im(YLe);Nr.util.encode=r6e;Nr.Token.stringify=t6e;function Im(e){if(typeof e!="function"||!e.displayName)throw new Error("Expected `function` for `grammar`, got `"+e+"`");Nr.languages[e.displayName]===void 0&&e(Nr)}function ZLe(e,t){var n=Nr.languages,r=e,a,o,i,s;t&&(r={},r[e]=t);for(a in r)for(o=r[a],o=typeof o=="string"?[o]:o,i=o.length,s=-1;++s code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}};var V1,zL;function s6e(){if(zL)return V1;zL=1,V1=e,e.displayName="abap",e.aliases=[];function e(t){t.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:SCIENTIFIC_WITH_LEADING_ZERO|SCALE_PRESERVING_SCIENTIFIC|RMC_COMMUNICATION_FAILURE|END-ENHANCEMENT-SECTION|MULTIPLY-CORRESPONDING|SUBTRACT-CORRESPONDING|VERIFICATION-MESSAGE|DIVIDE-CORRESPONDING|ENHANCEMENT-SECTION|CURRENCY_CONVERSION|RMC_SYSTEM_FAILURE|START-OF-SELECTION|MOVE-CORRESPONDING|RMC_INVALID_STATUS|CUSTOMER-FUNCTION|END-OF-DEFINITION|ENHANCEMENT-POINT|SYSTEM-EXCEPTIONS|ADD-CORRESPONDING|SCALE_PRESERVING|SELECTION-SCREEN|CURSOR-SELECTION|END-OF-SELECTION|LOAD-OF-PROGRAM|SCROLL-BOUNDARY|SELECTION-TABLE|EXCEPTION-TABLE|IMPLEMENTATIONS|PARAMETER-TABLE|RIGHT-JUSTIFIED|UNIT_CONVERSION|AUTHORITY-CHECK|LIST-PROCESSING|SIGN_AS_POSTFIX|COL_BACKGROUND|IMPLEMENTATION|INTERFACE-POOL|TRANSFORMATION|IDENTIFICATION|ENDENHANCEMENT|LINE-SELECTION|INITIALIZATION|LEFT-JUSTIFIED|SELECT-OPTIONS|SELECTION-SETS|COMMUNICATION|CORRESPONDING|DECIMAL_SHIFT|PRINT-CONTROL|VALUE-REQUEST|CHAIN-REQUEST|FUNCTION-POOL|FIELD-SYMBOLS|FUNCTIONALITY|INVERTED-DATE|SELECTION-SET|CLASS-METHODS|OUTPUT-LENGTH|CLASS-CODING|COL_NEGATIVE|ERRORMESSAGE|FIELD-GROUPS|HELP-REQUEST|NO-EXTENSION|NO-TOPOFPAGE|REDEFINITION|DISPLAY-MODE|ENDINTERFACE|EXIT-COMMAND|FIELD-SYMBOL|NO-SCROLLING|SHORTDUMP-ID|ACCESSPOLICY|CLASS-EVENTS|COL_POSITIVE|DECLARATIONS|ENHANCEMENTS|FILTER-TABLE|SWITCHSTATES|SYNTAX-CHECK|TRANSPORTING|ASYNCHRONOUS|SYNTAX-TRACE|TOKENIZATION|USER-COMMAND|WITH-HEADING|ABAP-SOURCE|BREAK-POINT|CHAIN-INPUT|COMPRESSION|FIXED-POINT|NEW-SECTION|NON-UNICODE|OCCURRENCES|RESPONSIBLE|SYSTEM-CALL|TRACE-TABLE|ABBREVIATED|CHAR-TO-HEX|END-OF-FILE|ENDFUNCTION|ENVIRONMENT|ASSOCIATION|COL_HEADING|EDITOR-CALL|END-OF-PAGE|ENGINEERING|IMPLEMENTED|INTENSIFIED|RADIOBUTTON|SYSTEM-EXIT|TOP-OF-PAGE|TRANSACTION|APPLICATION|CONCATENATE|DESTINATION|ENHANCEMENT|IMMEDIATELY|NO-GROUPING|PRECOMPILED|REPLACEMENT|TITLE-LINES|ACTIVATION|BYTE-ORDER|CLASS-POOL|CONNECTION|CONVERSION|DEFINITION|DEPARTMENT|EXPIRATION|INHERITING|MESSAGE-ID|NO-HEADING|PERFORMING|QUEUE-ONLY|RIGHTSPACE|SCIENTIFIC|STATUSINFO|STRUCTURES|SYNCPOINTS|WITH-TITLE|ATTRIBUTES|BOUNDARIES|CLASS-DATA|COL_NORMAL|DD\/MM\/YYYY|DESCENDING|INTERFACES|LINE-COUNT|MM\/DD\/YYYY|NON-UNIQUE|PRESERVING|SELECTIONS|STATEMENTS|SUBROUTINE|TRUNCATION|TYPE-POOLS|ARITHMETIC|BACKGROUND|ENDPROVIDE|EXCEPTIONS|IDENTIFIER|INDEX-LINE|OBLIGATORY|PARAMETERS|PERCENTAGE|PUSHBUTTON|RESOLUTION|COMPONENTS|DEALLOCATE|DISCONNECT|DUPLICATES|FIRST-LINE|HEAD-LINES|NO-DISPLAY|OCCURRENCE|RESPECTING|RETURNCODE|SUBMATCHES|TRACE-FILE|ASCENDING|BYPASSING|ENDMODULE|EXCEPTION|EXCLUDING|EXPORTING|INCREMENT|MATCHCODE|PARAMETER|PARTIALLY|PREFERRED|REFERENCE|REPLACING|RETURNING|SELECTION|SEPARATED|SPECIFIED|STATEMENT|TIMESTAMP|TYPE-POOL|ACCEPTING|APPENDAGE|ASSIGNING|COL_GROUP|COMPARING|CONSTANTS|DANGEROUS|IMPORTING|INSTANCES|LEFTSPACE|LOG-POINT|QUICKINFO|READ-ONLY|SCROLLING|SQLSCRIPT|STEP-LOOP|TOP-LINES|TRANSLATE|APPENDING|AUTHORITY|CHARACTER|COMPONENT|CONDITION|DIRECTORY|DUPLICATE|MESSAGING|RECEIVING|SUBSCREEN|ACCORDING|COL_TOTAL|END-LINES|ENDMETHOD|ENDSELECT|EXPANDING|EXTENSION|INCLUDING|INFOTYPES|INTERFACE|INTERVALS|LINE-SIZE|PF-STATUS|PROCEDURE|PROTECTED|REQUESTED|RESUMABLE|RIGHTPLUS|SAP-SPOOL|SECONDARY|STRUCTURE|SUBSTRING|TABLEVIEW|NUMOFCHAR|ADJACENT|ANALYSIS|ASSIGNED|BACKWARD|CHANNELS|CHECKBOX|CONTINUE|CRITICAL|DATAINFO|DD\/MM\/YY|DURATION|ENCODING|ENDCLASS|FUNCTION|LEFTPLUS|LINEFEED|MM\/DD\/YY|OVERFLOW|RECEIVED|SKIPPING|SORTABLE|STANDARD|SUBTRACT|SUPPRESS|TABSTRIP|TITLEBAR|TRUNCATE|UNASSIGN|WHENEVER|ANALYZER|COALESCE|COMMENTS|CONDENSE|DECIMALS|DEFERRED|ENDWHILE|EXPLICIT|KEYWORDS|MESSAGES|POSITION|PRIORITY|RECEIVER|RENAMING|TIMEZONE|TRAILING|ALLOCATE|CENTERED|CIRCULAR|CONTROLS|CURRENCY|DELETING|DESCRIBE|DISTANCE|ENDCATCH|EXPONENT|EXTENDED|GENERATE|IGNORING|INCLUDES|INTERNAL|MAJOR-ID|MODIFIER|NEW-LINE|OPTIONAL|PROPERTY|ROLLBACK|STARTING|SUPPLIED|ABSTRACT|CHANGING|CONTEXTS|CREATING|CUSTOMER|DATABASE|DAYLIGHT|DEFINING|DISTINCT|DIVISION|ENABLING|ENDCHAIN|ESCAPING|HARMLESS|IMPLICIT|INACTIVE|LANGUAGE|MINOR-ID|MULTIPLY|NEW-PAGE|NO-TITLE|POS_HIGH|SEPARATE|TEXTPOOL|TRANSFER|SELECTOR|DBMAXLEN|ITERATOR|ARCHIVE|BIT-XOR|BYTE-CO|COLLECT|COMMENT|CURRENT|DEFAULT|DISPLAY|ENDFORM|EXTRACT|LEADING|LISTBOX|LOCATOR|MEMBERS|METHODS|NESTING|POS_LOW|PROCESS|PROVIDE|RAISING|RESERVE|SECONDS|SUMMARY|VISIBLE|BETWEEN|BIT-AND|BYTE-CS|CLEANUP|COMPUTE|CONTROL|CONVERT|DATASET|ENDCASE|FORWARD|HEADERS|HOTSPOT|INCLUDE|INVERSE|KEEPING|NO-ZERO|OBJECTS|OVERLAY|PADDING|PATTERN|PROGRAM|REFRESH|SECTION|SUMMING|TESTING|VERSION|WINDOWS|WITHOUT|BIT-NOT|BYTE-CA|BYTE-NA|CASTING|CONTEXT|COUNTRY|DYNAMIC|ENABLED|ENDLOOP|EXECUTE|FRIENDS|HANDLER|HEADING|INITIAL|\*-INPUT|LOGFILE|MAXIMUM|MINIMUM|NO-GAPS|NO-SIGN|PRAGMAS|PRIMARY|PRIVATE|REDUCED|REPLACE|REQUEST|RESULTS|UNICODE|WARNING|ALIASES|BYTE-CN|BYTE-NS|CALLING|COL_KEY|COLUMNS|CONNECT|ENDEXEC|ENTRIES|EXCLUDE|FILTERS|FURTHER|HELP-ID|LOGICAL|MAPPING|MESSAGE|NAMETAB|OPTIONS|PACKAGE|PERFORM|RECEIVE|STATICS|VARYING|BINDING|CHARLEN|GREATER|XSTRLEN|ACCEPT|APPEND|DETAIL|ELSEIF|ENDING|ENDTRY|FORMAT|FRAMES|GIVING|HASHED|HEADER|IMPORT|INSERT|MARGIN|MODULE|NATIVE|OBJECT|OFFSET|REMOTE|RESUME|SAVING|SIMPLE|SUBMIT|TABBED|TOKENS|UNIQUE|UNPACK|UPDATE|WINDOW|YELLOW|ACTUAL|ASPECT|CENTER|CURSOR|DELETE|DIALOG|DIVIDE|DURING|ERRORS|EVENTS|EXTEND|FILTER|HANDLE|HAVING|IGNORE|LITTLE|MEMORY|NO-GAP|OCCURS|OPTION|PERSON|PLACES|PUBLIC|REDUCE|REPORT|RESULT|SINGLE|SORTED|SWITCH|SYNTAX|TARGET|VALUES|WRITER|ASSERT|BLOCKS|BOUNDS|BUFFER|CHANGE|COLUMN|COMMIT|CONCAT|COPIES|CREATE|DDMMYY|DEFINE|ENDIAN|ESCAPE|EXPAND|KERNEL|LAYOUT|LEGACY|LEVELS|MMDDYY|NUMBER|OUTPUT|RANGES|READER|RETURN|SCREEN|SEARCH|SELECT|SHARED|SOURCE|STABLE|STATIC|SUBKEY|SUFFIX|TABLES|UNWIND|YYMMDD|ASSIGN|BACKUP|BEFORE|BINARY|BIT-OR|BLANKS|CLIENT|CODING|COMMON|DEMAND|DYNPRO|EXCEPT|EXISTS|EXPORT|FIELDS|GLOBAL|GROUPS|LENGTH|LOCALE|MEDIUM|METHOD|MODIFY|NESTED|OTHERS|REJECT|SCROLL|SUPPLY|SYMBOL|ENDFOR|STRLEN|ALIGN|BEGIN|BOUND|ENDAT|ENTRY|EVENT|FINAL|FLUSH|GRANT|INNER|SHORT|USING|WRITE|AFTER|BLACK|BLOCK|CLOCK|COLOR|COUNT|DUMMY|EMPTY|ENDDO|ENDON|GREEN|INDEX|INOUT|LEAVE|LEVEL|LINES|MODIF|ORDER|OUTER|RANGE|RESET|RETRY|RIGHT|SMART|SPLIT|STYLE|TABLE|THROW|UNDER|UNTIL|UPPER|UTF-8|WHERE|ALIAS|BLANK|CLEAR|CLOSE|EXACT|FETCH|FIRST|FOUND|GROUP|LLANG|LOCAL|OTHER|REGEX|SPOOL|TITLE|TYPES|VALID|WHILE|ALPHA|BOXED|CATCH|CHAIN|CHECK|CLASS|COVER|ENDIF|EQUIV|FIELD|FLOOR|FRAME|INPUT|LOWER|MATCH|NODES|PAGES|PRINT|RAISE|ROUND|SHIFT|SPACE|SPOTS|STAMP|STATE|TASKS|TIMES|TRMAC|ULINE|UNION|VALUE|WIDTH|EQUAL|LOG10|TRUNC|BLOB|CASE|CEIL|CLOB|COND|EXIT|FILE|GAPS|HOLD|INCL|INTO|KEEP|KEYS|LAST|LINE|LONG|LPAD|MAIL|MODE|OPEN|PINK|READ|ROWS|TEST|THEN|ZERO|AREA|BACK|BADI|BYTE|CAST|EDIT|EXEC|FAIL|FIND|FKEQ|FONT|FREE|GKEQ|HIDE|INIT|ITNO|LATE|LOOP|MAIN|MARK|MOVE|NEXT|NULL|RISK|ROLE|UNIT|WAIT|ZONE|BASE|CALL|CODE|DATA|DATE|FKGE|GKGE|HIGH|KIND|LEFT|LIST|MASK|MESH|NAME|NODE|PACK|PAGE|POOL|SEND|SIGN|SIZE|SOME|STOP|TASK|TEXT|TIME|USER|VARY|WITH|WORD|BLUE|CONV|COPY|DEEP|ELSE|FORM|FROM|HINT|ICON|JOIN|LIKE|LOAD|ONLY|PART|SCAN|SKIP|SORT|TYPE|UNIX|VIEW|WHEN|WORK|ACOS|ASIN|ATAN|COSH|EACH|FRAC|LESS|RTTI|SINH|SQRT|TANH|AVG|BIT|DIV|ISO|LET|OUT|PAD|SQL|ALL|CI_|CPI|END|LOB|LPI|MAX|MIN|NEW|OLE|RUN|SET|\?TO|YES|ABS|ADD|AND|BIG|FOR|HDB|JOB|LOW|NOT|SAP|TRY|VIA|XML|ANY|GET|IDS|KEY|MOD|OFF|PUT|RAW|RED|REF|SUM|TAB|XSD|CNT|COS|EXP|LOG|SIN|TAN|XOR|AT|CO|CP|DO|GT|ID|IF|NS|OR|BT|CA|CS|GE|NA|NB|EQ|IN|LT|NE|NO|OF|ON|PF|TO|AS|BY|CN|IS|LE|NP|UP|E|I|M|O|Z|C|X)\b/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}return V1}var W1,HL;function l6e(){if(HL)return W1;HL=1,W1=e,e.displayName="abnf",e.aliases=[];function e(t){(function(n){var r="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";n.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+r+"|<"+r+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(t)}return W1}var G1,UL;function c6e(){if(UL)return G1;UL=1,G1=e,e.displayName="actionscript",e.aliases=[];function e(t){t.languages.actionscript=t.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<>?>?|[!=]=?)=?|[~?@]/}),t.languages.actionscript["class-name"].alias="function",delete t.languages.actionscript.parameter,delete t.languages.actionscript["literal-property"],t.languages.markup&&t.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:t.languages.markup}})}return G1}var q1,VL;function u6e(){if(VL)return q1;VL=1,q1=e,e.displayName="ada",e.aliases=[];function e(t){t.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],"attr-name":/\b'\w+/,keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}return q1}var K1,WL;function d6e(){if(WL)return K1;WL=1,K1=e,e.displayName="agda",e.aliases=[];function e(t){(function(n){n.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(t)}return K1}var Y1,GL;function f6e(){if(GL)return Y1;GL=1,Y1=e,e.displayName="al",e.aliases=[];function e(t){t.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}return Y1}var X1,qL;function p6e(){if(qL)return X1;qL=1,X1=e,e.displayName="antlr4",e.aliases=["g4"];function e(t){t.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},t.languages.g4=t.languages.antlr4}return X1}var Z1,KL;function g6e(){if(KL)return Z1;KL=1,Z1=e,e.displayName="apacheconf",e.aliases=[];function e(t){t.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}return Z1}var Q1,YL;function ek(){if(YL)return Q1;YL=1,Q1=e,e.displayName="sql",e.aliases=[];function e(t){t.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}return Q1}var J1,XL;function m6e(){if(XL)return J1;XL=1;var e=ek();J1=t,t.displayName="apex",t.aliases=[];function t(n){n.register(e),function(r){var a=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,o=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(//g,function(){return a.source});function i(c){return RegExp(c.replace(//g,function(){return o}),"i")}var s={keyword:a,punctuation:/[()\[\]{};,:.<>]/};r.languages.apex={comment:r.languages.clike.comment,string:r.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:r.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:i(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)/.source),lookbehind:!0,inside:s},{pattern:i(/(\(\s*)(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:s},{pattern:i(/(?=\s*\w+\s*[;=,(){:])/.source),inside:s}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:a,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(n)}return J1}var ex,ZL;function h6e(){if(ZL)return ex;ZL=1,ex=e,e.displayName="apl",e.aliases=[];function e(t){t.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}return ex}var tx,QL;function v6e(){if(QL)return tx;QL=1,tx=e,e.displayName="applescript",e.aliases=[];function e(t){t.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}return tx}var nx,JL;function b6e(){if(JL)return nx;JL=1,nx=e,e.displayName="aql",e.aliases=[];function e(t){t.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}return nx}var rx,e6;function Kc(){if(e6)return rx;e6=1,rx=e,e.displayName="c",e.aliases=[];function e(t){t.languages.c=t.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),t.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),t.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},t.languages.c.string],char:t.languages.c.char,comment:t.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:t.languages.c}}}}),t.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete t.languages.c.boolean}return rx}var ax,t6;function tk(){if(t6)return ax;t6=1;var e=Kc();ax=t,t.displayName="cpp",t.aliases=[];function t(n){n.register(e),function(r){var a=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,o=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return a.source});r.languages.cpp=r.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return a.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:a,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),r.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,function(){return o})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),r.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:r.languages.cpp}}}}),r.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),r.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:r.languages.extend("cpp",{})}}),r.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},r.languages.cpp["base-clause"])}(n)}return ax}var ox,n6;function y6e(){if(n6)return ox;n6=1;var e=tk();ox=t,t.displayName="arduino",t.aliases=["ino"];function t(n){n.register(e),n.languages.arduino=n.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),n.languages.ino=n.languages.arduino}return ox}var ix,r6;function S6e(){if(r6)return ix;r6=1,ix=e,e.displayName="arff",e.aliases=[];function e(t){t.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}return ix}var sx,a6;function x6e(){if(a6)return sx;a6=1,sx=e,e.displayName="asciidoc",e.aliases=["adoc"];function e(t){(function(n){var r={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},a=n.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:r,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:r.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:r,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function o(i){i=i.split(" ");for(var s={},c=0,u=i.length;c>=?|<<=?|&&?|\|\|?|[-+*/%&|^!=<>?]=?/,punctuation:/[(),:]/}}return cx}var ux,s6;function Fy(){if(s6)return ux;s6=1,ux=e,e.displayName="csharp",e.aliases=["dotnet","cs"];function e(t){(function(n){function r(j,B){return j.replace(/<<(\d+)>>/g,function(z,H){return"(?:"+B[+H]+")"})}function a(j,B,z){return RegExp(r(j,B),"")}function o(j,B){for(var z=0;z>/g,function(){return"(?:"+j+")"});return j.replace(/<>/g,"[^\\s\\S]")}var i={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function s(j){return"\\b(?:"+j.trim().replace(/ /g,"|")+")\\b"}var c=s(i.typeDeclaration),u=RegExp(s(i.type+" "+i.typeDeclaration+" "+i.contextual+" "+i.other)),d=s(i.typeDeclaration+" "+i.contextual+" "+i.other),f=s(i.type+" "+i.typeDeclaration+" "+i.other),p=o(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),g=o(/\((?:[^()]|<>)*\)/.source,2),h=/@?\b[A-Za-z_]\w*\b/.source,b=r(/<<0>>(?:\s*<<1>>)?/.source,[h,p]),y=r(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[d,b]),S=/\[\s*(?:,\s*)*\]/.source,v=r(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,S]),x=r(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,g,S]),w=r(/\(<<0>>+(?:,<<0>>+)+\)/.source,[x]),C=r(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[w,y,S]),E={keyword:u,punctuation:/[<>()?,.:[\]]/},I=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,T=/"(?:\\.|[^\\"\r\n])*"/.source,R=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;n.languages.csharp=n.languages.extend("clike",{string:[{pattern:a(/(^|[^$\\])<<0>>/.source,[R]),lookbehind:!0,greedy:!0},{pattern:a(/(^|[^@$\\])<<0>>/.source,[T]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:a(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:E},{pattern:a(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[h,C]),lookbehind:!0,inside:E},{pattern:a(/(\busing\s+)<<0>>(?=\s*=)/.source,[h]),lookbehind:!0},{pattern:a(/(\b<<0>>\s+)<<1>>/.source,[c,b]),lookbehind:!0,inside:E},{pattern:a(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:E},{pattern:a(/(\bwhere\s+)<<0>>/.source,[h]),lookbehind:!0},{pattern:a(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[v]),lookbehind:!0,inside:E},{pattern:a(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[C,f,h]),inside:E}],keyword:u,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),n.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),n.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:a(/([(,]\s*)<<0>>(?=\s*:)/.source,[h]),lookbehind:!0,alias:"punctuation"}}),n.languages.insertBefore("csharp","class-name",{namespace:{pattern:a(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[h]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:a(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[g]),lookbehind:!0,alias:"class-name",inside:E},"return-type":{pattern:a(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[C,y]),inside:E,alias:"class-name"},"constructor-invocation":{pattern:a(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[C]),lookbehind:!0,inside:E,alias:"class-name"},"generic-method":{pattern:a(/<<0>>\s*<<1>>(?=\s*\()/.source,[h,p]),inside:{function:a(/^<<0>>/.source,[h]),generic:{pattern:RegExp(p),alias:"class-name",inside:E}}},"type-list":{pattern:a(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[c,b,h,C,u.source,g,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:a(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[b,g]),lookbehind:!0,greedy:!0,inside:n.languages.csharp},keyword:u,"class-name":{pattern:RegExp(C),greedy:!0,inside:E},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var _=T+"|"+I,$=r(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[_]),P=o(r(/[^"'/()]|<<0>>|\(<>*\)/.source,[$]),2),D=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,A=r(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,P]);n.languages.insertBefore("csharp","class-name",{attribute:{pattern:a(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[D,A]),lookbehind:!0,greedy:!0,inside:{target:{pattern:a(/^<<0>>(?=\s*:)/.source,[D]),alias:"keyword"},"attribute-arguments":{pattern:a(/\(<<0>>*\)/.source,[P]),inside:n.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var O=/:[^}\r\n]+/.source,N=o(r(/[^"'/()]|<<0>>|\(<>*\)/.source,[$]),2),k=r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[N,O]),M=o(r(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[_]),2),L=r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[M,O]);function F(j,B){return{interpolation:{pattern:a(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[j]),lookbehind:!0,inside:{"format-string":{pattern:a(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[B,O]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:n.languages.csharp}}},string:/[\s\S]+/}}n.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:a(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[k]),lookbehind:!0,greedy:!0,inside:F(k,N)},{pattern:a(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[L]),lookbehind:!0,greedy:!0,inside:F(L,M)}],char:{pattern:RegExp(I),greedy:!0}}),n.languages.dotnet=n.languages.cs=n.languages.csharp})(t)}return ux}var dx,l6;function E6e(){if(l6)return dx;l6=1;var e=Fy();dx=t,t.displayName="aspnet",t.aliases=[];function t(n){n.register(e),n.languages.aspnet=n.languages.extend("markup",{"page-directive":{pattern:/<%\s*@.*%>/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:n.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:n.languages.csharp}}}),n.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,n.languages.insertBefore("inside","punctuation",{directive:n.languages.aspnet.directive},n.languages.aspnet.tag.inside["attr-value"]),n.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),n.languages.insertBefore("aspnet",n.languages.javascript?"script":"tag",{"asp-script":{pattern:/(]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:n.languages.csharp||{}}})}return dx}var fx,c6;function I6e(){if(c6)return fx;c6=1,fx=e,e.displayName="autohotkey",e.aliases=[];function e(t){t.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,selector:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,important:/#\b(?:AllowSameLineComments|ClipboardTimeout|CommentFlag|DerefChar|ErrorStdOut|EscapeChar|HotkeyInterval|HotkeyModifierTimeout|Hotstring|If|IfTimeout|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Include|IncludeAgain|InputLevel|InstallKeybdHook|InstallMouseHook|KeyHistory|MaxHotkeysPerInterval|MaxMem|MaxThreads|MaxThreadsBuffer|MaxThreadsPerHotkey|MenuMaskKey|NoEnv|NoTrayIcon|Persistent|SingleInstance|UseHook|Warn|WinActivateForce)\b/i,keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}return fx}var px,u6;function T6e(){if(u6)return px;u6=1,px=e,e.displayName="autoit",e.aliases=[];function e(t){t.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}return px}var gx,d6;function R6e(){if(d6)return gx;d6=1,gx=e,e.displayName="avisynth",e.aliases=["avs"];function e(t){(function(n){function r(d,f){return d.replace(/<<(\d+)>>/g,function(p,g){return f[+g]})}function a(d,f,p){return RegExp(r(d,f),p)}var o=/bool|clip|float|int|string|val/.source,i=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),s=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),c=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),u=[i,s,c].join("|");n.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:a(/\b(?:<<0>>)\s+("?)\w+\1/.source,[o],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:a(/\b(?:<<0>>)\b/.source,[u],"i"),alias:"function"},"type-cast":{pattern:a(/\b(?:<<0>>)(?=\s*\()/.source,[o],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},n.languages.avs=n.languages.avisynth})(t)}return gx}var mx,f6;function _6e(){if(f6)return mx;f6=1,mx=e,e.displayName="avroIdl",e.aliases=[];function e(t){t.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},t.languages.avdl=t.languages["avro-idl"]}return mx}var hx,p6;function nX(){if(p6)return hx;p6=1,hx=e,e.displayName="bash",e.aliases=["shell"];function e(t){(function(n){var r="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",a={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},o={bash:a,environment:{pattern:RegExp("\\$"+r),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+r),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};n.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+r),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:o},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:a}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:o},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:o.entity}}],environment:{pattern:RegExp("\\$?"+r),alias:"constant"},variable:o.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},a.inside=n.languages.bash;for(var i=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],s=o.variable[1].inside,c=0;c?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}return vx}var bx,m6;function $6e(){if(m6)return bx;m6=1,bx=e,e.displayName="batch",e.aliases=[];function e(t){(function(n){var r=/%%?[~:\w]+%?|!\S+!/,a={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},o=/"(?:[\\"]"|[^"])*"(?!")/,i=/(?:\b|-)\d+\b/;n.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:o,parameter:a,variable:r,number:i,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:o,parameter:a,variable:r,number:i,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:o,parameter:a,variable:[r,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:i,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:o,parameter:a,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:r,number:i,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(t)}return bx}var yx,h6;function O6e(){if(h6)return yx;h6=1,yx=e,e.displayName="bbcode",e.aliases=["shortcode"];function e(t){t.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},t.languages.shortcode=t.languages.bbcode}return yx}var Sx,v6;function N6e(){if(v6)return Sx;v6=1,Sx=e,e.displayName="bicep",e.aliases=[];function e(t){t.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},t.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=t.languages.bicep}return Sx}var xx,b6;function k6e(){if(b6)return xx;b6=1,xx=e,e.displayName="birb",e.aliases=[];function e(t){t.languages.birb=t.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),t.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}return xx}var wx,y6;function A6e(){if(y6)return wx;y6=1;var e=Kc();wx=t,t.displayName="bison",t.aliases=[];function t(n){n.register(e),n.languages.bison=n.languages.extend("c",{}),n.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:n.languages.c}},comment:n.languages.c.comment,string:n.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}return wx}var Cx,S6;function M6e(){if(S6)return Cx;S6=1,Cx=e,e.displayName="bnf",e.aliases=["rbnf"];function e(t){t.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},t.languages.rbnf=t.languages.bnf}return Cx}var Ex,x6;function P6e(){if(x6)return Ex;x6=1,Ex=e,e.displayName="brainfuck",e.aliases=[];function e(t){t.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}return Ex}var Ix,w6;function D6e(){if(w6)return Ix;w6=1,Ix=e,e.displayName="brightscript",e.aliases=[];function e(t){t.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},t.languages.brightscript["directive-statement"].inside.expression.inside=t.languages.brightscript}return Ix}var Tx,C6;function L6e(){if(C6)return Tx;C6=1,Tx=e,e.displayName="bro",e.aliases=[];function e(t){t.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}return Tx}var Rx,E6;function F6e(){if(E6)return Rx;E6=1,Rx=e,e.displayName="bsl",e.aliases=[];function e(t){t.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},t.languages.oscript=t.languages.bsl}return Rx}var _x,I6;function j6e(){if(I6)return _x;I6=1,_x=e,e.displayName="cfscript",e.aliases=[];function e(t){t.languages.cfscript=t.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|<=?|>=?|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|[?:]/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),t.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete t.languages.cfscript["class-name"],t.languages.cfc=t.languages.cfscript}return _x}var $x,T6;function B6e(){if(T6)return $x;T6=1;var e=tk();$x=t,t.displayName="chaiscript",t.aliases=[];function t(n){n.register(e),n.languages.chaiscript=n.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[n.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),n.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),n.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:n.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}return $x}var Ox,R6;function z6e(){if(R6)return Ox;R6=1,Ox=e,e.displayName="cil",e.aliases=[];function e(t){t.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}return Ox}var Nx,_6;function H6e(){if(_6)return Nx;_6=1,Nx=e,e.displayName="clojure",e.aliases=[];function e(t){t.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}return Nx}var kx,$6;function U6e(){if($6)return kx;$6=1,kx=e,e.displayName="cmake",e.aliases=[];function e(t){t.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_(?:BINARY_DIR|DESCRIPTION|HOMEPAGE_URL|NAME|SOURCE_DIR|VERSION|VERSION_(?:MAJOR|MINOR|PATCH|TWEAK))|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE|XCODE_VERSION))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|GLOBAL_KEYWORD|GLOBAL_PROJECT_TYPES|GLOBAL_ROOTNAMESPACE|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}return kx}var Ax,O6;function V6e(){if(O6)return Ax;O6=1,Ax=e,e.displayName="cobol",e.aliases=[];function e(t){t.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}return Ax}var Mx,N6;function W6e(){if(N6)return Mx;N6=1,Mx=e,e.displayName="coffeescript",e.aliases=["coffee"];function e(t){(function(n){var r=/#(?!\{).+/,a={pattern:/#\{[^}]+\}/,alias:"variable"};n.languages.coffeescript=n.languages.extend("javascript",{comment:r,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:a}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),n.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:r,interpolation:a}}}),n.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:n.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:a}}]}),n.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete n.languages.coffeescript["template-string"],n.languages.coffee=n.languages.coffeescript})(t)}return Mx}var Px,k6;function G6e(){if(k6)return Px;k6=1,Px=e,e.displayName="concurnas",e.aliases=["conc"];function e(t){t.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},t.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:t.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:t.languages.concurnas},string:/[\s\S]+/}}}),t.languages.conc=t.languages.concurnas}return Px}var Dx,A6;function q6e(){if(A6)return Dx;A6=1,Dx=e,e.displayName="coq",e.aliases=[];function e(t){(function(n){for(var r=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|)*\*\)/.source,a=0;a<2;a++)r=r.replace(//g,function(){return r});r=r.replace(//g,"[]"),n.languages.coq={comment:RegExp(r),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|)*\]/.source.replace(//g,function(){return r})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(r),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(t)}return Dx}var Lx,M6;function jy(){if(M6)return Lx;M6=1,Lx=e,e.displayName="ruby",e.aliases=["rb"];function e(t){(function(n){n.languages.ruby=n.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),n.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var r={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:n.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete n.languages.ruby.function;var a="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",o=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;n.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+a+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:r,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:r,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+o),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+o+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),n.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+a),greedy:!0,inside:{interpolation:r,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:r,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:r,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+a),greedy:!0,inside:{interpolation:r,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:r,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete n.languages.ruby.string,n.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),n.languages.rb=n.languages.ruby})(t)}return Lx}var Fx,P6;function K6e(){if(P6)return Fx;P6=1;var e=jy();Fx=t,t.displayName="crystal",t.aliases=[];function t(n){n.register(e),function(r){r.languages.crystal=r.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,r.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),r.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:r.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:r.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}(n)}return Fx}var jx,D6;function Y6e(){if(D6)return jx;D6=1;var e=Fy();jx=t,t.displayName="cshtml",t.aliases=["razor"];function t(n){n.register(e),function(r){var a=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,o=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function i(y,S){for(var v=0;v/g,function(){return"(?:"+y+")"});return y.replace(//g,"[^\\s\\S]").replace(//g,"(?:"+o+")").replace(//g,"(?:"+a+")")}var s=i(/\((?:[^()'"@/]|||)*\)/.source,2),c=i(/\[(?:[^\[\]'"@/]|||)*\]/.source,2),u=i(/\{(?:[^{}'"@/]|||)*\}/.source,2),d=i(/<(?:[^<>'"@/]|||)*>/.source,2),f=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,p=/(?!\d)[^\s>\/=$<%]+/.source+f+/\s*\/?>/.source,g=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+f+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+p+"|"+i(/<\1/.source+f+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+p+"|")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/|\+|~|\|\|/,punctuation:/[(),]/}},n.languages.css.atrule.inside["selector-function-argument"].inside=a,n.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var o={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},i={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};n.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:o,number:i,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:o,number:i})})(t)}return zx}var Hx,j6;function Q6e(){if(j6)return Hx;j6=1,Hx=e,e.displayName="csv",e.aliases=[];function e(t){t.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}return Hx}var Ux,B6;function J6e(){if(B6)return Ux;B6=1,Ux=e,e.displayName="cypher",e.aliases=[];function e(t){t.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}return Ux}var Vx,z6;function e8e(){if(z6)return Vx;z6=1,Vx=e,e.displayName="d",e.aliases=[];function e(t){t.languages.d=t.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),t.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),t.languages.insertBefore("d","keyword",{property:/\B@\w*/}),t.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}return Vx}var Wx,H6;function t8e(){if(H6)return Wx;H6=1,Wx=e,e.displayName="dart",e.aliases=[];function e(t){(function(n){var r=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],a=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,o={pattern:RegExp(a+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};n.languages.dart=n.languages.extend("clike",{"class-name":[o,{pattern:RegExp(a+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:o.inside}],keyword:r,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),n.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.dart}}},string:/[\s\S]+/}},string:void 0}),n.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),n.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":o,keyword:r,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(t)}return Wx}var Gx,U6;function n8e(){if(U6)return Gx;U6=1,Gx=e,e.displayName="dataweave",e.aliases=[];function e(t){(function(n){n.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(t)}return Gx}var qx,V6;function r8e(){if(V6)return qx;V6=1,qx=e,e.displayName="dax",e.aliases=[];function e(t){t.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}return qx}var Kx,W6;function a8e(){if(W6)return Kx;W6=1,Kx=e,e.displayName="dhall",e.aliases=[];function e(t){t.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},t.languages.dhall.string.inside.interpolation.inside.expression.inside=t.languages.dhall}return Kx}var Yx,G6;function o8e(){if(G6)return Yx;G6=1,Yx=e,e.displayName="diff",e.aliases=[];function e(t){(function(n){n.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var r={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(r).forEach(function(a){var o=r[a],i=[];/^\w+$/.test(a)||i.push(/\w+/.exec(a)[0]),a==="diff"&&i.push("bold"),n.languages.diff[a]={pattern:RegExp("^(?:["+o+`].*(?:\r ?| -|(?![\\s\\S])))+`,"m"),alias:i,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(a)[0]}}}}),Object.defineProperty(n.languages.diff,"PREFIXES",{value:r})})(t)}return Kx}var Yx,q6;function to(){if(q6)return Yx;q6=1,Yx=e,e.displayName="markupTemplating",e.aliases=[];function e(t){(function(n){function r(a,o){return"___"+a.toUpperCase()+o+"___"}Object.defineProperties(n.languages["markup-templating"]={},{buildPlaceholders:{value:function(a,o,i,s){if(a.language===o){var c=a.tokenStack=[];a.code=a.code.replace(i,function(u){if(typeof s=="function"&&!s(u))return u;for(var d=c.length,f;a.code.indexOf(f=r(o,d))!==-1;)++d;return c[d]=u,f}),a.grammar=n.languages.markup}}},tokenizePlaceholders:{value:function(a,o){if(a.language!==o||!a.tokenStack)return;a.grammar=n.languages[o];var i=0,s=Object.keys(a.tokenStack);function c(u){for(var d=0;d=s.length);d++){var f=u[d];if(typeof f=="string"||f.content&&typeof f.content=="string"){var p=s[i],g=a.tokenStack[p],h=typeof f=="string"?f:f.content,b=r(o,p),y=h.indexOf(b);if(y>-1){++i;var S=h.substring(0,y),v=new n.Token(o,n.tokenize(g,a.grammar),"language-"+o,g),x=h.substring(y+b.length),C=[];S&&C.push.apply(C,c([S])),C.push(v),x&&C.push.apply(C,c([x])),typeof f=="string"?u.splice.apply(u,[d,1].concat(C)):f.content=C}}else f.content&&c(f.content)}return u}c(a.tokens)}}})})(t)}return Yx}var Xx,K6;function i8e(){if(K6)return Xx;K6=1;var e=to();Xx=t,t.displayName="django",t.aliases=["jinja2"];function t(n){n.register(e),function(r){r.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var a=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,o=r.languages["markup-templating"];r.hooks.add("before-tokenize",function(i){o.buildPlaceholders(i,"django",a)}),r.hooks.add("after-tokenize",function(i){o.tokenizePlaceholders(i,"django")}),r.languages.jinja2=r.languages.django,r.hooks.add("before-tokenize",function(i){o.buildPlaceholders(i,"jinja2",a)}),r.hooks.add("after-tokenize",function(i){o.tokenizePlaceholders(i,"jinja2")})}(n)}return Xx}var Zx,Y6;function s8e(){if(Y6)return Zx;Y6=1,Zx=e,e.displayName="dnsZoneFile",e.aliases=[];function e(t){t.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},t.languages["dns-zone"]=t.languages["dns-zone-file"]}return Zx}var Qx,X6;function l8e(){if(X6)return Qx;X6=1,Qx=e,e.displayName="docker",e.aliases=["dockerfile"];function e(t){(function(n){var r=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,a=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,function(){return r}),o=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,i=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,function(){return o}),s={pattern:RegExp(o),greedy:!0},c={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function u(d,f){return d=d.replace(//g,function(){return i}).replace(//g,function(){return a}),RegExp(d,f)}n.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:u(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[s,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:u(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:u(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:u(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:c,string:s,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:c},n.languages.dockerfile=n.languages.docker})(t)}return Qx}var Jx,Z6;function c8e(){if(Z6)return Jx;Z6=1,Jx=e,e.displayName="dot",e.aliases=["gv"];function e(t){(function(n){var r="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",a={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:n.languages.markup}};function o(i,s){return RegExp(i.replace(//g,function(){return r}),s)}n.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:o(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:a},"attr-value":{pattern:o(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:a},"attr-name":{pattern:o(/([\[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:a},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:o(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:a},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},n.languages.gv=n.languages.dot})(t)}return Jx}var ew,Q6;function u8e(){if(Q6)return ew;Q6=1,ew=e,e.displayName="ebnf",e.aliases=[];function e(t){t.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}return ew}var tw,J6;function d8e(){if(J6)return tw;J6=1,tw=e,e.displayName="editorconfig",e.aliases=[];function e(t){t.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}return tw}var nw,e8;function f8e(){if(e8)return nw;e8=1,nw=e,e.displayName="eiffel",e.aliases=[];function e(t){t.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}return nw}var rw,t8;function p8e(){if(t8)return rw;t8=1;var e=to();rw=t,t.displayName="ejs",t.aliases=["eta"];function t(n){n.register(e),function(r){r.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:r.languages.javascript}},r.hooks.add("before-tokenize",function(a){var o=/<%(?!%)[\s\S]+?%>/g;r.languages["markup-templating"].buildPlaceholders(a,"ejs",o)}),r.hooks.add("after-tokenize",function(a){r.languages["markup-templating"].tokenizePlaceholders(a,"ejs")}),r.languages.eta=r.languages.ejs}(n)}return rw}var aw,n8;function g8e(){if(n8)return aw;n8=1,aw=e,e.displayName="elixir",e.aliases=[];function e(t){t.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},t.languages.elixir.string.forEach(function(n){n.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:t.languages.elixir}}}})}return aw}var ow,r8;function m8e(){if(r8)return ow;r8=1,ow=e,e.displayName="elm",e.aliases=[];function e(t){t.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}return ow}var iw,a8;function h8e(){if(a8)return iw;a8=1;var e=Fy(),t=to();iw=n,n.displayName="erb",n.aliases=[];function n(r){r.register(e),r.register(t),function(a){a.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:a.languages.ruby}},a.hooks.add("before-tokenize",function(o){var i=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;a.languages["markup-templating"].buildPlaceholders(o,"erb",i)}),a.hooks.add("after-tokenize",function(o){a.languages["markup-templating"].tokenizePlaceholders(o,"erb")})}(r)}return iw}var sw,o8;function v8e(){if(o8)return sw;o8=1,sw=e,e.displayName="erlang",e.aliases=[];function e(t){t.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}return sw}var lw,i8;function aX(){if(i8)return lw;i8=1,lw=e,e.displayName="lua",e.aliases=[];function e(t){t.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}return lw}var cw,s8;function b8e(){if(s8)return cw;s8=1;var e=aX(),t=to();cw=n,n.displayName="etlua",n.aliases=[];function n(r){r.register(e),r.register(t),function(a){a.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:a.languages.lua}},a.hooks.add("before-tokenize",function(o){var i=/<%[\s\S]+?%>/g;a.languages["markup-templating"].buildPlaceholders(o,"etlua",i)}),a.hooks.add("after-tokenize",function(o){a.languages["markup-templating"].tokenizePlaceholders(o,"etlua")})}(r)}return cw}var uw,l8;function y8e(){if(l8)return uw;l8=1,uw=e,e.displayName="excelFormula",e.aliases=[];function e(t){t.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"keyword"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"property",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"property"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},t.languages.xlsx=t.languages.xls=t.languages["excel-formula"]}return uw}var dw,c8;function S8e(){if(c8)return dw;c8=1,dw=e,e.displayName="factor",e.aliases=[];function e(t){(function(n){var r={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},a={number:/\\[^\s']|%\w/},o={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:r},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:r}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:a.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:a},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:a}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:a}},i=function(d){return(d+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},s=function(d){return new RegExp("(^|\\s)(?:"+d.map(i).join("|")+")(?=\\s|$)")},c={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated",">>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(c).forEach(function(d){o[d].pattern=s(c[d])});var u=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","inputsequence"];o.combinators.pattern=s(u),n.languages.factor=o})(t)}return dw}var fw,u8;function x8e(){if(u8)return fw;u8=1,fw=e,e.displayName="$false",e.aliases=[];function e(t){(function(n){n.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete t.languages["firestore-security-rules"]["class-name"],t.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}return pw}var gw,f8;function C8e(){if(f8)return gw;f8=1,gw=e,e.displayName="flow",e.aliases=[];function e(t){(function(n){n.languages.flow=n.languages.extend("javascript",{}),n.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|any|mixed|null|void)\b/,alias:"tag"}]}),n.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete n.languages.flow.parameter,n.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(n.languages.flow.keyword)||(n.languages.flow.keyword=[n.languages.flow.keyword]),n.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(t)}return gw}var mw,p8;function E8e(){if(p8)return mw;p8=1,mw=e,e.displayName="fortran",e.aliases=[];function e(t){t.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}return mw}var hw,g8;function I8e(){if(g8)return hw;g8=1,hw=e,e.displayName="fsharp",e.aliases=[];function e(t){t.languages.fsharp=t.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),t.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),t.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),t.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:t.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}return hw}var vw,m8;function T8e(){if(m8)return vw;m8=1;var e=to();vw=t,t.displayName="ftl",t.aliases=[];function t(n){n.register(e),function(r){for(var a=/[^<()"']|\((?:)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,o=0;o<2;o++)a=a.replace(//g,function(){return a});a=a.replace(//g,/[^\s\S]/.source);var i={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:))*\})*\1/.source.replace(//g,function(){return a})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:))*\}/.source.replace(//g,function(){return a})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};i.string[1].inside.interpolation.inside.rest=i,r.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}}},r.hooks.add("before-tokenize",function(s){var c=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:)*?>|\$\{(?:)*?\}/.source.replace(//g,function(){return a}),"gi");r.languages["markup-templating"].buildPlaceholders(s,"ftl",c)}),r.hooks.add("after-tokenize",function(s){r.languages["markup-templating"].tokenizePlaceholders(s,"ftl")})}(n)}return vw}var bw,h8;function R8e(){if(h8)return bw;h8=1,bw=e,e.displayName="gap",e.aliases=[];function e(t){t.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},t.languages.gap.shell.inside.gap.inside=t.languages.gap}return bw}var yw,v8;function _8e(){if(v8)return yw;v8=1,yw=e,e.displayName="gcode",e.aliases=[];function e(t){t.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}return yw}var Sw,b8;function $8e(){if(b8)return Sw;b8=1,Sw=e,e.displayName="gdscript",e.aliases=[];function e(t){t.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}return Sw}var xw,y8;function O8e(){if(y8)return xw;y8=1,xw=e,e.displayName="gedcom",e.aliases=[];function e(t){t.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},tag:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"string"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}return xw}var ww,S8;function N8e(){if(S8)return ww;S8=1,ww=e,e.displayName="gherkin",e.aliases=[];function e(t){(function(n){var r=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;n.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+r+")(?:"+r+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(r),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(t)}return ww}var Cw,x8;function k8e(){if(x8)return Cw;x8=1,Cw=e,e.displayName="git",e.aliases=[];function e(t){t.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}return Cw}var Ew,w8;function A8e(){if(w8)return Ew;w8=1;var e=Kc();Ew=t,t.displayName="glsl",t.aliases=[];function t(n){n.register(e),n.languages.glsl=n.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}return Ew}var Iw,C8;function M8e(){if(C8)return Iw;C8=1,Iw=e,e.displayName="gml",e.aliases=[];function e(t){t.languages.gamemakerlanguage=t.languages.gml=t.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}return Iw}var Tw,E8;function P8e(){if(E8)return Tw;E8=1,Tw=e,e.displayName="gn",e.aliases=["gni"];function e(t){t.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},t.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=t.languages.gn,t.languages.gni=t.languages.gn}return Tw}var Rw,I8;function D8e(){if(I8)return Rw;I8=1,Rw=e,e.displayName="goModule",e.aliases=[];function e(t){t.languages["go-mod"]=t.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}return Rw}var _w,T8;function L8e(){if(T8)return _w;T8=1,_w=e,e.displayName="go",e.aliases=[];function e(t){t.languages.go=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),t.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete t.languages.go["class-name"]}return _w}var $w,R8;function F8e(){if(R8)return $w;R8=1,$w=e,e.displayName="graphql",e.aliases=[];function e(t){t.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:t.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},t.hooks.add("after-tokenize",function(r){if(r.language!=="graphql")return;var a=r.tokens.filter(function(S){return typeof S!="string"&&S.type!=="comment"&&S.type!=="scalar"}),o=0;function i(S){return a[o+S]}function s(S,v){v=v||0;for(var x=0;x0)){var h=c(/^\{$/,/^\}$/);if(h===-1)continue;for(var b=o;b=0&&u(y,"variable-input")}}}}})}return $w}var Ow,_8;function j8e(){if(_8)return Ow;_8=1,Ow=e,e.displayName="groovy",e.aliases=[];function e(t){t.languages.groovy=t.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),t.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),t.hooks.add("wrap",function(n){if(n.language==="groovy"&&n.type==="string"){var r=n.content.value[0];if(r!="'"){var a=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;r==="$"&&(a=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),n.content.value=n.content.value.replace(/</g,"<").replace(/&/g,"&"),n.content=t.highlight(n.content.value,{expression:{pattern:a,lookbehind:!0,inside:t.languages.groovy}}),n.classes.push(r==="/"?"regex":"gstring")}}})}return Ow}var Nw,$8;function B8e(){if($8)return Nw;$8=1;var e=Fy();Nw=t,t.displayName="haml",t.aliases=[];function t(n){n.register(e),function(r){r.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:r.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:r.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:r.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:r.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:r.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:r.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:r.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var a="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",o=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],i={},s=0,c=o.length;s@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},r.hooks.add("before-tokenize",function(a){var o=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;r.languages["markup-templating"].buildPlaceholders(a,"handlebars",o)}),r.hooks.add("after-tokenize",function(a){r.languages["markup-templating"].tokenizePlaceholders(a,"handlebars")}),r.languages.hbs=r.languages.handlebars}(n)}return kw}var Aw,N8;function nk(){if(N8)return Aw;N8=1,Aw=e,e.displayName="haskell",e.aliases=["hs"];function e(t){t.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},t.languages.hs=t.languages.haskell}return Aw}var Mw,k8;function H8e(){if(k8)return Mw;k8=1,Mw=e,e.displayName="haxe",e.aliases=[];function e(t){t.languages.haxe=t.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<{1,3}|[-+*/%!=&|^])=?|[?:~]/}),t.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:t.languages.haxe}}},string:/[\s\S]+/}}}),t.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),t.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}return Mw}var Pw,A8;function U8e(){if(A8)return Pw;A8=1,Pw=e,e.displayName="hcl",e.aliases=[];function e(t){t.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}return Pw}var Dw,M8;function V8e(){if(M8)return Dw;M8=1;var e=Kc();Dw=t,t.displayName="hlsl",t.aliases=[];function t(n){n.register(e),n.languages.hlsl=n.languages.extend("c",{"class-name":[n.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}return Dw}var Lw,P8;function W8e(){if(P8)return Lw;P8=1,Lw=e,e.displayName="hoon",e.aliases=[];function e(t){t.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}return Lw}var Fw,D8;function G8e(){if(D8)return Fw;D8=1,Fw=e,e.displayName="hpkp",e.aliases=[];function e(t){t.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}return Fw}var jw,L8;function q8e(){if(L8)return jw;L8=1,jw=e,e.displayName="hsts",e.aliases=[];function e(t){t.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}return jw}var Bw,F8;function K8e(){if(F8)return Bw;F8=1,Bw=e,e.displayName="http",e.aliases=[];function e(t){(function(n){function r(f){return RegExp("(^(?:"+f+"):[ ]*(?![ ]))[^]+","i")}n.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:n.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:r(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:n.languages.csp},{pattern:r(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:n.languages.hpkp},{pattern:r(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:n.languages.hsts},{pattern:r(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var a=n.languages,o={"application/javascript":a.javascript,"application/json":a.json||a.javascript,"application/xml":a.xml,"text/xml":a.xml,"text/html":a.html,"text/css":a.css,"text/plain":a.plain},i={"application/json":!0,"application/xml":!0};function s(f){var p=f.replace(/^[a-z]+\//,""),g="\\w+/(?:[\\w.-]+\\+)+"+p+"(?![+\\w.-])";return"(?:"+f+"|"+g+")"}var c;for(var u in o)if(o[u]){c=c||{};var d=i[u]?s(u):u;c[u.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+d+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:o[u]}}c&&n.languages.insertBefore("http","header",c)})(t)}return Bw}var zw,j8;function Y8e(){if(j8)return zw;j8=1,zw=e,e.displayName="ichigojam",e.aliases=[];function e(t){t.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}return zw}var Hw,B8;function X8e(){if(B8)return Hw;B8=1,Hw=e,e.displayName="icon",e.aliases=[];function e(t){t.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}return Hw}var Uw,z8;function Z8e(){if(z8)return Uw;z8=1,Uw=e,e.displayName="icuMessageFormat",e.aliases=[];function e(t){(function(n){function r(u,d){return d<=0?/[]/.source:u.replace(//g,function(){return r(u,d-1)})}var a=/'[{}:=,](?:[^']|'')*'(?!')/,o={pattern:/''/,greedy:!0,alias:"operator"},i={pattern:a,greedy:!0,inside:{escape:o}},s=r(/\{(?:[^{}']|'(?![{},'])|''||)*\}/.source.replace(//g,function(){return a.source}),8),c={pattern:RegExp(s),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};n.languages["icu-message-format"]={argument:{pattern:RegExp(s),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":c,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":c,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+r(/(?:[^{}']|'[^']*'|\{(?:)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:o,string:i},c.inside.message.inside=n.languages["icu-message-format"],n.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=n.languages["icu-message-format"]})(t)}return Uw}var Vw,H8;function Q8e(){if(H8)return Vw;H8=1;var e=nk();Vw=t,t.displayName="idris",t.aliases=["idr"];function t(n){n.register(e),n.languages.idris=n.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),n.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),n.languages.idr=n.languages.idris}return Vw}var Ww,U8;function J8e(){if(U8)return Ww;U8=1,Ww=e,e.displayName="iecst",e.aliases=[];function e(t){t.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}return Ww}var Gw,V8;function eFe(){if(V8)return Gw;V8=1,Gw=e,e.displayName="ignore",e.aliases=["gitignore","hgignore","npmignore"];function e(t){(function(n){n.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},n.languages.gitignore=n.languages.ignore,n.languages.hgignore=n.languages.ignore,n.languages.npmignore=n.languages.ignore})(t)}return Gw}var qw,W8;function tFe(){if(W8)return qw;W8=1,qw=e,e.displayName="inform7",e.aliases=[];function e(t){t.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},t.languages.inform7.string.inside.substitution.inside.rest=t.languages.inform7,t.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}return qw}var Kw,G8;function nFe(){if(G8)return Kw;G8=1,Kw=e,e.displayName="ini",e.aliases=[];function e(t){t.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}return Kw}var Yw,q8;function rFe(){if(q8)return Yw;q8=1,Yw=e,e.displayName="io",e.aliases=[];function e(t){t.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}return Xw}var Zw,Y8;function rk(){if(Y8)return Zw;Y8=1,Zw=e,e.displayName="java",e.aliases=[];function e(t){(function(n){var r=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,a=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,o={pattern:RegExp(a+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};n.languages.java=n.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[o,{pattern:RegExp(a+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:o.inside}],keyword:r,function:[n.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),n.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),n.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":o,keyword:r,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return r.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(t)}return Zw}var Qw,X8;function jy(){if(X8)return Qw;X8=1,Qw=e,e.displayName="javadoclike",e.aliases=[];function e(t){(function(n){var r=n.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function a(i,s){var c="doc-comment",u=n.languages[i];if(u){var d=u[c];if(!d){var f={};f[c]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},u=n.languages.insertBefore(i,"comment",f),d=u[c]}if(d instanceof RegExp&&(d=u[c]={pattern:d}),Array.isArray(d))for(var p=0,g=d.length;p)?|/.source.replace(//g,function(){return i});a.languages.javadoc=a.languages.extend("javadoclike",{}),a.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+s+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:a.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:o,lookbehind:!0,inside:a.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:o,lookbehind:!0,inside:{tag:a.languages.markup.tag,entity:a.languages.markup.entity,code:{pattern:/.+/,inside:a.languages.java,alias:"language-java"}}}}}],tag:a.languages.markup.tag,entity:a.languages.markup.entity}),a.languages.javadoclike.addSupport("java",a.languages.javadoc)}(r)}return Jw}var eC,Q8;function iFe(){if(Q8)return eC;Q8=1,eC=e,e.displayName="javastacktrace",e.aliases=[];function e(t){t.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:|[\w$]+)\()/,function:/(?:|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}return eC}var tC,J8;function sFe(){if(J8)return tC;J8=1,tC=e,e.displayName="jexl",e.aliases=[];function e(t){t.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}return tC}var nC,eF;function lFe(){if(eF)return nC;eF=1,nC=e,e.displayName="jolie",e.aliases=[];function e(t){t.languages.jolie=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),t.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}return nC}var rC,tF;function cFe(){if(tF)return rC;tF=1,rC=e,e.displayName="jq",e.aliases=[];function e(t){(function(n){var r=/\\\((?:[^()]|\([^()]*\))*\)/.source,a=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return r})),o={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+r),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},i=n.languages.jq={comment:/#.*/,property:{pattern:RegExp(a.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:o},string:{pattern:a,lookbehind:!0,greedy:!0,inside:o},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};o.interpolation.inside.content.inside=i})(t)}return rC}var aC,nF;function uFe(){if(nF)return aC;nF=1,aC=e,e.displayName="jsExtras",e.aliases=[];function e(t){(function(n){n.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+n.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),n.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+n.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),n.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function r(u,d){return RegExp(u.replace(//g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),d)}n.languages.insertBefore("javascript","keyword",{imports:{pattern:r(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:n.languages.javascript},exports:{pattern:r(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:n.languages.javascript}}),n.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),n.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),n.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:r(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var a=["function","function-variable","method","method-variable","property-access"],o=0;o=I.length)return;var $=R[_];if(typeof $=="string"||typeof $.content=="string"){var P=I[x],D=typeof $=="string"?$:$.content,A=D.indexOf(P);if(A!==-1){++x;var O=D.substring(0,A),N=f(C[P]),k=D.substring(A+P.length),M=[];if(O&&M.push(O),M.push(N),k){var L=[k];T(L),M.push.apply(M,L)}typeof $=="string"?(R.splice.apply(R,[_,1].concat(M)),_+=M.length-1):$.content=M}}else{var F=$.content;Array.isArray(F)?T(F):T([F])}}}return T(E),new n.Token(S,E,"language-"+S,b)}var g={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};n.hooks.add("after-tokenize",function(b){if(!(b.language in g))return;function y(S){for(var v=0,x=S.length;v]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),n.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete n.languages.typescript.parameter,delete n.languages.typescript["literal-property"];var r=n.languages.extend("typescript",{});delete r["class-name"],n.languages.typescript["class-name"].inside=r,n.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:r}}}}),n.languages.ts=n.languages.typescript})(t)}return iC}var sC,oF;function fFe(){if(oF)return sC;oF=1;var e=jy(),t=ak();sC=n,n.displayName="jsdoc",n.aliases=[];function n(r){r.register(e),r.register(t),function(a){var o=a.languages.javascript,i=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,s="(@(?:arg|argument|param|property)\\s+(?:"+i+"\\s+)?)";a.languages.jsdoc=a.languages.extend("javadoclike",{parameter:{pattern:RegExp(s+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),a.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(s+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:o,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(//g,function(){return i})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+i),lookbehind:!0,inside:{string:o.string,number:o.number,boolean:o.boolean,keyword:a.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:o,alias:"language-javascript"}}}}),a.languages.javadoclike.addSupport("javascript",a.languages.jsdoc)}(r)}return sC}var lC,iF;function ok(){if(iF)return lC;iF=1,lC=e,e.displayName="json",e.aliases=["webmanifest"];function e(t){t.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},t.languages.webmanifest=t.languages.json}return lC}var cC,sF;function pFe(){if(sF)return cC;sF=1;var e=ok();cC=t,t.displayName="json5",t.aliases=[];function t(n){n.register(e),function(r){var a=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;r.languages.json5=r.languages.extend("json",{property:[{pattern:RegExp(a.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:a,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}(n)}return cC}var uC,lF;function gFe(){if(lF)return uC;lF=1;var e=ok();uC=t,t.displayName="jsonp",t.aliases=[];function t(n){n.register(e),n.languages.jsonp=n.languages.extend("json",{punctuation:/[{}[\]();,.]/}),n.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}return uC}var dC,cF;function mFe(){if(cF)return dC;cF=1,dC=e,e.displayName="jsstacktrace",e.aliases=[];function e(t){t.languages.jsstacktrace={"error-message":{pattern:/^\S.*/m,alias:"string"},"stack-frame":{pattern:/(^[ \t]+)at[ \t].*/m,lookbehind:!0,inside:{"not-my-code":{pattern:/^at[ \t]+(?!\s)(?:node\.js||.*(?:node_modules|\(\)|\(|$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}return dC}var fC,uF;function oX(){if(uF)return fC;uF=1,fC=e,e.displayName="jsx",e.aliases=[];function e(t){(function(n){var r=n.util.clone(n.languages.javascript),a=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,o=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,i=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function s(d,f){return d=d.replace(//g,function(){return a}).replace(//g,function(){return o}).replace(//g,function(){return i}),RegExp(d,f)}i=s(i).source,n.languages.jsx=n.languages.extend("markup",r),n.languages.jsx.tag.pattern=s(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),n.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,n.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,n.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,n.languages.jsx.tag.inside.comment=r.comment,n.languages.insertBefore("inside","attr-name",{spread:{pattern:s(//.source),inside:n.languages.jsx}},n.languages.jsx.tag),n.languages.insertBefore("inside","special-attr",{script:{pattern:s(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:n.languages.jsx}}},n.languages.jsx.tag);var c=function(d){return d?typeof d=="string"?d:typeof d.content=="string"?d.content:d.content.map(c).join(""):""},u=function(d){for(var f=[],p=0;p0&&f[f.length-1].tagName===c(g.content[0].content[1])&&f.pop():g.content[g.content.length-1].content==="/>"||f.push({tagName:c(g.content[0].content[1]),openedBraces:0}):f.length>0&&g.type==="punctuation"&&g.content==="{"?f[f.length-1].openedBraces++:f.length>0&&f[f.length-1].openedBraces>0&&g.type==="punctuation"&&g.content==="}"?f[f.length-1].openedBraces--:h=!0),(h||typeof g=="string")&&f.length>0&&f[f.length-1].openedBraces===0){var b=c(g);p0&&(typeof d[p-1]=="string"||d[p-1].type==="plain-text")&&(b=c(d[p-1])+b,d.splice(p-1,1),p--),d[p]=new n.Token("plain-text",b,null,b)}g.content&&typeof g.content!="string"&&u(g.content)}};n.hooks.add("after-tokenize",function(d){d.language!=="jsx"&&d.language!=="tsx"||u(d.tokens)})})(t)}return fC}var pC,dF;function hFe(){if(dF)return pC;dF=1,pC=e,e.displayName="julia",e.aliases=[];function e(t){t.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}return pC}var gC,fF;function vFe(){if(fF)return gC;fF=1,gC=e,e.displayName="keepalived",e.aliases=[];function e(t){t.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}|(?:[\da-f]{1,4}:){0,5}:|::(?:[\da-f]{1,4}:){0,5}|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|(?:\/\d{1,2})?)\b/.source.replace(//g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}return gC}var mC,pF;function bFe(){if(pF)return mC;pF=1,mC=e,e.displayName="keyman",e.aliases=[];function e(t){t.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|nomatch|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}return mC}var hC,gF;function yFe(){if(gF)return hC;gF=1,hC=e,e.displayName="kotlin",e.aliases=["kt","kts"];function e(t){(function(n){n.languages.kotlin=n.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete n.languages.kotlin["class-name"];var r={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:n.languages.kotlin}};n.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:r},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:r},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete n.languages.kotlin.string,n.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),n.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),n.languages.kt=n.languages.kotlin,n.languages.kts=n.languages.kotlin})(t)}return hC}var vC,mF;function SFe(){if(mF)return vC;mF=1,vC=e,e.displayName="kumir",e.aliases=["kum"];function e(t){(function(n){var r=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function a(o,i){return RegExp(o.replace(//g,r),i)}n.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:a(/(^|[])(?:да|нет)(?=[]|$)/.source),lookbehind:!0},"operator-word":{pattern:a(/(^|[])(?:и|или|не)(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:a(/(^|[])знач(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:a(/(^|[])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:a(/(^|[])(?:компл|сканкод|файл|цвет)(?=[]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:a(/(^|[])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[]|$)/.source),lookbehind:!0},name:{pattern:a(/(^|[])[^\d][^]*(?:\x20+[^]+)*(?=[]|$)/.source),lookbehind:!0},number:{pattern:a(/(^|[])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},n.languages.kum=n.languages.kumir})(t)}return vC}var bC,hF;function xFe(){if(hF)return bC;hF=1,bC=e,e.displayName="kusto",e.aliases=[];function e(t){t.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}return bC}var yC,vF;function wFe(){if(vF)return yC;vF=1,yC=e,e.displayName="latex",e.aliases=["tex","context"];function e(t){(function(n){var r=/\\(?:[^a-z()[\]]|[a-z*]+)/i,a={"equation-command":{pattern:r,alias:"regex"}};n.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:a,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:a,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:r,alias:"selector"},punctuation:/[[\]{}&]/},n.languages.tex=n.languages.latex,n.languages.context=n.languages.latex})(t)}return yC}var SC,bF;function By(){if(bF)return SC;bF=1;var e=to();SC=t,t.displayName="php",t.aliases=[];function t(n){n.register(e),function(r){var a=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,o=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],i=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,s=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,c=/[{}\[\](),:;]/;r.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:a,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:o,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:i,operator:s,punctuation:c};var u={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:r.languages.php},d=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:u}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:u}}];r.languages.insertBefore("php","variable",{string:d,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:a,string:d,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:o,number:i,operator:s,punctuation:c}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),r.hooks.add("before-tokenize",function(f){if(/<\?/.test(f.code)){var p=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;r.languages["markup-templating"].buildPlaceholders(f,"php",p)}}),r.hooks.add("after-tokenize",function(f){r.languages["markup-templating"].tokenizePlaceholders(f,"php")})}(n)}return SC}var xC,yF;function CFe(){if(yF)return xC;yF=1;var e=to(),t=By();xC=n,n.displayName="latte",n.aliases=[];function n(r){r.register(e),r.register(t),function(a){a.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:a.languages.php}};var o=a.languages.extend("markup",{});a.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:a.languages.php}}}}}},o.tag),a.hooks.add("before-tokenize",function(i){if(i.language==="latte"){var s=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;a.languages["markup-templating"].buildPlaceholders(i,"latte",s),i.grammar=o}}),a.hooks.add("after-tokenize",function(i){a.languages["markup-templating"].tokenizePlaceholders(i,"latte")})}(r)}return xC}var wC,SF;function EFe(){if(SF)return wC;SF=1,wC=e,e.displayName="less",e.aliases=[];function e(t){t.languages.less=t.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),t.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}return wC}var CC,xF;function ik(){if(xF)return CC;xF=1,CC=e,e.displayName="scheme",e.aliases=[];function e(t){(function(n){n.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(r({"":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?/.source,"":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/#[box](?:#[ei])?|(?:#[ei])?#[box]/.source,"":/(^|[()\[\]\s])(?:|)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function r(a){for(var o in a)a[o]=a[o].replace(/<[\w\s]+>/g,function(i){return"(?:"+a[i].trim()+")"});return a[o]}})(t)}return CC}var EC,wF;function IFe(){if(wF)return EC;wF=1;var e=ik();EC=t,t.displayName="lilypond",t.aliases=[];function t(n){n.register(e),function(r){for(var a=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|)*\)/.source,o=5,i=0;i/g,function(){return a});a=a.replace(//g,/[^\s\S]/.source);var s=r.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|))/.source.replace(//g,function(){return a}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:r.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};s["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=s,r.languages.ly=s}(n)}return EC}var IC,CF;function TFe(){if(CF)return IC;CF=1;var e=to();IC=t,t.displayName="liquid",t.aliases=[];function t(n){n.register(e),n.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},n.hooks.add("before-tokenize",function(r){var a=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,o=!1;n.languages["markup-templating"].buildPlaceholders(r,"liquid",a,function(i){var s=/^\{%-?\s*(\w+)/.exec(i);if(s){var c=s[1];if(c==="raw"&&!o)return o=!0,!0;if(c==="endraw")return o=!1,!0}return!o})}),n.hooks.add("after-tokenize",function(r){n.languages["markup-templating"].tokenizePlaceholders(r,"liquid")})}return IC}var TC,EF;function RFe(){if(EF)return TC;EF=1,TC=e,e.displayName="lisp",e.aliases=[];function e(t){(function(n){function r(b){return RegExp(/(\()/.source+"(?:"+b+")"+/(?=[\s\)])/.source)}function a(b){return RegExp(/([\s([])/.source+"(?:"+b+")"+/(?=[\s)])/.source)}var o=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,i="&"+o,s="(\\()",c="(?=\\))",u="(?=\\s)",d=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,f={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+o+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+o),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+o),alias:"property"},splice:{pattern:RegExp(",@?"+o),alias:["symbol","variable"]},keyword:[{pattern:RegExp(s+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+u),lookbehind:!0},{pattern:RegExp(s+"(?:append|by|collect|concat|do|finally|for|in|return)"+u),lookbehind:!0}],declare:{pattern:r(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:r(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:a(/nil|t/.source),lookbehind:!0},number:{pattern:a(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(s+"def(?:const|custom|group|var)\\s+"+o),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(o)}},defun:{pattern:RegExp(s+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+o+/\s+\(/.source+d+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+o),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(s+"lambda\\s+\\(\\s*(?:&?"+o+"(?:\\s+&?"+o+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(s+o),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},p={"lisp-marker":RegExp(i),varform:{pattern:RegExp(/\(/.source+o+/\s+(?=\S)/.source+d+/\)/.source),inside:f},argument:{pattern:RegExp(/(^|[\s(])/.source+o),lookbehind:!0,alias:"variable"},rest:f},g="\\S+(?:\\s+\\S+)*",h={pattern:RegExp(s+d+c),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+g),inside:p},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+g),inside:p},keys:{pattern:RegExp("&key\\s+"+g+"(?:\\s+&allow-other-keys)?"),inside:p},argument:{pattern:RegExp(o),alias:"variable"},punctuation:/[()]/}};f.lambda.inside.arguments=h,f.defun.inside.arguments=n.util.clone(h),f.defun.inside.arguments.inside.sublist=h,n.languages.lisp=f,n.languages.elisp=f,n.languages.emacs=f,n.languages["emacs-lisp"]=f})(t)}return TC}var RC,IF;function _Fe(){if(IF)return RC;IF=1,RC=e,e.displayName="livescript",e.aliases=[];function e(t){t.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},t.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=t.languages.livescript}return RC}var _C,TF;function $Fe(){if(TF)return _C;TF=1,_C=e,e.displayName="llvm",e.aliases=[];function e(t){(function(n){n.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(t)}return _C}var $C,RF;function OFe(){if(RF)return $C;RF=1,$C=e,e.displayName="log",e.aliases=[];function e(t){t.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:t.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}return $C}var OC,_F;function NFe(){if(_F)return OC;_F=1,OC=e,e.displayName="lolcode",e.aliases=[];function e(t){t.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}return OC}var NC,$F;function kFe(){if($F)return NC;$F=1,NC=e,e.displayName="magma",e.aliases=[];function e(t){t.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}return NC}var kC,OF;function AFe(){if(OF)return kC;OF=1,kC=e,e.displayName="makefile",e.aliases=[];function e(t){t.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}return kC}var AC,NF;function MFe(){if(NF)return AC;NF=1,AC=e,e.displayName="markdown",e.aliases=["md"];function e(t){(function(n){var r=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function a(p){return p=p.replace(//g,function(){return r}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+p+")")}var o=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return o}),s=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;n.languages.markdown=n.languages.extend("markup",{}),n.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:n.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+s+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+s+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(o),inside:n.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+s+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(o),alias:"important",inside:n.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:a(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:a(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:a(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:a(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(p){["url","bold","italic","strike","code-snippet"].forEach(function(g){p!==g&&(n.languages.markdown[p].inside.content.inside[g]=n.languages.markdown[g])})}),n.hooks.add("after-tokenize",function(p){if(p.language!=="markdown"&&p.language!=="md")return;function g(h){if(!(!h||typeof h=="string"))for(var b=0,y=h.length;b",quot:'"'},d=String.fromCodePoint||String.fromCharCode;function f(p){var g=p.replace(c,"");return g=g.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(h,b){if(b=b.toLowerCase(),b[0]==="#"){var y;return b[1]==="x"?y=parseInt(b.slice(2),16):y=Number(b.slice(1)),d(y)}else{var S=u[b];return S||h}}),g}n.languages.md=n.languages.markdown})(t)}return AC}var MC,kF;function PFe(){if(kF)return MC;kF=1,MC=e,e.displayName="matlab",e.aliases=[];function e(t){t.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}return MC}var PC,AF;function DFe(){if(AF)return PC;AF=1,PC=e,e.displayName="maxscript",e.aliases=[];function e(t){(function(n){var r=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;n.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+r.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+r.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:r,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(t)}return PC}var DC,MF;function LFe(){if(MF)return DC;MF=1,DC=e,e.displayName="mel",e.aliases=[];function e(t){t.languages.mel={comment:/\/\/.*/,code:{pattern:/`(?:\\.|[^\\`\r\n])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:/\b\w+(?=\()|\b(?:CBG|HfAddAttractorToAS|HfAssignAS|HfBuildEqualMap|HfBuildFurFiles|HfBuildFurImages|HfCancelAFR|HfConnectASToHF|HfCreateAttractor|HfDeleteAS|HfEditAS|HfPerformCreateAS|HfRemoveAttractorFromAS|HfSelectAttached|HfSelectAttractors|HfUnAssignAS|Mayatomr|about|abs|addAttr|addAttributeEditorNodeHelp|addDynamic|addNewShelfTab|addPP|addPanelCategory|addPrefixToName|advanceToNextDrivenKey|affectedNet|affects|aimConstraint|air|alias|aliasAttr|align|alignCtx|alignCurve|alignSurface|allViewFit|ambientLight|angle|angleBetween|animCone|animCurveEditor|animDisplay|animView|annotate|appendStringArray|applicationName|applyAttrPreset|applyTake|arcLenDimContext|arcLengthDimension|arclen|arrayMapper|art3dPaintCtx|artAttrCtx|artAttrPaintVertexCtx|artAttrSkinPaintCtx|artAttrTool|artBuildPaintMenu|artFluidAttrCtx|artPuttyCtx|artSelectCtx|artSetPaintCtx|artUserPaintCtx|assignCommand|assignInputDevice|assignViewportFactories|attachCurve|attachDeviceAttr|attachSurface|attrColorSliderGrp|attrCompatibility|attrControlGrp|attrEnumOptionMenu|attrEnumOptionMenuGrp|attrFieldGrp|attrFieldSliderGrp|attrNavigationControlGrp|attrPresetEditWin|attributeExists|attributeInfo|attributeMenu|attributeQuery|autoKeyframe|autoPlace|bakeClip|bakeFluidShading|bakePartialHistory|bakeResults|bakeSimulation|basename|basenameEx|batchRender|bessel|bevel|bevelPlus|binMembership|bindSkin|blend2|blendShape|blendShapeEditor|blendShapePanel|blendTwoAttr|blindDataType|boneLattice|boundary|boxDollyCtx|boxZoomCtx|bufferCurve|buildBookmarkMenu|buildKeyframeMenu|button|buttonManip|cacheFile|cacheFileCombine|cacheFileMerge|cacheFileTrack|camera|cameraView|canCreateManip|canvas|capitalizeString|catch|catchQuiet|ceil|changeSubdivComponentDisplayLevel|changeSubdivRegion|channelBox|character|characterMap|characterOutlineEditor|characterize|chdir|checkBox|checkBoxGrp|checkDefaultRenderGlobals|choice|circle|circularFillet|clamp|clear|clearCache|clip|clipEditor|clipEditorCurrentTimeCtx|clipSchedule|clipSchedulerOutliner|clipTrimBefore|closeCurve|closeSurface|cluster|cmdFileOutput|cmdScrollFieldExecuter|cmdScrollFieldReporter|cmdShell|coarsenSubdivSelectionList|collision|color|colorAtPoint|colorEditor|colorIndex|colorIndexSliderGrp|colorSliderButtonGrp|colorSliderGrp|columnLayout|commandEcho|commandLine|commandPort|compactHairSystem|componentEditor|compositingInterop|computePolysetVolume|condition|cone|confirmDialog|connectAttr|connectControl|connectDynamic|connectJoint|connectionInfo|constrain|constrainValue|constructionHistory|container|containsMultibyte|contextInfo|control|convertFromOldLayers|convertIffToPsd|convertLightmap|convertSolidTx|convertTessellation|convertUnit|copyArray|copyFlexor|copyKey|copySkinWeights|cos|cpButton|cpCache|cpClothSet|cpCollision|cpConstraint|cpConvClothToMesh|cpForces|cpGetSolverAttr|cpPanel|cpProperty|cpRigidCollisionFilter|cpSeam|cpSetEdit|cpSetSolverAttr|cpSolver|cpSolverTypes|cpTool|cpUpdateClothUVs|createDisplayLayer|createDrawCtx|createEditor|createLayeredPsdFile|createMotionField|createNewShelf|createNode|createRenderLayer|createSubdivRegion|cross|crossProduct|ctxAbort|ctxCompletion|ctxEditMode|ctxTraverse|currentCtx|currentTime|currentTimeCtx|currentUnit|curve|curveAddPtCtx|curveCVCtx|curveEPCtx|curveEditorCtx|curveIntersect|curveMoveEPCtx|curveOnSurface|curveSketchCtx|cutKey|cycleCheck|cylinder|dagPose|date|defaultLightListCheckBox|defaultNavigation|defineDataServer|defineVirtualDevice|deformer|deg_to_rad|delete|deleteAttr|deleteShadingGroupsAndMaterials|deleteShelfTab|deleteUI|deleteUnusedBrushes|delrandstr|detachCurve|detachDeviceAttr|detachSurface|deviceEditor|devicePanel|dgInfo|dgdirty|dgeval|dgtimer|dimWhen|directKeyCtx|directionalLight|dirmap|dirname|disable|disconnectAttr|disconnectJoint|diskCache|displacementToPoly|displayAffected|displayColor|displayCull|displayLevelOfDetail|displayPref|displayRGBColor|displaySmoothness|displayStats|displayString|displaySurface|distanceDimContext|distanceDimension|doBlur|dolly|dollyCtx|dopeSheetEditor|dot|dotProduct|doubleProfileBirailSurface|drag|dragAttrContext|draggerContext|dropoffLocator|duplicate|duplicateCurve|duplicateSurface|dynCache|dynControl|dynExport|dynExpression|dynGlobals|dynPaintEditor|dynParticleCtx|dynPref|dynRelEdPanel|dynRelEditor|dynamicLoad|editAttrLimits|editDisplayLayerGlobals|editDisplayLayerMembers|editRenderLayerAdjustment|editRenderLayerGlobals|editRenderLayerMembers|editor|editorTemplate|effector|emit|emitter|enableDevice|encodeString|endString|endsWith|env|equivalent|equivalentTol|erf|error|eval|evalDeferred|evalEcho|event|exactWorldBoundingBox|exclusiveLightCheckBox|exec|executeForEachObject|exists|exp|expression|expressionEditorListen|extendCurve|extendSurface|extrude|fcheck|fclose|feof|fflush|fgetline|fgetword|file|fileBrowserDialog|fileDialog|fileExtension|fileInfo|filetest|filletCurve|filter|filterCurve|filterExpand|filterStudioImport|findAllIntersections|findAnimCurves|findKeyframe|findMenuItem|findRelatedSkinCluster|finder|firstParentOf|fitBspline|flexor|floatEq|floatField|floatFieldGrp|floatScrollBar|floatSlider|floatSlider2|floatSliderButtonGrp|floatSliderGrp|floor|flow|fluidCacheInfo|fluidEmitter|fluidVoxelInfo|flushUndo|fmod|fontDialog|fopen|formLayout|format|fprint|frameLayout|fread|freeFormFillet|frewind|fromNativePath|fwrite|gamma|gauss|geometryConstraint|getApplicationVersionAsFloat|getAttr|getClassification|getDefaultBrush|getFileList|getFluidAttr|getInputDeviceRange|getMayaPanelTypes|getModifiers|getPanel|getParticleAttr|getPluginResource|getenv|getpid|glRender|glRenderEditor|globalStitch|gmatch|goal|gotoBindPose|grabColor|gradientControl|gradientControlNoAttr|graphDollyCtx|graphSelectContext|graphTrackCtx|gravity|grid|gridLayout|group|groupObjectsByName|hardenPointCurve|hardware|hardwareRenderPanel|headsUpDisplay|headsUpMessage|help|helpLine|hermite|hide|hilite|hitTest|hotBox|hotkey|hotkeyCheck|hsv_to_rgb|hudButton|hudSlider|hudSliderButton|hwReflectionMap|hwRender|hwRenderLoad|hyperGraph|hyperPanel|hyperShade|hypot|iconTextButton|iconTextCheckBox|iconTextRadioButton|iconTextRadioCollection|iconTextScrollList|iconTextStaticLabel|ikHandle|ikHandleCtx|ikHandleDisplayScale|ikSolver|ikSplineHandleCtx|ikSystem|ikSystemInfo|ikfkDisplayMethod|illustratorCurves|image|imfPlugins|inheritTransform|insertJoint|insertJointCtx|insertKeyCtx|insertKnotCurve|insertKnotSurface|instance|instanceable|instancer|intField|intFieldGrp|intScrollBar|intSlider|intSliderGrp|interToUI|internalVar|intersect|iprEngine|isAnimCurve|isConnected|isDirty|isParentOf|isSameObject|isTrue|isValidObjectName|isValidString|isValidUiName|isolateSelect|itemFilter|itemFilterAttr|itemFilterRender|itemFilterType|joint|jointCluster|jointCtx|jointDisplayScale|jointLattice|keyTangent|keyframe|keyframeOutliner|keyframeRegionCurrentTimeCtx|keyframeRegionDirectKeyCtx|keyframeRegionDollyCtx|keyframeRegionInsertKeyCtx|keyframeRegionMoveKeyCtx|keyframeRegionScaleKeyCtx|keyframeRegionSelectKeyCtx|keyframeRegionSetKeyCtx|keyframeRegionTrackCtx|keyframeStats|lassoContext|lattice|latticeDeformKeyCtx|launch|launchImageEditor|layerButton|layeredShaderPort|layeredTexturePort|layout|layoutDialog|lightList|lightListEditor|lightListPanel|lightlink|lineIntersection|linearPrecision|linstep|listAnimatable|listAttr|listCameras|listConnections|listDeviceAttachments|listHistory|listInputDeviceAxes|listInputDeviceButtons|listInputDevices|listMenuAnnotation|listNodeTypes|listPanelCategories|listRelatives|listSets|listTransforms|listUnselected|listerEditor|loadFluid|loadNewShelf|loadPlugin|loadPluginLanguageResources|loadPrefObjects|localizedPanelLabel|lockNode|loft|log|longNameOf|lookThru|ls|lsThroughFilter|lsType|lsUI|mag|makeIdentity|makeLive|makePaintable|makeRoll|makeSingleSurface|makeTubeOn|makebot|manipMoveContext|manipMoveLimitsCtx|manipOptions|manipRotateContext|manipRotateLimitsCtx|manipScaleContext|manipScaleLimitsCtx|marker|match|max|memory|menu|menuBarLayout|menuEditor|menuItem|menuItemToShelf|menuSet|menuSetPref|messageLine|min|minimizeApp|mirrorJoint|modelCurrentTimeCtx|modelEditor|modelPanel|mouse|movIn|movOut|move|moveIKtoFK|moveKeyCtx|moveVertexAlongDirection|multiProfileBirailSurface|mute|nParticle|nameCommand|nameField|namespace|namespaceInfo|newPanelItems|newton|nodeCast|nodeIconButton|nodeOutliner|nodePreset|nodeType|noise|nonLinear|normalConstraint|normalize|nurbsBoolean|nurbsCopyUVSet|nurbsCube|nurbsEditUV|nurbsPlane|nurbsSelect|nurbsSquare|nurbsToPoly|nurbsToPolygonsPref|nurbsToSubdiv|nurbsToSubdivPref|nurbsUVSet|nurbsViewDirectionVector|objExists|objectCenter|objectLayer|objectType|objectTypeUI|obsoleteProc|oceanNurbsPreviewPlane|offsetCurve|offsetCurveOnSurface|offsetSurface|openGLExtension|openMayaPref|optionMenu|optionMenuGrp|optionVar|orbit|orbitCtx|orientConstraint|outlinerEditor|outlinerPanel|overrideModifier|paintEffectsDisplay|pairBlend|palettePort|paneLayout|panel|panelConfiguration|panelHistory|paramDimContext|paramDimension|paramLocator|parent|parentConstraint|particle|particleExists|particleInstancer|particleRenderInfo|partition|pasteKey|pathAnimation|pause|pclose|percent|performanceOptions|pfxstrokes|pickWalk|picture|pixelMove|planarSrf|plane|play|playbackOptions|playblast|plugAttr|plugNode|pluginInfo|pluginResourceUtil|pointConstraint|pointCurveConstraint|pointLight|pointMatrixMult|pointOnCurve|pointOnSurface|pointPosition|poleVectorConstraint|polyAppend|polyAppendFacetCtx|polyAppendVertex|polyAutoProjection|polyAverageNormal|polyAverageVertex|polyBevel|polyBlendColor|polyBlindData|polyBoolOp|polyBridgeEdge|polyCacheMonitor|polyCheck|polyChipOff|polyClipboard|polyCloseBorder|polyCollapseEdge|polyCollapseFacet|polyColorBlindData|polyColorDel|polyColorPerVertex|polyColorSet|polyCompare|polyCone|polyCopyUV|polyCrease|polyCreaseCtx|polyCreateFacet|polyCreateFacetCtx|polyCube|polyCut|polyCutCtx|polyCylinder|polyCylindricalProjection|polyDelEdge|polyDelFacet|polyDelVertex|polyDuplicateAndConnect|polyDuplicateEdge|polyEditUV|polyEditUVShell|polyEvaluate|polyExtrudeEdge|polyExtrudeFacet|polyExtrudeVertex|polyFlipEdge|polyFlipUV|polyForceUV|polyGeoSampler|polyHelix|polyInfo|polyInstallAction|polyLayoutUV|polyListComponentConversion|polyMapCut|polyMapDel|polyMapSew|polyMapSewMove|polyMergeEdge|polyMergeEdgeCtx|polyMergeFacet|polyMergeFacetCtx|polyMergeUV|polyMergeVertex|polyMirrorFace|polyMoveEdge|polyMoveFacet|polyMoveFacetUV|polyMoveUV|polyMoveVertex|polyNormal|polyNormalPerVertex|polyNormalizeUV|polyOptUvs|polyOptions|polyOutput|polyPipe|polyPlanarProjection|polyPlane|polyPlatonicSolid|polyPoke|polyPrimitive|polyPrism|polyProjection|polyPyramid|polyQuad|polyQueryBlindData|polyReduce|polySelect|polySelectConstraint|polySelectConstraintMonitor|polySelectCtx|polySelectEditCtx|polySeparate|polySetToFaceNormal|polySewEdge|polyShortestPathCtx|polySmooth|polySoftEdge|polySphere|polySphericalProjection|polySplit|polySplitCtx|polySplitEdge|polySplitRing|polySplitVertex|polyStraightenUVBorder|polySubdivideEdge|polySubdivideFacet|polyToSubdiv|polyTorus|polyTransfer|polyTriangulate|polyUVSet|polyUnite|polyWedgeFace|popen|popupMenu|pose|pow|preloadRefEd|print|progressBar|progressWindow|projFileViewer|projectCurve|projectTangent|projectionContext|projectionManip|promptDialog|propModCtx|propMove|psdChannelOutliner|psdEditTextureFile|psdExport|psdTextureFile|putenv|pwd|python|querySubdiv|quit|rad_to_deg|radial|radioButton|radioButtonGrp|radioCollection|radioMenuItemCollection|rampColorPort|rand|randomizeFollicles|randstate|rangeControl|readTake|rebuildCurve|rebuildSurface|recordAttr|recordDevice|redo|reference|referenceEdit|referenceQuery|refineSubdivSelectionList|refresh|refreshAE|registerPluginResource|rehash|reloadImage|removeJoint|removeMultiInstance|removePanelCategory|rename|renameAttr|renameSelectionList|renameUI|render|renderGlobalsNode|renderInfo|renderLayerButton|renderLayerParent|renderLayerPostProcess|renderLayerUnparent|renderManip|renderPartition|renderQualityNode|renderSettings|renderThumbnailUpdate|renderWindowEditor|renderWindowSelectContext|renderer|reorder|reorderDeformers|requires|reroot|resampleFluid|resetAE|resetPfxToPolyCamera|resetTool|resolutionNode|retarget|reverseCurve|reverseSurface|revolve|rgb_to_hsv|rigidBody|rigidSolver|roll|rollCtx|rootOf|rot|rotate|rotationInterpolation|roundConstantRadius|rowColumnLayout|rowLayout|runTimeCommand|runup|sampleImage|saveAllShelves|saveAttrPreset|saveFluid|saveImage|saveInitialState|saveMenu|savePrefObjects|savePrefs|saveShelf|saveToolSettings|scale|scaleBrushBrightness|scaleComponents|scaleConstraint|scaleKey|scaleKeyCtx|sceneEditor|sceneUIReplacement|scmh|scriptCtx|scriptEditorInfo|scriptJob|scriptNode|scriptTable|scriptToShelf|scriptedPanel|scriptedPanelType|scrollField|scrollLayout|sculpt|searchPathArray|seed|selLoadSettings|select|selectContext|selectCurveCV|selectKey|selectKeyCtx|selectKeyframeRegionCtx|selectMode|selectPref|selectPriority|selectType|selectedNodes|selectionConnection|separator|setAttr|setAttrEnumResource|setAttrMapping|setAttrNiceNameResource|setConstraintRestPosition|setDefaultShadingGroup|setDrivenKeyframe|setDynamic|setEditCtx|setEditor|setFluidAttr|setFocus|setInfinity|setInputDeviceMapping|setKeyCtx|setKeyPath|setKeyframe|setKeyframeBlendshapeTargetWts|setMenuMode|setNodeNiceNameResource|setNodeTypeFlag|setParent|setParticleAttr|setPfxToPolyCamera|setPluginResource|setProject|setStampDensity|setStartupMessage|setState|setToolTo|setUITemplate|setXformManip|sets|shadingConnection|shadingGeometryRelCtx|shadingLightRelCtx|shadingNetworkCompare|shadingNode|shapeCompare|shelfButton|shelfLayout|shelfTabLayout|shellField|shortNameOf|showHelp|showHidden|showManipCtx|showSelectionInTitle|showShadingGroupAttrEditor|showWindow|sign|simplify|sin|singleProfileBirailSurface|size|sizeBytes|skinCluster|skinPercent|smoothCurve|smoothTangentSurface|smoothstep|snap2to2|snapKey|snapMode|snapTogetherCtx|snapshot|soft|softMod|softModCtx|sort|sound|soundControl|source|spaceLocator|sphere|sphrand|spotLight|spotLightPreviewPort|spreadSheetEditor|spring|sqrt|squareSurface|srtContext|stackTrace|startString|startsWith|stitchAndExplodeShell|stitchSurface|stitchSurfacePoints|strcmp|stringArrayCatenate|stringArrayContains|stringArrayCount|stringArrayInsertAtIndex|stringArrayIntersector|stringArrayRemove|stringArrayRemoveAtIndex|stringArrayRemoveDuplicates|stringArrayRemoveExact|stringArrayToString|stringToStringArray|strip|stripPrefixFromName|stroke|subdAutoProjection|subdCleanTopology|subdCollapse|subdDuplicateAndConnect|subdEditUV|subdListComponentConversion|subdMapCut|subdMapSewMove|subdMatchTopology|subdMirror|subdToBlind|subdToPoly|subdTransferUVsToCache|subdiv|subdivCrease|subdivDisplaySmoothness|substitute|substituteAllString|substituteGeometry|substring|surface|surfaceSampler|surfaceShaderList|swatchDisplayPort|switchTable|symbolButton|symbolCheckBox|sysFile|system|tabLayout|tan|tangentConstraint|texLatticeDeformContext|texManipContext|texMoveContext|texMoveUVShellContext|texRotateContext|texScaleContext|texSelectContext|texSelectShortestPathCtx|texSmudgeUVContext|texWinToolCtx|text|textCurves|textField|textFieldButtonGrp|textFieldGrp|textManip|textScrollList|textToShelf|textureDisplacePlane|textureHairColor|texturePlacementContext|textureWindow|threadCount|threePointArcCtx|timeControl|timePort|timerX|toNativePath|toggle|toggleAxis|toggleWindowVisibility|tokenize|tokenizeList|tolerance|tolower|toolButton|toolCollection|toolDropped|toolHasOptions|toolPropertyWindow|torus|toupper|trace|track|trackCtx|transferAttributes|transformCompare|transformLimits|translator|trim|trunc|truncateFluidCache|truncateHairCache|tumble|tumbleCtx|turbulence|twoPointArcCtx|uiRes|uiTemplate|unassignInputDevice|undo|undoInfo|ungroup|uniform|unit|unloadPlugin|untangleUV|untitledFileName|untrim|upAxis|updateAE|userCtx|uvLink|uvSnapshot|validateShelfName|vectorize|view2dToolCtx|viewCamera|viewClipPlane|viewFit|viewHeadOn|viewLookAt|viewManip|viewPlace|viewSet|visor|volumeAxis|vortex|waitCursor|warning|webBrowser|webBrowserPrefs|whatIs|window|windowPref|wire|wireContext|workspace|wrinkle|wrinkleContext|writeTake|xbmLangPathList|xform)\b/,operator:[/\+[+=]?|-[-=]?|&&|\|\||[<>]=|[*\/!=]=?|[%^]/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,:;?\[\](){}]/},t.languages.mel.code.inside.rest=t.languages.mel}return DC}var LC,PF;function FFe(){if(PF)return LC;PF=1,LC=e,e.displayName="mermaid",e.aliases=[];function e(t){t.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}return LC}var FC,DF;function jFe(){if(DF)return FC;DF=1,FC=e,e.displayName="mizar",e.aliases=[];function e(t){t.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}return FC}var jC,LF;function BFe(){if(LF)return jC;LF=1,jC=e,e.displayName="mongodb",e.aliases=[];function e(t){(function(n){var r=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],a=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];r=r.map(function(i){return i.replace("$","\\$")});var o="(?:"+r.join("|")+")\\b";n.languages.mongodb=n.languages.extend("javascript",{}),n.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+o+"(?:\\1)?$")}}}),n.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},n.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+a.join("|")+")\\b"),alias:"keyword"}})})(t)}return jC}var BC,FF;function zFe(){if(FF)return BC;FF=1,BC=e,e.displayName="monkey",e.aliases=[];function e(t){t.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}return BC}var zC,jF;function HFe(){if(jF)return zC;jF=1,zC=e,e.displayName="moonscript",e.aliases=["moon"];function e(t){t.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},t.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=t.languages.moonscript,t.languages.moon=t.languages.moonscript}return zC}var HC,BF;function UFe(){if(BF)return HC;BF=1,HC=e,e.displayName="n1ql",e.aliases=[];function e(t){t.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}return HC}var UC,zF;function VFe(){if(zF)return UC;zF=1,UC=e,e.displayName="n4js",e.aliases=["n4jsd"];function e(t){t.languages.n4js=t.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),t.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),t.languages.n4jsd=t.languages.n4js}return UC}var VC,HF;function WFe(){if(HF)return VC;HF=1,VC=e,e.displayName="nand2tetrisHdl",e.aliases=[];function e(t){t.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}return VC}var WC,UF;function GFe(){if(UF)return WC;UF=1,WC=e,e.displayName="naniscript",e.aliases=[];function e(t){(function(n){var r=/\{[^\r\n\[\]{}]*\}/,a={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:r,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};n.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:r,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:a}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:r,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:a},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},n.languages.nani=n.languages.naniscript,n.hooks.add("after-tokenize",function(s){var c=s.tokens;c.forEach(function(u){if(typeof u!="string"&&u.type==="generic-text"){var d=i(u);o(d)||(u.type="bad-line",u.content=d)}})});function o(s){for(var c="[]{}",u=[],d=0;d=&|$!]/}}return GC}var qC,WF;function KFe(){if(WF)return qC;WF=1,qC=e,e.displayName="neon",e.aliases=[];function e(t){t.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"atrule"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}return qC}var KC,GF;function YFe(){if(GF)return KC;GF=1,KC=e,e.displayName="nevod",e.aliases=[];function e(t){t.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}return KC}var YC,qF;function XFe(){if(qF)return YC;qF=1,YC=e,e.displayName="nginx",e.aliases=[];function e(t){(function(n){var r=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;n.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:r}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:r}},punctuation:/[{};]/}})(t)}return YC}var XC,KF;function ZFe(){if(KF)return XC;KF=1,XC=e,e.displayName="nim",e.aliases=[];function e(t){t.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}return XC}var ZC,YF;function QFe(){if(YF)return ZC;YF=1,ZC=e,e.displayName="nix",e.aliases=[];function e(t){t.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},t.languages.nix.string.inside.interpolation.inside=t.languages.nix}return ZC}var QC,XF;function JFe(){if(XF)return QC;XF=1,QC=e,e.displayName="nsis",e.aliases=[];function e(t){t.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|LabelAddress|TempFileName)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}return QC}var JC,ZF;function eje(){if(ZF)return JC;ZF=1;var e=Kc();JC=t,t.displayName="objectivec",t.aliases=["objc"];function t(n){n.register(e),n.languages.objectivec=n.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete n.languages.objectivec["class-name"],n.languages.objc=n.languages.objectivec}return JC}var eE,QF;function tje(){if(QF)return eE;QF=1,eE=e,e.displayName="ocaml",e.aliases=[];function e(t){t.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}return eE}var tE,JF;function nje(){if(JF)return tE;JF=1;var e=Kc();tE=t,t.displayName="opencl",t.aliases=[];function t(n){n.register(e),function(r){r.languages.opencl=r.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),r.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var a={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};r.languages.insertBefore("c","keyword",a),r.languages.cpp&&(a["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},r.languages.insertBefore("cpp","keyword",a))}(n)}return tE}var nE,ej;function rje(){if(ej)return nE;ej=1,nE=e,e.displayName="openqasm",e.aliases=["qasm"];function e(t){t.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},t.languages.qasm=t.languages.openqasm}return nE}var rE,tj;function aje(){if(tj)return rE;tj=1,rE=e,e.displayName="oz",e.aliases=[];function e(t){t.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}return rE}var aE,nj;function oje(){if(nj)return aE;nj=1,aE=e,e.displayName="parigp",e.aliases=[];function e(t){t.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var n=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return n=n.map(function(r){return r.split("").join(" *")}).join("|"),RegExp("\\b(?:"+n+")\\b")}(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}return aE}var oE,rj;function ije(){if(rj)return oE;rj=1,oE=e,e.displayName="parser",e.aliases=[];function e(t){(function(n){var r=n.languages.parser=n.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});r=n.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:r.keyword,variable:r.variable,function:r.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:r.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:r.punctuation}}}),n.languages.insertBefore("inside","punctuation",{expression:r.expression,keyword:r.keyword,variable:r.variable,function:r.function,escape:r.escape,"parser-punctuation":{pattern:r.punctuation,alias:"punctuation"}},r.tag.inside["attr-value"])})(t)}return oE}var iE,aj;function sje(){if(aj)return iE;aj=1,iE=e,e.displayName="pascal",e.aliases=["objectpascal"];function e(t){t.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},t.languages.pascal.asm.inside=t.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),t.languages.objectpascal=t.languages.pascal}return iE}var sE,oj;function lje(){if(oj)return sE;oj=1,sE=e,e.displayName="pascaligo",e.aliases=[];function e(t){(function(n){var r=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,a=/(?:\b\w+(?:)?|)/.source.replace(//g,function(){return r}),o=n.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)/.source.replace(//g,function(){return a}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/(?=\s+is\b)/.source.replace(//g,function(){return a}),"i"),inside:null},{pattern:RegExp(/(:\s*)/.source.replace(//g,function(){return a})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},i=["comment","keyword","builtin","operator","punctuation"].reduce(function(s,c){return s[c]=o[c],s},{});o["class-name"].forEach(function(s){s.inside=i})})(t)}return sE}var lE,ij;function cje(){if(ij)return lE;ij=1,lE=e,e.displayName="pcaxis",e.aliases=["px"];function e(t){t.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},t.languages.px=t.languages.pcaxis}return lE}var cE,sj;function uje(){if(sj)return cE;sj=1,cE=e,e.displayName="peoplecode",e.aliases=["pcode"];function e(t){t.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},t.languages.pcode=t.languages.peoplecode}return cE}var uE,lj;function dje(){if(lj)return uE;lj=1,uE=e,e.displayName="perl",e.aliases=[];function e(t){(function(n){var r=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;n.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,r].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,r].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,r+/\s*/.source+r].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(t)}return uE}var dE,cj;function fje(){if(cj)return dE;cj=1;var e=By();dE=t,t.displayName="phpExtras",t.aliases=[];function t(n){n.register(e),n.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}return dE}var fE,uj;function pje(){if(uj)return fE;uj=1;var e=By(),t=jy();fE=n,n.displayName="phpdoc",n.aliases=[];function n(r){r.register(e),r.register(t),function(a){var o=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;a.languages.phpdoc=a.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+o+"\\s+)?)\\$\\w+"),lookbehind:!0}}),a.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+o),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),a.languages.javadoclike.addSupport("php",a.languages.phpdoc)}(r)}return fE}var pE,dj;function gje(){if(dj)return pE;dj=1;var e=ek();pE=t,t.displayName="plsql",t.aliases=[];function t(n){n.register(e),n.languages.plsql=n.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),n.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}return pE}var gE,fj;function mje(){if(fj)return gE;fj=1,gE=e,e.displayName="powerquery",e.aliases=[];function e(t){t.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},t.languages.pq=t.languages.powerquery,t.languages.mscript=t.languages.powerquery}return gE}var mE,pj;function hje(){if(pj)return mE;pj=1,mE=e,e.displayName="powershell",e.aliases=[];function e(t){(function(n){var r=n.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};r.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:r},boolean:r.boolean,variable:r.variable}})(t)}return mE}var hE,gj;function vje(){if(gj)return hE;gj=1,hE=e,e.displayName="processing",e.aliases=[];function e(t){t.languages.processing=t.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),t.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}return hE}var vE,mj;function bje(){if(mj)return vE;mj=1,vE=e,e.displayName="prolog",e.aliases=[];function e(t){t.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}return vE}var bE,hj;function yje(){if(hj)return bE;hj=1,bE=e,e.displayName="promql",e.aliases=[];function e(t){(function(n){var r=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],a=["on","ignoring","group_right","group_left","by","without"],o=["offset"],i=r.concat(a,o);n.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+a.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+i.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(t)}return bE}var yE,vj;function Sje(){if(vj)return yE;vj=1,yE=e,e.displayName="properties",e.aliases=[];function e(t){t.languages.properties={comment:/^[ \t]*[#!].*$/m,"attr-value":{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0},"attr-name":/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,punctuation:/[=:]/}}return yE}var SE,bj;function xje(){if(bj)return SE;bj=1,SE=e,e.displayName="protobuf",e.aliases=[];function e(t){(function(n){var r=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;n.languages.protobuf=n.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),n.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:r}},builtin:r,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})})(t)}return SE}var xE,yj;function wje(){if(yj)return xE;yj=1,xE=e,e.displayName="psl",e.aliases=[];function e(t){t.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}return xE}var wE,Sj;function Cje(){if(Sj)return wE;Sj=1,wE=e,e.displayName="pug",e.aliases=[];function e(t){(function(n){n.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:n.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:n.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:n.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:n.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:n.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:n.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:n.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:n.languages.javascript}],punctuation:/[.\-!=|]+/};for(var r=/(^([\t ]*)):(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,a=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],o={},i=0,s=a.length;i",function(){return c.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[c.language,"language-"+c.language],inside:n.languages[c.language]}}})}n.languages.insertBefore("pug","filter",o)})(t)}return wE}var CE,xj;function Eje(){if(xj)return CE;xj=1,CE=e,e.displayName="puppet",e.aliases=[];function e(t){(function(n){n.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var r=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:n.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];n.languages.puppet.heredoc[0].inside.interpolation=r,n.languages.puppet.string.inside["double-quoted"].inside.interpolation=r})(t)}return CE}var EE,wj;function Ije(){if(wj)return EE;wj=1,EE=e,e.displayName="pure",e.aliases=[];function e(t){(function(n){n.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var r=["c",{lang:"c++",alias:"cpp"},"fortran"],a=/%< *-\*- *\d* *-\*-[\s\S]+?%>/.source;r.forEach(function(o){var i=o;if(typeof o!="string"&&(i=o.alias,o=o.lang),n.languages[i]){var s={};s["inline-lang-"+i]={pattern:RegExp(a.replace("",o.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:n.util.clone(n.languages.pure["inline-lang"].inside)},s["inline-lang-"+i].inside.rest=n.util.clone(n.languages[i]),n.languages.insertBefore("pure","inline-lang",s)}}),n.languages.c&&(n.languages.pure["inline-lang"].inside.rest=n.util.clone(n.languages.c))})(t)}return EE}var IE,Cj;function Tje(){if(Cj)return IE;Cj=1,IE=e,e.displayName="purebasic",e.aliases=[];function e(t){t.languages.purebasic=t.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+|-[>-]?|\+\+?|!=?|<>?=?|==?|&&?|\|?\||[~^%?*/@]/}),t.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete t.languages.purebasic["class-name"],delete t.languages.purebasic.boolean,t.languages.pbfasm=t.languages.purebasic}return IE}var TE,Ej;function Rje(){if(Ej)return TE;Ej=1;var e=nk();TE=t,t.displayName="purescript",t.aliases=["purs"];function t(n){n.register(e),n.languages.purescript=n.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[n.languages.haskell.operator[0],n.languages.haskell.operator[2],/[\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\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-\u20bf\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-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\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-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),n.languages.purs=n.languages.purescript}return TE}var RE,Ij;function _je(){if(Ij)return RE;Ij=1,RE=e,e.displayName="python",e.aliases=["py"];function e(t){t.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},t.languages.python["string-interpolation"].inside.interpolation.inside.rest=t.languages.python,t.languages.py=t.languages.python}return RE}var _E,Tj;function $je(){if(Tj)return _E;Tj=1,_E=e,e.displayName="q",e.aliases=[];function e(t){t.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}return _E}var $E,Rj;function Oje(){if(Rj)return $E;Rj=1,$E=e,e.displayName="qml",e.aliases=[];function e(t){(function(n){for(var r=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,a=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,o=/(?:[^\\()[\]{}"'/]||\/(?![*/])||\(*\)|\[*\]|\{*\}|\\[\s\S])/.source.replace(//g,function(){return r}).replace(//g,function(){return a}),i=0;i<2;i++)o=o.replace(//g,function(){return o});o=o.replace(//g,"[^\\s\\S]"),n.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(*\)\s*\{*\}/.source.replace(//g,function(){return o}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:n.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}]))+/.source.replace(//g,function(){return o}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:n.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}})(t)}return $E}var OE,_j;function Nje(){if(_j)return OE;_j=1,OE=e,e.displayName="qore",e.aliases=[];function e(t){t.languages.qore=t.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}return OE}var NE,$j;function kje(){if($j)return NE;$j=1,NE=e,e.displayName="qsharp",e.aliases=["qs"];function e(t){(function(n){function r(h,b){return h.replace(/<<(\d+)>>/g,function(y,S){return"(?:"+b[+S]+")"})}function a(h,b,y){return RegExp(r(h,b),"")}function o(h,b){for(var y=0;y>/g,function(){return"(?:"+h+")"});return h.replace(/<>/g,"[^\\s\\S]")}var i={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function s(h){return"\\b(?:"+h.trim().replace(/ /g,"|")+")\\b"}var c=RegExp(s(i.type+" "+i.other)),u=/\b[A-Za-z_]\w*\b/.source,d=r(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[u]),f={keyword:c,punctuation:/[<>()?,.:[\]]/},p=/"(?:\\.|[^\\"])*"/.source;n.languages.qsharp=n.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:a(/(^|[^$\\])<<0>>/.source,[p]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:a(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[d]),lookbehind:!0,inside:f},{pattern:a(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[d]),lookbehind:!0,inside:f}],keyword:c,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),n.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var g=o(r(/\{(?:[^"{}]|<<0>>|<>)*\}/.source,[p]),2);n.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:a(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[g]),greedy:!0,inside:{interpolation:{pattern:a(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[g]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:n.languages.qsharp}}},string:/[\s\S]+/}}})})(t),t.languages.qs=t.languages.qsharp}return NE}var kE,Oj;function Aje(){if(Oj)return kE;Oj=1,kE=e,e.displayName="r",e.aliases=[];function e(t){t.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}return kE}var AE,Nj;function Mje(){if(Nj)return AE;Nj=1;var e=ik();AE=t,t.displayName="racket",t.aliases=["rkt"];function t(n){n.register(e),n.languages.racket=n.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),n.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),n.languages.rkt=n.languages.racket}return AE}var ME,kj;function Pje(){if(kj)return ME;kj=1,ME=e,e.displayName="reason",e.aliases=[];function e(t){t.languages.reason=t.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),t.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete t.languages.reason.function}return ME}var PE,Aj;function Dje(){if(Aj)return PE;Aj=1,PE=e,e.displayName="regex",e.aliases=[];function e(t){(function(n){var r={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},a=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,o={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},i={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},s="(?:[^\\\\-]|"+a.source+")",c=RegExp(s+"-"+s),u={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};n.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:c,inside:{escape:a,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":r,"char-set":i,escape:a}},"special-escape":r,"char-set":o,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":u}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:a,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}return DE}var LE,Pj;function Fje(){if(Pj)return LE;Pj=1,LE=e,e.displayName="renpy",e.aliases=["rpy"];function e(t){t.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},t.languages.rpy=t.languages.renpy}return LE}var FE,Dj;function jje(){if(Dj)return FE;Dj=1,FE=e,e.displayName="rest",e.aliases=[];function e(t){t.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}return FE}var jE,Lj;function Bje(){if(Lj)return jE;Lj=1,jE=e,e.displayName="rip",e.aliases=[];function e(t){t.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}return jE}var BE,Fj;function zje(){if(Fj)return BE;Fj=1,BE=e,e.displayName="roboconf",e.aliases=[];function e(t){t.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}return BE}var zE,jj;function Hje(){if(jj)return zE;jj=1,zE=e,e.displayName="robotframework",e.aliases=[];function e(t){(function(n){var r={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},a={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function o(u,d){var f={};f["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var p in d)f[p]=d[p];return f.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},f.variable=a,f.comment=r,{pattern:RegExp(/^ ?\*{3}[ \t]*[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(//g,function(){return u}),"im"),alias:"section",inside:f}}var i={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},s={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:a}},c={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:a}};n.languages.robotframework={settings:o("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:o("Variables"),"test-cases":o("Test Cases",{"test-name":s,documentation:i,property:c}),keywords:o("Keywords",{"keyword-name":s,documentation:i,property:c}),tasks:o("Tasks",{"task-name":s,documentation:i,property:c}),comment:r},n.languages.robot=n.languages.robotframework})(t)}return zE}var HE,Bj;function Uje(){if(Bj)return HE;Bj=1,HE=e,e.displayName="rust",e.aliases=[];function e(t){(function(n){for(var r=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source,a=0;a<2;a++)r=r.replace(//g,function(){return r});r=r.replace(//g,function(){return/[^\s\S]/.source}),n.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+r),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},n.languages.rust["closure-params"].inside.rest=n.languages.rust,n.languages.rust.attribute.inside.string=n.languages.rust.string})(t)}return HE}var UE,zj;function Vje(){if(zj)return UE;zj=1,UE=e,e.displayName="sas",e.aliases=[];function e(t){(function(n){var r=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,a=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,o={pattern:RegExp(r+"[bx]"),alias:"number"},i={pattern:/&[a-z_]\w*/i},s={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},c={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},u=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],d={pattern:RegExp(r),greedy:!0},f=/[$%@.(){}\[\];,\\]/,p={pattern:/%?\b\w+(?=\()/,alias:"keyword"},g={function:p,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":i,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:a,"numeric-constant":o,punctuation:f,string:d},h={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},b={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},y={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},S={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},v=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,x={pattern:RegExp(/(^|\s)(?:action\s+)?(?:)\.[a-z]+\b[^;]+/.source.replace(//g,function(){return v}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:)\.[a-z]+\b/.source.replace(//g,function(){return v}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:u,function:p,"arg-value":g["arg-value"],operator:g.operator,argument:g.arg,number:a,"numeric-constant":o,punctuation:f,string:d}},C={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};n.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:|[^;"'])+;/.source.replace(//g,function(){return r}),"im"),alias:"language-sql",inside:n.languages.sql},"global-statements":y,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:a,"numeric-constant":o,punctuation:f,string:d}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return r}),"im"),lookbehind:!0,alias:"language-groovy",inside:n.languages.groovy},keyword:C,"submit-statement":S,"global-statements":y,number:a,"numeric-constant":o,punctuation:f,string:d}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return r}),"im"),lookbehind:!0,alias:"language-lua",inside:n.languages.lua},keyword:C,"submit-statement":S,"global-statements":y,number:a,"numeric-constant":o,punctuation:f,string:d}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:g}},"cas-actions":x,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:g},step:c,keyword:C,function:p,format:h,altformat:b,"global-statements":y,number:a,"numeric-constant":o,punctuation:f,string:d}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|)+;/.source.replace(//g,function(){return r}),"im"),lookbehind:!0,inside:g},"macro-keyword":s,"macro-variable":i,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":s,"macro-variable":i,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:f}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:u,number:a,"numeric-constant":o}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:g},"cas-actions":x,comment:u,function:p,format:h,altformat:b,"numeric-constant":o,datetime:{pattern:RegExp(r+"(?:dt?|t)"),alias:"number"},string:d,step:c,keyword:C,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:a,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:f}})(t)}return UE}var VE,Hj;function Wje(){if(Hj)return VE;Hj=1,VE=e,e.displayName="sass",e.aliases=[];function e(t){(function(n){n.languages.sass=n.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),n.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete n.languages.sass.atrule;var r=/\$[-\w]+|#\{\$[-\w]+\}/,a=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];n.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:r,operator:a}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:r,operator:a,important:n.languages.sass.important}}}),delete n.languages.sass.property,delete n.languages.sass.important,n.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})})(t)}return VE}var WE,Uj;function Gje(){if(Uj)return WE;Uj=1;var e=rk();WE=t,t.displayName="scala",t.aliases=[];function t(n){n.register(e),n.languages.scala=n.languages.extend("java",{"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/<-|=>|\b(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|null|object|override|package|private|protected|return|sealed|self|super|this|throw|trait|try|type|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),n.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.scala}}},string:/[\s\S]+/}}}),delete n.languages.scala["class-name"],delete n.languages.scala.function}return WE}var GE,Vj;function qje(){if(Vj)return GE;Vj=1,GE=e,e.displayName="scss",e.aliases=[];function e(t){t.languages.scss=t.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),t.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),t.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),t.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),t.languages.scss.atrule.inside.rest=t.languages.scss}return GE}var qE,Wj;function Kje(){if(Wj)return qE;Wj=1;var e=nX();qE=t,t.displayName="shellSession",t.aliases=[];function t(n){n.register(e),function(r){var a=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");r.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<>)+/.source.replace(/<>/g,function(){return a}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:r.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},r.languages["sh-session"]=r.languages.shellsession=r.languages["shell-session"]}(n)}return qE}var KE,Gj;function Yje(){if(Gj)return KE;Gj=1,KE=e,e.displayName="smali",e.aliases=[];function e(t){t.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}return KE}var YE,qj;function Xje(){if(qj)return YE;qj=1,YE=e,e.displayName="smalltalk",e.aliases=[];function e(t){t.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}return YE}var XE,Kj;function Zje(){if(Kj)return XE;Kj=1;var e=to();XE=t,t.displayName="smarty",t.aliases=[];function t(n){n.register(e),function(r){r.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:r.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},r.languages.smarty["embedded-php"].inside.smarty.inside=r.languages.smarty,r.languages.smarty.string[0].inside.interpolation.inside.expression.inside=r.languages.smarty;var a=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,o=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']||\{(?:[^{}"']||\{(?:[^{}"']|)*\})*\})*\}/.source.replace(//g,function(){return a.source}),"g");r.hooks.add("before-tokenize",function(i){var s="{literal}",c="{/literal}",u=!1;r.languages["markup-templating"].buildPlaceholders(i,"smarty",o,function(d){return d===c&&(u=!1),u?!1:(d===s&&(u=!0),!0)})}),r.hooks.add("after-tokenize",function(i){r.languages["markup-templating"].tokenizePlaceholders(i,"smarty")})}(n)}return XE}var ZE,Yj;function Qje(){if(Yj)return ZE;Yj=1,ZE=e,e.displayName="sml",e.aliases=["smlnj"];function e(t){(function(n){var r=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;n.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)(?:\s*(?:(?:\*|->)\s*|,\s*(?:(?=)|(?!)\s+)))*/.source.replace(//g,function(){return/\s*(?:[*,]|->)/.source}).replace(//g,function(){return/(?:'[\w']*||\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+)*/.source}).replace(//g,function(){return/(?!)[a-z\d_][\w'.]*/.source}).replace(//g,function(){return r.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:r,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},n.languages.sml["class-name"][0].inside=n.languages.sml,n.languages.smlnj=n.languages.sml})(t)}return ZE}var QE,Xj;function Jje(){if(Xj)return QE;Xj=1,QE=e,e.displayName="solidity",e.aliases=["sol"];function e(t){t.languages.solidity=t.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),t.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|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)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),t.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),t.languages.sol=t.languages.solidity}return QE}var JE,Zj;function e5e(){if(Zj)return JE;Zj=1,JE=e,e.displayName="solutionFile",e.aliases=[];function e(t){(function(n){var r={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};n.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:r}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:r}},guid:r,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},n.languages.sln=n.languages["solution-file"]})(t)}return JE}var e2,Qj;function t5e(){if(Qj)return e2;Qj=1;var e=to();e2=t,t.displayName="soy",t.aliases=[];function t(n){n.register(e),function(r){var a=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,o=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;r.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:a,greedy:!0},number:o,punctuation:/[\[\].?]/}},string:{pattern:a,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:o,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},r.hooks.add("before-tokenize",function(i){var s=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,c="{literal}",u="{/literal}",d=!1;r.languages["markup-templating"].buildPlaceholders(i,"soy",s,function(f){return f===u&&(d=!1),d?!1:(f===c&&(d=!0),!0)})}),r.hooks.add("after-tokenize",function(i){r.languages["markup-templating"].tokenizePlaceholders(i,"soy")})}(n)}return e2}var t2,Jj;function iX(){if(Jj)return t2;Jj=1,t2=e,e.displayName="turtle",e.aliases=[];function e(t){t.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},t.languages.trig=t.languages.turtle}return t2}var n2,e5;function n5e(){if(e5)return n2;e5=1;var e=iX();n2=t,t.displayName="sparql",t.aliases=["rq"];function t(n){n.register(e),n.languages.sparql=n.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),n.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),n.languages.rq=n.languages.sparql}return n2}var r2,t5;function r5e(){if(t5)return r2;t5=1,r2=e,e.displayName="splunkSpl",e.aliases=[];function e(t){t.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}return r2}var a2,n5;function a5e(){if(n5)return a2;n5=1,a2=e,e.displayName="sqf",e.aliases=[];function e(t){t.languages.sqf=t.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),t.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:t.languages.sqf.comment}}}),delete t.languages.sqf["class-name"]}return a2}var o2,r5;function o5e(){if(r5)return o2;r5=1,o2=e,e.displayName="squirrel",e.aliases=[];function e(t){t.languages.squirrel=t.languages.extend("clike",{comment:[t.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),t.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),t.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}return o2}var i2,a5;function i5e(){if(a5)return i2;a5=1,i2=e,e.displayName="stan",e.aliases=[];function e(t){(function(n){var r=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;n.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+r.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,r],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},n.languages.stan.constraint.inside.expression.inside=n.languages.stan})(t)}return i2}var s2,o5;function s5e(){if(o5)return s2;o5=1,s2=e,e.displayName="stylus",e.aliases=[];function e(t){(function(n){var r={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},a={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},o={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:r,number:a,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:a,punctuation:/[{}()\[\];:,]/};o.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:o}},o.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:o}},n.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:o}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:o}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:o}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:o.interpolation}},rest:o}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:o.interpolation,comment:o.comment,punctuation:/[{},]/}},func:o.func,string:o.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:o.interpolation,punctuation:/[{}()\[\];:.]/}})(t)}return s2}var l2,i5;function l5e(){if(i5)return l2;i5=1,l2=e,e.displayName="swift",e.aliases=[];function e(t){t.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},t.languages.swift["string-literal"].forEach(function(n){n.inside.interpolation.inside=t.languages.swift})}return l2}var c2,s5;function c5e(){if(s5)return c2;s5=1,c2=e,e.displayName="systemd",e.aliases=[];function e(t){(function(n){var r={pattern:/^[;#].*/m,greedy:!0},a=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;n.languages.systemd={comment:r,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+a+`|(?=[^"\r -]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+a+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:r,quoted:{pattern:RegExp(/(^|\s)/.source+a),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(t)}return c2}var u2,l5;function sk(){if(l5)return u2;l5=1,u2=e,e.displayName="t4Templating",e.aliases=[];function e(t){(function(n){function r(o,i,s){return{pattern:RegExp("<#"+o+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+o+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:i,alias:s}}}}function a(o){var i=n.languages[o],s="language-"+o;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:r("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:r("=",i,s),"class-feature":r("\\+",i,s),standard:r("",i,s)}}}}n.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:a})})(t)}return u2}var d2,c5;function u5e(){if(c5)return d2;c5=1;var e=sk(),t=Ly();d2=n,n.displayName="t4Cs",n.aliases=[];function n(r){r.register(e),r.register(t),r.languages.t4=r.languages["t4-cs"]=r.languages["t4-templating"].createT4("csharp")}return d2}var f2,u5;function sX(){if(u5)return f2;u5=1;var e=rX();f2=t,t.displayName="vbnet",t.aliases=[];function t(n){n.register(e),n.languages.vbnet=n.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}return f2}var p2,d5;function d5e(){if(d5)return p2;d5=1;var e=sk(),t=sX();p2=n,n.displayName="t4Vb",n.aliases=[];function n(r){r.register(e),r.register(t),r.languages["t4-vb"]=r.languages["t4-templating"].createT4("vbnet")}return p2}var g2,f5;function lX(){if(f5)return g2;f5=1,g2=e,e.displayName="yaml",e.aliases=["yml"];function e(t){(function(n){var r=/[*&][^\s[\]{},]+/,a=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,o="(?:"+a.source+"(?:[ ]+"+r.source+")?|"+r.source+"(?:[ ]+"+a.source+")?)",i=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),s=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function c(u,d){d=(d||"").replace(/m/g,"")+"m";var f=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return o}).replace(/<>/g,function(){return u});return RegExp(f,d)}n.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return o})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return o}).replace(/<>/g,function(){return"(?:"+i+"|"+s+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:c(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:c(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:c(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:c(s),lookbehind:!0,greedy:!0},number:{pattern:c(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:a,important:r,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},n.languages.yml=n.languages.yaml})(t)}return g2}var m2,p5;function f5e(){if(p5)return m2;p5=1;var e=lX();m2=t,t.displayName="tap",t.aliases=[];function t(n){n.register(e),n.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:n.languages.yaml,alias:"language-yaml"}}}return m2}var h2,g5;function p5e(){if(g5)return h2;g5=1,h2=e,e.displayName="tcl",e.aliases=[];function e(t){t.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}return h2}var v2,m5;function g5e(){if(m5)return v2;m5=1,v2=e,e.displayName="textile",e.aliases=[];function e(t){(function(n){var r=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,a=/\)|\((?![^|()\n]+\))/.source;function o(p,g){return RegExp(p.replace(//g,function(){return"(?:"+r+")"}).replace(//g,function(){return"(?:"+a+")"}),g||"")}var i={css:{pattern:/\{[^{}]+\}/,inside:{rest:n.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},s=n.languages.textile=n.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:o(/^[a-z]\w*(?:||[<>=])*\./.source),inside:{modifier:{pattern:o(/(^[a-z]\w*)(?:||[<>=])+(?=\.)/.source),lookbehind:!0,inside:i},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:o(/^[*#]+*\s+\S.*/.source,"m"),inside:{modifier:{pattern:o(/(^[*#]+)+/.source),lookbehind:!0,inside:i},punctuation:/^[*#]+/}},table:{pattern:o(/^(?:(?:||[<>=^~])+\.\s*)?(?:\|(?:(?:||[<>=^~_]|[\\/]\d+)+\.|(?!(?:||[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:o(/(^|\|(?:\r?\n|\r)?)(?:||[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:i},punctuation:/\||^\./}},inline:{pattern:o(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:o(/(^(\*\*?)*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:o(/(^(__?)*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:o(/(^\?\?*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:o(/(^@*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:o(/(^\+*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:o(/(^-*).+?(?=-)/.source),lookbehind:!0},span:{pattern:o(/(^%*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:o(/(^\*\*|__|\?\?|[*_%@+\-^~])+/.source),lookbehind:!0,inside:i},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:o(/"*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:o(/(^"*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:o(/(^")+/.source),lookbehind:!0,inside:i},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:o(/!(?:||[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:o(/(^!(?:||[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:o(/(^!)(?:||[<>=])+/.source),lookbehind:!0,inside:i},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),c=s.phrase.inside,u={inline:c.inline,link:c.link,image:c.image,footnote:c.footnote,acronym:c.acronym,mark:c.mark};s.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var d=c.inline.inside;d.bold.inside=u,d.italic.inside=u,d.inserted.inside=u,d.deleted.inside=u,d.span.inside=u;var f=c.table.inside;f.inline=u.inline,f.link=u.link,f.image=u.image,f.footnote=u.footnote,f.acronym=u.acronym,f.mark=u.mark})(t)}return v2}var b2,h5;function m5e(){if(h5)return b2;h5=1,b2=e,e.displayName="toml",e.aliases=[];function e(t){(function(n){var r=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function a(o){return o.replace(/__/g,function(){return r})}n.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(a(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(a(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(t)}return b2}var y2,v5;function h5e(){if(v5)return y2;v5=1,y2=e,e.displayName="tremor",e.aliases=[];function e(t){(function(n){n.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var r=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;n.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+r+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+r+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(r),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.tremor}}},string:/[\s\S]+/}},n.languages.troy=n.languages.tremor,n.languages.trickle=n.languages.tremor})(t)}return y2}var S2,b5;function v5e(){if(b5)return S2;b5=1;var e=oX(),t=ak();S2=n,n.displayName="tsx",n.aliases=[];function n(r){r.register(e),r.register(t),function(a){var o=a.util.clone(a.languages.typescript);a.languages.tsx=a.languages.extend("jsx",o),delete a.languages.tsx.parameter,delete a.languages.tsx["literal-property"];var i=a.languages.tsx.tag;i.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+i.pattern.source+")",i.pattern.flags),i.lookbehind=!0}(r)}return S2}var x2,y5;function b5e(){if(y5)return x2;y5=1;var e=to();x2=t,t.displayName="tt2",t.aliases=[];function t(n){n.register(e),function(r){r.languages.tt2=r.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),r.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),r.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),r.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete r.languages.tt2.string,r.hooks.add("before-tokenize",function(a){var o=/\[%[\s\S]+?%\]/g;r.languages["markup-templating"].buildPlaceholders(a,"tt2",o)}),r.hooks.add("after-tokenize",function(a){r.languages["markup-templating"].tokenizePlaceholders(a,"tt2")})}(n)}return x2}var w2,S5;function y5e(){if(S5)return w2;S5=1;var e=to();w2=t,t.displayName="twig",t.aliases=[];function t(n){n.register(e),n.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},n.hooks.add("before-tokenize",function(r){if(r.language==="twig"){var a=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;n.languages["markup-templating"].buildPlaceholders(r,"twig",a)}}),n.hooks.add("after-tokenize",function(r){n.languages["markup-templating"].tokenizePlaceholders(r,"twig")})}return w2}var C2,x5;function S5e(){if(x5)return C2;x5=1,C2=e,e.displayName="typoscript",e.aliases=["tsconfig"];function e(t){(function(n){var r=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;n.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern://,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:r}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:r,number:/^\d+$/,punctuation:/[,|:]/}},keyword:r,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},n.languages.tsconfig=n.languages.typoscript})(t)}return C2}var E2,w5;function x5e(){if(w5)return E2;w5=1,E2=e,e.displayName="unrealscript",e.aliases=["uc","uscript"];function e(t){t.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},t.languages.uc=t.languages.uscript=t.languages.unrealscript}return E2}var I2,C5;function w5e(){if(C5)return I2;C5=1,I2=e,e.displayName="uorazor",e.aliases=[];function e(t){t.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}return I2}var T2,E5;function C5e(){if(E5)return T2;E5=1,T2=e,e.displayName="uri",e.aliases=["url"];function e(t){t.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},t.languages.url=t.languages.uri}return T2}var R2,I5;function E5e(){if(I5)return R2;I5=1,R2=e,e.displayName="v",e.aliases=[];function e(t){(function(n){var r={pattern:/[\s\S]+/,inside:null};n.languages.v=n.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":r}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),r.inside=n.languages.v,n.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),n.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),n.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:n.languages.v.generic.inside}}}})})(t)}return R2}var _2,T5;function I5e(){if(T5)return _2;T5=1,_2=e,e.displayName="vala",e.aliases=[];function e(t){t.languages.vala=t.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),t.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:t.languages.vala}},string:/[\s\S]+/}}}),t.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}return _2}var $2,R5;function T5e(){if(R5)return $2;R5=1,$2=e,e.displayName="velocity",e.aliases=[];function e(t){(function(n){n.languages.velocity=n.languages.extend("markup",{});var r={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};r.variable.inside={string:r.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:r.number,boolean:r.boolean,punctuation:r.punctuation},n.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:r}},variable:r.variable}),n.languages.velocity.tag.inside["attr-value"].inside.rest=n.languages.velocity})(t)}return $2}var O2,_5;function R5e(){if(_5)return O2;_5=1,O2=e,e.displayName="verilog",e.aliases=[];function e(t){t.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}return O2}var N2,$5;function _5e(){if($5)return N2;$5=1,N2=e,e.displayName="vhdl",e.aliases=[];function e(t){t.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,constant:/\b(?:library|use)\b/i,keyword:/\b(?:'active|'ascending|'base|'delayed|'driving|'driving_value|'event|'high|'image|'instance_name|'last_active|'last_event|'last_value|'left|'leftof|'length|'low|'path_name|'pos|'pred|'quiet|'range|'reverse_range|'right|'rightof|'simple_name|'stable|'succ|'transaction|'val|'value|access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}return N2}var k2,O5;function $5e(){if(O5)return k2;O5=1,k2=e,e.displayName="vim",e.aliases=[];function e(t){t.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}return k2}var A2,N5;function O5e(){if(N5)return A2;N5=1,A2=e,e.displayName="visualBasic",e.aliases=[];function e(t){t.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},t.languages.vb=t.languages["visual-basic"],t.languages.vba=t.languages["visual-basic"]}return A2}var M2,k5;function N5e(){if(k5)return M2;k5=1,M2=e,e.displayName="warpscript",e.aliases=[];function e(t){t.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}return M2}var P2,A5;function k5e(){if(A5)return P2;A5=1,P2=e,e.displayName="wasm",e.aliases=[];function e(t){t.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}return P2}var D2,M5;function A5e(){if(M5)return D2;M5=1,D2=e,e.displayName="webIdl",e.aliases=[];function e(t){(function(n){var r=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,a="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+r+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,o={};n.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+r),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:o},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+a),lookbehind:!0,inside:o},{pattern:RegExp("("+/\bcallback\s+/.source+r+/\s*=\s*/.source+")"+a),lookbehind:!0,inside:o},{pattern:RegExp(/(\btypedef\b\s*)/.source+a),lookbehind:!0,inside:o},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+r),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+r),lookbehind:!0},RegExp(r+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+r),lookbehind:!0},{pattern:RegExp(a+"(?="+/\s*(?:\.{3}\s*)?/.source+r+/\s*[(),;=]/.source+")"),inside:o}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var i in n.languages["web-idl"])i!=="class-name"&&(o[i]=n.languages["web-idl"][i]);n.languages.webidl=n.languages["web-idl"]})(t)}return D2}var L2,P5;function M5e(){if(P5)return L2;P5=1,L2=e,e.displayName="wiki",e.aliases=[];function e(t){t.languages.wiki=t.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:t.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),t.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:t.languages.markup.tag.inside}}}})}return L2}var F2,D5;function P5e(){if(D5)return F2;D5=1,F2=e,e.displayName="wolfram",e.aliases=["mathematica","wl","nb"];function e(t){t.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\^|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},t.languages.mathematica=t.languages.wolfram,t.languages.wl=t.languages.wolfram,t.languages.nb=t.languages.wolfram}return F2}var j2,L5;function D5e(){if(L5)return j2;L5=1,j2=e,e.displayName="wren",e.aliases=[];function e(t){t.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},t.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:t.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}return j2}var B2,F5;function L5e(){if(F5)return B2;F5=1,B2=e,e.displayName="xeora",e.aliases=["xeoracube"];function e(t){(function(n){n.languages.xeora=n.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),n.languages.insertBefore("inside","punctuation",{variable:n.languages.xeora["function-inline"].inside.variable},n.languages.xeora["function-block"]),n.languages.xeoracube=n.languages.xeora})(t)}return B2}var z2,j5;function F5e(){if(j5)return z2;j5=1,z2=e,e.displayName="xmlDoc",e.aliases=[];function e(t){(function(n){function r(s,c){n.languages[s]&&n.languages.insertBefore(s,"comment",{"doc-comment":c})}var a=n.languages.markup.tag,o={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:a}},i={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:a}};r("csharp",o),r("fsharp",o),r("vbnet",i)})(t)}return z2}var H2,B5;function j5e(){if(B5)return H2;B5=1,H2=e,e.displayName="xojo",e.aliases=[];function e(t){t.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}return H2}var U2,z5;function B5e(){if(z5)return U2;z5=1,U2=e,e.displayName="xquery",e.aliases=[];function e(t){(function(n){n.languages.xquery=n.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),n.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,n.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,n.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,n.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:n.languages.xquery,alias:"language-xquery"};var r=function(o){return typeof o=="string"?o:typeof o.content=="string"?o.content:o.content.map(r).join("")},a=function(o){for(var i=[],s=0;s0&&i[i.length-1].tagName===r(c.content[0].content[1])&&i.pop():c.content[c.content.length-1].content==="/>"||i.push({tagName:r(c.content[0].content[1]),openedBraces:0}):i.length>0&&c.type==="punctuation"&&c.content==="{"&&(!o[s+1]||o[s+1].type!=="punctuation"||o[s+1].content!=="{")&&(!o[s-1]||o[s-1].type!=="plain-text"||o[s-1].content!=="{")?i[i.length-1].openedBraces++:i.length>0&&i[i.length-1].openedBraces>0&&c.type==="punctuation"&&c.content==="}"?i[i.length-1].openedBraces--:c.type!=="comment"&&(u=!0)),(u||typeof c=="string")&&i.length>0&&i[i.length-1].openedBraces===0){var d=r(c);s0&&(typeof o[s-1]=="string"||o[s-1].type==="plain-text")&&(d=r(o[s-1])+d,o.splice(s-1,1),s--),/^\s+$/.test(d)?o[s]=d:o[s]=new n.Token("plain-text",d,null,d)}c.content&&typeof c.content!="string"&&a(c.content)}};n.hooks.add("after-tokenize",function(o){o.language==="xquery"&&a(o.tokens)})})(t)}return U2}var V2,H5;function z5e(){if(H5)return V2;H5=1,V2=e,e.displayName="yang",e.aliases=[];function e(t){t.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}return V2}var W2,U5;function H5e(){if(U5)return W2;U5=1,W2=e,e.displayName="zig",e.aliases=[];function e(t){(function(n){function r(d){return function(){return d}}var a=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,o="\\b(?!"+a.source+")(?!\\d)\\w+\\b",i=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,s=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,r(i)),c=/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,r(o)),u="(?!\\s)(?:!?\\s*(?:"+s+"\\s*)*"+c+")+";n.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)(?=\s*(?:\s*)?[=;,)])|(?=\s*(?:\s*)?\{)/.source.replace(//g,r(u)).replace(//g,r(i))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,r(u)).replace(//g,r(i))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:a,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},n.languages.zig["class-name"].forEach(function(d){d.inside===null&&(d.inside=n.languages.zig)})})(t)}return W2}var de=XLe,U5e=de;de.register(s6e());de.register(l6e());de.register(c6e());de.register(u6e());de.register(d6e());de.register(f6e());de.register(p6e());de.register(g6e());de.register(m6e());de.register(h6e());de.register(v6e());de.register(b6e());de.register(y6e());de.register(S6e());de.register(x6e());de.register(w6e());de.register(C6e());de.register(E6e());de.register(I6e());de.register(T6e());de.register(R6e());de.register(_6e());de.register(nX());de.register(rX());de.register($6e());de.register(O6e());de.register(N6e());de.register(k6e());de.register(A6e());de.register(M6e());de.register(P6e());de.register(D6e());de.register(L6e());de.register(F6e());de.register(Kc());de.register(j6e());de.register(B6e());de.register(z6e());de.register(H6e());de.register(U6e());de.register(V6e());de.register(W6e());de.register(G6e());de.register(q6e());de.register(tk());de.register(K6e());de.register(Ly());de.register(Y6e());de.register(X6e());de.register(Z6e());de.register(Q6e());de.register(J6e());de.register(e8e());de.register(t8e());de.register(n8e());de.register(r8e());de.register(a8e());de.register(o8e());de.register(i8e());de.register(s8e());de.register(l8e());de.register(c8e());de.register(u8e());de.register(d8e());de.register(f8e());de.register(p8e());de.register(g8e());de.register(m8e());de.register(h8e());de.register(v8e());de.register(b8e());de.register(y8e());de.register(S8e());de.register(x8e());de.register(w8e());de.register(C8e());de.register(E8e());de.register(I8e());de.register(T8e());de.register(R8e());de.register(_8e());de.register($8e());de.register(O8e());de.register(N8e());de.register(k8e());de.register(A8e());de.register(M8e());de.register(P8e());de.register(D8e());de.register(L8e());de.register(F8e());de.register(j8e());de.register(B8e());de.register(z8e());de.register(nk());de.register(H8e());de.register(U8e());de.register(V8e());de.register(W8e());de.register(G8e());de.register(q8e());de.register(K8e());de.register(Y8e());de.register(X8e());de.register(Z8e());de.register(Q8e());de.register(J8e());de.register(eFe());de.register(tFe());de.register(nFe());de.register(rFe());de.register(aFe());de.register(rk());de.register(oFe());de.register(jy());de.register(iFe());de.register(sFe());de.register(lFe());de.register(cFe());de.register(uFe());de.register(dFe());de.register(fFe());de.register(ok());de.register(pFe());de.register(gFe());de.register(mFe());de.register(oX());de.register(hFe());de.register(vFe());de.register(bFe());de.register(yFe());de.register(SFe());de.register(xFe());de.register(wFe());de.register(CFe());de.register(EFe());de.register(IFe());de.register(TFe());de.register(RFe());de.register(_Fe());de.register($Fe());de.register(OFe());de.register(NFe());de.register(aX());de.register(kFe());de.register(AFe());de.register(MFe());de.register(to());de.register(PFe());de.register(DFe());de.register(LFe());de.register(FFe());de.register(jFe());de.register(BFe());de.register(zFe());de.register(HFe());de.register(UFe());de.register(VFe());de.register(WFe());de.register(GFe());de.register(qFe());de.register(KFe());de.register(YFe());de.register(XFe());de.register(ZFe());de.register(QFe());de.register(JFe());de.register(eje());de.register(tje());de.register(nje());de.register(rje());de.register(aje());de.register(oje());de.register(ije());de.register(sje());de.register(lje());de.register(cje());de.register(uje());de.register(dje());de.register(fje());de.register(By());de.register(pje());de.register(gje());de.register(mje());de.register(hje());de.register(vje());de.register(bje());de.register(yje());de.register(Sje());de.register(xje());de.register(wje());de.register(Cje());de.register(Eje());de.register(Ije());de.register(Tje());de.register(Rje());de.register(_je());de.register($je());de.register(Oje());de.register(Nje());de.register(kje());de.register(Aje());de.register(Mje());de.register(Pje());de.register(Dje());de.register(Lje());de.register(Fje());de.register(jje());de.register(Bje());de.register(zje());de.register(Hje());de.register(Fy());de.register(Uje());de.register(Vje());de.register(Wje());de.register(Gje());de.register(ik());de.register(qje());de.register(Kje());de.register(Yje());de.register(Xje());de.register(Zje());de.register(Qje());de.register(Jje());de.register(e5e());de.register(t5e());de.register(n5e());de.register(r5e());de.register(a5e());de.register(ek());de.register(o5e());de.register(i5e());de.register(s5e());de.register(l5e());de.register(c5e());de.register(u5e());de.register(sk());de.register(d5e());de.register(f5e());de.register(p5e());de.register(g5e());de.register(m5e());de.register(h5e());de.register(v5e());de.register(b5e());de.register(iX());de.register(y5e());de.register(ak());de.register(S5e());de.register(x5e());de.register(w5e());de.register(C5e());de.register(E5e());de.register(I5e());de.register(sX());de.register(T5e());de.register(R5e());de.register(_5e());de.register($5e());de.register(O5e());de.register(N5e());de.register(k5e());de.register(A5e());de.register(M5e());de.register(P5e());de.register(D5e());de.register(L5e());de.register(F5e());de.register(j5e());de.register(B5e());de.register(lX());de.register(z5e());de.register(H5e());const V5e=Ma(U5e);var lk=FMe(V5e,i6e);lk.supportedLanguages=zMe;const cX={'code[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"]::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},prolog:{color:"hsl(220, 10%, 40%)"},cdata:{color:"hsl(220, 10%, 40%)"},doctype:{color:"hsl(220, 14%, 71%)"},punctuation:{color:"hsl(220, 14%, 71%)"},entity:{color:"hsl(220, 14%, 71%)",cursor:"help"},"attr-name":{color:"hsl(29, 54%, 61%)"},"class-name":{color:"hsl(29, 54%, 61%)"},boolean:{color:"hsl(29, 54%, 61%)"},constant:{color:"hsl(29, 54%, 61%)"},number:{color:"hsl(29, 54%, 61%)"},atrule:{color:"hsl(29, 54%, 61%)"},keyword:{color:"hsl(286, 60%, 67%)"},property:{color:"hsl(355, 65%, 65%)"},tag:{color:"hsl(355, 65%, 65%)"},symbol:{color:"hsl(355, 65%, 65%)"},deleted:{color:"hsl(355, 65%, 65%)"},important:{color:"hsl(355, 65%, 65%)"},selector:{color:"hsl(95, 38%, 62%)"},string:{color:"hsl(95, 38%, 62%)"},char:{color:"hsl(95, 38%, 62%)"},builtin:{color:"hsl(95, 38%, 62%)"},inserted:{color:"hsl(95, 38%, 62%)"},regex:{color:"hsl(95, 38%, 62%)"},"attr-value":{color:"hsl(95, 38%, 62%)"},"attr-value > .token.punctuation":{color:"hsl(95, 38%, 62%)"},variable:{color:"hsl(207, 82%, 66%)"},operator:{color:"hsl(207, 82%, 66%)"},function:{color:"hsl(207, 82%, 66%)"},url:{color:"hsl(187, 47%, 55%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(220, 14%, 71%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(220, 14%, 71%)"},".language-css .token.selector":{color:"hsl(355, 65%, 65%)"},".language-css .token.property":{color:"hsl(220, 14%, 71%)"},".language-css .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.string.url":{color:"hsl(95, 38%, 62%)"},".language-css .token.important":{color:"hsl(286, 60%, 67%)"},".language-css .token.atrule .token.rule":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.operator":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(5, 48%, 51%)"},".language-json .token.operator":{color:"hsl(220, 14%, 71%)"},".language-json .token.null.keyword":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.url":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.operator":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.content":{color:"hsl(207, 82%, 66%)"},".language-markdown .token.url > .token.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.url-reference.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(95, 38%, 62%)"},".language-markdown .token.bold .token.content":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.italic .token.content":{color:"hsl(286, 60%, 67%)"},".language-markdown .token.strike .token.content":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.list.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(355, 65%, 65%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.cr:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.lf:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.space:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},".line-highlight.line-highlight":{background:"hsla(220, 100%, 80%, 0.04)"},".line-highlight.line-highlight:before":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(220, 100%, 80%, 0.04)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".command-line .command-line-prompt":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(220, 14%, 45%)"},".command-line .command-line-prompt > span:before":{color:"hsl(220, 14%, 45%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(286, 60%, 67%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(224, 13%, 17%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(224, 13%, 17%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(224, 13%, 17%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(224, 13%, 17%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(219, 13%, 22%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(220, 14%, 71%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(220, 14%, 71%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(220, 14%, 71%)"}},uX={'code[class*="language-"]':{background:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"] *::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"]::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"] *::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'pre[class*="language-"] *::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},prolog:{color:"hsl(230, 4%, 64%)"},cdata:{color:"hsl(230, 4%, 64%)"},doctype:{color:"hsl(230, 8%, 24%)"},punctuation:{color:"hsl(230, 8%, 24%)"},entity:{color:"hsl(230, 8%, 24%)",cursor:"help"},"attr-name":{color:"hsl(35, 99%, 36%)"},"class-name":{color:"hsl(35, 99%, 36%)"},boolean:{color:"hsl(35, 99%, 36%)"},constant:{color:"hsl(35, 99%, 36%)"},number:{color:"hsl(35, 99%, 36%)"},atrule:{color:"hsl(35, 99%, 36%)"},keyword:{color:"hsl(301, 63%, 40%)"},property:{color:"hsl(5, 74%, 59%)"},tag:{color:"hsl(5, 74%, 59%)"},symbol:{color:"hsl(5, 74%, 59%)"},deleted:{color:"hsl(5, 74%, 59%)"},important:{color:"hsl(5, 74%, 59%)"},selector:{color:"hsl(119, 34%, 47%)"},string:{color:"hsl(119, 34%, 47%)"},char:{color:"hsl(119, 34%, 47%)"},builtin:{color:"hsl(119, 34%, 47%)"},inserted:{color:"hsl(119, 34%, 47%)"},regex:{color:"hsl(119, 34%, 47%)"},"attr-value":{color:"hsl(119, 34%, 47%)"},"attr-value > .token.punctuation":{color:"hsl(119, 34%, 47%)"},variable:{color:"hsl(221, 87%, 60%)"},operator:{color:"hsl(221, 87%, 60%)"},function:{color:"hsl(221, 87%, 60%)"},url:{color:"hsl(198, 99%, 37%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(230, 8%, 24%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(230, 8%, 24%)"},".language-css .token.selector":{color:"hsl(5, 74%, 59%)"},".language-css .token.property":{color:"hsl(230, 8%, 24%)"},".language-css .token.function":{color:"hsl(198, 99%, 37%)"},".language-css .token.url > .token.function":{color:"hsl(198, 99%, 37%)"},".language-css .token.url > .token.string.url":{color:"hsl(119, 34%, 47%)"},".language-css .token.important":{color:"hsl(301, 63%, 40%)"},".language-css .token.atrule .token.rule":{color:"hsl(301, 63%, 40%)"},".language-javascript .token.operator":{color:"hsl(301, 63%, 40%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(344, 84%, 43%)"},".language-json .token.operator":{color:"hsl(230, 8%, 24%)"},".language-json .token.null.keyword":{color:"hsl(35, 99%, 36%)"},".language-markdown .token.url":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url > .token.operator":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url > .token.content":{color:"hsl(221, 87%, 60%)"},".language-markdown .token.url > .token.url":{color:"hsl(198, 99%, 37%)"},".language-markdown .token.url-reference.url":{color:"hsl(198, 99%, 37%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(119, 34%, 47%)"},".language-markdown .token.bold .token.content":{color:"hsl(35, 99%, 36%)"},".language-markdown .token.italic .token.content":{color:"hsl(301, 63%, 40%)"},".language-markdown .token.strike .token.content":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.list.punctuation":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(5, 74%, 59%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.cr:before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.lf:before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.space:before":{color:"hsla(230, 8%, 24%, 0.2)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},".line-highlight.line-highlight":{background:"hsla(230, 8%, 24%, 0.05)"},".line-highlight.line-highlight:before":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 8%, 24%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 8%, 24%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(230, 8%, 24%, 0.05)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(230, 8%, 24%, 0.2)"},".command-line .command-line-prompt":{borderRightColor:"hsla(230, 8%, 24%, 0.2)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(230, 1%, 62%)"},".command-line .command-line-prompt > span:before":{color:"hsl(230, 1%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(301, 63%, 40%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(301, 63%, 40%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(301, 63%, 40%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(0, 0, 95%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(0, 0, 95%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(0, 0, 95%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(0, 0, 95%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(0, 0%, 100%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(0, 0%, 100%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(0, 0%, 100%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(230, 8%, 24%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(230, 8%, 24%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(230, 8%, 24%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(230, 8%, 24%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(230, 8%, 24%)"}},{Paragraph:V5,Text:W5e}=bn,G5e=()=>{const{t:e}=Nt(),[t,n]=l.useState([]),r=l.useRef(null),[a,o]=l.useState(!1),i=f=>{let p="";for(let g=0;g=32&&b<=126?p+=String.fromCharCode(b):p+="."}return p},s=f=>{let p="";for(let b=0;b=h&&(g=g-2*h),g},c={"15-15452":f=>{if(f.length===16){const p=f.slice(8)+f.slice(0,8);n(g=>[...g,`UnknownTag | ${p}`])}else console.log(`Incorrect payload length for '${f}'. Unable to rearrange.`)},"15-16065":f=>{if(f.length===16){const p=f.slice(8)+f.slice(0,8);n(g=>[...g,`KnownTag | ${p}`])}else console.log(`Incorrect payload length for '${f}'. Unable to rearrange.`)},"12-15427":f=>{if(f.length===8){const p=s(f);n(g=>[...g,`UpsideState | ${p}`])}else console.log(`Incorrect payload length for '${f}'. Unable to rearrange.`)},"12-15426":f=>{if(f.length===8){const p=s(f);n(g=>[...g,`UprightState | ${p}`])}else console.log(`Incorrect payload length for '${f}'. Unable to rearrange.`)}};l.useEffect(()=>{if(a){const f=new EventSource("/api/sse");return f.onopen=()=>{console.log("Connection established.")},f.addEventListener("keep-alive",p=>{console.log("keep-alive event received:",p)}),f.addEventListener("pressed",p=>{const g=JSON.parse(p.data);n(h=>[...h,"Pressed: "+g.data])}),f.addEventListener("rtnl-raw-log2",p=>{const g=JSON.parse(p.data),h=`${"Raw2 | #"+g.data.sequence+" Uptime: "+g.data.uptime+" Func: "+g.data.function_group.toString().padStart(2," ")+"-"+g.data.function+" Payload: '"+g.data.field6+"' ASCII: '"+i(g.data.field6)+"'"}`;n(y=>[...y,h]);const b=`${g.data.function_group.toString().padStart(2," ")}-${g.data.function}`;c[b]&&c[b](g.data.field6)}),f.addEventListener("rtnl-raw-log3",p=>{const g=JSON.parse(p.data);n(h=>[...h,"Raw3 | Datetime: "+g.data.datetime+" Unknown: "+g.data.field2])}),f.onerror=p=>{console.error("EventSource failed:",p)},()=>{console.log("Connection closed."),f.close()}}else return},[a]),l.useEffect(()=>{r.current&&(r.current.scrollTop=r.current.scrollHeight)},[t]);const u=f=>{o(f)},d=()=>{n([])};return m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(Nd,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(Nd,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")},{title:e("settings.rtnl.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsx("h1",{children:e("settings.rtnl.title")}),m.jsxs(V5,{style:{margin:"8px 0"},children:[m.jsxs(V5,{children:[m.jsx(za,{checked:a,onChange:u,style:{marginRight:8}}),m.jsx(W5e,{children:e("settings.rtnl.enableRtnl")})]}),m.jsx(Rr,{children:e("settings.rtnl.title")}),m.jsx("div",{ref:r,style:{minHeight:"max(40vh, 333px)",maxHeight:"max(40vh, 333px)",overflow:"auto",padding:1,background:vs()==="dark"?"hsl(220, 13%, 18%)":"hsl(230, 1%, 98%)"},children:m.jsx(lk,{language:"log",style:vs()==="dark"?cX:uX,customStyle:{borderRadius:0,margin:0,border:"none"},children:t.join(` -`)})}),m.jsx(ut,{onClick:d,style:{marginTop:8},children:e("settings.rtnl.clear")})]})]})]})]})},W5=new xn(pn()),dX=({overlay:e})=>{const{t}=Nt(),n=async a=>{const o=new FormData;o.append("file",a);const i={filename:[o.get("file")]},s=async()=>{await W5.apiTriggerWriteConfigGet()};(async u=>{try{await W5.apiUploadCertPost(u,e);try{s()}catch{Xe.error("Error while saving config to file.")}Xe.success(t("settings.certificates.uploadSuccessful",{filename:a.name}))}catch{Xe.error(t("settings.certificates.uploadFailed",{filename:a.name}))}})(i)},r={name:"file",multiple:!0,customRequest:async a=>{const{onSuccess:o,onError:i,file:s}=a;try{await n(s),o("Ok")}catch(c){i(c)}},onChange(a){const{status:o}=a.file;o!=="uploading"&&console.log(a.file,a.fileList)},onDrop(a){console.log("Dropped files",a.dataTransfer.files)}};return m.jsxs(mm.Dragger,{...r,children:[m.jsx("p",{className:"ant-upload-drag-icon",children:m.jsx(eN,{})}),m.jsx("p",{className:"ant-upload-text",children:t("settings.certificates.uploadText")}),m.jsx("p",{className:"ant-upload-hint",children:t("settings.certificates.uploadHint")})]})},q5e=()=>{const{t:e}=Nt(),{Paragraph:t}=bn;return m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(Nd,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(Nd,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")},{title:e("settings.navigationTitle")},{title:e("settings.certificates.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsx("h1",{children:e("settings.certificates.title")}),m.jsx(t,{children:m.jsx(An,{message:e("settings.certificates.information"),description:m.jsxs("div",{children:[e("settings.certificates.hint")," ",m.jsx(gt,{to:"/tonieboxes",children:e("settings.tonieboxes")}),"."]}),type:"info",showIcon:!0})}),m.jsx(t,{children:m.jsx(dX,{})})]})]})]})},El=()=>{const{t:e}=Nt(),t=[{key:"home",label:m.jsx(gt,{to:"/",children:e("home.navigationTitle")}),icon:se.createElement(ywe),title:e("home.navigationTitle")},{key:"features",label:m.jsx(gt,{to:"/home/features",children:e("home.features.navigationTitle")}),icon:se.createElement(yxe),title:e("home.features.navigationTitle")},{key:"statistics",label:m.jsx(gt,{to:"/home/stats",children:e("home.stats.navigationTitle")}),icon:se.createElement(FR),title:e("home.stats.navigationTitle")},{key:"hiddenMeeting",label:m.jsx(gt,{to:"/home/tonieMeeting"})}];return m.jsx(bm,{mode:"inline",defaultOpenKeys:["sub"],items:t})},Ad=({title:e,okText:t,cancelText:n,content:r,contentHint:a="",contentHintTitle:o="",open:i,handleOk:s,handleCancel:c})=>{const{t:u}=Nt();return m.jsxs(Sn,{title:m.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[m.jsx(gq,{style:{fontSize:36,color:"orange",margin:16}}),m.jsx("div",{style:{marginBottom:16},children:e})]}),open:i,onOk:s,onCancel:c,okText:t,cancelText:n,className:"warning",children:[m.jsx("div",{style:{marginBottom:24},children:r}),a&&m.jsx("div",{children:m.jsx(An,{type:"warning",showIcon:!0,message:o||u("confirmDialog.contentHintTitle"),description:a})})]})},K5e=new xn(pn()),{Text:Y5e}=bn,ck=({open:e,onClose:t,tonieCardOrTAFRecord:n,showSourceInfo:r=!1,readOnly:a,lastRUIDs:o,overlay:i,onHide:s})=>{const{t:c}=Nt(),[u,d]=l.useState(!1),[f,p]=l.useState(!1),[g,h]=l.useState(""),[b,y]=l.useState([]);l.useEffect(()=>{r&&"sourceInfo"in n&&(n.sourceInfo.picture!==n.tonieInfo.picture&&x!==C||n.sourceInfo.picture===n.tonieInfo.picture&&x!==C||n.sourceInfo.series!==n.tonieInfo.series||n.sourceInfo.episode!==n.tonieInfo.episode||n.sourceInfo.tracks.join(".")!==n.tonieInfo.tracks.join("."))&&(p(!0),h(n.sourceInfo.picture),y(n.sourceInfo.tracks))},[n,e]);const S=o&&"ruid"in n?o.filter(([A])=>A===n.ruid).map(([,A,O])=>({ruidTime:A,boxName:O})):null,v=n.tonieInfo.series+(n!=null&&n.tonieInfo.episode?" - "+n.tonieInfo.episode:"")+(n.tonieInfo.model?" ("+n.tonieInfo.model+")":""),x=`${n.tonieInfo.series}`+(n.tonieInfo.episode?` - ${n.tonieInfo.episode}`:""),C="sourceInfo"in n?`${n.sourceInfo.series}`+(n.sourceInfo.episode?` - ${n.sourceInfo.episode}`:""):"",w=f?C:x,E=()=>{d(!0)},I=()=>{R(),d(!1)},T=()=>{d(!1)},R=async()=>{if(s&&"ruid"in n&&n.ruid)try{await K5e.apiPostTeddyCloudContentJson(n.ruid,"hide=true",i),Xe.success(c("tonies.messages.hideTonieSuccessful")),s(n.ruid)}catch(A){Xe.error(c("tonies.messages.hideTonieFailed")+A)}},_=m.jsx(Ad,{title:c("tonies.confirmHideModal.title"),open:u,okText:c("tonies.confirmHideModal.hide"),cancelText:c("tonies.confirmHideModal.cancel"),content:c("tonies.confirmHideModal.confirmHideDialog",{tonieToHide:v||("uid"in n?n.uid:"")}),handleOk:I,handleCancel:T}),$=m.jsx(m.Fragment,{children:m.jsxs("h3",{children:[w||c("tonies.informationModal.unknownModel"),m.jsx("br",{}),"uid"in n&&n.uid?m.jsx(Y5e,{type:"secondary",children:n.uid}):""]})}),P=m.jsxs("div",{style:{display:"flex",justifyContent:"space-between",width:"100%"},children:[m.jsx("div",{children:"ruid"in n&&n.ruid?a?"":m.jsx(ut,{onClick:E,children:c("tonies.informationModal.hideTag")}):""}),m.jsx(ut,{type:"primary",onClick:t,children:c("tonies.informationModal.ok")})]});return m.jsxs(m.Fragment,{children:[m.jsxs(Sn,{title:$,footer:P,open:e,keyboard:!0,closable:!1,maskClosable:!0,onCancel:t,children:[m.jsxs("div",{style:{position:"relative"},children:[m.jsx("img",{src:n.tonieInfo.picture?n.tonieInfo.picture:"/img_unknown.png",alt:"",style:{width:"100%"}}),f?m.jsx(Zt,{title:`${C}`?c("tonies.alternativeSource",{originalTonie:'"'+x+'"',assignedContent:'"'+C+'"'}).replace(' "" '," "):c("tonies.alternativeSourceUnknown",{originalTonie:'"'+x+'"'}).replace(' "" '," "),placement:"bottom",children:m.jsx("img",{src:g,alt:"",style:{bottom:0,padding:8,position:"absolute",right:20,height:"50%",width:"auto"}})}):""]}),S&&S.length>0?m.jsxs(m.Fragment,{children:[m.jsxs("strong",{children:[c("tonies.lastPlayedOnModal.lastPlayedOnMessage"),":"]}),m.jsx("ul",{children:S.map(({ruidTime:A,boxName:O},N)=>m.jsxs("li",{children:[O,A?" ("+A+")":""]},N))})]}):m.jsx(m.Fragment,{}),m.jsxs("div",{children:["valid"in n?m.jsxs("p",{children:[m.jsx("strong",{children:c("tonies.infoModal.valid")})," ",n.valid?c("tonies.infoModal.yes"):c("tonies.infoModal.no")]}):"","exists"in n?m.jsxs("p",{children:[m.jsx("strong",{children:c("tonies.infoModal.exists")})," ",n.exists?c("tonies.infoModal.yes"):c("tonies.infoModal.no")]}):"",f?b&&b.length>0?m.jsxs(m.Fragment,{children:[m.jsx("strong",{children:c("tonies.infoModal.tracklist")}),m.jsx("ol",{children:b.map((A,O)=>m.jsx("li",{children:A},O))})]}):m.jsx(m.Fragment,{}):n.tonieInfo.tracks&&n.tonieInfo.tracks.length>0?m.jsxs(m.Fragment,{children:[m.jsx("strong",{children:c("tonies.infoModal.tracklist")}),m.jsx("ol",{children:n.tonieInfo.tracks.map((A,O)=>m.jsx("li",{children:A},O))})]}):m.jsx(m.Fragment,{})]})]}),_]})},uk=[".mp3",".aac",".m4a",".wav",".flac",".ogg",".opus",".aiff",".aif",".wma",".ac3",".dts",".taf"];function Wu(e,t=!0,n=1){if(!e||e<0)return"NaN";const r=t?1e3:1024;if(Math.abs(e)=r&&o{const{t:c}=Nt(),{playAudio:u}=gy(),{token:d}=Z5e(),f=Ki(),p=xN(),g=l.useRef(null),h=l.useRef(null),[b,y]=l.useState([]),[S,v]=l.useState(""),[x,C]=l.useState(!1),[w,E]=l.useState([]),[I,T]=l.useState(!1),[R,_]=l.useState(),[$,P]=l.useState(""),[D,A]=l.useState(!1);l.useEffect(()=>{E([])},[]),l.useEffect(()=>{if(n){const G=new URLSearchParams(f.search);G.set("path",""),v("");const U=`${window.location.pathname}?${G.toString()}`;window.history.replaceState(null,"",U),C(q=>!q)}},[n]),l.useEffect(()=>{X5e.apiGetTeddyCloudApiRaw(`/api/fileIndexV2?path=${S}&special=${e}`+(n?`&overlay=${n}`:"")).then(G=>G.json()).then(G=>{var U=G.files;o&&(U=U.filter(q=>q.isDir)),t.length>0&&(U=U.filter(q=>q.isDir||t.some(X=>q.name.endsWith(X)))),y(U)})},[S,e,o,x]),l.useEffect(()=>{h.current!==null&&g.current&&g.current.setSelectionRange(h.current,h.current)},[$]);const O=G=>{var U;!G.isDir&&((U=G.tonieInfo)!=null&&U.tracks)&&(_(G),T(!0))},N=G=>{a&&p(`?path=${G}`),S===G&&C(U=>!U),A(!1),v(G)},k=(G,U)=>{const q=G.split("/").filter(Q=>Q),X=[{title:m.jsx("span",{style:{cursor:"pointer"},onClick:()=>U(""),children:c("fileBrowser.root")}),key:"/"}];return q.forEach((Q,ee)=>{const oe=`/${q.slice(0,ee+1).join("/")}`;X.push({title:m.jsx("span",{style:{cursor:"pointer"},onClick:()=>U(oe),children:Q}),key:oe})}),m.jsx(Xd,{items:X})},M=G=>{P(G.target.value),h.current=G.target.selectionStart,A(!0)},L=()=>{P(""),h.current=0},F=()=>{A(!0)},j=()=>{A(!1)},B=G=>w.includes(G.key)?"highlight-row":"",z=G=>{if(r>0){if(t){const q=G.length;G=G.filter(X=>{const Q=b.find(ee=>ee.name===X);return Q&&Q.tafHeader!==void 0||Q&&t.some(ee=>Q.name.toLowerCase().endsWith(ee))}),q!==G.length&&Xe.warning(c("fileBrowser.selectAllowedFileTypesOnly",{fileTypes:t.join(", ")}))}G.length>r?Xe.warning(c("fileBrowser.maxSelectedRows",{maxSelectedRows:r})):E(G)}else E(G);const U=(b==null?void 0:b.filter(q=>G.includes(q.name)))||[];s!==void 0&&s(U,S,e)},H=G=>{const U=G===".."?S.split("/").slice(0,-1).join("/"):`${S}/${G}`;a&&p(`?path=${U}`),A(!1),E([]),v(U)},V=(G,U)=>U.reduce((q,X)=>{if(q&&q[X]!==void 0)return q[X]},G),te=(G,U,q)=>{const X=Array.isArray(q)?V(G,q):G[q],Q=Array.isArray(q)?V(U,q):U[q];return X===void 0&&Q===void 0?0:X===void 0?1:Q===void 0?-1:typeof X=="string"&&typeof Q=="string"?X.localeCompare(Q):typeof X=="number"&&typeof Q=="number"?X-Q:(console.log("Unsupported types for sorting:",G,U),console.log("Unsupported types for sorting field:",q,X,Q),0)},Y=(G,U)=>G.isDir===U.isDir?te(G,U,"name"):G.isDir?-1:1;var J=[{title:"",dataIndex:["tonieInfo","picture"],key:"picture",sorter:void 0,width:10,render:(G,U)=>{var q,X;return U&&((q=U.tonieInfo)!=null&&q.picture)?m.jsx("img",{src:U.tonieInfo.picture,alt:c("tonies.content.toniePicture"),onClick:()=>O(U),style:{width:100,cursor:!U.isDir&&((X=U==null?void 0:U.tonieInfo)!=null&&X.tracks)?"help":"default"}},`picture-${U.name}`):m.jsx(m.Fragment,{})},showOnDirOnly:!1},{title:c("fileBrowser.name"),dataIndex:"name",key:"name",sorter:Y,defaultSortOrder:"ascend",render:(G,U)=>{var q,X,Q,ee,oe;return U&&m.jsxs("div",{children:[m.jsxs("div",{className:"showSmallDevicesOnly",children:[m.jsx("div",{children:m.jsxs("div",{style:{wordBreak:U.isDir?"normal":"break-word"},children:[U.isDir?"["+U.name+"]":U.name," "]})}),m.jsx("div",{children:(q=U.tonieInfo)==null?void 0:q.model}),m.jsx("div",{style:{wordBreak:U.isDir?"normal":"break-word"},children:((X=U.tonieInfo)!=null&&X.series?(Q=U.tonieInfo)==null?void 0:Q.series:"")+((ee=U.tonieInfo)!=null&&ee.episode?" - "+((oe=U.tonieInfo)==null?void 0:oe.episode):"")})]}),m.jsx("div",{className:"showMediumDevicesOnly",children:m.jsx("div",{children:m.jsxs("div",{style:{wordBreak:U.isDir?"normal":"break-word"},children:[U.isDir?"["+U.name+"]":U.name," "]})})}),m.jsx("div",{className:"showBigDevicesOnly",children:U.isDir?"["+U.name+"]":U.name})]},`name-${U.name}`)},filteredValue:[$],onFilter:(G,U)=>{var X,Q,ee,oe;const q=G.toLowerCase();return U.name===".."||U.name.toLowerCase().includes(q)||!U.isDir&&"tafHeader"in U&&U.tafHeader.size&&Wu(U.tafHeader.size).toString().includes(q)||"tafHeader"in U&&((X=U.tafHeader.audioId)==null?void 0:X.toString().includes(q))||"tonieInfo"in U&&((Q=U.tonieInfo)==null?void 0:Q.model.toLowerCase().includes(q))||"tonieInfo"in U&&((ee=U.tonieInfo)==null?void 0:ee.series.toLowerCase().includes(q))||"tonieInfo"in U&&((oe=U.tonieInfo)==null?void 0:oe.episode.toLowerCase().includes(q))},showOnDirOnly:!0},{title:c("fileBrowser.model"),dataIndex:["tonieInfo","model"],key:"model",showOnDirOnly:!1,responsive:["xl"],render:(G,U)=>{var q;return m.jsx("div",{children:(q=U.tonieInfo)==null?void 0:q.model},`model-${U.name}`)}},{title:m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"showMediumDevicesOnly",children:[c("fileBrowser.model"),"/",c("fileBrowser.series"),"/",c("fileBrowser.episode")]}),m.jsx("div",{className:"showBigDevicesOnly",children:c("fileBrowser.series")})]}),dataIndex:["tonieInfo","series"],key:"series",render:(G,U)=>{var q,X,Q,ee,oe,le,fe;return m.jsxs("div",{children:[m.jsxs("div",{className:"showMediumDevicesOnly",children:[m.jsx("div",{children:(q=U.tonieInfo)==null?void 0:q.model}),m.jsx("div",{style:{wordBreak:"break-word"},children:((X=U.tonieInfo)!=null&&X.series?(Q=U.tonieInfo)==null?void 0:Q.series:"")+((ee=U.tonieInfo)!=null&&ee.episode?" - "+((oe=U.tonieInfo)==null?void 0:oe.episode):"")})]}),m.jsx("div",{className:"showBigDevicesOnly",children:(le=U.tonieInfo)!=null&&le.series?(fe=U.tonieInfo)==null?void 0:fe.series:""})]},`series-${U.name}`)},showOnDirOnly:!1,responsive:["md"]},{title:c("fileBrowser.episode"),dataIndex:["tonieInfo","episode"],key:"episode",showOnDirOnly:!1,responsive:["xl"],render:(G,U)=>{var q;return m.jsx("div",{children:(q=U.tonieInfo)==null?void 0:q.episode},`episode-${U.name}`)}},{title:m.jsx("div",{className:"showMediumDevicesOnly showBigDevicesOnly",children:c("fileBrowser.actions")}),dataIndex:"controls",key:"controls",sorter:void 0,render:(G,U)=>{let q=[];return U.tafHeader?q.push(m.jsx(Zt,{title:c("fileBrowser.playFile"),children:m.jsx(Di,{style:{margin:"0 8px 0 0"},onClick:()=>u(encodeURI("/content"+S+"/"+U.name)+"?ogg=true&special="+e+(n?`&overlay=${n}`:""),U.tonieInfo)})},`action-play-${U.name}`)):Q5e.some(X=>U.name.endsWith(X))&&q.push(m.jsx(Zt,{title:c("fileBrowser.playFile"),children:m.jsx(Di,{style:{margin:"0 8px 0 0"},onClick:()=>u(encodeURI("/content"+S+"/"+U.name)+"?special="+e+(n?`&overlay=${n}`:""),U.tonieInfo)})},`action-play-${U.name}`)),q},showOnDirOnly:!1}];return J.forEach(G=>{G.hasOwnProperty("sorter")||(G.sorter=(U,q)=>te(U,q,G.dataIndex))}),o&&(J=J.filter(G=>G.showOnDirOnly)),i&&(J=J.filter(G=>typeof G.key=="string"?i.includes(G.key):!1)),m.jsxs(m.Fragment,{children:[R?m.jsx(ck,{open:I,tonieCardOrTAFRecord:R,onClose:()=>T(!1),overlay:n}):"",m.jsx("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start"},children:m.jsxs("div",{style:{display:"flex",flexDirection:"row",marginBottom:8},children:[m.jsx("div",{style:{lineHeight:1.5,marginRight:16},children:c("tonies.currentPath")}),k(S,N)]})}),m.jsx(Qa,{dataSource:b,columns:J,rowKey:G=>G.name,pagination:!1,onRow:G=>({onDoubleClick:()=>{if(G.isDir)H(G.name);else{const U=w.includes(G.name)?w.filter(q=>q!==G.name):[...w,G.name];z(U)}}}),rowClassName:B,rowSelection:r>0?{selectedRowKeys:w,onChange:z}:{selectedRowKeys:w,onChange:z,getCheckboxProps:G=>({disabled:G.name===".."}),onSelectAll:(G,U)=>{const q=G?U.filter(X=>X.name!=="..").map(X=>X.name):[];E(q)}},components:{header:{wrapper:G=>m.jsx("thead",{...G}),row:G=>m.jsxs(m.Fragment,{children:[m.jsx("tr",{...G}),m.jsx("tr",{children:m.jsx("th",{style:{padding:"10px 8px"},colSpan:J.length+1,children:m.jsx(Jt,{placeholder:c("fileBrowser.filter"),value:$,onChange:M,onFocus:F,onBlur:j,ref:g,style:{width:"100%"},autoFocus:D,addonAfter:m.jsx(Jr,{onClick:L,disabled:$.length===0,style:{color:$.length===0?d.colorTextDisabled:d.colorText,cursor:$.length===0?"default":"pointer"}})})})})]}),cell:G=>m.jsx("th",{...G,style:{position:"sticky",top:0,zIndex:20}})}}})]})},{useToken:J5e}=Ea,ba=({language:e,code:t,showLineNumbers:n=!0})=>{const{t:r}=Nt(),{token:a}=J5e(),[o,i]=l.useState(""),[s,c]=l.useState(!1),u=l.useRef(null);l.useEffect(()=>{c(window.isSecureContext)},[]);const d=()=>{navigator.clipboard.writeText(t).then(()=>{i(r("utils.copied")),setTimeout(()=>i(""),2e3)})},f=()=>{if(u.current){u.current.select();try{document.execCommand("copy"),i(r("utils.copied")),setTimeout(()=>i(""),2e3)}catch{i(r("utils.failedToCopied"))}}};return m.jsxs("div",{style:{position:"relative"},children:[m.jsx(lk,{language:e,style:vs()==="dark"?cX:uX,customStyle:{padding:"0.5rem",borderRadius:"8px",margin:"0.5rem 0",border:"1px solid",borderColor:a.colorBorderSecondary},showLineNumbers:n,lineNumberStyle:{minWidth:"2rem",textAlign:"right",paddingRight:"1rem"},wrapLines:!0,lineProps:{style:{whiteSpace:"pre-wrap"}},children:t}),!s&&m.jsx("textarea",{ref:u,value:t,readOnly:!0,style:{position:"absolute",left:"-9999px",opacity:0}}),o?null:m.jsx(Zt,{title:r("utils.copyToClipboard"),children:m.jsx("button",{onClick:s?d:f,style:{position:"absolute",top:"10px",right:"10px",border:"none",background:"transparent",cursor:"pointer"},children:m.jsx(ZO,{style:{color:a.colorText}})})}),o&&m.jsxs("span",{style:{position:"absolute",top:"10px",right:"10px",border:"none",background:"transparent",color:a.colorSuccess,fontSize:"small"},children:[m.jsx(nm,{})," ",o]})]})},eBe=new xn(pn()),fX=({open:e,onClose:t,setValue:n,props:r,tonieCardProps:a,audioId:o,hash:i})=>{const{t:s}=Nt(),[c]=qt.useForm();l.useEffect(()=>{e&&p(),e&&a&&c.setFieldsValue({series:a.tonieInfo.series,episodes:a.tonieInfo.episode,model:a.tonieInfo.model,language:a.tonieInfo.language,pic:a.tonieInfo.picture,tracks:a.tonieInfo.tracks})},[e,a,c]);const u=async C=>{if(C.tracks&&(C.tracks=C.tracks.filter(w=>w.track&&w.track.trim()).map(w=>w.track)),C.audio_id){C.audio_id=C.audio_id.filter(I=>I.audio_id&&I.audio_id.trim()&&I.hash&&I.hash.trim());const w=C.audio_id.map(I=>I.audio_id),E=C.audio_id.map(I=>I.hash);C={no:C.no,model:C.model,audio_id:w,hash:E,title:C.title,series:C.series,episodes:C.episodes,tracks:C.tracks,release:C.release,language:C.language,category:C.category,pic:C.pic}}h(C),y(!0);try{await eBe.apiPostTeddyCloudRaw("/api/doSomething",JSON.stringify(C),void 0,void 0,{"Content-Type":"application/json"}),C.article&&n&&(n(C.article),r.onChange(C.article)),p(),Xe.success(s("tonies.addNewCustomTonieModal.successfullyCreated")),t()}catch(w){Xe.error(s("tonies.addNewCustomTonieModal.failedToCreate")+w)}},d=()=>{c.submit()},f=()=>{p(),t()},p=()=>{c.resetFields(),c.setFieldsValue({audio_id:[{audio_id:o||"",hash:i||""}],tracks:[{track:""}]})},[g,h]=l.useState(""),[b,y]=l.useState(!1),S=m.jsx(ut,{type:"primary",onClick:()=>v(),children:s("tonies.informationModal.ok")}),v=()=>{y(!1),f()},x=m.jsx(Sn,{footer:S,width:1e3,title:"File (you can copy the content to the tonies.custom.json)",open:b,onCancel:v,children:g?m.jsxs(m.Fragment,{children:[m.jsx(ba,{language:"json",code:JSON.stringify(g,null,2)},"json-readable"),m.jsx("div",{style:{margin:"16px 0 8px 0"},children:"Minimized json:"}),m.jsx(ba,{language:"json",showLineNumbers:!1,code:JSON.stringify(g,null,0)},"json-minimized")]}):"Loading..."});return m.jsxs(m.Fragment,{children:[m.jsxs(Sn,{title:s("tonies.addNewCustomTonieModal.title"),open:e,onCancel:f,onOk:d,okText:s("tonies.addNewCustomTonieModal.save"),width:Math.max(Math.min(window.innerWidth*.75,800),500),children:[m.jsx(An,{type:"info",showIcon:!0,message:"Work in progress - be aware!",description:"Currently, only the generated json fragment is displayed when saving the new model. This is not automatically inserted into the tonies.custom.json. You have to copy this into the file yourself.",style:{marginBottom:8}}),m.jsx(qt,{form:c,layout:"vertical",onFinish:u,children:m.jsxs($a,{gutter:[16,0],children:[m.jsx(En,{span:24,children:m.jsxs($a,{gutter:[16,0],children:[m.jsx(En,{span:8,children:m.jsx(qt.Item,{label:[s("tonies.addNewCustomTonieModal.series"),m.jsx(Zt,{title:s("tonies.addNewCustomTonieModal.seriesHint"),children:m.jsx(Hu,{style:{marginLeft:2}})},"series-tooltip")],name:"series",rules:[{required:!0,message:s("tonies.addNewCustomTonieModal.seriesRequired")}],children:m.jsx(Jt,{style:{width:"100%"}})},"series")}),m.jsx(En,{span:10,children:m.jsx(qt.Item,{label:[s("tonies.addNewCustomTonieModal.episode"),m.jsx(Zt,{title:s("tonies.addNewCustomTonieModal.episodeHint"),children:m.jsx(Hu,{style:{marginLeft:2}})},"episodes-tooltip")],name:"episodes",children:m.jsx(Jt,{style:{width:"100%"}})},"episodes")}),m.jsx(En,{span:6,children:m.jsx(qt.Item,{label:[s("tonies.addNewCustomTonieModal.language"),m.jsx(Zt,{title:s("tonies.addNewCustomTonieModal.languageHint"),children:m.jsx(Hu,{style:{marginLeft:2}})},"language-tooltip")],name:"language",children:m.jsx(Jt,{style:{width:"100%"}})},"language")})]})}),m.jsx(En,{span:24,children:m.jsxs($a,{gutter:[16,0],children:[m.jsx(En,{span:8,children:m.jsx(qt.Item,{label:s("tonies.addNewCustomTonieModal.model"),name:"model",rules:[{required:!0,message:s("tonies.addNewCustomTonieModal.modelRequired")}],children:m.jsx(Jt,{style:{width:"100%"}})},"model")}),m.jsx(En,{span:16,children:m.jsx(qt.Item,{label:s("tonies.addNewCustomTonieModal.pic"),name:"pic",children:m.jsx(Jt,{style:{width:"100%"}})},"pic")})]})}),m.jsx(En,{span:24,children:m.jsxs($a,{gutter:[16,0],children:[m.jsx(En,{span:8,children:m.jsx(qt.Item,{label:s("tonies.addNewCustomTonieModal.no"),name:"no",children:m.jsx(Jt,{style:{width:"100%"}})},"no")}),m.jsx(En,{span:16,children:m.jsx(qt.Item,{label:[s("tonies.addNewCustomTonieModal.formfieldTitle"),m.jsx(Zt,{title:s("tonies.addNewCustomTonieModal.formfieldTitleHint"),children:m.jsx(Hu,{style:{marginLeft:2}})},"title-tooltip")],name:"title",children:m.jsx(Jt,{style:{width:"100%"}})},"title")})]})}),m.jsx(En,{span:24,children:m.jsxs($a,{gutter:[16,0],children:[m.jsx(En,{span:8,children:m.jsx(qt.Item,{label:s("tonies.addNewCustomTonieModal.release"),name:"release",children:m.jsx(Jt,{style:{width:"100%"}})},"release")}),m.jsx(En,{span:16,children:m.jsx(qt.Item,{label:s("tonies.addNewCustomTonieModal.category"),name:"category",children:m.jsx(Jt,{style:{width:"100%"}})},"category")})]})}),m.jsx(En,{span:24,children:m.jsx($a,{gutter:[16,0],children:m.jsx(En,{span:24,children:m.jsx(qt.List,{name:"audio_id",children:(C,{add:w,remove:E})=>m.jsxs(m.Fragment,{children:[C.map(({key:I,name:T,...R},_)=>m.jsxs($a,{gutter:[16,0],children:[m.jsx(En,{span:8,children:l.createElement(qt.Item,{...R,key:`audio-id-${I}`,name:[T,"audio_id"],label:m.jsx("div",{children:_===0?s("tonies.addNewCustomTonieModal.audioId"):""},`audio-id-label-${I}`)},m.jsx(Jt,{style:{width:"100%"}}))}),m.jsx(En,{span:16,children:l.createElement(qt.Item,{...R,key:`hash-${I}`,name:[T,"hash"],label:m.jsx("div",{children:_===0?s("tonies.addNewCustomTonieModal.hash"):""},`hash-label-${I}`)},m.jsx(Jt,{style:{width:"100%"},addonAfter:m.jsx(ut,{type:"link",onClick:()=>E(T),style:{height:"auto",margin:-2},children:s("tonies.addNewCustomTonieModal.remove")},`audio-id-hash-remove-${I}`)}))})]},`audio-id-hash-row-${I}`)),m.jsx(qt.Item,{children:m.jsx(ut,{type:"dashed",onClick:()=>w(),block:!0,children:s("tonies.addNewCustomTonieModal.addAudioIdHash")})},"add-audio-id-hash")]})},"audio-id-hash-list")})})}),m.jsx(En,{span:24,children:m.jsx(qt.List,{name:"tracks",children:(C,{add:w,remove:E})=>m.jsxs(m.Fragment,{children:[C.map(({key:I,name:T,...R},_)=>m.jsx($a,{gutter:[16,0],children:m.jsx(En,{span:24,children:l.createElement(qt.Item,{...R,key:`track-${I}`,name:[T,"track"],label:m.jsx("div",{children:_===0?s("tonies.addNewCustomTonieModal.track"):""},`track-label-${I}`)},m.jsx(Jt,{style:{width:"100%"},addonAfter:m.jsx(ut,{type:"link",onClick:()=>E(T),style:{height:"auto",margin:-2},children:s("tonies.addNewCustomTonieModal.remove")},`track-remove-${I}`)},"input-track-"+I))})},`track-row-${I}`)),m.jsx(qt.Item,{children:m.jsx(ut,{type:"dashed",onClick:()=>w(),block:!0,children:s("tonies.addNewCustomTonieModal.addTrack")})},"add-track")]})},"track-list")})]})})]}),x]})},tBe=new xn(pn()),nBe=e=>{const{t}=Nt();Xe.useMessage();const[n,r]=l.useState([]),[a,o]=l.useState(),[i,s]=l.useState(),[c,u]=l.useState(!1),d=async g=>{const h=encodeURIComponent(g),b="/api/toniesJsonSearch?searchModel="+h+"&searchSeries="+h+"&searchEpisode="+h;try{const S=await(await tBe.apiGetTeddyCloudApiRaw(b)).json();s(S);const v=S.map(x=>({value:x.model,text:"["+x.model+"] "+x.series+" - "+x.episode,picture:x.picture}));r(v)}catch(y){Xe.error(t("tonieArticleSearch.failedToFetchSearchResults")+y);return}},f=g=>{o(g),e.onChange(g)},p=()=>{u(!0)};return m.jsxs(m.Fragment,{children:[m.jsx(Ar,{showSearch:!0,value:a,placeholder:e.placeholder,defaultActiveFirstOption:!1,suffixIcon:null,filterOption:!1,onSearch:d,onChange:f,notFoundContent:null,options:(n||[]).map(g=>({value:g.value,label:m.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[m.jsx("img",{src:g.picture,alt:g.text,style:{display:"none"}}),g.text]})})),style:{marginTop:"8px"}}),m.jsx(fX,{open:c,props:e,setValue:o,onClose:()=>u(!1)}),m.jsx(Zt,{title:t("tonies.addNewCustomTonieHint"),children:m.jsx(ut,{onClick:p,style:{marginTop:8},children:t("tonies.addNewCustomTonie")})})]})},rBe=({countryCode:e,height:t})=>{switch(e){case"de-de":return m.jsxs("svg",{height:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 60",children:[m.jsx("path",{d:"M0 0h100v20H0z"}),m.jsx("path",{fill:"#D00",d:"M0 20h100v20H0z"}),m.jsx("path",{fill:"#FFCE00",d:"M0 40h100v20H0z"})]});case"en-gb":return m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 66.666",height:t,children:[m.jsxs("g",{fill:"#FFF",children:[m.jsx("path",{d:"M0 0h100v66.53H0z"}),m.jsx("path",{d:"M60.76 44.834 100 66.53v-6.141L71.988 44.834zM39.045 21.696 0 0v6.141l28.012 15.556z"})]}),m.jsx("path",{d:"M76.764 44.834 100 57.642V44.834zm-16.004 0L100 66.53v-6.141L71.988 44.834zM89.396 66.53 60.741 50.604V66.53zM17.602 44.834 0 54.62v-9.786zm21.442 2.768V66.55H4.971zM23.041 21.696 0 8.889v12.807zm16.004 0L0 0v6.141l28.012 15.556zM10.409 0l28.655 15.926V0zm71.793 21.696L100 11.911v9.786zM60.76 18.928V0h34.093z",fill:"#0052B4"}),m.jsxs("g",{fill:"#D80027",children:[m.jsx("path",{d:"M56.141 0H43.665v27.037H0v12.476h43.664V66.55H56.14V39.513h43.664V27.037H56.14z"}),m.jsx("path",{d:"M60.76 44.834 100 66.53v-6.141L71.988 44.834zm-32.748 0L0 60.41v6.14l39.045-21.715zm11.033-23.139L0 0v6.141l28.012 15.556zm32.748 0L100 6.141V0L60.76 21.696z"})]})]});case"en-us":return m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 66.667",height:t,children:[m.jsx("path",{fill:"#FFF",d:"M0 0h100v66.667H0z"}),m.jsx("path",{d:"M0 0h100v5.127H0zm0 10.253h100v5.127H0zm0 10.253h100v5.127H0zm0 10.253h100v5.127H0zm0 10.273h100v5.127H0zm0 10.253h100v5.127H0zm0 10.253h100v5.129H0z",fill:"#D80027"}),m.jsx("path",{fill:"#2E52B2",d:"M0 0h50v35.887H0z"}),m.jsx("path",{d:"m9.318 27.076-.78-2.495-.858 2.495H5.107l2.086 1.501-.78 2.495 2.125-1.54 2.066 1.54-.799-2.495 2.125-1.501zm10.975 0-.799-2.495-.819 2.495h-2.574l2.086 1.501-.78 2.495 2.086-1.54 2.105 1.54-.78-2.495 2.086-1.501zm11.014 0-.838-2.495-.78 2.495h-2.632l2.144 1.501-.819 2.495 2.086-1.54 2.144 1.54-.819-2.495 2.086-1.501zm10.955 0-.78-2.495-.819 2.495H38.07l2.105 1.501-.78 2.495 2.086-1.54 2.105 1.54-.838-2.495 2.144-1.501zM19.493 14.678l-.819 2.495h-2.573l2.086 1.54-.78 2.456 2.086-1.52 2.105 1.52-.78-2.456 2.086-1.54h-2.612zm-10.955 0-.858 2.495H5.107l2.086 1.54-.78 2.456 2.125-1.52 2.066 1.52-.799-2.456 2.125-1.54H9.318zm21.93 0-.78 2.495h-2.632l2.144 1.54-.819 2.456 2.086-1.52 2.144 1.52-.819-2.456 2.086-1.54h-2.573zm11.014 0-.819 2.495H38.07l2.105 1.54-.78 2.456 2.086-1.52 2.105 1.52-.838-2.456 2.144-1.54H42.26zM8.539 4.814 7.681 7.27H5.107l2.086 1.54-.78 2.476 2.125-1.539 2.066 1.54-.799-2.476 2.125-1.54H9.318zm10.955 0-.819 2.456h-2.574l2.086 1.54-.78 2.476 2.086-1.539 2.105 1.54-.78-2.476 2.086-1.54h-2.612zm10.975 0-.78 2.456h-2.632l2.144 1.54-.819 2.476 2.086-1.54 2.144 1.54-.819-2.476 2.086-1.54h-2.573zm11.014 0-.819 2.456h-2.593l2.105 1.54-.78 2.476 2.086-1.54 2.105 1.54-.838-2.476 2.144-1.54h-2.632z",fill:"#FFF"})]});case"fr-fr":return m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 66.667",height:t,children:[m.jsx("path",{fill:"#FFF",d:"M0 0h100v66.667H0z"}),m.jsx("path",{fill:"#0052B4",d:"M0 0h33.333v66.667H0z"}),m.jsx("path",{fill:"#D80027",d:"M66.667 0H100v66.667H66.667z"})]});case"nl-be":return m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 66.667",height:t,children:[m.jsx("path",{fill:"#fdda25",d:"M0 0h100v66.667H0z"}),m.jsx("path",{d:"M0 0h33.333v66.667H0z"}),m.jsx("path",{fill:"#ef3340",d:"M66.667 0H100v66.667H66.667z"})]});case"nl-nl":return m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 66.667",height:t,children:[m.jsx("path",{fill:"#FFF",d:"M0 22.222h100v22.222H0z"}),m.jsx("path",{fill:"#cd1f2a",d:"M0 0h100v22.222H0z"}),m.jsx("path",{fill:"#1d4185",d:"M0 44.444h100v22.223H0z"})]});case"pt-pt":return m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 16.667 100 66.667",height:t,children:[m.jsx("path",{y:"85.337",fill:"#D80027",width:"512",height:"341.326",d:"M0 16.667H100V83.333H0V16.667z"}),m.jsx("path",{fill:"#6DA544",points:"196.641,85.337 196.641,261.565 196.641,426.663 0,426.663 0,85.337 ",d:"M38.406 16.667L38.406 51.087L38.406 83.333L0 83.333L0 16.667Z"}),m.jsx("path",{fill:"#FFDA44",cx:"196.641",cy:"256",r:"64",d:"M50.906 50A12.5 12.5 0 0 1 38.406 62.5A12.5 12.5 0 0 1 25.906 50A12.5 12.5 0 0 1 50.906 50z"}),m.jsx("path",{fill:"#D80027",d:"M31.375 43.75v7.813c0 3.883 3.148 7.031 7.031 7.031s7.031 -3.148 7.031 -7.031V43.75z"}),m.jsx("path",{fill:"#FFFFFF",d:"M38.406 53.906c-1.292 0 -2.344 -1.051 -2.344 -2.344v-3.125h4.688v3.125c0 1.292 -1.052 2.344 -2.344 2.344"})]});case"it-it":return m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 66.667",height:t,children:[m.jsx("path",{fill:"#FFF",d:"M66.667 0H0v66.53h99.805V0Z"}),m.jsx("path",{fill:"#6DA544",d:"M0 0h33.333v66.667H0z"}),m.jsx("path",{fill:"#D80027",d:"M66.667 0H100v66.667H66.667z"})]});case"es-es":return m.jsxs("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 66.667",height:t,children:[m.jsx("path",{fill:"#FFFFFF",d:"M0 0h100v66.667H0z"}),m.jsx("path",{fill:"#D03433",d:"M0 0h100v17.778H0zm0 48.889h100v17.778H0z"}),m.jsx("path",{fill:"#FBCA46",d:"M0 17.778h100v31.111H0z"}),m.jsx("path",{fill:"#FFFFFF",d:"M34.667 31.111h4.444v2.222h-4.444z"}),m.jsx("path",{fill:"#A41517",d:"M32 37.778c0 1.333 1.333 2.222 2.667 2.222s2.667 -0.889 2.667 -2.222L37.778 31.111H31.556zM29.333 31.111c0 -1.333 0.889 -2.222 1.778 -2.222h6.667c1.333 0 2.222 0.889 2.222 1.778V31.111l-0.444 6.667c-0.444 2.667 -2.222 4.444 -4.889 4.444s-4.444 -1.778 -4.889 -4.444z"}),m.jsx("path",{fill:"#A41517",d:"M30.222 33.333h8.889V35.556h-2.222l-2.222 4.444 -2.222 -4.444h-2.222zM23.556 26.667h4.444v15.556h-4.444zm17.778 0h4.444v15.556h-4.444zm-11.111 -2.222c0 -1.333 0.889 -2.222 2.222 -2.222h4.444c1.333 0 2.222 0.889 2.222 2.222v0.889q0 1.333 -1.333 1.333H31.111c-0.444 0 -0.889 -0.444 -0.889 -0.889z"})]});case"pl-pl":return m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 16.667 100 66.667",height:t,children:[m.jsxs("g",{children:[m.jsx("path",{y:"85.337",fill:"#FFFFFF",width:"512",height:"341.326",d:"M0 16.667H100V83.333H0V16.667z"}),m.jsx("path",{y:"85.337",fill:"#FFFFFF",width:"512",height:"170.663",d:"M0 16.667H100V50H0V16.667z"})]}),m.jsx("path",{y:"256",fill:"#D80027",width:"512",height:"170.663",d:"M0 50H100V83.333H0V50z"})]});case"tr-tr":return m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,viewBox:"0 -5000 15000 10000",children:[m.jsx("path",{fill:"#E30A17",d:"M0-5000h15000V5000H0z"}),m.jsx("path",{fill:"#FFFFFF",d:"m6958.333 0 2261.333-734.667-1397.667 1923.5v-2377.666l1397.667 1923.5zM7112.5 1336.833a2500 2500 0 1 1 0-2673.667 2000 2000 0 1 0 0 2673.667"})]});default:return null}},G2=["de-de","en-gb","en-us","es-es","fr-fr","it-it","nl-be","nl-nl","pl-pl","pt-pt","tr-tr","undefined"],aBe=e=>{const{t}=Nt(),[n,r]=Xe.useMessage(),[a,o]=l.useState([]),[i,s]=l.useState(),[c,u]=l.useState(!1),d="https://de1.api.radio-browser.info/json/";l.useEffect(()=>{(async()=>{try{(await fetch(d+"stats")).ok&&u(!0)}catch{console.log("Radio Browser API not available, disable radiostream search."),u(!1)}})()},[]);const f=(y,S)=>{let v;return(...x)=>{clearTimeout(v),v=setTimeout(()=>y.apply(void 0,x),S)}},p=async y=>{if(o([]),y==="")return;const S=encodeURIComponent(y),v=d+"stations/search?name="+S+"&is_https=true&hidebroken=true";try{const x=await fetch(v,{});if(!x.ok)throw new Error(x.status+" "+x.statusText);const C=await x.json(),w=Array.from(new Set(C.map(E=>E.url))).map(E=>{const I=C.find(T=>T.url===E);return{value:I.url,text:(I.country?"["+I.country+"] ":"")+I.name+(I.language?" ("+I.language+")":"")}});o(w)}catch(x){Xe.error(t("radioStreamSearch.failedToFetchSearchResults")+x);return}},g=l.useCallback(f(p,300),[]),h=y=>{s(y),e.onChange(y)};return c?m.jsxs(m.Fragment,{children:[m.jsx(bn.Text,{style:{fontSize:"small",display:"inline-block",marginTop:"8px"},children:t("radioStreamSearch.searchLabel")}),r,m.jsx(Ar,{showSearch:!0,style:{margin:"8px 0"},value:i,placeholder:e.placeholder,defaultActiveFirstOption:!1,suffixIcon:null,filterOption:!1,onSearch:g,onChange:h,notFoundContent:null,options:(a||[]).map(y=>({value:y.value,label:y.text}))})]}):m.jsx(m.Fragment,{})},mu=new xn(pn()),{Meta:oBe}=Jd,{Text:G5}=bn,{useToken:iBe}=Ea,sBe=({tonieCard:e,lastRUIDs:t,overlay:n,readOnly:r,defaultLanguage:a="",showSourceInfo:o=!0,onHide:i,onUpdate:s})=>{const{t:c}=Nt(),{token:u}=iBe(),[d,f]=l.useState(0),[p,g]=l.useState(e),[h,b]=Xe.useMessage(),[y,S]=l.useState(p.nocloud),[v,x]=l.useState(p.live),[C,w]=l.useState(p.downloadTriggerUrl),{playAudio:E}=gy(),[I,T]=l.useState(!1),[R,_]=l.useState(!1),[$,P]=l.useState(!1),[D,A]=l.useState(p.tonieInfo.model),[O,N]=l.useState(""),[k,M]=l.useState({validateStatus:"",help:""}),[L,F]=l.useState(p.source),[j,B]=l.useState(""),[z,H]=l.useState({validateStatus:"",help:""}),V=async()=>{try{const we=await mu.apiGetTagInfo(p.ruid,n);g(we),s(we)}catch(we){Xe.error("Error fetching updated card: "+we)}},te=`${p.tonieInfo.series}`+(p.tonieInfo.episode?` - ${p.tonieInfo.episode}`:""),Y="sourceInfo"in p?`${p.sourceInfo.series}`+(p.sourceInfo.episode?` - ${p.sourceInfo.episode}`:""):"",J=o&&"sourceInfo"in p&&(p.sourceInfo.picture!==p.tonieInfo.picture&&te!==Y||p.sourceInfo.picture===p.tonieInfo.picture&&te!==Y),G=(we,_e,Ne)=>{if(we&&we.length===1){const ke=(Ne==="library"?"lib:/":"content:/")+_e+"/"+we[0].name;B(ke)}else B(L)},U=()=>{P(!0)},q=()=>{B(L),P(!1)},X=()=>{N(D),B(L),_(!0)},Q=async()=>{try{L!==j&&await Te(),D!==O&&await ce()}catch{V();return}_(!1),V()},ee=async()=>{try{await mu.apiPostTeddyCloudContentJson(p.ruid,"live="+!v,n),x(!v),v?Xe.success(c("tonies.messages.liveDisabled")):Xe.success(c("tonies.messages.liveEnabled")),V()}catch(we){Xe.error(c("tonies.messages.couldNotChangeLiveFlag")+we)}},oe=async()=>{try{await mu.apiPostTeddyCloudContentJson(p.ruid,"nocloud="+!y,n),g({...p,nocloud:!y}),S(!y),y?Xe.success(c("tonies.messages.cloudAccessEnabled")):Xe.success(c("tonies.messages.cloudAccessBlocked")),V()}catch(we){Xe.error(c("tonies.messages.couldNotChangeCloudFlag")+we)}},le=async we=>{console.log(p),E(we,J?p.sourceInfo:p.tonieInfo,p.trackSeconds)},fe=async()=>{const we=p.downloadTriggerUrl;w("");try{h.open({type:"loading",content:c("tonies.messages.downloading"),duration:0});const Ne=await(await mu.apiGetTeddyCloudApiRaw(we)).blob();h.destroy(),h.open({type:"success",content:c("tonies.messages.downloadedFile")}),V()}catch(_e){h.destroy(),h.open({type:"error",content:c("tonies.messages.errorDuringDownload")+_e}),w(""+we)}},ce=async()=>{try{await mu.apiPostTeddyCloudContentJson(p.ruid,"tonie_model="+encodeURIComponent(O),n),A(O),Xe.success(c("tonies.messages.setTonieToModelSuccessful",{selectedModel:O||c("tonies.messages.setToEmptyValue")})),M({validateStatus:"",help:""})}catch(we){throw Xe.error(c("tonies.messages.setTonieToModelFailed")+we),M({validateStatus:"error",help:c("tonies.messages.setTonieToModelFailed")+we}),we}},Te=async()=>{try{await mu.apiPostTeddyCloudContentJson(p.ruid,"source="+encodeURIComponent(j),n),F(j),Xe.success(c("tonies.messages.setTonieToSourceSuccessful",{selectedSource:j||c("tonies.messages.setToEmptyValue")})),H({validateStatus:"",help:""})}catch(we){throw Xe.error(c("tonies.messages.setTonieToSourceFailed")+we),H({validateStatus:"error",help:c("tonies.messages.setTonieToSourceFailed")+we}),we}y||oe()},Se=we=>{N(we.target.value)},ve=we=>{B(we.target.value)},ae=t.filter(([we])=>we===p.ruid).map(([,we,_e])=>({ruidTime:we,boxName:_e})),ie=we=>{N(we)},ue=we=>{B(we)},ye=m.jsxs(m.Fragment,{children:[m.jsxs("h3",{style:{lineHeight:0},children:[c("tonies.editModal.title"),p.tonieInfo.model?" ("+p.tonieInfo.model+")":""]}),p.tonieInfo.series?m.jsx(G5,{type:"secondary",children:te}):" "]}),Ee=m.jsx(m.Fragment,{children:m.jsxs(ut,{type:"primary",onClick:Q,disabled:L===j&&D===O,children:[m.jsx(uq,{},"saveClick")," ",c("tonies.editModal.save")]})}),Me=m.jsxs(Sn,{open:R,onCancel:()=>_(!1),title:ye,footer:Ee,width:700,children:[m.jsx(Rr,{orientation:"left",orientationMargin:"0",children:c("tonies.editModal.source")}),m.jsx("div",{children:m.jsxs(qt.Item,{validateStatus:z.validateStatus,help:z.help,children:[m.jsx(Jt,{value:j,width:"auto",onChange:ve,addonBefore:m.jsx(Jr,{onClick:()=>{B(L),H({validateStatus:"",help:""})},style:{color:L===j?u.colorTextDisabled:u.colorText,cursor:L===j?"default":"pointer"}}),addonAfter:m.jsx(JO,{onClick:()=>U()})}),m.jsx(aBe,{placeholder:c("tonies.editModal.placeholderSearchForARadioStream"),onChange:ue})]})}),m.jsx(Rr,{orientation:"left",orientationMargin:"0",children:c("tonies.editModal.model")}),m.jsx("div",{children:m.jsxs(qt.Item,{validateStatus:k.validateStatus,help:k.help,children:[m.jsx(Jt,{value:O,width:"auto",onChange:Se,addonBefore:m.jsx(Jr,{onClick:()=>{N(D),M({validateStatus:"",help:""})},style:{color:D===O?u.colorTextDisabled:u.colorText,cursor:D===O?"default":"pointer"}})}),m.jsx(nBe,{placeholder:c("tonies.editModal.placeholderSearchForAModel"),onChange:ie})]})})]}),Ie=m.jsxs("div",{style:{display:"flex",gap:8,justifyContent:"flex-end",padding:"16px 0",margin:"-24px -24px -12px -24px",background:u.colorBgElevated},children:[m.jsx(ut,{onClick:q,children:c("tonies.selectFileModal.cancel")}),m.jsx(ut,{type:"primary",onClick:()=>P(!1),children:c("tonies.selectFileModal.ok")})]}),Ce=m.jsx(Sn,{className:"sticky-footer",title:c("tonies.selectFileModal.selectFile"),open:$,onOk:()=>P(!1),onCancel:q,width:"auto",footer:Ie,children:m.jsx(dk,{special:"library",maxSelectedRows:1,trackUrl:!1,filetypeFilter:[".taf",".tap"],onFileSelectChange:G})}),me=r?[m.jsx(Hu,{onClick:()=>{f(d+1),T(!0)}},"info"),p.valid||L.startsWith("http")?m.jsx(Di,{onClick:()=>le(p.valid?""+p.audioUrl:L)},"playpause"):m.jsx(Di,{style:{cursor:"default",color:u.colorTextDisabled}},"playpause"),m.jsx(DR,{style:{cursor:"default",color:y?"red":u.colorTextDisabled}},"nocloud"),m.jsx(LP,{style:{cursor:"default",color:v?"red":u.colorTextDisabled}},"live")]:[m.jsx(Hu,{onClick:()=>{f(d+1),T(!0)}},"info"),m.jsx(vg,{onClick:X},"edit"),p.valid||L.startsWith("http")?m.jsx(Di,{onClick:()=>le(p.valid?""+p.audioUrl:L)},"playpause"):C&&C.length>0?m.jsx(QO,{onClick:fe},"download"):m.jsx(Di,{style:{cursor:"default",color:u.colorTextDisabled}},"playpause"),m.jsx(DR,{style:{color:y?"red":u.colorTextDescription},onClick:oe},"nocloud"),m.jsx(LP,{style:{color:v?"red":u.colorTextDescription},onClick:ee},"live")];return m.jsxs(m.Fragment,{children:[b,m.jsx(Jd,{hoverable:!1,size:"small",style:ae&&ae.length>0?{background:u.colorBgContainerDisabled,borderTop:"3px #1677ff inset"}:{background:u.colorBgContainerDisabled,paddingTop:"2px"},title:m.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[m.jsx("div",{style:{overflow:"hidden",textOverflow:"ellipsis"},children:p.tonieInfo.series?p.tonieInfo.series:c("tonies.unsetTonie")}),a!==p.tonieInfo.language?m.jsx(Zt,{placement:"top",zIndex:2,title:c("languageUtil."+p.tonieInfo.language),children:m.jsx(G5,{style:{height:20,width:"auto"},children:m.jsx(rBe,{countryCode:p.tonieInfo.language,height:20})})}):""]}),cover:m.jsxs("div",{style:{position:"relative"},children:[m.jsx("img",{alt:`${p.tonieInfo.series} - ${p.tonieInfo.episode}`,src:p.tonieInfo.picture?p.tonieInfo.picture:"/img_unknown.png",style:p.tonieInfo.picture.endsWith("img_unknown.png")?{padding:8,paddingTop:10,width:"100%"}:{padding:8,width:"100%"}}),J?m.jsx(Zt,{title:`${Y}`?c("tonies.alternativeSource",{originalTonie:'"'+te+'"',assignedContent:'"'+Y+'"'}).replace(' "" '," "):c("tonies.alternativeSourceUnknown",{originalTonie:'"'+te+'"'}).replace(' "" '," "),placement:"bottom",children:m.jsx("img",{src:p.sourceInfo.picture,alt:"",style:{bottom:0,padding:8,position:"absolute",right:20,height:"50%",width:"auto"}})}):""]}),actions:me,children:m.jsx(oBe,{title:`${p.tonieInfo.episode}`,description:p.uid})},p.ruid),m.jsx(ck,{open:I,onClose:()=>T(!1),tonieCardOrTAFRecord:p,showSourceInfo:o,readOnly:r,lastRUIDs:t,onHide:i,overlay:n},d),Ce,Me]})},lBe=({currentPage:e,onChange:t,total:n,pageSize:r,additionalButtonOnClick:a})=>{const{t:o}=Nt();return m.jsxs(m.Fragment,{children:[m.jsx(qO,{current:e,total:n,pageSize:r,onChange:t,showSizeChanger:!0,pageSizeOptions:["24","48","96","192"],locale:{items_per_page:o("tonies.tonies.pageSelector")},style:{marginBottom:8}}),m.jsx(ut,{onClick:a,style:{marginLeft:16},children:o("tonies.tonies.showAll")})]})},{Option:cBe}=Ar,Ah=new xn(pn()),q2="toniesListState",fk=({tonieCards:e,showFilter:t,showPagination:n,overlay:r,readOnly:a,defaultLanguage:o="",onToniesCardUpdate:i})=>{const{t:s}=Nt(),c=Ki(),[u,d]=l.useState(e),[f,p]=l.useState(""),[g,h]=l.useState(""),[b,y]=l.useState(""),[S,v]=l.useState([]),[x,C]=l.useState(!1),[w,E]=l.useState(!1),[I,T]=l.useState(!1),[R,_]=l.useState(!1),[$,P]=l.useState(!1),[D,A]=l.useState(!1),[O,N]=l.useState(!1),[k,M]=l.useState(!1),[L,F]=l.useState(!1),[j,B]=l.useState(!1),[z,H]=l.useState(!1),[V,te]=l.useState(!0),[Y,J]=l.useState(!0),[G,U]=l.useState([]),[q,X]=l.useState(()=>{const Ae=localStorage.getItem(q2);if(Ae){const{pageSize:be}=JSON.parse(Ae);return be}return 24}),[Q,ee]=l.useState(1),[oe,le]=l.useState(!0),[fe,ce]=l.useState(!1),[Te,Se]=l.useState(!0),[ve,ae]=l.useState([]),[ie,ue]=l.useState(0),[ye,Ee]=l.useState(!1);l.useEffect(()=>{const Ae=localStorage.getItem(q2);if(Ae)try{const{pageSize:be,showAll:Oe}=JSON.parse(Ae);Oe?Ne():(X(be),ke(1,be))}catch(be){console.error("Error parsing stored state:",be)}else console.log("No stored state found.")},[]),l.useEffect(()=>{(async()=>{const Oe=async ze=>await Ah.apiGetTonieboxLastRUID(ze),Fe=async ze=>await Ah.apiGetTonieboxLastRUIDTime(ze),Ke=await Ah.apiGetTonieboxesIndex(),He=await Promise.all(Ke.map(async ze=>{const Ze=await Oe(ze.ID),je=await Fe(ze.ID);return[Ze,je,ze.boxName]}));U(He)})(),(async()=>{const Oe=await Ah.apiGetTeddyCloudSettingRaw("frontend.split_model_content");Ee(await Oe.text()==="true")})()},[]);const Me=l.useMemo(()=>e.map(Ae=>Ae.ruid).join(","),[e]);l.useEffect(()=>{const be=new URLSearchParams(c.search).get("tonieRUID");if(be){p(be),te(!1);const Oe=e.filter(Fe=>Fe.ruid.toLowerCase()===be);d(Oe)}else d(e);ue(Oe=>Oe+1),J(!1)},[c.search,Me]),l.useEffect(()=>{ee(1),ue(Ae=>Ae+1)},[Me]),l.useEffect(()=>{const Ae=JSON.stringify({pageSize:q,paginationEnabled:oe,showAll:fe});localStorage.setItem(q2,Ae)},[Te,q,oe,fe]);const Ie=()=>{Se(!Te)},Ce=Ae=>{i&&i(Ae),d(be=>be.map(Oe=>Oe.ruid===Ae.ruid?Ae:Oe))},me=()=>{let Ae=e.filter(be=>{var Oe,Fe;return(((Oe=be.sourceInfo)==null?void 0:Oe.series)&&be.sourceInfo.series.toLowerCase().includes(g.toLowerCase())||be.tonieInfo.series.toLowerCase().includes(g.toLowerCase()))&&(((Fe=be.sourceInfo)==null?void 0:Fe.episode)&&be.sourceInfo.episode.toLowerCase().includes(b.toLowerCase())||be.tonieInfo.episode.toLowerCase().includes(b.toLowerCase()))&&(S.length===0||S.includes(be.tonieInfo.language!==void 0&&G2.includes(be.tonieInfo.language)?be.tonieInfo.language:"undefined")||S.includes(be.sourceInfo&&be.sourceInfo.language!==void 0&&G2.includes(be.sourceInfo.language)?be.sourceInfo.language:"undefined"))&&(!w||be.valid)&&(!I||!be.valid)&&(!R||be.exists)&&(!$||!be.exists)&&(!D||be.live)&&(!O||!be.live)&&(!k||be.nocloud)&&(!L||!be.nocloud)&&(!j||be.hasCloudAuth)&&(!z||!be.hasCloudAuth)});f&&(Ae=Ae.filter(be=>{var Oe,Fe,Ke;return be.tonieInfo.series.toLowerCase().includes(f.toLowerCase())||((Oe=be.sourceInfo)==null?void 0:Oe.series)&&be.sourceInfo.series.toLowerCase().includes(f.toLowerCase())||be.tonieInfo.episode.toLowerCase().includes(f.toLowerCase())||((Fe=be.sourceInfo)==null?void 0:Fe.episode)&&be.sourceInfo.episode.toLowerCase().includes(f.toLowerCase())||be.tonieInfo.model.toLowerCase().includes(f.toLowerCase())||((Ke=be.sourceInfo)==null?void 0:Ke.model)&&be.sourceInfo.model.toLowerCase().includes(f.toLowerCase())||be.ruid.toLowerCase().includes(f.toLowerCase())||be.uid.toLowerCase().includes(f.toLowerCase())})),x&&(Ae=Ae.filter(be=>G.some(([Oe])=>Oe===be.ruid))),ve&&(Ae=Ae.filter(be=>!ve.includes(be.ruid))),ee(1),d(Ae),ue(be=>be+1)},we=Ae=>{d(u.filter(be=>be.ruid!==Ae)),ae(be=>[...be,Ae]),ue(be=>be+1)},_e=()=>{p(""),h(""),y(""),E(!1),T(!1),_(!1),P(!1),A(!1),N(!1),M(!1),F(!1),B(!1),H(!1),C(!1),v([]);const Ae=window.location.pathname;window.history.pushState({},"",Ae),c.search="",ve&&(e=e.filter(be=>!ve.includes(be.ruid))),d(e),ue(be=>be+1)},Ne=()=>{ce(!0),le(!1),Ie()},he=()=>{le(!0),ce(!1),ke(1,q)},ke=(Ae,be)=>{X(be),ue(Oe=>Oe+1),ee(Ae),Ie(),window.scrollTo(0,0)};if(Y)return m.jsx("div",{children:"Loading..."});const xe=()=>{if(fe)return u!==null?u:e;{const Ae=(Q-1)*q,be=Ae+q;return u!==null?u.slice(Ae,be):e.slice(Ae,be)}},ge=m.jsx("div",{style:{display:"flex",justifyContent:"flex-end",flexWrap:"wrap"},children:oe?m.jsx(lBe,{currentPage:Q,onChange:ke,total:u!==null?u.length:e.length,pageSize:q,additionalButtonOnClick:Ne}):m.jsx(ut,{onClick:he,children:s("tonies.tonies.showPagination")})}),Pe=m.jsxs(m.Fragment,{children:[m.jsx("label",{htmlFor:"search-field",className:"filter-label",children:s("tonies.tonies.filterBar.searchLabel")}),m.jsx(Jt.Search,{id:"search-field",placeholder:s("tonies.tonies.filterBar.searchPlaceholder"),value:f,onChange:Ae=>p(Ae.target.value),onSearch:me,enterButton:!0,style:{margin:"8px 0 8px 0"}}),m.jsxs("div",{className:"filter-container",children:[m.jsx("label",{className:"filter-label",children:s("tonies.tonies.filterBar.filterLabel")}),m.jsx(Jt,{style:{margin:"8px 0 8px 0"},placeholder:s("tonies.tonies.filterBar.seriesFilterPlaceholder"),value:g,onChange:Ae=>h(Ae.target.value)}),m.jsx(Jt,{style:{margin:"8px 0 8px 0"},placeholder:s("tonies.tonies.filterBar.episodeFilterPlaceholder"),value:b,onChange:Ae=>y(Ae.target.value)}),m.jsx(Ar,{mode:"multiple",placeholder:s("tonies.tonies.filterBar.languagePlaceholder"),value:S,onChange:Ae=>v(Ae),style:{width:"100%",margin:"8px 0"},children:G2.map(Ae=>m.jsx(cBe,{value:Ae,children:s(Ae?"languageUtil."+Ae:"languageUtil.other")},Ae))}),m.jsxs("div",{children:[m.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(160px, 1fr))",gap:"16px"},children:[m.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[m.jsx(za,{checked:w,onChange:Ae=>E(Ae)}),s("tonies.tonies.filterBar.valid")]}),m.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[m.jsx(za,{checked:I,onChange:Ae=>T(Ae)}),s("tonies.tonies.filterBar.invalid")]}),m.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[m.jsx(za,{checked:R,onChange:Ae=>_(Ae)})," ",s("tonies.tonies.filterBar.exists")]}),m.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[m.jsx(za,{checked:$,onChange:Ae=>P(Ae)}),s("tonies.tonies.filterBar.notExists")]}),m.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[m.jsx(za,{checked:D,onChange:Ae=>A(Ae)})," ",s("tonies.tonies.filterBar.live")]}),m.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[m.jsx(za,{checked:O,onChange:Ae=>N(Ae)})," ",s("tonies.tonies.filterBar.unsetLive")]}),m.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[m.jsx(za,{checked:L,onChange:Ae=>F(Ae)}),s("tonies.tonies.filterBar.unsetNoCloud")]}),m.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[m.jsx(za,{checked:k,onChange:Ae=>M(Ae)}),s("tonies.tonies.filterBar.noCloud")]}),m.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[m.jsx(za,{checked:j,onChange:Ae=>B(Ae)}),s("tonies.tonies.filterBar.hasCloudAuth")]}),m.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[m.jsx(za,{checked:z,onChange:Ae=>H(Ae)}),s("tonies.tonies.filterBar.unsetHasCloudAuth")]}),m.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[m.jsx(za,{checked:x,onChange:Ae=>C(Ae)}),s("tonies.tonies.filterBar.lastPlayed")]})]}),m.jsxs("div",{style:{display:"flex",flexWrap:"wrap",justifyContent:"flex-end",marginTop:8},children:[m.jsx(ut,{onClick:_e,style:{marginLeft:16},children:s("tonies.tonies.filterBar.resetFilters")}),m.jsx(ut,{onClick:me,style:{marginLeft:16},children:s("tonies.tonies.filterBar.applyFilters")})]})]})]})]}),Ve=[{key:"search-filter",label:s(V?"tonies.tonies.filterBar.showFilters":"tonies.tonies.filterBar.hideFilters"),children:Pe}];return m.jsxs("div",{className:"tonies-list-container",children:[t?m.jsx(yl,{items:Ve,defaultActiveKey:V?[]:["search-filter"],onChange:()=>te(!V),bordered:!1}):"",m.jsx(xl,{header:n?ge:"",footer:n?ge:"",grid:{gutter:16,xs:1,sm:2,md:2,lg:3,xl:4,xxl:6},dataSource:xe(),renderItem:Ae=>m.jsx(xl.Item,{id:Ae.ruid,children:m.jsx(sBe,{tonieCard:Ae,lastRUIDs:G,overlay:r,readOnly:a,defaultLanguage:o,showSourceInfo:ye,onHide:we,onUpdate:Ce})})},ie)]})},jf=new xn(pn()),{Paragraph:Mh}=bn,uBe=()=>{const{t:e}=Nt(),[t,n]=l.useState([]),[r,a]=l.useState(!1),[o,i]=l.useState(!1),[s,c]=l.useState(""),[u,d]=l.useState([]);l.useEffect(()=>{(async()=>{const y=await jf.apiGetSecurityMITAlert();a(y)})(),(async()=>{try{const y=await jf.apiGetNewBoxesAllowed();i(y),y&&(async()=>{const v=await jf.apiGetTonieboxesIndex(),x=await Promise.all(v.map(async C=>{const w=await jf.apiGetTonieboxApiAccess(C.ID);return[C.boxName,w]}));d(x)})()}catch(y){Xe.error("Error: "+y)}})(),(async()=>{const y=(await jf.apiGetTagIndexMergedAllOverlays(!0)).filter(S=>!S.hide);n(y.sort((S,v)=>Math.random()>.5?Math.floor(-100*Math.random()):Math.floor(100*Math.random())))})()},[]),l.useEffect(()=>{const g={};t.forEach(y=>{const S=y.tonieInfo.language;g[S]?g[S]++:g[S]=1});let h=0,b="";for(const y in g)g.hasOwnProperty(y)&&g[y]>h&&(h=g[y],b=y);c(b)},[t]);const f=u.filter(g=>!g[1]),p=o?m.jsxs(m.Fragment,{children:[m.jsx(An,{message:e("tonieboxes.newBoxesAllowed"),description:e("tonieboxes.newBoxesAllowedText"),type:"warning",showIcon:!0,style:{margin:"16px 0"}}),f.length>0&&m.jsx(An,{message:e("tonieboxes.boxWithoutAPIAccess"),description:m.jsxs(m.Fragment,{children:[e("tonieboxes.boxWithoutAPIAccessText"),m.jsx("ul",{children:f.map(g=>m.jsx("li",{children:g[0]},g[0]))}),e("tonieboxes.boxWithoutAPIAccessGoToTonieboxes"),m.jsx(gt,{to:"/tonieboxes",children:e("tonieboxes.navigationTitle")})]}),type:"info",showIcon:!0,style:{margin:"16px 0"}})]}):null;return m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(El,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(El,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsxs(Mh,{children:[m.jsx("h1",{children:e("home.title")}),r?m.jsx(An,{message:e("security.alert"),description:e("security.incident_detected"),type:"error",showIcon:!0,style:{margin:"16px 0"}}):"",e("home.intro"),p]}),m.jsxs(Mh,{children:[e("home.forumIntroPart1"),m.jsx(gt,{to:"https://forum.revvox.de/",target:"_blank",children:"https://forum.revvox.de/"}),e("home.forumIntroPart2")]}),m.jsxs(Mh,{children:[m.jsx("h2",{children:e("home.yourTonies")}),m.jsx(fk,{tonieCards:t.filter(g=>g.type==="tag"&&g.tonieInfo.series).slice(0,6),overlay:"",showFilter:!1,showPagination:!1,readOnly:!0,defaultLanguage:s}),m.jsx(ut,{children:m.jsxs(gt,{to:"/tonies",children:[e("home.toAllYourTonies")," (",t.filter(g=>g.type==="tag").length,")"]})})]}),m.jsxs(Mh,{children:[m.jsx("h2",{children:e("home.helpfulLinks")}),m.jsxs("ul",{children:[m.jsx("li",{children:m.jsx(gt,{to:"/community/faq",children:"FAQ"})}),m.jsx("li",{children:m.jsx(gt,{to:"https://github.com/toniebox-reverse-engineering",target:"_blank",children:"GitHub"})}),m.jsx("li",{children:m.jsx(gt,{to:"https://t.me/toniebox_reverse_engineering",target:"_blank",children:"Telegram Chat"})}),m.jsx("li",{children:m.jsx(gt,{to:"https://forum.revvox.de/",target:"_blank",children:"Discourse Forum"})}),m.jsx("li",{children:m.jsx(gt,{to:"https://tonies-wiki.revvox.de/docs/tools/teddycloud/",target:"_blank",children:"TeddyCloud Wiki"})})]})]})]})]})]})},{useToken:dBe}=Ea,fBe=()=>{const{token:e}=dBe();return m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",x:"0px",y:"0px",width:"100%",viewBox:"0 0 512 512",children:[m.jsx("path",{fill:"none",opacity:"1.000000",stroke:e.colorText,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"15.000000",d:"M285.000000,95.000000 C285.726776,91.291718 284.143219,89.788498 280.551392,88.369873 C247.948990,75.493263 212.672882,91.508270 199.495224,122.998001 C196.613541,129.884201 195.385559,137.055237 195.485504,144.500198 C195.559326,149.999207 195.570007,155.501114 195.483032,160.999725 C195.362961,168.591705 191.442429,172.487579 184.000000,172.494614 C166.333344,172.511307 148.666656,172.510849 131.000000,172.494736 C123.739044,172.488113 119.744461,168.704391 119.512695,161.499588 C118.937752,143.626343 119.484947,125.767700 124.620247,108.535835 C129.305405,92.814384 136.600082,78.329407 146.361160,64.899094 C160.063324,46.046219 177.407562,31.600046 198.103745,21.717247 C219.862259,11.327159 243.132431,6.942070 267.508698,8.891317 C284.115204,10.219257 299.968292,14.037633 314.973419,21.056805 C338.704193,32.157684 357.928345,48.584900 372.550323,70.466385 C383.991730,87.588272 391.730164,106.267952 394.317322,126.523338 C399.345093,165.887207 389.786652,201.671356 364.978485,232.982956 C350.265991,251.552322 331.599060,265.211121 309.924530,274.320435 C296.501526,279.961792 282.229004,283.352203 267.499878,283.997559 C263.333923,284.180115 259.162445,284.263275 255.000793,284.513092 C242.331039,285.273529 234.536453,294.940430 234.510101,310.000031 C234.471024,332.333282 234.502640,354.666656 234.498566,377.000000 C234.497147,384.740631 230.771179,388.486389 223.000000,388.494385 C205.666687,388.512268 188.326492,388.221069 171.003571,388.645569 C164.614304,388.802094 159.267792,383.378479 159.354935,376.998016 C159.705429,351.336151 159.031464,325.655487 159.642624,300.003387 C160.167542,277.971313 168.603424,258.489746 183.103546,242.091568 C198.977600,224.139587 218.895264,213.013474 242.995743,209.966385 C250.478912,209.020279 258.084564,209.344330 265.476685,208.330063 C284.746246,205.686066 300.188782,196.120834 310.413757,179.447113 C323.347626,158.355911 322.759064,136.763321 311.652649,114.922371 C309.739319,111.159721 306.957031,112.566917 304.500000,111.750000"}),m.jsx("path",{fill:"none",opacity:"1.000000",stroke:e.colorText,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"15.000000",d:"M197.500000,506.500000 C203.208725,504.136566 209.499985,503.955261 215.081406,500.636932 C226.722000,493.716095 233.515152,484.355804 234.104324,470.504425 C234.416428,463.166840 234.755539,456.042480 232.056686,448.978333 C227.973969,438.291962 214.538635,425.846741 198.510223,425.232910 C181.959915,424.599152 164.725250,435.753998 160.707718,453.048248 C155.331696,476.190460 163.819122,500.451569 192.494766,505.032776 C194.035324,505.278900 195.500000,506.000000 197.000000,506.500000"})]})},pBe=new xn(pn()),{useToken:gBe}=Ea,pk=({maxNoOfGuests:e,toniesSize:t,showQuestionMark:n,title:r,description:a,height:o=(s=>(s=document.getElementById("collage-container"))==null?void 0:s.clientHeight)()||0,width:i=(c=>(c=document.getElementById("collage-container"))==null?void 0:c.clientWidth)()||0})=>{var v,x;const{token:u}=gBe(),[d,f]=l.useState([]),p=i,g=o,h=50,b=50,y=(((v=document.getElementById("central-text"))==null?void 0:v.clientWidth)||0)/(p<450?3:2),S=(((x=document.getElementById("central-text"))==null?void 0:x.clientHeight)||0)/(g<500?3:2);return l.useEffect(()=>{(async()=>{const I=(await pBe.apiGetTagIndexMergedAllOverlays(!1)).sort((T,R)=>Math.random()>.5?Math.floor(-100*Math.random()):Math.floor(100*Math.random())).filter(T=>!T.tonieInfo.picture.endsWith("/img_unknown.png")&&T.tonieInfo.picture!==null&&T.tonieInfo.picture!==void 0&&T.tonieInfo.picture!==""&&!T.nocloud).slice(0,e).flatMap(T=>T.tonieInfo.picture).map((T,R)=>{if(r&&a){let _,$;do _=Math.random()*(100-t/g*100),$=Math.random()*(100-t/p*100);while(0h-S/g*100-t/g*100&&_b-y/p*100-t/p*100&&$m.jsxs("div",{className:"collage-image-container",style:{position:"absolute",top:C.top,left:C.left,width:"150px",height:"150px",overflow:"hidden",pointerEvents:"none"},children:[m.jsx("img",{src:C.src,alt:`Random ${C.id}`,className:"collage-image",style:{width:"100%",height:"100%",objectFit:"cover"}}),n&&m.jsx("div",{className:"question-mark-overlay",style:{position:"absolute",top:"5%",right:"20%",width:"30%",height:"30%",display:"flex",alignItems:"center",justifyContent:"center"},children:m.jsx(fBe,{})})]},C.id))]})},{Paragraph:mBe}=bn,hBe=()=>{const{t:e}=Nt();return m.jsx(m.Fragment,{children:m.jsx(Dn,{children:m.jsx(mBe,{children:m.jsx(pk,{maxNoOfGuests:100,toniesSize:150,showQuestionMark:!0,title:e("404.title"),description:e("404.description")})})})})},vBe=new xn(pn()),bBe=()=>{var a;const{t:e}=Nt(),[t,n]=l.useState(),r=async()=>{var i,s;const o=await vBe.apiStatsGet();(i=o==null?void 0:o.stats)!=null&&i.length&&((s=o==null?void 0:o.stats)==null?void 0:s.length)>0&&n(o)};return l.useEffect(()=>{r()},[]),l.useEffect(()=>{const o=setInterval(()=>{r()},1e4);return()=>clearInterval(o)},[]),m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(El,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(El,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")},{title:e("home.stats.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsx("h1",{children:e("home.stats.title")}),(a=t==null?void 0:t.stats)==null?void 0:a.map(o=>m.jsxs("div",{children:[m.jsx("h2",{children:e("home.stats."+o.iD)}),m.jsx("p",{children:o.value})]},o.iD))]})]})]})},yBe=new GK(pn()),SBe=new jOe(pn()),xBe=()=>{const{t:e}=Nt(),[t,n]=l.useState(!1),[r,a]=l.useState(!1),o=async()=>{try{(await yBe.v1TimeGet()).length===10&&a(!0)}catch{a(!1)}try{(await SBe.reverseV1TimeGet()).length===10&&n(!0)}catch{n(!1)}};return l.useEffect(()=>{o()},[]),m.jsxs(Na,{children:[m.jsx(Zt,{title:e(t?"server.boxineStatusOnline":"server.boxineStatusOffline"),children:m.jsxs(Ib,{icon:t?m.jsx(MR,{}):m.jsx(MP,{}),color:t?"#87d068":"#f50",bordered:!1,style:{cursor:"help",color:"#001529"},children:[m.jsx(In,{children:"B"}),m.jsx(xg,{children:"Boxine"})]})}),m.jsx(Zt,{title:e(r?"server.teddycloudStatusOnline":"server.teddycloudStatusOffline"),children:m.jsxs(Ib,{icon:r?m.jsx(MR,{}):m.jsx(MP,{}),color:r?"#87d068":"#f50",bordered:!1,style:{cursor:"help",color:"#001529"},children:[m.jsx(In,{children:"TC"}),m.jsx(xg,{children:"TeddyCloud"})]})})]})},wBe=()=>{var o;const{t:e,i18n:t}=Nt(),n=i=>{t.changeLanguage(i)},r=[{key:"1",label:e("language.english"),onClick:()=>n("en")},{key:"2",label:e("language.german"),onClick:()=>n("de")},{key:"3",label:e("language.french"),onClick:()=>n("fr")},{key:"4",label:e("language.spanish"),onClick:()=>n("es")}],a=t.language;return m.jsx(Na,{children:m.jsx(ny,{menu:{items:r},trigger:["click"],children:m.jsx("a",{href:"/",onClick:i=>i.preventDefault(),title:e("language.change"),children:m.jsxs(Ib,{color:"transparent",children:[m.jsx(lq,{})," ",m.jsx("strong",{children:(o=r.find(i=>i.onClick&&i.onClick.toString().includes(a)))==null?void 0:o.label})]})})})})},q5=new xn(pn()),{useToken:CBe}=Ea,EBe=La.img` +|(?![\\s\\S])))+`,"m"),alias:i,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(a)[0]}}}}),Object.defineProperty(n.languages.diff,"PREFIXES",{value:r})})(t)}return Yx}var Xx,q6;function no(){if(q6)return Xx;q6=1,Xx=e,e.displayName="markupTemplating",e.aliases=[];function e(t){(function(n){function r(a,o){return"___"+a.toUpperCase()+o+"___"}Object.defineProperties(n.languages["markup-templating"]={},{buildPlaceholders:{value:function(a,o,i,s){if(a.language===o){var c=a.tokenStack=[];a.code=a.code.replace(i,function(u){if(typeof s=="function"&&!s(u))return u;for(var d=c.length,f;a.code.indexOf(f=r(o,d))!==-1;)++d;return c[d]=u,f}),a.grammar=n.languages.markup}}},tokenizePlaceholders:{value:function(a,o){if(a.language!==o||!a.tokenStack)return;a.grammar=n.languages[o];var i=0,s=Object.keys(a.tokenStack);function c(u){for(var d=0;d=s.length);d++){var f=u[d];if(typeof f=="string"||f.content&&typeof f.content=="string"){var p=s[i],g=a.tokenStack[p],h=typeof f=="string"?f:f.content,b=r(o,p),y=h.indexOf(b);if(y>-1){++i;var S=h.substring(0,y),v=new n.Token(o,n.tokenize(g,a.grammar),"language-"+o,g),x=h.substring(y+b.length),w=[];S&&w.push.apply(w,c([S])),w.push(v),x&&w.push.apply(w,c([x])),typeof f=="string"?u.splice.apply(u,[d,1].concat(w)):f.content=w}}else f.content&&c(f.content)}return u}c(a.tokens)}}})})(t)}return Xx}var Zx,K6;function i8e(){if(K6)return Zx;K6=1;var e=no();Zx=t,t.displayName="django",t.aliases=["jinja2"];function t(n){n.register(e),function(r){r.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var a=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,o=r.languages["markup-templating"];r.hooks.add("before-tokenize",function(i){o.buildPlaceholders(i,"django",a)}),r.hooks.add("after-tokenize",function(i){o.tokenizePlaceholders(i,"django")}),r.languages.jinja2=r.languages.django,r.hooks.add("before-tokenize",function(i){o.buildPlaceholders(i,"jinja2",a)}),r.hooks.add("after-tokenize",function(i){o.tokenizePlaceholders(i,"jinja2")})}(n)}return Zx}var Qx,Y6;function s8e(){if(Y6)return Qx;Y6=1,Qx=e,e.displayName="dnsZoneFile",e.aliases=[];function e(t){t.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},t.languages["dns-zone"]=t.languages["dns-zone-file"]}return Qx}var Jx,X6;function l8e(){if(X6)return Jx;X6=1,Jx=e,e.displayName="docker",e.aliases=["dockerfile"];function e(t){(function(n){var r=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,a=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,function(){return r}),o=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,i=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,function(){return o}),s={pattern:RegExp(o),greedy:!0},c={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function u(d,f){return d=d.replace(//g,function(){return i}).replace(//g,function(){return a}),RegExp(d,f)}n.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:u(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[s,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:u(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:u(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:u(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:c,string:s,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:c},n.languages.dockerfile=n.languages.docker})(t)}return Jx}var ew,Z6;function c8e(){if(Z6)return ew;Z6=1,ew=e,e.displayName="dot",e.aliases=["gv"];function e(t){(function(n){var r="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",a={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:n.languages.markup}};function o(i,s){return RegExp(i.replace(//g,function(){return r}),s)}n.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:o(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:a},"attr-value":{pattern:o(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:a},"attr-name":{pattern:o(/([\[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:a},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:o(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:a},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},n.languages.gv=n.languages.dot})(t)}return ew}var tw,Q6;function u8e(){if(Q6)return tw;Q6=1,tw=e,e.displayName="ebnf",e.aliases=[];function e(t){t.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}return tw}var nw,J6;function d8e(){if(J6)return nw;J6=1,nw=e,e.displayName="editorconfig",e.aliases=[];function e(t){t.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}return nw}var rw,e8;function f8e(){if(e8)return rw;e8=1,rw=e,e.displayName="eiffel",e.aliases=[];function e(t){t.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}return rw}var aw,t8;function p8e(){if(t8)return aw;t8=1;var e=no();aw=t,t.displayName="ejs",t.aliases=["eta"];function t(n){n.register(e),function(r){r.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:r.languages.javascript}},r.hooks.add("before-tokenize",function(a){var o=/<%(?!%)[\s\S]+?%>/g;r.languages["markup-templating"].buildPlaceholders(a,"ejs",o)}),r.hooks.add("after-tokenize",function(a){r.languages["markup-templating"].tokenizePlaceholders(a,"ejs")}),r.languages.eta=r.languages.ejs}(n)}return aw}var ow,n8;function g8e(){if(n8)return ow;n8=1,ow=e,e.displayName="elixir",e.aliases=[];function e(t){t.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},t.languages.elixir.string.forEach(function(n){n.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:t.languages.elixir}}}})}return ow}var iw,r8;function m8e(){if(r8)return iw;r8=1,iw=e,e.displayName="elm",e.aliases=[];function e(t){t.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}return iw}var sw,a8;function h8e(){if(a8)return sw;a8=1;var e=jy(),t=no();sw=n,n.displayName="erb",n.aliases=[];function n(r){r.register(e),r.register(t),function(a){a.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:a.languages.ruby}},a.hooks.add("before-tokenize",function(o){var i=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;a.languages["markup-templating"].buildPlaceholders(o,"erb",i)}),a.hooks.add("after-tokenize",function(o){a.languages["markup-templating"].tokenizePlaceholders(o,"erb")})}(r)}return sw}var lw,o8;function v8e(){if(o8)return lw;o8=1,lw=e,e.displayName="erlang",e.aliases=[];function e(t){t.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}return lw}var cw,i8;function aX(){if(i8)return cw;i8=1,cw=e,e.displayName="lua",e.aliases=[];function e(t){t.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}return cw}var uw,s8;function b8e(){if(s8)return uw;s8=1;var e=aX(),t=no();uw=n,n.displayName="etlua",n.aliases=[];function n(r){r.register(e),r.register(t),function(a){a.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:a.languages.lua}},a.hooks.add("before-tokenize",function(o){var i=/<%[\s\S]+?%>/g;a.languages["markup-templating"].buildPlaceholders(o,"etlua",i)}),a.hooks.add("after-tokenize",function(o){a.languages["markup-templating"].tokenizePlaceholders(o,"etlua")})}(r)}return uw}var dw,l8;function y8e(){if(l8)return dw;l8=1,dw=e,e.displayName="excelFormula",e.aliases=[];function e(t){t.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"keyword"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"property",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"property"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},t.languages.xlsx=t.languages.xls=t.languages["excel-formula"]}return dw}var fw,c8;function S8e(){if(c8)return fw;c8=1,fw=e,e.displayName="factor",e.aliases=[];function e(t){(function(n){var r={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},a={number:/\\[^\s']|%\w/},o={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:r},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:r}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:a.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:a},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:a}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:a}},i=function(d){return(d+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},s=function(d){return new RegExp("(^|\\s)(?:"+d.map(i).join("|")+")(?=\\s|$)")},c={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated",">>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(c).forEach(function(d){o[d].pattern=s(c[d])});var u=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","inputsequence"];o.combinators.pattern=s(u),n.languages.factor=o})(t)}return fw}var pw,u8;function x8e(){if(u8)return pw;u8=1,pw=e,e.displayName="$false",e.aliases=[];function e(t){(function(n){n.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete t.languages["firestore-security-rules"]["class-name"],t.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}return gw}var mw,f8;function C8e(){if(f8)return mw;f8=1,mw=e,e.displayName="flow",e.aliases=[];function e(t){(function(n){n.languages.flow=n.languages.extend("javascript",{}),n.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|any|mixed|null|void)\b/,alias:"tag"}]}),n.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete n.languages.flow.parameter,n.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(n.languages.flow.keyword)||(n.languages.flow.keyword=[n.languages.flow.keyword]),n.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(t)}return mw}var hw,p8;function E8e(){if(p8)return hw;p8=1,hw=e,e.displayName="fortran",e.aliases=[];function e(t){t.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}return hw}var vw,g8;function I8e(){if(g8)return vw;g8=1,vw=e,e.displayName="fsharp",e.aliases=[];function e(t){t.languages.fsharp=t.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),t.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),t.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),t.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:t.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}return vw}var bw,m8;function T8e(){if(m8)return bw;m8=1;var e=no();bw=t,t.displayName="ftl",t.aliases=[];function t(n){n.register(e),function(r){for(var a=/[^<()"']|\((?:)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,o=0;o<2;o++)a=a.replace(//g,function(){return a});a=a.replace(//g,/[^\s\S]/.source);var i={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:))*\})*\1/.source.replace(//g,function(){return a})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:))*\}/.source.replace(//g,function(){return a})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};i.string[1].inside.interpolation.inside.rest=i,r.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}}},r.hooks.add("before-tokenize",function(s){var c=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:)*?>|\$\{(?:)*?\}/.source.replace(//g,function(){return a}),"gi");r.languages["markup-templating"].buildPlaceholders(s,"ftl",c)}),r.hooks.add("after-tokenize",function(s){r.languages["markup-templating"].tokenizePlaceholders(s,"ftl")})}(n)}return bw}var yw,h8;function R8e(){if(h8)return yw;h8=1,yw=e,e.displayName="gap",e.aliases=[];function e(t){t.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},t.languages.gap.shell.inside.gap.inside=t.languages.gap}return yw}var Sw,v8;function _8e(){if(v8)return Sw;v8=1,Sw=e,e.displayName="gcode",e.aliases=[];function e(t){t.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}return Sw}var xw,b8;function $8e(){if(b8)return xw;b8=1,xw=e,e.displayName="gdscript",e.aliases=[];function e(t){t.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}return xw}var ww,y8;function O8e(){if(y8)return ww;y8=1,ww=e,e.displayName="gedcom",e.aliases=[];function e(t){t.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},tag:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"string"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}return ww}var Cw,S8;function N8e(){if(S8)return Cw;S8=1,Cw=e,e.displayName="gherkin",e.aliases=[];function e(t){(function(n){var r=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;n.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+r+")(?:"+r+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(r),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(t)}return Cw}var Ew,x8;function k8e(){if(x8)return Ew;x8=1,Ew=e,e.displayName="git",e.aliases=[];function e(t){t.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}return Ew}var Iw,w8;function A8e(){if(w8)return Iw;w8=1;var e=Kc();Iw=t,t.displayName="glsl",t.aliases=[];function t(n){n.register(e),n.languages.glsl=n.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}return Iw}var Tw,C8;function M8e(){if(C8)return Tw;C8=1,Tw=e,e.displayName="gml",e.aliases=[];function e(t){t.languages.gamemakerlanguage=t.languages.gml=t.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}return Tw}var Rw,E8;function P8e(){if(E8)return Rw;E8=1,Rw=e,e.displayName="gn",e.aliases=["gni"];function e(t){t.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},t.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=t.languages.gn,t.languages.gni=t.languages.gn}return Rw}var _w,I8;function D8e(){if(I8)return _w;I8=1,_w=e,e.displayName="goModule",e.aliases=[];function e(t){t.languages["go-mod"]=t.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}return _w}var $w,T8;function L8e(){if(T8)return $w;T8=1,$w=e,e.displayName="go",e.aliases=[];function e(t){t.languages.go=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),t.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete t.languages.go["class-name"]}return $w}var Ow,R8;function F8e(){if(R8)return Ow;R8=1,Ow=e,e.displayName="graphql",e.aliases=[];function e(t){t.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:t.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},t.hooks.add("after-tokenize",function(r){if(r.language!=="graphql")return;var a=r.tokens.filter(function(S){return typeof S!="string"&&S.type!=="comment"&&S.type!=="scalar"}),o=0;function i(S){return a[o+S]}function s(S,v){v=v||0;for(var x=0;x0)){var h=c(/^\{$/,/^\}$/);if(h===-1)continue;for(var b=o;b=0&&u(y,"variable-input")}}}}})}return Ow}var Nw,_8;function j8e(){if(_8)return Nw;_8=1,Nw=e,e.displayName="groovy",e.aliases=[];function e(t){t.languages.groovy=t.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),t.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),t.hooks.add("wrap",function(n){if(n.language==="groovy"&&n.type==="string"){var r=n.content.value[0];if(r!="'"){var a=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;r==="$"&&(a=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),n.content.value=n.content.value.replace(/</g,"<").replace(/&/g,"&"),n.content=t.highlight(n.content.value,{expression:{pattern:a,lookbehind:!0,inside:t.languages.groovy}}),n.classes.push(r==="/"?"regex":"gstring")}}})}return Nw}var kw,$8;function B8e(){if($8)return kw;$8=1;var e=jy();kw=t,t.displayName="haml",t.aliases=[];function t(n){n.register(e),function(r){r.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:r.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:r.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:r.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:r.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:r.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:r.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:r.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var a="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",o=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],i={},s=0,c=o.length;s@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},r.hooks.add("before-tokenize",function(a){var o=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;r.languages["markup-templating"].buildPlaceholders(a,"handlebars",o)}),r.hooks.add("after-tokenize",function(a){r.languages["markup-templating"].tokenizePlaceholders(a,"handlebars")}),r.languages.hbs=r.languages.handlebars}(n)}return Aw}var Mw,N8;function nk(){if(N8)return Mw;N8=1,Mw=e,e.displayName="haskell",e.aliases=["hs"];function e(t){t.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},t.languages.hs=t.languages.haskell}return Mw}var Pw,k8;function H8e(){if(k8)return Pw;k8=1,Pw=e,e.displayName="haxe",e.aliases=[];function e(t){t.languages.haxe=t.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<{1,3}|[-+*/%!=&|^])=?|[?:~]/}),t.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:t.languages.haxe}}},string:/[\s\S]+/}}}),t.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),t.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}return Pw}var Dw,A8;function U8e(){if(A8)return Dw;A8=1,Dw=e,e.displayName="hcl",e.aliases=[];function e(t){t.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}return Dw}var Lw,M8;function V8e(){if(M8)return Lw;M8=1;var e=Kc();Lw=t,t.displayName="hlsl",t.aliases=[];function t(n){n.register(e),n.languages.hlsl=n.languages.extend("c",{"class-name":[n.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}return Lw}var Fw,P8;function W8e(){if(P8)return Fw;P8=1,Fw=e,e.displayName="hoon",e.aliases=[];function e(t){t.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}return Fw}var jw,D8;function G8e(){if(D8)return jw;D8=1,jw=e,e.displayName="hpkp",e.aliases=[];function e(t){t.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}return jw}var Bw,L8;function q8e(){if(L8)return Bw;L8=1,Bw=e,e.displayName="hsts",e.aliases=[];function e(t){t.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}return Bw}var zw,F8;function K8e(){if(F8)return zw;F8=1,zw=e,e.displayName="http",e.aliases=[];function e(t){(function(n){function r(f){return RegExp("(^(?:"+f+"):[ ]*(?![ ]))[^]+","i")}n.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:n.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:r(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:n.languages.csp},{pattern:r(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:n.languages.hpkp},{pattern:r(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:n.languages.hsts},{pattern:r(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var a=n.languages,o={"application/javascript":a.javascript,"application/json":a.json||a.javascript,"application/xml":a.xml,"text/xml":a.xml,"text/html":a.html,"text/css":a.css,"text/plain":a.plain},i={"application/json":!0,"application/xml":!0};function s(f){var p=f.replace(/^[a-z]+\//,""),g="\\w+/(?:[\\w.-]+\\+)+"+p+"(?![+\\w.-])";return"(?:"+f+"|"+g+")"}var c;for(var u in o)if(o[u]){c=c||{};var d=i[u]?s(u):u;c[u.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+d+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:o[u]}}c&&n.languages.insertBefore("http","header",c)})(t)}return zw}var Hw,j8;function Y8e(){if(j8)return Hw;j8=1,Hw=e,e.displayName="ichigojam",e.aliases=[];function e(t){t.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}return Hw}var Uw,B8;function X8e(){if(B8)return Uw;B8=1,Uw=e,e.displayName="icon",e.aliases=[];function e(t){t.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}return Uw}var Vw,z8;function Z8e(){if(z8)return Vw;z8=1,Vw=e,e.displayName="icuMessageFormat",e.aliases=[];function e(t){(function(n){function r(u,d){return d<=0?/[]/.source:u.replace(//g,function(){return r(u,d-1)})}var a=/'[{}:=,](?:[^']|'')*'(?!')/,o={pattern:/''/,greedy:!0,alias:"operator"},i={pattern:a,greedy:!0,inside:{escape:o}},s=r(/\{(?:[^{}']|'(?![{},'])|''||)*\}/.source.replace(//g,function(){return a.source}),8),c={pattern:RegExp(s),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};n.languages["icu-message-format"]={argument:{pattern:RegExp(s),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":c,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":c,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+r(/(?:[^{}']|'[^']*'|\{(?:)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:o,string:i},c.inside.message.inside=n.languages["icu-message-format"],n.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=n.languages["icu-message-format"]})(t)}return Vw}var Ww,H8;function Q8e(){if(H8)return Ww;H8=1;var e=nk();Ww=t,t.displayName="idris",t.aliases=["idr"];function t(n){n.register(e),n.languages.idris=n.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),n.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),n.languages.idr=n.languages.idris}return Ww}var Gw,U8;function J8e(){if(U8)return Gw;U8=1,Gw=e,e.displayName="iecst",e.aliases=[];function e(t){t.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}return Gw}var qw,V8;function eFe(){if(V8)return qw;V8=1,qw=e,e.displayName="ignore",e.aliases=["gitignore","hgignore","npmignore"];function e(t){(function(n){n.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},n.languages.gitignore=n.languages.ignore,n.languages.hgignore=n.languages.ignore,n.languages.npmignore=n.languages.ignore})(t)}return qw}var Kw,W8;function tFe(){if(W8)return Kw;W8=1,Kw=e,e.displayName="inform7",e.aliases=[];function e(t){t.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},t.languages.inform7.string.inside.substitution.inside.rest=t.languages.inform7,t.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}return Kw}var Yw,G8;function nFe(){if(G8)return Yw;G8=1,Yw=e,e.displayName="ini",e.aliases=[];function e(t){t.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}return Yw}var Xw,q8;function rFe(){if(q8)return Xw;q8=1,Xw=e,e.displayName="io",e.aliases=[];function e(t){t.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}return Zw}var Qw,Y8;function rk(){if(Y8)return Qw;Y8=1,Qw=e,e.displayName="java",e.aliases=[];function e(t){(function(n){var r=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,a=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,o={pattern:RegExp(a+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};n.languages.java=n.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[o,{pattern:RegExp(a+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:o.inside}],keyword:r,function:[n.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),n.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),n.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":o,keyword:r,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return r.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(t)}return Qw}var Jw,X8;function By(){if(X8)return Jw;X8=1,Jw=e,e.displayName="javadoclike",e.aliases=[];function e(t){(function(n){var r=n.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function a(i,s){var c="doc-comment",u=n.languages[i];if(u){var d=u[c];if(!d){var f={};f[c]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},u=n.languages.insertBefore(i,"comment",f),d=u[c]}if(d instanceof RegExp&&(d=u[c]={pattern:d}),Array.isArray(d))for(var p=0,g=d.length;p)?|/.source.replace(//g,function(){return i});a.languages.javadoc=a.languages.extend("javadoclike",{}),a.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+s+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:a.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:o,lookbehind:!0,inside:a.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:o,lookbehind:!0,inside:{tag:a.languages.markup.tag,entity:a.languages.markup.entity,code:{pattern:/.+/,inside:a.languages.java,alias:"language-java"}}}}}],tag:a.languages.markup.tag,entity:a.languages.markup.entity}),a.languages.javadoclike.addSupport("java",a.languages.javadoc)}(r)}return eC}var tC,Q8;function iFe(){if(Q8)return tC;Q8=1,tC=e,e.displayName="javastacktrace",e.aliases=[];function e(t){t.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:|[\w$]+)\()/,function:/(?:|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}return tC}var nC,J8;function sFe(){if(J8)return nC;J8=1,nC=e,e.displayName="jexl",e.aliases=[];function e(t){t.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}return nC}var rC,eF;function lFe(){if(eF)return rC;eF=1,rC=e,e.displayName="jolie",e.aliases=[];function e(t){t.languages.jolie=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),t.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}return rC}var aC,tF;function cFe(){if(tF)return aC;tF=1,aC=e,e.displayName="jq",e.aliases=[];function e(t){(function(n){var r=/\\\((?:[^()]|\([^()]*\))*\)/.source,a=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return r})),o={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+r),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},i=n.languages.jq={comment:/#.*/,property:{pattern:RegExp(a.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:o},string:{pattern:a,lookbehind:!0,greedy:!0,inside:o},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};o.interpolation.inside.content.inside=i})(t)}return aC}var oC,nF;function uFe(){if(nF)return oC;nF=1,oC=e,e.displayName="jsExtras",e.aliases=[];function e(t){(function(n){n.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+n.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),n.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+n.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),n.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function r(u,d){return RegExp(u.replace(//g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),d)}n.languages.insertBefore("javascript","keyword",{imports:{pattern:r(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:n.languages.javascript},exports:{pattern:r(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:n.languages.javascript}}),n.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),n.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),n.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:r(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var a=["function","function-variable","method","method-variable","property-access"],o=0;o=I.length)return;var $=R[_];if(typeof $=="string"||typeof $.content=="string"){var P=I[x],D=typeof $=="string"?$:$.content,A=D.indexOf(P);if(A!==-1){++x;var O=D.substring(0,A),N=f(w[P]),k=D.substring(A+P.length),M=[];if(O&&M.push(O),M.push(N),k){var L=[k];T(L),M.push.apply(M,L)}typeof $=="string"?(R.splice.apply(R,[_,1].concat(M)),_+=M.length-1):$.content=M}}else{var F=$.content;Array.isArray(F)?T(F):T([F])}}}return T(E),new n.Token(S,E,"language-"+S,b)}var g={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};n.hooks.add("after-tokenize",function(b){if(!(b.language in g))return;function y(S){for(var v=0,x=S.length;v]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),n.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete n.languages.typescript.parameter,delete n.languages.typescript["literal-property"];var r=n.languages.extend("typescript",{});delete r["class-name"],n.languages.typescript["class-name"].inside=r,n.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:r}}}}),n.languages.ts=n.languages.typescript})(t)}return sC}var lC,oF;function fFe(){if(oF)return lC;oF=1;var e=By(),t=ak();lC=n,n.displayName="jsdoc",n.aliases=[];function n(r){r.register(e),r.register(t),function(a){var o=a.languages.javascript,i=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,s="(@(?:arg|argument|param|property)\\s+(?:"+i+"\\s+)?)";a.languages.jsdoc=a.languages.extend("javadoclike",{parameter:{pattern:RegExp(s+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),a.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(s+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:o,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(//g,function(){return i})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+i),lookbehind:!0,inside:{string:o.string,number:o.number,boolean:o.boolean,keyword:a.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:o,alias:"language-javascript"}}}}),a.languages.javadoclike.addSupport("javascript",a.languages.jsdoc)}(r)}return lC}var cC,iF;function ok(){if(iF)return cC;iF=1,cC=e,e.displayName="json",e.aliases=["webmanifest"];function e(t){t.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},t.languages.webmanifest=t.languages.json}return cC}var uC,sF;function pFe(){if(sF)return uC;sF=1;var e=ok();uC=t,t.displayName="json5",t.aliases=[];function t(n){n.register(e),function(r){var a=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;r.languages.json5=r.languages.extend("json",{property:[{pattern:RegExp(a.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:a,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}(n)}return uC}var dC,lF;function gFe(){if(lF)return dC;lF=1;var e=ok();dC=t,t.displayName="jsonp",t.aliases=[];function t(n){n.register(e),n.languages.jsonp=n.languages.extend("json",{punctuation:/[{}[\]();,.]/}),n.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}return dC}var fC,cF;function mFe(){if(cF)return fC;cF=1,fC=e,e.displayName="jsstacktrace",e.aliases=[];function e(t){t.languages.jsstacktrace={"error-message":{pattern:/^\S.*/m,alias:"string"},"stack-frame":{pattern:/(^[ \t]+)at[ \t].*/m,lookbehind:!0,inside:{"not-my-code":{pattern:/^at[ \t]+(?!\s)(?:node\.js||.*(?:node_modules|\(\)|\(|$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}return fC}var pC,uF;function oX(){if(uF)return pC;uF=1,pC=e,e.displayName="jsx",e.aliases=[];function e(t){(function(n){var r=n.util.clone(n.languages.javascript),a=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,o=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,i=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function s(d,f){return d=d.replace(//g,function(){return a}).replace(//g,function(){return o}).replace(//g,function(){return i}),RegExp(d,f)}i=s(i).source,n.languages.jsx=n.languages.extend("markup",r),n.languages.jsx.tag.pattern=s(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),n.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,n.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,n.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,n.languages.jsx.tag.inside.comment=r.comment,n.languages.insertBefore("inside","attr-name",{spread:{pattern:s(//.source),inside:n.languages.jsx}},n.languages.jsx.tag),n.languages.insertBefore("inside","special-attr",{script:{pattern:s(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:n.languages.jsx}}},n.languages.jsx.tag);var c=function(d){return d?typeof d=="string"?d:typeof d.content=="string"?d.content:d.content.map(c).join(""):""},u=function(d){for(var f=[],p=0;p0&&f[f.length-1].tagName===c(g.content[0].content[1])&&f.pop():g.content[g.content.length-1].content==="/>"||f.push({tagName:c(g.content[0].content[1]),openedBraces:0}):f.length>0&&g.type==="punctuation"&&g.content==="{"?f[f.length-1].openedBraces++:f.length>0&&f[f.length-1].openedBraces>0&&g.type==="punctuation"&&g.content==="}"?f[f.length-1].openedBraces--:h=!0),(h||typeof g=="string")&&f.length>0&&f[f.length-1].openedBraces===0){var b=c(g);p0&&(typeof d[p-1]=="string"||d[p-1].type==="plain-text")&&(b=c(d[p-1])+b,d.splice(p-1,1),p--),d[p]=new n.Token("plain-text",b,null,b)}g.content&&typeof g.content!="string"&&u(g.content)}};n.hooks.add("after-tokenize",function(d){d.language!=="jsx"&&d.language!=="tsx"||u(d.tokens)})})(t)}return pC}var gC,dF;function hFe(){if(dF)return gC;dF=1,gC=e,e.displayName="julia",e.aliases=[];function e(t){t.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}return gC}var mC,fF;function vFe(){if(fF)return mC;fF=1,mC=e,e.displayName="keepalived",e.aliases=[];function e(t){t.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}|(?:[\da-f]{1,4}:){0,5}:|::(?:[\da-f]{1,4}:){0,5}|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|(?:\/\d{1,2})?)\b/.source.replace(//g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}return mC}var hC,pF;function bFe(){if(pF)return hC;pF=1,hC=e,e.displayName="keyman",e.aliases=[];function e(t){t.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|nomatch|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}return hC}var vC,gF;function yFe(){if(gF)return vC;gF=1,vC=e,e.displayName="kotlin",e.aliases=["kt","kts"];function e(t){(function(n){n.languages.kotlin=n.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete n.languages.kotlin["class-name"];var r={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:n.languages.kotlin}};n.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:r},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:r},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete n.languages.kotlin.string,n.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),n.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),n.languages.kt=n.languages.kotlin,n.languages.kts=n.languages.kotlin})(t)}return vC}var bC,mF;function SFe(){if(mF)return bC;mF=1,bC=e,e.displayName="kumir",e.aliases=["kum"];function e(t){(function(n){var r=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function a(o,i){return RegExp(o.replace(//g,r),i)}n.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:a(/(^|[])(?:да|нет)(?=[]|$)/.source),lookbehind:!0},"operator-word":{pattern:a(/(^|[])(?:и|или|не)(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:a(/(^|[])знач(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:a(/(^|[])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:a(/(^|[])(?:компл|сканкод|файл|цвет)(?=[]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:a(/(^|[])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[]|$)/.source),lookbehind:!0},name:{pattern:a(/(^|[])[^\d][^]*(?:\x20+[^]+)*(?=[]|$)/.source),lookbehind:!0},number:{pattern:a(/(^|[])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},n.languages.kum=n.languages.kumir})(t)}return bC}var yC,hF;function xFe(){if(hF)return yC;hF=1,yC=e,e.displayName="kusto",e.aliases=[];function e(t){t.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}return yC}var SC,vF;function wFe(){if(vF)return SC;vF=1,SC=e,e.displayName="latex",e.aliases=["tex","context"];function e(t){(function(n){var r=/\\(?:[^a-z()[\]]|[a-z*]+)/i,a={"equation-command":{pattern:r,alias:"regex"}};n.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:a,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:a,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:r,alias:"selector"},punctuation:/[[\]{}&]/},n.languages.tex=n.languages.latex,n.languages.context=n.languages.latex})(t)}return SC}var xC,bF;function zy(){if(bF)return xC;bF=1;var e=no();xC=t,t.displayName="php",t.aliases=[];function t(n){n.register(e),function(r){var a=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,o=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],i=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,s=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,c=/[{}\[\](),:;]/;r.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:a,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:o,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:i,operator:s,punctuation:c};var u={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:r.languages.php},d=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:u}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:u}}];r.languages.insertBefore("php","variable",{string:d,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:a,string:d,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:o,number:i,operator:s,punctuation:c}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),r.hooks.add("before-tokenize",function(f){if(/<\?/.test(f.code)){var p=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;r.languages["markup-templating"].buildPlaceholders(f,"php",p)}}),r.hooks.add("after-tokenize",function(f){r.languages["markup-templating"].tokenizePlaceholders(f,"php")})}(n)}return xC}var wC,yF;function CFe(){if(yF)return wC;yF=1;var e=no(),t=zy();wC=n,n.displayName="latte",n.aliases=[];function n(r){r.register(e),r.register(t),function(a){a.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:a.languages.php}};var o=a.languages.extend("markup",{});a.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:a.languages.php}}}}}},o.tag),a.hooks.add("before-tokenize",function(i){if(i.language==="latte"){var s=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;a.languages["markup-templating"].buildPlaceholders(i,"latte",s),i.grammar=o}}),a.hooks.add("after-tokenize",function(i){a.languages["markup-templating"].tokenizePlaceholders(i,"latte")})}(r)}return wC}var CC,SF;function EFe(){if(SF)return CC;SF=1,CC=e,e.displayName="less",e.aliases=[];function e(t){t.languages.less=t.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),t.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}return CC}var EC,xF;function ik(){if(xF)return EC;xF=1,EC=e,e.displayName="scheme",e.aliases=[];function e(t){(function(n){n.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(r({"":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?/.source,"":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/#[box](?:#[ei])?|(?:#[ei])?#[box]/.source,"":/(^|[()\[\]\s])(?:|)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function r(a){for(var o in a)a[o]=a[o].replace(/<[\w\s]+>/g,function(i){return"(?:"+a[i].trim()+")"});return a[o]}})(t)}return EC}var IC,wF;function IFe(){if(wF)return IC;wF=1;var e=ik();IC=t,t.displayName="lilypond",t.aliases=[];function t(n){n.register(e),function(r){for(var a=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|)*\)/.source,o=5,i=0;i/g,function(){return a});a=a.replace(//g,/[^\s\S]/.source);var s=r.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|))/.source.replace(//g,function(){return a}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:r.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};s["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=s,r.languages.ly=s}(n)}return IC}var TC,CF;function TFe(){if(CF)return TC;CF=1;var e=no();TC=t,t.displayName="liquid",t.aliases=[];function t(n){n.register(e),n.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},n.hooks.add("before-tokenize",function(r){var a=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,o=!1;n.languages["markup-templating"].buildPlaceholders(r,"liquid",a,function(i){var s=/^\{%-?\s*(\w+)/.exec(i);if(s){var c=s[1];if(c==="raw"&&!o)return o=!0,!0;if(c==="endraw")return o=!1,!0}return!o})}),n.hooks.add("after-tokenize",function(r){n.languages["markup-templating"].tokenizePlaceholders(r,"liquid")})}return TC}var RC,EF;function RFe(){if(EF)return RC;EF=1,RC=e,e.displayName="lisp",e.aliases=[];function e(t){(function(n){function r(b){return RegExp(/(\()/.source+"(?:"+b+")"+/(?=[\s\)])/.source)}function a(b){return RegExp(/([\s([])/.source+"(?:"+b+")"+/(?=[\s)])/.source)}var o=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,i="&"+o,s="(\\()",c="(?=\\))",u="(?=\\s)",d=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,f={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+o+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+o),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+o),alias:"property"},splice:{pattern:RegExp(",@?"+o),alias:["symbol","variable"]},keyword:[{pattern:RegExp(s+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+u),lookbehind:!0},{pattern:RegExp(s+"(?:append|by|collect|concat|do|finally|for|in|return)"+u),lookbehind:!0}],declare:{pattern:r(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:r(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:a(/nil|t/.source),lookbehind:!0},number:{pattern:a(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(s+"def(?:const|custom|group|var)\\s+"+o),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(o)}},defun:{pattern:RegExp(s+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+o+/\s+\(/.source+d+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+o),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(s+"lambda\\s+\\(\\s*(?:&?"+o+"(?:\\s+&?"+o+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(s+o),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},p={"lisp-marker":RegExp(i),varform:{pattern:RegExp(/\(/.source+o+/\s+(?=\S)/.source+d+/\)/.source),inside:f},argument:{pattern:RegExp(/(^|[\s(])/.source+o),lookbehind:!0,alias:"variable"},rest:f},g="\\S+(?:\\s+\\S+)*",h={pattern:RegExp(s+d+c),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+g),inside:p},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+g),inside:p},keys:{pattern:RegExp("&key\\s+"+g+"(?:\\s+&allow-other-keys)?"),inside:p},argument:{pattern:RegExp(o),alias:"variable"},punctuation:/[()]/}};f.lambda.inside.arguments=h,f.defun.inside.arguments=n.util.clone(h),f.defun.inside.arguments.inside.sublist=h,n.languages.lisp=f,n.languages.elisp=f,n.languages.emacs=f,n.languages["emacs-lisp"]=f})(t)}return RC}var _C,IF;function _Fe(){if(IF)return _C;IF=1,_C=e,e.displayName="livescript",e.aliases=[];function e(t){t.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},t.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=t.languages.livescript}return _C}var $C,TF;function $Fe(){if(TF)return $C;TF=1,$C=e,e.displayName="llvm",e.aliases=[];function e(t){(function(n){n.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(t)}return $C}var OC,RF;function OFe(){if(RF)return OC;RF=1,OC=e,e.displayName="log",e.aliases=[];function e(t){t.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:t.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}return OC}var NC,_F;function NFe(){if(_F)return NC;_F=1,NC=e,e.displayName="lolcode",e.aliases=[];function e(t){t.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}return NC}var kC,$F;function kFe(){if($F)return kC;$F=1,kC=e,e.displayName="magma",e.aliases=[];function e(t){t.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}return kC}var AC,OF;function AFe(){if(OF)return AC;OF=1,AC=e,e.displayName="makefile",e.aliases=[];function e(t){t.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}return AC}var MC,NF;function MFe(){if(NF)return MC;NF=1,MC=e,e.displayName="markdown",e.aliases=["md"];function e(t){(function(n){var r=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function a(p){return p=p.replace(//g,function(){return r}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+p+")")}var o=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return o}),s=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;n.languages.markdown=n.languages.extend("markup",{}),n.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:n.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+s+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+s+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(o),inside:n.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+s+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(o),alias:"important",inside:n.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:a(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:a(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:a(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:a(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(p){["url","bold","italic","strike","code-snippet"].forEach(function(g){p!==g&&(n.languages.markdown[p].inside.content.inside[g]=n.languages.markdown[g])})}),n.hooks.add("after-tokenize",function(p){if(p.language!=="markdown"&&p.language!=="md")return;function g(h){if(!(!h||typeof h=="string"))for(var b=0,y=h.length;b",quot:'"'},d=String.fromCodePoint||String.fromCharCode;function f(p){var g=p.replace(c,"");return g=g.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(h,b){if(b=b.toLowerCase(),b[0]==="#"){var y;return b[1]==="x"?y=parseInt(b.slice(2),16):y=Number(b.slice(1)),d(y)}else{var S=u[b];return S||h}}),g}n.languages.md=n.languages.markdown})(t)}return MC}var PC,kF;function PFe(){if(kF)return PC;kF=1,PC=e,e.displayName="matlab",e.aliases=[];function e(t){t.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}return PC}var DC,AF;function DFe(){if(AF)return DC;AF=1,DC=e,e.displayName="maxscript",e.aliases=[];function e(t){(function(n){var r=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;n.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+r.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+r.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:r,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(t)}return DC}var LC,MF;function LFe(){if(MF)return LC;MF=1,LC=e,e.displayName="mel",e.aliases=[];function e(t){t.languages.mel={comment:/\/\/.*/,code:{pattern:/`(?:\\.|[^\\`\r\n])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:/\b\w+(?=\()|\b(?:CBG|HfAddAttractorToAS|HfAssignAS|HfBuildEqualMap|HfBuildFurFiles|HfBuildFurImages|HfCancelAFR|HfConnectASToHF|HfCreateAttractor|HfDeleteAS|HfEditAS|HfPerformCreateAS|HfRemoveAttractorFromAS|HfSelectAttached|HfSelectAttractors|HfUnAssignAS|Mayatomr|about|abs|addAttr|addAttributeEditorNodeHelp|addDynamic|addNewShelfTab|addPP|addPanelCategory|addPrefixToName|advanceToNextDrivenKey|affectedNet|affects|aimConstraint|air|alias|aliasAttr|align|alignCtx|alignCurve|alignSurface|allViewFit|ambientLight|angle|angleBetween|animCone|animCurveEditor|animDisplay|animView|annotate|appendStringArray|applicationName|applyAttrPreset|applyTake|arcLenDimContext|arcLengthDimension|arclen|arrayMapper|art3dPaintCtx|artAttrCtx|artAttrPaintVertexCtx|artAttrSkinPaintCtx|artAttrTool|artBuildPaintMenu|artFluidAttrCtx|artPuttyCtx|artSelectCtx|artSetPaintCtx|artUserPaintCtx|assignCommand|assignInputDevice|assignViewportFactories|attachCurve|attachDeviceAttr|attachSurface|attrColorSliderGrp|attrCompatibility|attrControlGrp|attrEnumOptionMenu|attrEnumOptionMenuGrp|attrFieldGrp|attrFieldSliderGrp|attrNavigationControlGrp|attrPresetEditWin|attributeExists|attributeInfo|attributeMenu|attributeQuery|autoKeyframe|autoPlace|bakeClip|bakeFluidShading|bakePartialHistory|bakeResults|bakeSimulation|basename|basenameEx|batchRender|bessel|bevel|bevelPlus|binMembership|bindSkin|blend2|blendShape|blendShapeEditor|blendShapePanel|blendTwoAttr|blindDataType|boneLattice|boundary|boxDollyCtx|boxZoomCtx|bufferCurve|buildBookmarkMenu|buildKeyframeMenu|button|buttonManip|cacheFile|cacheFileCombine|cacheFileMerge|cacheFileTrack|camera|cameraView|canCreateManip|canvas|capitalizeString|catch|catchQuiet|ceil|changeSubdivComponentDisplayLevel|changeSubdivRegion|channelBox|character|characterMap|characterOutlineEditor|characterize|chdir|checkBox|checkBoxGrp|checkDefaultRenderGlobals|choice|circle|circularFillet|clamp|clear|clearCache|clip|clipEditor|clipEditorCurrentTimeCtx|clipSchedule|clipSchedulerOutliner|clipTrimBefore|closeCurve|closeSurface|cluster|cmdFileOutput|cmdScrollFieldExecuter|cmdScrollFieldReporter|cmdShell|coarsenSubdivSelectionList|collision|color|colorAtPoint|colorEditor|colorIndex|colorIndexSliderGrp|colorSliderButtonGrp|colorSliderGrp|columnLayout|commandEcho|commandLine|commandPort|compactHairSystem|componentEditor|compositingInterop|computePolysetVolume|condition|cone|confirmDialog|connectAttr|connectControl|connectDynamic|connectJoint|connectionInfo|constrain|constrainValue|constructionHistory|container|containsMultibyte|contextInfo|control|convertFromOldLayers|convertIffToPsd|convertLightmap|convertSolidTx|convertTessellation|convertUnit|copyArray|copyFlexor|copyKey|copySkinWeights|cos|cpButton|cpCache|cpClothSet|cpCollision|cpConstraint|cpConvClothToMesh|cpForces|cpGetSolverAttr|cpPanel|cpProperty|cpRigidCollisionFilter|cpSeam|cpSetEdit|cpSetSolverAttr|cpSolver|cpSolverTypes|cpTool|cpUpdateClothUVs|createDisplayLayer|createDrawCtx|createEditor|createLayeredPsdFile|createMotionField|createNewShelf|createNode|createRenderLayer|createSubdivRegion|cross|crossProduct|ctxAbort|ctxCompletion|ctxEditMode|ctxTraverse|currentCtx|currentTime|currentTimeCtx|currentUnit|curve|curveAddPtCtx|curveCVCtx|curveEPCtx|curveEditorCtx|curveIntersect|curveMoveEPCtx|curveOnSurface|curveSketchCtx|cutKey|cycleCheck|cylinder|dagPose|date|defaultLightListCheckBox|defaultNavigation|defineDataServer|defineVirtualDevice|deformer|deg_to_rad|delete|deleteAttr|deleteShadingGroupsAndMaterials|deleteShelfTab|deleteUI|deleteUnusedBrushes|delrandstr|detachCurve|detachDeviceAttr|detachSurface|deviceEditor|devicePanel|dgInfo|dgdirty|dgeval|dgtimer|dimWhen|directKeyCtx|directionalLight|dirmap|dirname|disable|disconnectAttr|disconnectJoint|diskCache|displacementToPoly|displayAffected|displayColor|displayCull|displayLevelOfDetail|displayPref|displayRGBColor|displaySmoothness|displayStats|displayString|displaySurface|distanceDimContext|distanceDimension|doBlur|dolly|dollyCtx|dopeSheetEditor|dot|dotProduct|doubleProfileBirailSurface|drag|dragAttrContext|draggerContext|dropoffLocator|duplicate|duplicateCurve|duplicateSurface|dynCache|dynControl|dynExport|dynExpression|dynGlobals|dynPaintEditor|dynParticleCtx|dynPref|dynRelEdPanel|dynRelEditor|dynamicLoad|editAttrLimits|editDisplayLayerGlobals|editDisplayLayerMembers|editRenderLayerAdjustment|editRenderLayerGlobals|editRenderLayerMembers|editor|editorTemplate|effector|emit|emitter|enableDevice|encodeString|endString|endsWith|env|equivalent|equivalentTol|erf|error|eval|evalDeferred|evalEcho|event|exactWorldBoundingBox|exclusiveLightCheckBox|exec|executeForEachObject|exists|exp|expression|expressionEditorListen|extendCurve|extendSurface|extrude|fcheck|fclose|feof|fflush|fgetline|fgetword|file|fileBrowserDialog|fileDialog|fileExtension|fileInfo|filetest|filletCurve|filter|filterCurve|filterExpand|filterStudioImport|findAllIntersections|findAnimCurves|findKeyframe|findMenuItem|findRelatedSkinCluster|finder|firstParentOf|fitBspline|flexor|floatEq|floatField|floatFieldGrp|floatScrollBar|floatSlider|floatSlider2|floatSliderButtonGrp|floatSliderGrp|floor|flow|fluidCacheInfo|fluidEmitter|fluidVoxelInfo|flushUndo|fmod|fontDialog|fopen|formLayout|format|fprint|frameLayout|fread|freeFormFillet|frewind|fromNativePath|fwrite|gamma|gauss|geometryConstraint|getApplicationVersionAsFloat|getAttr|getClassification|getDefaultBrush|getFileList|getFluidAttr|getInputDeviceRange|getMayaPanelTypes|getModifiers|getPanel|getParticleAttr|getPluginResource|getenv|getpid|glRender|glRenderEditor|globalStitch|gmatch|goal|gotoBindPose|grabColor|gradientControl|gradientControlNoAttr|graphDollyCtx|graphSelectContext|graphTrackCtx|gravity|grid|gridLayout|group|groupObjectsByName|hardenPointCurve|hardware|hardwareRenderPanel|headsUpDisplay|headsUpMessage|help|helpLine|hermite|hide|hilite|hitTest|hotBox|hotkey|hotkeyCheck|hsv_to_rgb|hudButton|hudSlider|hudSliderButton|hwReflectionMap|hwRender|hwRenderLoad|hyperGraph|hyperPanel|hyperShade|hypot|iconTextButton|iconTextCheckBox|iconTextRadioButton|iconTextRadioCollection|iconTextScrollList|iconTextStaticLabel|ikHandle|ikHandleCtx|ikHandleDisplayScale|ikSolver|ikSplineHandleCtx|ikSystem|ikSystemInfo|ikfkDisplayMethod|illustratorCurves|image|imfPlugins|inheritTransform|insertJoint|insertJointCtx|insertKeyCtx|insertKnotCurve|insertKnotSurface|instance|instanceable|instancer|intField|intFieldGrp|intScrollBar|intSlider|intSliderGrp|interToUI|internalVar|intersect|iprEngine|isAnimCurve|isConnected|isDirty|isParentOf|isSameObject|isTrue|isValidObjectName|isValidString|isValidUiName|isolateSelect|itemFilter|itemFilterAttr|itemFilterRender|itemFilterType|joint|jointCluster|jointCtx|jointDisplayScale|jointLattice|keyTangent|keyframe|keyframeOutliner|keyframeRegionCurrentTimeCtx|keyframeRegionDirectKeyCtx|keyframeRegionDollyCtx|keyframeRegionInsertKeyCtx|keyframeRegionMoveKeyCtx|keyframeRegionScaleKeyCtx|keyframeRegionSelectKeyCtx|keyframeRegionSetKeyCtx|keyframeRegionTrackCtx|keyframeStats|lassoContext|lattice|latticeDeformKeyCtx|launch|launchImageEditor|layerButton|layeredShaderPort|layeredTexturePort|layout|layoutDialog|lightList|lightListEditor|lightListPanel|lightlink|lineIntersection|linearPrecision|linstep|listAnimatable|listAttr|listCameras|listConnections|listDeviceAttachments|listHistory|listInputDeviceAxes|listInputDeviceButtons|listInputDevices|listMenuAnnotation|listNodeTypes|listPanelCategories|listRelatives|listSets|listTransforms|listUnselected|listerEditor|loadFluid|loadNewShelf|loadPlugin|loadPluginLanguageResources|loadPrefObjects|localizedPanelLabel|lockNode|loft|log|longNameOf|lookThru|ls|lsThroughFilter|lsType|lsUI|mag|makeIdentity|makeLive|makePaintable|makeRoll|makeSingleSurface|makeTubeOn|makebot|manipMoveContext|manipMoveLimitsCtx|manipOptions|manipRotateContext|manipRotateLimitsCtx|manipScaleContext|manipScaleLimitsCtx|marker|match|max|memory|menu|menuBarLayout|menuEditor|menuItem|menuItemToShelf|menuSet|menuSetPref|messageLine|min|minimizeApp|mirrorJoint|modelCurrentTimeCtx|modelEditor|modelPanel|mouse|movIn|movOut|move|moveIKtoFK|moveKeyCtx|moveVertexAlongDirection|multiProfileBirailSurface|mute|nParticle|nameCommand|nameField|namespace|namespaceInfo|newPanelItems|newton|nodeCast|nodeIconButton|nodeOutliner|nodePreset|nodeType|noise|nonLinear|normalConstraint|normalize|nurbsBoolean|nurbsCopyUVSet|nurbsCube|nurbsEditUV|nurbsPlane|nurbsSelect|nurbsSquare|nurbsToPoly|nurbsToPolygonsPref|nurbsToSubdiv|nurbsToSubdivPref|nurbsUVSet|nurbsViewDirectionVector|objExists|objectCenter|objectLayer|objectType|objectTypeUI|obsoleteProc|oceanNurbsPreviewPlane|offsetCurve|offsetCurveOnSurface|offsetSurface|openGLExtension|openMayaPref|optionMenu|optionMenuGrp|optionVar|orbit|orbitCtx|orientConstraint|outlinerEditor|outlinerPanel|overrideModifier|paintEffectsDisplay|pairBlend|palettePort|paneLayout|panel|panelConfiguration|panelHistory|paramDimContext|paramDimension|paramLocator|parent|parentConstraint|particle|particleExists|particleInstancer|particleRenderInfo|partition|pasteKey|pathAnimation|pause|pclose|percent|performanceOptions|pfxstrokes|pickWalk|picture|pixelMove|planarSrf|plane|play|playbackOptions|playblast|plugAttr|plugNode|pluginInfo|pluginResourceUtil|pointConstraint|pointCurveConstraint|pointLight|pointMatrixMult|pointOnCurve|pointOnSurface|pointPosition|poleVectorConstraint|polyAppend|polyAppendFacetCtx|polyAppendVertex|polyAutoProjection|polyAverageNormal|polyAverageVertex|polyBevel|polyBlendColor|polyBlindData|polyBoolOp|polyBridgeEdge|polyCacheMonitor|polyCheck|polyChipOff|polyClipboard|polyCloseBorder|polyCollapseEdge|polyCollapseFacet|polyColorBlindData|polyColorDel|polyColorPerVertex|polyColorSet|polyCompare|polyCone|polyCopyUV|polyCrease|polyCreaseCtx|polyCreateFacet|polyCreateFacetCtx|polyCube|polyCut|polyCutCtx|polyCylinder|polyCylindricalProjection|polyDelEdge|polyDelFacet|polyDelVertex|polyDuplicateAndConnect|polyDuplicateEdge|polyEditUV|polyEditUVShell|polyEvaluate|polyExtrudeEdge|polyExtrudeFacet|polyExtrudeVertex|polyFlipEdge|polyFlipUV|polyForceUV|polyGeoSampler|polyHelix|polyInfo|polyInstallAction|polyLayoutUV|polyListComponentConversion|polyMapCut|polyMapDel|polyMapSew|polyMapSewMove|polyMergeEdge|polyMergeEdgeCtx|polyMergeFacet|polyMergeFacetCtx|polyMergeUV|polyMergeVertex|polyMirrorFace|polyMoveEdge|polyMoveFacet|polyMoveFacetUV|polyMoveUV|polyMoveVertex|polyNormal|polyNormalPerVertex|polyNormalizeUV|polyOptUvs|polyOptions|polyOutput|polyPipe|polyPlanarProjection|polyPlane|polyPlatonicSolid|polyPoke|polyPrimitive|polyPrism|polyProjection|polyPyramid|polyQuad|polyQueryBlindData|polyReduce|polySelect|polySelectConstraint|polySelectConstraintMonitor|polySelectCtx|polySelectEditCtx|polySeparate|polySetToFaceNormal|polySewEdge|polyShortestPathCtx|polySmooth|polySoftEdge|polySphere|polySphericalProjection|polySplit|polySplitCtx|polySplitEdge|polySplitRing|polySplitVertex|polyStraightenUVBorder|polySubdivideEdge|polySubdivideFacet|polyToSubdiv|polyTorus|polyTransfer|polyTriangulate|polyUVSet|polyUnite|polyWedgeFace|popen|popupMenu|pose|pow|preloadRefEd|print|progressBar|progressWindow|projFileViewer|projectCurve|projectTangent|projectionContext|projectionManip|promptDialog|propModCtx|propMove|psdChannelOutliner|psdEditTextureFile|psdExport|psdTextureFile|putenv|pwd|python|querySubdiv|quit|rad_to_deg|radial|radioButton|radioButtonGrp|radioCollection|radioMenuItemCollection|rampColorPort|rand|randomizeFollicles|randstate|rangeControl|readTake|rebuildCurve|rebuildSurface|recordAttr|recordDevice|redo|reference|referenceEdit|referenceQuery|refineSubdivSelectionList|refresh|refreshAE|registerPluginResource|rehash|reloadImage|removeJoint|removeMultiInstance|removePanelCategory|rename|renameAttr|renameSelectionList|renameUI|render|renderGlobalsNode|renderInfo|renderLayerButton|renderLayerParent|renderLayerPostProcess|renderLayerUnparent|renderManip|renderPartition|renderQualityNode|renderSettings|renderThumbnailUpdate|renderWindowEditor|renderWindowSelectContext|renderer|reorder|reorderDeformers|requires|reroot|resampleFluid|resetAE|resetPfxToPolyCamera|resetTool|resolutionNode|retarget|reverseCurve|reverseSurface|revolve|rgb_to_hsv|rigidBody|rigidSolver|roll|rollCtx|rootOf|rot|rotate|rotationInterpolation|roundConstantRadius|rowColumnLayout|rowLayout|runTimeCommand|runup|sampleImage|saveAllShelves|saveAttrPreset|saveFluid|saveImage|saveInitialState|saveMenu|savePrefObjects|savePrefs|saveShelf|saveToolSettings|scale|scaleBrushBrightness|scaleComponents|scaleConstraint|scaleKey|scaleKeyCtx|sceneEditor|sceneUIReplacement|scmh|scriptCtx|scriptEditorInfo|scriptJob|scriptNode|scriptTable|scriptToShelf|scriptedPanel|scriptedPanelType|scrollField|scrollLayout|sculpt|searchPathArray|seed|selLoadSettings|select|selectContext|selectCurveCV|selectKey|selectKeyCtx|selectKeyframeRegionCtx|selectMode|selectPref|selectPriority|selectType|selectedNodes|selectionConnection|separator|setAttr|setAttrEnumResource|setAttrMapping|setAttrNiceNameResource|setConstraintRestPosition|setDefaultShadingGroup|setDrivenKeyframe|setDynamic|setEditCtx|setEditor|setFluidAttr|setFocus|setInfinity|setInputDeviceMapping|setKeyCtx|setKeyPath|setKeyframe|setKeyframeBlendshapeTargetWts|setMenuMode|setNodeNiceNameResource|setNodeTypeFlag|setParent|setParticleAttr|setPfxToPolyCamera|setPluginResource|setProject|setStampDensity|setStartupMessage|setState|setToolTo|setUITemplate|setXformManip|sets|shadingConnection|shadingGeometryRelCtx|shadingLightRelCtx|shadingNetworkCompare|shadingNode|shapeCompare|shelfButton|shelfLayout|shelfTabLayout|shellField|shortNameOf|showHelp|showHidden|showManipCtx|showSelectionInTitle|showShadingGroupAttrEditor|showWindow|sign|simplify|sin|singleProfileBirailSurface|size|sizeBytes|skinCluster|skinPercent|smoothCurve|smoothTangentSurface|smoothstep|snap2to2|snapKey|snapMode|snapTogetherCtx|snapshot|soft|softMod|softModCtx|sort|sound|soundControl|source|spaceLocator|sphere|sphrand|spotLight|spotLightPreviewPort|spreadSheetEditor|spring|sqrt|squareSurface|srtContext|stackTrace|startString|startsWith|stitchAndExplodeShell|stitchSurface|stitchSurfacePoints|strcmp|stringArrayCatenate|stringArrayContains|stringArrayCount|stringArrayInsertAtIndex|stringArrayIntersector|stringArrayRemove|stringArrayRemoveAtIndex|stringArrayRemoveDuplicates|stringArrayRemoveExact|stringArrayToString|stringToStringArray|strip|stripPrefixFromName|stroke|subdAutoProjection|subdCleanTopology|subdCollapse|subdDuplicateAndConnect|subdEditUV|subdListComponentConversion|subdMapCut|subdMapSewMove|subdMatchTopology|subdMirror|subdToBlind|subdToPoly|subdTransferUVsToCache|subdiv|subdivCrease|subdivDisplaySmoothness|substitute|substituteAllString|substituteGeometry|substring|surface|surfaceSampler|surfaceShaderList|swatchDisplayPort|switchTable|symbolButton|symbolCheckBox|sysFile|system|tabLayout|tan|tangentConstraint|texLatticeDeformContext|texManipContext|texMoveContext|texMoveUVShellContext|texRotateContext|texScaleContext|texSelectContext|texSelectShortestPathCtx|texSmudgeUVContext|texWinToolCtx|text|textCurves|textField|textFieldButtonGrp|textFieldGrp|textManip|textScrollList|textToShelf|textureDisplacePlane|textureHairColor|texturePlacementContext|textureWindow|threadCount|threePointArcCtx|timeControl|timePort|timerX|toNativePath|toggle|toggleAxis|toggleWindowVisibility|tokenize|tokenizeList|tolerance|tolower|toolButton|toolCollection|toolDropped|toolHasOptions|toolPropertyWindow|torus|toupper|trace|track|trackCtx|transferAttributes|transformCompare|transformLimits|translator|trim|trunc|truncateFluidCache|truncateHairCache|tumble|tumbleCtx|turbulence|twoPointArcCtx|uiRes|uiTemplate|unassignInputDevice|undo|undoInfo|ungroup|uniform|unit|unloadPlugin|untangleUV|untitledFileName|untrim|upAxis|updateAE|userCtx|uvLink|uvSnapshot|validateShelfName|vectorize|view2dToolCtx|viewCamera|viewClipPlane|viewFit|viewHeadOn|viewLookAt|viewManip|viewPlace|viewSet|visor|volumeAxis|vortex|waitCursor|warning|webBrowser|webBrowserPrefs|whatIs|window|windowPref|wire|wireContext|workspace|wrinkle|wrinkleContext|writeTake|xbmLangPathList|xform)\b/,operator:[/\+[+=]?|-[-=]?|&&|\|\||[<>]=|[*\/!=]=?|[%^]/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,:;?\[\](){}]/},t.languages.mel.code.inside.rest=t.languages.mel}return LC}var FC,PF;function FFe(){if(PF)return FC;PF=1,FC=e,e.displayName="mermaid",e.aliases=[];function e(t){t.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}return FC}var jC,DF;function jFe(){if(DF)return jC;DF=1,jC=e,e.displayName="mizar",e.aliases=[];function e(t){t.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}return jC}var BC,LF;function BFe(){if(LF)return BC;LF=1,BC=e,e.displayName="mongodb",e.aliases=[];function e(t){(function(n){var r=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],a=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];r=r.map(function(i){return i.replace("$","\\$")});var o="(?:"+r.join("|")+")\\b";n.languages.mongodb=n.languages.extend("javascript",{}),n.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+o+"(?:\\1)?$")}}}),n.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},n.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+a.join("|")+")\\b"),alias:"keyword"}})})(t)}return BC}var zC,FF;function zFe(){if(FF)return zC;FF=1,zC=e,e.displayName="monkey",e.aliases=[];function e(t){t.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}return zC}var HC,jF;function HFe(){if(jF)return HC;jF=1,HC=e,e.displayName="moonscript",e.aliases=["moon"];function e(t){t.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},t.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=t.languages.moonscript,t.languages.moon=t.languages.moonscript}return HC}var UC,BF;function UFe(){if(BF)return UC;BF=1,UC=e,e.displayName="n1ql",e.aliases=[];function e(t){t.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}return UC}var VC,zF;function VFe(){if(zF)return VC;zF=1,VC=e,e.displayName="n4js",e.aliases=["n4jsd"];function e(t){t.languages.n4js=t.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),t.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),t.languages.n4jsd=t.languages.n4js}return VC}var WC,HF;function WFe(){if(HF)return WC;HF=1,WC=e,e.displayName="nand2tetrisHdl",e.aliases=[];function e(t){t.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}return WC}var GC,UF;function GFe(){if(UF)return GC;UF=1,GC=e,e.displayName="naniscript",e.aliases=[];function e(t){(function(n){var r=/\{[^\r\n\[\]{}]*\}/,a={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:r,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};n.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:r,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:a}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:r,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:a},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},n.languages.nani=n.languages.naniscript,n.hooks.add("after-tokenize",function(s){var c=s.tokens;c.forEach(function(u){if(typeof u!="string"&&u.type==="generic-text"){var d=i(u);o(d)||(u.type="bad-line",u.content=d)}})});function o(s){for(var c="[]{}",u=[],d=0;d=&|$!]/}}return qC}var KC,WF;function KFe(){if(WF)return KC;WF=1,KC=e,e.displayName="neon",e.aliases=[];function e(t){t.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"atrule"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}return KC}var YC,GF;function YFe(){if(GF)return YC;GF=1,YC=e,e.displayName="nevod",e.aliases=[];function e(t){t.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}return YC}var XC,qF;function XFe(){if(qF)return XC;qF=1,XC=e,e.displayName="nginx",e.aliases=[];function e(t){(function(n){var r=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;n.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:r}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:r}},punctuation:/[{};]/}})(t)}return XC}var ZC,KF;function ZFe(){if(KF)return ZC;KF=1,ZC=e,e.displayName="nim",e.aliases=[];function e(t){t.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}return ZC}var QC,YF;function QFe(){if(YF)return QC;YF=1,QC=e,e.displayName="nix",e.aliases=[];function e(t){t.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},t.languages.nix.string.inside.interpolation.inside=t.languages.nix}return QC}var JC,XF;function JFe(){if(XF)return JC;XF=1,JC=e,e.displayName="nsis",e.aliases=[];function e(t){t.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|LabelAddress|TempFileName)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}return JC}var eE,ZF;function eje(){if(ZF)return eE;ZF=1;var e=Kc();eE=t,t.displayName="objectivec",t.aliases=["objc"];function t(n){n.register(e),n.languages.objectivec=n.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete n.languages.objectivec["class-name"],n.languages.objc=n.languages.objectivec}return eE}var tE,QF;function tje(){if(QF)return tE;QF=1,tE=e,e.displayName="ocaml",e.aliases=[];function e(t){t.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}return tE}var nE,JF;function nje(){if(JF)return nE;JF=1;var e=Kc();nE=t,t.displayName="opencl",t.aliases=[];function t(n){n.register(e),function(r){r.languages.opencl=r.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),r.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var a={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};r.languages.insertBefore("c","keyword",a),r.languages.cpp&&(a["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},r.languages.insertBefore("cpp","keyword",a))}(n)}return nE}var rE,ej;function rje(){if(ej)return rE;ej=1,rE=e,e.displayName="openqasm",e.aliases=["qasm"];function e(t){t.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},t.languages.qasm=t.languages.openqasm}return rE}var aE,tj;function aje(){if(tj)return aE;tj=1,aE=e,e.displayName="oz",e.aliases=[];function e(t){t.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}return aE}var oE,nj;function oje(){if(nj)return oE;nj=1,oE=e,e.displayName="parigp",e.aliases=[];function e(t){t.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var n=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return n=n.map(function(r){return r.split("").join(" *")}).join("|"),RegExp("\\b(?:"+n+")\\b")}(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}return oE}var iE,rj;function ije(){if(rj)return iE;rj=1,iE=e,e.displayName="parser",e.aliases=[];function e(t){(function(n){var r=n.languages.parser=n.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});r=n.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:r.keyword,variable:r.variable,function:r.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:r.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:r.punctuation}}}),n.languages.insertBefore("inside","punctuation",{expression:r.expression,keyword:r.keyword,variable:r.variable,function:r.function,escape:r.escape,"parser-punctuation":{pattern:r.punctuation,alias:"punctuation"}},r.tag.inside["attr-value"])})(t)}return iE}var sE,aj;function sje(){if(aj)return sE;aj=1,sE=e,e.displayName="pascal",e.aliases=["objectpascal"];function e(t){t.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},t.languages.pascal.asm.inside=t.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),t.languages.objectpascal=t.languages.pascal}return sE}var lE,oj;function lje(){if(oj)return lE;oj=1,lE=e,e.displayName="pascaligo",e.aliases=[];function e(t){(function(n){var r=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,a=/(?:\b\w+(?:)?|)/.source.replace(//g,function(){return r}),o=n.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)/.source.replace(//g,function(){return a}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/(?=\s+is\b)/.source.replace(//g,function(){return a}),"i"),inside:null},{pattern:RegExp(/(:\s*)/.source.replace(//g,function(){return a})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},i=["comment","keyword","builtin","operator","punctuation"].reduce(function(s,c){return s[c]=o[c],s},{});o["class-name"].forEach(function(s){s.inside=i})})(t)}return lE}var cE,ij;function cje(){if(ij)return cE;ij=1,cE=e,e.displayName="pcaxis",e.aliases=["px"];function e(t){t.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},t.languages.px=t.languages.pcaxis}return cE}var uE,sj;function uje(){if(sj)return uE;sj=1,uE=e,e.displayName="peoplecode",e.aliases=["pcode"];function e(t){t.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},t.languages.pcode=t.languages.peoplecode}return uE}var dE,lj;function dje(){if(lj)return dE;lj=1,dE=e,e.displayName="perl",e.aliases=[];function e(t){(function(n){var r=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;n.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,r].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,r].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,r+/\s*/.source+r].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(t)}return dE}var fE,cj;function fje(){if(cj)return fE;cj=1;var e=zy();fE=t,t.displayName="phpExtras",t.aliases=[];function t(n){n.register(e),n.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}return fE}var pE,uj;function pje(){if(uj)return pE;uj=1;var e=zy(),t=By();pE=n,n.displayName="phpdoc",n.aliases=[];function n(r){r.register(e),r.register(t),function(a){var o=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;a.languages.phpdoc=a.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+o+"\\s+)?)\\$\\w+"),lookbehind:!0}}),a.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+o),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),a.languages.javadoclike.addSupport("php",a.languages.phpdoc)}(r)}return pE}var gE,dj;function gje(){if(dj)return gE;dj=1;var e=ek();gE=t,t.displayName="plsql",t.aliases=[];function t(n){n.register(e),n.languages.plsql=n.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),n.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}return gE}var mE,fj;function mje(){if(fj)return mE;fj=1,mE=e,e.displayName="powerquery",e.aliases=[];function e(t){t.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},t.languages.pq=t.languages.powerquery,t.languages.mscript=t.languages.powerquery}return mE}var hE,pj;function hje(){if(pj)return hE;pj=1,hE=e,e.displayName="powershell",e.aliases=[];function e(t){(function(n){var r=n.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};r.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:r},boolean:r.boolean,variable:r.variable}})(t)}return hE}var vE,gj;function vje(){if(gj)return vE;gj=1,vE=e,e.displayName="processing",e.aliases=[];function e(t){t.languages.processing=t.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),t.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}return vE}var bE,mj;function bje(){if(mj)return bE;mj=1,bE=e,e.displayName="prolog",e.aliases=[];function e(t){t.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}return bE}var yE,hj;function yje(){if(hj)return yE;hj=1,yE=e,e.displayName="promql",e.aliases=[];function e(t){(function(n){var r=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],a=["on","ignoring","group_right","group_left","by","without"],o=["offset"],i=r.concat(a,o);n.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+a.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+i.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(t)}return yE}var SE,vj;function Sje(){if(vj)return SE;vj=1,SE=e,e.displayName="properties",e.aliases=[];function e(t){t.languages.properties={comment:/^[ \t]*[#!].*$/m,"attr-value":{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0},"attr-name":/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,punctuation:/[=:]/}}return SE}var xE,bj;function xje(){if(bj)return xE;bj=1,xE=e,e.displayName="protobuf",e.aliases=[];function e(t){(function(n){var r=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;n.languages.protobuf=n.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),n.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:r}},builtin:r,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})})(t)}return xE}var wE,yj;function wje(){if(yj)return wE;yj=1,wE=e,e.displayName="psl",e.aliases=[];function e(t){t.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}return wE}var CE,Sj;function Cje(){if(Sj)return CE;Sj=1,CE=e,e.displayName="pug",e.aliases=[];function e(t){(function(n){n.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:n.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:n.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:n.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:n.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:n.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:n.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:n.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:n.languages.javascript}],punctuation:/[.\-!=|]+/};for(var r=/(^([\t ]*)):(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,a=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],o={},i=0,s=a.length;i",function(){return c.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[c.language,"language-"+c.language],inside:n.languages[c.language]}}})}n.languages.insertBefore("pug","filter",o)})(t)}return CE}var EE,xj;function Eje(){if(xj)return EE;xj=1,EE=e,e.displayName="puppet",e.aliases=[];function e(t){(function(n){n.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var r=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:n.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];n.languages.puppet.heredoc[0].inside.interpolation=r,n.languages.puppet.string.inside["double-quoted"].inside.interpolation=r})(t)}return EE}var IE,wj;function Ije(){if(wj)return IE;wj=1,IE=e,e.displayName="pure",e.aliases=[];function e(t){(function(n){n.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var r=["c",{lang:"c++",alias:"cpp"},"fortran"],a=/%< *-\*- *\d* *-\*-[\s\S]+?%>/.source;r.forEach(function(o){var i=o;if(typeof o!="string"&&(i=o.alias,o=o.lang),n.languages[i]){var s={};s["inline-lang-"+i]={pattern:RegExp(a.replace("",o.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:n.util.clone(n.languages.pure["inline-lang"].inside)},s["inline-lang-"+i].inside.rest=n.util.clone(n.languages[i]),n.languages.insertBefore("pure","inline-lang",s)}}),n.languages.c&&(n.languages.pure["inline-lang"].inside.rest=n.util.clone(n.languages.c))})(t)}return IE}var TE,Cj;function Tje(){if(Cj)return TE;Cj=1,TE=e,e.displayName="purebasic",e.aliases=[];function e(t){t.languages.purebasic=t.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+|-[>-]?|\+\+?|!=?|<>?=?|==?|&&?|\|?\||[~^%?*/@]/}),t.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete t.languages.purebasic["class-name"],delete t.languages.purebasic.boolean,t.languages.pbfasm=t.languages.purebasic}return TE}var RE,Ej;function Rje(){if(Ej)return RE;Ej=1;var e=nk();RE=t,t.displayName="purescript",t.aliases=["purs"];function t(n){n.register(e),n.languages.purescript=n.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[n.languages.haskell.operator[0],n.languages.haskell.operator[2],/[\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\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-\u20bf\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-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\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-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),n.languages.purs=n.languages.purescript}return RE}var _E,Ij;function _je(){if(Ij)return _E;Ij=1,_E=e,e.displayName="python",e.aliases=["py"];function e(t){t.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},t.languages.python["string-interpolation"].inside.interpolation.inside.rest=t.languages.python,t.languages.py=t.languages.python}return _E}var $E,Tj;function $je(){if(Tj)return $E;Tj=1,$E=e,e.displayName="q",e.aliases=[];function e(t){t.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}return $E}var OE,Rj;function Oje(){if(Rj)return OE;Rj=1,OE=e,e.displayName="qml",e.aliases=[];function e(t){(function(n){for(var r=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,a=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,o=/(?:[^\\()[\]{}"'/]||\/(?![*/])||\(*\)|\[*\]|\{*\}|\\[\s\S])/.source.replace(//g,function(){return r}).replace(//g,function(){return a}),i=0;i<2;i++)o=o.replace(//g,function(){return o});o=o.replace(//g,"[^\\s\\S]"),n.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(*\)\s*\{*\}/.source.replace(//g,function(){return o}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:n.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}]))+/.source.replace(//g,function(){return o}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:n.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}})(t)}return OE}var NE,_j;function Nje(){if(_j)return NE;_j=1,NE=e,e.displayName="qore",e.aliases=[];function e(t){t.languages.qore=t.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}return NE}var kE,$j;function kje(){if($j)return kE;$j=1,kE=e,e.displayName="qsharp",e.aliases=["qs"];function e(t){(function(n){function r(h,b){return h.replace(/<<(\d+)>>/g,function(y,S){return"(?:"+b[+S]+")"})}function a(h,b,y){return RegExp(r(h,b),"")}function o(h,b){for(var y=0;y>/g,function(){return"(?:"+h+")"});return h.replace(/<>/g,"[^\\s\\S]")}var i={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function s(h){return"\\b(?:"+h.trim().replace(/ /g,"|")+")\\b"}var c=RegExp(s(i.type+" "+i.other)),u=/\b[A-Za-z_]\w*\b/.source,d=r(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[u]),f={keyword:c,punctuation:/[<>()?,.:[\]]/},p=/"(?:\\.|[^\\"])*"/.source;n.languages.qsharp=n.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:a(/(^|[^$\\])<<0>>/.source,[p]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:a(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[d]),lookbehind:!0,inside:f},{pattern:a(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[d]),lookbehind:!0,inside:f}],keyword:c,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),n.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var g=o(r(/\{(?:[^"{}]|<<0>>|<>)*\}/.source,[p]),2);n.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:a(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[g]),greedy:!0,inside:{interpolation:{pattern:a(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[g]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:n.languages.qsharp}}},string:/[\s\S]+/}}})})(t),t.languages.qs=t.languages.qsharp}return kE}var AE,Oj;function Aje(){if(Oj)return AE;Oj=1,AE=e,e.displayName="r",e.aliases=[];function e(t){t.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}return AE}var ME,Nj;function Mje(){if(Nj)return ME;Nj=1;var e=ik();ME=t,t.displayName="racket",t.aliases=["rkt"];function t(n){n.register(e),n.languages.racket=n.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),n.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),n.languages.rkt=n.languages.racket}return ME}var PE,kj;function Pje(){if(kj)return PE;kj=1,PE=e,e.displayName="reason",e.aliases=[];function e(t){t.languages.reason=t.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),t.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete t.languages.reason.function}return PE}var DE,Aj;function Dje(){if(Aj)return DE;Aj=1,DE=e,e.displayName="regex",e.aliases=[];function e(t){(function(n){var r={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},a=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,o={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},i={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},s="(?:[^\\\\-]|"+a.source+")",c=RegExp(s+"-"+s),u={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};n.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:c,inside:{escape:a,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":r,"char-set":i,escape:a}},"special-escape":r,"char-set":o,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":u}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:a,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}return LE}var FE,Pj;function Fje(){if(Pj)return FE;Pj=1,FE=e,e.displayName="renpy",e.aliases=["rpy"];function e(t){t.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},t.languages.rpy=t.languages.renpy}return FE}var jE,Dj;function jje(){if(Dj)return jE;Dj=1,jE=e,e.displayName="rest",e.aliases=[];function e(t){t.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}return jE}var BE,Lj;function Bje(){if(Lj)return BE;Lj=1,BE=e,e.displayName="rip",e.aliases=[];function e(t){t.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}return BE}var zE,Fj;function zje(){if(Fj)return zE;Fj=1,zE=e,e.displayName="roboconf",e.aliases=[];function e(t){t.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}return zE}var HE,jj;function Hje(){if(jj)return HE;jj=1,HE=e,e.displayName="robotframework",e.aliases=[];function e(t){(function(n){var r={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},a={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function o(u,d){var f={};f["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var p in d)f[p]=d[p];return f.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},f.variable=a,f.comment=r,{pattern:RegExp(/^ ?\*{3}[ \t]*[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(//g,function(){return u}),"im"),alias:"section",inside:f}}var i={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},s={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:a}},c={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:a}};n.languages.robotframework={settings:o("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:o("Variables"),"test-cases":o("Test Cases",{"test-name":s,documentation:i,property:c}),keywords:o("Keywords",{"keyword-name":s,documentation:i,property:c}),tasks:o("Tasks",{"task-name":s,documentation:i,property:c}),comment:r},n.languages.robot=n.languages.robotframework})(t)}return HE}var UE,Bj;function Uje(){if(Bj)return UE;Bj=1,UE=e,e.displayName="rust",e.aliases=[];function e(t){(function(n){for(var r=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source,a=0;a<2;a++)r=r.replace(//g,function(){return r});r=r.replace(//g,function(){return/[^\s\S]/.source}),n.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+r),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},n.languages.rust["closure-params"].inside.rest=n.languages.rust,n.languages.rust.attribute.inside.string=n.languages.rust.string})(t)}return UE}var VE,zj;function Vje(){if(zj)return VE;zj=1,VE=e,e.displayName="sas",e.aliases=[];function e(t){(function(n){var r=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,a=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,o={pattern:RegExp(r+"[bx]"),alias:"number"},i={pattern:/&[a-z_]\w*/i},s={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},c={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},u=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],d={pattern:RegExp(r),greedy:!0},f=/[$%@.(){}\[\];,\\]/,p={pattern:/%?\b\w+(?=\()/,alias:"keyword"},g={function:p,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":i,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:a,"numeric-constant":o,punctuation:f,string:d},h={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},b={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},y={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},S={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},v=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,x={pattern:RegExp(/(^|\s)(?:action\s+)?(?:)\.[a-z]+\b[^;]+/.source.replace(//g,function(){return v}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:)\.[a-z]+\b/.source.replace(//g,function(){return v}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:u,function:p,"arg-value":g["arg-value"],operator:g.operator,argument:g.arg,number:a,"numeric-constant":o,punctuation:f,string:d}},w={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};n.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:|[^;"'])+;/.source.replace(//g,function(){return r}),"im"),alias:"language-sql",inside:n.languages.sql},"global-statements":y,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:a,"numeric-constant":o,punctuation:f,string:d}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return r}),"im"),lookbehind:!0,alias:"language-groovy",inside:n.languages.groovy},keyword:w,"submit-statement":S,"global-statements":y,number:a,"numeric-constant":o,punctuation:f,string:d}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return r}),"im"),lookbehind:!0,alias:"language-lua",inside:n.languages.lua},keyword:w,"submit-statement":S,"global-statements":y,number:a,"numeric-constant":o,punctuation:f,string:d}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:u,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:g}},"cas-actions":x,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:g},step:c,keyword:w,function:p,format:h,altformat:b,"global-statements":y,number:a,"numeric-constant":o,punctuation:f,string:d}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|)+;/.source.replace(//g,function(){return r}),"im"),lookbehind:!0,inside:g},"macro-keyword":s,"macro-variable":i,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":s,"macro-variable":i,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:f}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:u,number:a,"numeric-constant":o}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:g},"cas-actions":x,comment:u,function:p,format:h,altformat:b,"numeric-constant":o,datetime:{pattern:RegExp(r+"(?:dt?|t)"),alias:"number"},string:d,step:c,keyword:w,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:a,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:f}})(t)}return VE}var WE,Hj;function Wje(){if(Hj)return WE;Hj=1,WE=e,e.displayName="sass",e.aliases=[];function e(t){(function(n){n.languages.sass=n.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),n.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete n.languages.sass.atrule;var r=/\$[-\w]+|#\{\$[-\w]+\}/,a=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];n.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:r,operator:a}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:r,operator:a,important:n.languages.sass.important}}}),delete n.languages.sass.property,delete n.languages.sass.important,n.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})})(t)}return WE}var GE,Uj;function Gje(){if(Uj)return GE;Uj=1;var e=rk();GE=t,t.displayName="scala",t.aliases=[];function t(n){n.register(e),n.languages.scala=n.languages.extend("java",{"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/<-|=>|\b(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|null|object|override|package|private|protected|return|sealed|self|super|this|throw|trait|try|type|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),n.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.scala}}},string:/[\s\S]+/}}}),delete n.languages.scala["class-name"],delete n.languages.scala.function}return GE}var qE,Vj;function qje(){if(Vj)return qE;Vj=1,qE=e,e.displayName="scss",e.aliases=[];function e(t){t.languages.scss=t.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),t.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),t.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),t.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),t.languages.scss.atrule.inside.rest=t.languages.scss}return qE}var KE,Wj;function Kje(){if(Wj)return KE;Wj=1;var e=nX();KE=t,t.displayName="shellSession",t.aliases=[];function t(n){n.register(e),function(r){var a=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");r.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<>)+/.source.replace(/<>/g,function(){return a}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:r.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},r.languages["sh-session"]=r.languages.shellsession=r.languages["shell-session"]}(n)}return KE}var YE,Gj;function Yje(){if(Gj)return YE;Gj=1,YE=e,e.displayName="smali",e.aliases=[];function e(t){t.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}return YE}var XE,qj;function Xje(){if(qj)return XE;qj=1,XE=e,e.displayName="smalltalk",e.aliases=[];function e(t){t.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}return XE}var ZE,Kj;function Zje(){if(Kj)return ZE;Kj=1;var e=no();ZE=t,t.displayName="smarty",t.aliases=[];function t(n){n.register(e),function(r){r.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:r.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},r.languages.smarty["embedded-php"].inside.smarty.inside=r.languages.smarty,r.languages.smarty.string[0].inside.interpolation.inside.expression.inside=r.languages.smarty;var a=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,o=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']||\{(?:[^{}"']||\{(?:[^{}"']|)*\})*\})*\}/.source.replace(//g,function(){return a.source}),"g");r.hooks.add("before-tokenize",function(i){var s="{literal}",c="{/literal}",u=!1;r.languages["markup-templating"].buildPlaceholders(i,"smarty",o,function(d){return d===c&&(u=!1),u?!1:(d===s&&(u=!0),!0)})}),r.hooks.add("after-tokenize",function(i){r.languages["markup-templating"].tokenizePlaceholders(i,"smarty")})}(n)}return ZE}var QE,Yj;function Qje(){if(Yj)return QE;Yj=1,QE=e,e.displayName="sml",e.aliases=["smlnj"];function e(t){(function(n){var r=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;n.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)(?:\s*(?:(?:\*|->)\s*|,\s*(?:(?=)|(?!)\s+)))*/.source.replace(//g,function(){return/\s*(?:[*,]|->)/.source}).replace(//g,function(){return/(?:'[\w']*||\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+)*/.source}).replace(//g,function(){return/(?!)[a-z\d_][\w'.]*/.source}).replace(//g,function(){return r.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:r,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},n.languages.sml["class-name"][0].inside=n.languages.sml,n.languages.smlnj=n.languages.sml})(t)}return QE}var JE,Xj;function Jje(){if(Xj)return JE;Xj=1,JE=e,e.displayName="solidity",e.aliases=["sol"];function e(t){t.languages.solidity=t.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),t.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|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)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),t.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),t.languages.sol=t.languages.solidity}return JE}var e2,Zj;function e5e(){if(Zj)return e2;Zj=1,e2=e,e.displayName="solutionFile",e.aliases=[];function e(t){(function(n){var r={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};n.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:r}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:r}},guid:r,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},n.languages.sln=n.languages["solution-file"]})(t)}return e2}var t2,Qj;function t5e(){if(Qj)return t2;Qj=1;var e=no();t2=t,t.displayName="soy",t.aliases=[];function t(n){n.register(e),function(r){var a=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,o=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;r.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:a,greedy:!0},number:o,punctuation:/[\[\].?]/}},string:{pattern:a,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:o,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},r.hooks.add("before-tokenize",function(i){var s=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,c="{literal}",u="{/literal}",d=!1;r.languages["markup-templating"].buildPlaceholders(i,"soy",s,function(f){return f===u&&(d=!1),d?!1:(f===c&&(d=!0),!0)})}),r.hooks.add("after-tokenize",function(i){r.languages["markup-templating"].tokenizePlaceholders(i,"soy")})}(n)}return t2}var n2,Jj;function iX(){if(Jj)return n2;Jj=1,n2=e,e.displayName="turtle",e.aliases=[];function e(t){t.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},t.languages.trig=t.languages.turtle}return n2}var r2,e5;function n5e(){if(e5)return r2;e5=1;var e=iX();r2=t,t.displayName="sparql",t.aliases=["rq"];function t(n){n.register(e),n.languages.sparql=n.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),n.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),n.languages.rq=n.languages.sparql}return r2}var a2,t5;function r5e(){if(t5)return a2;t5=1,a2=e,e.displayName="splunkSpl",e.aliases=[];function e(t){t.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}return a2}var o2,n5;function a5e(){if(n5)return o2;n5=1,o2=e,e.displayName="sqf",e.aliases=[];function e(t){t.languages.sqf=t.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),t.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:t.languages.sqf.comment}}}),delete t.languages.sqf["class-name"]}return o2}var i2,r5;function o5e(){if(r5)return i2;r5=1,i2=e,e.displayName="squirrel",e.aliases=[];function e(t){t.languages.squirrel=t.languages.extend("clike",{comment:[t.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),t.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),t.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}return i2}var s2,a5;function i5e(){if(a5)return s2;a5=1,s2=e,e.displayName="stan",e.aliases=[];function e(t){(function(n){var r=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;n.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+r.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,r],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},n.languages.stan.constraint.inside.expression.inside=n.languages.stan})(t)}return s2}var l2,o5;function s5e(){if(o5)return l2;o5=1,l2=e,e.displayName="stylus",e.aliases=[];function e(t){(function(n){var r={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},a={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},o={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:r,number:a,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:a,punctuation:/[{}()\[\];:,]/};o.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:o}},o.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:o}},n.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:o}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:o}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:o}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:o.interpolation}},rest:o}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:o.interpolation,comment:o.comment,punctuation:/[{},]/}},func:o.func,string:o.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:o.interpolation,punctuation:/[{}()\[\];:.]/}})(t)}return l2}var c2,i5;function l5e(){if(i5)return c2;i5=1,c2=e,e.displayName="swift",e.aliases=[];function e(t){t.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},t.languages.swift["string-literal"].forEach(function(n){n.inside.interpolation.inside=t.languages.swift})}return c2}var u2,s5;function c5e(){if(s5)return u2;s5=1,u2=e,e.displayName="systemd",e.aliases=[];function e(t){(function(n){var r={pattern:/^[;#].*/m,greedy:!0},a=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;n.languages.systemd={comment:r,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+a+`|(?=[^"\r +]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+a+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:r,quoted:{pattern:RegExp(/(^|\s)/.source+a),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(t)}return u2}var d2,l5;function sk(){if(l5)return d2;l5=1,d2=e,e.displayName="t4Templating",e.aliases=[];function e(t){(function(n){function r(o,i,s){return{pattern:RegExp("<#"+o+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+o+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:i,alias:s}}}}function a(o){var i=n.languages[o],s="language-"+o;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:r("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:r("=",i,s),"class-feature":r("\\+",i,s),standard:r("",i,s)}}}}n.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:a})})(t)}return d2}var f2,c5;function u5e(){if(c5)return f2;c5=1;var e=sk(),t=Fy();f2=n,n.displayName="t4Cs",n.aliases=[];function n(r){r.register(e),r.register(t),r.languages.t4=r.languages["t4-cs"]=r.languages["t4-templating"].createT4("csharp")}return f2}var p2,u5;function sX(){if(u5)return p2;u5=1;var e=rX();p2=t,t.displayName="vbnet",t.aliases=[];function t(n){n.register(e),n.languages.vbnet=n.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}return p2}var g2,d5;function d5e(){if(d5)return g2;d5=1;var e=sk(),t=sX();g2=n,n.displayName="t4Vb",n.aliases=[];function n(r){r.register(e),r.register(t),r.languages["t4-vb"]=r.languages["t4-templating"].createT4("vbnet")}return g2}var m2,f5;function lX(){if(f5)return m2;f5=1,m2=e,e.displayName="yaml",e.aliases=["yml"];function e(t){(function(n){var r=/[*&][^\s[\]{},]+/,a=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,o="(?:"+a.source+"(?:[ ]+"+r.source+")?|"+r.source+"(?:[ ]+"+a.source+")?)",i=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),s=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function c(u,d){d=(d||"").replace(/m/g,"")+"m";var f=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return o}).replace(/<>/g,function(){return u});return RegExp(f,d)}n.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return o})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return o}).replace(/<>/g,function(){return"(?:"+i+"|"+s+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:c(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:c(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:c(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:c(s),lookbehind:!0,greedy:!0},number:{pattern:c(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:a,important:r,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},n.languages.yml=n.languages.yaml})(t)}return m2}var h2,p5;function f5e(){if(p5)return h2;p5=1;var e=lX();h2=t,t.displayName="tap",t.aliases=[];function t(n){n.register(e),n.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:n.languages.yaml,alias:"language-yaml"}}}return h2}var v2,g5;function p5e(){if(g5)return v2;g5=1,v2=e,e.displayName="tcl",e.aliases=[];function e(t){t.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}return v2}var b2,m5;function g5e(){if(m5)return b2;m5=1,b2=e,e.displayName="textile",e.aliases=[];function e(t){(function(n){var r=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,a=/\)|\((?![^|()\n]+\))/.source;function o(p,g){return RegExp(p.replace(//g,function(){return"(?:"+r+")"}).replace(//g,function(){return"(?:"+a+")"}),g||"")}var i={css:{pattern:/\{[^{}]+\}/,inside:{rest:n.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},s=n.languages.textile=n.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:o(/^[a-z]\w*(?:||[<>=])*\./.source),inside:{modifier:{pattern:o(/(^[a-z]\w*)(?:||[<>=])+(?=\.)/.source),lookbehind:!0,inside:i},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:o(/^[*#]+*\s+\S.*/.source,"m"),inside:{modifier:{pattern:o(/(^[*#]+)+/.source),lookbehind:!0,inside:i},punctuation:/^[*#]+/}},table:{pattern:o(/^(?:(?:||[<>=^~])+\.\s*)?(?:\|(?:(?:||[<>=^~_]|[\\/]\d+)+\.|(?!(?:||[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:o(/(^|\|(?:\r?\n|\r)?)(?:||[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:i},punctuation:/\||^\./}},inline:{pattern:o(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:o(/(^(\*\*?)*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:o(/(^(__?)*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:o(/(^\?\?*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:o(/(^@*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:o(/(^\+*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:o(/(^-*).+?(?=-)/.source),lookbehind:!0},span:{pattern:o(/(^%*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:o(/(^\*\*|__|\?\?|[*_%@+\-^~])+/.source),lookbehind:!0,inside:i},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:o(/"*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:o(/(^"*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:o(/(^")+/.source),lookbehind:!0,inside:i},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:o(/!(?:||[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:o(/(^!(?:||[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:o(/(^!)(?:||[<>=])+/.source),lookbehind:!0,inside:i},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),c=s.phrase.inside,u={inline:c.inline,link:c.link,image:c.image,footnote:c.footnote,acronym:c.acronym,mark:c.mark};s.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var d=c.inline.inside;d.bold.inside=u,d.italic.inside=u,d.inserted.inside=u,d.deleted.inside=u,d.span.inside=u;var f=c.table.inside;f.inline=u.inline,f.link=u.link,f.image=u.image,f.footnote=u.footnote,f.acronym=u.acronym,f.mark=u.mark})(t)}return b2}var y2,h5;function m5e(){if(h5)return y2;h5=1,y2=e,e.displayName="toml",e.aliases=[];function e(t){(function(n){var r=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function a(o){return o.replace(/__/g,function(){return r})}n.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(a(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(a(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(t)}return y2}var S2,v5;function h5e(){if(v5)return S2;v5=1,S2=e,e.displayName="tremor",e.aliases=[];function e(t){(function(n){n.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var r=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;n.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+r+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+r+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(r),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.tremor}}},string:/[\s\S]+/}},n.languages.troy=n.languages.tremor,n.languages.trickle=n.languages.tremor})(t)}return S2}var x2,b5;function v5e(){if(b5)return x2;b5=1;var e=oX(),t=ak();x2=n,n.displayName="tsx",n.aliases=[];function n(r){r.register(e),r.register(t),function(a){var o=a.util.clone(a.languages.typescript);a.languages.tsx=a.languages.extend("jsx",o),delete a.languages.tsx.parameter,delete a.languages.tsx["literal-property"];var i=a.languages.tsx.tag;i.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+i.pattern.source+")",i.pattern.flags),i.lookbehind=!0}(r)}return x2}var w2,y5;function b5e(){if(y5)return w2;y5=1;var e=no();w2=t,t.displayName="tt2",t.aliases=[];function t(n){n.register(e),function(r){r.languages.tt2=r.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),r.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),r.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),r.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete r.languages.tt2.string,r.hooks.add("before-tokenize",function(a){var o=/\[%[\s\S]+?%\]/g;r.languages["markup-templating"].buildPlaceholders(a,"tt2",o)}),r.hooks.add("after-tokenize",function(a){r.languages["markup-templating"].tokenizePlaceholders(a,"tt2")})}(n)}return w2}var C2,S5;function y5e(){if(S5)return C2;S5=1;var e=no();C2=t,t.displayName="twig",t.aliases=[];function t(n){n.register(e),n.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},n.hooks.add("before-tokenize",function(r){if(r.language==="twig"){var a=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;n.languages["markup-templating"].buildPlaceholders(r,"twig",a)}}),n.hooks.add("after-tokenize",function(r){n.languages["markup-templating"].tokenizePlaceholders(r,"twig")})}return C2}var E2,x5;function S5e(){if(x5)return E2;x5=1,E2=e,e.displayName="typoscript",e.aliases=["tsconfig"];function e(t){(function(n){var r=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;n.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern://,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:r}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:r,number:/^\d+$/,punctuation:/[,|:]/}},keyword:r,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},n.languages.tsconfig=n.languages.typoscript})(t)}return E2}var I2,w5;function x5e(){if(w5)return I2;w5=1,I2=e,e.displayName="unrealscript",e.aliases=["uc","uscript"];function e(t){t.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},t.languages.uc=t.languages.uscript=t.languages.unrealscript}return I2}var T2,C5;function w5e(){if(C5)return T2;C5=1,T2=e,e.displayName="uorazor",e.aliases=[];function e(t){t.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}return T2}var R2,E5;function C5e(){if(E5)return R2;E5=1,R2=e,e.displayName="uri",e.aliases=["url"];function e(t){t.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},t.languages.url=t.languages.uri}return R2}var _2,I5;function E5e(){if(I5)return _2;I5=1,_2=e,e.displayName="v",e.aliases=[];function e(t){(function(n){var r={pattern:/[\s\S]+/,inside:null};n.languages.v=n.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":r}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),r.inside=n.languages.v,n.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),n.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),n.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:n.languages.v.generic.inside}}}})})(t)}return _2}var $2,T5;function I5e(){if(T5)return $2;T5=1,$2=e,e.displayName="vala",e.aliases=[];function e(t){t.languages.vala=t.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),t.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:t.languages.vala}},string:/[\s\S]+/}}}),t.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}return $2}var O2,R5;function T5e(){if(R5)return O2;R5=1,O2=e,e.displayName="velocity",e.aliases=[];function e(t){(function(n){n.languages.velocity=n.languages.extend("markup",{});var r={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};r.variable.inside={string:r.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:r.number,boolean:r.boolean,punctuation:r.punctuation},n.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:r}},variable:r.variable}),n.languages.velocity.tag.inside["attr-value"].inside.rest=n.languages.velocity})(t)}return O2}var N2,_5;function R5e(){if(_5)return N2;_5=1,N2=e,e.displayName="verilog",e.aliases=[];function e(t){t.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}return N2}var k2,$5;function _5e(){if($5)return k2;$5=1,k2=e,e.displayName="vhdl",e.aliases=[];function e(t){t.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,constant:/\b(?:library|use)\b/i,keyword:/\b(?:'active|'ascending|'base|'delayed|'driving|'driving_value|'event|'high|'image|'instance_name|'last_active|'last_event|'last_value|'left|'leftof|'length|'low|'path_name|'pos|'pred|'quiet|'range|'reverse_range|'right|'rightof|'simple_name|'stable|'succ|'transaction|'val|'value|access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}return k2}var A2,O5;function $5e(){if(O5)return A2;O5=1,A2=e,e.displayName="vim",e.aliases=[];function e(t){t.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}return A2}var M2,N5;function O5e(){if(N5)return M2;N5=1,M2=e,e.displayName="visualBasic",e.aliases=[];function e(t){t.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},t.languages.vb=t.languages["visual-basic"],t.languages.vba=t.languages["visual-basic"]}return M2}var P2,k5;function N5e(){if(k5)return P2;k5=1,P2=e,e.displayName="warpscript",e.aliases=[];function e(t){t.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}return P2}var D2,A5;function k5e(){if(A5)return D2;A5=1,D2=e,e.displayName="wasm",e.aliases=[];function e(t){t.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}return D2}var L2,M5;function A5e(){if(M5)return L2;M5=1,L2=e,e.displayName="webIdl",e.aliases=[];function e(t){(function(n){var r=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,a="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+r+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,o={};n.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+r),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:o},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+a),lookbehind:!0,inside:o},{pattern:RegExp("("+/\bcallback\s+/.source+r+/\s*=\s*/.source+")"+a),lookbehind:!0,inside:o},{pattern:RegExp(/(\btypedef\b\s*)/.source+a),lookbehind:!0,inside:o},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+r),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+r),lookbehind:!0},RegExp(r+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+r),lookbehind:!0},{pattern:RegExp(a+"(?="+/\s*(?:\.{3}\s*)?/.source+r+/\s*[(),;=]/.source+")"),inside:o}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var i in n.languages["web-idl"])i!=="class-name"&&(o[i]=n.languages["web-idl"][i]);n.languages.webidl=n.languages["web-idl"]})(t)}return L2}var F2,P5;function M5e(){if(P5)return F2;P5=1,F2=e,e.displayName="wiki",e.aliases=[];function e(t){t.languages.wiki=t.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:t.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),t.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:t.languages.markup.tag.inside}}}})}return F2}var j2,D5;function P5e(){if(D5)return j2;D5=1,j2=e,e.displayName="wolfram",e.aliases=["mathematica","wl","nb"];function e(t){t.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\^|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},t.languages.mathematica=t.languages.wolfram,t.languages.wl=t.languages.wolfram,t.languages.nb=t.languages.wolfram}return j2}var B2,L5;function D5e(){if(L5)return B2;L5=1,B2=e,e.displayName="wren",e.aliases=[];function e(t){t.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},t.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:t.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}return B2}var z2,F5;function L5e(){if(F5)return z2;F5=1,z2=e,e.displayName="xeora",e.aliases=["xeoracube"];function e(t){(function(n){n.languages.xeora=n.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),n.languages.insertBefore("inside","punctuation",{variable:n.languages.xeora["function-inline"].inside.variable},n.languages.xeora["function-block"]),n.languages.xeoracube=n.languages.xeora})(t)}return z2}var H2,j5;function F5e(){if(j5)return H2;j5=1,H2=e,e.displayName="xmlDoc",e.aliases=[];function e(t){(function(n){function r(s,c){n.languages[s]&&n.languages.insertBefore(s,"comment",{"doc-comment":c})}var a=n.languages.markup.tag,o={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:a}},i={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:a}};r("csharp",o),r("fsharp",o),r("vbnet",i)})(t)}return H2}var U2,B5;function j5e(){if(B5)return U2;B5=1,U2=e,e.displayName="xojo",e.aliases=[];function e(t){t.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}return U2}var V2,z5;function B5e(){if(z5)return V2;z5=1,V2=e,e.displayName="xquery",e.aliases=[];function e(t){(function(n){n.languages.xquery=n.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),n.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,n.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,n.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,n.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:n.languages.xquery,alias:"language-xquery"};var r=function(o){return typeof o=="string"?o:typeof o.content=="string"?o.content:o.content.map(r).join("")},a=function(o){for(var i=[],s=0;s0&&i[i.length-1].tagName===r(c.content[0].content[1])&&i.pop():c.content[c.content.length-1].content==="/>"||i.push({tagName:r(c.content[0].content[1]),openedBraces:0}):i.length>0&&c.type==="punctuation"&&c.content==="{"&&(!o[s+1]||o[s+1].type!=="punctuation"||o[s+1].content!=="{")&&(!o[s-1]||o[s-1].type!=="plain-text"||o[s-1].content!=="{")?i[i.length-1].openedBraces++:i.length>0&&i[i.length-1].openedBraces>0&&c.type==="punctuation"&&c.content==="}"?i[i.length-1].openedBraces--:c.type!=="comment"&&(u=!0)),(u||typeof c=="string")&&i.length>0&&i[i.length-1].openedBraces===0){var d=r(c);s0&&(typeof o[s-1]=="string"||o[s-1].type==="plain-text")&&(d=r(o[s-1])+d,o.splice(s-1,1),s--),/^\s+$/.test(d)?o[s]=d:o[s]=new n.Token("plain-text",d,null,d)}c.content&&typeof c.content!="string"&&a(c.content)}};n.hooks.add("after-tokenize",function(o){o.language==="xquery"&&a(o.tokens)})})(t)}return V2}var W2,H5;function z5e(){if(H5)return W2;H5=1,W2=e,e.displayName="yang",e.aliases=[];function e(t){t.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}return W2}var G2,U5;function H5e(){if(U5)return G2;U5=1,G2=e,e.displayName="zig",e.aliases=[];function e(t){(function(n){function r(d){return function(){return d}}var a=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,o="\\b(?!"+a.source+")(?!\\d)\\w+\\b",i=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,s=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,r(i)),c=/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,r(o)),u="(?!\\s)(?:!?\\s*(?:"+s+"\\s*)*"+c+")+";n.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)(?=\s*(?:\s*)?[=;,)])|(?=\s*(?:\s*)?\{)/.source.replace(//g,r(u)).replace(//g,r(i))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,r(u)).replace(//g,r(i))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:a,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},n.languages.zig["class-name"].forEach(function(d){d.inside===null&&(d.inside=n.languages.zig)})})(t)}return G2}var de=XLe,U5e=de;de.register(s6e());de.register(l6e());de.register(c6e());de.register(u6e());de.register(d6e());de.register(f6e());de.register(p6e());de.register(g6e());de.register(m6e());de.register(h6e());de.register(v6e());de.register(b6e());de.register(y6e());de.register(S6e());de.register(x6e());de.register(w6e());de.register(C6e());de.register(E6e());de.register(I6e());de.register(T6e());de.register(R6e());de.register(_6e());de.register(nX());de.register(rX());de.register($6e());de.register(O6e());de.register(N6e());de.register(k6e());de.register(A6e());de.register(M6e());de.register(P6e());de.register(D6e());de.register(L6e());de.register(F6e());de.register(Kc());de.register(j6e());de.register(B6e());de.register(z6e());de.register(H6e());de.register(U6e());de.register(V6e());de.register(W6e());de.register(G6e());de.register(q6e());de.register(tk());de.register(K6e());de.register(Fy());de.register(Y6e());de.register(X6e());de.register(Z6e());de.register(Q6e());de.register(J6e());de.register(e8e());de.register(t8e());de.register(n8e());de.register(r8e());de.register(a8e());de.register(o8e());de.register(i8e());de.register(s8e());de.register(l8e());de.register(c8e());de.register(u8e());de.register(d8e());de.register(f8e());de.register(p8e());de.register(g8e());de.register(m8e());de.register(h8e());de.register(v8e());de.register(b8e());de.register(y8e());de.register(S8e());de.register(x8e());de.register(w8e());de.register(C8e());de.register(E8e());de.register(I8e());de.register(T8e());de.register(R8e());de.register(_8e());de.register($8e());de.register(O8e());de.register(N8e());de.register(k8e());de.register(A8e());de.register(M8e());de.register(P8e());de.register(D8e());de.register(L8e());de.register(F8e());de.register(j8e());de.register(B8e());de.register(z8e());de.register(nk());de.register(H8e());de.register(U8e());de.register(V8e());de.register(W8e());de.register(G8e());de.register(q8e());de.register(K8e());de.register(Y8e());de.register(X8e());de.register(Z8e());de.register(Q8e());de.register(J8e());de.register(eFe());de.register(tFe());de.register(nFe());de.register(rFe());de.register(aFe());de.register(rk());de.register(oFe());de.register(By());de.register(iFe());de.register(sFe());de.register(lFe());de.register(cFe());de.register(uFe());de.register(dFe());de.register(fFe());de.register(ok());de.register(pFe());de.register(gFe());de.register(mFe());de.register(oX());de.register(hFe());de.register(vFe());de.register(bFe());de.register(yFe());de.register(SFe());de.register(xFe());de.register(wFe());de.register(CFe());de.register(EFe());de.register(IFe());de.register(TFe());de.register(RFe());de.register(_Fe());de.register($Fe());de.register(OFe());de.register(NFe());de.register(aX());de.register(kFe());de.register(AFe());de.register(MFe());de.register(no());de.register(PFe());de.register(DFe());de.register(LFe());de.register(FFe());de.register(jFe());de.register(BFe());de.register(zFe());de.register(HFe());de.register(UFe());de.register(VFe());de.register(WFe());de.register(GFe());de.register(qFe());de.register(KFe());de.register(YFe());de.register(XFe());de.register(ZFe());de.register(QFe());de.register(JFe());de.register(eje());de.register(tje());de.register(nje());de.register(rje());de.register(aje());de.register(oje());de.register(ije());de.register(sje());de.register(lje());de.register(cje());de.register(uje());de.register(dje());de.register(fje());de.register(zy());de.register(pje());de.register(gje());de.register(mje());de.register(hje());de.register(vje());de.register(bje());de.register(yje());de.register(Sje());de.register(xje());de.register(wje());de.register(Cje());de.register(Eje());de.register(Ije());de.register(Tje());de.register(Rje());de.register(_je());de.register($je());de.register(Oje());de.register(Nje());de.register(kje());de.register(Aje());de.register(Mje());de.register(Pje());de.register(Dje());de.register(Lje());de.register(Fje());de.register(jje());de.register(Bje());de.register(zje());de.register(Hje());de.register(jy());de.register(Uje());de.register(Vje());de.register(Wje());de.register(Gje());de.register(ik());de.register(qje());de.register(Kje());de.register(Yje());de.register(Xje());de.register(Zje());de.register(Qje());de.register(Jje());de.register(e5e());de.register(t5e());de.register(n5e());de.register(r5e());de.register(a5e());de.register(ek());de.register(o5e());de.register(i5e());de.register(s5e());de.register(l5e());de.register(c5e());de.register(u5e());de.register(sk());de.register(d5e());de.register(f5e());de.register(p5e());de.register(g5e());de.register(m5e());de.register(h5e());de.register(v5e());de.register(b5e());de.register(iX());de.register(y5e());de.register(ak());de.register(S5e());de.register(x5e());de.register(w5e());de.register(C5e());de.register(E5e());de.register(I5e());de.register(sX());de.register(T5e());de.register(R5e());de.register(_5e());de.register($5e());de.register(O5e());de.register(N5e());de.register(k5e());de.register(A5e());de.register(M5e());de.register(P5e());de.register(D5e());de.register(L5e());de.register(F5e());de.register(j5e());de.register(B5e());de.register(lX());de.register(z5e());de.register(H5e());const V5e=Pa(U5e);var lk=FMe(V5e,i6e);lk.supportedLanguages=zMe;const cX={'code[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"]::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},prolog:{color:"hsl(220, 10%, 40%)"},cdata:{color:"hsl(220, 10%, 40%)"},doctype:{color:"hsl(220, 14%, 71%)"},punctuation:{color:"hsl(220, 14%, 71%)"},entity:{color:"hsl(220, 14%, 71%)",cursor:"help"},"attr-name":{color:"hsl(29, 54%, 61%)"},"class-name":{color:"hsl(29, 54%, 61%)"},boolean:{color:"hsl(29, 54%, 61%)"},constant:{color:"hsl(29, 54%, 61%)"},number:{color:"hsl(29, 54%, 61%)"},atrule:{color:"hsl(29, 54%, 61%)"},keyword:{color:"hsl(286, 60%, 67%)"},property:{color:"hsl(355, 65%, 65%)"},tag:{color:"hsl(355, 65%, 65%)"},symbol:{color:"hsl(355, 65%, 65%)"},deleted:{color:"hsl(355, 65%, 65%)"},important:{color:"hsl(355, 65%, 65%)"},selector:{color:"hsl(95, 38%, 62%)"},string:{color:"hsl(95, 38%, 62%)"},char:{color:"hsl(95, 38%, 62%)"},builtin:{color:"hsl(95, 38%, 62%)"},inserted:{color:"hsl(95, 38%, 62%)"},regex:{color:"hsl(95, 38%, 62%)"},"attr-value":{color:"hsl(95, 38%, 62%)"},"attr-value > .token.punctuation":{color:"hsl(95, 38%, 62%)"},variable:{color:"hsl(207, 82%, 66%)"},operator:{color:"hsl(207, 82%, 66%)"},function:{color:"hsl(207, 82%, 66%)"},url:{color:"hsl(187, 47%, 55%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(220, 14%, 71%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(220, 14%, 71%)"},".language-css .token.selector":{color:"hsl(355, 65%, 65%)"},".language-css .token.property":{color:"hsl(220, 14%, 71%)"},".language-css .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.string.url":{color:"hsl(95, 38%, 62%)"},".language-css .token.important":{color:"hsl(286, 60%, 67%)"},".language-css .token.atrule .token.rule":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.operator":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(5, 48%, 51%)"},".language-json .token.operator":{color:"hsl(220, 14%, 71%)"},".language-json .token.null.keyword":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.url":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.operator":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.content":{color:"hsl(207, 82%, 66%)"},".language-markdown .token.url > .token.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.url-reference.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(95, 38%, 62%)"},".language-markdown .token.bold .token.content":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.italic .token.content":{color:"hsl(286, 60%, 67%)"},".language-markdown .token.strike .token.content":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.list.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(355, 65%, 65%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.cr:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.lf:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.space:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},".line-highlight.line-highlight":{background:"hsla(220, 100%, 80%, 0.04)"},".line-highlight.line-highlight:before":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(220, 100%, 80%, 0.04)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".command-line .command-line-prompt":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(220, 14%, 45%)"},".command-line .command-line-prompt > span:before":{color:"hsl(220, 14%, 45%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(286, 60%, 67%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(224, 13%, 17%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(224, 13%, 17%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(224, 13%, 17%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(224, 13%, 17%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(219, 13%, 22%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(220, 14%, 71%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(220, 14%, 71%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(220, 14%, 71%)"}},uX={'code[class*="language-"]':{background:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"] *::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"]::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"] *::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'pre[class*="language-"] *::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},prolog:{color:"hsl(230, 4%, 64%)"},cdata:{color:"hsl(230, 4%, 64%)"},doctype:{color:"hsl(230, 8%, 24%)"},punctuation:{color:"hsl(230, 8%, 24%)"},entity:{color:"hsl(230, 8%, 24%)",cursor:"help"},"attr-name":{color:"hsl(35, 99%, 36%)"},"class-name":{color:"hsl(35, 99%, 36%)"},boolean:{color:"hsl(35, 99%, 36%)"},constant:{color:"hsl(35, 99%, 36%)"},number:{color:"hsl(35, 99%, 36%)"},atrule:{color:"hsl(35, 99%, 36%)"},keyword:{color:"hsl(301, 63%, 40%)"},property:{color:"hsl(5, 74%, 59%)"},tag:{color:"hsl(5, 74%, 59%)"},symbol:{color:"hsl(5, 74%, 59%)"},deleted:{color:"hsl(5, 74%, 59%)"},important:{color:"hsl(5, 74%, 59%)"},selector:{color:"hsl(119, 34%, 47%)"},string:{color:"hsl(119, 34%, 47%)"},char:{color:"hsl(119, 34%, 47%)"},builtin:{color:"hsl(119, 34%, 47%)"},inserted:{color:"hsl(119, 34%, 47%)"},regex:{color:"hsl(119, 34%, 47%)"},"attr-value":{color:"hsl(119, 34%, 47%)"},"attr-value > .token.punctuation":{color:"hsl(119, 34%, 47%)"},variable:{color:"hsl(221, 87%, 60%)"},operator:{color:"hsl(221, 87%, 60%)"},function:{color:"hsl(221, 87%, 60%)"},url:{color:"hsl(198, 99%, 37%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(230, 8%, 24%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(230, 8%, 24%)"},".language-css .token.selector":{color:"hsl(5, 74%, 59%)"},".language-css .token.property":{color:"hsl(230, 8%, 24%)"},".language-css .token.function":{color:"hsl(198, 99%, 37%)"},".language-css .token.url > .token.function":{color:"hsl(198, 99%, 37%)"},".language-css .token.url > .token.string.url":{color:"hsl(119, 34%, 47%)"},".language-css .token.important":{color:"hsl(301, 63%, 40%)"},".language-css .token.atrule .token.rule":{color:"hsl(301, 63%, 40%)"},".language-javascript .token.operator":{color:"hsl(301, 63%, 40%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(344, 84%, 43%)"},".language-json .token.operator":{color:"hsl(230, 8%, 24%)"},".language-json .token.null.keyword":{color:"hsl(35, 99%, 36%)"},".language-markdown .token.url":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url > .token.operator":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url > .token.content":{color:"hsl(221, 87%, 60%)"},".language-markdown .token.url > .token.url":{color:"hsl(198, 99%, 37%)"},".language-markdown .token.url-reference.url":{color:"hsl(198, 99%, 37%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(119, 34%, 47%)"},".language-markdown .token.bold .token.content":{color:"hsl(35, 99%, 36%)"},".language-markdown .token.italic .token.content":{color:"hsl(301, 63%, 40%)"},".language-markdown .token.strike .token.content":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.list.punctuation":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(5, 74%, 59%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.cr:before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.lf:before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.space:before":{color:"hsla(230, 8%, 24%, 0.2)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},".line-highlight.line-highlight":{background:"hsla(230, 8%, 24%, 0.05)"},".line-highlight.line-highlight:before":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 8%, 24%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 8%, 24%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(230, 8%, 24%, 0.05)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(230, 8%, 24%, 0.2)"},".command-line .command-line-prompt":{borderRightColor:"hsla(230, 8%, 24%, 0.2)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(230, 1%, 62%)"},".command-line .command-line-prompt > span:before":{color:"hsl(230, 1%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(301, 63%, 40%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(301, 63%, 40%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(301, 63%, 40%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(0, 0, 95%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(0, 0, 95%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(0, 0, 95%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(0, 0, 95%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(0, 0%, 100%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(0, 0%, 100%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(0, 0%, 100%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(230, 8%, 24%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(230, 8%, 24%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(230, 8%, 24%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(230, 8%, 24%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(230, 8%, 24%)"}},{Paragraph:V5,Text:W5e}=bn,G5e=()=>{const{t:e}=Nt(),[t,n]=l.useState([]),r=l.useRef(null),[a,o]=l.useState(!1),i=f=>{let p="";for(let g=0;g=32&&b<=126?p+=String.fromCharCode(b):p+="."}return p},s=f=>{let p="";for(let b=0;b=h&&(g=g-2*h),g},c={"15-15452":f=>{if(f.length===16){const p=f.slice(8)+f.slice(0,8);n(g=>[...g,`UnknownTag | ${p}`])}else console.log(`Incorrect payload length for '${f}'. Unable to rearrange.`)},"15-16065":f=>{if(f.length===16){const p=f.slice(8)+f.slice(0,8);n(g=>[...g,`KnownTag | ${p}`])}else console.log(`Incorrect payload length for '${f}'. Unable to rearrange.`)},"12-15427":f=>{if(f.length===8){const p=s(f);n(g=>[...g,`UpsideState | ${p}`])}else console.log(`Incorrect payload length for '${f}'. Unable to rearrange.`)},"12-15426":f=>{if(f.length===8){const p=s(f);n(g=>[...g,`UprightState | ${p}`])}else console.log(`Incorrect payload length for '${f}'. Unable to rearrange.`)}};l.useEffect(()=>{if(a){const f=new EventSource("/api/sse");return f.onopen=()=>{console.log("Connection established.")},f.addEventListener("keep-alive",p=>{console.log("keep-alive event received:",p)}),f.addEventListener("pressed",p=>{const g=JSON.parse(p.data);n(h=>[...h,"Pressed: "+g.data])}),f.addEventListener("rtnl-raw-log2",p=>{const g=JSON.parse(p.data),h=`${"Raw2 | #"+g.data.sequence+" Uptime: "+g.data.uptime+" Func: "+g.data.function_group.toString().padStart(2," ")+"-"+g.data.function+" Payload: '"+g.data.field6+"' ASCII: '"+i(g.data.field6)+"'"}`;n(y=>[...y,h]);const b=`${g.data.function_group.toString().padStart(2," ")}-${g.data.function}`;c[b]&&c[b](g.data.field6)}),f.addEventListener("rtnl-raw-log3",p=>{const g=JSON.parse(p.data);n(h=>[...h,"Raw3 | Datetime: "+g.data.datetime+" Unknown: "+g.data.field2])}),f.onerror=p=>{console.error("EventSource failed:",p)},()=>{console.log("Connection closed."),f.close()}}else return},[a]),l.useEffect(()=>{r.current&&(r.current.scrollTop=r.current.scrollHeight)},[t]);const u=f=>{o(f)},d=()=>{n([])};return m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(Nd,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(Nd,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")},{title:e("settings.rtnl.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsx("h1",{children:e("settings.rtnl.title")}),m.jsxs(V5,{style:{margin:"8px 0"},children:[m.jsxs(V5,{children:[m.jsx(Ha,{checked:a,onChange:u,style:{marginRight:8}}),m.jsx(W5e,{children:e("settings.rtnl.enableRtnl")})]}),m.jsx(Rr,{children:e("settings.rtnl.title")}),m.jsx("div",{ref:r,style:{minHeight:"max(40vh, 333px)",maxHeight:"max(40vh, 333px)",overflow:"auto",padding:1,background:bs()==="dark"?"hsl(220, 13%, 18%)":"hsl(230, 1%, 98%)"},children:m.jsx(lk,{language:"log",style:bs()==="dark"?cX:uX,customStyle:{borderRadius:0,margin:0,border:"none"},children:t.join(` +`)})}),m.jsx(ct,{onClick:d,style:{marginTop:8},children:e("settings.rtnl.clear")})]})]})]})]})},W5=new xn(pn()),dX=({overlay:e})=>{const{t}=Nt(),n=async a=>{const o=new FormData;o.append("file",a);const i={filename:[o.get("file")]},s=async()=>{await W5.apiTriggerWriteConfigGet()};(async u=>{try{await W5.apiUploadCertPost(u,e);try{s()}catch{Ye.error("Error while saving config to file.")}Ye.success(t("settings.certificates.uploadSuccessful",{filename:a.name}))}catch{Ye.error(t("settings.certificates.uploadFailed",{filename:a.name}))}})(i)},r={name:"file",multiple:!0,customRequest:async a=>{const{onSuccess:o,onError:i,file:s}=a;try{await n(s),o("Ok")}catch(c){i(c)}},onChange(a){const{status:o}=a.file;o!=="uploading"&&console.log(a.file,a.fileList)},onDrop(a){console.log("Dropped files",a.dataTransfer.files)}};return m.jsxs(vm.Dragger,{...r,children:[m.jsx("p",{className:"ant-upload-drag-icon",children:m.jsx(tN,{})}),m.jsx("p",{className:"ant-upload-text",children:t("settings.certificates.uploadText")}),m.jsx("p",{className:"ant-upload-hint",children:t("settings.certificates.uploadHint")})]})},q5e=()=>{const{t:e}=Nt(),{Paragraph:t}=bn;return m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(Nd,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(Nd,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")},{title:e("settings.navigationTitle")},{title:e("settings.certificates.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsx("h1",{children:e("settings.certificates.title")}),m.jsx(t,{children:m.jsx(An,{message:e("settings.certificates.information"),description:m.jsxs("div",{children:[e("settings.certificates.hint")," ",m.jsx(yt,{to:"/tonieboxes",children:e("settings.tonieboxes")}),"."]}),type:"info",showIcon:!0})}),m.jsx(t,{children:m.jsx(dX,{})})]})]})]})},El=()=>{const{t:e}=Nt(),t=[{key:"home",label:m.jsx(yt,{to:"/",children:e("home.navigationTitle")}),icon:se.createElement(ywe),title:e("home.navigationTitle")},{key:"features",label:m.jsx(yt,{to:"/home/features",children:e("home.features.navigationTitle")}),icon:se.createElement(yxe),title:e("home.features.navigationTitle")},{key:"statistics",label:m.jsx(yt,{to:"/home/stats",children:e("home.stats.navigationTitle")}),icon:se.createElement(jR),title:e("home.stats.navigationTitle")},{key:"hiddenMeeting",label:m.jsx(yt,{to:"/home/tonieMeeting"})}];return m.jsx(Sm,{mode:"inline",defaultOpenKeys:["sub"],items:t})},Ad=({title:e,okText:t,cancelText:n,content:r,contentHint:a="",contentHintTitle:o="",open:i,handleOk:s,handleCancel:c})=>{const{t:u}=Nt();return m.jsxs(Sn,{title:m.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[m.jsx(gq,{style:{fontSize:36,color:"orange",margin:16}}),m.jsx("div",{style:{marginBottom:16},children:e})]}),open:i,onOk:s,onCancel:c,okText:t,cancelText:n,className:"warning",children:[m.jsx("div",{style:{marginBottom:24},children:r}),a&&m.jsx("div",{children:m.jsx(An,{type:"warning",showIcon:!0,message:o||u("confirmDialog.contentHintTitle"),description:a})})]})},K5e=new xn(pn()),{Text:Y5e}=bn,ck=({open:e,onClose:t,tonieCardOrTAFRecord:n,showSourceInfo:r=!1,readOnly:a,lastRUIDs:o,overlay:i,onHide:s})=>{const{t:c}=Nt(),[u,d]=l.useState(!1),[f,p]=l.useState(!1),[g,h]=l.useState(""),[b,y]=l.useState([]);l.useEffect(()=>{r&&"sourceInfo"in n&&(n.sourceInfo.picture!==n.tonieInfo.picture&&x!==w||n.sourceInfo.picture===n.tonieInfo.picture&&x!==w||n.sourceInfo.series!==n.tonieInfo.series||n.sourceInfo.episode!==n.tonieInfo.episode||n.sourceInfo.tracks.join(".")!==n.tonieInfo.tracks.join("."))&&(p(!0),h(n.sourceInfo.picture),y(n.sourceInfo.tracks))},[n,e]);const S=o&&"ruid"in n?o.filter(([A])=>A===n.ruid).map(([,A,O])=>({ruidTime:A,boxName:O})):null,v=n.tonieInfo.series+(n!=null&&n.tonieInfo.episode?" - "+n.tonieInfo.episode:"")+(n.tonieInfo.model?" ("+n.tonieInfo.model+")":""),x=`${n.tonieInfo.series}`+(n.tonieInfo.episode?` - ${n.tonieInfo.episode}`:""),w="sourceInfo"in n?`${n.sourceInfo.series}`+(n.sourceInfo.episode?` - ${n.sourceInfo.episode}`:""):"",C=f?w:x,E=()=>{d(!0)},I=()=>{R(),d(!1)},T=()=>{d(!1)},R=async()=>{if(s&&"ruid"in n&&n.ruid)try{await K5e.apiPostTeddyCloudContentJson(n.ruid,"hide=true",i),Ye.success(c("tonies.messages.hideTonieSuccessful")),s(n.ruid)}catch(A){Ye.error(c("tonies.messages.hideTonieFailed")+A)}},_=m.jsx(Ad,{title:c("tonies.confirmHideModal.title"),open:u,okText:c("tonies.confirmHideModal.hide"),cancelText:c("tonies.confirmHideModal.cancel"),content:c("tonies.confirmHideModal.confirmHideDialog",{tonieToHide:v||("uid"in n?n.uid:"")}),handleOk:I,handleCancel:T}),$=m.jsx(m.Fragment,{children:m.jsxs("h3",{children:[C||c("tonies.informationModal.unknownModel"),m.jsx("br",{}),"uid"in n&&n.uid?m.jsx(Y5e,{type:"secondary",children:n.uid}):""]})}),P=m.jsxs("div",{style:{display:"flex",justifyContent:"space-between",width:"100%"},children:[m.jsx("div",{children:"ruid"in n&&n.ruid?a?"":m.jsx(ct,{onClick:E,children:c("tonies.informationModal.hideTag")}):""}),m.jsx(ct,{type:"primary",onClick:t,children:c("tonies.informationModal.ok")})]});return m.jsxs(m.Fragment,{children:[m.jsxs(Sn,{title:$,footer:P,open:e,keyboard:!0,closable:!1,maskClosable:!0,onCancel:t,children:[m.jsxs("div",{style:{position:"relative"},children:[m.jsx("img",{src:n.tonieInfo.picture?n.tonieInfo.picture:"/img_unknown.png",alt:"",style:{width:"100%"}}),f?m.jsx(Zt,{title:`${w}`?c("tonies.alternativeSource",{originalTonie:'"'+x+'"',assignedContent:'"'+w+'"'}).replace(' "" '," "):c("tonies.alternativeSourceUnknown",{originalTonie:'"'+x+'"'}).replace(' "" '," "),placement:"bottom",children:m.jsx("img",{src:g,alt:"",style:{bottom:0,padding:8,position:"absolute",right:20,height:"50%",width:"auto"}})}):""]}),S&&S.length>0?m.jsxs(m.Fragment,{children:[m.jsxs("strong",{children:[c("tonies.lastPlayedOnModal.lastPlayedOnMessage"),":"]}),m.jsx("ul",{children:S.map(({ruidTime:A,boxName:O},N)=>m.jsxs("li",{children:[O,A?" ("+A+")":""]},N))})]}):m.jsx(m.Fragment,{}),m.jsxs("div",{children:["valid"in n?m.jsxs("p",{children:[m.jsx("strong",{children:c("tonies.infoModal.valid")})," ",n.valid?c("tonies.infoModal.yes"):c("tonies.infoModal.no")]}):"","exists"in n?m.jsxs("p",{children:[m.jsx("strong",{children:c("tonies.infoModal.exists")})," ",n.exists?c("tonies.infoModal.yes"):c("tonies.infoModal.no")]}):"",f?b&&b.length>0?m.jsxs(m.Fragment,{children:[m.jsx("strong",{children:c("tonies.infoModal.tracklist")}),m.jsx("ol",{children:b.map((A,O)=>m.jsx("li",{children:A},O))})]}):m.jsx(m.Fragment,{}):n.tonieInfo.tracks&&n.tonieInfo.tracks.length>0?m.jsxs(m.Fragment,{children:[m.jsx("strong",{children:c("tonies.infoModal.tracklist")}),m.jsx("ol",{children:n.tonieInfo.tracks.map((A,O)=>m.jsx("li",{children:A},O))})]}):m.jsx(m.Fragment,{})]})]}),_]})},uk=[".mp3",".aac",".m4a",".wav",".flac",".ogg",".opus",".aiff",".aif",".wma",".ac3",".dts",".taf"];function Wu(e,t=!0,n=1){if(!e||e<0)return"NaN";const r=t?1e3:1024;if(Math.abs(e)=r&&o{const{t:c}=Nt(),{playAudio:u}=my(),{token:d}=Z5e(),f=Yi(),p=of(),g=l.useRef(null),h=l.useRef(null),[b,y]=l.useState([]),[S,v]=l.useState(""),[x,w]=l.useState(!1),[C,E]=l.useState([]),[I,T]=l.useState(!1),[R,_]=l.useState(),[$,P]=l.useState(""),[D,A]=l.useState(!1);l.useEffect(()=>{E([])},[]),l.useEffect(()=>{if(n){const G=new URLSearchParams(f.search);G.set("path",""),v("");const U=`${window.location.pathname}?${G.toString()}`;window.history.replaceState(null,"",U),w(q=>!q)}},[n]),l.useEffect(()=>{X5e.apiGetTeddyCloudApiRaw(`/api/fileIndexV2?path=${S}&special=${e}`+(n?`&overlay=${n}`:"")).then(G=>G.json()).then(G=>{var U=G.files;o&&(U=U.filter(q=>q.isDir)),t.length>0&&(U=U.filter(q=>q.isDir||t.some(X=>q.name.endsWith(X)))),y(U)})},[S,e,o,x]),l.useEffect(()=>{h.current!==null&&g.current&&g.current.setSelectionRange(h.current,h.current)},[$]);const O=G=>{var U;!G.isDir&&((U=G.tonieInfo)!=null&&U.tracks)&&(_(G),T(!0))},N=G=>{a&&p(`?path=${G}`),S===G&&w(U=>!U),A(!1),v(G)},k=(G,U)=>{const q=G.split("/").filter(Q=>Q),X=[{title:m.jsx("span",{style:{cursor:"pointer"},onClick:()=>U(""),children:c("fileBrowser.root")}),key:"/"}];return q.forEach((Q,ee)=>{const oe=`/${q.slice(0,ee+1).join("/")}`;X.push({title:m.jsx("span",{style:{cursor:"pointer"},onClick:()=>U(oe),children:Q}),key:oe})}),m.jsx(Xd,{items:X})},M=G=>{P(G.target.value),h.current=G.target.selectionStart,A(!0)},L=()=>{P(""),h.current=0},F=()=>{A(!0)},j=()=>{A(!1)},B=G=>C.includes(G.key)?"highlight-row":"",z=G=>{if(r>0){if(t){const q=G.length;G=G.filter(X=>{const Q=b.find(ee=>ee.name===X);return Q&&Q.tafHeader!==void 0||Q&&t.some(ee=>Q.name.toLowerCase().endsWith(ee))}),q!==G.length&&Ye.warning(c("fileBrowser.selectAllowedFileTypesOnly",{fileTypes:t.join(", ")}))}G.length>r?Ye.warning(c("fileBrowser.maxSelectedRows",{maxSelectedRows:r})):E(G)}else E(G);const U=(b==null?void 0:b.filter(q=>G.includes(q.name)))||[];s!==void 0&&s(U,S,e)},H=G=>{const U=G===".."?S.split("/").slice(0,-1).join("/"):`${S}/${G}`;a&&p(`?path=${U}`),A(!1),E([]),v(U)},V=(G,U)=>U.reduce((q,X)=>{if(q&&q[X]!==void 0)return q[X]},G),te=(G,U,q)=>{const X=Array.isArray(q)?V(G,q):G[q],Q=Array.isArray(q)?V(U,q):U[q];return X===void 0&&Q===void 0?0:X===void 0?1:Q===void 0?-1:typeof X=="string"&&typeof Q=="string"?X.localeCompare(Q):typeof X=="number"&&typeof Q=="number"?X-Q:(console.log("Unsupported types for sorting:",G,U),console.log("Unsupported types for sorting field:",q,X,Q),0)},Y=(G,U)=>G.isDir===U.isDir?te(G,U,"name"):G.isDir?-1:1;var J=[{title:"",dataIndex:["tonieInfo","picture"],key:"picture",sorter:void 0,width:10,render:(G,U)=>{var q,X;return U&&((q=U.tonieInfo)!=null&&q.picture)?m.jsx("img",{src:U.tonieInfo.picture,alt:c("tonies.content.toniePicture"),onClick:()=>O(U),style:{width:100,cursor:!U.isDir&&((X=U==null?void 0:U.tonieInfo)!=null&&X.tracks)?"help":"default"}},`picture-${U.name}`):m.jsx(m.Fragment,{})},showOnDirOnly:!1},{title:c("fileBrowser.name"),dataIndex:"name",key:"name",sorter:Y,defaultSortOrder:"ascend",render:(G,U)=>{var q,X,Q,ee,oe;return U&&m.jsxs("div",{children:[m.jsxs("div",{className:"showSmallDevicesOnly",children:[m.jsx("div",{children:m.jsxs("div",{style:{wordBreak:U.isDir?"normal":"break-word"},children:[U.isDir?"["+U.name+"]":U.name," "]})}),m.jsx("div",{children:(q=U.tonieInfo)==null?void 0:q.model}),m.jsx("div",{style:{wordBreak:U.isDir?"normal":"break-word"},children:((X=U.tonieInfo)!=null&&X.series?(Q=U.tonieInfo)==null?void 0:Q.series:"")+((ee=U.tonieInfo)!=null&&ee.episode?" - "+((oe=U.tonieInfo)==null?void 0:oe.episode):"")})]}),m.jsx("div",{className:"showMediumDevicesOnly",children:m.jsx("div",{children:m.jsxs("div",{style:{wordBreak:U.isDir?"normal":"break-word"},children:[U.isDir?"["+U.name+"]":U.name," "]})})}),m.jsx("div",{className:"showBigDevicesOnly",children:U.isDir?"["+U.name+"]":U.name})]},`name-${U.name}`)},filteredValue:[$],onFilter:(G,U)=>{var X,Q,ee,oe;const q=G.toLowerCase();return U.name===".."||U.name.toLowerCase().includes(q)||!U.isDir&&"tafHeader"in U&&U.tafHeader.size&&Wu(U.tafHeader.size).toString().includes(q)||"tafHeader"in U&&((X=U.tafHeader.audioId)==null?void 0:X.toString().includes(q))||"tonieInfo"in U&&((Q=U.tonieInfo)==null?void 0:Q.model.toLowerCase().includes(q))||"tonieInfo"in U&&((ee=U.tonieInfo)==null?void 0:ee.series.toLowerCase().includes(q))||"tonieInfo"in U&&((oe=U.tonieInfo)==null?void 0:oe.episode.toLowerCase().includes(q))},showOnDirOnly:!0},{title:c("fileBrowser.model"),dataIndex:["tonieInfo","model"],key:"model",showOnDirOnly:!1,responsive:["xl"],render:(G,U)=>{var q;return m.jsx("div",{children:(q=U.tonieInfo)==null?void 0:q.model},`model-${U.name}`)}},{title:m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"showMediumDevicesOnly",children:[c("fileBrowser.model"),"/",c("fileBrowser.series"),"/",c("fileBrowser.episode")]}),m.jsx("div",{className:"showBigDevicesOnly",children:c("fileBrowser.series")})]}),dataIndex:["tonieInfo","series"],key:"series",render:(G,U)=>{var q,X,Q,ee,oe,le,fe;return m.jsxs("div",{children:[m.jsxs("div",{className:"showMediumDevicesOnly",children:[m.jsx("div",{children:(q=U.tonieInfo)==null?void 0:q.model}),m.jsx("div",{style:{wordBreak:"break-word"},children:((X=U.tonieInfo)!=null&&X.series?(Q=U.tonieInfo)==null?void 0:Q.series:"")+((ee=U.tonieInfo)!=null&&ee.episode?" - "+((oe=U.tonieInfo)==null?void 0:oe.episode):"")})]}),m.jsx("div",{className:"showBigDevicesOnly",children:(le=U.tonieInfo)!=null&&le.series?(fe=U.tonieInfo)==null?void 0:fe.series:""})]},`series-${U.name}`)},showOnDirOnly:!1,responsive:["md"]},{title:c("fileBrowser.episode"),dataIndex:["tonieInfo","episode"],key:"episode",showOnDirOnly:!1,responsive:["xl"],render:(G,U)=>{var q;return m.jsx("div",{children:(q=U.tonieInfo)==null?void 0:q.episode},`episode-${U.name}`)}},{title:m.jsx("div",{className:"showMediumDevicesOnly showBigDevicesOnly",children:c("fileBrowser.actions")}),dataIndex:"controls",key:"controls",sorter:void 0,render:(G,U)=>{let q=[];return U.tafHeader?q.push(m.jsx(Zt,{title:c("fileBrowser.playFile"),children:m.jsx(Li,{style:{margin:"0 8px 0 0"},onClick:()=>u(encodeURI("/content"+S+"/"+U.name)+"?ogg=true&special="+e+(n?`&overlay=${n}`:""),U.tonieInfo)})},`action-play-${U.name}`)):Q5e.some(X=>U.name.endsWith(X))&&q.push(m.jsx(Zt,{title:c("fileBrowser.playFile"),children:m.jsx(Li,{style:{margin:"0 8px 0 0"},onClick:()=>u(encodeURI("/content"+S+"/"+U.name)+"?special="+e+(n?`&overlay=${n}`:""),U.tonieInfo)})},`action-play-${U.name}`)),q},showOnDirOnly:!1}];return J.forEach(G=>{G.hasOwnProperty("sorter")||(G.sorter=(U,q)=>te(U,q,G.dataIndex))}),o&&(J=J.filter(G=>G.showOnDirOnly)),i&&(J=J.filter(G=>typeof G.key=="string"?i.includes(G.key):!1)),m.jsxs(m.Fragment,{children:[R?m.jsx(ck,{open:I,tonieCardOrTAFRecord:R,onClose:()=>T(!1),overlay:n}):"",m.jsx("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start"},children:m.jsxs("div",{style:{display:"flex",flexDirection:"row",marginBottom:8},children:[m.jsx("div",{style:{lineHeight:1.5,marginRight:16},children:c("tonies.currentPath")}),k(S,N)]})}),m.jsx(Ja,{dataSource:b,columns:J,rowKey:G=>G.name,pagination:!1,onRow:G=>({onDoubleClick:()=>{if(G.isDir)H(G.name);else{const U=C.includes(G.name)?C.filter(q=>q!==G.name):[...C,G.name];z(U)}}}),rowClassName:B,rowSelection:r>0?{selectedRowKeys:C,onChange:z}:{selectedRowKeys:C,onChange:z,getCheckboxProps:G=>({disabled:G.name===".."}),onSelectAll:(G,U)=>{const q=G?U.filter(X=>X.name!=="..").map(X=>X.name):[];E(q)}},components:{header:{wrapper:G=>m.jsx("thead",{...G}),row:G=>m.jsxs(m.Fragment,{children:[m.jsx("tr",{...G}),m.jsx("tr",{children:m.jsx("th",{style:{padding:"10px 8px"},colSpan:J.length+1,children:m.jsx(Jt,{placeholder:c("fileBrowser.filter"),value:$,onChange:M,onFocus:F,onBlur:j,ref:g,style:{width:"100%"},autoFocus:D,addonAfter:m.jsx(ta,{onClick:L,disabled:$.length===0,style:{color:$.length===0?d.colorTextDisabled:d.colorText,cursor:$.length===0?"default":"pointer"}})})})})]}),cell:G=>m.jsx("th",{...G,style:{position:"sticky",top:0,zIndex:20}})}}})]})},{useToken:J5e}=Ta,Sa=({language:e,code:t,showLineNumbers:n=!0})=>{const{t:r}=Nt(),{token:a}=J5e(),[o,i]=l.useState(""),[s,c]=l.useState(!1),u=l.useRef(null);l.useEffect(()=>{c(window.isSecureContext)},[]);const d=()=>{navigator.clipboard.writeText(t).then(()=>{i(r("utils.copied")),setTimeout(()=>i(""),2e3)})},f=()=>{if(u.current){u.current.select();try{document.execCommand("copy"),i(r("utils.copied")),setTimeout(()=>i(""),2e3)}catch{i(r("utils.failedToCopied"))}}};return m.jsxs("div",{style:{position:"relative"},children:[m.jsx(lk,{language:e,style:bs()==="dark"?cX:uX,customStyle:{padding:"0.5rem",borderRadius:"8px",margin:"0.5rem 0",border:"1px solid",borderColor:a.colorBorderSecondary},showLineNumbers:n,lineNumberStyle:{minWidth:"2rem",textAlign:"right",paddingRight:"1rem"},wrapLines:!0,lineProps:{style:{whiteSpace:"pre-wrap"}},children:t}),!s&&m.jsx("textarea",{ref:u,value:t,readOnly:!0,style:{position:"absolute",left:"-9999px",opacity:0}}),o?null:m.jsx(Zt,{title:r("utils.copyToClipboard"),children:m.jsx("button",{onClick:s?d:f,style:{position:"absolute",top:"10px",right:"10px",border:"none",background:"transparent",cursor:"pointer"},children:m.jsx(QO,{style:{color:a.colorText}})})}),o&&m.jsxs("span",{style:{position:"absolute",top:"10px",right:"10px",border:"none",background:"transparent",color:a.colorSuccess,fontSize:"small"},children:[m.jsx(am,{})," ",o]})]})},eBe=new xn(pn()),fX=({open:e,onClose:t,setValue:n,props:r,tonieCardProps:a,audioId:o,hash:i})=>{const{t:s}=Nt(),[c]=qt.useForm();l.useEffect(()=>{e&&p(),e&&a&&c.setFieldsValue({series:a.tonieInfo.series,episodes:a.tonieInfo.episode,model:a.tonieInfo.model,language:a.tonieInfo.language,pic:a.tonieInfo.picture,tracks:a.tonieInfo.tracks})},[e,a,c]);const u=async w=>{if(w.tracks&&(w.tracks=w.tracks.filter(C=>C.track&&C.track.trim()).map(C=>C.track)),w.audio_id){w.audio_id=w.audio_id.filter(I=>I.audio_id&&I.audio_id.trim()&&I.hash&&I.hash.trim());const C=w.audio_id.map(I=>I.audio_id),E=w.audio_id.map(I=>I.hash);w={no:w.no,model:w.model,audio_id:C,hash:E,title:w.title,series:w.series,episodes:w.episodes,tracks:w.tracks,release:w.release,language:w.language,category:w.category,pic:w.pic}}h(w),y(!0);try{await eBe.apiPostTeddyCloudRaw("/api/doSomething",JSON.stringify(w),void 0,void 0,{"Content-Type":"application/json"}),w.article&&n&&(n(w.article),r.onChange(w.article)),p(),Ye.success(s("tonies.addNewCustomTonieModal.successfullyCreated")),t()}catch(C){Ye.error(s("tonies.addNewCustomTonieModal.failedToCreate")+C)}},d=()=>{c.submit()},f=()=>{p(),t()},p=()=>{c.resetFields(),c.setFieldsValue({audio_id:[{audio_id:o||"",hash:i||""}],tracks:[{track:""}]})},[g,h]=l.useState(""),[b,y]=l.useState(!1),S=m.jsx(ct,{type:"primary",onClick:()=>v(),children:s("tonies.informationModal.ok")}),v=()=>{y(!1),f()},x=m.jsx(Sn,{footer:S,width:1e3,title:"File (you can copy the content to the tonies.custom.json)",open:b,onCancel:v,children:g?m.jsxs(m.Fragment,{children:[m.jsx(Sa,{language:"json",code:JSON.stringify(g,null,2)},"json-readable"),m.jsx("div",{style:{margin:"16px 0 8px 0"},children:"Minimized json:"}),m.jsx(Sa,{language:"json",showLineNumbers:!1,code:JSON.stringify(g,null,0)},"json-minimized")]}):"Loading..."});return m.jsxs(m.Fragment,{children:[m.jsxs(Sn,{title:s("tonies.addNewCustomTonieModal.title"),open:e,onCancel:f,onOk:d,okText:s("tonies.addNewCustomTonieModal.save"),width:Math.max(Math.min(window.innerWidth*.75,800),500),children:[m.jsx(An,{type:"info",showIcon:!0,message:"Work in progress - be aware!",description:"Currently, only the generated json fragment is displayed when saving the new model. This is not automatically inserted into the tonies.custom.json. You have to copy this into the file yourself.",style:{marginBottom:8}}),m.jsx(qt,{form:c,layout:"vertical",onFinish:u,children:m.jsxs(Na,{gutter:[16,0],children:[m.jsx(En,{span:24,children:m.jsxs(Na,{gutter:[16,0],children:[m.jsx(En,{span:8,children:m.jsx(qt.Item,{label:[s("tonies.addNewCustomTonieModal.series"),m.jsx(Zt,{title:s("tonies.addNewCustomTonieModal.seriesHint"),children:m.jsx(Hu,{style:{marginLeft:2}})},"series-tooltip")],name:"series",rules:[{required:!0,message:s("tonies.addNewCustomTonieModal.seriesRequired")}],children:m.jsx(Jt,{style:{width:"100%"}})},"series")}),m.jsx(En,{span:10,children:m.jsx(qt.Item,{label:[s("tonies.addNewCustomTonieModal.episode"),m.jsx(Zt,{title:s("tonies.addNewCustomTonieModal.episodeHint"),children:m.jsx(Hu,{style:{marginLeft:2}})},"episodes-tooltip")],name:"episodes",children:m.jsx(Jt,{style:{width:"100%"}})},"episodes")}),m.jsx(En,{span:6,children:m.jsx(qt.Item,{label:[s("tonies.addNewCustomTonieModal.language"),m.jsx(Zt,{title:s("tonies.addNewCustomTonieModal.languageHint"),children:m.jsx(Hu,{style:{marginLeft:2}})},"language-tooltip")],name:"language",children:m.jsx(Jt,{style:{width:"100%"}})},"language")})]})}),m.jsx(En,{span:24,children:m.jsxs(Na,{gutter:[16,0],children:[m.jsx(En,{span:8,children:m.jsx(qt.Item,{label:s("tonies.addNewCustomTonieModal.model"),name:"model",rules:[{required:!0,message:s("tonies.addNewCustomTonieModal.modelRequired")}],children:m.jsx(Jt,{style:{width:"100%"}})},"model")}),m.jsx(En,{span:16,children:m.jsx(qt.Item,{label:s("tonies.addNewCustomTonieModal.pic"),name:"pic",children:m.jsx(Jt,{style:{width:"100%"}})},"pic")})]})}),m.jsx(En,{span:24,children:m.jsxs(Na,{gutter:[16,0],children:[m.jsx(En,{span:8,children:m.jsx(qt.Item,{label:s("tonies.addNewCustomTonieModal.no"),name:"no",children:m.jsx(Jt,{style:{width:"100%"}})},"no")}),m.jsx(En,{span:16,children:m.jsx(qt.Item,{label:[s("tonies.addNewCustomTonieModal.formfieldTitle"),m.jsx(Zt,{title:s("tonies.addNewCustomTonieModal.formfieldTitleHint"),children:m.jsx(Hu,{style:{marginLeft:2}})},"title-tooltip")],name:"title",children:m.jsx(Jt,{style:{width:"100%"}})},"title")})]})}),m.jsx(En,{span:24,children:m.jsxs(Na,{gutter:[16,0],children:[m.jsx(En,{span:8,children:m.jsx(qt.Item,{label:s("tonies.addNewCustomTonieModal.release"),name:"release",children:m.jsx(Jt,{style:{width:"100%"}})},"release")}),m.jsx(En,{span:16,children:m.jsx(qt.Item,{label:s("tonies.addNewCustomTonieModal.category"),name:"category",children:m.jsx(Jt,{style:{width:"100%"}})},"category")})]})}),m.jsx(En,{span:24,children:m.jsx(Na,{gutter:[16,0],children:m.jsx(En,{span:24,children:m.jsx(qt.List,{name:"audio_id",children:(w,{add:C,remove:E})=>m.jsxs(m.Fragment,{children:[w.map(({key:I,name:T,...R},_)=>m.jsxs(Na,{gutter:[16,0],children:[m.jsx(En,{span:8,children:l.createElement(qt.Item,{...R,key:`audio-id-${I}`,name:[T,"audio_id"],label:m.jsx("div",{children:_===0?s("tonies.addNewCustomTonieModal.audioId"):""},`audio-id-label-${I}`)},m.jsx(Jt,{style:{width:"100%"}}))}),m.jsx(En,{span:16,children:l.createElement(qt.Item,{...R,key:`hash-${I}`,name:[T,"hash"],label:m.jsx("div",{children:_===0?s("tonies.addNewCustomTonieModal.hash"):""},`hash-label-${I}`)},m.jsx(Jt,{style:{width:"100%"},addonAfter:m.jsx(ct,{type:"link",onClick:()=>E(T),style:{height:"auto",margin:-2},children:s("tonies.addNewCustomTonieModal.remove")},`audio-id-hash-remove-${I}`)}))})]},`audio-id-hash-row-${I}`)),m.jsx(qt.Item,{children:m.jsx(ct,{type:"dashed",onClick:()=>C(),block:!0,children:s("tonies.addNewCustomTonieModal.addAudioIdHash")})},"add-audio-id-hash")]})},"audio-id-hash-list")})})}),m.jsx(En,{span:24,children:m.jsx(qt.List,{name:"tracks",children:(w,{add:C,remove:E})=>m.jsxs(m.Fragment,{children:[w.map(({key:I,name:T,...R},_)=>m.jsx(Na,{gutter:[16,0],children:m.jsx(En,{span:24,children:l.createElement(qt.Item,{...R,key:`track-${I}`,name:[T,"track"],label:m.jsx("div",{children:_===0?s("tonies.addNewCustomTonieModal.track"):""},`track-label-${I}`)},m.jsx(Jt,{style:{width:"100%"},addonAfter:m.jsx(ct,{type:"link",onClick:()=>E(T),style:{height:"auto",margin:-2},children:s("tonies.addNewCustomTonieModal.remove")},`track-remove-${I}`)},"input-track-"+I))})},`track-row-${I}`)),m.jsx(qt.Item,{children:m.jsx(ct,{type:"dashed",onClick:()=>C(),block:!0,children:s("tonies.addNewCustomTonieModal.addTrack")})},"add-track")]})},"track-list")})]})})]}),x]})},tBe=new xn(pn()),nBe=e=>{const{t}=Nt();Ye.useMessage();const[n,r]=l.useState([]),[a,o]=l.useState(),[i,s]=l.useState(),[c,u]=l.useState(!1),d=async g=>{const h=encodeURIComponent(g),b="/api/toniesJsonSearch?searchModel="+h+"&searchSeries="+h+"&searchEpisode="+h;try{const S=await(await tBe.apiGetTeddyCloudApiRaw(b)).json();s(S);const v=S.map(x=>({value:x.model,text:"["+x.model+"] "+x.series+" - "+x.episode,picture:x.picture}));r(v)}catch(y){Ye.error(t("tonieArticleSearch.failedToFetchSearchResults")+y);return}},f=g=>{o(g),e.onChange(g)},p=()=>{u(!0)};return m.jsxs(m.Fragment,{children:[m.jsx(Ar,{showSearch:!0,value:a,placeholder:e.placeholder,defaultActiveFirstOption:!1,suffixIcon:null,filterOption:!1,onSearch:d,onChange:f,notFoundContent:null,options:(n||[]).map(g=>({value:g.value,label:m.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[m.jsx("img",{src:g.picture,alt:g.text,style:{display:"none"}}),g.text]})})),style:{marginTop:"8px"}}),m.jsx(fX,{open:c,props:e,setValue:o,onClose:()=>u(!1)}),m.jsx(Zt,{title:t("tonies.addNewCustomTonieHint"),children:m.jsx(ct,{onClick:p,style:{marginTop:8},children:t("tonies.addNewCustomTonie")})})]})},rBe=({countryCode:e,height:t})=>{switch(e){case"de-de":return m.jsxs("svg",{height:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 60",children:[m.jsx("path",{d:"M0 0h100v20H0z"}),m.jsx("path",{fill:"#D00",d:"M0 20h100v20H0z"}),m.jsx("path",{fill:"#FFCE00",d:"M0 40h100v20H0z"})]});case"en-gb":return m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 66.666",height:t,children:[m.jsxs("g",{fill:"#FFF",children:[m.jsx("path",{d:"M0 0h100v66.53H0z"}),m.jsx("path",{d:"M60.76 44.834 100 66.53v-6.141L71.988 44.834zM39.045 21.696 0 0v6.141l28.012 15.556z"})]}),m.jsx("path",{d:"M76.764 44.834 100 57.642V44.834zm-16.004 0L100 66.53v-6.141L71.988 44.834zM89.396 66.53 60.741 50.604V66.53zM17.602 44.834 0 54.62v-9.786zm21.442 2.768V66.55H4.971zM23.041 21.696 0 8.889v12.807zm16.004 0L0 0v6.141l28.012 15.556zM10.409 0l28.655 15.926V0zm71.793 21.696L100 11.911v9.786zM60.76 18.928V0h34.093z",fill:"#0052B4"}),m.jsxs("g",{fill:"#D80027",children:[m.jsx("path",{d:"M56.141 0H43.665v27.037H0v12.476h43.664V66.55H56.14V39.513h43.664V27.037H56.14z"}),m.jsx("path",{d:"M60.76 44.834 100 66.53v-6.141L71.988 44.834zm-32.748 0L0 60.41v6.14l39.045-21.715zm11.033-23.139L0 0v6.141l28.012 15.556zm32.748 0L100 6.141V0L60.76 21.696z"})]})]});case"en-us":return m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 66.667",height:t,children:[m.jsx("path",{fill:"#FFF",d:"M0 0h100v66.667H0z"}),m.jsx("path",{d:"M0 0h100v5.127H0zm0 10.253h100v5.127H0zm0 10.253h100v5.127H0zm0 10.253h100v5.127H0zm0 10.273h100v5.127H0zm0 10.253h100v5.127H0zm0 10.253h100v5.129H0z",fill:"#D80027"}),m.jsx("path",{fill:"#2E52B2",d:"M0 0h50v35.887H0z"}),m.jsx("path",{d:"m9.318 27.076-.78-2.495-.858 2.495H5.107l2.086 1.501-.78 2.495 2.125-1.54 2.066 1.54-.799-2.495 2.125-1.501zm10.975 0-.799-2.495-.819 2.495h-2.574l2.086 1.501-.78 2.495 2.086-1.54 2.105 1.54-.78-2.495 2.086-1.501zm11.014 0-.838-2.495-.78 2.495h-2.632l2.144 1.501-.819 2.495 2.086-1.54 2.144 1.54-.819-2.495 2.086-1.501zm10.955 0-.78-2.495-.819 2.495H38.07l2.105 1.501-.78 2.495 2.086-1.54 2.105 1.54-.838-2.495 2.144-1.501zM19.493 14.678l-.819 2.495h-2.573l2.086 1.54-.78 2.456 2.086-1.52 2.105 1.52-.78-2.456 2.086-1.54h-2.612zm-10.955 0-.858 2.495H5.107l2.086 1.54-.78 2.456 2.125-1.52 2.066 1.52-.799-2.456 2.125-1.54H9.318zm21.93 0-.78 2.495h-2.632l2.144 1.54-.819 2.456 2.086-1.52 2.144 1.52-.819-2.456 2.086-1.54h-2.573zm11.014 0-.819 2.495H38.07l2.105 1.54-.78 2.456 2.086-1.52 2.105 1.52-.838-2.456 2.144-1.54H42.26zM8.539 4.814 7.681 7.27H5.107l2.086 1.54-.78 2.476 2.125-1.539 2.066 1.54-.799-2.476 2.125-1.54H9.318zm10.955 0-.819 2.456h-2.574l2.086 1.54-.78 2.476 2.086-1.539 2.105 1.54-.78-2.476 2.086-1.54h-2.612zm10.975 0-.78 2.456h-2.632l2.144 1.54-.819 2.476 2.086-1.54 2.144 1.54-.819-2.476 2.086-1.54h-2.573zm11.014 0-.819 2.456h-2.593l2.105 1.54-.78 2.476 2.086-1.54 2.105 1.54-.838-2.476 2.144-1.54h-2.632z",fill:"#FFF"})]});case"fr-fr":return m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 66.667",height:t,children:[m.jsx("path",{fill:"#FFF",d:"M0 0h100v66.667H0z"}),m.jsx("path",{fill:"#0052B4",d:"M0 0h33.333v66.667H0z"}),m.jsx("path",{fill:"#D80027",d:"M66.667 0H100v66.667H66.667z"})]});case"nl-be":return m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 66.667",height:t,children:[m.jsx("path",{fill:"#fdda25",d:"M0 0h100v66.667H0z"}),m.jsx("path",{d:"M0 0h33.333v66.667H0z"}),m.jsx("path",{fill:"#ef3340",d:"M66.667 0H100v66.667H66.667z"})]});case"nl-nl":return m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 66.667",height:t,children:[m.jsx("path",{fill:"#FFF",d:"M0 22.222h100v22.222H0z"}),m.jsx("path",{fill:"#cd1f2a",d:"M0 0h100v22.222H0z"}),m.jsx("path",{fill:"#1d4185",d:"M0 44.444h100v22.223H0z"})]});case"pt-pt":return m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 16.667 100 66.667",height:t,children:[m.jsx("path",{y:"85.337",fill:"#D80027",width:"512",height:"341.326",d:"M0 16.667H100V83.333H0V16.667z"}),m.jsx("path",{fill:"#6DA544",points:"196.641,85.337 196.641,261.565 196.641,426.663 0,426.663 0,85.337 ",d:"M38.406 16.667L38.406 51.087L38.406 83.333L0 83.333L0 16.667Z"}),m.jsx("path",{fill:"#FFDA44",cx:"196.641",cy:"256",r:"64",d:"M50.906 50A12.5 12.5 0 0 1 38.406 62.5A12.5 12.5 0 0 1 25.906 50A12.5 12.5 0 0 1 50.906 50z"}),m.jsx("path",{fill:"#D80027",d:"M31.375 43.75v7.813c0 3.883 3.148 7.031 7.031 7.031s7.031 -3.148 7.031 -7.031V43.75z"}),m.jsx("path",{fill:"#FFFFFF",d:"M38.406 53.906c-1.292 0 -2.344 -1.051 -2.344 -2.344v-3.125h4.688v3.125c0 1.292 -1.052 2.344 -2.344 2.344"})]});case"it-it":return m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 66.667",height:t,children:[m.jsx("path",{fill:"#FFF",d:"M66.667 0H0v66.53h99.805V0Z"}),m.jsx("path",{fill:"#6DA544",d:"M0 0h33.333v66.667H0z"}),m.jsx("path",{fill:"#D80027",d:"M66.667 0H100v66.667H66.667z"})]});case"es-es":return m.jsxs("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 66.667",height:t,children:[m.jsx("path",{fill:"#FFFFFF",d:"M0 0h100v66.667H0z"}),m.jsx("path",{fill:"#D03433",d:"M0 0h100v17.778H0zm0 48.889h100v17.778H0z"}),m.jsx("path",{fill:"#FBCA46",d:"M0 17.778h100v31.111H0z"}),m.jsx("path",{fill:"#FFFFFF",d:"M34.667 31.111h4.444v2.222h-4.444z"}),m.jsx("path",{fill:"#A41517",d:"M32 37.778c0 1.333 1.333 2.222 2.667 2.222s2.667 -0.889 2.667 -2.222L37.778 31.111H31.556zM29.333 31.111c0 -1.333 0.889 -2.222 1.778 -2.222h6.667c1.333 0 2.222 0.889 2.222 1.778V31.111l-0.444 6.667c-0.444 2.667 -2.222 4.444 -4.889 4.444s-4.444 -1.778 -4.889 -4.444z"}),m.jsx("path",{fill:"#A41517",d:"M30.222 33.333h8.889V35.556h-2.222l-2.222 4.444 -2.222 -4.444h-2.222zM23.556 26.667h4.444v15.556h-4.444zm17.778 0h4.444v15.556h-4.444zm-11.111 -2.222c0 -1.333 0.889 -2.222 2.222 -2.222h4.444c1.333 0 2.222 0.889 2.222 2.222v0.889q0 1.333 -1.333 1.333H31.111c-0.444 0 -0.889 -0.444 -0.889 -0.889z"})]});case"pl-pl":return m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 16.667 100 66.667",height:t,children:[m.jsxs("g",{children:[m.jsx("path",{y:"85.337",fill:"#FFFFFF",width:"512",height:"341.326",d:"M0 16.667H100V83.333H0V16.667z"}),m.jsx("path",{y:"85.337",fill:"#FFFFFF",width:"512",height:"170.663",d:"M0 16.667H100V50H0V16.667z"})]}),m.jsx("path",{y:"256",fill:"#D80027",width:"512",height:"170.663",d:"M0 50H100V83.333H0V50z"})]});case"tr-tr":return m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,viewBox:"0 -5000 15000 10000",children:[m.jsx("path",{fill:"#E30A17",d:"M0-5000h15000V5000H0z"}),m.jsx("path",{fill:"#FFFFFF",d:"m6958.333 0 2261.333-734.667-1397.667 1923.5v-2377.666l1397.667 1923.5zM7112.5 1336.833a2500 2500 0 1 1 0-2673.667 2000 2000 0 1 0 0 2673.667"})]});default:return null}},q2=["de-de","en-gb","en-us","es-es","fr-fr","it-it","nl-be","nl-nl","pl-pl","pt-pt","tr-tr","undefined"],aBe=e=>{const{t}=Nt(),[n,r]=Ye.useMessage(),[a,o]=l.useState([]),[i,s]=l.useState(),[c,u]=l.useState(!1),d="https://de1.api.radio-browser.info/json/";l.useEffect(()=>{(async()=>{try{(await fetch(d+"stats")).ok&&u(!0)}catch{console.log("Radio Browser API not available, disable radiostream search."),u(!1)}})()},[]);const f=(y,S)=>{let v;return(...x)=>{clearTimeout(v),v=setTimeout(()=>y.apply(void 0,x),S)}},p=async y=>{if(o([]),y==="")return;const S=encodeURIComponent(y),v=d+"stations/search?name="+S+"&is_https=true&hidebroken=true";try{const x=await fetch(v,{});if(!x.ok)throw new Error(x.status+" "+x.statusText);const w=await x.json(),C=Array.from(new Set(w.map(E=>E.url))).map(E=>{const I=w.find(T=>T.url===E);return{value:I.url,text:(I.country?"["+I.country+"] ":"")+I.name+(I.language?" ("+I.language+")":"")}});o(C)}catch(x){Ye.error(t("radioStreamSearch.failedToFetchSearchResults")+x);return}},g=l.useCallback(f(p,300),[]),h=y=>{s(y),e.onChange(y)};return c?m.jsxs(m.Fragment,{children:[m.jsx(bn.Text,{style:{fontSize:"small",display:"inline-block",marginTop:"8px"},children:t("radioStreamSearch.searchLabel")}),r,m.jsx(Ar,{showSearch:!0,style:{margin:"8px 0"},value:i,placeholder:e.placeholder,defaultActiveFirstOption:!1,suffixIcon:null,filterOption:!1,onSearch:g,onChange:h,notFoundContent:null,options:(a||[]).map(y=>({value:y.value,label:y.text}))})]}):m.jsx(m.Fragment,{})},mu=new xn(pn()),{Meta:oBe}=Jd,{Text:G5}=bn,{useToken:iBe}=Ta,sBe=({tonieCard:e,lastRUIDs:t,overlay:n,readOnly:r,defaultLanguage:a="",showSourceInfo:o=!0,onHide:i,onUpdate:s})=>{const{t:c}=Nt(),{token:u}=iBe(),[d,f]=l.useState(0),[p,g]=l.useState(e),[h,b]=Ye.useMessage(),[y,S]=l.useState(p.nocloud),[v,x]=l.useState(p.live),[w,C]=l.useState(p.downloadTriggerUrl),{playAudio:E}=my(),[I,T]=l.useState(!1),[R,_]=l.useState(!1),[$,P]=l.useState(!1),[D,A]=l.useState(p.tonieInfo.model),[O,N]=l.useState(""),[k,M]=l.useState({validateStatus:"",help:""}),[L,F]=l.useState(p.source),[j,B]=l.useState(""),[z,H]=l.useState({validateStatus:"",help:""}),V=async()=>{try{const ve=await mu.apiGetTagInfo(p.ruid,n);g(ve),s(ve)}catch(ve){Ye.error("Error fetching updated card: "+ve)}},te=`${p.tonieInfo.series}`+(p.tonieInfo.episode?` - ${p.tonieInfo.episode}`:""),Y="sourceInfo"in p?`${p.sourceInfo.series}`+(p.sourceInfo.episode?` - ${p.sourceInfo.episode}`:""):"",J=o&&"sourceInfo"in p&&(p.sourceInfo.picture!==p.tonieInfo.picture&&te!==Y||p.sourceInfo.picture===p.tonieInfo.picture&&te!==Y),G=(ve,$e,Ee)=>{if(ve&&ve.length===1){const Ne=(Ee==="library"?"lib:/":"content:/")+$e+"/"+ve[0].name;B(Ne)}else B(L)},U=()=>{P(!0)},q=()=>{B(L),P(!1)},X=()=>{N(D),B(L),_(!0)},Q=async()=>{try{L!==j&&await Ie(),D!==O&&await ce()}catch{V();return}_(!1),V()},ee=async()=>{try{await mu.apiPostTeddyCloudContentJson(p.ruid,"live="+!v,n),x(!v),v?Ye.success(c("tonies.messages.liveDisabled")):Ye.success(c("tonies.messages.liveEnabled")),V()}catch(ve){Ye.error(c("tonies.messages.couldNotChangeLiveFlag")+ve)}},oe=async()=>{try{await mu.apiPostTeddyCloudContentJson(p.ruid,"nocloud="+!y,n),g({...p,nocloud:!y}),S(!y),y?Ye.success(c("tonies.messages.cloudAccessEnabled")):Ye.success(c("tonies.messages.cloudAccessBlocked")),V()}catch(ve){Ye.error(c("tonies.messages.couldNotChangeCloudFlag")+ve)}},le=async ve=>{console.log(p),E(ve,J?p.sourceInfo:p.tonieInfo,p.trackSeconds)},fe=async()=>{const ve=p.downloadTriggerUrl;C("");try{h.open({type:"loading",content:c("tonies.messages.downloading"),duration:0});const Ee=await(await mu.apiGetTeddyCloudApiRaw(ve)).blob();h.destroy(),h.open({type:"success",content:c("tonies.messages.downloadedFile")}),V()}catch($e){h.destroy(),h.open({type:"error",content:c("tonies.messages.errorDuringDownload")+$e}),C(""+ve)}},ce=async()=>{try{await mu.apiPostTeddyCloudContentJson(p.ruid,"tonie_model="+encodeURIComponent(O),n),A(O),Ye.success(c("tonies.messages.setTonieToModelSuccessful",{selectedModel:O||c("tonies.messages.setToEmptyValue")})),M({validateStatus:"",help:""})}catch(ve){throw Ye.error(c("tonies.messages.setTonieToModelFailed")+ve),M({validateStatus:"error",help:c("tonies.messages.setTonieToModelFailed")+ve}),ve}},Ie=async()=>{try{await mu.apiPostTeddyCloudContentJson(p.ruid,"source="+encodeURIComponent(j),n),F(j),Ye.success(c("tonies.messages.setTonieToSourceSuccessful",{selectedSource:j||c("tonies.messages.setToEmptyValue")})),H({validateStatus:"",help:""})}catch(ve){throw Ye.error(c("tonies.messages.setTonieToSourceFailed")+ve),H({validateStatus:"error",help:c("tonies.messages.setTonieToSourceFailed")+ve}),ve}y||oe()},be=ve=>{N(ve.target.value)},he=ve=>{B(ve.target.value)},ae=t.filter(([ve])=>ve===p.ruid).map(([,ve,$e])=>({ruidTime:ve,boxName:$e})),ie=ve=>{N(ve)},ue=ve=>{B(ve)},xe=m.jsxs(m.Fragment,{children:[m.jsxs("h3",{style:{lineHeight:0},children:[c("tonies.editModal.title"),p.tonieInfo.model?" ("+p.tonieInfo.model+")":""]}),p.tonieInfo.series?m.jsx(G5,{type:"secondary",children:te}):" "]}),we=m.jsx(m.Fragment,{children:m.jsxs(ct,{type:"primary",onClick:Q,disabled:L===j&&D===O,children:[m.jsx(uq,{},"saveClick")," ",c("tonies.editModal.save")]})}),Me=m.jsxs(Sn,{open:R,onCancel:()=>_(!1),title:xe,footer:we,width:700,children:[m.jsx(Rr,{orientation:"left",orientationMargin:"0",children:c("tonies.editModal.source")}),m.jsx("div",{children:m.jsxs(qt.Item,{validateStatus:z.validateStatus,help:z.help,children:[m.jsx(Jt,{value:j,width:"auto",onChange:he,addonBefore:m.jsx(ta,{onClick:()=>{B(L),H({validateStatus:"",help:""})},style:{color:L===j?u.colorTextDisabled:u.colorText,cursor:L===j?"default":"pointer"}}),addonAfter:m.jsx(eN,{onClick:()=>U()})}),m.jsx(aBe,{placeholder:c("tonies.editModal.placeholderSearchForARadioStream"),onChange:ue})]})}),m.jsx(Rr,{orientation:"left",orientationMargin:"0",children:c("tonies.editModal.model")}),m.jsx("div",{children:m.jsxs(qt.Item,{validateStatus:k.validateStatus,help:k.help,children:[m.jsx(Jt,{value:O,width:"auto",onChange:be,addonBefore:m.jsx(ta,{onClick:()=>{N(D),M({validateStatus:"",help:""})},style:{color:D===O?u.colorTextDisabled:u.colorText,cursor:D===O?"default":"pointer"}})}),m.jsx(nBe,{placeholder:c("tonies.editModal.placeholderSearchForAModel"),onChange:ie})]})})]}),Ce=m.jsxs("div",{style:{display:"flex",gap:8,justifyContent:"flex-end",padding:"16px 0",margin:"-24px -24px -12px -24px",background:u.colorBgElevated},children:[m.jsx(ct,{onClick:q,children:c("tonies.selectFileModal.cancel")}),m.jsx(ct,{type:"primary",onClick:()=>P(!1),children:c("tonies.selectFileModal.ok")})]}),De=m.jsx(Sn,{className:"sticky-footer",title:c("tonies.selectFileModal.selectFile"),open:$,onOk:()=>P(!1),onCancel:q,width:"auto",footer:Ce,children:m.jsx(dk,{special:"library",maxSelectedRows:1,trackUrl:!1,filetypeFilter:[".taf",".tap"],onFileSelectChange:G})}),ye=r?[m.jsx(Hu,{onClick:()=>{f(d+1),T(!0)}},"info"),p.valid||L.startsWith("http")?m.jsx(Li,{onClick:()=>le(p.valid?""+p.audioUrl:L)},"playpause"):m.jsx(Li,{style:{cursor:"default",color:u.colorTextDisabled}},"playpause"),m.jsx(LR,{style:{cursor:"default",color:y?"red":u.colorTextDisabled}},"nocloud"),m.jsx(LP,{style:{cursor:"default",color:v?"red":u.colorTextDisabled}},"live")]:[m.jsx(Hu,{onClick:()=>{f(d+1),T(!0)}},"info"),m.jsx(yg,{onClick:X},"edit"),p.valid||L.startsWith("http")?m.jsx(Li,{onClick:()=>le(p.valid?""+p.audioUrl:L)},"playpause"):w&&w.length>0?m.jsx(JO,{onClick:fe},"download"):m.jsx(Li,{style:{cursor:"default",color:u.colorTextDisabled}},"playpause"),m.jsx(LR,{style:{color:y?"red":u.colorTextDescription},onClick:oe},"nocloud"),m.jsx(LP,{style:{color:v?"red":u.colorTextDescription},onClick:ee},"live")];return m.jsxs(m.Fragment,{children:[b,m.jsx(Jd,{hoverable:!1,size:"small",style:ae&&ae.length>0?{background:u.colorBgContainerDisabled,borderTop:"3px #1677ff inset"}:{background:u.colorBgContainerDisabled,paddingTop:"2px"},title:m.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[m.jsx("div",{style:{overflow:"hidden",textOverflow:"ellipsis"},children:p.tonieInfo.series?p.tonieInfo.series:c("tonies.unsetTonie")}),a!==p.tonieInfo.language?m.jsx(Zt,{placement:"top",zIndex:2,title:c("languageUtil."+p.tonieInfo.language),children:m.jsx(G5,{style:{height:20,width:"auto"},children:m.jsx(rBe,{countryCode:p.tonieInfo.language,height:20})})}):""]}),cover:m.jsxs("div",{style:{position:"relative"},children:[m.jsx("img",{alt:`${p.tonieInfo.series} - ${p.tonieInfo.episode}`,src:p.tonieInfo.picture?p.tonieInfo.picture:"/img_unknown.png",style:p.tonieInfo.picture.endsWith("img_unknown.png")?{padding:8,paddingTop:10,width:"100%"}:{padding:8,width:"100%"}}),J?m.jsx(Zt,{title:`${Y}`?c("tonies.alternativeSource",{originalTonie:'"'+te+'"',assignedContent:'"'+Y+'"'}).replace(' "" '," "):c("tonies.alternativeSourceUnknown",{originalTonie:'"'+te+'"'}).replace(' "" '," "),placement:"bottom",children:m.jsx("img",{src:p.sourceInfo.picture,alt:"",style:{bottom:0,padding:8,position:"absolute",right:20,height:"50%",width:"auto"}})}):""]}),actions:ye,children:m.jsx(oBe,{title:`${p.tonieInfo.episode}`,description:p.uid})},p.ruid),m.jsx(ck,{open:I,onClose:()=>T(!1),tonieCardOrTAFRecord:p,showSourceInfo:o,readOnly:r,lastRUIDs:t,onHide:i,overlay:n},d),De,Me]})},lBe=({currentPage:e,onChange:t,total:n,pageSize:r,additionalButtonOnClick:a})=>{const{t:o}=Nt();return m.jsxs(m.Fragment,{children:[m.jsx(KO,{current:e,total:n,pageSize:r,onChange:t,showSizeChanger:!0,pageSizeOptions:["24","48","96","192"],locale:{items_per_page:o("tonies.tonies.pageSelector")},style:{marginBottom:8}}),m.jsx(ct,{onClick:a,style:{marginLeft:16},children:o("tonies.tonies.showAll")})]})},{Option:cBe}=Ar,Ph=new xn(pn()),K2="toniesListState",fk=({tonieCards:e,showFilter:t,showPagination:n,overlay:r,readOnly:a,defaultLanguage:o="",onToniesCardUpdate:i})=>{const{t:s}=Nt(),c=Yi(),[u,d]=l.useState(e),[f,p]=l.useState(""),[g,h]=l.useState(""),[b,y]=l.useState(""),[S,v]=l.useState([]),[x,w]=l.useState(!1),[C,E]=l.useState(!1),[I,T]=l.useState(!1),[R,_]=l.useState(!1),[$,P]=l.useState(!1),[D,A]=l.useState(!1),[O,N]=l.useState(!1),[k,M]=l.useState(!1),[L,F]=l.useState(!1),[j,B]=l.useState(!1),[z,H]=l.useState(!1),[V,te]=l.useState(!0),[Y,J]=l.useState(!0),[G,U]=l.useState([]),[q,X]=l.useState(()=>{const Oe=localStorage.getItem(K2);if(Oe){const{pageSize:Se}=JSON.parse(Oe);return Se}return 24}),[Q,ee]=l.useState(1),[oe,le]=l.useState(!0),[fe,ce]=l.useState(!1),[Ie,be]=l.useState(!0),[he,ae]=l.useState([]),[ie,ue]=l.useState(0),[xe,we]=l.useState(!1);l.useEffect(()=>{const Oe=localStorage.getItem(K2);if(Oe)try{const{pageSize:Se,showAll:Ae}=JSON.parse(Oe);Ae?Ee():(X(Se),Ne(1,Se))}catch(Se){console.error("Error parsing stored state:",Se)}else console.log("No stored state found.")},[]),l.useEffect(()=>{(async()=>{const Ae=async ze=>await Ph.apiGetTonieboxLastRUID(ze),Fe=async ze=>await Ph.apiGetTonieboxLastRUIDTime(ze),Ve=await Ph.apiGetTonieboxesIndex(),He=await Promise.all(Ve.map(async ze=>{const Xe=await Ae(ze.ID),je=await Fe(ze.ID);return[Xe,je,ze.boxName]}));U(He)})(),(async()=>{const Ae=await Ph.apiGetTeddyCloudSettingRaw("frontend.split_model_content");we(await Ae.text()==="true")})()},[]);const Me=l.useMemo(()=>e.map(Oe=>Oe.ruid).join(","),[e]);l.useEffect(()=>{const Se=new URLSearchParams(c.search).get("tonieRUID");if(Se){p(Se),te(!1);const Ae=e.filter(Fe=>Fe.ruid.toLowerCase()===Se);d(Ae)}else d(e);ue(Ae=>Ae+1),J(!1)},[c.search,Me]),l.useEffect(()=>{ee(1),ue(Oe=>Oe+1)},[Me]),l.useEffect(()=>{const Oe=JSON.stringify({pageSize:q,paginationEnabled:oe,showAll:fe});localStorage.setItem(K2,Oe)},[Ie,q,oe,fe]);const Ce=()=>{be(!Ie)},De=Oe=>{i&&i(Oe),d(Se=>Se.map(Ae=>Ae.ruid===Oe.ruid?Oe:Ae))},ye=()=>{let Oe=e.filter(Se=>{var Ae,Fe;return(((Ae=Se.sourceInfo)==null?void 0:Ae.series)&&Se.sourceInfo.series.toLowerCase().includes(g.toLowerCase())||Se.tonieInfo.series.toLowerCase().includes(g.toLowerCase()))&&(((Fe=Se.sourceInfo)==null?void 0:Fe.episode)&&Se.sourceInfo.episode.toLowerCase().includes(b.toLowerCase())||Se.tonieInfo.episode.toLowerCase().includes(b.toLowerCase()))&&(S.length===0||S.includes(Se.tonieInfo.language!==void 0&&q2.includes(Se.tonieInfo.language)?Se.tonieInfo.language:"undefined")||S.includes(Se.sourceInfo&&Se.sourceInfo.language!==void 0&&q2.includes(Se.sourceInfo.language)?Se.sourceInfo.language:"undefined"))&&(!C||Se.valid)&&(!I||!Se.valid)&&(!R||Se.exists)&&(!$||!Se.exists)&&(!D||Se.live)&&(!O||!Se.live)&&(!k||Se.nocloud)&&(!L||!Se.nocloud)&&(!j||Se.hasCloudAuth)&&(!z||!Se.hasCloudAuth)});f&&(Oe=Oe.filter(Se=>{var Ae,Fe,Ve;return Se.tonieInfo.series.toLowerCase().includes(f.toLowerCase())||((Ae=Se.sourceInfo)==null?void 0:Ae.series)&&Se.sourceInfo.series.toLowerCase().includes(f.toLowerCase())||Se.tonieInfo.episode.toLowerCase().includes(f.toLowerCase())||((Fe=Se.sourceInfo)==null?void 0:Fe.episode)&&Se.sourceInfo.episode.toLowerCase().includes(f.toLowerCase())||Se.tonieInfo.model.toLowerCase().includes(f.toLowerCase())||((Ve=Se.sourceInfo)==null?void 0:Ve.model)&&Se.sourceInfo.model.toLowerCase().includes(f.toLowerCase())||Se.ruid.toLowerCase().includes(f.toLowerCase())||Se.uid.toLowerCase().includes(f.toLowerCase())})),x&&(Oe=Oe.filter(Se=>G.some(([Ae])=>Ae===Se.ruid))),he&&(Oe=Oe.filter(Se=>!he.includes(Se.ruid))),ee(1),d(Oe),ue(Se=>Se+1)},ve=Oe=>{d(u.filter(Se=>Se.ruid!==Oe)),ae(Se=>[...Se,Oe]),ue(Se=>Se+1)},$e=()=>{p(""),h(""),y(""),E(!1),T(!1),_(!1),P(!1),A(!1),N(!1),M(!1),F(!1),B(!1),H(!1),w(!1),v([]);const Oe=window.location.pathname;window.history.pushState({},"",Oe),c.search="",he&&(e=e.filter(Se=>!he.includes(Se.ruid))),d(e),ue(Se=>Se+1)},Ee=()=>{ce(!0),le(!1),Ce()},ge=()=>{le(!0),ce(!1),Ne(1,q)},Ne=(Oe,Se)=>{X(Se),ue(Ae=>Ae+1),ee(Oe),Ce(),window.scrollTo(0,0)};if(Y)return m.jsx("div",{children:"Loading..."});const Re=()=>{if(fe)return u!==null?u:e;{const Oe=(Q-1)*q,Se=Oe+q;return u!==null?u.slice(Oe,Se):e.slice(Oe,Se)}},me=m.jsx("div",{style:{display:"flex",justifyContent:"flex-end",flexWrap:"wrap"},children:oe?m.jsx(lBe,{currentPage:Q,onChange:Ne,total:u!==null?u.length:e.length,pageSize:q,additionalButtonOnClick:Ee}):m.jsx(ct,{onClick:ge,children:s("tonies.tonies.showPagination")})}),_e=m.jsxs(m.Fragment,{children:[m.jsx("label",{htmlFor:"search-field",className:"filter-label",children:s("tonies.tonies.filterBar.searchLabel")}),m.jsx(Jt.Search,{id:"search-field",placeholder:s("tonies.tonies.filterBar.searchPlaceholder"),value:f,onChange:Oe=>p(Oe.target.value),onSearch:ye,enterButton:!0,style:{margin:"8px 0 8px 0"}}),m.jsxs("div",{className:"filter-container",children:[m.jsx("label",{className:"filter-label",children:s("tonies.tonies.filterBar.filterLabel")}),m.jsx(Jt,{style:{margin:"8px 0 8px 0"},placeholder:s("tonies.tonies.filterBar.seriesFilterPlaceholder"),value:g,onChange:Oe=>h(Oe.target.value)}),m.jsx(Jt,{style:{margin:"8px 0 8px 0"},placeholder:s("tonies.tonies.filterBar.episodeFilterPlaceholder"),value:b,onChange:Oe=>y(Oe.target.value)}),m.jsx(Ar,{mode:"multiple",placeholder:s("tonies.tonies.filterBar.languagePlaceholder"),value:S,onChange:Oe=>v(Oe),style:{width:"100%",margin:"8px 0"},children:q2.map(Oe=>m.jsx(cBe,{value:Oe,children:s(Oe?"languageUtil."+Oe:"languageUtil.other")},Oe))}),m.jsxs("div",{children:[m.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(160px, 1fr))",gap:"16px"},children:[m.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[m.jsx(Ha,{checked:C,onChange:Oe=>E(Oe)}),s("tonies.tonies.filterBar.valid")]}),m.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[m.jsx(Ha,{checked:I,onChange:Oe=>T(Oe)}),s("tonies.tonies.filterBar.invalid")]}),m.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[m.jsx(Ha,{checked:R,onChange:Oe=>_(Oe)})," ",s("tonies.tonies.filterBar.exists")]}),m.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[m.jsx(Ha,{checked:$,onChange:Oe=>P(Oe)}),s("tonies.tonies.filterBar.notExists")]}),m.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[m.jsx(Ha,{checked:D,onChange:Oe=>A(Oe)})," ",s("tonies.tonies.filterBar.live")]}),m.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[m.jsx(Ha,{checked:O,onChange:Oe=>N(Oe)})," ",s("tonies.tonies.filterBar.unsetLive")]}),m.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[m.jsx(Ha,{checked:L,onChange:Oe=>F(Oe)}),s("tonies.tonies.filterBar.unsetNoCloud")]}),m.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[m.jsx(Ha,{checked:k,onChange:Oe=>M(Oe)}),s("tonies.tonies.filterBar.noCloud")]}),m.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[m.jsx(Ha,{checked:j,onChange:Oe=>B(Oe)}),s("tonies.tonies.filterBar.hasCloudAuth")]}),m.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[m.jsx(Ha,{checked:z,onChange:Oe=>H(Oe)}),s("tonies.tonies.filterBar.unsetHasCloudAuth")]}),m.jsxs("div",{style:{flex:"1 1 auto",minWidth:0,marginRight:16,display:"flex",alignItems:"center",gap:"8px",whiteSpace:"nowrap"},children:[m.jsx(Ha,{checked:x,onChange:Oe=>w(Oe)}),s("tonies.tonies.filterBar.lastPlayed")]})]}),m.jsxs("div",{style:{display:"flex",flexWrap:"wrap",justifyContent:"flex-end",marginTop:8},children:[m.jsx(ct,{onClick:$e,style:{marginLeft:16},children:s("tonies.tonies.filterBar.resetFilters")}),m.jsx(ct,{onClick:ye,style:{marginLeft:16},children:s("tonies.tonies.filterBar.applyFilters")})]})]})]})]}),Ze=[{key:"search-filter",label:s(V?"tonies.tonies.filterBar.showFilters":"tonies.tonies.filterBar.hideFilters"),children:_e}];return m.jsxs("div",{className:"tonies-list-container",children:[t?m.jsx(yl,{items:Ze,defaultActiveKey:V?[]:["search-filter"],onChange:()=>te(!V),bordered:!1}):"",m.jsx(xl,{header:n?me:"",footer:n?me:"",grid:{gutter:16,xs:1,sm:2,md:2,lg:3,xl:4,xxl:6},dataSource:Re(),renderItem:Oe=>m.jsx(xl.Item,{id:Oe.ruid,children:m.jsx(sBe,{tonieCard:Oe,lastRUIDs:G,overlay:r,readOnly:a,defaultLanguage:o,showSourceInfo:xe,onHide:ve,onUpdate:De})})},ie)]})},Bf=new xn(pn()),{Paragraph:zf}=bn,uBe=()=>{const{t:e}=Nt(),t=of(),[n,r]=l.useState([]),[a,o]=l.useState(!1),[i,s]=l.useState(!1),[c,u]=l.useState(""),[d,f]=l.useState([]);l.useEffect(()=>{(async()=>{const S=await Bf.apiGetSecurityMITAlert();o(S)})(),(async()=>{try{const S=await Bf.apiGetNewBoxesAllowed();s(S),S&&(async()=>{const x=await Bf.apiGetTonieboxesIndex(),w=await Promise.all(x.map(async C=>{const E=await Bf.apiGetTonieboxApiAccess(C.ID);return[C.boxName,E]}));f(w)})()}catch(S){Ye.error("Error: "+S)}})(),(async()=>{const S=(await Bf.apiGetTagIndexMergedAllOverlays(!0)).filter(v=>!v.hide);r(S.sort((v,x)=>Math.random()>.5?Math.floor(-100*Math.random()):Math.floor(100*Math.random())))})()},[]),l.useEffect(()=>{const h={};n.forEach(S=>{const v=S.tonieInfo.language;h[v]?h[v]++:h[v]=1});let b=0,y="";for(const S in h)h.hasOwnProperty(S)&&h[S]>b&&(b=h[S],y=S);u(y)},[n]);const p=d.filter(h=>!h[1]),g=i?m.jsxs(m.Fragment,{children:[m.jsx(An,{message:e("tonieboxes.newBoxesAllowed"),description:e("tonieboxes.newBoxesAllowedText"),type:"warning",showIcon:!0,style:{margin:"16px 0"}}),p.length>0&&m.jsx(An,{message:e("tonieboxes.boxWithoutAPIAccess"),description:m.jsxs(m.Fragment,{children:[e("tonieboxes.boxWithoutAPIAccessText"),m.jsx("ul",{children:p.map(h=>m.jsx("li",{children:h[0]},h[0]))}),e("tonieboxes.boxWithoutAPIAccessGoToTonieboxes"),m.jsx(yt,{to:"/tonieboxes",children:e("tonieboxes.navigationTitle")})]}),type:"info",showIcon:!0,style:{margin:"16px 0"}})]}):null;return m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(El,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(El,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsxs(zf,{children:[m.jsx("h1",{children:e("home.title")}),a?m.jsx(An,{message:e("security.alert"),description:e("security.incident_detected"),type:"error",showIcon:!0,style:{margin:"16px 0"}}):"",e("home.intro"),g]}),m.jsxs(zf,{children:[e("home.forumIntroPart1"),m.jsx(yt,{to:"https://forum.revvox.de/",target:"_blank",children:"https://forum.revvox.de/"}),e("home.forumIntroPart2")]}),m.jsxs(zf,{children:[m.jsx("h2",{children:e("home.yourTonies")}),m.jsx(fk,{tonieCards:n.filter(h=>h.type==="tag"&&h.tonieInfo.series).slice(0,6),overlay:"",showFilter:!1,showPagination:!1,readOnly:!0,defaultLanguage:c}),m.jsx(zf,{children:m.jsxs(ct,{onClick:()=>t("/tonies"),children:[e("home.toAllYourTonies")," (",n.filter(h=>h.type==="tag").length,")"]})})]}),m.jsxs(zf,{children:[m.jsx("h2",{children:e("home.helpfulLinks")}),m.jsxs("ul",{children:[m.jsx("li",{children:m.jsx(yt,{to:"/community/faq",children:"FAQ"})}),m.jsx("li",{children:m.jsx(yt,{to:"https://github.com/toniebox-reverse-engineering",target:"_blank",children:"GitHub"})}),m.jsx("li",{children:m.jsx(yt,{to:"https://t.me/toniebox_reverse_engineering",target:"_blank",children:"Telegram Chat"})}),m.jsx("li",{children:m.jsx(yt,{to:"https://forum.revvox.de/",target:"_blank",children:"Discourse Forum"})}),m.jsx("li",{children:m.jsx(yt,{to:"https://tonies-wiki.revvox.de/docs/tools/teddycloud/",target:"_blank",children:"TeddyCloud Wiki"})})]})]})]})]})]})},{useToken:dBe}=Ta,fBe=()=>{const{token:e}=dBe();return m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",x:"0px",y:"0px",width:"100%",viewBox:"0 0 512 512",children:[m.jsx("path",{fill:"none",opacity:"1.000000",stroke:e.colorText,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"15.000000",d:"M285.000000,95.000000 C285.726776,91.291718 284.143219,89.788498 280.551392,88.369873 C247.948990,75.493263 212.672882,91.508270 199.495224,122.998001 C196.613541,129.884201 195.385559,137.055237 195.485504,144.500198 C195.559326,149.999207 195.570007,155.501114 195.483032,160.999725 C195.362961,168.591705 191.442429,172.487579 184.000000,172.494614 C166.333344,172.511307 148.666656,172.510849 131.000000,172.494736 C123.739044,172.488113 119.744461,168.704391 119.512695,161.499588 C118.937752,143.626343 119.484947,125.767700 124.620247,108.535835 C129.305405,92.814384 136.600082,78.329407 146.361160,64.899094 C160.063324,46.046219 177.407562,31.600046 198.103745,21.717247 C219.862259,11.327159 243.132431,6.942070 267.508698,8.891317 C284.115204,10.219257 299.968292,14.037633 314.973419,21.056805 C338.704193,32.157684 357.928345,48.584900 372.550323,70.466385 C383.991730,87.588272 391.730164,106.267952 394.317322,126.523338 C399.345093,165.887207 389.786652,201.671356 364.978485,232.982956 C350.265991,251.552322 331.599060,265.211121 309.924530,274.320435 C296.501526,279.961792 282.229004,283.352203 267.499878,283.997559 C263.333923,284.180115 259.162445,284.263275 255.000793,284.513092 C242.331039,285.273529 234.536453,294.940430 234.510101,310.000031 C234.471024,332.333282 234.502640,354.666656 234.498566,377.000000 C234.497147,384.740631 230.771179,388.486389 223.000000,388.494385 C205.666687,388.512268 188.326492,388.221069 171.003571,388.645569 C164.614304,388.802094 159.267792,383.378479 159.354935,376.998016 C159.705429,351.336151 159.031464,325.655487 159.642624,300.003387 C160.167542,277.971313 168.603424,258.489746 183.103546,242.091568 C198.977600,224.139587 218.895264,213.013474 242.995743,209.966385 C250.478912,209.020279 258.084564,209.344330 265.476685,208.330063 C284.746246,205.686066 300.188782,196.120834 310.413757,179.447113 C323.347626,158.355911 322.759064,136.763321 311.652649,114.922371 C309.739319,111.159721 306.957031,112.566917 304.500000,111.750000"}),m.jsx("path",{fill:"none",opacity:"1.000000",stroke:e.colorText,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"15.000000",d:"M197.500000,506.500000 C203.208725,504.136566 209.499985,503.955261 215.081406,500.636932 C226.722000,493.716095 233.515152,484.355804 234.104324,470.504425 C234.416428,463.166840 234.755539,456.042480 232.056686,448.978333 C227.973969,438.291962 214.538635,425.846741 198.510223,425.232910 C181.959915,424.599152 164.725250,435.753998 160.707718,453.048248 C155.331696,476.190460 163.819122,500.451569 192.494766,505.032776 C194.035324,505.278900 195.500000,506.000000 197.000000,506.500000"})]})},pBe=new xn(pn()),{useToken:gBe}=Ta,pk=({maxNoOfGuests:e,toniesSize:t,showQuestionMark:n,title:r,description:a,height:o=(s=>(s=document.getElementById("collage-container"))==null?void 0:s.clientHeight)()||0,width:i=(c=>(c=document.getElementById("collage-container"))==null?void 0:c.clientWidth)()||0})=>{var v,x;const{token:u}=gBe(),[d,f]=l.useState([]),p=i,g=o,h=50,b=50,y=(((v=document.getElementById("central-text"))==null?void 0:v.clientWidth)||0)/(p<450?3:2),S=(((x=document.getElementById("central-text"))==null?void 0:x.clientHeight)||0)/(g<500?3:2);return l.useEffect(()=>{(async()=>{const I=(await pBe.apiGetTagIndexMergedAllOverlays(!1)).sort((T,R)=>Math.random()>.5?Math.floor(-100*Math.random()):Math.floor(100*Math.random())).filter(T=>!T.tonieInfo.picture.endsWith("/img_unknown.png")&&T.tonieInfo.picture!==null&&T.tonieInfo.picture!==void 0&&T.tonieInfo.picture!==""&&!T.nocloud).slice(0,e).flatMap(T=>T.tonieInfo.picture).map((T,R)=>{if(r&&a){let _,$;do _=Math.random()*(100-t/g*100),$=Math.random()*(100-t/p*100);while(0h-S/g*100-t/g*100&&_b-y/p*100-t/p*100&&$m.jsxs("div",{className:"collage-image-container",style:{position:"absolute",top:w.top,left:w.left,width:"150px",height:"150px",overflow:"hidden",pointerEvents:"none"},children:[m.jsx("img",{src:w.src,alt:`Random ${w.id}`,className:"collage-image",style:{width:"100%",height:"100%",objectFit:"cover"}}),n&&m.jsx("div",{className:"question-mark-overlay",style:{position:"absolute",top:"5%",right:"20%",width:"30%",height:"30%",display:"flex",alignItems:"center",justifyContent:"center"},children:m.jsx(fBe,{})})]},w.id))]})},{Paragraph:mBe}=bn,hBe=()=>{const{t:e}=Nt();return m.jsx(m.Fragment,{children:m.jsx(Dn,{children:m.jsx(mBe,{children:m.jsx(pk,{maxNoOfGuests:100,toniesSize:150,showQuestionMark:!0,title:e("404.title"),description:e("404.description")})})})})},vBe=new xn(pn()),bBe=()=>{var a;const{t:e}=Nt(),[t,n]=l.useState(),r=async()=>{var i,s;const o=await vBe.apiStatsGet();(i=o==null?void 0:o.stats)!=null&&i.length&&((s=o==null?void 0:o.stats)==null?void 0:s.length)>0&&n(o)};return l.useEffect(()=>{r()},[]),l.useEffect(()=>{const o=setInterval(()=>{r()},1e4);return()=>clearInterval(o)},[]),m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(El,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(El,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")},{title:e("home.stats.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsx("h1",{children:e("home.stats.title")}),(a=t==null?void 0:t.stats)==null?void 0:a.map(o=>m.jsxs("div",{children:[m.jsx("h2",{children:e("home.stats."+o.iD)}),m.jsx("p",{children:o.value})]},o.iD))]})]})]})},yBe=new GK(pn()),SBe=new jOe(pn()),xBe=()=>{const{t:e}=Nt(),[t,n]=l.useState(!1),[r,a]=l.useState(!1),o=async()=>{try{(await yBe.v1TimeGet()).length===10&&a(!0)}catch{a(!1)}try{(await SBe.reverseV1TimeGet()).length===10&&n(!0)}catch{n(!1)}};return l.useEffect(()=>{o()},[]),m.jsxs(ka,{children:[m.jsx(Zt,{title:e(t?"server.boxineStatusOnline":"server.boxineStatusOffline"),children:m.jsxs(Tb,{icon:t?m.jsx(PR,{}):m.jsx(MP,{}),color:t?"#87d068":"#f50",bordered:!1,style:{cursor:"help",color:"#001529"},children:[m.jsx(In,{children:"B"}),m.jsx(Cg,{children:"Boxine"})]})}),m.jsx(Zt,{title:e(r?"server.teddycloudStatusOnline":"server.teddycloudStatusOffline"),children:m.jsxs(Tb,{icon:r?m.jsx(PR,{}):m.jsx(MP,{}),color:r?"#87d068":"#f50",bordered:!1,style:{cursor:"help",color:"#001529"},children:[m.jsx(In,{children:"TC"}),m.jsx(Cg,{children:"TeddyCloud"})]})})]})},wBe=()=>{var o;const{t:e,i18n:t}=Nt(),n=i=>{t.changeLanguage(i)},r=[{key:"1",label:e("language.english"),onClick:()=>n("en")},{key:"2",label:e("language.german"),onClick:()=>n("de")},{key:"3",label:e("language.french"),onClick:()=>n("fr")},{key:"4",label:e("language.spanish"),onClick:()=>n("es")}],a=t.language;return m.jsx(ka,{children:m.jsx(ry,{menu:{items:r},trigger:["click"],children:m.jsx("a",{href:"/",onClick:i=>i.preventDefault(),title:e("language.change"),children:m.jsxs(Tb,{color:"transparent",children:[m.jsx(lq,{})," ",m.jsx("strong",{children:(o=r.find(i=>i.onClick&&i.onClick.toString().includes(a)))==null?void 0:o.label})]})})})})},q5=new xn(pn()),{useToken:CBe}=Ta,EBe=Fa.img` height: 32px; -`,IBe=La(qG)` +`,IBe=Fa(qG)` color: white; display: flex; align-items: center; padding-left: 16px; padding-right: 16px; background: #141414; -`,TBe=La.div` +`,TBe=Fa.div` margin-left: auto; display: flex; align-items: center; -`,RBe=La.div` +`,RBe=Fa.div` margin-right: 12px; display: flex; align-items: center; -`,_Be=({themeSwitch:e})=>{const{t}=Nt(),{token:n}=CBe(),[r,a]=l.useState(!1),o=Ki();l.useEffect(()=>{const u=document.querySelector('meta[name="theme-color"]');if(u)u.setAttribute("content",n.colorBgBase);else{const d=document.createElement("meta");d.name="theme-color",d.content=n.colorBgBase,document.head.appendChild(d)}},[n.colorBgBase]);const i=[{key:"/",label:m.jsx(gt,{to:"/",children:t("home.navigationTitle")}),onClick:()=>a(!1)},{key:"tonies",label:m.jsx(gt,{to:"/tonies",children:t("tonies.navigationTitle")}),onClick:()=>a(!1)},{key:"tonieboxes",label:m.jsx(gt,{to:"/tonieboxes",children:t("tonieboxes.navigationTitle")}),onClick:()=>a(!1)},{key:"settings",label:m.jsx(gt,{to:"/settings",children:t("settings.navigationTitle")}),onClick:()=>a(!1)},{key:"community",label:m.jsx(gt,{to:"/community",children:t("community.navigationTitle")}),onClick:()=>a(!1)}];let s=o.pathname.split("/")[1];s||(s="/"),s==="home"&&(s="/");const c=()=>{Sn.error({title:t("home.error"),content:t("home.errorWebVersionMismatch"),okText:t("home.errorConfirm")})};return l.useEffect(()=>{(async()=>{const d=async()=>{try{return await(await q5.apiGetTeddyCloudSettingRaw("frontend.ignore_web_version_mismatch")).text()==="true"}catch{return console.log("Something went wrong getting ignoreWebVersionMismatch."),!1}},f=async()=>{try{const g=await(await q5.apiGetTeddyCloudSettingRaw("internal.version_web.git_sha")).text(),y=(await(await fetch("/web/web_version.json")).json()).web_gitSha;console.log("expected Web Git Sha: ",g),console.log("actual Web Git Sha: ",y),g!==y&&c()}catch{console.log("Something went wrong getting gitSha.")}};await d()||await f()})()},[]),m.jsxs(IBe,{children:[m.jsx(gt,{to:"/",style:{color:"white"},children:m.jsxs(RBe,{children:[m.jsx(EBe,{src:hK}),m.jsx(xg,{children:" TeddyCloud Server"})]})}),m.jsx(xg,{children:m.jsx(Wi,{theme:"dark",mode:"horizontal",items:i,selectedKeys:[s],style:{width:"calc(100vw - 480px)",background:"#141414 !important"}})}),m.jsxs(TBe,{children:[m.jsx(xBe,{}),e,m.jsx(wBe,{}),m.jsxs(In,{children:[m.jsx(ut,{className:"barsMenu",type:"primary",onClick:()=>a(!0),icon:m.jsx(Fwe,{})}),m.jsx(RG,{placement:"right",open:r,onClose:()=>a(!1),children:m.jsx(Wi,{mode:"vertical",items:i,selectedKeys:[s]})})]})]})]})},{useToken:$Be}=Ea,OBe=()=>$Be().token,NBe=({onVisibilityChange:e})=>{const{t}=Nt(),{songImage:n,songArtist:r,songTitle:a,songTracks:o}=gy(),i=document.getElementById("globalAudioPlayer"),s=new xn(pn()),[c,u]=l.useState("none"),[d,f]=l.useState(!1),[p,g]=l.useState(!1),[h,b]=l.useState(0),[y,S]=l.useState("0:00"),[v,x]=l.useState("0:00"),[C,w]=l.useState(0),[E,I]=l.useState({left:0,top:0,visible:!1}),[T,R]=l.useState(!1),[_,$]=l.useState(100),[P,D]=l.useState(100),[A,O]=l.useState(!1),[N,k]=l.useState(!0),[M,L]=l.useState(!1);l.useEffect(()=>{i&&(_===null?i.volume=0:i.volume=_/100)},[_,i]),l.useEffect(()=>{(async()=>{const me=await(await s.apiGetTeddyCloudSettingRaw("frontend.confirm_audioplayer_close")).text()==="true";k(me)})()},[c]);const F=Ie=>{Array.isArray(Ie)||$(Ie)},j=()=>{D(_),$(0)},B=()=>{$(P)},z=()=>{g(!0)},H=()=>{g(!1)},V=()=>{g(!1)},te=()=>{i.play()},Y=()=>{i.pause()},J=()=>{le(),i.src="",i.removeAttribute("src"),i.load(),u("none"),e()};l.useEffect(()=>{e(),i!=null&&i.src&&c==="none"&&u("flex")},[c,i==null?void 0:i.src,e]);const G=Ie=>{const Ce=Ie.target,me=Math.floor(Ce.currentTime/60),we=Math.floor(Ce.currentTime%60);b(Ce.currentTime/i.duration*100),S(`${me}:${we<10?"0":""}${we}`)};l.useEffect(()=>{const Ie=document.getElementById("globalAudioPlayer");Ie.addEventListener("loadedmetadata",()=>{const Ce=Math.floor(Ie.duration/60),me=Math.floor(Ie.duration%60);x(`${Ce}:${me<10?"0":""}${me}`)}),Ie.addEventListener("progress",()=>{if(Ie.buffered.length>0){const Ce=Ie.buffered.end(Ie.buffered.length-1),me=Ie.duration;me>0&&w(Ce/me*100)}})},[]);const U=Ie=>{if("touches"in Ie){const Ce=Ie.touches[0],me=Ie.currentTarget.getBoundingClientRect(),we=Ce.clientX-me.left,_e=me.height/2;I({left:we,top:_e,visible:!0}),i.currentTime=we/(d?100:150)*i.duration,L(!0)}else{const Ce=Ie.currentTarget.getBoundingClientRect(),me=Ie.clientX-Ce.left,we=Ce.height/2;I({left:me,top:we,visible:!0}),T&&X()}},q=()=>{I({left:0,top:0,visible:!1})},X=()=>{M?(L(!1),q()):i.currentTime=E.left/(d?100:150)*i.duration},Q=Ie=>{R(!0)},ee=Ie=>{R(!1)},oe=()=>{f(!d),e()},le=()=>{O(!1)},fe=()=>{N?O(!0):J()},ce=()=>{let Ie=0;for(;i.currentTime>o[Ie]&&(Ie++,!(Ie>o.length)););Ie>1&&Ie<=o.length?i.currentTime=o[Ie-2]:Ie<=1&&(i.currentTime=0)},Te=()=>{let Ie=0;for(;i.currentTime>o[Ie]&&(Ie++,!(Ie>o.length)););Ie{const Ie=Ce=>{Ce?(i==null||i.play(),g(!0)):(i==null||i.pause(),g(!1))};navigator.mediaSession&&(navigator.mediaSession.metadata=new MediaMetadata({title:a||"",artist:r||"",artwork:[{src:n||"",sizes:"96x96,128x128,192x192,256x256,384x384,512x512"}]}),navigator.mediaSession.setActionHandler("play",()=>{Ie(!0)}),navigator.mediaSession.setActionHandler("pause",()=>{Ie(!1)}),navigator.mediaSession.setActionHandler("previoustrack",ce),o.length>0&&navigator.mediaSession.setActionHandler("nexttrack",Te))},[a,r,n,o,i]),l.useEffect(()=>{if(navigator.mediaSession&&i){const Ie=i.duration||0,Ce=h*Ie/100||0,me=i.playbackRate||1;try{navigator.mediaSession.setPositionState({duration:Ie,position:Ce,playbackRate:me})}catch(we){console.error("Error setting media session position state:",we)}}},[h,i]);const Se=window.innerWidth<=768,ve=Se?{...Gn.innerContainer,flexDirection:"column",alignItems:"center",width:"100%",gap:8}:Gn.innerContainer,ae=Se?{...Gn.controls2,width:"100%"}:Gn.controls2,ie=Se?{...Gn.progressBar,width:200,marginRight:0}:Gn.progressBar;l.useEffect(()=>{e()},[e,Se]);const ue=m.jsxs(m.Fragment,{children:[d?m.jsx(A1e,{onClick:oe}):m.jsx(OCe,{onClick:oe}),m.jsx(_V,{title:m.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[m.jsxs("div",{children:[m.jsx(gq,{})," ",t("tonies.closeAudioPlayerPopover")]}),m.jsxs("div",{style:{display:"flex",flexDirection:"row",gap:8},children:[m.jsx(ut,{onClick:le,children:t("tonies.cancel")}),m.jsx(ut,{onClick:J,children:t("tonies.closeAudioPlayer")})]})]}),open:A,trigger:"click",onOpenChange:le,className:"closePlayerPopover",placement:"top",style:{right:8},children:m.jsx(Jr,{style:{margin:"0 0 0 10px"},onClick:fe})})]}),ye=m.jsxs(m.Fragment,{children:[m.jsx(iy,{type:"line",success:{percent:h,strokeColor:"#1677ff"},percent:C,strokeColor:"#272727",format:()=>"",status:"active",showInfo:!1}),E.visible&&m.jsx("svg",{style:{position:"absolute",left:E.left,top:E.top,transform:"translate(-50%, -50%)"},width:"16",height:"16",viewBox:"0 0 16 16",children:m.jsx("circle",{cx:"8",cy:"8",r:"8",fill:"rgba(0,0,0,0.5)"})})]}),Ee=d?m.jsx(m.Fragment,{children:m.jsx("span",{id:"minimalAudioPlayer",style:{...ve,display:d?"flex":"none",padding:0},children:m.jsxs("div",{style:Gn.trackInfo,children:[p?m.jsx(DP,{style:{fontSize:24,marginRight:8},onClick:Y}):m.jsx(Di,{style:{fontSize:24,marginRight:8},onClick:te}),n&&m.jsx("img",{src:n,alt:"Song",style:Gn.songImage}),v.startsWith("Infinity")?m.jsx("div",{style:{...Gn.playPositionContainer,marginRight:0},children:m.jsxs("div",{style:{display:"flex"},children:[m.jsx("div",{style:{textAlign:"center",marginBottom:0},children:" "}),m.jsx("span",{children:ue})]})}):m.jsxs("div",{style:{...Gn.playPositionContainer,marginRight:0},children:[m.jsxs("div",{style:{display:"flex"},children:[m.jsxs("div",{style:{textAlign:"center",marginBottom:0},children:[y," / ",v]}),m.jsx("span",{style:{margin:0,marginLeft:16,textAlign:"right"},children:ue})]}),m.jsx("div",{style:{...ie,width:100},onMouseDown:Q,onMouseMove:U,onMouseUp:ee,onMouseLeave:q,onTouchStart:U,onTouchMove:U,onClick:X,children:ye})]})]})})}):"",Me=d?"":m.jsxs(m.Fragment,{children:[m.jsx("span",{id:"normalAudioPlayer",style:{margin:0,marginLeft:16,textAlign:"right",display:d?"none":"flex",position:"absolute"},children:ue}),m.jsxs("span",{style:{...ve,display:d?"none":"flex"},children:[m.jsxs("div",{id:"audioPlayer",style:Gn.controls,children:[m.jsx(FCe,{style:Gn.controlButton,onClick:ce}),p?m.jsx(DP,{style:Gn.controlButton,onClick:Y}):m.jsx(Di,{style:Gn.controlButton,onClick:te}),m.jsx(zCe,{style:{...Gn.controlButton,cursor:o.length===0?"default":"pointer",opacity:o.length===0?.25:1},disabled:o.length===0,onClick:Te})]}),m.jsxs("div",{style:Gn.trackInfo,children:[n&&m.jsx("img",{src:n,alt:"Song",style:Gn.songImage}),m.jsxs("div",{style:Gn.songContainer,children:[m.jsx("div",{children:a}),m.jsx("div",{children:r})]})]}),v.startsWith("Infinity")?"":m.jsxs("div",{style:Gn.playPositionContainer,children:[m.jsx("div",{children:m.jsxs("div",{style:{textAlign:"center"},children:[y," / ",v]})}),m.jsx("div",{style:ie,onMouseDown:Q,onMouseMove:U,onMouseUp:ee,onMouseLeave:q,onTouchStart:U,onTouchMove:U,onClick:X,children:ye})]}),m.jsx("div",{style:ae,children:m.jsxs("div",{style:{...Gn.controls,position:"relative"},children:[m.jsx(Xwe,{style:{...Gn.controlButton,...Gn.volumeIcon,display:(_||0)===0?"block":"none"},onClick:B}),m.jsx(dq,{style:{...Gn.controlButton,...Gn.volumeIcon,display:(_||0)>0?"block":"none"},onClick:j}),m.jsx("div",{style:Gn.volumeSlider,children:m.jsx(Vbe,{min:0,max:100,value:_||0,onChange:F})})]})})]})]});return m.jsxs(m.Fragment,{children:[m.jsxs("div",{style:{...Gn.container,display:c,visibility:i!=null&&i.src?"visible":"hidden",height:i!=null&&i.src?"auto":"0",margin:i!=null&&i.src?"0":"-24px",marginBottom:i!=null&&i.src?"8px":"0",overflow:"hidden"},children:[Ee,Me]}),m.jsx("audio",{id:"globalAudioPlayer",controls:!0,onPlay:z,onPause:H,onEnded:V,onTimeUpdate:G,style:{display:"none"},children:"Your browser does not support the audio element."})]})},Gn={container:{flexDirection:"column",alignItems:"flex-end",objectPosition:"top",padding:10,backgroundColor:"#333",borderRadius:8,gap:8},innerContainer:{justifyContent:"space-between",alignItems:"center",padding:10,backgroundColor:"#333",borderRadius:8,gap:8},controls:{display:"flex",alignItems:"center"},controlButton:{fontSize:24,margin:"0 10px",cursor:"pointer"},trackInfo:{display:"flex",alignItems:"center",justifyContent:"center"},songImage:{width:"auto",height:40,borderRadius:"50%",marginRight:10},songContainer:{},songTitle:{display:"block"},songArtist:{display:"block"},progressBar:{display:"block",position:"relative",width:150,marginRight:10},playPosition:{fontSize:14,width:"100%"},playPositionContainer:{marginLeft:10,marginRight:10},controls2:{display:"flex",alignItems:"center",justifyContent:"space-between",height:24},volumeSlider:{width:100,position:"releative",marginRight:16,top:"calc(100% + 10px)",zIndex:1e3,backgroundColor:`${()=>OBe().colorBgContainer}`,padding:0},volumeIcon:{fontSize:24,cursor:"pointer",marginBottom:0}},kBe=La(KG)` +`,_Be=({themeSwitch:e})=>{const{t}=Nt(),{token:n}=CBe(),[r,a]=l.useState(!1),o=Yi();l.useEffect(()=>{const u=document.querySelector('meta[name="theme-color"]');if(u)u.setAttribute("content",n.colorBgBase);else{const d=document.createElement("meta");d.name="theme-color",d.content=n.colorBgBase,document.head.appendChild(d)}},[n.colorBgBase]);const i=[{key:"/",label:m.jsx(yt,{to:"/",children:t("home.navigationTitle")}),onClick:()=>a(!1)},{key:"tonies",label:m.jsx(yt,{to:"/tonies",children:t("tonies.navigationTitle")}),onClick:()=>a(!1)},{key:"tonieboxes",label:m.jsx(yt,{to:"/tonieboxes",children:t("tonieboxes.navigationTitle")}),onClick:()=>a(!1)},{key:"settings",label:m.jsx(yt,{to:"/settings",children:t("settings.navigationTitle")}),onClick:()=>a(!1)},{key:"community",label:m.jsx(yt,{to:"/community",children:t("community.navigationTitle")}),onClick:()=>a(!1)}];let s=o.pathname.split("/")[1];s||(s="/"),s==="home"&&(s="/");const c=()=>{Sn.error({title:t("home.error"),content:t("home.errorWebVersionMismatch"),okText:t("home.errorConfirm")})};return l.useEffect(()=>{(async()=>{const d=async()=>{try{return await(await q5.apiGetTeddyCloudSettingRaw("frontend.ignore_web_version_mismatch")).text()==="true"}catch{return console.log("Something went wrong getting ignoreWebVersionMismatch."),!1}},f=async()=>{try{const g=await(await q5.apiGetTeddyCloudSettingRaw("internal.version_web.git_sha")).text(),y=(await(await fetch("/web/web_version.json")).json()).web_gitSha;console.log("expected Web Git Sha: ",g),console.log("actual Web Git Sha: ",y),g!==y&&c()}catch{console.log("Something went wrong getting gitSha.")}};await d()||await f()})()},[]),m.jsxs(IBe,{children:[m.jsx(yt,{to:"/",style:{color:"white"},children:m.jsxs(RBe,{children:[m.jsx(EBe,{src:hK}),m.jsx(Cg,{children:" TeddyCloud Server"})]})}),m.jsx(Cg,{children:m.jsx(Gi,{theme:"dark",mode:"horizontal",items:i,selectedKeys:[s],style:{width:"calc(100vw - 480px)",background:"#141414 !important"}})}),m.jsxs(TBe,{children:[m.jsx(xBe,{}),e,m.jsx(wBe,{}),m.jsxs(In,{children:[m.jsx(ct,{className:"barsMenu",type:"primary",onClick:()=>a(!0),icon:m.jsx(Fwe,{})}),m.jsx(RG,{placement:"right",open:r,onClose:()=>a(!1),children:m.jsx(Gi,{mode:"vertical",items:i,selectedKeys:[s]})})]})]})]})},{useToken:$Be}=Ta,OBe=()=>$Be().token,NBe=({onVisibilityChange:e})=>{const{t}=Nt(),{songImage:n,songArtist:r,songTitle:a,songTracks:o}=my(),i=document.getElementById("globalAudioPlayer"),s=new xn(pn()),[c,u]=l.useState("none"),[d,f]=l.useState(!1),[p,g]=l.useState(!1),[h,b]=l.useState(0),[y,S]=l.useState("0:00"),[v,x]=l.useState("0:00"),[w,C]=l.useState(0),[E,I]=l.useState({left:0,top:0,visible:!1}),[T,R]=l.useState(!1),[_,$]=l.useState(100),[P,D]=l.useState(100),[A,O]=l.useState(!1),[N,k]=l.useState(!0),[M,L]=l.useState(!1);l.useEffect(()=>{i&&(_===null?i.volume=0:i.volume=_/100)},[_,i]),l.useEffect(()=>{(async()=>{const ye=await(await s.apiGetTeddyCloudSettingRaw("frontend.confirm_audioplayer_close")).text()==="true";k(ye)})()},[c]);const F=Ce=>{Array.isArray(Ce)||$(Ce)},j=()=>{D(_),$(0)},B=()=>{$(P)},z=()=>{g(!0)},H=()=>{g(!1)},V=()=>{g(!1)},te=()=>{i.play()},Y=()=>{i.pause()},J=()=>{le(),i.src="",i.removeAttribute("src"),i.load(),u("none"),e()};l.useEffect(()=>{e(),i!=null&&i.src&&c==="none"&&u("flex")},[c,i==null?void 0:i.src,e]);const G=Ce=>{const De=Ce.target,ye=Math.floor(De.currentTime/60),ve=Math.floor(De.currentTime%60);b(De.currentTime/i.duration*100),S(`${ye}:${ve<10?"0":""}${ve}`)};l.useEffect(()=>{const Ce=document.getElementById("globalAudioPlayer");Ce.addEventListener("loadedmetadata",()=>{const De=Math.floor(Ce.duration/60),ye=Math.floor(Ce.duration%60);x(`${De}:${ye<10?"0":""}${ye}`)}),Ce.addEventListener("progress",()=>{if(Ce.buffered.length>0){const De=Ce.buffered.end(Ce.buffered.length-1),ye=Ce.duration;ye>0&&C(De/ye*100)}})},[]);const U=Ce=>{if("touches"in Ce){const De=Ce.touches[0],ye=Ce.currentTarget.getBoundingClientRect(),ve=De.clientX-ye.left,$e=ye.height/2;I({left:ve,top:$e,visible:!0}),i.currentTime=ve/(d?100:150)*i.duration,L(!0)}else{const De=Ce.currentTarget.getBoundingClientRect(),ye=Ce.clientX-De.left,ve=De.height/2;I({left:ye,top:ve,visible:!0}),T&&X()}},q=()=>{I({left:0,top:0,visible:!1})},X=()=>{M?(L(!1),q()):i.currentTime=E.left/(d?100:150)*i.duration},Q=Ce=>{R(!0)},ee=Ce=>{R(!1)},oe=()=>{f(!d),e()},le=()=>{O(!1)},fe=()=>{N?O(!0):J()},ce=()=>{let Ce=0;for(;i.currentTime>o[Ce]&&(Ce++,!(Ce>o.length)););Ce>1&&Ce<=o.length?i.currentTime=o[Ce-2]:Ce<=1&&(i.currentTime=0)},Ie=()=>{let Ce=0;for(;i.currentTime>o[Ce]&&(Ce++,!(Ce>o.length)););Ce{const Ce=De=>{De?(i==null||i.play(),g(!0)):(i==null||i.pause(),g(!1))};navigator.mediaSession&&(navigator.mediaSession.metadata=new MediaMetadata({title:a||"",artist:r||"",artwork:[{src:n||"",sizes:"96x96,128x128,192x192,256x256,384x384,512x512"}]}),navigator.mediaSession.setActionHandler("play",()=>{Ce(!0)}),navigator.mediaSession.setActionHandler("pause",()=>{Ce(!1)}),navigator.mediaSession.setActionHandler("previoustrack",ce),o.length>0&&navigator.mediaSession.setActionHandler("nexttrack",Ie))},[a,r,n,o,i]),l.useEffect(()=>{if(navigator.mediaSession&&i){const Ce=i.duration||0,De=h*Ce/100||0,ye=i.playbackRate||1;try{navigator.mediaSession.setPositionState({duration:Ce,position:De,playbackRate:ye})}catch(ve){console.error("Error setting media session position state:",ve)}}},[h,i]);const be=window.innerWidth<=768,he=be?{...Gn.innerContainer,flexDirection:"column",alignItems:"center",width:"100%",gap:8}:Gn.innerContainer,ae=be?{...Gn.controls2,width:"100%"}:Gn.controls2,ie=be?{...Gn.progressBar,width:200,marginRight:0}:Gn.progressBar;l.useEffect(()=>{e()},[e,be]);const ue=m.jsxs(m.Fragment,{children:[d?m.jsx(A1e,{onClick:oe}):m.jsx(OCe,{onClick:oe}),m.jsx(_V,{title:m.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[m.jsxs("div",{children:[m.jsx(gq,{})," ",t("tonies.closeAudioPlayerPopover")]}),m.jsxs("div",{style:{display:"flex",flexDirection:"row",gap:8},children:[m.jsx(ct,{onClick:le,children:t("tonies.cancel")}),m.jsx(ct,{onClick:J,children:t("tonies.closeAudioPlayer")})]})]}),open:A,trigger:"click",onOpenChange:le,className:"closePlayerPopover",placement:"top",style:{right:8},children:m.jsx(ta,{style:{margin:"0 0 0 10px"},onClick:fe})})]}),xe=m.jsxs(m.Fragment,{children:[m.jsx(sy,{type:"line",success:{percent:h,strokeColor:"#1677ff"},percent:w,strokeColor:"#272727",format:()=>"",status:"active",showInfo:!1}),E.visible&&m.jsx("svg",{style:{position:"absolute",left:E.left,top:E.top,transform:"translate(-50%, -50%)"},width:"16",height:"16",viewBox:"0 0 16 16",children:m.jsx("circle",{cx:"8",cy:"8",r:"8",fill:"rgba(0,0,0,0.5)"})})]}),we=d?m.jsx(m.Fragment,{children:m.jsx("span",{id:"minimalAudioPlayer",style:{...he,display:d?"flex":"none",padding:0},children:m.jsxs("div",{style:Gn.trackInfo,children:[p?m.jsx(DP,{style:{fontSize:24,marginRight:8},onClick:Y}):m.jsx(Li,{style:{fontSize:24,marginRight:8},onClick:te}),n&&m.jsx("img",{src:n,alt:"Song",style:Gn.songImage}),v.startsWith("Infinity")?m.jsx("div",{style:{...Gn.playPositionContainer,marginRight:0},children:m.jsxs("div",{style:{display:"flex"},children:[m.jsx("div",{style:{textAlign:"center",marginBottom:0},children:" "}),m.jsx("span",{children:ue})]})}):m.jsxs("div",{style:{...Gn.playPositionContainer,marginRight:0},children:[m.jsxs("div",{style:{display:"flex"},children:[m.jsxs("div",{style:{textAlign:"center",marginBottom:0},children:[y," / ",v]}),m.jsx("span",{style:{margin:0,marginLeft:16,textAlign:"right"},children:ue})]}),m.jsx("div",{style:{...ie,width:100},onMouseDown:Q,onMouseMove:U,onMouseUp:ee,onMouseLeave:q,onTouchStart:U,onTouchMove:U,onClick:X,children:xe})]})]})})}):"",Me=d?"":m.jsxs(m.Fragment,{children:[m.jsx("span",{id:"normalAudioPlayer",style:{margin:0,marginLeft:16,textAlign:"right",display:d?"none":"flex",position:"absolute"},children:ue}),m.jsxs("span",{style:{...he,display:d?"none":"flex"},children:[m.jsxs("div",{id:"audioPlayer",style:Gn.controls,children:[m.jsx(FCe,{style:Gn.controlButton,onClick:ce}),p?m.jsx(DP,{style:Gn.controlButton,onClick:Y}):m.jsx(Li,{style:Gn.controlButton,onClick:te}),m.jsx(zCe,{style:{...Gn.controlButton,cursor:o.length===0?"default":"pointer",opacity:o.length===0?.25:1},disabled:o.length===0,onClick:Ie})]}),m.jsxs("div",{style:Gn.trackInfo,children:[n&&m.jsx("img",{src:n,alt:"Song",style:Gn.songImage}),m.jsxs("div",{style:Gn.songContainer,children:[m.jsx("div",{children:a}),m.jsx("div",{children:r})]})]}),v.startsWith("Infinity")?"":m.jsxs("div",{style:Gn.playPositionContainer,children:[m.jsx("div",{children:m.jsxs("div",{style:{textAlign:"center"},children:[y," / ",v]})}),m.jsx("div",{style:ie,onMouseDown:Q,onMouseMove:U,onMouseUp:ee,onMouseLeave:q,onTouchStart:U,onTouchMove:U,onClick:X,children:xe})]}),m.jsx("div",{style:ae,children:m.jsxs("div",{style:{...Gn.controls,position:"relative"},children:[m.jsx(Xwe,{style:{...Gn.controlButton,...Gn.volumeIcon,display:(_||0)===0?"block":"none"},onClick:B}),m.jsx(dq,{style:{...Gn.controlButton,...Gn.volumeIcon,display:(_||0)>0?"block":"none"},onClick:j}),m.jsx("div",{style:Gn.volumeSlider,children:m.jsx(Vbe,{min:0,max:100,value:_||0,onChange:F})})]})})]})]});return m.jsxs(m.Fragment,{children:[m.jsxs("div",{style:{...Gn.container,display:c,visibility:i!=null&&i.src?"visible":"hidden",height:i!=null&&i.src?"auto":"0",margin:i!=null&&i.src?"0":"-24px",marginBottom:i!=null&&i.src?"8px":"0",overflow:"hidden"},children:[we,Me]}),m.jsx("audio",{id:"globalAudioPlayer",controls:!0,onPlay:z,onPause:H,onEnded:V,onTimeUpdate:G,style:{display:"none"},children:"Your browser does not support the audio element."})]})},Gn={container:{flexDirection:"column",alignItems:"flex-end",objectPosition:"top",padding:10,backgroundColor:"#333",borderRadius:8,gap:8},innerContainer:{justifyContent:"space-between",alignItems:"center",padding:10,backgroundColor:"#333",borderRadius:8,gap:8},controls:{display:"flex",alignItems:"center"},controlButton:{fontSize:24,margin:"0 10px",cursor:"pointer"},trackInfo:{display:"flex",alignItems:"center",justifyContent:"center"},songImage:{width:"auto",height:40,borderRadius:"50%",marginRight:10},songContainer:{},songTitle:{display:"block"},songArtist:{display:"block"},progressBar:{display:"block",position:"relative",width:150,marginRight:10},playPosition:{fontSize:14,width:"100%"},playPositionContainer:{marginLeft:10,marginRight:10},controls2:{display:"flex",alignItems:"center",justifyContent:"space-between",height:24},volumeSlider:{width:100,position:"releative",marginRight:16,top:"calc(100% + 10px)",zIndex:1e3,backgroundColor:`${()=>OBe().colorBgContainer}`,padding:0},volumeIcon:{fontSize:24,cursor:"pointer",marginBottom:0}},kBe=Fa(KG)` position: fixed; bottom: 0; z-index: 10; @@ -598,15 +598,15 @@ html body { align-items: center; padding: 16px 50px; color: white; -`,K5=La.div` +`,K5=Fa.div` margin: auto; display: flex; align-items: center; -`,K2=new xn(pn()),ABe=()=>{const[e,t]=l.useState(0),[n,r]=l.useState(""),[a,o]=l.useState(""),[i,s]=l.useState(""),c=()=>{const u=document.querySelector("footer");u&&t(u.offsetHeight)};return l.useEffect(()=>{K2.apiGetTeddyCloudSettingRaw("internal.version.v_long").then(u=>u.text()).then(u=>r(u)).catch(u=>console.error("Error fetching data:",u)),K2.apiGetTeddyCloudSettingRaw("internal.version.v_short").then(u=>u.text()).then(u=>o(u)).catch(u=>console.error("Error fetching data:",u)),K2.apiGetTeddyCloudSettingRaw("internal.version.git_sha_short").then(u=>u.text()).then(u=>s(u)).catch(u=>console.error("Error fetching data:",u))},[]),m.jsxs(m.Fragment,{children:[m.jsx("div",{style:{paddingBottom:e}}),m.jsxs(kBe,{children:[m.jsx(K5,{children:m.jsx(NBe,{onVisibilityChange:c})}),m.jsx(K5,{children:m.jsx("div",{children:m.jsx("small",{children:m.jsxs(gt,{to:"https://github.com/toniebox-reverse-engineering/teddycloud/releases/",target:"_blank",children:[m.jsxs(In,{children:[a," (",i,")"]}),m.jsx(xg,{children:n})]})})})})]})]})},Wo=()=>{const{t:e}=Nt(),[t,n]=l.useState(!1),[r,a]=l.useState(""),o=()=>{n(!0),a("")},i=[{key:"tonies",label:m.jsx(gt,{to:"/tonies",children:e("tonies.tonies.navigationTitle")}),icon:se.createElement(pq),title:e("tonies.tonies.navigationTitle")},{key:"custom-json",label:m.jsx("label",{style:{cursor:"pointer"},children:e("tonies.addToniesCustomJsonEntry")}),onClick:o,icon:se.createElement(aEe),title:e("tonies.addToniesCustomJsonEntry")},{key:"encoder",label:m.jsx(gt,{to:"/tonies/encoder",children:e("tonies.encoder.navigationTitle")}),icon:se.createElement(dxe),title:e("tonies.encoder.navigationTitle")},{key:"tap",label:m.jsx(gt,{to:"/tonies/tap",children:e("tonies.tap.navigationTitle")}),icon:se.createElement(QCe),title:e("tonies.tap.navigationTitle")},{key:"library",label:m.jsx(gt,{to:"/tonies/library",children:e("tonies.library.navigationTitle")}),icon:se.createElement(D1e),title:e("tonies.library.navigationTitle")},{key:"content",label:m.jsx(gt,{to:"/tonies/content",children:e("tonies.content.navigationTitle")}),icon:se.createElement(dq),title:e("tonies.content.navigationTitle")},{key:"system-sounds",label:m.jsx(gt,{to:"/tonies/system-sounds",children:e("tonies.system-sounds.navigationTitle")}),icon:se.createElement(nN),title:e("tonies.system-sounds.navigationTitle")}];return m.jsxs(m.Fragment,{children:[m.jsx(bm,{mode:"inline",selectedKeys:[r],defaultOpenKeys:["sub"],items:i}),t&&m.jsx(fX,{open:t,onClose:()=>n(!1)})]})},Y2=new xn(pn()),gk=e=>{const[t,n]=l.useState([]),[r,a]=l.useState(()=>{if(e!==void 0){if(e!==null)return localStorage.setItem("contentOverlay",e),e;{const i=localStorage.getItem("contentOverlay");return i||""}}else{const i=localStorage.getItem("contentOverlay");return i||""}});return l.useEffect(()=>{(async()=>{const s=await Y2.apiGetTonieboxesIndex(),u=(await Promise.all(s.map(async g=>[await Y2.apiGetTonieboxContentDir(g.ID),g.boxName,g.ID]))).reduce((g,[h,b,y])=>{const S=g.findIndex(v=>v[0]===h);return S!==-1?(g[S][1].push(b),r===y&&a(g[S][2])):g.push([h,[b],y]),g},[]),d=await Y2.apiGetTonieboxContentDir("");u.findIndex(g=>g[0]===d)===-1&&u.push(["",["TeddyCloud Default Content Dir"],""]);const p=u.map(([g,h,b])=>[g,h,b]);if(r===""||r===null||r===void 0){const g=p.length>0?p[0][2]:"";a(g),localStorage.setItem("contentOverlay",g)}n(p)})()},[]),{tonieBoxContentDirs:t,overlay:r,handleSelectChange:i=>{a(i),localStorage.setItem("contentOverlay",i)}}},MBe=new xn(pn()),{Option:PBe}=Ar,DBe=()=>{const e=Ki(),n=new URLSearchParams(e.search).get("overlay"),{t:r}=Nt(),[a,o]=l.useState([]),{tonieBoxContentDirs:i,overlay:s,handleSelectChange:c}=gk(n),[u,d]=l.useState(""),f=p=>{o(g=>g.map(h=>h.ruid===p.ruid?p:h))};return l.useEffect(()=>{(async()=>{const g=(await MBe.apiGetTagIndex(s||"",!0)).filter(h=>!h.hide);o(g.sort((h,b)=>h.tonieInfo.seriesb.tonieInfo.series?1:h.tonieInfo.episodeb.tonieInfo.episode?1:0))})()},[s]),l.useEffect(()=>{const p={};a.forEach(b=>{const y=b.tonieInfo.language;p[y]?p[y]++:p[y]=1});let g=0,h="";for(const b in p)p.hasOwnProperty(b)&&p[b]>g&&(g=p[b],h=b);d(h)},[a]),m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(Wo,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(Wo,{})}),m.jsx(zn,{items:[{title:r("home.navigationTitle")},{title:r("tonies.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignContent:"center",flexDirection:"row",alignItems:"center"},children:[m.jsx("h1",{style:{width:"200px"},children:r("tonies.title")}),i.length>1?m.jsx(Zt,{title:r("tonies.content.showToniesOfBoxes"),children:m.jsx(Ar,{id:"contentDirectorySelect",defaultValue:"",onChange:c,style:{maxWidth:"300px"},value:s,children:i.map(([p,g,h])=>m.jsx(PBe,{value:h,children:g.join(", ")},h))})}):""]}),m.jsx(fk,{showFilter:!0,showPagination:!0,tonieCards:a.filter(p=>p.type==="tag"),overlay:s,readOnly:!1,defaultLanguage:u,onToniesCardUpdate:f})]})]})]})},LBe=new xn(pn()),{Option:FBe}=Ar,jBe=()=>{const{t:e}=Nt(),[t,n]=l.useState([]),{tonieBoxContentDirs:r,overlay:a,handleSelectChange:o}=gk();return l.useEffect(()=>{(async()=>{const s=await LBe.apiGetTagIndex(a||"");n(s.sort((c,u)=>c.tonieInfo.seriesu.tonieInfo.series?1:c.tonieInfo.episodeu.tonieInfo.episode?1:0))})()},[a]),m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(Wo,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(Wo,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")},{title:e("tonies.navigationTitle")},{title:e("tonies.system-sounds.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignContent:"center",flexDirection:"row",alignItems:"center"},children:[m.jsx("h1",{children:e("tonies.system-sounds.title")}),r.length>1?m.jsx(Ar,{id:"contentDirectorySelect",defaultValue:"",onChange:o,style:{maxWidth:"300px"},value:a,title:e("tonies.content.showToniesOfBoxes"),children:r.map(([i,s,c])=>m.jsx(FBe,{value:c,children:s.join(", ")},c))}):""]}),m.jsx(fk,{showFilter:!1,showPagination:!0,tonieCards:t.filter(i=>i.type==="system"),overlay:a,readOnly:!1})]})]})]})},{useToken:BBe}=Ea,zBe=uk,pX=({open:e,initialValuesJson:t,onCreate:n,onCancel:r})=>{const{t:a}=Nt(),{token:o}=BBe(),[i]=qt.useForm(),[s,c]=l.useState([]),[u,d]=l.useState(!1),[f,p]=l.useState(0),[g,h]=l.useState(-1);l.useEffect(()=>{c([])},[]),l.useEffect(()=>{if(t)try{const N=JSON.parse(t);i.setFieldsValue(N)}catch(N){console.error("Error parsing JSON:",N)}},[i,t]);const b=()=>{i.resetFields()},y=N=>{i.setFieldsValue({filepath:N.target.value})},S=(N,k,M)=>{if(N){const L=M==="library"?"lib:/":"content:/",F=N.map(j=>({filepath:L+k+"/"+j.name,name:j.name}));c(F)}},v=()=>{p(N=>N+1),d(!0)},x=N=>{p(k=>k+1),d(!0),h(N),c([i.getFieldValue(["files",N])])},C=()=>{const N=i.getFieldsValue();let k=[...N.files];g!==-1?k[g]={filepath:s[0].filepath,name:s[0].name}:k=[...N.files,...s];const M={...N,files:k};i.setFieldsValue(M),d(!1),c([]),h(-1)},w=()=>{d(!1),c([])},[E,I]=l.useState(""),[T,R]=l.useState(""),[_,$]=l.useState(!1),P=m.jsx(ut,{type:"primary",onClick:()=>$(!1),children:a("tonies.informationModal.ok")}),D=()=>{$(!1)},A=m.jsx(Sn,{footer:P,width:1e3,title:"File (you can copy the content to a *.tap file)",open:_,onCancel:D,children:E?m.jsxs(m.Fragment,{children:[m.jsx(ba,{language:"json",code:E}),m.jsx("div",{style:{margin:"16px 0 8px 0"},children:"Minimized json:"}),m.jsx(ba,{language:"json",showLineNumbers:!1,code:T})]}):"Loading..."}),O=m.jsxs("div",{style:{display:"flex",gap:8,justifyContent:"flex-end",padding:"16px 0",margin:"-24px -24px -12px -24px",background:o.colorBgElevated},children:[m.jsx(ut,{onClick:w,children:a("tonies.selectFileModal.cancel")}),m.jsx(ut,{type:"primary",onClick:C,children:a("tonies.selectFileModal.ok")})]});return m.jsxs(m.Fragment,{children:[m.jsxs(Sn,{open:e,title:a(t?"tonies.tapEditor.titleEdit":"tonies.tapEditor.titleCreate"),okText:a(t?"tonies.tapEditor.save":"tonies.tapEditor.create"),cancelText:a("tonies.tapEditor.cancel"),onCancel:()=>{r(),b()},onOk:()=>{i.validateFields().then(()=>{n(i.getFieldsValue()),I(JSON.stringify(i.getFieldsValue(),null,2)),R(JSON.stringify(i.getFieldsValue(),null,0)),$(!0),b()}).catch(N=>{console.log("Validate Failed:",N)})},children:[m.jsx(An,{type:"info",showIcon:!0,message:"Work in progress - be aware!",description:"Currently, only the generated json is displayed when saving the new tap. This is not automatically saved to your library. You have to create a *.tap file manually and copy this into the file yourself.",style:{marginBottom:8}}),m.jsxs(qt,{form:i,layout:"vertical",name:"tapEditorModal",initialValues:{type:"tap",filepath:"",name:"",files:[]},children:[m.jsx(qt.Item,{name:"type",hidden:!0,label:"type",children:m.jsx(Jt,{type:"string"})}),m.jsx(qt.Item,{name:"audio_id",label:"Audio ID",children:m.jsx(Jt,{type:"number"})}),m.jsx(qt.Item,{name:"filepath",label:a("tonies.tapEditor.filePath"),children:m.jsx(Jt,{onChange:y})}),m.jsx(qt.Item,{name:"name",label:a("tonies.tapEditor.name"),rules:[{required:!0,message:a("tonies.tapEditor.nameRequired")}],children:m.jsx(Jt,{})}),m.jsx(qt.List,{name:"files",children:(N,{add:k,remove:M})=>m.jsxs(m.Fragment,{children:[N.map(({key:L,name:F},j)=>m.jsx("div",{className:"playlistTitle",children:m.jsxs(Na,{style:{display:"flex",marginBottom:8,alignItems:"center",width:"100%"},align:"baseline",children:[m.jsx(qt.Item,{name:[F,"filepath"],label:a("tonies.tapEditor.filePathContentFile"),rules:[{required:!0,message:a("tonies.tapEditor.filePathContentFileRequired")}],children:m.jsx(Jt,{width:"auto",addonBefore:m.jsx(Jr,{onClick:()=>{const B=[...i.getFieldsValue().files];B[j].filepath="",i.setFieldsValue({files:B})}}),addonAfter:m.jsx(JO,{onClick:()=>x(j)})})}),m.jsx(qt.Item,{name:[F,"name"],label:a("tonies.tapEditor.fileNameContentFile"),children:m.jsx(Jt,{placeholder:"Name"})}),m.jsx(zwe,{onClick:()=>M(F)})]},`space-${L}`)},`files-${L}`)),m.jsx(qt.Item,{children:m.jsx(ut,{type:"dashed",onClick:()=>v(),block:!0,icon:m.jsx(UW,{}),children:a("tonies.tapEditor.addFile")})})]})})]}),m.jsx(Sn,{className:"sticky-footer",title:a("tonies.selectFileModal.selectFile"),open:u,onOk:C,onCancel:w,width:"auto",footer:O,children:m.jsx(dk,{maxSelectedRows:99,special:"library",trackUrl:!1,filetypeFilter:zBe,onFileSelectChange:S},f)})]}),A]})};function HBe(){for(var e=arguments.length,t=new Array(e),n=0;nr=>{t.forEach(a=>a(r))},t)}const zy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function cf(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function mk(e){return"nodeType"in e}function no(e){var t,n;return e?cf(e)?e:mk(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function hk(e){const{Document:t}=no(e);return e instanceof t}function Em(e){return cf(e)?!1:e instanceof no(e).HTMLElement}function gX(e){return e instanceof no(e).SVGElement}function uf(e){return e?cf(e)?e.document:mk(e)?hk(e)?e:Em(e)||gX(e)?e.ownerDocument:document:document:document}const vi=zy?l.useLayoutEffect:l.useEffect;function vk(e){const t=l.useRef(e);return vi(()=>{t.current=e}),l.useCallback(function(){for(var n=arguments.length,r=new Array(n),a=0;a{e.current=setInterval(r,a)},[]),n=l.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function Tg(e,t){t===void 0&&(t=[e]);const n=l.useRef(e);return vi(()=>{n.current!==e&&(n.current=e)},t),n}function Im(e,t){const n=l.useRef();return l.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function Mb(e){const t=vk(e),n=l.useRef(null),r=l.useCallback(a=>{a!==n.current&&(t==null||t(a,n.current)),n.current=a},[]);return[n,r]}function y_(e){const t=l.useRef();return l.useEffect(()=>{t.current=e},[e]),t.current}let X2={};function Tm(e,t){return l.useMemo(()=>{if(t)return t;const n=X2[e]==null?0:X2[e]+1;return X2[e]=n,e+"-"+n},[e,t])}function mX(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a{const s=Object.entries(i);for(const[c,u]of s){const d=o[c];d!=null&&(o[c]=d+e*u)}return o},{...t})}}const ad=mX(1),Pb=mX(-1);function VBe(e){return"clientX"in e&&"clientY"in e}function bk(e){if(!e)return!1;const{KeyboardEvent:t}=no(e.target);return t&&e instanceof t}function WBe(e){if(!e)return!1;const{TouchEvent:t}=no(e.target);return t&&e instanceof t}function S_(e){if(WBe(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return VBe(e)?{x:e.clientX,y:e.clientY}:null}const Md=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Md.Translate.toString(e),Md.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),Y5="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function GBe(e){return e.matches(Y5)?e:e.querySelector(Y5)}const qBe={display:"none"};function KBe(e){let{id:t,value:n}=e;return se.createElement("div",{id:t,style:qBe},n)}function YBe(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const a={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return se.createElement("div",{id:t,style:a,role:"status","aria-live":r,"aria-atomic":!0},n)}function XBe(){const[e,t]=l.useState("");return{announce:l.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const hX=l.createContext(null);function ZBe(e){const t=l.useContext(hX);l.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of ");return t(e)},[e,t])}function QBe(){const[e]=l.useState(()=>new Set),t=l.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[l.useCallback(r=>{let{type:a,event:o}=r;e.forEach(i=>{var s;return(s=i[a])==null?void 0:s.call(i,o)})},[e]),t]}const JBe={draggable:` +`,Y2=new xn(pn()),ABe=()=>{const[e,t]=l.useState(0),[n,r]=l.useState(""),[a,o]=l.useState(""),[i,s]=l.useState(""),c=()=>{const u=document.querySelector("footer");u&&t(u.offsetHeight)};return l.useEffect(()=>{Y2.apiGetTeddyCloudSettingRaw("internal.version.v_long").then(u=>u.text()).then(u=>r(u)).catch(u=>console.error("Error fetching data:",u)),Y2.apiGetTeddyCloudSettingRaw("internal.version.v_short").then(u=>u.text()).then(u=>o(u)).catch(u=>console.error("Error fetching data:",u)),Y2.apiGetTeddyCloudSettingRaw("internal.version.git_sha_short").then(u=>u.text()).then(u=>s(u)).catch(u=>console.error("Error fetching data:",u))},[]),m.jsxs(m.Fragment,{children:[m.jsx("div",{style:{paddingBottom:e}}),m.jsxs(kBe,{children:[m.jsx(K5,{children:m.jsx(NBe,{onVisibilityChange:c})}),m.jsx(K5,{children:m.jsx("div",{children:m.jsx("small",{children:m.jsxs(yt,{to:"https://github.com/toniebox-reverse-engineering/teddycloud/releases/",target:"_blank",children:[m.jsxs(In,{children:[a," (",i,")"]}),m.jsx(Cg,{children:n})]})})})})]})]})},Go=()=>{const{t:e}=Nt(),[t,n]=l.useState(!1),[r,a]=l.useState(""),o=()=>{n(!0),a("")},i=[{key:"tonies",label:m.jsx(yt,{to:"/tonies",children:e("tonies.tonies.navigationTitle")}),icon:se.createElement(pq),title:e("tonies.tonies.navigationTitle")},{key:"custom-json",label:m.jsx("label",{style:{cursor:"pointer"},children:e("tonies.addToniesCustomJsonEntry")}),onClick:o,icon:se.createElement(aEe),title:e("tonies.addToniesCustomJsonEntry")},{key:"encoder",label:m.jsx(yt,{to:"/tonies/encoder",children:e("tonies.encoder.navigationTitle")}),icon:se.createElement(dxe),title:e("tonies.encoder.navigationTitle")},{key:"tap",label:m.jsx(yt,{to:"/tonies/tap",children:e("tonies.tap.navigationTitle")}),icon:se.createElement(QCe),title:e("tonies.tap.navigationTitle")},{key:"library",label:m.jsx(yt,{to:"/tonies/library",children:e("tonies.library.navigationTitle")}),icon:se.createElement(D1e),title:e("tonies.library.navigationTitle")},{key:"content",label:m.jsx(yt,{to:"/tonies/content",children:e("tonies.content.navigationTitle")}),icon:se.createElement(dq),title:e("tonies.content.navigationTitle")},{key:"system-sounds",label:m.jsx(yt,{to:"/tonies/system-sounds",children:e("tonies.system-sounds.navigationTitle")}),icon:se.createElement(rN),title:e("tonies.system-sounds.navigationTitle")}];return m.jsxs(m.Fragment,{children:[m.jsx(Sm,{mode:"inline",selectedKeys:[r],defaultOpenKeys:["sub"],items:i}),t&&m.jsx(fX,{open:t,onClose:()=>n(!1)})]})},X2=new xn(pn()),gk=e=>{const[t,n]=l.useState([]),[r,a]=l.useState(()=>{if(e!==void 0){if(e!==null)return localStorage.setItem("contentOverlay",e),e;{const i=localStorage.getItem("contentOverlay");return i||""}}else{const i=localStorage.getItem("contentOverlay");return i||""}});return l.useEffect(()=>{(async()=>{const s=await X2.apiGetTonieboxesIndex(),u=(await Promise.all(s.map(async g=>[await X2.apiGetTonieboxContentDir(g.ID),g.boxName,g.ID]))).reduce((g,[h,b,y])=>{const S=g.findIndex(v=>v[0]===h);return S!==-1?(g[S][1].push(b),r===y&&a(g[S][2])):g.push([h,[b],y]),g},[]),d=await X2.apiGetTonieboxContentDir("");u.findIndex(g=>g[0]===d)===-1&&u.push(["",["TeddyCloud Default Content Dir"],""]);const p=u.map(([g,h,b])=>[g,h,b]);if(r===""||r===null||r===void 0){const g=p.length>0?p[0][2]:"";a(g),localStorage.setItem("contentOverlay",g)}n(p)})()},[]),{tonieBoxContentDirs:t,overlay:r,handleSelectChange:i=>{a(i),localStorage.setItem("contentOverlay",i)}}},MBe=new xn(pn()),{Option:PBe}=Ar,DBe=()=>{const e=Yi(),n=new URLSearchParams(e.search).get("overlay"),{t:r}=Nt(),[a,o]=l.useState([]),{tonieBoxContentDirs:i,overlay:s,handleSelectChange:c}=gk(n),[u,d]=l.useState(""),f=p=>{o(g=>g.map(h=>h.ruid===p.ruid?p:h))};return l.useEffect(()=>{(async()=>{const g=(await MBe.apiGetTagIndex(s||"",!0)).filter(h=>!h.hide);o(g.sort((h,b)=>h.tonieInfo.seriesb.tonieInfo.series?1:h.tonieInfo.episodeb.tonieInfo.episode?1:0))})()},[s]),l.useEffect(()=>{const p={};a.forEach(b=>{const y=b.tonieInfo.language;p[y]?p[y]++:p[y]=1});let g=0,h="";for(const b in p)p.hasOwnProperty(b)&&p[b]>g&&(g=p[b],h=b);d(h)},[a]),m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(Go,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(Go,{})}),m.jsx(zn,{items:[{title:r("home.navigationTitle")},{title:r("tonies.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignContent:"center",flexDirection:"row",alignItems:"center"},children:[m.jsx("h1",{style:{width:"200px"},children:r("tonies.title")}),i.length>1?m.jsx(Zt,{title:r("tonies.content.showToniesOfBoxes"),children:m.jsx(Ar,{id:"contentDirectorySelect",defaultValue:"",onChange:c,style:{maxWidth:"300px"},value:s,children:i.map(([p,g,h])=>m.jsx(PBe,{value:h,children:g.join(", ")},h))})}):""]}),m.jsx(fk,{showFilter:!0,showPagination:!0,tonieCards:a.filter(p=>p.type==="tag"),overlay:s,readOnly:!1,defaultLanguage:u,onToniesCardUpdate:f})]})]})]})},LBe=new xn(pn()),{Option:FBe}=Ar,jBe=()=>{const{t:e}=Nt(),[t,n]=l.useState([]),{tonieBoxContentDirs:r,overlay:a,handleSelectChange:o}=gk();return l.useEffect(()=>{(async()=>{const s=await LBe.apiGetTagIndex(a||"");n(s.sort((c,u)=>c.tonieInfo.seriesu.tonieInfo.series?1:c.tonieInfo.episodeu.tonieInfo.episode?1:0))})()},[a]),m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(Go,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(Go,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")},{title:e("tonies.navigationTitle")},{title:e("tonies.system-sounds.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignContent:"center",flexDirection:"row",alignItems:"center"},children:[m.jsx("h1",{children:e("tonies.system-sounds.title")}),r.length>1?m.jsx(Ar,{id:"contentDirectorySelect",defaultValue:"",onChange:o,style:{maxWidth:"300px"},value:a,title:e("tonies.content.showToniesOfBoxes"),children:r.map(([i,s,c])=>m.jsx(FBe,{value:c,children:s.join(", ")},c))}):""]}),m.jsx(fk,{showFilter:!1,showPagination:!0,tonieCards:t.filter(i=>i.type==="system"),overlay:a,readOnly:!1})]})]})]})},{useToken:BBe}=Ta,zBe=uk,pX=({open:e,initialValuesJson:t,onCreate:n,onCancel:r})=>{const{t:a}=Nt(),{token:o}=BBe(),[i]=qt.useForm(),[s,c]=l.useState([]),[u,d]=l.useState(!1),[f,p]=l.useState(0),[g,h]=l.useState(-1);l.useEffect(()=>{c([])},[]),l.useEffect(()=>{if(t)try{const N=JSON.parse(t);i.setFieldsValue(N)}catch(N){console.error("Error parsing JSON:",N)}},[i,t]);const b=()=>{i.resetFields()},y=N=>{i.setFieldsValue({filepath:N.target.value})},S=(N,k,M)=>{if(N){const L=M==="library"?"lib:/":"content:/",F=N.map(j=>({filepath:L+k+"/"+j.name,name:j.name}));c(F)}},v=()=>{p(N=>N+1),d(!0)},x=N=>{p(k=>k+1),d(!0),h(N),c([i.getFieldValue(["files",N])])},w=()=>{const N=i.getFieldsValue();let k=[...N.files];g!==-1?k[g]={filepath:s[0].filepath,name:s[0].name}:k=[...N.files,...s];const M={...N,files:k};i.setFieldsValue(M),d(!1),c([]),h(-1)},C=()=>{d(!1),c([])},[E,I]=l.useState(""),[T,R]=l.useState(""),[_,$]=l.useState(!1),P=m.jsx(ct,{type:"primary",onClick:()=>$(!1),children:a("tonies.informationModal.ok")}),D=()=>{$(!1)},A=m.jsx(Sn,{footer:P,width:1e3,title:"File (you can copy the content to a *.tap file)",open:_,onCancel:D,children:E?m.jsxs(m.Fragment,{children:[m.jsx(Sa,{language:"json",code:E}),m.jsx("div",{style:{margin:"16px 0 8px 0"},children:"Minimized json:"}),m.jsx(Sa,{language:"json",showLineNumbers:!1,code:T})]}):"Loading..."}),O=m.jsxs("div",{style:{display:"flex",gap:8,justifyContent:"flex-end",padding:"16px 0",margin:"-24px -24px -12px -24px",background:o.colorBgElevated},children:[m.jsx(ct,{onClick:C,children:a("tonies.selectFileModal.cancel")}),m.jsx(ct,{type:"primary",onClick:w,children:a("tonies.selectFileModal.ok")})]});return m.jsxs(m.Fragment,{children:[m.jsxs(Sn,{open:e,title:a(t?"tonies.tapEditor.titleEdit":"tonies.tapEditor.titleCreate"),okText:a(t?"tonies.tapEditor.save":"tonies.tapEditor.create"),cancelText:a("tonies.tapEditor.cancel"),onCancel:()=>{r(),b()},onOk:()=>{i.validateFields().then(()=>{n(i.getFieldsValue()),I(JSON.stringify(i.getFieldsValue(),null,2)),R(JSON.stringify(i.getFieldsValue(),null,0)),$(!0),b()}).catch(N=>{console.log("Validate Failed:",N)})},children:[m.jsx(An,{type:"info",showIcon:!0,message:"Work in progress - be aware!",description:"Currently, only the generated json is displayed when saving the new tap. This is not automatically saved to your library. You have to create a *.tap file manually and copy this into the file yourself.",style:{marginBottom:8}}),m.jsxs(qt,{form:i,layout:"vertical",name:"tapEditorModal",initialValues:{type:"tap",filepath:"",name:"",files:[]},children:[m.jsx(qt.Item,{name:"type",hidden:!0,label:"type",children:m.jsx(Jt,{type:"string"})}),m.jsx(qt.Item,{name:"audio_id",label:"Audio ID",children:m.jsx(Jt,{type:"number"})}),m.jsx(qt.Item,{name:"filepath",label:a("tonies.tapEditor.filePath"),children:m.jsx(Jt,{onChange:y})}),m.jsx(qt.Item,{name:"name",label:a("tonies.tapEditor.name"),rules:[{required:!0,message:a("tonies.tapEditor.nameRequired")}],children:m.jsx(Jt,{})}),m.jsx(qt.List,{name:"files",children:(N,{add:k,remove:M})=>m.jsxs(m.Fragment,{children:[N.map(({key:L,name:F},j)=>m.jsx("div",{className:"playlistTitle",children:m.jsxs(ka,{style:{display:"flex",marginBottom:8,alignItems:"center",width:"100%"},align:"baseline",children:[m.jsx(qt.Item,{name:[F,"filepath"],label:a("tonies.tapEditor.filePathContentFile"),rules:[{required:!0,message:a("tonies.tapEditor.filePathContentFileRequired")}],children:m.jsx(Jt,{width:"auto",addonBefore:m.jsx(ta,{onClick:()=>{const B=[...i.getFieldsValue().files];B[j].filepath="",i.setFieldsValue({files:B})}}),addonAfter:m.jsx(eN,{onClick:()=>x(j)})})}),m.jsx(qt.Item,{name:[F,"name"],label:a("tonies.tapEditor.fileNameContentFile"),children:m.jsx(Jt,{placeholder:"Name"})}),m.jsx(zwe,{onClick:()=>M(F)})]},`space-${L}`)},`files-${L}`)),m.jsx(qt.Item,{children:m.jsx(ct,{type:"dashed",onClick:()=>v(),block:!0,icon:m.jsx(UW,{}),children:a("tonies.tapEditor.addFile")})})]})})]}),m.jsx(Sn,{className:"sticky-footer",title:a("tonies.selectFileModal.selectFile"),open:u,onOk:w,onCancel:C,width:"auto",footer:O,children:m.jsx(dk,{maxSelectedRows:99,special:"library",trackUrl:!1,filetypeFilter:zBe,onFileSelectChange:S},f)})]}),A]})};function HBe(){for(var e=arguments.length,t=new Array(e),n=0;nr=>{t.forEach(a=>a(r))},t)}const Hy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function uf(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function mk(e){return"nodeType"in e}function ro(e){var t,n;return e?uf(e)?e:mk(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function hk(e){const{Document:t}=ro(e);return e instanceof t}function Tm(e){return uf(e)?!1:e instanceof ro(e).HTMLElement}function gX(e){return e instanceof ro(e).SVGElement}function df(e){return e?uf(e)?e.document:mk(e)?hk(e)?e:Tm(e)||gX(e)?e.ownerDocument:document:document:document}const bi=Hy?l.useLayoutEffect:l.useEffect;function vk(e){const t=l.useRef(e);return bi(()=>{t.current=e}),l.useCallback(function(){for(var n=arguments.length,r=new Array(n),a=0;a{e.current=setInterval(r,a)},[]),n=l.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function _g(e,t){t===void 0&&(t=[e]);const n=l.useRef(e);return bi(()=>{n.current!==e&&(n.current=e)},t),n}function Rm(e,t){const n=l.useRef();return l.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function Pb(e){const t=vk(e),n=l.useRef(null),r=l.useCallback(a=>{a!==n.current&&(t==null||t(a,n.current)),n.current=a},[]);return[n,r]}function S_(e){const t=l.useRef();return l.useEffect(()=>{t.current=e},[e]),t.current}let Z2={};function _m(e,t){return l.useMemo(()=>{if(t)return t;const n=Z2[e]==null?0:Z2[e]+1;return Z2[e]=n,e+"-"+n},[e,t])}function mX(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a{const s=Object.entries(i);for(const[c,u]of s){const d=o[c];d!=null&&(o[c]=d+e*u)}return o},{...t})}}const ad=mX(1),Db=mX(-1);function VBe(e){return"clientX"in e&&"clientY"in e}function bk(e){if(!e)return!1;const{KeyboardEvent:t}=ro(e.target);return t&&e instanceof t}function WBe(e){if(!e)return!1;const{TouchEvent:t}=ro(e.target);return t&&e instanceof t}function x_(e){if(WBe(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return VBe(e)?{x:e.clientX,y:e.clientY}:null}const Md=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Md.Translate.toString(e),Md.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),Y5="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function GBe(e){return e.matches(Y5)?e:e.querySelector(Y5)}const qBe={display:"none"};function KBe(e){let{id:t,value:n}=e;return se.createElement("div",{id:t,style:qBe},n)}function YBe(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const a={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return se.createElement("div",{id:t,style:a,role:"status","aria-live":r,"aria-atomic":!0},n)}function XBe(){const[e,t]=l.useState("");return{announce:l.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const hX=l.createContext(null);function ZBe(e){const t=l.useContext(hX);l.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of ");return t(e)},[e,t])}function QBe(){const[e]=l.useState(()=>new Set),t=l.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[l.useCallback(r=>{let{type:a,event:o}=r;e.forEach(i=>{var s;return(s=i[a])==null?void 0:s.call(i,o)})},[e]),t]}const JBe={draggable:` To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel. - `},e7e={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function t7e(e){let{announcements:t=e7e,container:n,hiddenTextDescribedById:r,screenReaderInstructions:a=JBe}=e;const{announce:o,announcement:i}=XBe(),s=Tm("DndLiveRegion"),[c,u]=l.useState(!1);if(l.useEffect(()=>{u(!0)},[]),ZBe(l.useMemo(()=>({onDragStart(f){let{active:p}=f;o(t.onDragStart({active:p}))},onDragMove(f){let{active:p,over:g}=f;t.onDragMove&&o(t.onDragMove({active:p,over:g}))},onDragOver(f){let{active:p,over:g}=f;o(t.onDragOver({active:p,over:g}))},onDragEnd(f){let{active:p,over:g}=f;o(t.onDragEnd({active:p,over:g}))},onDragCancel(f){let{active:p,over:g}=f;o(t.onDragCancel({active:p,over:g}))}}),[o,t])),!c)return null;const d=se.createElement(se.Fragment,null,se.createElement(KBe,{id:r,value:a.draggable}),se.createElement(YBe,{id:s,announcement:i}));return n?Lr.createPortal(d,n):d}var Dr;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Dr||(Dr={}));function Db(){}function vX(e,t){return l.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}const bi=Object.freeze({x:0,y:0});function n7e(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function r7e(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function a7e(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),a=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),i=a-r,s=o-n;if(r{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const a=[];for(const o of r){const{id:i}=o,s=n.get(i);if(s){const c=a7e(s,t);c>0&&a.push({id:i,data:{droppableContainer:o,value:c}})}}return a.sort(n7e)};function i7e(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function bX(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:bi}function s7e(e){return function(n){for(var r=arguments.length,a=new Array(r>1?r-1:0),o=1;o({...i,top:i.top+e*s.y,bottom:i.bottom+e*s.y,left:i.left+e*s.x,right:i.right+e*s.x}),{...n})}}const l7e=s7e(1);function c7e(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function u7e(e,t,n){const r=c7e(t);if(!r)return e;const{scaleX:a,scaleY:o,x:i,y:s}=r,c=e.left-i-(1-a)*parseFloat(n),u=e.top-s-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),d=a?e.width/a:e.width,f=o?e.height/o:e.height;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c}}const d7e={ignoreTransform:!1};function df(e,t){t===void 0&&(t=d7e);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:u,transformOrigin:d}=no(e).getComputedStyle(e);u&&(n=u7e(n,u,d))}const{top:r,left:a,width:o,height:i,bottom:s,right:c}=n;return{top:r,left:a,width:o,height:i,bottom:s,right:c}}function X5(e){return df(e,{ignoreTransform:!0})}function f7e(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function p7e(e,t){return t===void 0&&(t=no(e).getComputedStyle(e)),t.position==="fixed"}function g7e(e,t){t===void 0&&(t=no(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(a=>{const o=t[a];return typeof o=="string"?n.test(o):!1})}function yk(e,t){const n=[];function r(a){if(t!=null&&n.length>=t||!a)return n;if(hk(a)&&a.scrollingElement!=null&&!n.includes(a.scrollingElement))return n.push(a.scrollingElement),n;if(!Em(a)||gX(a)||n.includes(a))return n;const o=no(e).getComputedStyle(a);return a!==e&&g7e(a,o)&&n.push(a),p7e(a,o)?n:r(a.parentNode)}return e?r(e):n}function yX(e){const[t]=yk(e,1);return t??null}function Z2(e){return!zy||!e?null:cf(e)?e:mk(e)?hk(e)||e===uf(e).scrollingElement?window:Em(e)?e:null:null}function SX(e){return cf(e)?e.scrollX:e.scrollLeft}function xX(e){return cf(e)?e.scrollY:e.scrollTop}function x_(e){return{x:SX(e),y:xX(e)}}var Kr;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Kr||(Kr={}));function wX(e){return!zy||!e?!1:e===document.scrollingElement}function CX(e){const t={x:0,y:0},n=wX(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},a=e.scrollTop<=t.y,o=e.scrollLeft<=t.x,i=e.scrollTop>=r.y,s=e.scrollLeft>=r.x;return{isTop:a,isLeft:o,isBottom:i,isRight:s,maxScroll:r,minScroll:t}}const m7e={x:.2,y:.2};function h7e(e,t,n,r,a){let{top:o,left:i,right:s,bottom:c}=n;r===void 0&&(r=10),a===void 0&&(a=m7e);const{isTop:u,isBottom:d,isLeft:f,isRight:p}=CX(e),g={x:0,y:0},h={x:0,y:0},b={height:t.height*a.y,width:t.width*a.x};return!u&&o<=t.top+b.height?(g.y=Kr.Backward,h.y=r*Math.abs((t.top+b.height-o)/b.height)):!d&&c>=t.bottom-b.height&&(g.y=Kr.Forward,h.y=r*Math.abs((t.bottom-b.height-c)/b.height)),!p&&s>=t.right-b.width?(g.x=Kr.Forward,h.x=r*Math.abs((t.right-b.width-s)/b.width)):!f&&i<=t.left+b.width&&(g.x=Kr.Backward,h.x=r*Math.abs((t.left+b.width-i)/b.width)),{direction:g,speed:h}}function v7e(e){if(e===document.scrollingElement){const{innerWidth:o,innerHeight:i}=window;return{top:0,left:0,right:o,bottom:i,width:o,height:i}}const{top:t,left:n,right:r,bottom:a}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:a,width:e.clientWidth,height:e.clientHeight}}function EX(e){return e.reduce((t,n)=>ad(t,x_(n)),bi)}function b7e(e){return e.reduce((t,n)=>t+SX(n),0)}function y7e(e){return e.reduce((t,n)=>t+xX(n),0)}function S7e(e,t){if(t===void 0&&(t=df),!e)return;const{top:n,left:r,bottom:a,right:o}=t(e);yX(e)&&(a<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const x7e=[["x",["left","right"],b7e],["y",["top","bottom"],y7e]];class Sk{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=yk(n),a=EX(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[o,i,s]of x7e)for(const c of i)Object.defineProperty(this,c,{get:()=>{const u=s(r),d=a[o]-u;return this.rect[c]+d},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Rp{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var a;(a=this.target)==null||a.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function w7e(e){const{EventTarget:t}=no(e);return e instanceof t?e:uf(e)}function Q2(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var Ao;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Ao||(Ao={}));function Z5(e){e.preventDefault()}function C7e(e){e.stopPropagation()}var kn;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"})(kn||(kn={}));const IX={start:[kn.Space,kn.Enter],cancel:[kn.Esc],end:[kn.Space,kn.Enter]},E7e=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case kn.Right:return{...n,x:n.x+25};case kn.Left:return{...n,x:n.x-25};case kn.Down:return{...n,y:n.y+25};case kn.Up:return{...n,y:n.y-25}}};class TX{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new Rp(uf(n)),this.windowListeners=new Rp(no(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Ao.Resize,this.handleCancel),this.windowListeners.add(Ao.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Ao.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&S7e(r),n(bi)}handleKeyDown(t){if(bk(t)){const{active:n,context:r,options:a}=this.props,{keyboardCodes:o=IX,coordinateGetter:i=E7e,scrollBehavior:s="smooth"}=a,{code:c}=t;if(o.end.includes(c)){this.handleEnd(t);return}if(o.cancel.includes(c)){this.handleCancel(t);return}const{collisionRect:u}=r.current,d=u?{x:u.left,y:u.top}:bi;this.referenceCoordinates||(this.referenceCoordinates=d);const f=i(t,{active:n,context:r.current,currentCoordinates:d});if(f){const p=Pb(f,d),g={x:0,y:0},{scrollableAncestors:h}=r.current;for(const b of h){const y=t.code,{isTop:S,isRight:v,isLeft:x,isBottom:C,maxScroll:w,minScroll:E}=CX(b),I=v7e(b),T={x:Math.min(y===kn.Right?I.right-I.width/2:I.right,Math.max(y===kn.Right?I.left:I.left+I.width/2,f.x)),y:Math.min(y===kn.Down?I.bottom-I.height/2:I.bottom,Math.max(y===kn.Down?I.top:I.top+I.height/2,f.y))},R=y===kn.Right&&!v||y===kn.Left&&!x,_=y===kn.Down&&!C||y===kn.Up&&!S;if(R&&T.x!==f.x){const $=b.scrollLeft+p.x,P=y===kn.Right&&$<=w.x||y===kn.Left&&$>=E.x;if(P&&!p.y){b.scrollTo({left:$,behavior:s});return}P?g.x=b.scrollLeft-$:g.x=y===kn.Right?b.scrollLeft-w.x:b.scrollLeft-E.x,g.x&&b.scrollBy({left:-g.x,behavior:s});break}else if(_&&T.y!==f.y){const $=b.scrollTop+p.y,P=y===kn.Down&&$<=w.y||y===kn.Up&&$>=E.y;if(P&&!p.x){b.scrollTo({top:$,behavior:s});return}P?g.y=b.scrollTop-$:g.y=y===kn.Down?b.scrollTop-w.y:b.scrollTop-E.y,g.y&&b.scrollBy({top:-g.y,behavior:s});break}}this.handleMove(t,ad(Pb(f,this.referenceCoordinates),g))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}TX.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=IX,onActivation:a}=t,{active:o}=n;const{code:i}=e.nativeEvent;if(r.start.includes(i)){const s=o.activatorNode.current;return s&&e.target!==s?!1:(e.preventDefault(),a==null||a({event:e.nativeEvent}),!0)}return!1}}];function Q5(e){return!!(e&&"distance"in e)}function J5(e){return!!(e&&"delay"in e)}class xk{constructor(t,n,r){var a;r===void 0&&(r=w7e(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:o}=t,{target:i}=o;this.props=t,this.events=n,this.document=uf(i),this.documentListeners=new Rp(this.document),this.listeners=new Rp(r),this.windowListeners=new Rp(no(i)),this.initialCoordinates=(a=S_(o))!=null?a:bi,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),this.windowListeners.add(Ao.Resize,this.handleCancel),this.windowListeners.add(Ao.DragStart,Z5),this.windowListeners.add(Ao.VisibilityChange,this.handleCancel),this.windowListeners.add(Ao.ContextMenu,Z5),this.documentListeners.add(Ao.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(J5(n)){this.timeoutId=setTimeout(this.handleStart,n.delay);return}if(Q5(n))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(Ao.Click,C7e,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Ao.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:a,props:o}=this,{onMove:i,options:{activationConstraint:s}}=o;if(!a)return;const c=(n=S_(t))!=null?n:bi,u=Pb(a,c);if(!r&&s){if(Q5(s)){if(s.tolerance!=null&&Q2(u,s.tolerance))return this.handleCancel();if(Q2(u,s.distance))return this.handleStart()}return J5(s)&&Q2(u,s.tolerance)?this.handleCancel():void 0}t.cancelable&&t.preventDefault(),i(c)}handleEnd(){const{onEnd:t}=this.props;this.detach(),t()}handleCancel(){const{onCancel:t}=this.props;this.detach(),t()}handleKeydown(t){t.code===kn.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const I7e={move:{name:"pointermove"},end:{name:"pointerup"}};class Hy extends xk{constructor(t){const{event:n}=t,r=uf(n.target);super(t,I7e,r)}}Hy.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const T7e={move:{name:"mousemove"},end:{name:"mouseup"}};var w_;(function(e){e[e.RightClick=2]="RightClick"})(w_||(w_={}));class R7e extends xk{constructor(t){super(t,T7e,uf(t.event.target))}}R7e.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===w_.RightClick?!1:(r==null||r({event:n}),!0)}}];const J2={move:{name:"touchmove"},end:{name:"touchend"}};class _7e extends xk{constructor(t){super(t,J2)}static setup(){return window.addEventListener(J2.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(J2.move.name,t)};function t(){}}}_7e.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:a}=n;return a.length>1?!1:(r==null||r({event:n}),!0)}}];var _p;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(_p||(_p={}));var Lb;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Lb||(Lb={}));function $7e(e){let{acceleration:t,activator:n=_p.Pointer,canScroll:r,draggingRect:a,enabled:o,interval:i=5,order:s=Lb.TreeOrder,pointerCoordinates:c,scrollableAncestors:u,scrollableAncestorRects:d,delta:f,threshold:p}=e;const g=N7e({delta:f,disabled:!o}),[h,b]=UBe(),y=l.useRef({x:0,y:0}),S=l.useRef({x:0,y:0}),v=l.useMemo(()=>{switch(n){case _p.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case _p.DraggableRect:return a}},[n,a,c]),x=l.useRef(null),C=l.useCallback(()=>{const E=x.current;if(!E)return;const I=y.current.x*S.current.x,T=y.current.y*S.current.y;E.scrollBy(I,T)},[]),w=l.useMemo(()=>s===Lb.TreeOrder?[...u].reverse():u,[s,u]);l.useEffect(()=>{if(!o||!u.length||!v){b();return}for(const E of w){if((r==null?void 0:r(E))===!1)continue;const I=u.indexOf(E),T=d[I];if(!T)continue;const{direction:R,speed:_}=h7e(E,T,v,t,p);for(const $ of["x","y"])g[$][R[$]]||(_[$]=0,R[$]=0);if(_.x>0||_.y>0){b(),x.current=E,h(C,i),y.current=_,S.current=R;return}}y.current={x:0,y:0},S.current={x:0,y:0},b()},[t,C,r,b,o,i,JSON.stringify(v),JSON.stringify(g),h,u,w,d,JSON.stringify(p)])}const O7e={x:{[Kr.Backward]:!1,[Kr.Forward]:!1},y:{[Kr.Backward]:!1,[Kr.Forward]:!1}};function N7e(e){let{delta:t,disabled:n}=e;const r=y_(t);return Im(a=>{if(n||!r||!a)return O7e;const o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[Kr.Backward]:a.x[Kr.Backward]||o.x===-1,[Kr.Forward]:a.x[Kr.Forward]||o.x===1},y:{[Kr.Backward]:a.y[Kr.Backward]||o.y===-1,[Kr.Forward]:a.y[Kr.Forward]||o.y===1}}},[n,t,r])}function k7e(e,t){const n=t!==null?e.get(t):void 0,r=n?n.node.current:null;return Im(a=>{var o;return t===null?null:(o=r??a)!=null?o:null},[r,t])}function A7e(e,t){return l.useMemo(()=>e.reduce((n,r)=>{const{sensor:a}=r,o=a.activators.map(i=>({eventName:i.eventName,handler:t(i.handler,r)}));return[...n,...o]},[]),[e,t])}var Rg;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Rg||(Rg={}));var C_;(function(e){e.Optimized="optimized"})(C_||(C_={}));const eB=new Map;function M7e(e,t){let{dragging:n,dependencies:r,config:a}=t;const[o,i]=l.useState(null),{frequency:s,measure:c,strategy:u}=a,d=l.useRef(e),f=y(),p=Tg(f),g=l.useCallback(function(S){S===void 0&&(S=[]),!p.current&&i(v=>v===null?S:v.concat(S.filter(x=>!v.includes(x))))},[p]),h=l.useRef(null),b=Im(S=>{if(f&&!n)return eB;if(!S||S===eB||d.current!==e||o!=null){const v=new Map;for(let x of e){if(!x)continue;if(o&&o.length>0&&!o.includes(x.id)&&x.rect.current){v.set(x.id,x.rect.current);continue}const C=x.node.current,w=C?new Sk(c(C),C):null;x.rect.current=w,w&&v.set(x.id,w)}return v}return S},[e,o,n,f,c]);return l.useEffect(()=>{d.current=e},[e]),l.useEffect(()=>{f||g()},[n,f]),l.useEffect(()=>{o&&o.length>0&&i(null)},[JSON.stringify(o)]),l.useEffect(()=>{f||typeof s!="number"||h.current!==null||(h.current=setTimeout(()=>{g(),h.current=null},s))},[s,f,g,...r]),{droppableRects:b,measureDroppableContainers:g,measuringScheduled:o!=null};function y(){switch(u){case Rg.Always:return!1;case Rg.BeforeDragging:return n;default:return!n}}}function RX(e,t){return Im(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function P7e(e,t){return RX(e,t)}function D7e(e){let{callback:t,disabled:n}=e;const r=vk(t),a=l.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:o}=window;return new o(r)},[r,n]);return l.useEffect(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function Uy(e){let{callback:t,disabled:n}=e;const r=vk(t),a=l.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(r)},[n]);return l.useEffect(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function L7e(e){return new Sk(df(e),e)}function tB(e,t,n){t===void 0&&(t=L7e);const[r,a]=l.useReducer(s,null),o=D7e({callback(c){if(e)for(const u of c){const{type:d,target:f}=u;if(d==="childList"&&f instanceof HTMLElement&&f.contains(e)){a();break}}}}),i=Uy({callback:a});return vi(()=>{a(),e?(i==null||i.observe(e),o==null||o.observe(document.body,{childList:!0,subtree:!0})):(i==null||i.disconnect(),o==null||o.disconnect())},[e]),r;function s(c){if(!e)return null;if(e.isConnected===!1){var u;return(u=c??n)!=null?u:null}const d=t(e);return JSON.stringify(c)===JSON.stringify(d)?c:d}}function F7e(e){const t=RX(e);return bX(e,t)}const nB=[];function j7e(e){const t=l.useRef(e),n=Im(r=>e?r&&r!==nB&&e&&t.current&&e.parentNode===t.current.parentNode?r:yk(e):nB,[e]);return l.useEffect(()=>{t.current=e},[e]),n}function B7e(e){const[t,n]=l.useState(null),r=l.useRef(e),a=l.useCallback(o=>{const i=Z2(o.target);i&&n(s=>s?(s.set(i,x_(i)),new Map(s)):null)},[]);return l.useEffect(()=>{const o=r.current;if(e!==o){i(o);const s=e.map(c=>{const u=Z2(c);return u?(u.addEventListener("scroll",a,{passive:!0}),[u,x_(u)]):null}).filter(c=>c!=null);n(s.length?new Map(s):null),r.current=e}return()=>{i(e),i(o)};function i(s){s.forEach(c=>{const u=Z2(c);u==null||u.removeEventListener("scroll",a)})}},[a,e]),l.useMemo(()=>e.length?t?Array.from(t.values()).reduce((o,i)=>ad(o,i),bi):EX(e):bi,[e,t])}function rB(e,t){t===void 0&&(t=[]);const n=l.useRef(null);return l.useEffect(()=>{n.current=null},t),l.useEffect(()=>{const r=e!==bi;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?Pb(e,n.current):bi}function z7e(e){l.useEffect(()=>{if(!zy)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function H7e(e,t){return l.useMemo(()=>e.reduce((n,r)=>{let{eventName:a,handler:o}=r;return n[a]=i=>{o(i,t)},n},{}),[e,t])}function _X(e){return l.useMemo(()=>e?f7e(e):null,[e])}const eI=[];function U7e(e,t){t===void 0&&(t=df);const[n]=e,r=_X(n?no(n):null),[a,o]=l.useReducer(s,eI),i=Uy({callback:o});return e.length>0&&a===eI&&o(),vi(()=>{e.length?e.forEach(c=>i==null?void 0:i.observe(c)):(i==null||i.disconnect(),o())},[e]),a;function s(){return e.length?e.map(c=>wX(c)?r:new Sk(t(c),c)):eI}}function V7e(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Em(t)?t:e}function W7e(e){let{measure:t}=e;const[n,r]=l.useState(null),a=l.useCallback(u=>{for(const{target:d}of u)if(Em(d)){r(f=>{const p=t(d);return f?{...f,width:p.width,height:p.height}:p});break}},[t]),o=Uy({callback:a}),i=l.useCallback(u=>{const d=V7e(u);o==null||o.disconnect(),d&&(o==null||o.observe(d)),r(d?t(d):null)},[t,o]),[s,c]=Mb(i);return l.useMemo(()=>({nodeRef:s,rect:n,setRef:c}),[n,s,c])}const G7e=[{sensor:Hy,options:{}},{sensor:TX,options:{}}],q7e={current:{}},Cv={draggable:{measure:X5},droppable:{measure:X5,strategy:Rg.WhileDragging,frequency:C_.Optimized},dragOverlay:{measure:df}};class $p extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const K7e={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new $p,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Db},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Cv,measureDroppableContainers:Db,windowRect:null,measuringScheduled:!1},Y7e={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Db,draggableNodes:new Map,over:null,measureDroppableContainers:Db},Vy=l.createContext(Y7e),$X=l.createContext(K7e);function X7e(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new $p}}}function Z7e(e,t){switch(t.type){case Dr.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Dr.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case Dr.DragEnd:case Dr.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Dr.RegisterDroppable:{const{element:n}=t,{id:r}=n,a=new $p(e.droppable.containers);return a.set(r,n),{...e,droppable:{...e.droppable,containers:a}}}case Dr.SetDroppableDisabled:{const{id:n,key:r,disabled:a}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const i=new $p(e.droppable.containers);return i.set(n,{...o,disabled:a}),{...e,droppable:{...e.droppable,containers:i}}}case Dr.UnregisterDroppable:{const{id:n,key:r}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;const o=new $p(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function Q7e(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:a}=l.useContext(Vy),o=y_(r),i=y_(n==null?void 0:n.id);return l.useEffect(()=>{if(!t&&!r&&o&&i!=null){if(!bk(o)||document.activeElement===o.target)return;const s=a.get(i);if(!s)return;const{activatorNode:c,node:u}=s;if(!c.current&&!u.current)return;requestAnimationFrame(()=>{for(const d of[c.current,u.current]){if(!d)continue;const f=GBe(d);if(f){f.focus();break}}})}},[r,t,a,i,o]),null}function J7e(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((a,o)=>o({transform:a,...r}),n):n}function eze(e){return l.useMemo(()=>({draggable:{...Cv.draggable,...e==null?void 0:e.draggable},droppable:{...Cv.droppable,...e==null?void 0:e.droppable},dragOverlay:{...Cv.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function tze(e){let{activeNode:t,measure:n,initialRect:r,config:a=!0}=e;const o=l.useRef(!1),{x:i,y:s}=typeof a=="boolean"?{x:a,y:a}:a;vi(()=>{if(!i&&!s||!t){o.current=!1;return}if(o.current||!r)return;const u=t==null?void 0:t.node.current;if(!u||u.isConnected===!1)return;const d=n(u),f=bX(d,r);if(i||(f.x=0),s||(f.y=0),o.current=!0,Math.abs(f.x)>0||Math.abs(f.y)>0){const p=yX(u);p&&p.scrollBy({top:f.y,left:f.x})}},[t,i,s,r,n])}const OX=l.createContext({...bi,scaleX:1,scaleY:1});var Ws;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Ws||(Ws={}));const NX=l.memo(function(t){var n,r,a,o;let{id:i,accessibility:s,autoScroll:c=!0,children:u,sensors:d=G7e,collisionDetection:f=o7e,measuring:p,modifiers:g,...h}=t;const b=l.useReducer(Z7e,void 0,X7e),[y,S]=b,[v,x]=QBe(),[C,w]=l.useState(Ws.Uninitialized),E=C===Ws.Initialized,{draggable:{active:I,nodes:T,translate:R},droppable:{containers:_}}=y,$=I?T.get(I):null,P=l.useRef({initial:null,translated:null}),D=l.useMemo(()=>{var be;return I!=null?{id:I,data:(be=$==null?void 0:$.data)!=null?be:q7e,rect:P}:null},[I,$]),A=l.useRef(null),[O,N]=l.useState(null),[k,M]=l.useState(null),L=Tg(h,Object.values(h)),F=Tm("DndDescribedBy",i),j=l.useMemo(()=>_.getEnabled(),[_]),B=eze(p),{droppableRects:z,measureDroppableContainers:H,measuringScheduled:V}=M7e(j,{dragging:E,dependencies:[R.x,R.y],config:B.droppable}),te=k7e(T,I),Y=l.useMemo(()=>k?S_(k):null,[k]),J=Ae(),G=P7e(te,B.draggable.measure);tze({activeNode:I?T.get(I):null,config:J.layoutShiftCompensation,initialRect:G,measure:B.draggable.measure});const U=tB(te,B.draggable.measure,G),q=tB(te?te.parentElement:null),X=l.useRef({activatorEvent:null,active:null,activeNode:te,collisionRect:null,collisions:null,droppableRects:z,draggableNodes:T,draggingNode:null,draggingNodeRect:null,droppableContainers:_,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Q=_.getNodeFor((n=X.current.over)==null?void 0:n.id),ee=W7e({measure:B.dragOverlay.measure}),oe=(r=ee.nodeRef.current)!=null?r:te,le=E?(a=ee.rect)!=null?a:U:null,fe=!!(ee.nodeRef.current&&ee.rect),ce=F7e(fe?null:U),Te=_X(oe?no(oe):null),Se=j7e(E?Q??te:null),ve=U7e(Se),ae=J7e(g,{transform:{x:R.x-ce.x,y:R.y-ce.y,scaleX:1,scaleY:1},activatorEvent:k,active:D,activeNodeRect:U,containerNodeRect:q,draggingNodeRect:le,over:X.current.over,overlayNodeRect:ee.rect,scrollableAncestors:Se,scrollableAncestorRects:ve,windowRect:Te}),ie=Y?ad(Y,R):null,ue=B7e(Se),ye=rB(ue),Ee=rB(ue,[U]),Me=ad(ae,ye),Ie=le?l7e(le,ae):null,Ce=D&&Ie?f({active:D,collisionRect:Ie,droppableRects:z,droppableContainers:j,pointerCoordinates:ie}):null,me=r7e(Ce,"id"),[we,_e]=l.useState(null),Ne=fe?ae:ad(ae,Ee),he=i7e(Ne,(o=we==null?void 0:we.rect)!=null?o:null,U),ke=l.useCallback((be,Oe)=>{let{sensor:Fe,options:Ke}=Oe;if(A.current==null)return;const He=T.get(A.current);if(!He)return;const ze=be.nativeEvent,Ze=new Fe({active:A.current,activeNode:He,event:ze,options:Ke,context:X,onStart(Je){const mt=A.current;if(mt==null)return;const ft=T.get(mt);if(!ft)return;const{onDragStart:qe}=L.current,We={active:{id:mt,data:ft.data,rect:P}};Lr.unstable_batchedUpdates(()=>{qe==null||qe(We),w(Ws.Initializing),S({type:Dr.DragStart,initialCoordinates:Je,active:mt}),v({type:"onDragStart",event:We})})},onMove(Je){S({type:Dr.DragMove,coordinates:Je})},onEnd:je(Dr.DragEnd),onCancel:je(Dr.DragCancel)});Lr.unstable_batchedUpdates(()=>{N(Ze),M(be.nativeEvent)});function je(Je){return async function(){const{active:ft,collisions:qe,over:We,scrollAdjustedTranslate:Qe}=X.current;let ct=null;if(ft&&Qe){const{cancelDrop:Rt}=L.current;ct={activatorEvent:ze,active:ft,collisions:qe,delta:Qe,over:We},Je===Dr.DragEnd&&typeof Rt=="function"&&await Promise.resolve(Rt(ct))&&(Je=Dr.DragCancel)}A.current=null,Lr.unstable_batchedUpdates(()=>{S({type:Je}),w(Ws.Uninitialized),_e(null),N(null),M(null);const Rt=Je===Dr.DragEnd?"onDragEnd":"onDragCancel";if(ct){const $t=L.current[Rt];$t==null||$t(ct),v({type:Rt,event:ct})}})}}},[T]),xe=l.useCallback((be,Oe)=>(Fe,Ke)=>{const He=Fe.nativeEvent,ze=T.get(Ke);if(A.current!==null||!ze||He.dndKit||He.defaultPrevented)return;const Ze={active:ze};be(Fe,Oe.options,Ze)===!0&&(He.dndKit={capturedBy:Oe.sensor},A.current=Ke,ke(Fe,Oe))},[T,ke]),ge=A7e(d,xe);z7e(d),vi(()=>{U&&C===Ws.Initializing&&w(Ws.Initialized)},[U,C]),l.useEffect(()=>{const{onDragMove:be}=L.current,{active:Oe,activatorEvent:Fe,collisions:Ke,over:He}=X.current;if(!Oe||!Fe)return;const ze={active:Oe,activatorEvent:Fe,collisions:Ke,delta:{x:Me.x,y:Me.y},over:He};Lr.unstable_batchedUpdates(()=>{be==null||be(ze),v({type:"onDragMove",event:ze})})},[Me.x,Me.y]),l.useEffect(()=>{const{active:be,activatorEvent:Oe,collisions:Fe,droppableContainers:Ke,scrollAdjustedTranslate:He}=X.current;if(!be||A.current==null||!Oe||!He)return;const{onDragOver:ze}=L.current,Ze=Ke.get(me),je=Ze&&Ze.rect.current?{id:Ze.id,rect:Ze.rect.current,data:Ze.data,disabled:Ze.disabled}:null,Je={active:be,activatorEvent:Oe,collisions:Fe,delta:{x:He.x,y:He.y},over:je};Lr.unstable_batchedUpdates(()=>{_e(je),ze==null||ze(Je),v({type:"onDragOver",event:Je})})},[me]),vi(()=>{X.current={activatorEvent:k,active:D,activeNode:te,collisionRect:Ie,collisions:Ce,droppableRects:z,draggableNodes:T,draggingNode:oe,draggingNodeRect:le,droppableContainers:_,over:we,scrollableAncestors:Se,scrollAdjustedTranslate:Me},P.current={initial:le,translated:Ie}},[D,te,Ce,Ie,T,oe,le,z,_,we,Se,Me]),$7e({...J,delta:R,draggingRect:Ie,pointerCoordinates:ie,scrollableAncestors:Se,scrollableAncestorRects:ve});const Pe=l.useMemo(()=>({active:D,activeNode:te,activeNodeRect:U,activatorEvent:k,collisions:Ce,containerNodeRect:q,dragOverlay:ee,draggableNodes:T,droppableContainers:_,droppableRects:z,over:we,measureDroppableContainers:H,scrollableAncestors:Se,scrollableAncestorRects:ve,measuringConfiguration:B,measuringScheduled:V,windowRect:Te}),[D,te,U,k,Ce,q,ee,T,_,z,we,H,Se,ve,B,V,Te]),Ve=l.useMemo(()=>({activatorEvent:k,activators:ge,active:D,activeNodeRect:U,ariaDescribedById:{draggable:F},dispatch:S,draggableNodes:T,over:we,measureDroppableContainers:H}),[k,ge,D,U,S,F,T,we,H]);return se.createElement(hX.Provider,{value:x},se.createElement(Vy.Provider,{value:Ve},se.createElement($X.Provider,{value:Pe},se.createElement(OX.Provider,{value:he},u)),se.createElement(Q7e,{disabled:(s==null?void 0:s.restoreFocus)===!1})),se.createElement(t7e,{...s,hiddenTextDescribedById:F}));function Ae(){const be=(O==null?void 0:O.autoScrollEnabled)===!1,Oe=typeof c=="object"?c.enabled===!1:c===!1,Fe=E&&!be&&!Oe;return typeof c=="object"?{...c,enabled:Fe}:{enabled:Fe}}}),nze=l.createContext(null),aB="button",rze="Droppable";function aze(e){let{id:t,data:n,disabled:r=!1,attributes:a}=e;const o=Tm(rze),{activators:i,activatorEvent:s,active:c,activeNodeRect:u,ariaDescribedById:d,draggableNodes:f,over:p}=l.useContext(Vy),{role:g=aB,roleDescription:h="draggable",tabIndex:b=0}=a??{},y=(c==null?void 0:c.id)===t,S=l.useContext(y?OX:nze),[v,x]=Mb(),[C,w]=Mb(),E=H7e(i,t),I=Tg(n);vi(()=>(f.set(t,{id:t,key:o,node:v,activatorNode:C,data:I}),()=>{const R=f.get(t);R&&R.key===o&&f.delete(t)}),[f,t]);const T=l.useMemo(()=>({role:g,tabIndex:b,"aria-disabled":r,"aria-pressed":y&&g===aB?!0:void 0,"aria-roledescription":h,"aria-describedby":d.draggable}),[r,g,b,y,h,d.draggable]);return{active:c,activatorEvent:s,activeNodeRect:u,attributes:T,isDragging:y,listeners:r?void 0:E,node:v,over:p,setNodeRef:x,setActivatorNodeRef:w,transform:S}}function oze(){return l.useContext($X)}const ize="Droppable",sze={timeout:25};function lze(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:a}=e;const o=Tm(ize),{active:i,dispatch:s,over:c,measureDroppableContainers:u}=l.useContext(Vy),d=l.useRef({disabled:n}),f=l.useRef(!1),p=l.useRef(null),g=l.useRef(null),{disabled:h,updateMeasurementsFor:b,timeout:y}={...sze,...a},S=Tg(b??r),v=l.useCallback(()=>{if(!f.current){f.current=!0;return}g.current!=null&&clearTimeout(g.current),g.current=setTimeout(()=>{u(Array.isArray(S.current)?S.current:[S.current]),g.current=null},y)},[y]),x=Uy({callback:v,disabled:h||!i}),C=l.useCallback((T,R)=>{x&&(R&&(x.unobserve(R),f.current=!1),T&&x.observe(T))},[x]),[w,E]=Mb(C),I=Tg(t);return l.useEffect(()=>{!x||!w.current||(x.disconnect(),f.current=!1,x.observe(w.current))},[w,x]),vi(()=>(s({type:Dr.RegisterDroppable,element:{id:r,key:o,disabled:n,node:w,rect:p,data:I}}),()=>s({type:Dr.UnregisterDroppable,key:o,id:r})),[r]),l.useEffect(()=>{n!==d.current.disabled&&(s({type:Dr.SetDroppableDisabled,id:r,key:o,disabled:n}),d.current.disabled=n)},[r,o,n,s]),{active:i,rect:p,isOver:(c==null?void 0:c.id)===r,node:w,over:c,setNodeRef:E}}function Wy(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function cze(e,t){return e.reduce((n,r,a)=>{const o=t.get(r);return o&&(n[a]=o),n},Array(e.length))}function Ph(e){return e!==null&&e>=0}function uze(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n{let{rects:t,activeIndex:n,overIndex:r,index:a}=e;const o=Wy(t,r,n),i=t[a],s=o[a];return!s||!i?null:{x:s.left-i.left,y:s.top-i.top,scaleX:s.width/i.width,scaleY:s.height/i.height}},Dh={scaleX:1,scaleY:1},AX=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:a,rects:o,overIndex:i}=e;const s=(t=o[n])!=null?t:r;if(!s)return null;if(a===n){const u=o[i];return u?{x:0,y:nn&&a<=i?{x:0,y:-s.height-c,...Dh}:a=i?{x:0,y:s.height+c,...Dh}:{x:0,y:0,...Dh}};function fze(e,t,n){const r=e[t],a=e[t-1],o=e[t+1];return r?nr.map(E=>typeof E=="object"&&"id"in E?E.id:E),[r]),h=i!=null,b=i?g.indexOf(i.id):-1,y=u?g.indexOf(u.id):-1,S=l.useRef(g),v=!uze(g,S.current),x=y!==-1&&b===-1||v,C=dze(o);vi(()=>{v&&h&&d(g)},[v,g,h,d]),l.useEffect(()=>{S.current=g},[g]);const w=l.useMemo(()=>({activeIndex:b,containerId:f,disabled:C,disableTransforms:x,items:g,overIndex:y,useDragOverlay:p,sortedRects:cze(g,c),strategy:a}),[b,f,C.draggable,C.droppable,x,g,y,c,p,a]);return se.createElement(PX.Provider,{value:w},t)}const pze=e=>{let{id:t,items:n,activeIndex:r,overIndex:a}=e;return Wy(n,r,a).indexOf(t)},gze=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:a,items:o,newIndex:i,previousItems:s,previousContainerId:c,transition:u}=e;return!u||!r||s!==o&&a===i?!1:n?!0:i!==a&&t===c},mze={duration:200,easing:"ease"},LX="transform",hze=Md.Transition.toString({property:LX,duration:0,easing:"linear"}),vze={roleDescription:"sortable"};function bze(e){let{disabled:t,index:n,node:r,rect:a}=e;const[o,i]=l.useState(null),s=l.useRef(n);return vi(()=>{if(!t&&n!==s.current&&r.current){const c=a.current;if(c){const u=df(r.current,{ignoreTransform:!0}),d={x:c.left-u.left,y:c.top-u.top,scaleX:c.width/u.width,scaleY:c.height/u.height};(d.x||d.y)&&i(d)}}n!==s.current&&(s.current=n)},[t,n,r,a]),l.useEffect(()=>{o&&i(null)},[o]),o}function FX(e){let{animateLayoutChanges:t=gze,attributes:n,disabled:r,data:a,getNewIndex:o=pze,id:i,strategy:s,resizeObserverConfig:c,transition:u=mze}=e;const{items:d,containerId:f,activeIndex:p,disabled:g,disableTransforms:h,sortedRects:b,overIndex:y,useDragOverlay:S,strategy:v}=l.useContext(PX),x=yze(r,g),C=d.indexOf(i),w=l.useMemo(()=>({sortable:{containerId:f,index:C,items:d},...a}),[f,a,C,d]),E=l.useMemo(()=>d.slice(d.indexOf(i)),[d,i]),{rect:I,node:T,isOver:R,setNodeRef:_}=lze({id:i,data:w,disabled:x.droppable,resizeObserverConfig:{updateMeasurementsFor:E,...c}}),{active:$,activatorEvent:P,activeNodeRect:D,attributes:A,setNodeRef:O,listeners:N,isDragging:k,over:M,setActivatorNodeRef:L,transform:F}=aze({id:i,data:w,attributes:{...vze,...n},disabled:x.draggable}),j=HBe(_,O),B=!!$,z=B&&!h&&Ph(p)&&Ph(y),H=!S&&k,V=H&&z?F:null,Y=z?V??(s??v)({rects:b,activeNodeRect:D,activeIndex:p,overIndex:y,index:C}):null,J=Ph(p)&&Ph(y)?o({id:i,items:d,activeIndex:p,overIndex:y}):C,G=$==null?void 0:$.id,U=l.useRef({activeId:G,items:d,newIndex:J,containerId:f}),q=d!==U.current.items,X=t({active:$,containerId:f,isDragging:k,isSorting:B,id:i,index:C,items:d,newIndex:U.current.newIndex,previousItems:U.current.items,previousContainerId:U.current.containerId,transition:u,wasDragging:U.current.activeId!=null}),Q=bze({disabled:!X,index:C,node:T,rect:I});return l.useEffect(()=>{B&&U.current.newIndex!==J&&(U.current.newIndex=J),f!==U.current.containerId&&(U.current.containerId=f),d!==U.current.items&&(U.current.items=d)},[B,J,f,d]),l.useEffect(()=>{if(G===U.current.activeId)return;if(G&&!U.current.activeId){U.current.activeId=G;return}const oe=setTimeout(()=>{U.current.activeId=G},50);return()=>clearTimeout(oe)},[G]),{active:$,activeIndex:p,attributes:A,data:w,rect:I,index:C,newIndex:J,items:d,isOver:R,isSorting:B,isDragging:k,listeners:N,node:T,overIndex:y,over:M,setNodeRef:j,setActivatorNodeRef:L,setDroppableNodeRef:_,setDraggableNodeRef:O,transform:Q??Y,transition:ee()};function ee(){if(Q||q&&U.current.newIndex===C)return hze;if(!(H&&!bk(P)||!u)&&(B||X))return Md.Transition.toString({...u,property:LX})}}function yze(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e==null?void 0:e.draggable)!=null?n:t.draggable,droppable:(r=e==null?void 0:e.droppable)!=null?r:t.droppable}}kn.Down,kn.Right,kn.Up,kn.Left;const{useToken:Sze}=Ea,xze=({originNode:e,fileObjectList:t,file:n,onRemove:r,disabled:a})=>{const{token:o}=Sze(),{attributes:i,listeners:s,setNodeRef:c,transform:u,transition:d,isDragging:f}=FX({id:n.uid}),{t:p}=Nt(),g={transform:Md.Transform.toString(u),transition:d,cursor:"move"};return m.jsx("div",{ref:c,style:g,className:f?"is-dragging":"",...i,...s,children:m.jsxs("div",{style:{display:"flex",gap:8,justifyContent:"space-between",alignItems:"center",margin:"8px 0",padding:8,borderRadius:8,border:`1px solid ${o.colorBorder}`},children:[m.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[m.jsxs("span",{style:{fontSize:30,width:48,height:48,textAlign:"center",color:`${o.colorPrimaryText}`},children:[t.indexOf(n)+1,"."]}),m.jsxs("div",{children:[m.jsx("div",{children:n.name}),m.jsxs("div",{style:{fontSize:"smaller",color:`${o.colorTextSecondary}`},children:["in ",n.path,"/"]})]})]}),m.jsx(ut,{title:p("tonies.encoder.removeFile"),onClick:()=>r(n),disabled:a,icon:m.jsx(Ed,{})})]})})},jX=/[<>:"/\\|?*]/,Op=jX.source.slice(1,-1).split("").join(" ");function Gu(e){return!jX.test(e)}const Ei=new xn(pn()),{useToken:wze}=Ea,oB=99,hu=uk,Zo={id:"1",pId:"-1",value:"1",title:"/",fullPath:"/"},wk=({special:e,filetypeFilter:t=[],isTapList:n=!1,overlay:r="",trackUrl:a=!0,showDirOnly:o=!1,showColumns:i=void 0})=>{const{t:s}=Nt(),{playAudio:c}=gy(),{token:u}=wze(),d=xN(),f=l.useRef(null),p=l.useRef(null),g=l.useRef(null),h=l.useRef(null),b=l.useRef(null),[y,S]=Xe.useMessage(),v=Ki(),C=new URLSearchParams(v.search).get("path")||"",[w,E]=l.useState(C),[I,T]=l.useState([]),[R,_]=l.useState(!1),[$,P]=l.useState(""),[D,A]=l.useState([]),[O,N]=l.useState(Zo.id),[k,M]=l.useState([Zo]),[L,F]=l.useState([]),[j,B]=l.useState(""),[z,H]=l.useState(!1),[V,te]=l.useState(!1),[Y,J]=l.useState(),[G,U]=l.useState(""),[q,X]=l.useState(!1),[Q,ee]=l.useState(!1),[oe,le]=l.useState(0);l.useState(!1),l.useState(0);const[fe,ce]=l.useState(),[Te,Se]=l.useState(!1),[ve,ae]=l.useState(!0),[ie,ue]=l.useState(!1),[ye,Ee]=l.useState(!1),[Me,Ie]=l.useState(!0),[Ce,me]=l.useState(!1),[we,_e]=l.useState(1),[Ne,he]=l.useState(C),[ke,xe]=l.useState(!1),[ge,Pe]=l.useState(!1),[Ve,Ae]=l.useState(null),[be,Oe]=l.useState(""),[Fe,Ke]=l.useState(""),[He,ze]=l.useState(!1),[Ze,je]=l.useState(!1),[Je,mt]=l.useState(0),[ft,qe]=l.useState(!1),[We,Qe]=l.useState([]),[ct,Rt]=l.useState(!1),[$t,vt]=l.useState(!1),[lt,ot]=l.useState(0),[et,bt]=l.useState([]),[rt,St]=l.useState(!1),[Et,tt]=l.useState(!1),[at,Ye]=l.useState(0),[Ge,yt]=l.useState([]);l.useEffect(()=>{(async()=>{const Re=Vt(Zo.id);Ei.apiGetTeddyCloudApiRaw(`/api/fileIndexV2?path=${Re}&special=library`).then(Be=>Be.json()).then(Be=>{var it=Be.files;it=it.filter(Ot=>Ot.isDir&&Ot.name!=="..").sort((Ot,Qt)=>Ot.name===Qt.name?0:Ot.name.toLowerCase()>Qt.name.toLowerCase()?1:-1).map(Ot=>({id:Zo.id+"."+it.indexOf(Ot),pId:Zo.id,value:Zo.id+"."+it.indexOf(Ot),title:Ot.name,fullPath:`${Re}/${Ot.name}/`})),M(k.concat(it))})})()},[]),l.useEffect(()=>{const Re=new URLSearchParams(v.search).get("path")||"";E(Re)},[]),l.useEffect(()=>{if(r){const $e=new URLSearchParams(v.search);$e.set("path",""),E("");const Re=`${window.location.pathname}?${$e.toString()}`;window.history.replaceState(null,"",Re),_(Be=>!Be)}},[r]),l.useEffect(()=>{Ei.apiGetTeddyCloudApiRaw(`/api/fileIndexV2?path=${w}&special=${e}`+(r?`&overlay=${r}`:"")).then($e=>$e.json()).then($e=>{var Re=$e.files;o&&(Re=Re.filter(Be=>Be.isDir)),t.length>0&&(Re=Re.filter(Be=>Be.isDir||t.some(it=>Be.name.endsWith(it)))),T(Re)})},[w,e,o,R]),l.useEffect(()=>{Ce&&setTimeout(()=>{p.current&&p.current.focus()},0)},[Ce]),l.useEffect(()=>{f.current!==null&&b.current&&b.current.setSelectionRange(f.current,f.current)},[j]),l.useEffect(()=>{he(Vt(O))},[O]),l.useEffect(()=>{he(w)},[w]);function Tt(){return"10000000-1e3-4e3-8e3-1e11".replace(/[018]/g,$e=>(parseInt($e)^crypto.getRandomValues(new Uint8Array(1))[0]&15>>parseInt($e)/4).toString(16))}const Pt=$e=>{a&&d(`?path=${$e}`),w===$e&&_(Re=>!Re),H(!1),E($e)},en=($e,Re)=>{const Be=$e.split("/").filter(Ot=>Ot),it=[{title:m.jsx("span",{style:{cursor:"pointer"},onClick:()=>Re(""),children:s("fileBrowser.root")}),key:"/"}];return Be.forEach((Ot,Qt)=>{const wn=`/${Be.slice(0,Qt+1).join("/")}`;it.push({title:m.jsx("span",{style:{cursor:"pointer"},onClick:()=>Re(wn),children:Ot}),key:wn})}),m.jsx(Xd,{items:it})},rn=({id:$e})=>new Promise((Re,Be)=>{const it=Vt($e);Ei.apiGetTeddyCloudApiRaw(`/api/fileIndexV2?path=${it}&special=library`).then(Ot=>Ot.json()).then(Ot=>{let Qt=Ot.files;Qt=Qt.filter(wn=>wn.isDir&&wn.name!=="..").sort((wn,Sr)=>wn.name===Sr.name?0:wn.name.toLowerCase()>Sr.name.toLowerCase()?1:-1).map(wn=>({id:$e+"."+Qt.indexOf(wn),pId:$e,value:$e+"."+Qt.indexOf(wn),title:wn.name,fullPath:`${it}/${wn.name}/`})),M(k.concat(Qt)),Re(!0)}).then(()=>{Be()})}),Vt=$e=>{const Re=k.filter(Be=>Be.value===$e)[0];return Re.pId==="-1"?"":Vt(k.filter(Be=>Be.id===Re.pId)[0].id)+"/"+Re.title},tn=($e,Re)=>{for(const Be of Re)if(Be.fullPath===$e)return Be.id;return null},It=($e,Re)=>{let Be=[];for(const it of Re)it.pId===$e&&Be.push(it);return Be},_t=$e=>L.includes($e),kt=m.jsx(Al,{className:"move-file",treeLine:!0,treeDataSimpleMode:!0,value:O,dropdownStyle:{maxHeight:400,overflow:"auto"},onChange:N,loadData:rn,treeData:k,treeNodeLabelProp:"fullPath",placeholder:s("fileBrowser.moveFile.destinationPlaceholder"),treeExpandedKeys:L,onTreeExpand:$e=>F($e),disabled:rt||ct}),Tn=$e=>{var Re;!$e.isDir&&((Re=$e.tonieInfo)!=null&&Re.tracks)&&(J($e),te(!0))},Qn=$e=>{Jn((e==="library"?"/library":"/content")+$e),H(!1),P($e),X(!0)},cr=()=>{X(!1)},Jn=async $e=>{try{const Be=await(await Ei.apiGetTeddyCloudApiRaw($e)).json();U(Be)}catch(Re){console.error("Error fetching JSON data:",Re)}},Hr=m.jsx(ut,{type:"primary",onClick:()=>X(!1),children:s("tonies.informationModal.ok")}),Mr=m.jsx(Sn,{className:"json-viewer",footer:Hr,width:800,title:"File: "+$,open:q,onCancel:cr,children:G?m.jsx(ba,{language:"json",code:JSON.stringify(G,null,2)}):"Loading..."}),er=($e,Re)=>{const Be=Re,{trackSeconds:it,...Ot}=Be;H(!1),ce(Ot),P($e),Se(!0)},Kt=()=>{Se(!1)},Ft=m.jsx(Sn,{className:"taf-header-viewer",footer:m.jsx(ut,{type:"primary",onClick:()=>Se(!1),children:s("tonies.informationModal.ok")}),title:s("tonies.tafHeaderOf")+$,open:Te,onCancel:Kt,width:700,children:fe?m.jsx(ba,{language:"json",code:JSON.stringify(fe,null,2)}):"Loading..."}),Gt=$e=>{$e.includes(".tap")&&(Jn((e==="library"?"/library":"/content")+$e),H(!1),P($e),le(Be=>Be+1),ee(!0))},jt=$e=>{console.log("Received values of form: ",$e),ee(!1)},Bt=($e,Re)=>{},wt=($e,Re,Be)=>{H(!1),Ae($e),Oe(Re),Ke(Be),xe(!0)},Ct=()=>{xe(!1),Pe(!1)},cn=()=>{dr(be,Fe),_($e=>!$e),xe(!1)},Rn=()=>{Pe(!0)},ur=async()=>{if(D.length>0){for(const $e of D){const Re=I.find(Be=>Be.name===$e);if(Re){const Be=w+"/"+Re.name,it="?special="+e+(r?`&overlay=${r}`:"");await dr(Be,it)}}_($e=>!$e),Pe(!1),A([])}else Xe.warning("No rows selected for deletion.")},dr=async($e,Re)=>{const Be=Xe.loading(s("fileBrowser.messages.deleting"),0);try{const it=`/api/fileDelete${Re}`,Qt=await(await Ei.apiPostTeddyCloudRaw(it,$e)).text();if(Be(),Qt==="OK"){Xe.success(s("fileBrowser.messages.deleteSuccessful",{file:$e}));const wn=tn($e+"/",k);wn&&M(Sr=>Sr.filter(Ur=>Ur.id!==wn)),Ne===$e+"/"&&he(w)}else Xe.error(`${s("fileBrowser.messages.deleteFailed",{file:$e})}: ${Qt}`)}catch(it){Be(),Xe.error(`${s("fileBrowser.messages.deleteFailed",{file:$e})}: ${it}`)}},yr=()=>{ae(!0),ue(!1),_e($e=>$e+1),H(!1),me(!0)},Ht=()=>{H(!1),me(!1)},Lt=$e=>{const Re=$e.target.value,Be=!Gu(Re.toString());ue(Be),ae(Re==="")},pt=()=>{var Re,Be;const $e=((Be=(Re=p.current)==null?void 0:Re.input)==null?void 0:Be.value)||"";try{Ei.apiPostTeddyCloudRaw("/api/dirCreate?special=library",Ne+"/"+$e).then(it=>it.text()).then(it=>{if(it!=="OK")throw new Error(it);const Ot=tn(Ne+"/",k)||Zo.id,Qt=`${Ot}.${k.length}`,wn=_t(Ot),Sr=It(Ot,k);if(wn||Sr.length>0){const Ur={id:Qt,pId:Ot,value:Qt,title:$e,fullPath:Ne+"/"+$e+"/"};M([...k,Ur].sort((Pk,Dk)=>Pk.title===Dk.title?0:Pk.title.toLowerCase()>Dk.title.toLowerCase()?1:-1)),(He||$t)&&N(Qt)}Xe.success(s("fileBrowser.createDirectory.directoryCreated")),me(!1),_(Ur=>!Ur),he(w)}).catch(it=>{Xe.error(it.message)})}catch{Xe.error("Error while creating directory")}},Dt=ve||ie,yn=m.jsxs(Sn,{title:s("fileBrowser.createDirectory.modalTitle"),open:Ce,onCancel:Ht,onOk:pt,okText:s("fileBrowser.createDirectory.create"),cancelText:s("fileBrowser.createDirectory.cancel"),zIndex:1050,okButtonProps:{disabled:Dt},children:[m.jsxs(bn,{style:{marginBottom:8},children:[s("fileBrowser.createDirectory.parentPath")+" "+Ne+"/"," "]}),m.jsxs(qt.Item,{validateStatus:ie?"error":"",help:ie?s("inputValidator.invalidCharactersDetected",{invalidChar:Op}):"",required:!0,children:[" ",m.jsx(Jt,{ref:p,type:"text",placeholder:s("fileBrowser.createDirectory.placeholder"),status:ie?"error":"",onChange:Lt})]})]},"createDirModal-"+we),fr=async($e,Re,Be)=>{const it="source="+encodeURIComponent($e)+"&target="+encodeURIComponent(Re),Ot=Xe.loading(s(Be?"fileBrowser.messages.moving":"fileBrowser.messages.renaming"),0);try{const Qt=`/api/fileMove${"?special="+e+(r?`&overlay=${r}`:"")}`,Sr=await(await Ei.apiPostTeddyCloudRaw(Qt,it)).text();if(Ot(),Sr==="OK")Xe.success(Be?s("fileBrowser.messages.movingSuccessful",{file:$e}):s("fileBrowser.messages.renamingSuccessful",{file:$e}));else throw Xe.error(`${Be?s("fileBrowser.messages.movingFailed",{file:$e}):s("fileBrowser.messages.renamingFailed",{file:$e})}: ${Sr}`),Sr}catch(Qt){throw Ot(),Xe.error(`${Be?s("fileBrowser.messages.movingFailed",{file:$e}):s("fileBrowser.messages.renamingFailed",{file:$e})}: ${Qt}`),Qt}},mn=$e=>{N(Zo.id),P($e),ze(!0)},ua=()=>{ze(!1),he(w)},Ia=async($e,Re)=>{try{await fr($e+"/"+$,Re+"/"+$,!0),_(Be=>!Be),ze(!1),N(Zo.id)}catch{}},ra=async($e,Re)=>{if(D.length>0){for(const Be of D){const it=I.find(Ot=>Ot.name===Be);it&&!it.isDir&&await fr($e+"/"+it.name,Re+"/"+it.name,!0)}_(Be=>!Be),ze(!1),A([]),N(Zo.id)}else Xe.warning("No rows selected for moving.")},Fa=!O||Vt(O)===w,wi=m.jsxs(Sn,{title:s($?"fileBrowser.moveFile.modalTitle":"fileBrowser.moveFile.modalTitleMultiple"),open:He,onCancel:ua,onOk:()=>$?Ia(w,Vt(O)):ra(w,Vt(O)),okText:s("fileBrowser.moveFile.move"),cancelText:s("fileBrowser.moveFile.cancel"),okButtonProps:{disabled:Fa},children:[m.jsx(An,{message:s("fileBrowser.attention"),description:s("fileBrowser.moveFile.attention"),type:"warning",showIcon:!0,style:{marginBottom:16}}),m.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:16,justifyContent:"space-between"},children:[m.jsx(Jt,{type:"text",style:{borderTopRightRadius:$?0:"unset",borderBottomRightRadius:$?0:"unset"},disabled:!0,value:w+"/"+($||""),placeholder:w+"/"+($||"")}),m.jsx("div",{children:s("fileBrowser.moveFile.moveTo")}),m.jsxs("div",{style:{display:"flex"},children:[kt,m.jsx(Zt,{title:s("fileBrowser.createDirectory.createDirectory"),children:m.jsx(ut,{icon:m.jsx(LR,{}),onClick:()=>{he(Vt(O)),yr()},style:{borderTopLeftRadius:0,borderBottomLeftRadius:0}})})]})]})]}),Xc=$e=>{P($e),ae(!0),Ee(!Gu($e)),mt(Re=>Re+1),je(!0)},At=()=>{je(!1)},Yt=async($e,Re)=>{try{await fr($e+"/"+$,$e+"/"+Re,!1),_(Be=>!Be),je(!1)}catch{}},Vn=$e=>{const Re=$e.target.value,Be=!Gu(Re.toString()),it=!Re.toString()||Be;Ee(Be),Ie(it),ae(!Re||Re===$)},pr=ve||ye||Me,Wn=m.jsxs(Sn,{title:s("fileBrowser.renameFile.modalTitle"),open:Ze,onCancel:At,onOk:()=>Yt(w,h.current&&h.current.input?h.current.input.value:$),okText:s("fileBrowser.renameFile.rename"),cancelText:s("fileBrowser.renameFile.cancel"),okButtonProps:{disabled:pr},children:[m.jsx(An,{message:s("fileBrowser.attention"),description:s("fileBrowser.renameFile.attention"),type:"warning",showIcon:!0,style:{marginBottom:16}}),m.jsx("div",{style:{display:"flex",flexDirection:"column",gap:16,justifyContent:"space-between"},children:m.jsx(qt.Item,{validateStatus:ye?"error":"",help:ye?s("inputValidator.invalidCharactersDetected",{invalidChar:Op}):"",required:!0,children:m.jsx(Jt,{ref:h,type:"text",defaultValue:$,onChange:Vn,placeholder:$,status:ye?"error":""})})})]},"renameModal-"+Je),As=()=>{Ye($e=>$e+1),tt(!0)},Zc=()=>{tt(!1)},hf=()=>{bt($e=>[...$e,...Ge]),tt(!1),yt([])},Qc=($e,Re,Be)=>{const it=[];if($e.length>0)for(const Ot of $e){const Qt=$e.find(wn=>wn.name===Ot.name&&hu.some(Sr=>wn.name.toLowerCase().endsWith(Sr)));Qt&&it.push({uid:Tt(),name:Qt.name,path:Re})}yt(it)},_Z=m.jsxs("div",{style:{display:"flex",gap:8,justifyContent:"flex-end",padding:"16px 0",margin:"-24px -24px -12px -24px",background:u.colorBgElevated},children:[m.jsx(ut,{onClick:Zc,children:s("tonies.selectFileModal.cancel")}),m.jsx(ut,{type:"primary",onClick:hf,children:s("tonies.selectFileModal.ok")})]}),$Z=m.jsx(Sn,{className:"sticky-footer",title:s("tonies.selectFileModal.selectFile"),open:Et,onOk:hf,onCancel:Zc,width:"auto",footer:_Z,children:m.jsx(dk,{special:"library",maxSelectedRows:oB-et.length-1,trackUrl:!1,filetypeFilter:hu,onFileSelectChange:Qc},at)}),OZ=()=>{ae(!0),Ee(!1),ot(Re=>Re+1),N(Zo.id);const $e=[];for(const Re of D){const Be=I.find(it=>it.name===Re&&hu.some(Ot=>it.name.toLowerCase().endsWith(Ot)));Be&&$e.push({uid:Tt(),name:Be.name,path:w})}bt($e),vt(!0)},NZ=()=>{vt(!1),he(w),bt([])},kZ=async()=>{var it,Ot;St(!0);const $e=(Ot=(it=g==null?void 0:g.current)==null?void 0:it.input)==null?void 0:Ot.value,Re=Xe.loading(s("fileBrowser.encodeFiles.encodingInProgress"),0),Be=et.map(Qt=>`source=${encodeURIComponent(Qt.path+"/"+Qt.name)}`).join("&")+`&target=${encodeURIComponent(Vt(O)+"/"+$e+".taf")}`;try{(await Ei.apiPostTeddyCloudRaw(`/api/fileEncode?special=${e}`,Be)).ok?(Re(),Xe.success(s("fileBrowser.encodeFiles.encodingSuccessful")),vt(!1),N("1"),A([]),_(!R)):(Re(),Xe.error(s("fileBrowser.encodeFiles.encodingFailed")))}catch{Re(),Xe.error(s("fileBrowser.encodeFiles.encodingFailed"))}St(!1)},AZ=vX(Hy,{activationConstraint:{distance:10}}),MZ=({active:$e,over:Re})=>{$e.id!==(Re==null?void 0:Re.id)&&bt(Be=>{const it=Be.findIndex(Qt=>Qt.uid===$e.id),Ot=Be.findIndex(Qt=>Qt.uid===(Re==null?void 0:Re.id));return Wy(Be,it,Ot)})},PZ=$e=>{const Re=et.indexOf($e),Be=et.slice();Be.splice(Re,1),bt(Be)},DZ=()=>{bt($e=>[...$e].sort((Re,Be)=>Re.name.localeCompare(Be.name)))},LZ=$e=>{const Re=$e.target.value,Be=!Gu(Re.toString()),it=et.length>0&&!Re.toString()||Be;Ee(Be),Ie(it),ae(Re==="")},FZ=m.jsxs(Sn,{title:s("fileBrowser.encodeFiles.modalTitle"),open:$t,onCancel:NZ,onOk:kZ,okText:s("fileBrowser.encodeFiles.encode"),cancelText:s("fileBrowser.encodeFiles.cancel"),zIndex:1e3,width:"auto",okButtonProps:{disabled:rt||Me||ve||et.length===0},children:[$Z,m.jsx(NX,{sensors:[AZ],onDragEnd:MZ,children:m.jsxs(DX,{items:et.map($e=>$e.uid),strategy:AX,disabled:rt,children:[m.jsx(ut,{disabled:rt,onClick:As,children:s("fileBrowser.encodeFiles.addFiles")}),et.map($e=>m.jsx(xze,{originNode:m.jsx("div",{children:$e.name}),onRemove:PZ,disabled:rt,fileObjectList:et,file:$e},$e.uid))]})}),m.jsx(Na,{direction:"vertical",style:{display:"flex"},children:et.length>0?m.jsxs(m.Fragment,{children:[m.jsx(Na,{direction:"horizontal",style:{width:"100%",display:"flex",alignItems:"flex-start"},children:m.jsx(ut,{type:"default",disabled:rt,onClick:DZ,children:s("tonies.encoder.sortAlphabetically")})}),m.jsx(Rr,{}),m.jsx("div",{style:{width:"100%"},className:"encoder",children:m.jsxs(Na,{direction:"vertical",style:{width:"100%"},children:[m.jsxs(Na.Compact,{direction:"horizontal",style:{width:"100%",display:"flex",alignItems:"flex-end",justifyContent:"flex-end"},children:[m.jsx(Jt,{type:"text",style:{maxWidth:180,borderTopRightRadius:0,borderBottomRightRadius:0},disabled:!0,value:s("tonies.encoder.saveAs")}),kt,m.jsx(Zt,{title:s("fileBrowser.createDirectory.createDirectory"),children:m.jsx(ut,{disabled:rt,icon:m.jsx(LR,{}),onClick:()=>{he(Vt(O)),yr()},style:{borderRadius:0}})}),m.jsx(Jt,{ref:g,addonAfter:".taf",required:!0,status:Me?"error":"",onChange:LZ,disabled:rt})]}),ye?m.jsx("div",{style:{textAlign:"end",color:u.colorErrorText},children:s("inputValidator.invalidCharactersDetected",{invalidChar:Op})}):""]})})]}):m.jsx(m.Fragment,{})})]},"encodeModal-"+lt),jZ=()=>{qe(!0)},Nk=()=>{Qe([]),qe(!1)},BZ={name:"file",multiple:!0,fileList:We,customRequest:async $e=>{const{onSuccess:Re,onError:Be,file:it}=$e;Re("Ok")},onChange($e){const{status:Re,fileList:Be}=$e;Re!=="uploading"&&(Qe(Be),console.log($e.file,$e.fileList))},onDrop($e){console.log("Dropped files",$e.dataTransfer.files)},onRemove:$e=>{Qe(Re=>Re.filter(Be=>Be.uid!==$e.uid))}},zZ=async $e=>{if(!$e.length)return;Rt(!0);let Re=!1;for(let Be=0;Be<$e.length;Be++){const it=$e[Be],Ot=Xe.loading(s("fileBrowser.upload.uploadInProgress",{file:it.name}),0),Qt=new FormData;Qt.append(it.name,it.originFileObj);try{(await Ei.apiPostTeddyCloudFormDataRaw(`/api/fileUpload?path=${encodeURIComponent(w)}&special=${e}`,Qt)).ok?(Ot(),Qe(Sr=>Sr.filter(Ur=>Ur.uid!==it.uid)),Xe.success(s("fileBrowser.upload.uploadSuccessfulForFile",{file:it.name}))):(Re=!0,Ot(),Qe(Sr=>Sr.map(Ur=>Ur.uid===it.uid?{...Ur,status:"Failed"}:Ur)),Xe.error(s("fileBrowser.upload.uploadFailedForFile",{file:it.name})))}catch{Re=!0,Ot(),Xe.error(s("fileBrowser.upload.uploadFailedForFile",{file:it.name})),Qe(Sr=>Sr.map(Ur=>Ur.uid===it.uid?{...Ur,status:"Failed"}:Ur))}}Re?(_(!R),Xe.error(s("fileBrowser.upload.uploadFailed"))):(_(!R),qe(!1),Xe.success(s("fileBrowser.upload.uploadSuccessful"))),Rt(!1)},HZ=m.jsxs("div",{style:{display:"flex",gap:8,justifyContent:"flex-end",padding:"16px 0",margin:"-24px -24px -12px -24px",background:u.colorBgElevated},children:[m.jsx(ut,{onClick:Nk,children:s("fileBrowser.upload.cancel")}),m.jsx(ut,{type:"primary",onClick:()=>zZ(We),loading:ct,disabled:We.length===0||ct,children:s(ct?"fileBrowser.upload.uploading":"fileBrowser.upload.upload")})]}),UZ=m.jsx(Sn,{className:"sticky-footer",title:s("fileBrowser.upload.modalTitle"),open:ft,onCancel:Nk,footer:HZ,children:m.jsx("div",{style:{width:"100%",marginBottom:8},children:m.jsxs(mm.Dragger,{...BZ,style:{width:"100%",marginBottom:8},children:[m.jsx("p",{className:"ant-upload-drag-icon",children:m.jsx(eN,{})}),m.jsx("p",{className:"ant-upload-text",children:s("fileBrowser.upload.uploadText")}),m.jsx("p",{className:"ant-upload-hint",children:s("fileBrowser.upload.uploadHint")})]})})}),kk=($e,Re,Be)=>{try{y.open({type:"loading",content:s("fileBrowser.messages.migrationOngoing"),duration:0});const it=`ruid=${$e}&libroot=${Re}`;Ei.apiPostTeddyCloudRaw("/api/migrateContent2Lib",it,Be).then(Ot=>Ot.text()).then(Ot=>{y.destroy(),Ot==="OK"?(y.open({type:"success",content:s("fileBrowser.messages.migrationSuccessful")}),_(Qt=>!Qt)):y.open({type:"error",content:s("fileBrowser.messages.migrationFailed")+": "+Ot})}).catch(Ot=>{y.destroy(),y.open({type:"error",content:s("fileBrowser.messages.migrationFailed")+": "+Ot})})}catch(it){y.destroy(),y.open({type:"error",content:s("fileBrowser.messages.migrationFailed")+": "+it})}},VZ=$e=>{B($e.target.value),f.current=$e.target.selectionStart,H(!0)},WZ=()=>{B(""),f.current=0},GZ=()=>{H(!0)},qZ=()=>{H(!1)},KZ=$e=>D.includes($e.key)?"highlight-row":"",YZ=$e=>{A($e)},XZ=$e=>{const Re=$e===".."?w.split("/").slice(0,-1).join("/"):`${w}/${$e}`;a&&d(`?path=${Re}`),H(!1),A([]),E(Re)},Ak=($e,Re)=>Re.reduce((Be,it)=>{if(Be&&Be[it]!==void 0)return Be[it]},$e),Mk=($e,Re,Be)=>{const it=Array.isArray(Be)?Ak($e,Be):$e[Be],Ot=Array.isArray(Be)?Ak(Re,Be):Re[Be];return it===void 0&&Ot===void 0?0:it===void 0?1:Ot===void 0?-1:typeof it=="string"&&typeof Ot=="string"?it.localeCompare(Ot):typeof it=="number"&&typeof Ot=="number"?it-Ot:(console.log("Unsupported types for sorting:",$e,Re),console.log("Unsupported types for sorting field:",Be,it,Ot),0)},ZZ=($e,Re)=>$e.isDir===Re.isDir?Mk($e,Re,"name"):$e.isDir?-1:1,QZ=$e=>$e>0&&$e<=oB;var Dl=[{title:D.length>0?m.jsxs("div",{style:{display:"flex",gap:8,minHeight:32},children:[I.filter($e=>D.includes($e.name)&&!$e.isDir).length>0?m.jsx(Zt,{title:s("fileBrowser.moveMultiple"),children:m.jsx(ut,{icon:m.jsx(PP,{}),onClick:()=>mn(""),disabled:D.length===0})},"moveMultiple"):"",m.jsx(Zt,{title:s("fileBrowser.deleteMultiple"),children:m.jsx(ut,{icon:m.jsx(Ed,{}),onClick:Rn,disabled:D.length===0})},"deleteMultiple"),QZ(I.filter($e=>D.includes($e.name)&&hu.some(Re=>$e.name.toLowerCase().endsWith(Re))).length)&&e==="library"?m.jsx(Zt,{title:s("fileBrowser.encodeFiles.encodeFiles")+hu.join(", "),children:m.jsx(ut,{icon:m.jsx(DR,{}),onClick:OZ,disabled:D.length===0})},"encodeFiles"):""]}):m.jsx("div",{style:{minHeight:32}}),dataIndex:["tonieInfo","picture"],key:"picture",sorter:void 0,width:10,render:($e,Re)=>{var Be,it;return Re&&((Be=Re.tonieInfo)!=null&&Be.picture)?m.jsx("img",{src:Re.tonieInfo.picture,alt:s("tonies.content.toniePicture"),onClick:()=>Tn(Re),style:{width:100,cursor:!Re.isDir&&((it=Re==null?void 0:Re.tonieInfo)!=null&&it.tracks)?"help":"default"}},`picture-${Re.name}`):m.jsx(m.Fragment,{})},showOnDirOnly:!1},{title:s("fileBrowser.name"),dataIndex:"name",key:"name",sorter:ZZ,defaultSortOrder:"ascend",render:($e,Re)=>{var Be,it,Ot,Qt,wn;return Re&&m.jsxs("div",{children:[m.jsxs("div",{className:"showSmallDevicesOnly",children:[m.jsxs("div",{children:[m.jsxs("div",{style:{wordBreak:Re.isDir?"normal":"break-word"},children:[Re.isDir?"["+Re.name+"]":Re.name," "]}),!Re.isDir&&Re.size?"("+Wu(Re.size)+")":""]}),m.jsx("div",{children:(Be=Re.tonieInfo)==null?void 0:Be.model}),m.jsx("div",{style:{wordBreak:Re.isDir?"normal":"break-word"},children:((it=Re.tonieInfo)!=null&&it.series?(Ot=Re.tonieInfo)==null?void 0:Ot.series:"")+((Qt=Re.tonieInfo)!=null&&Qt.episode?" - "+((wn=Re.tonieInfo)==null?void 0:wn.episode):"")}),m.jsx("div",{children:!Re.isDir&&new Date(Re.date*1e3).toLocaleString()})]}),m.jsxs("div",{className:"showMediumDevicesOnly",children:[m.jsxs("div",{children:[m.jsxs("div",{style:{wordBreak:Re.isDir?"normal":"break-word"},children:[Re.isDir?"["+Re.name+"]":Re.name," "]}),!Re.isDir&&Re.size?"("+Wu(Re.size)+")":""]}),m.jsx("div",{children:!Re.isDir&&new Date(Re.date*1e3).toLocaleString()})]}),m.jsx("div",{className:"showBigDevicesOnly",children:Re.isDir?"["+Re.name+"]":Re.name})]},`name-${Re.name}`)},filteredValue:[j],onFilter:($e,Re)=>{var it,Ot,Qt,wn;const Be=$e.toLowerCase();return Re.name===".."||Re.name.toLowerCase().includes(Be)||!Re.isDir&&"tafHeader"in Re&&Re.tafHeader.size&&Wu(Re.tafHeader.size).toString().includes(Be)||"tafHeader"in Re&&((it=Re.tafHeader.audioId)==null?void 0:it.toString().includes(Be))||"tonieInfo"in Re&&((Ot=Re.tonieInfo)==null?void 0:Ot.model.toLowerCase().includes(Be))||"tonieInfo"in Re&&((Qt=Re.tonieInfo)==null?void 0:Qt.series.toLowerCase().includes(Be))||"tonieInfo"in Re&&((wn=Re.tonieInfo)==null?void 0:wn.episode.toLowerCase().includes(Be))},showOnDirOnly:!0},{title:s("fileBrowser.size"),dataIndex:"size",key:"size",render:($e,Re)=>m.jsx("div",{children:Re.isDir?"":Wu($e)},`size-${Re.name}`),showOnDirOnly:!1,responsive:["xl"]},{title:s("fileBrowser.model"),dataIndex:["tonieInfo","model"],key:"model",showOnDirOnly:!1,responsive:["xl"],render:($e,Re)=>{var Be;return m.jsx("div",{children:(Be=Re.tonieInfo)==null?void 0:Be.model},`model-${Re.name}`)}},{title:m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"showMediumDevicesOnly",children:[s("fileBrowser.model"),"/",s("fileBrowser.series"),"/",s("fileBrowser.episode")]}),m.jsx("div",{className:"showBigDevicesOnly",children:s("fileBrowser.series")})]}),dataIndex:["tonieInfo","series"],key:"series",render:($e,Re)=>{var Be,it,Ot,Qt,wn,Sr,Ur;return m.jsxs("div",{children:[m.jsxs("div",{className:"showMediumDevicesOnly",children:[m.jsx("div",{children:(Be=Re.tonieInfo)==null?void 0:Be.model}),m.jsx("div",{style:{wordBreak:"break-word"},children:((it=Re.tonieInfo)!=null&&it.series?(Ot=Re.tonieInfo)==null?void 0:Ot.series:"")+((Qt=Re.tonieInfo)!=null&&Qt.episode?" - "+((wn=Re.tonieInfo)==null?void 0:wn.episode):"")})]}),m.jsx("div",{className:"showBigDevicesOnly",children:(Sr=Re.tonieInfo)!=null&&Sr.series?(Ur=Re.tonieInfo)==null?void 0:Ur.series:""})]},`series-${Re.name}`)},showOnDirOnly:!1,responsive:["md"]},{title:s("fileBrowser.episode"),dataIndex:["tonieInfo","episode"],key:"episode",showOnDirOnly:!1,responsive:["xl"],render:($e,Re)=>{var Be;return m.jsx("div",{children:(Be=Re.tonieInfo)==null?void 0:Be.episode},`episode-${Re.name}`)}},{title:s("fileBrowser.date"),dataIndex:"date",key:"date",render:($e,Re)=>m.jsx("div",{children:new Date($e*1e3).toLocaleString()},`date-${Re.name}`),showOnDirOnly:!0,responsive:["xl"]},{title:m.jsx("div",{className:"showMediumDevicesOnly showBigDevicesOnly",children:s("fileBrowser.actions")}),dataIndex:"controls",key:"controls",sorter:void 0,render:($e,Re)=>{let Be=[];return Re.tafHeader?(e!=="library"&&(Be.push(m.jsx(Zt,{title:s("fileBrowser.migrateContentToLib"),children:m.jsx(ixe,{onClick:()=>kk(w.replace("/","")+Re.name,!1,r),style:{margin:"0 8px 0 0"}})},`action-migrate-${Re.name}`)),Be.push(m.jsx(Zt,{title:s("fileBrowser.migrateContentToLibRoot"),children:m.jsx(YCe,{onClick:()=>kk(w.replace("/","")+Re.name,!0,r),style:{margin:"0 8px 0 0"}})},`action-migrate-root-${Re.name}`))),Be.push(m.jsx(Zt,{title:s("fileBrowser.playFile"),children:m.jsx(Di,{style:{margin:"0 8px 0 0"},onClick:()=>{var it;return c(encodeURI("/content"+w+"/"+Re.name)+"?ogg=true&special="+e+(r?`&overlay=${r}`:""),Re.tonieInfo,(it=Re.tafHeader)==null?void 0:it.trackSeconds)}})},`action-play-${Re.name}`))):hu.some(it=>Re.name.endsWith(it))&&Be.push(m.jsx(Zt,{title:s("fileBrowser.playFile"),children:m.jsx(Di,{style:{margin:"0 8px 0 0"},onClick:()=>c(encodeURI("/content"+w+"/"+Re.name)+"?special="+e+(r?`&overlay=${r}`:""),Re.tonieInfo)})},`action-play-${Re.name}`)),n&&Re.name.includes(".tap")&&(Be.push(m.jsx(Zt,{title:s("fileBrowser.tap.edit"),children:m.jsx(vg,{style:{margin:"0 8px 0 0"},onClick:()=>Gt(w+"/"+Re.name)})},`action-edit-${Re.name}`)),Be.push(m.jsx(Zt,{title:s("fileBrowser.tap.copy"),children:m.jsx(ZO,{style:{margin:"0 8px 0 0"}})},`action-copy-${Re.name}`))),Re.tafHeader&&Be.push(m.jsx(Zt,{title:s("fileBrowser.tafMeta.edit"),children:m.jsx(vg,{style:{margin:"0 8px 0 0"},onClick:()=>Bt()})},`action-edit-${Re.name}`)),!Re.isDir&&Re.name!==".."&&Be.push(m.jsx(Zt,{title:s("fileBrowser.rename"),children:m.jsx(lwe,{onClick:()=>Xc(Re.name),style:{margin:"0 8px 0 0"}})},`action-rename-${Re.name}`)),!Re.isDir&&Re.name!==".."&&Be.push(m.jsx(Zt,{title:s("fileBrowser.move"),children:m.jsx(PP,{onClick:()=>mn(Re.name),style:{margin:"0 8px 0 0"}})},`action-move-${Re.name}`)),Re.name!==".."&&Be.push(m.jsx(Zt,{title:s("fileBrowser.delete"),children:m.jsx(Ed,{onClick:()=>wt(Re.name,w+"/"+Re.name,"?special="+e+(r?`&overlay=${r}`:"")),style:{margin:"0 8px 0 0"}})},`action-delete-${Re.name}`)),Be},showOnDirOnly:!1}];return Dl.forEach($e=>{$e.hasOwnProperty("sorter")||($e.sorter=(Re,Be)=>Mk(Re,Be,$e.dataIndex))}),o&&(Dl=Dl.filter($e=>$e.showOnDirOnly)),i&&(Dl=Dl.filter($e=>typeof $e.key=="string"?i.includes($e.key):!1)),m.jsxs(m.Fragment,{children:[S,m.jsx(Ad,{title:s("fileBrowser.confirmDeleteModal"),open:ke,okText:s("fileBrowser.delete"),cancelText:s("fileBrowser.cancel"),content:s("fileBrowser.confirmDeleteDialog",{fileToDelete:Ve}),handleOk:cn,handleCancel:Ct}),m.jsx(Ad,{title:s("fileBrowser.confirmDeleteModal"),open:ge,okText:s("fileBrowser.delete"),cancelText:s("fileBrowser.cancel"),content:s("fileBrowser.confirmMultipleDeleteDialog"),handleOk:ur,handleCancel:Ct}),Mr,Ft,yn,UZ,wi,Wn,FZ,Y?m.jsx(ck,{open:V,tonieCardOrTAFRecord:Y,onClose:()=>te(!1),overlay:r}):"",m.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start"},children:[m.jsxs("div",{style:{display:"flex",flexDirection:"row",marginBottom:8},children:[m.jsx("div",{style:{lineHeight:1.5,marginRight:16},children:s("tonies.currentPath")}),en(w,Pt)]}),e==="library"?m.jsx("div",{style:{width:"100%",marginBottom:8},children:m.jsxs("div",{style:{display:"flex",flexWrap:"wrap",gap:8},children:[m.jsx(ut,{size:"small",onClick:yr,style:{marginBottom:8},children:s("fileBrowser.createDirectory.createDirectory")}),m.jsx(ut,{size:"small",onClick:jZ,style:{marginBottom:8},children:s("fileBrowser.upload.showUploadFilesDragNDrop")})]})}):""]}),m.jsx(Qa,{dataSource:I,columns:Dl,rowKey:$e=>$e.name,pagination:!1,onRow:$e=>({onDoubleClick:()=>{$e.isDir?XZ($e.name):$e.name.includes(".json")||$e.name.includes(".tap")?Qn(w+"/"+$e.name):$e.tafHeader&&er($e.name,$e.tafHeader)}}),rowClassName:KZ,rowSelection:{selectedRowKeys:D,onChange:YZ,getCheckboxProps:$e=>({disabled:$e.name===".."}),onSelectAll:($e,Re)=>{const Be=$e?Re.filter(it=>it.name!=="..").map(it=>it.name):[];A(Be)}},components:{header:{wrapper:$e=>m.jsx("thead",{...$e}),row:$e=>m.jsxs(m.Fragment,{children:[m.jsx("tr",{...$e}),m.jsx("tr",{children:m.jsx("th",{style:{padding:"10px 8px"},colSpan:Dl.length+1,children:m.jsx(Jt,{placeholder:s("fileBrowser.filter"),value:j,onChange:VZ,onFocus:GZ,onBlur:qZ,ref:b,style:{width:"100%"},autoFocus:z,addonAfter:m.jsx(Jr,{onClick:WZ,disabled:j.length===0,style:{color:j.length===0?u.colorTextDisabled:u.colorText,cursor:j.length===0?"default":"pointer"}})})})})]}),cell:$e=>m.jsx("th",{...$e,style:{position:"sticky",top:0,zIndex:20}})}}}),m.jsx(pX,{open:Q,initialValuesJson:G?JSON.stringify(G,null,2):void 0,onCreate:jt,onCancel:()=>{ee(!1)}},oe)]})},{Option:Cze}=Ar,Eze=()=>{const{t:e}=Nt(),{tonieBoxContentDirs:t,overlay:n,handleSelectChange:r}=gk();return m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(Wo,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(Wo,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")},{title:e("tonies.navigationTitle")},{title:e("tonies.content.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignContent:"center",flexDirection:"row",alignItems:"center"},children:[m.jsx("h1",{children:e("tonies.content.title")}),t.length>1?m.jsx(Ar,{id:"contentDirectorySelect",defaultValue:"",onChange:r,style:{maxWidth:"300px"},value:n,title:e("tonies.content.showToniesOfBoxes"),children:t.map(([a,o,i])=>m.jsx(Cze,{value:i,children:o.join(", ")},i))}):""]}),m.jsx(wk,{special:"",overlay:n})]})]})]})},Ize=()=>{const{t:e}=Nt();return m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(Wo,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(Wo,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")},{title:e("tonies.navigationTitle")},{title:e("tonies.library.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsx("h1",{children:e("tonies.library.title")}),m.jsx(wk,{special:"library"})]})]})]})},{Text:Tze}=bn,Rze=({originNode:e,fileList:t,file:n,onRemove:r,disabled:a})=>{const{attributes:o,listeners:i,setNodeRef:s,transform:c,transition:u,isDragging:d}=FX({id:n.uid}),{t:f}=Nt(),p={transform:Md.Transform.toString(c),transition:u,cursor:"move"};return m.jsx("div",{ref:s,style:p,className:d?"is-dragging":"",...o,...i,children:m.jsxs("div",{className:"ant-upload-list-item ant-upload-list-item-undefined",children:[m.jsx("div",{className:"ant-upload-list-item-thumbnail ant-upload-list-item-file",children:m.jsxs("span",{role:"img","aria-label":"file",className:"anticon anticon-file",children:[t.indexOf(n)+1,"."]})}),m.jsxs("span",{className:"ant-upload-list-item-name",title:n.name,children:[m.jsx("span",{className:"",children:n.name}),m.jsx("br",{}),m.jsx(Tze,{type:"secondary",children:Wu(n.size?n.size:-1)})]}),m.jsx("span",{className:"ant-upload-list-item-actions picture",children:m.jsx(ut,{title:f("tonies.encoder.removeFile"),onClick:()=>r(n),disabled:a,icon:m.jsx(Ed,{})})})]})})};function _ze(e,t,n,r,a,o){const i=new FileReader;i.onload=async s=>{try{if(s.target==null)return;const c=s.target.result,u=new AudioContext,d=48e3,f=await u.decodeAudioData(c),p=new OfflineAudioContext({numberOfChannels:f.numberOfChannels,length:Math.round(f.length*d/f.sampleRate),sampleRate:d}),g=p.createBufferSource();g.buffer=f,g.connect(p.destination),g.start();const h=await p.startRendering(),b=h.numberOfChannels,y=new Float32Array(h.getChannelData(0)),S=b>1?new Float32Array(h.getChannelData(1)):new Float32Array(h.getChannelData(0)),v=new Int16Array(y.length+S.length);for(let x=0,C=0;x{u(!0)},[]),ZBe(l.useMemo(()=>({onDragStart(f){let{active:p}=f;o(t.onDragStart({active:p}))},onDragMove(f){let{active:p,over:g}=f;t.onDragMove&&o(t.onDragMove({active:p,over:g}))},onDragOver(f){let{active:p,over:g}=f;o(t.onDragOver({active:p,over:g}))},onDragEnd(f){let{active:p,over:g}=f;o(t.onDragEnd({active:p,over:g}))},onDragCancel(f){let{active:p,over:g}=f;o(t.onDragCancel({active:p,over:g}))}}),[o,t])),!c)return null;const d=se.createElement(se.Fragment,null,se.createElement(KBe,{id:r,value:a.draggable}),se.createElement(YBe,{id:s,announcement:i}));return n?Lr.createPortal(d,n):d}var Dr;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Dr||(Dr={}));function Lb(){}function vX(e,t){return l.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}const yi=Object.freeze({x:0,y:0});function n7e(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function r7e(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function a7e(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),a=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),i=a-r,s=o-n;if(r{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const a=[];for(const o of r){const{id:i}=o,s=n.get(i);if(s){const c=a7e(s,t);c>0&&a.push({id:i,data:{droppableContainer:o,value:c}})}}return a.sort(n7e)};function i7e(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function bX(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:yi}function s7e(e){return function(n){for(var r=arguments.length,a=new Array(r>1?r-1:0),o=1;o({...i,top:i.top+e*s.y,bottom:i.bottom+e*s.y,left:i.left+e*s.x,right:i.right+e*s.x}),{...n})}}const l7e=s7e(1);function c7e(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function u7e(e,t,n){const r=c7e(t);if(!r)return e;const{scaleX:a,scaleY:o,x:i,y:s}=r,c=e.left-i-(1-a)*parseFloat(n),u=e.top-s-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),d=a?e.width/a:e.width,f=o?e.height/o:e.height;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c}}const d7e={ignoreTransform:!1};function ff(e,t){t===void 0&&(t=d7e);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:u,transformOrigin:d}=ro(e).getComputedStyle(e);u&&(n=u7e(n,u,d))}const{top:r,left:a,width:o,height:i,bottom:s,right:c}=n;return{top:r,left:a,width:o,height:i,bottom:s,right:c}}function X5(e){return ff(e,{ignoreTransform:!0})}function f7e(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function p7e(e,t){return t===void 0&&(t=ro(e).getComputedStyle(e)),t.position==="fixed"}function g7e(e,t){t===void 0&&(t=ro(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(a=>{const o=t[a];return typeof o=="string"?n.test(o):!1})}function yk(e,t){const n=[];function r(a){if(t!=null&&n.length>=t||!a)return n;if(hk(a)&&a.scrollingElement!=null&&!n.includes(a.scrollingElement))return n.push(a.scrollingElement),n;if(!Tm(a)||gX(a)||n.includes(a))return n;const o=ro(e).getComputedStyle(a);return a!==e&&g7e(a,o)&&n.push(a),p7e(a,o)?n:r(a.parentNode)}return e?r(e):n}function yX(e){const[t]=yk(e,1);return t??null}function Q2(e){return!Hy||!e?null:uf(e)?e:mk(e)?hk(e)||e===df(e).scrollingElement?window:Tm(e)?e:null:null}function SX(e){return uf(e)?e.scrollX:e.scrollLeft}function xX(e){return uf(e)?e.scrollY:e.scrollTop}function w_(e){return{x:SX(e),y:xX(e)}}var Xr;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Xr||(Xr={}));function wX(e){return!Hy||!e?!1:e===document.scrollingElement}function CX(e){const t={x:0,y:0},n=wX(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},a=e.scrollTop<=t.y,o=e.scrollLeft<=t.x,i=e.scrollTop>=r.y,s=e.scrollLeft>=r.x;return{isTop:a,isLeft:o,isBottom:i,isRight:s,maxScroll:r,minScroll:t}}const m7e={x:.2,y:.2};function h7e(e,t,n,r,a){let{top:o,left:i,right:s,bottom:c}=n;r===void 0&&(r=10),a===void 0&&(a=m7e);const{isTop:u,isBottom:d,isLeft:f,isRight:p}=CX(e),g={x:0,y:0},h={x:0,y:0},b={height:t.height*a.y,width:t.width*a.x};return!u&&o<=t.top+b.height?(g.y=Xr.Backward,h.y=r*Math.abs((t.top+b.height-o)/b.height)):!d&&c>=t.bottom-b.height&&(g.y=Xr.Forward,h.y=r*Math.abs((t.bottom-b.height-c)/b.height)),!p&&s>=t.right-b.width?(g.x=Xr.Forward,h.x=r*Math.abs((t.right-b.width-s)/b.width)):!f&&i<=t.left+b.width&&(g.x=Xr.Backward,h.x=r*Math.abs((t.left+b.width-i)/b.width)),{direction:g,speed:h}}function v7e(e){if(e===document.scrollingElement){const{innerWidth:o,innerHeight:i}=window;return{top:0,left:0,right:o,bottom:i,width:o,height:i}}const{top:t,left:n,right:r,bottom:a}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:a,width:e.clientWidth,height:e.clientHeight}}function EX(e){return e.reduce((t,n)=>ad(t,w_(n)),yi)}function b7e(e){return e.reduce((t,n)=>t+SX(n),0)}function y7e(e){return e.reduce((t,n)=>t+xX(n),0)}function S7e(e,t){if(t===void 0&&(t=ff),!e)return;const{top:n,left:r,bottom:a,right:o}=t(e);yX(e)&&(a<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const x7e=[["x",["left","right"],b7e],["y",["top","bottom"],y7e]];class Sk{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=yk(n),a=EX(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[o,i,s]of x7e)for(const c of i)Object.defineProperty(this,c,{get:()=>{const u=s(r),d=a[o]-u;return this.rect[c]+d},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class $p{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var a;(a=this.target)==null||a.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function w7e(e){const{EventTarget:t}=ro(e);return e instanceof t?e:df(e)}function J2(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var Mo;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Mo||(Mo={}));function Z5(e){e.preventDefault()}function C7e(e){e.stopPropagation()}var kn;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"})(kn||(kn={}));const IX={start:[kn.Space,kn.Enter],cancel:[kn.Esc],end:[kn.Space,kn.Enter]},E7e=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case kn.Right:return{...n,x:n.x+25};case kn.Left:return{...n,x:n.x-25};case kn.Down:return{...n,y:n.y+25};case kn.Up:return{...n,y:n.y-25}}};class TX{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new $p(df(n)),this.windowListeners=new $p(ro(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Mo.Resize,this.handleCancel),this.windowListeners.add(Mo.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Mo.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&S7e(r),n(yi)}handleKeyDown(t){if(bk(t)){const{active:n,context:r,options:a}=this.props,{keyboardCodes:o=IX,coordinateGetter:i=E7e,scrollBehavior:s="smooth"}=a,{code:c}=t;if(o.end.includes(c)){this.handleEnd(t);return}if(o.cancel.includes(c)){this.handleCancel(t);return}const{collisionRect:u}=r.current,d=u?{x:u.left,y:u.top}:yi;this.referenceCoordinates||(this.referenceCoordinates=d);const f=i(t,{active:n,context:r.current,currentCoordinates:d});if(f){const p=Db(f,d),g={x:0,y:0},{scrollableAncestors:h}=r.current;for(const b of h){const y=t.code,{isTop:S,isRight:v,isLeft:x,isBottom:w,maxScroll:C,minScroll:E}=CX(b),I=v7e(b),T={x:Math.min(y===kn.Right?I.right-I.width/2:I.right,Math.max(y===kn.Right?I.left:I.left+I.width/2,f.x)),y:Math.min(y===kn.Down?I.bottom-I.height/2:I.bottom,Math.max(y===kn.Down?I.top:I.top+I.height/2,f.y))},R=y===kn.Right&&!v||y===kn.Left&&!x,_=y===kn.Down&&!w||y===kn.Up&&!S;if(R&&T.x!==f.x){const $=b.scrollLeft+p.x,P=y===kn.Right&&$<=C.x||y===kn.Left&&$>=E.x;if(P&&!p.y){b.scrollTo({left:$,behavior:s});return}P?g.x=b.scrollLeft-$:g.x=y===kn.Right?b.scrollLeft-C.x:b.scrollLeft-E.x,g.x&&b.scrollBy({left:-g.x,behavior:s});break}else if(_&&T.y!==f.y){const $=b.scrollTop+p.y,P=y===kn.Down&&$<=C.y||y===kn.Up&&$>=E.y;if(P&&!p.x){b.scrollTo({top:$,behavior:s});return}P?g.y=b.scrollTop-$:g.y=y===kn.Down?b.scrollTop-C.y:b.scrollTop-E.y,g.y&&b.scrollBy({top:-g.y,behavior:s});break}}this.handleMove(t,ad(Db(f,this.referenceCoordinates),g))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}TX.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=IX,onActivation:a}=t,{active:o}=n;const{code:i}=e.nativeEvent;if(r.start.includes(i)){const s=o.activatorNode.current;return s&&e.target!==s?!1:(e.preventDefault(),a==null||a({event:e.nativeEvent}),!0)}return!1}}];function Q5(e){return!!(e&&"distance"in e)}function J5(e){return!!(e&&"delay"in e)}class xk{constructor(t,n,r){var a;r===void 0&&(r=w7e(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:o}=t,{target:i}=o;this.props=t,this.events=n,this.document=df(i),this.documentListeners=new $p(this.document),this.listeners=new $p(r),this.windowListeners=new $p(ro(i)),this.initialCoordinates=(a=x_(o))!=null?a:yi,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),this.windowListeners.add(Mo.Resize,this.handleCancel),this.windowListeners.add(Mo.DragStart,Z5),this.windowListeners.add(Mo.VisibilityChange,this.handleCancel),this.windowListeners.add(Mo.ContextMenu,Z5),this.documentListeners.add(Mo.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(J5(n)){this.timeoutId=setTimeout(this.handleStart,n.delay);return}if(Q5(n))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(Mo.Click,C7e,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Mo.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:a,props:o}=this,{onMove:i,options:{activationConstraint:s}}=o;if(!a)return;const c=(n=x_(t))!=null?n:yi,u=Db(a,c);if(!r&&s){if(Q5(s)){if(s.tolerance!=null&&J2(u,s.tolerance))return this.handleCancel();if(J2(u,s.distance))return this.handleStart()}return J5(s)&&J2(u,s.tolerance)?this.handleCancel():void 0}t.cancelable&&t.preventDefault(),i(c)}handleEnd(){const{onEnd:t}=this.props;this.detach(),t()}handleCancel(){const{onCancel:t}=this.props;this.detach(),t()}handleKeydown(t){t.code===kn.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const I7e={move:{name:"pointermove"},end:{name:"pointerup"}};class Uy extends xk{constructor(t){const{event:n}=t,r=df(n.target);super(t,I7e,r)}}Uy.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const T7e={move:{name:"mousemove"},end:{name:"mouseup"}};var C_;(function(e){e[e.RightClick=2]="RightClick"})(C_||(C_={}));class R7e extends xk{constructor(t){super(t,T7e,df(t.event.target))}}R7e.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===C_.RightClick?!1:(r==null||r({event:n}),!0)}}];const eI={move:{name:"touchmove"},end:{name:"touchend"}};class _7e extends xk{constructor(t){super(t,eI)}static setup(){return window.addEventListener(eI.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(eI.move.name,t)};function t(){}}}_7e.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:a}=n;return a.length>1?!1:(r==null||r({event:n}),!0)}}];var Op;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Op||(Op={}));var Fb;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Fb||(Fb={}));function $7e(e){let{acceleration:t,activator:n=Op.Pointer,canScroll:r,draggingRect:a,enabled:o,interval:i=5,order:s=Fb.TreeOrder,pointerCoordinates:c,scrollableAncestors:u,scrollableAncestorRects:d,delta:f,threshold:p}=e;const g=N7e({delta:f,disabled:!o}),[h,b]=UBe(),y=l.useRef({x:0,y:0}),S=l.useRef({x:0,y:0}),v=l.useMemo(()=>{switch(n){case Op.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case Op.DraggableRect:return a}},[n,a,c]),x=l.useRef(null),w=l.useCallback(()=>{const E=x.current;if(!E)return;const I=y.current.x*S.current.x,T=y.current.y*S.current.y;E.scrollBy(I,T)},[]),C=l.useMemo(()=>s===Fb.TreeOrder?[...u].reverse():u,[s,u]);l.useEffect(()=>{if(!o||!u.length||!v){b();return}for(const E of C){if((r==null?void 0:r(E))===!1)continue;const I=u.indexOf(E),T=d[I];if(!T)continue;const{direction:R,speed:_}=h7e(E,T,v,t,p);for(const $ of["x","y"])g[$][R[$]]||(_[$]=0,R[$]=0);if(_.x>0||_.y>0){b(),x.current=E,h(w,i),y.current=_,S.current=R;return}}y.current={x:0,y:0},S.current={x:0,y:0},b()},[t,w,r,b,o,i,JSON.stringify(v),JSON.stringify(g),h,u,C,d,JSON.stringify(p)])}const O7e={x:{[Xr.Backward]:!1,[Xr.Forward]:!1},y:{[Xr.Backward]:!1,[Xr.Forward]:!1}};function N7e(e){let{delta:t,disabled:n}=e;const r=S_(t);return Rm(a=>{if(n||!r||!a)return O7e;const o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[Xr.Backward]:a.x[Xr.Backward]||o.x===-1,[Xr.Forward]:a.x[Xr.Forward]||o.x===1},y:{[Xr.Backward]:a.y[Xr.Backward]||o.y===-1,[Xr.Forward]:a.y[Xr.Forward]||o.y===1}}},[n,t,r])}function k7e(e,t){const n=t!==null?e.get(t):void 0,r=n?n.node.current:null;return Rm(a=>{var o;return t===null?null:(o=r??a)!=null?o:null},[r,t])}function A7e(e,t){return l.useMemo(()=>e.reduce((n,r)=>{const{sensor:a}=r,o=a.activators.map(i=>({eventName:i.eventName,handler:t(i.handler,r)}));return[...n,...o]},[]),[e,t])}var $g;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})($g||($g={}));var E_;(function(e){e.Optimized="optimized"})(E_||(E_={}));const eB=new Map;function M7e(e,t){let{dragging:n,dependencies:r,config:a}=t;const[o,i]=l.useState(null),{frequency:s,measure:c,strategy:u}=a,d=l.useRef(e),f=y(),p=_g(f),g=l.useCallback(function(S){S===void 0&&(S=[]),!p.current&&i(v=>v===null?S:v.concat(S.filter(x=>!v.includes(x))))},[p]),h=l.useRef(null),b=Rm(S=>{if(f&&!n)return eB;if(!S||S===eB||d.current!==e||o!=null){const v=new Map;for(let x of e){if(!x)continue;if(o&&o.length>0&&!o.includes(x.id)&&x.rect.current){v.set(x.id,x.rect.current);continue}const w=x.node.current,C=w?new Sk(c(w),w):null;x.rect.current=C,C&&v.set(x.id,C)}return v}return S},[e,o,n,f,c]);return l.useEffect(()=>{d.current=e},[e]),l.useEffect(()=>{f||g()},[n,f]),l.useEffect(()=>{o&&o.length>0&&i(null)},[JSON.stringify(o)]),l.useEffect(()=>{f||typeof s!="number"||h.current!==null||(h.current=setTimeout(()=>{g(),h.current=null},s))},[s,f,g,...r]),{droppableRects:b,measureDroppableContainers:g,measuringScheduled:o!=null};function y(){switch(u){case $g.Always:return!1;case $g.BeforeDragging:return n;default:return!n}}}function RX(e,t){return Rm(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function P7e(e,t){return RX(e,t)}function D7e(e){let{callback:t,disabled:n}=e;const r=vk(t),a=l.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:o}=window;return new o(r)},[r,n]);return l.useEffect(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function Vy(e){let{callback:t,disabled:n}=e;const r=vk(t),a=l.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(r)},[n]);return l.useEffect(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function L7e(e){return new Sk(ff(e),e)}function tB(e,t,n){t===void 0&&(t=L7e);const[r,a]=l.useReducer(s,null),o=D7e({callback(c){if(e)for(const u of c){const{type:d,target:f}=u;if(d==="childList"&&f instanceof HTMLElement&&f.contains(e)){a();break}}}}),i=Vy({callback:a});return bi(()=>{a(),e?(i==null||i.observe(e),o==null||o.observe(document.body,{childList:!0,subtree:!0})):(i==null||i.disconnect(),o==null||o.disconnect())},[e]),r;function s(c){if(!e)return null;if(e.isConnected===!1){var u;return(u=c??n)!=null?u:null}const d=t(e);return JSON.stringify(c)===JSON.stringify(d)?c:d}}function F7e(e){const t=RX(e);return bX(e,t)}const nB=[];function j7e(e){const t=l.useRef(e),n=Rm(r=>e?r&&r!==nB&&e&&t.current&&e.parentNode===t.current.parentNode?r:yk(e):nB,[e]);return l.useEffect(()=>{t.current=e},[e]),n}function B7e(e){const[t,n]=l.useState(null),r=l.useRef(e),a=l.useCallback(o=>{const i=Q2(o.target);i&&n(s=>s?(s.set(i,w_(i)),new Map(s)):null)},[]);return l.useEffect(()=>{const o=r.current;if(e!==o){i(o);const s=e.map(c=>{const u=Q2(c);return u?(u.addEventListener("scroll",a,{passive:!0}),[u,w_(u)]):null}).filter(c=>c!=null);n(s.length?new Map(s):null),r.current=e}return()=>{i(e),i(o)};function i(s){s.forEach(c=>{const u=Q2(c);u==null||u.removeEventListener("scroll",a)})}},[a,e]),l.useMemo(()=>e.length?t?Array.from(t.values()).reduce((o,i)=>ad(o,i),yi):EX(e):yi,[e,t])}function rB(e,t){t===void 0&&(t=[]);const n=l.useRef(null);return l.useEffect(()=>{n.current=null},t),l.useEffect(()=>{const r=e!==yi;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?Db(e,n.current):yi}function z7e(e){l.useEffect(()=>{if(!Hy)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function H7e(e,t){return l.useMemo(()=>e.reduce((n,r)=>{let{eventName:a,handler:o}=r;return n[a]=i=>{o(i,t)},n},{}),[e,t])}function _X(e){return l.useMemo(()=>e?f7e(e):null,[e])}const tI=[];function U7e(e,t){t===void 0&&(t=ff);const[n]=e,r=_X(n?ro(n):null),[a,o]=l.useReducer(s,tI),i=Vy({callback:o});return e.length>0&&a===tI&&o(),bi(()=>{e.length?e.forEach(c=>i==null?void 0:i.observe(c)):(i==null||i.disconnect(),o())},[e]),a;function s(){return e.length?e.map(c=>wX(c)?r:new Sk(t(c),c)):tI}}function V7e(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Tm(t)?t:e}function W7e(e){let{measure:t}=e;const[n,r]=l.useState(null),a=l.useCallback(u=>{for(const{target:d}of u)if(Tm(d)){r(f=>{const p=t(d);return f?{...f,width:p.width,height:p.height}:p});break}},[t]),o=Vy({callback:a}),i=l.useCallback(u=>{const d=V7e(u);o==null||o.disconnect(),d&&(o==null||o.observe(d)),r(d?t(d):null)},[t,o]),[s,c]=Pb(i);return l.useMemo(()=>({nodeRef:s,rect:n,setRef:c}),[n,s,c])}const G7e=[{sensor:Uy,options:{}},{sensor:TX,options:{}}],q7e={current:{}},Ev={draggable:{measure:X5},droppable:{measure:X5,strategy:$g.WhileDragging,frequency:E_.Optimized},dragOverlay:{measure:ff}};class Np extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const K7e={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Np,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Lb},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Ev,measureDroppableContainers:Lb,windowRect:null,measuringScheduled:!1},Y7e={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Lb,draggableNodes:new Map,over:null,measureDroppableContainers:Lb},Wy=l.createContext(Y7e),$X=l.createContext(K7e);function X7e(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Np}}}function Z7e(e,t){switch(t.type){case Dr.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Dr.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case Dr.DragEnd:case Dr.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Dr.RegisterDroppable:{const{element:n}=t,{id:r}=n,a=new Np(e.droppable.containers);return a.set(r,n),{...e,droppable:{...e.droppable,containers:a}}}case Dr.SetDroppableDisabled:{const{id:n,key:r,disabled:a}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const i=new Np(e.droppable.containers);return i.set(n,{...o,disabled:a}),{...e,droppable:{...e.droppable,containers:i}}}case Dr.UnregisterDroppable:{const{id:n,key:r}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;const o=new Np(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function Q7e(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:a}=l.useContext(Wy),o=S_(r),i=S_(n==null?void 0:n.id);return l.useEffect(()=>{if(!t&&!r&&o&&i!=null){if(!bk(o)||document.activeElement===o.target)return;const s=a.get(i);if(!s)return;const{activatorNode:c,node:u}=s;if(!c.current&&!u.current)return;requestAnimationFrame(()=>{for(const d of[c.current,u.current]){if(!d)continue;const f=GBe(d);if(f){f.focus();break}}})}},[r,t,a,i,o]),null}function J7e(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((a,o)=>o({transform:a,...r}),n):n}function eze(e){return l.useMemo(()=>({draggable:{...Ev.draggable,...e==null?void 0:e.draggable},droppable:{...Ev.droppable,...e==null?void 0:e.droppable},dragOverlay:{...Ev.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function tze(e){let{activeNode:t,measure:n,initialRect:r,config:a=!0}=e;const o=l.useRef(!1),{x:i,y:s}=typeof a=="boolean"?{x:a,y:a}:a;bi(()=>{if(!i&&!s||!t){o.current=!1;return}if(o.current||!r)return;const u=t==null?void 0:t.node.current;if(!u||u.isConnected===!1)return;const d=n(u),f=bX(d,r);if(i||(f.x=0),s||(f.y=0),o.current=!0,Math.abs(f.x)>0||Math.abs(f.y)>0){const p=yX(u);p&&p.scrollBy({top:f.y,left:f.x})}},[t,i,s,r,n])}const OX=l.createContext({...yi,scaleX:1,scaleY:1});var Ws;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Ws||(Ws={}));const NX=l.memo(function(t){var n,r,a,o;let{id:i,accessibility:s,autoScroll:c=!0,children:u,sensors:d=G7e,collisionDetection:f=o7e,measuring:p,modifiers:g,...h}=t;const b=l.useReducer(Z7e,void 0,X7e),[y,S]=b,[v,x]=QBe(),[w,C]=l.useState(Ws.Uninitialized),E=w===Ws.Initialized,{draggable:{active:I,nodes:T,translate:R},droppable:{containers:_}}=y,$=I?T.get(I):null,P=l.useRef({initial:null,translated:null}),D=l.useMemo(()=>{var Se;return I!=null?{id:I,data:(Se=$==null?void 0:$.data)!=null?Se:q7e,rect:P}:null},[I,$]),A=l.useRef(null),[O,N]=l.useState(null),[k,M]=l.useState(null),L=_g(h,Object.values(h)),F=_m("DndDescribedBy",i),j=l.useMemo(()=>_.getEnabled(),[_]),B=eze(p),{droppableRects:z,measureDroppableContainers:H,measuringScheduled:V}=M7e(j,{dragging:E,dependencies:[R.x,R.y],config:B.droppable}),te=k7e(T,I),Y=l.useMemo(()=>k?x_(k):null,[k]),J=Oe(),G=P7e(te,B.draggable.measure);tze({activeNode:I?T.get(I):null,config:J.layoutShiftCompensation,initialRect:G,measure:B.draggable.measure});const U=tB(te,B.draggable.measure,G),q=tB(te?te.parentElement:null),X=l.useRef({activatorEvent:null,active:null,activeNode:te,collisionRect:null,collisions:null,droppableRects:z,draggableNodes:T,draggingNode:null,draggingNodeRect:null,droppableContainers:_,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Q=_.getNodeFor((n=X.current.over)==null?void 0:n.id),ee=W7e({measure:B.dragOverlay.measure}),oe=(r=ee.nodeRef.current)!=null?r:te,le=E?(a=ee.rect)!=null?a:U:null,fe=!!(ee.nodeRef.current&&ee.rect),ce=F7e(fe?null:U),Ie=_X(oe?ro(oe):null),be=j7e(E?Q??te:null),he=U7e(be),ae=J7e(g,{transform:{x:R.x-ce.x,y:R.y-ce.y,scaleX:1,scaleY:1},activatorEvent:k,active:D,activeNodeRect:U,containerNodeRect:q,draggingNodeRect:le,over:X.current.over,overlayNodeRect:ee.rect,scrollableAncestors:be,scrollableAncestorRects:he,windowRect:Ie}),ie=Y?ad(Y,R):null,ue=B7e(be),xe=rB(ue),we=rB(ue,[U]),Me=ad(ae,xe),Ce=le?l7e(le,ae):null,De=D&&Ce?f({active:D,collisionRect:Ce,droppableRects:z,droppableContainers:j,pointerCoordinates:ie}):null,ye=r7e(De,"id"),[ve,$e]=l.useState(null),Ee=fe?ae:ad(ae,we),ge=i7e(Ee,(o=ve==null?void 0:ve.rect)!=null?o:null,U),Ne=l.useCallback((Se,Ae)=>{let{sensor:Fe,options:Ve}=Ae;if(A.current==null)return;const He=T.get(A.current);if(!He)return;const ze=Se.nativeEvent,Xe=new Fe({active:A.current,activeNode:He,event:ze,options:Ve,context:X,onStart(Je){const gt=A.current;if(gt==null)return;const ft=T.get(gt);if(!ft)return;const{onDragStart:qe}=L.current,We={active:{id:gt,data:ft.data,rect:P}};Lr.unstable_batchedUpdates(()=>{qe==null||qe(We),C(Ws.Initializing),S({type:Dr.DragStart,initialCoordinates:Je,active:gt}),v({type:"onDragStart",event:We})})},onMove(Je){S({type:Dr.DragMove,coordinates:Je})},onEnd:je(Dr.DragEnd),onCancel:je(Dr.DragCancel)});Lr.unstable_batchedUpdates(()=>{N(Xe),M(Se.nativeEvent)});function je(Je){return async function(){const{active:ft,collisions:qe,over:We,scrollAdjustedTranslate:Qe}=X.current;let ut=null;if(ft&&Qe){const{cancelDrop:Rt}=L.current;ut={activatorEvent:ze,active:ft,collisions:qe,delta:Qe,over:We},Je===Dr.DragEnd&&typeof Rt=="function"&&await Promise.resolve(Rt(ut))&&(Je=Dr.DragCancel)}A.current=null,Lr.unstable_batchedUpdates(()=>{S({type:Je}),C(Ws.Uninitialized),$e(null),N(null),M(null);const Rt=Je===Dr.DragEnd?"onDragEnd":"onDragCancel";if(ut){const $t=L.current[Rt];$t==null||$t(ut),v({type:Rt,event:ut})}})}}},[T]),Re=l.useCallback((Se,Ae)=>(Fe,Ve)=>{const He=Fe.nativeEvent,ze=T.get(Ve);if(A.current!==null||!ze||He.dndKit||He.defaultPrevented)return;const Xe={active:ze};Se(Fe,Ae.options,Xe)===!0&&(He.dndKit={capturedBy:Ae.sensor},A.current=Ve,Ne(Fe,Ae))},[T,Ne]),me=A7e(d,Re);z7e(d),bi(()=>{U&&w===Ws.Initializing&&C(Ws.Initialized)},[U,w]),l.useEffect(()=>{const{onDragMove:Se}=L.current,{active:Ae,activatorEvent:Fe,collisions:Ve,over:He}=X.current;if(!Ae||!Fe)return;const ze={active:Ae,activatorEvent:Fe,collisions:Ve,delta:{x:Me.x,y:Me.y},over:He};Lr.unstable_batchedUpdates(()=>{Se==null||Se(ze),v({type:"onDragMove",event:ze})})},[Me.x,Me.y]),l.useEffect(()=>{const{active:Se,activatorEvent:Ae,collisions:Fe,droppableContainers:Ve,scrollAdjustedTranslate:He}=X.current;if(!Se||A.current==null||!Ae||!He)return;const{onDragOver:ze}=L.current,Xe=Ve.get(ye),je=Xe&&Xe.rect.current?{id:Xe.id,rect:Xe.rect.current,data:Xe.data,disabled:Xe.disabled}:null,Je={active:Se,activatorEvent:Ae,collisions:Fe,delta:{x:He.x,y:He.y},over:je};Lr.unstable_batchedUpdates(()=>{$e(je),ze==null||ze(Je),v({type:"onDragOver",event:Je})})},[ye]),bi(()=>{X.current={activatorEvent:k,active:D,activeNode:te,collisionRect:Ce,collisions:De,droppableRects:z,draggableNodes:T,draggingNode:oe,draggingNodeRect:le,droppableContainers:_,over:ve,scrollableAncestors:be,scrollAdjustedTranslate:Me},P.current={initial:le,translated:Ce}},[D,te,De,Ce,T,oe,le,z,_,ve,be,Me]),$7e({...J,delta:R,draggingRect:Ce,pointerCoordinates:ie,scrollableAncestors:be,scrollableAncestorRects:he});const _e=l.useMemo(()=>({active:D,activeNode:te,activeNodeRect:U,activatorEvent:k,collisions:De,containerNodeRect:q,dragOverlay:ee,draggableNodes:T,droppableContainers:_,droppableRects:z,over:ve,measureDroppableContainers:H,scrollableAncestors:be,scrollableAncestorRects:he,measuringConfiguration:B,measuringScheduled:V,windowRect:Ie}),[D,te,U,k,De,q,ee,T,_,z,ve,H,be,he,B,V,Ie]),Ze=l.useMemo(()=>({activatorEvent:k,activators:me,active:D,activeNodeRect:U,ariaDescribedById:{draggable:F},dispatch:S,draggableNodes:T,over:ve,measureDroppableContainers:H}),[k,me,D,U,S,F,T,ve,H]);return se.createElement(hX.Provider,{value:x},se.createElement(Wy.Provider,{value:Ze},se.createElement($X.Provider,{value:_e},se.createElement(OX.Provider,{value:ge},u)),se.createElement(Q7e,{disabled:(s==null?void 0:s.restoreFocus)===!1})),se.createElement(t7e,{...s,hiddenTextDescribedById:F}));function Oe(){const Se=(O==null?void 0:O.autoScrollEnabled)===!1,Ae=typeof c=="object"?c.enabled===!1:c===!1,Fe=E&&!Se&&!Ae;return typeof c=="object"?{...c,enabled:Fe}:{enabled:Fe}}}),nze=l.createContext(null),aB="button",rze="Droppable";function aze(e){let{id:t,data:n,disabled:r=!1,attributes:a}=e;const o=_m(rze),{activators:i,activatorEvent:s,active:c,activeNodeRect:u,ariaDescribedById:d,draggableNodes:f,over:p}=l.useContext(Wy),{role:g=aB,roleDescription:h="draggable",tabIndex:b=0}=a??{},y=(c==null?void 0:c.id)===t,S=l.useContext(y?OX:nze),[v,x]=Pb(),[w,C]=Pb(),E=H7e(i,t),I=_g(n);bi(()=>(f.set(t,{id:t,key:o,node:v,activatorNode:w,data:I}),()=>{const R=f.get(t);R&&R.key===o&&f.delete(t)}),[f,t]);const T=l.useMemo(()=>({role:g,tabIndex:b,"aria-disabled":r,"aria-pressed":y&&g===aB?!0:void 0,"aria-roledescription":h,"aria-describedby":d.draggable}),[r,g,b,y,h,d.draggable]);return{active:c,activatorEvent:s,activeNodeRect:u,attributes:T,isDragging:y,listeners:r?void 0:E,node:v,over:p,setNodeRef:x,setActivatorNodeRef:C,transform:S}}function oze(){return l.useContext($X)}const ize="Droppable",sze={timeout:25};function lze(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:a}=e;const o=_m(ize),{active:i,dispatch:s,over:c,measureDroppableContainers:u}=l.useContext(Wy),d=l.useRef({disabled:n}),f=l.useRef(!1),p=l.useRef(null),g=l.useRef(null),{disabled:h,updateMeasurementsFor:b,timeout:y}={...sze,...a},S=_g(b??r),v=l.useCallback(()=>{if(!f.current){f.current=!0;return}g.current!=null&&clearTimeout(g.current),g.current=setTimeout(()=>{u(Array.isArray(S.current)?S.current:[S.current]),g.current=null},y)},[y]),x=Vy({callback:v,disabled:h||!i}),w=l.useCallback((T,R)=>{x&&(R&&(x.unobserve(R),f.current=!1),T&&x.observe(T))},[x]),[C,E]=Pb(w),I=_g(t);return l.useEffect(()=>{!x||!C.current||(x.disconnect(),f.current=!1,x.observe(C.current))},[C,x]),bi(()=>(s({type:Dr.RegisterDroppable,element:{id:r,key:o,disabled:n,node:C,rect:p,data:I}}),()=>s({type:Dr.UnregisterDroppable,key:o,id:r})),[r]),l.useEffect(()=>{n!==d.current.disabled&&(s({type:Dr.SetDroppableDisabled,id:r,key:o,disabled:n}),d.current.disabled=n)},[r,o,n,s]),{active:i,rect:p,isOver:(c==null?void 0:c.id)===r,node:C,over:c,setNodeRef:E}}function Gy(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function cze(e,t){return e.reduce((n,r,a)=>{const o=t.get(r);return o&&(n[a]=o),n},Array(e.length))}function Dh(e){return e!==null&&e>=0}function uze(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n{let{rects:t,activeIndex:n,overIndex:r,index:a}=e;const o=Gy(t,r,n),i=t[a],s=o[a];return!s||!i?null:{x:s.left-i.left,y:s.top-i.top,scaleX:s.width/i.width,scaleY:s.height/i.height}},Lh={scaleX:1,scaleY:1},AX=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:a,rects:o,overIndex:i}=e;const s=(t=o[n])!=null?t:r;if(!s)return null;if(a===n){const u=o[i];return u?{x:0,y:nn&&a<=i?{x:0,y:-s.height-c,...Lh}:a=i?{x:0,y:s.height+c,...Lh}:{x:0,y:0,...Lh}};function fze(e,t,n){const r=e[t],a=e[t-1],o=e[t+1];return r?nr.map(E=>typeof E=="object"&&"id"in E?E.id:E),[r]),h=i!=null,b=i?g.indexOf(i.id):-1,y=u?g.indexOf(u.id):-1,S=l.useRef(g),v=!uze(g,S.current),x=y!==-1&&b===-1||v,w=dze(o);bi(()=>{v&&h&&d(g)},[v,g,h,d]),l.useEffect(()=>{S.current=g},[g]);const C=l.useMemo(()=>({activeIndex:b,containerId:f,disabled:w,disableTransforms:x,items:g,overIndex:y,useDragOverlay:p,sortedRects:cze(g,c),strategy:a}),[b,f,w.draggable,w.droppable,x,g,y,c,p,a]);return se.createElement(PX.Provider,{value:C},t)}const pze=e=>{let{id:t,items:n,activeIndex:r,overIndex:a}=e;return Gy(n,r,a).indexOf(t)},gze=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:a,items:o,newIndex:i,previousItems:s,previousContainerId:c,transition:u}=e;return!u||!r||s!==o&&a===i?!1:n?!0:i!==a&&t===c},mze={duration:200,easing:"ease"},LX="transform",hze=Md.Transition.toString({property:LX,duration:0,easing:"linear"}),vze={roleDescription:"sortable"};function bze(e){let{disabled:t,index:n,node:r,rect:a}=e;const[o,i]=l.useState(null),s=l.useRef(n);return bi(()=>{if(!t&&n!==s.current&&r.current){const c=a.current;if(c){const u=ff(r.current,{ignoreTransform:!0}),d={x:c.left-u.left,y:c.top-u.top,scaleX:c.width/u.width,scaleY:c.height/u.height};(d.x||d.y)&&i(d)}}n!==s.current&&(s.current=n)},[t,n,r,a]),l.useEffect(()=>{o&&i(null)},[o]),o}function FX(e){let{animateLayoutChanges:t=gze,attributes:n,disabled:r,data:a,getNewIndex:o=pze,id:i,strategy:s,resizeObserverConfig:c,transition:u=mze}=e;const{items:d,containerId:f,activeIndex:p,disabled:g,disableTransforms:h,sortedRects:b,overIndex:y,useDragOverlay:S,strategy:v}=l.useContext(PX),x=yze(r,g),w=d.indexOf(i),C=l.useMemo(()=>({sortable:{containerId:f,index:w,items:d},...a}),[f,a,w,d]),E=l.useMemo(()=>d.slice(d.indexOf(i)),[d,i]),{rect:I,node:T,isOver:R,setNodeRef:_}=lze({id:i,data:C,disabled:x.droppable,resizeObserverConfig:{updateMeasurementsFor:E,...c}}),{active:$,activatorEvent:P,activeNodeRect:D,attributes:A,setNodeRef:O,listeners:N,isDragging:k,over:M,setActivatorNodeRef:L,transform:F}=aze({id:i,data:C,attributes:{...vze,...n},disabled:x.draggable}),j=HBe(_,O),B=!!$,z=B&&!h&&Dh(p)&&Dh(y),H=!S&&k,V=H&&z?F:null,Y=z?V??(s??v)({rects:b,activeNodeRect:D,activeIndex:p,overIndex:y,index:w}):null,J=Dh(p)&&Dh(y)?o({id:i,items:d,activeIndex:p,overIndex:y}):w,G=$==null?void 0:$.id,U=l.useRef({activeId:G,items:d,newIndex:J,containerId:f}),q=d!==U.current.items,X=t({active:$,containerId:f,isDragging:k,isSorting:B,id:i,index:w,items:d,newIndex:U.current.newIndex,previousItems:U.current.items,previousContainerId:U.current.containerId,transition:u,wasDragging:U.current.activeId!=null}),Q=bze({disabled:!X,index:w,node:T,rect:I});return l.useEffect(()=>{B&&U.current.newIndex!==J&&(U.current.newIndex=J),f!==U.current.containerId&&(U.current.containerId=f),d!==U.current.items&&(U.current.items=d)},[B,J,f,d]),l.useEffect(()=>{if(G===U.current.activeId)return;if(G&&!U.current.activeId){U.current.activeId=G;return}const oe=setTimeout(()=>{U.current.activeId=G},50);return()=>clearTimeout(oe)},[G]),{active:$,activeIndex:p,attributes:A,data:C,rect:I,index:w,newIndex:J,items:d,isOver:R,isSorting:B,isDragging:k,listeners:N,node:T,overIndex:y,over:M,setNodeRef:j,setActivatorNodeRef:L,setDroppableNodeRef:_,setDraggableNodeRef:O,transform:Q??Y,transition:ee()};function ee(){if(Q||q&&U.current.newIndex===w)return hze;if(!(H&&!bk(P)||!u)&&(B||X))return Md.Transition.toString({...u,property:LX})}}function yze(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e==null?void 0:e.draggable)!=null?n:t.draggable,droppable:(r=e==null?void 0:e.droppable)!=null?r:t.droppable}}kn.Down,kn.Right,kn.Up,kn.Left;const{useToken:Sze}=Ta,xze=({originNode:e,fileObjectList:t,file:n,onRemove:r,disabled:a})=>{const{token:o}=Sze(),{attributes:i,listeners:s,setNodeRef:c,transform:u,transition:d,isDragging:f}=FX({id:n.uid}),{t:p}=Nt(),g={transform:Md.Transform.toString(u),transition:d,cursor:"move"};return m.jsx("div",{ref:c,style:g,className:f?"is-dragging":"",...i,...s,children:m.jsxs("div",{style:{display:"flex",gap:8,justifyContent:"space-between",alignItems:"center",margin:"8px 0",padding:8,borderRadius:8,border:`1px solid ${o.colorBorder}`},children:[m.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[m.jsxs("span",{style:{fontSize:30,width:48,height:48,textAlign:"center",color:`${o.colorPrimaryText}`},children:[t.indexOf(n)+1,"."]}),m.jsxs("div",{children:[m.jsx("div",{children:n.name}),m.jsxs("div",{style:{fontSize:"smaller",color:`${o.colorTextSecondary}`},children:["in ",n.path,"/"]})]})]}),m.jsx(ct,{title:p("tonies.encoder.removeFile"),onClick:()=>r(n),disabled:a,icon:m.jsx(Ed,{})})]})})},jX=/[<>:"/\\|?*]/,kp=jX.source.slice(1,-1).split("").join(" ");function Gu(e){return!jX.test(e)}const Ii=new xn(pn()),{useToken:wze}=Ta,oB=99,hu=uk,Qo={id:"1",pId:"-1",value:"1",title:"/",fullPath:"/"},wk=({special:e,filetypeFilter:t=[],isTapList:n=!1,overlay:r="",trackUrl:a=!0,showDirOnly:o=!1,showColumns:i=void 0})=>{const{t:s}=Nt(),{playAudio:c}=my(),{token:u}=wze(),d=of(),f=l.useRef(null),p=l.useRef(null),g=l.useRef(null),h=l.useRef(null),b=l.useRef(null),[y,S]=Ye.useMessage(),v=Yi(),w=new URLSearchParams(v.search).get("path")||"",[C,E]=l.useState(w),[I,T]=l.useState([]),[R,_]=l.useState(!1),[$,P]=l.useState(""),[D,A]=l.useState([]),[O,N]=l.useState(Qo.id),[k,M]=l.useState([Qo]),[L,F]=l.useState([]),[j,B]=l.useState(""),[z,H]=l.useState(!1),[V,te]=l.useState(!1),[Y,J]=l.useState(),[G,U]=l.useState(""),[q,X]=l.useState(!1),[Q,ee]=l.useState(!1),[oe,le]=l.useState(0);l.useState(!1),l.useState(0);const[fe,ce]=l.useState(),[Ie,be]=l.useState(!1),[he,ae]=l.useState(!0),[ie,ue]=l.useState(!1),[xe,we]=l.useState(!1),[Me,Ce]=l.useState(!0),[De,ye]=l.useState(!1),[ve,$e]=l.useState(1),[Ee,ge]=l.useState(w),[Ne,Re]=l.useState(!1),[me,_e]=l.useState(!1),[Ze,Oe]=l.useState(null),[Se,Ae]=l.useState(""),[Fe,Ve]=l.useState(""),[He,ze]=l.useState(!1),[Xe,je]=l.useState(!1),[Je,gt]=l.useState(0),[ft,qe]=l.useState(!1),[We,Qe]=l.useState([]),[ut,Rt]=l.useState(!1),[$t,ht]=l.useState(!1),[lt,ot]=l.useState(0),[et,vt]=l.useState([]),[rt,St]=l.useState(!1),[Et,tt]=l.useState(!1),[at,Ke]=l.useState(0),[Ge,bt]=l.useState([]);l.useEffect(()=>{(async()=>{const Te=Vt(Qo.id);Ii.apiGetTeddyCloudApiRaw(`/api/fileIndexV2?path=${Te}&special=library`).then(Be=>Be.json()).then(Be=>{var it=Be.files;it=it.filter(Ot=>Ot.isDir&&Ot.name!=="..").sort((Ot,Qt)=>Ot.name===Qt.name?0:Ot.name.toLowerCase()>Qt.name.toLowerCase()?1:-1).map(Ot=>({id:Qo.id+"."+it.indexOf(Ot),pId:Qo.id,value:Qo.id+"."+it.indexOf(Ot),title:Ot.name,fullPath:`${Te}/${Ot.name}/`})),M(k.concat(it))})})()},[]),l.useEffect(()=>{const Te=new URLSearchParams(v.search).get("path")||"";E(Te)},[]),l.useEffect(()=>{if(r){const ke=new URLSearchParams(v.search);ke.set("path",""),E("");const Te=`${window.location.pathname}?${ke.toString()}`;window.history.replaceState(null,"",Te),_(Be=>!Be)}},[r]),l.useEffect(()=>{Ii.apiGetTeddyCloudApiRaw(`/api/fileIndexV2?path=${C}&special=${e}`+(r?`&overlay=${r}`:"")).then(ke=>ke.json()).then(ke=>{var Te=ke.files;o&&(Te=Te.filter(Be=>Be.isDir)),t.length>0&&(Te=Te.filter(Be=>Be.isDir||t.some(it=>Be.name.endsWith(it)))),T(Te)})},[C,e,o,R]),l.useEffect(()=>{De&&setTimeout(()=>{p.current&&p.current.focus()},0)},[De]),l.useEffect(()=>{f.current!==null&&b.current&&b.current.setSelectionRange(f.current,f.current)},[j]),l.useEffect(()=>{ge(Vt(O))},[O]),l.useEffect(()=>{ge(C)},[C]);function Tt(){return"10000000-1e3-4e3-8e3-1e11".replace(/[018]/g,ke=>(parseInt(ke)^crypto.getRandomValues(new Uint8Array(1))[0]&15>>parseInt(ke)/4).toString(16))}const Pt=ke=>{a&&d(`?path=${ke}`),C===ke&&_(Te=>!Te),H(!1),E(ke)},en=(ke,Te)=>{const Be=ke.split("/").filter(Ot=>Ot),it=[{title:m.jsx("span",{style:{cursor:"pointer"},onClick:()=>Te(""),children:s("fileBrowser.root")}),key:"/"}];return Be.forEach((Ot,Qt)=>{const wn=`/${Be.slice(0,Qt+1).join("/")}`;it.push({title:m.jsx("span",{style:{cursor:"pointer"},onClick:()=>Te(wn),children:Ot}),key:wn})}),m.jsx(Xd,{items:it})},rn=({id:ke})=>new Promise((Te,Be)=>{const it=Vt(ke);Ii.apiGetTeddyCloudApiRaw(`/api/fileIndexV2?path=${it}&special=library`).then(Ot=>Ot.json()).then(Ot=>{let Qt=Ot.files;Qt=Qt.filter(wn=>wn.isDir&&wn.name!=="..").sort((wn,Sr)=>wn.name===Sr.name?0:wn.name.toLowerCase()>Sr.name.toLowerCase()?1:-1).map(wn=>({id:ke+"."+Qt.indexOf(wn),pId:ke,value:ke+"."+Qt.indexOf(wn),title:wn.name,fullPath:`${it}/${wn.name}/`})),M(k.concat(Qt)),Te(!0)}).then(()=>{Be()})}),Vt=ke=>{const Te=k.filter(Be=>Be.value===ke)[0];return Te.pId==="-1"?"":Vt(k.filter(Be=>Be.id===Te.pId)[0].id)+"/"+Te.title},tn=(ke,Te)=>{for(const Be of Te)if(Be.fullPath===ke)return Be.id;return null},It=(ke,Te)=>{let Be=[];for(const it of Te)it.pId===ke&&Be.push(it);return Be},_t=ke=>L.includes(ke),kt=m.jsx(Al,{className:"move-file",treeLine:!0,treeDataSimpleMode:!0,value:O,dropdownStyle:{maxHeight:400,overflow:"auto"},onChange:N,loadData:rn,treeData:k,treeNodeLabelProp:"fullPath",placeholder:s("fileBrowser.moveFile.destinationPlaceholder"),treeExpandedKeys:L,onTreeExpand:ke=>F(ke),disabled:rt||ut}),Tn=ke=>{var Te;!ke.isDir&&((Te=ke.tonieInfo)!=null&&Te.tracks)&&(J(ke),te(!0))},Qn=ke=>{Jn((e==="library"?"/library":"/content")+ke),H(!1),P(ke),X(!0)},cr=()=>{X(!1)},Jn=async ke=>{try{const Be=await(await Ii.apiGetTeddyCloudApiRaw(ke)).json();U(Be)}catch(Te){console.error("Error fetching JSON data:",Te)}},Hr=m.jsx(ct,{type:"primary",onClick:()=>X(!1),children:s("tonies.informationModal.ok")}),Mr=m.jsx(Sn,{className:"json-viewer",footer:Hr,width:800,title:"File: "+$,open:q,onCancel:cr,children:G?m.jsx(Sa,{language:"json",code:JSON.stringify(G,null,2)}):"Loading..."}),er=(ke,Te)=>{const Be=Te,{trackSeconds:it,...Ot}=Be;H(!1),ce(Ot),P(ke),be(!0)},Kt=()=>{be(!1)},Ft=m.jsx(Sn,{className:"taf-header-viewer",footer:m.jsx(ct,{type:"primary",onClick:()=>be(!1),children:s("tonies.informationModal.ok")}),title:s("tonies.tafHeaderOf")+$,open:Ie,onCancel:Kt,width:700,children:fe?m.jsx(Sa,{language:"json",code:JSON.stringify(fe,null,2)}):"Loading..."}),Gt=ke=>{ke.includes(".tap")&&(Jn((e==="library"?"/library":"/content")+ke),H(!1),P(ke),le(Be=>Be+1),ee(!0))},jt=ke=>{console.log("Received values of form: ",ke),ee(!1)},Bt=(ke,Te)=>{},wt=(ke,Te,Be)=>{H(!1),Oe(ke),Ae(Te),Ve(Be),Re(!0)},Ct=()=>{Re(!1),_e(!1)},cn=()=>{dr(Se,Fe),_(ke=>!ke),Re(!1)},Rn=()=>{_e(!0)},ur=async()=>{if(D.length>0){for(const ke of D){const Te=I.find(Be=>Be.name===ke);if(Te){const Be=C+"/"+Te.name,it="?special="+e+(r?`&overlay=${r}`:"");await dr(Be,it)}}_(ke=>!ke),_e(!1),A([])}else Ye.warning("No rows selected for deletion.")},dr=async(ke,Te)=>{const Be=Ye.loading(s("fileBrowser.messages.deleting"),0);try{const it=`/api/fileDelete${Te}`,Qt=await(await Ii.apiPostTeddyCloudRaw(it,ke)).text();if(Be(),Qt==="OK"){Ye.success(s("fileBrowser.messages.deleteSuccessful",{file:ke}));const wn=tn(ke+"/",k);wn&&M(Sr=>Sr.filter(Ur=>Ur.id!==wn)),Ee===ke+"/"&&ge(C)}else Ye.error(`${s("fileBrowser.messages.deleteFailed",{file:ke})}: ${Qt}`)}catch(it){Be(),Ye.error(`${s("fileBrowser.messages.deleteFailed",{file:ke})}: ${it}`)}},yr=()=>{ae(!0),ue(!1),$e(ke=>ke+1),H(!1),ye(!0)},Ht=()=>{H(!1),ye(!1)},Lt=ke=>{const Te=ke.target.value,Be=!Gu(Te.toString());ue(Be),ae(Te==="")},pt=()=>{var Te,Be;const ke=((Be=(Te=p.current)==null?void 0:Te.input)==null?void 0:Be.value)||"";try{Ii.apiPostTeddyCloudRaw("/api/dirCreate?special=library",Ee+"/"+ke).then(it=>it.text()).then(it=>{if(it!=="OK")throw new Error(it);const Ot=tn(Ee+"/",k)||Qo.id,Qt=`${Ot}.${k.length}`,wn=_t(Ot),Sr=It(Ot,k);if(wn||Sr.length>0){const Ur={id:Qt,pId:Ot,value:Qt,title:ke,fullPath:Ee+"/"+ke+"/"};M([...k,Ur].sort((Pk,Dk)=>Pk.title===Dk.title?0:Pk.title.toLowerCase()>Dk.title.toLowerCase()?1:-1)),(He||$t)&&N(Qt)}Ye.success(s("fileBrowser.createDirectory.directoryCreated")),ye(!1),_(Ur=>!Ur),ge(C)}).catch(it=>{Ye.error(it.message)})}catch{Ye.error("Error while creating directory")}},Dt=he||ie,yn=m.jsxs(Sn,{title:s("fileBrowser.createDirectory.modalTitle"),open:De,onCancel:Ht,onOk:pt,okText:s("fileBrowser.createDirectory.create"),cancelText:s("fileBrowser.createDirectory.cancel"),zIndex:1050,okButtonProps:{disabled:Dt},children:[m.jsxs(bn,{style:{marginBottom:8},children:[s("fileBrowser.createDirectory.parentPath")+" "+Ee+"/"," "]}),m.jsxs(qt.Item,{validateStatus:ie?"error":"",help:ie?s("inputValidator.invalidCharactersDetected",{invalidChar:kp}):"",required:!0,children:[" ",m.jsx(Jt,{ref:p,type:"text",placeholder:s("fileBrowser.createDirectory.placeholder"),status:ie?"error":"",onChange:Lt})]})]},"createDirModal-"+ve),fr=async(ke,Te,Be)=>{const it="source="+encodeURIComponent(ke)+"&target="+encodeURIComponent(Te),Ot=Ye.loading(s(Be?"fileBrowser.messages.moving":"fileBrowser.messages.renaming"),0);try{const Qt=`/api/fileMove${"?special="+e+(r?`&overlay=${r}`:"")}`,Sr=await(await Ii.apiPostTeddyCloudRaw(Qt,it)).text();if(Ot(),Sr==="OK")Ye.success(Be?s("fileBrowser.messages.movingSuccessful",{file:ke}):s("fileBrowser.messages.renamingSuccessful",{file:ke}));else throw Ye.error(`${Be?s("fileBrowser.messages.movingFailed",{file:ke}):s("fileBrowser.messages.renamingFailed",{file:ke})}: ${Sr}`),Sr}catch(Qt){throw Ot(),Ye.error(`${Be?s("fileBrowser.messages.movingFailed",{file:ke}):s("fileBrowser.messages.renamingFailed",{file:ke})}: ${Qt}`),Qt}},mn=ke=>{N(Qo.id),P(ke),ze(!0)},fa=()=>{ze(!1),ge(C)},Ra=async(ke,Te)=>{try{await fr(ke+"/"+$,Te+"/"+$,!0),_(Be=>!Be),ze(!1),N(Qo.id)}catch{}},oa=async(ke,Te)=>{if(D.length>0){for(const Be of D){const it=I.find(Ot=>Ot.name===Be);it&&!it.isDir&&await fr(ke+"/"+it.name,Te+"/"+it.name,!0)}_(Be=>!Be),ze(!1),A([]),N(Qo.id)}else Ye.warning("No rows selected for moving.")},ja=!O||Vt(O)===C,Ci=m.jsxs(Sn,{title:s($?"fileBrowser.moveFile.modalTitle":"fileBrowser.moveFile.modalTitleMultiple"),open:He,onCancel:fa,onOk:()=>$?Ra(C,Vt(O)):oa(C,Vt(O)),okText:s("fileBrowser.moveFile.move"),cancelText:s("fileBrowser.moveFile.cancel"),okButtonProps:{disabled:ja},children:[m.jsx(An,{message:s("fileBrowser.attention"),description:s("fileBrowser.moveFile.attention"),type:"warning",showIcon:!0,style:{marginBottom:16}}),m.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:16,justifyContent:"space-between"},children:[m.jsx(Jt,{type:"text",style:{borderTopRightRadius:$?0:"unset",borderBottomRightRadius:$?0:"unset"},disabled:!0,value:C+"/"+($||""),placeholder:C+"/"+($||"")}),m.jsx("div",{children:s("fileBrowser.moveFile.moveTo")}),m.jsxs("div",{style:{display:"flex"},children:[kt,m.jsx(Zt,{title:s("fileBrowser.createDirectory.createDirectory"),children:m.jsx(ct,{icon:m.jsx(FR,{}),onClick:()=>{ge(Vt(O)),yr()},style:{borderTopLeftRadius:0,borderBottomLeftRadius:0}})})]})]})]}),Xc=ke=>{P(ke),ae(!0),we(!Gu(ke)),gt(Te=>Te+1),je(!0)},At=()=>{je(!1)},Yt=async(ke,Te)=>{try{await fr(ke+"/"+$,ke+"/"+Te,!1),_(Be=>!Be),je(!1)}catch{}},Vn=ke=>{const Te=ke.target.value,Be=!Gu(Te.toString()),it=!Te.toString()||Be;we(Be),Ce(it),ae(!Te||Te===$)},pr=he||xe||Me,Wn=m.jsxs(Sn,{title:s("fileBrowser.renameFile.modalTitle"),open:Xe,onCancel:At,onOk:()=>Yt(C,h.current&&h.current.input?h.current.input.value:$),okText:s("fileBrowser.renameFile.rename"),cancelText:s("fileBrowser.renameFile.cancel"),okButtonProps:{disabled:pr},children:[m.jsx(An,{message:s("fileBrowser.attention"),description:s("fileBrowser.renameFile.attention"),type:"warning",showIcon:!0,style:{marginBottom:16}}),m.jsx("div",{style:{display:"flex",flexDirection:"column",gap:16,justifyContent:"space-between"},children:m.jsx(qt.Item,{validateStatus:xe?"error":"",help:xe?s("inputValidator.invalidCharactersDetected",{invalidChar:kp}):"",required:!0,children:m.jsx(Jt,{ref:h,type:"text",defaultValue:$,onChange:Vn,placeholder:$,status:xe?"error":""})})})]},"renameModal-"+Je),Ms=()=>{Ke(ke=>ke+1),tt(!0)},Zc=()=>{tt(!1)},vf=()=>{vt(ke=>[...ke,...Ge]),tt(!1),bt([])},Qc=(ke,Te,Be)=>{const it=[];if(ke.length>0)for(const Ot of ke){const Qt=ke.find(wn=>wn.name===Ot.name&&hu.some(Sr=>wn.name.toLowerCase().endsWith(Sr)));Qt&&it.push({uid:Tt(),name:Qt.name,path:Te})}bt(it)},_Z=m.jsxs("div",{style:{display:"flex",gap:8,justifyContent:"flex-end",padding:"16px 0",margin:"-24px -24px -12px -24px",background:u.colorBgElevated},children:[m.jsx(ct,{onClick:Zc,children:s("tonies.selectFileModal.cancel")}),m.jsx(ct,{type:"primary",onClick:vf,children:s("tonies.selectFileModal.ok")})]}),$Z=m.jsx(Sn,{className:"sticky-footer",title:s("tonies.selectFileModal.selectFile"),open:Et,onOk:vf,onCancel:Zc,width:"auto",footer:_Z,children:m.jsx(dk,{special:"library",maxSelectedRows:oB-et.length-1,trackUrl:!1,filetypeFilter:hu,onFileSelectChange:Qc},at)}),OZ=()=>{ae(!0),we(!1),ot(Te=>Te+1),N(Qo.id);const ke=[];for(const Te of D){const Be=I.find(it=>it.name===Te&&hu.some(Ot=>it.name.toLowerCase().endsWith(Ot)));Be&&ke.push({uid:Tt(),name:Be.name,path:C})}vt(ke),ht(!0)},NZ=()=>{ht(!1),ge(C),vt([])},kZ=async()=>{var it,Ot;St(!0);const ke=(Ot=(it=g==null?void 0:g.current)==null?void 0:it.input)==null?void 0:Ot.value,Te=Ye.loading(s("fileBrowser.encodeFiles.encodingInProgress"),0),Be=et.map(Qt=>`source=${encodeURIComponent(Qt.path+"/"+Qt.name)}`).join("&")+`&target=${encodeURIComponent(Vt(O)+"/"+ke+".taf")}`;try{(await Ii.apiPostTeddyCloudRaw(`/api/fileEncode?special=${e}`,Be)).ok?(Te(),Ye.success(s("fileBrowser.encodeFiles.encodingSuccessful")),ht(!1),N("1"),A([]),_(!R)):(Te(),Ye.error(s("fileBrowser.encodeFiles.encodingFailed")))}catch{Te(),Ye.error(s("fileBrowser.encodeFiles.encodingFailed"))}St(!1)},AZ=vX(Uy,{activationConstraint:{distance:10}}),MZ=({active:ke,over:Te})=>{ke.id!==(Te==null?void 0:Te.id)&&vt(Be=>{const it=Be.findIndex(Qt=>Qt.uid===ke.id),Ot=Be.findIndex(Qt=>Qt.uid===(Te==null?void 0:Te.id));return Gy(Be,it,Ot)})},PZ=ke=>{const Te=et.indexOf(ke),Be=et.slice();Be.splice(Te,1),vt(Be)},DZ=()=>{vt(ke=>[...ke].sort((Te,Be)=>Te.name.localeCompare(Be.name)))},LZ=ke=>{const Te=ke.target.value,Be=!Gu(Te.toString()),it=et.length>0&&!Te.toString()||Be;we(Be),Ce(it),ae(Te==="")},FZ=m.jsxs(Sn,{title:s("fileBrowser.encodeFiles.modalTitle"),open:$t,onCancel:NZ,onOk:kZ,okText:s("fileBrowser.encodeFiles.encode"),cancelText:s("fileBrowser.encodeFiles.cancel"),zIndex:1e3,width:"auto",okButtonProps:{disabled:rt||Me||he||et.length===0},children:[$Z,m.jsx(NX,{sensors:[AZ],onDragEnd:MZ,children:m.jsxs(DX,{items:et.map(ke=>ke.uid),strategy:AX,disabled:rt,children:[m.jsx(ct,{disabled:rt,onClick:Ms,children:s("fileBrowser.encodeFiles.addFiles")}),et.map(ke=>m.jsx(xze,{originNode:m.jsx("div",{children:ke.name}),onRemove:PZ,disabled:rt,fileObjectList:et,file:ke},ke.uid))]})}),m.jsx(ka,{direction:"vertical",style:{display:"flex"},children:et.length>0?m.jsxs(m.Fragment,{children:[m.jsx(ka,{direction:"horizontal",style:{width:"100%",display:"flex",alignItems:"flex-start"},children:m.jsx(ct,{type:"default",disabled:rt,onClick:DZ,children:s("tonies.encoder.sortAlphabetically")})}),m.jsx(Rr,{}),m.jsx("div",{style:{width:"100%"},className:"encoder",children:m.jsxs(ka,{direction:"vertical",style:{width:"100%"},children:[m.jsxs(ka.Compact,{direction:"horizontal",style:{width:"100%",display:"flex",alignItems:"flex-end",justifyContent:"flex-end"},children:[m.jsx(Jt,{type:"text",style:{maxWidth:180,borderTopRightRadius:0,borderBottomRightRadius:0},disabled:!0,value:s("tonies.encoder.saveAs")}),kt,m.jsx(Zt,{title:s("fileBrowser.createDirectory.createDirectory"),children:m.jsx(ct,{disabled:rt,icon:m.jsx(FR,{}),onClick:()=>{ge(Vt(O)),yr()},style:{borderRadius:0}})}),m.jsx(Jt,{ref:g,addonAfter:".taf",required:!0,status:Me?"error":"",onChange:LZ,disabled:rt})]}),xe?m.jsx("div",{style:{textAlign:"end",color:u.colorErrorText},children:s("inputValidator.invalidCharactersDetected",{invalidChar:kp})}):""]})})]}):m.jsx(m.Fragment,{})})]},"encodeModal-"+lt),jZ=()=>{qe(!0)},Nk=()=>{Qe([]),qe(!1)},BZ={name:"file",multiple:!0,fileList:We,customRequest:async ke=>{const{onSuccess:Te,onError:Be,file:it}=ke;Te("Ok")},onChange(ke){const{status:Te,fileList:Be}=ke;Te!=="uploading"&&(Qe(Be),console.log(ke.file,ke.fileList))},onDrop(ke){console.log("Dropped files",ke.dataTransfer.files)},onRemove:ke=>{Qe(Te=>Te.filter(Be=>Be.uid!==ke.uid))}},zZ=async ke=>{if(!ke.length)return;Rt(!0);let Te=!1;for(let Be=0;BeSr.filter(Ur=>Ur.uid!==it.uid)),Ye.success(s("fileBrowser.upload.uploadSuccessfulForFile",{file:it.name}))):(Te=!0,Ot(),Qe(Sr=>Sr.map(Ur=>Ur.uid===it.uid?{...Ur,status:"Failed"}:Ur)),Ye.error(s("fileBrowser.upload.uploadFailedForFile",{file:it.name})))}catch{Te=!0,Ot(),Ye.error(s("fileBrowser.upload.uploadFailedForFile",{file:it.name})),Qe(Sr=>Sr.map(Ur=>Ur.uid===it.uid?{...Ur,status:"Failed"}:Ur))}}Te?(_(!R),Ye.error(s("fileBrowser.upload.uploadFailed"))):(_(!R),qe(!1),Ye.success(s("fileBrowser.upload.uploadSuccessful"))),Rt(!1)},HZ=m.jsxs("div",{style:{display:"flex",gap:8,justifyContent:"flex-end",padding:"16px 0",margin:"-24px -24px -12px -24px",background:u.colorBgElevated},children:[m.jsx(ct,{onClick:Nk,children:s("fileBrowser.upload.cancel")}),m.jsx(ct,{type:"primary",onClick:()=>zZ(We),loading:ut,disabled:We.length===0||ut,children:s(ut?"fileBrowser.upload.uploading":"fileBrowser.upload.upload")})]}),UZ=m.jsx(Sn,{className:"sticky-footer",title:s("fileBrowser.upload.modalTitle"),open:ft,onCancel:Nk,footer:HZ,children:m.jsx("div",{style:{width:"100%",marginBottom:8},children:m.jsxs(vm.Dragger,{...BZ,style:{width:"100%",marginBottom:8},children:[m.jsx("p",{className:"ant-upload-drag-icon",children:m.jsx(tN,{})}),m.jsx("p",{className:"ant-upload-text",children:s("fileBrowser.upload.uploadText")}),m.jsx("p",{className:"ant-upload-hint",children:s("fileBrowser.upload.uploadHint")})]})})}),kk=(ke,Te,Be)=>{try{y.open({type:"loading",content:s("fileBrowser.messages.migrationOngoing"),duration:0});const it=`ruid=${ke}&libroot=${Te}`;Ii.apiPostTeddyCloudRaw("/api/migrateContent2Lib",it,Be).then(Ot=>Ot.text()).then(Ot=>{y.destroy(),Ot==="OK"?(y.open({type:"success",content:s("fileBrowser.messages.migrationSuccessful")}),_(Qt=>!Qt)):y.open({type:"error",content:s("fileBrowser.messages.migrationFailed")+": "+Ot})}).catch(Ot=>{y.destroy(),y.open({type:"error",content:s("fileBrowser.messages.migrationFailed")+": "+Ot})})}catch(it){y.destroy(),y.open({type:"error",content:s("fileBrowser.messages.migrationFailed")+": "+it})}},VZ=ke=>{B(ke.target.value),f.current=ke.target.selectionStart,H(!0)},WZ=()=>{B(""),f.current=0},GZ=()=>{H(!0)},qZ=()=>{H(!1)},KZ=ke=>D.includes(ke.key)?"highlight-row":"",YZ=ke=>{A(ke)},XZ=ke=>{const Te=ke===".."?C.split("/").slice(0,-1).join("/"):`${C}/${ke}`;a&&d(`?path=${Te}`),H(!1),A([]),E(Te)},Ak=(ke,Te)=>Te.reduce((Be,it)=>{if(Be&&Be[it]!==void 0)return Be[it]},ke),Mk=(ke,Te,Be)=>{const it=Array.isArray(Be)?Ak(ke,Be):ke[Be],Ot=Array.isArray(Be)?Ak(Te,Be):Te[Be];return it===void 0&&Ot===void 0?0:it===void 0?1:Ot===void 0?-1:typeof it=="string"&&typeof Ot=="string"?it.localeCompare(Ot):typeof it=="number"&&typeof Ot=="number"?it-Ot:(console.log("Unsupported types for sorting:",ke,Te),console.log("Unsupported types for sorting field:",Be,it,Ot),0)},ZZ=(ke,Te)=>ke.isDir===Te.isDir?Mk(ke,Te,"name"):ke.isDir?-1:1,QZ=ke=>ke>0&&ke<=oB;var Dl=[{title:D.length>0?m.jsxs("div",{style:{display:"flex",gap:8,minHeight:32},children:[e==="library"&&I.filter(ke=>D.includes(ke.name)&&!ke.isDir).length>0?m.jsx(Zt,{title:s("fileBrowser.moveMultiple"),children:m.jsx(ct,{icon:m.jsx(PP,{}),onClick:()=>mn(""),disabled:D.length===0})},"moveMultiple"):"",m.jsx(Zt,{title:s("fileBrowser.deleteMultiple"),children:m.jsx(ct,{icon:m.jsx(Ed,{}),onClick:Rn,disabled:D.length===0})},"deleteMultiple"),QZ(I.filter(ke=>D.includes(ke.name)&&hu.some(Te=>ke.name.toLowerCase().endsWith(Te))).length)&&e==="library"?m.jsx(Zt,{title:s("fileBrowser.encodeFiles.encodeFiles")+hu.join(", "),children:m.jsx(ct,{icon:m.jsx(LR,{}),onClick:OZ,disabled:D.length===0})},"encodeFiles"):""]}):m.jsx("div",{style:{minHeight:32}}),dataIndex:["tonieInfo","picture"],key:"picture",sorter:void 0,width:10,render:(ke,Te)=>{var Be,it;return Te&&((Be=Te.tonieInfo)!=null&&Be.picture)?m.jsx("img",{src:Te.tonieInfo.picture,alt:s("tonies.content.toniePicture"),onClick:()=>Tn(Te),style:{width:100,cursor:!Te.isDir&&((it=Te==null?void 0:Te.tonieInfo)!=null&&it.tracks)?"help":"default"}},`picture-${Te.name}`):m.jsx(m.Fragment,{})},showOnDirOnly:!1},{title:s("fileBrowser.name"),dataIndex:"name",key:"name",sorter:ZZ,defaultSortOrder:"ascend",render:(ke,Te)=>{var Be,it,Ot,Qt,wn;return Te&&m.jsxs("div",{children:[m.jsxs("div",{className:"showSmallDevicesOnly",children:[m.jsxs("div",{children:[m.jsxs("div",{style:{wordBreak:Te.isDir?"normal":"break-word"},children:[Te.isDir?"["+Te.name+"]":Te.name," "]}),!Te.isDir&&Te.size?"("+Wu(Te.size)+")":""]}),m.jsx("div",{children:(Be=Te.tonieInfo)==null?void 0:Be.model}),m.jsx("div",{style:{wordBreak:Te.isDir?"normal":"break-word"},children:((it=Te.tonieInfo)!=null&&it.series?(Ot=Te.tonieInfo)==null?void 0:Ot.series:"")+((Qt=Te.tonieInfo)!=null&&Qt.episode?" - "+((wn=Te.tonieInfo)==null?void 0:wn.episode):"")}),m.jsx("div",{children:!Te.isDir&&new Date(Te.date*1e3).toLocaleString()})]}),m.jsxs("div",{className:"showMediumDevicesOnly",children:[m.jsxs("div",{children:[m.jsxs("div",{style:{wordBreak:Te.isDir?"normal":"break-word"},children:[Te.isDir?"["+Te.name+"]":Te.name," "]}),!Te.isDir&&Te.size?"("+Wu(Te.size)+")":""]}),m.jsx("div",{children:!Te.isDir&&new Date(Te.date*1e3).toLocaleString()})]}),m.jsx("div",{className:"showBigDevicesOnly",children:Te.isDir?"["+Te.name+"]":Te.name})]},`name-${Te.name}`)},filteredValue:[j],onFilter:(ke,Te)=>{var it,Ot,Qt,wn;const Be=ke.toLowerCase();return Te.name===".."||Te.name.toLowerCase().includes(Be)||!Te.isDir&&"tafHeader"in Te&&Te.tafHeader.size&&Wu(Te.tafHeader.size).toString().includes(Be)||"tafHeader"in Te&&((it=Te.tafHeader.audioId)==null?void 0:it.toString().includes(Be))||"tonieInfo"in Te&&((Ot=Te.tonieInfo)==null?void 0:Ot.model.toLowerCase().includes(Be))||"tonieInfo"in Te&&((Qt=Te.tonieInfo)==null?void 0:Qt.series.toLowerCase().includes(Be))||"tonieInfo"in Te&&((wn=Te.tonieInfo)==null?void 0:wn.episode.toLowerCase().includes(Be))},showOnDirOnly:!0},{title:s("fileBrowser.size"),dataIndex:"size",key:"size",render:(ke,Te)=>m.jsx("div",{children:Te.isDir?"":Wu(ke)},`size-${Te.name}`),showOnDirOnly:!1,responsive:["xl"]},{title:s("fileBrowser.model"),dataIndex:["tonieInfo","model"],key:"model",showOnDirOnly:!1,responsive:["xl"],render:(ke,Te)=>{var Be;return m.jsx("div",{children:(Be=Te.tonieInfo)==null?void 0:Be.model},`model-${Te.name}`)}},{title:m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"showMediumDevicesOnly",children:[s("fileBrowser.model"),"/",s("fileBrowser.series"),"/",s("fileBrowser.episode")]}),m.jsx("div",{className:"showBigDevicesOnly",children:s("fileBrowser.series")})]}),dataIndex:["tonieInfo","series"],key:"series",render:(ke,Te)=>{var Be,it,Ot,Qt,wn,Sr,Ur;return m.jsxs("div",{children:[m.jsxs("div",{className:"showMediumDevicesOnly",children:[m.jsx("div",{children:(Be=Te.tonieInfo)==null?void 0:Be.model}),m.jsx("div",{style:{wordBreak:"break-word"},children:((it=Te.tonieInfo)!=null&&it.series?(Ot=Te.tonieInfo)==null?void 0:Ot.series:"")+((Qt=Te.tonieInfo)!=null&&Qt.episode?" - "+((wn=Te.tonieInfo)==null?void 0:wn.episode):"")})]}),m.jsx("div",{className:"showBigDevicesOnly",children:(Sr=Te.tonieInfo)!=null&&Sr.series?(Ur=Te.tonieInfo)==null?void 0:Ur.series:""})]},`series-${Te.name}`)},showOnDirOnly:!1,responsive:["md"]},{title:s("fileBrowser.episode"),dataIndex:["tonieInfo","episode"],key:"episode",showOnDirOnly:!1,responsive:["xl"],render:(ke,Te)=>{var Be;return m.jsx("div",{children:(Be=Te.tonieInfo)==null?void 0:Be.episode},`episode-${Te.name}`)}},{title:s("fileBrowser.date"),dataIndex:"date",key:"date",render:(ke,Te)=>m.jsx("div",{children:new Date(ke*1e3).toLocaleString()},`date-${Te.name}`),showOnDirOnly:!0,responsive:["xl"]},{title:m.jsx("div",{className:"showMediumDevicesOnly showBigDevicesOnly",children:s("fileBrowser.actions")}),dataIndex:"controls",key:"controls",sorter:void 0,render:(ke,Te)=>{let Be=[];return Te.tafHeader?(Be.push(m.jsx(Zt,{title:s("fileBrowser.playFile"),children:m.jsx(Li,{style:{margin:"4px 8px 4px 0",padding:4},onClick:()=>{var it;return c(encodeURI("/content"+C+"/"+Te.name)+"?ogg=true&special="+e+(r?`&overlay=${r}`:""),Te.tonieInfo,(it=Te.tafHeader)==null?void 0:it.trackSeconds)}})},`action-play-${Te.name}`)),e!=="library"&&(Be.push(m.jsx(Zt,{title:s("fileBrowser.migrateContentToLib"),children:m.jsx(ixe,{onClick:()=>kk(C.replace("/","")+Te.name,!1,r),style:{margin:"4px 8px 4px 0",padding:4}})},`action-migrate-${Te.name}`)),Be.push(m.jsx(Zt,{title:s("fileBrowser.migrateContentToLibRoot"),children:m.jsx(YCe,{onClick:()=>kk(C.replace("/","")+Te.name,!0,r),style:{margin:"4px 8px 4px 0",padding:4}})},`action-migrate-root-${Te.name}`)))):hu.some(it=>Te.name.endsWith(it))&&Be.push(m.jsx(Zt,{title:s("fileBrowser.playFile"),children:m.jsx(Li,{style:{margin:"4px 8px 4px 0",padding:4},onClick:()=>c(encodeURI("/content"+C+"/"+Te.name)+"?special="+e+(r?`&overlay=${r}`:""),Te.tonieInfo)})},`action-play-${Te.name}`)),n&&Te.name.includes(".tap")&&(Be.push(m.jsx(Zt,{title:s("fileBrowser.tap.edit"),children:m.jsx(yg,{style:{margin:"4px 8px 4px 0",padding:4},onClick:()=>Gt(C+"/"+Te.name)})},`action-edit-${Te.name}`)),Be.push(m.jsx(Zt,{title:s("fileBrowser.tap.copy"),children:m.jsx(QO,{style:{margin:"4px 8px 4px 0",padding:4}})},`action-copy-${Te.name}`))),Te.tafHeader&&Be.push(m.jsx(Zt,{title:s("fileBrowser.tafMeta.edit"),children:m.jsx(yg,{style:{margin:"4px 8px 4px 0",padding:4},onClick:()=>Bt()})},`action-edit-${Te.name}`)),e==="library"&&(!Te.isDir&&Te.name!==".."&&Be.push(m.jsx(Zt,{title:s("fileBrowser.rename"),children:m.jsx(lwe,{onClick:()=>Xc(Te.name),style:{margin:"4px 8px 4px 0",padding:4}})},`action-rename-${Te.name}`)),!Te.isDir&&Te.name!==".."&&Be.push(m.jsx(Zt,{title:s("fileBrowser.move"),children:m.jsx(PP,{onClick:()=>mn(Te.name),style:{margin:"4px 8px 4px 0",padding:4}})},`action-move-${Te.name}`))),Te.name!==".."&&Be.push(m.jsx(Zt,{title:s("fileBrowser.delete"),children:m.jsx(Ed,{onClick:()=>wt(Te.name,C+"/"+Te.name,"?special="+e+(r?`&overlay=${r}`:"")),style:{margin:"4px 8px 4px 0",padding:4}})},`action-delete-${Te.name}`)),Be},showOnDirOnly:!1}];return Dl.forEach(ke=>{ke.hasOwnProperty("sorter")||(ke.sorter=(Te,Be)=>Mk(Te,Be,ke.dataIndex))}),o&&(Dl=Dl.filter(ke=>ke.showOnDirOnly)),i&&(Dl=Dl.filter(ke=>typeof ke.key=="string"?i.includes(ke.key):!1)),m.jsxs(m.Fragment,{children:[S,m.jsx(Ad,{title:s("fileBrowser.confirmDeleteModal"),open:Ne,okText:s("fileBrowser.delete"),cancelText:s("fileBrowser.cancel"),content:s("fileBrowser.confirmDeleteDialog",{fileToDelete:Ze}),handleOk:cn,handleCancel:Ct}),m.jsx(Ad,{title:s("fileBrowser.confirmDeleteModal"),open:me,okText:s("fileBrowser.delete"),cancelText:s("fileBrowser.cancel"),content:s("fileBrowser.confirmMultipleDeleteDialog"),handleOk:ur,handleCancel:Ct}),Mr,Ft,yn,UZ,Ci,Wn,FZ,Y?m.jsx(ck,{open:V,tonieCardOrTAFRecord:Y,onClose:()=>te(!1),overlay:r}):"",m.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start"},children:[m.jsxs("div",{style:{display:"flex",flexDirection:"row",marginBottom:8},children:[m.jsx("div",{style:{lineHeight:1.5,marginRight:16},children:s("tonies.currentPath")}),en(C,Pt)]}),e==="library"?m.jsx("div",{style:{width:"100%",marginBottom:8},children:m.jsxs("div",{style:{display:"flex",flexWrap:"wrap",gap:8},children:[m.jsx(ct,{size:"small",onClick:yr,style:{marginBottom:8},children:s("fileBrowser.createDirectory.createDirectory")}),m.jsx(ct,{size:"small",onClick:jZ,style:{marginBottom:8},children:s("fileBrowser.upload.showUploadFilesDragNDrop")})]})}):""]}),m.jsx(Ja,{dataSource:I,columns:Dl,rowKey:ke=>ke.name,pagination:!1,onRow:ke=>({onDoubleClick:()=>{ke.isDir?XZ(ke.name):ke.name.includes(".json")||ke.name.includes(".tap")?Qn(C+"/"+ke.name):ke.tafHeader&&er(ke.name,ke.tafHeader)}}),rowClassName:KZ,rowSelection:{selectedRowKeys:D,onChange:YZ,getCheckboxProps:ke=>({disabled:ke.name===".."}),onSelectAll:(ke,Te)=>{const Be=ke?Te.filter(it=>it.name!=="..").map(it=>it.name):[];A(Be)}},components:{header:{wrapper:ke=>m.jsx("thead",{...ke}),row:ke=>m.jsxs(m.Fragment,{children:[m.jsx("tr",{...ke}),m.jsx("tr",{children:m.jsx("th",{style:{padding:"10px 8px"},colSpan:Dl.length+1,children:m.jsx(Jt,{placeholder:s("fileBrowser.filter"),value:j,onChange:VZ,onFocus:GZ,onBlur:qZ,ref:b,style:{width:"100%"},autoFocus:z,addonAfter:m.jsx(ta,{onClick:WZ,disabled:j.length===0,style:{color:j.length===0?u.colorTextDisabled:u.colorText,cursor:j.length===0?"default":"pointer"}})})})})]}),cell:ke=>m.jsx("th",{...ke,style:{position:"sticky",top:0,zIndex:20}})}}}),m.jsx(pX,{open:Q,initialValuesJson:G?JSON.stringify(G,null,2):void 0,onCreate:jt,onCancel:()=>{ee(!1)}},oe)]})},{Option:Cze}=Ar,Eze=()=>{const{t:e}=Nt(),{tonieBoxContentDirs:t,overlay:n,handleSelectChange:r}=gk();return m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(Go,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(Go,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")},{title:e("tonies.navigationTitle")},{title:e("tonies.content.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignContent:"center",flexDirection:"row",alignItems:"center"},children:[m.jsx("h1",{children:e("tonies.content.title")}),t.length>1?m.jsx(Ar,{id:"contentDirectorySelect",defaultValue:"",onChange:r,style:{maxWidth:"300px"},value:n,title:e("tonies.content.showToniesOfBoxes"),children:t.map(([a,o,i])=>m.jsx(Cze,{value:i,children:o.join(", ")},i))}):""]}),m.jsx(wk,{special:"",overlay:n})]})]})]})},Ize=()=>{const{t:e}=Nt();return m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(Go,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(Go,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")},{title:e("tonies.navigationTitle")},{title:e("tonies.library.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsx("h1",{children:e("tonies.library.title")}),m.jsx(wk,{special:"library"})]})]})]})},{Text:Tze}=bn,Rze=({originNode:e,fileList:t,file:n,onRemove:r,disabled:a})=>{const{attributes:o,listeners:i,setNodeRef:s,transform:c,transition:u,isDragging:d}=FX({id:n.uid}),{t:f}=Nt(),p={transform:Md.Transform.toString(c),transition:u,cursor:"move"};return m.jsx("div",{ref:s,style:p,className:d?"is-dragging":"",...o,...i,children:m.jsxs("div",{className:"ant-upload-list-item ant-upload-list-item-undefined",children:[m.jsx("div",{className:"ant-upload-list-item-thumbnail ant-upload-list-item-file",children:m.jsxs("span",{role:"img","aria-label":"file",className:"anticon anticon-file",children:[t.indexOf(n)+1,"."]})}),m.jsxs("span",{className:"ant-upload-list-item-name",title:n.name,children:[m.jsx("span",{className:"",children:n.name}),m.jsx("br",{}),m.jsx(Tze,{type:"secondary",children:Wu(n.size?n.size:-1)})]}),m.jsx("span",{className:"ant-upload-list-item-actions picture",children:m.jsx(ct,{title:f("tonies.encoder.removeFile"),onClick:()=>r(n),disabled:a,icon:m.jsx(Ed,{})})})]})})};function _ze(e,t,n,r,a,o){const i=new FileReader;i.onload=async s=>{try{if(s.target==null)return;const c=s.target.result,u=new AudioContext,d=48e3,f=await u.decodeAudioData(c),p=new OfflineAudioContext({numberOfChannels:f.numberOfChannels,length:Math.round(f.length*d/f.sampleRate),sampleRate:d}),g=p.createBufferSource();g.buffer=f,g.connect(p.destination),g.start();const h=await p.startRendering(),b=h.numberOfChannels,y=new Float32Array(h.getChannelData(0)),S=b>1?new Float32Array(h.getChannelData(1)):new Float32Array(h.getChannelData(0)),v=new Int16Array(y.length+S.length);for(let x=0,w=0;x{t("Failed to read the file")},a.file&&i.readAsArrayBuffer(a.file)}const $ze=e=>Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&"),Lh=new xn(pn()),{useToken:Oze}=Ea,vu={id:"1",pId:"-1",value:"1",title:"/"},Fh=99,Nze=()=>{const{t:e}=Nt(),{token:t}=Oze(),[n,r]=Xe.useMessage(),[a,o]=l.useState(!1),[i,s]=l.useState([]),[c,u]=l.useState(!1),[d,f]=l.useState(!1),[p,g]=l.useState(""),[h,b]=l.useState(vu.id),[y,S]=l.useState([vu]),[v,x]=l.useState(!1),[C,w]=l.useState(""),[E,I]=l.useState(!1),[T,R]=l.useState(!1),_=l.useRef(null);let $=0;l.useEffect(()=>{(async()=>{const U=new xn(pn());let q=!1;try{const X=await U.apiGetTeddyCloudSettingRaw("debug.web.pcm_encode_console_url");if(!X.ok)throw new Error(`HTTP error! status: ${X.status}`);q=(await X.json()).toString()==="true"}catch(X){console.error("Error fetching debug.web.pcm_encode_console_url: ",X)}o(q)})(),(async()=>{const U=L(vu.id);Lh.apiGetTeddyCloudApiRaw(`/api/fileIndexV2?path=${U}&special=library`).then(q=>q.json()).then(q=>{var X=q.files;X=X.filter(Q=>Q.isDir&&Q.name!=="..").sort((Q,ee)=>Q.name===ee.name?0:Q.name.toLowerCase()>ee.name.toLowerCase()?1:-1).map(Q=>({id:vu.id+"."+X.indexOf(Q),pId:vu.id,value:vu.id+"."+X.indexOf(Q),title:Q.name})),S(y.concat(X))})})()},[]),l.useEffect(()=>{v&&setTimeout(()=>{_.current&&_.current.focus()},0)},[v]),l.useEffect(()=>{$=i.length},[i]);const P=vX(Hy,{activationConstraint:{distance:10}}),D=({active:J,over:G})=>{J.id!==(G==null?void 0:G.id)&&s(U=>{const q=U.findIndex(Q=>Q.uid===J.id),X=U.findIndex(Q=>Q.uid===(G==null?void 0:G.id));return Wy(U,q,X)})},A=({fileList:J})=>{$++,$>Fh&&n.open({type:"error",content:e("tonies.encoder.maxFiles",{maxFiles:Fh})});const G=J.slice(0,Fh);if(G.length===1&&p===""){const q=G[0].name.replace(/\.[^/.]+$/,"");g(q)}s(G)},O=J=>{const G=i.indexOf(J),U=i.slice();U.splice(G,1),s(U)},N=async()=>{u(!0);const J=new FormData;for(const X of i)try{await new Promise((Q,ee)=>_ze(Q,ee,J,i,X,a))}catch(Q){Xe.error(e("tonies.encoder.errorFileProcessing")+" "+Q),u(!1);return}const G=Math.floor(Date.now()/1e3),U={name:p+".taf",audioId:G-1342177280,path:L(h),special:"library"};f(!0);const q=$ze(U);try{const X=await Lh.apiPostTeddyCloudFormDataRaw(`/api/pcmUpload?${q}`,J);X.ok?(Xe.success(e("tonies.encoder.uploadSuccessful")),s([]),g("")):Xe.error(e("tonies.encoder.uploadFailed")+": "+X.statusText),f(!1),u(!1)}catch{Xe.error(e("tonies.encoder.uploadFailed")),f(!1),u(!1)}},k={listType:"picture",multiple:!0,beforeUpload:J=>{const G=J;return G.file=J,i.push(G),s(i),!1},fileList:i,onChange:A,itemRender:(J,G)=>m.jsx(Rze,{originNode:J,fileList:i,file:G,onRemove:O,disabled:c})},M=({id:J})=>new Promise((G,U)=>{const q=L(J);Lh.apiGetTeddyCloudApiRaw(`/api/fileIndexV2?path=${q}&special=library`).then(X=>X.json()).then(X=>{let Q=X.files;Q=Q.filter(ee=>ee.isDir&&ee.name!=="..").sort((ee,oe)=>ee.name===oe.name?0:ee.name.toLowerCase()>oe.name.toLowerCase()?1:-1).map(ee=>({id:J+"."+Q.indexOf(ee),pId:J,value:J+"."+Q.indexOf(ee),title:ee.name})),S(y.concat(Q)),G(!0)}).then(()=>{U()})}),L=J=>{const G=y.filter(U=>U.value===J)[0];return G.pId==="-1"?"":L(y.filter(U=>U.id===G.pId)[0].id)+"/"+G.title},F=()=>{s(J=>[...J].sort((G,U)=>G.name.localeCompare(U.name)))},j=()=>{s([])},B=()=>{x(!0)},z=J=>{R(!Gu(J.target.value.toString())),w(J.target.value)},H=()=>{const J=L(h),G=`${h}.${y.length}`,U={id:G,pId:h,value:G,title:C};try{Lh.apiPostTeddyCloudRaw("/api/dirCreate?special=library",J+"/"+C).then(q=>q.text()).then(q=>{if(q!=="OK")throw new Error(q);S([...y,U].sort((X,Q)=>X.title===Q.title?0:X.title.toLowerCase()>Q.title.toLowerCase()?1:-1)),b(G),Xe.success(e("fileBrowser.createDirectory.directoryCreated")),x(!1),w("")}).catch(q=>{Xe.error(q.message)})}catch{Xe.error("Error while creating directory")}},V=()=>{x(!1),w(""),R(!1)},te=m.jsxs(Sn,{title:e("fileBrowser.createDirectory.modalTitle"),open:v,onCancel:V,onOk:H,okText:e("fileBrowser.createDirectory.create"),cancelText:e("fileBrowser.createDirectory.cancel"),okButtonProps:{disabled:T},children:[m.jsxs("p",{children:[e("fileBrowser.createDirectory.inDirectory")," ",m.jsxs("b",{children:[L(h),"/"]})]}),m.jsx(qt.Item,{validateStatus:T?"error":"",help:T?e("inputValidator.invalidCharactersDetected",{invalidChar:Op}):"",required:!0,children:m.jsx(Jt,{ref:_,autoFocus:!0,placeholder:e("fileBrowser.createDirectory.placeholder"),value:C,status:T?"error":"",onChange:z})})]}),Y=J=>{const G=J.target.value;I(!Gu(G)),g(G)};return m.jsxs(m.Fragment,{children:[r,m.jsx(jn,{children:m.jsx(Wo,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(Wo,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")},{title:e("tonies.navigationTitle")},{title:e("tonies.encoder.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsx("h1",{children:e("tonies.encoder.title")}),m.jsxs(Na,{direction:"vertical",style:{display:"flex"},children:[m.jsx(NX,{sensors:[P],onDragEnd:D,children:m.jsx(DX,{items:i.map(J=>J.uid),strategy:AX,disabled:c,children:m.jsxs(mm.Dragger,{...k,disabled:c,children:[m.jsx("p",{className:"ant-upload-drag-icon",children:m.jsx(eN,{})}),m.jsx("p",{className:"ant-upload-text",children:e("tonies.encoder.uploadText",{maxFiles:Fh})}),m.jsx("p",{className:"ant-upload-hint",children:e("tonies.encoder.uploadHint")})]})})}),i.length>0?m.jsxs(m.Fragment,{children:[m.jsxs(Na,{direction:"horizontal",style:{width:"100%",display:"flex",alignItems:"flex-start",flexWrap:"wrap"},children:[m.jsx(ut,{type:"default",disabled:c,onClick:F,children:e("tonies.encoder.sortAlphabetically")}),m.jsx(ut,{type:"default",disabled:c,style:{marginRight:16},onClick:j,children:e("tonies.encoder.clearList")})]}),m.jsx(Rr,{}),m.jsx("div",{style:{width:"100%"},className:"encoder",children:m.jsxs(Na,{direction:"vertical",style:{width:"100%"},children:[m.jsxs(Na.Compact,{direction:"horizontal",style:{width:"100%",display:"flex",alignItems:"flex-end",justifyContent:"flex-end"},children:[m.jsx(Jt,{type:"text",style:{maxWidth:180,borderTopRightRadius:0,borderBottomRightRadius:0},disabled:!0,value:e("tonies.encoder.saveAs")}),m.jsx(Al,{treeLine:!0,treeDataSimpleMode:!0,disabled:c,style:{maxWidth:250},value:h,dropdownStyle:{maxHeight:400,overflow:"auto"},onChange:b,loadData:M,treeData:y}),m.jsx(Zt,{title:e("fileBrowser.createDirectory.createDirectory"),children:m.jsx(ut,{disabled:c,icon:m.jsx(LR,{}),onClick:B,style:{borderRadius:0}})}),m.jsx(Jt,{addonAfter:".taf",required:!0,defaultValue:p,style:{maxWidth:300},status:i.length>0&&p===""||E?"error":"",onChange:Y,disabled:c})]}),E?m.jsx("div",{style:{textAlign:"end",color:t.colorErrorText},children:e("inputValidator.invalidCharactersDetected",{invalidChar:Op})}):"",m.jsx(Na.Compact,{style:{display:"flex",justifyContent:"flex-end",marginTop:"8px"},children:m.jsx(ut,{type:"primary",onClick:N,disabled:i.length===0||p===""||E,loading:c,children:e(c?d?"tonies.encoder.processing":"tonies.encoder.uploading":"tonies.encoder.upload")})})]})})]}):m.jsx(m.Fragment,{})]})]})]}),te]})},{Paragraph:kze}=bn,Aze=()=>{const{t:e}=Nt(),[t,n]=l.useState(!1),r=a=>{console.log("Received values of form: ",a),n(!1)};return m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(Wo,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(Wo,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")},{title:e("tonies.navigationTitle")},{title:e("tonies.tap.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsx("h1",{children:e("tonies.tap.title")}),m.jsx(An,{message:e("settings.information"),description:m.jsx("div",{children:"Development still in progress - Please be patient or support implementation of this feature!"}),type:"info",showIcon:!0,style:{marginBottom:8}}),m.jsx(wk,{special:"library",filetypeFilter:[".tap"],showColumns:["picture","name","size","date","controls"],isTapList:!0}),m.jsx(kze,{children:m.jsxs("div",{children:[m.jsx(ut,{type:"primary",style:{marginTop:8},onClick:()=>{n(!0)},children:e("tonies.tapEditor.titleCreate")}),m.jsx(pX,{open:t,onCreate:r,onCancel:()=>{n(!1)}})]})})]})]})]})},jh=new xn(pn()),Mze=({overlay:e})=>{var d;const[t,n]=l.useState(),{t:r}=Nt(),[a,o]=l.useState(""),[i,s]=l.useState(!1);l.useEffect(()=>{(async()=>{try{const p=await jh.apiGetTeddyCloudSettingRaw("core.settings_level");if(!p.ok)throw new Error(`HTTP error! status: ${p.status}`);const g=await p.json();o(g.toString())}catch(p){console.error("Error fetching settings level: ",p)}})()},[]),l.useEffect(()=>{(async()=>{var g,h;s(!0);const p=await jh.apiGetIndexGet(e);(g=p==null?void 0:p.options)!=null&&g.length&&((h=p==null?void 0:p.options)==null?void 0:h.length)>0&&n(p),s(!1)})()},[e,a]);const c=async()=>{try{await jh.apiTriggerWriteConfigGet()}catch{Xe.error("Error while saving config to file.")}},u=async f=>{try{await jh.apiPostTeddyCloudSetting("core.settings_level",f),c(),o(f)}catch{Xe.error("Error while sending data to server.")}};return m.jsxs(m.Fragment,{children:[m.jsx(An,{message:r("settings.warning"),description:m.jsx("div",{children:r("settings.warningHint")}),type:"warning",showIcon:!0,style:{margin:"8px"}}),m.jsx(Rr,{children:r("settings.title")}),m.jsx(RY,{initialValues:{test:"test"},onSubmit:f=>{},children:m.jsx(qt,{labelCol:{span:8},wrapperCol:{span:14},layout:"horizontal",children:(d=t==null?void 0:t.options)==null?void 0:d.map((f,p,g)=>{if(f.iD.includes("core.settings_level")||!f.iD.includes("core.certdir")&&!f.iD.includes("core.client_cert.")&&!f.iD.includes("core.flex_")&&!f.iD.includes("core.contentdir")&&!f.iD.includes("toniebox.")&&!f.iD.includes("cloud.enabled")&&!f.iD.includes("cloud.enableV1Claim")&&!f.iD.includes("cloud.enableV1CloudReset")&&!f.iD.includes("cloud.enableV1FreshnessCheck")&&!f.iD.includes("cloud.enableV1Log")&&!f.iD.includes("cloud.enableV1Time")&&!f.iD.includes("cloud.enableV1Ota")&&!f.iD.includes("cloud.enableV2Content")&&!f.iD.includes("cloud.cacheOta")&&!f.iD.includes("cloud.localOta")&&!f.iD.includes("cloud.cacheContent")&&!f.iD.includes("cloud.cacheToLibrary")&&!f.iD.includes("cloud.markCustomTagByPass")&&!f.iD.includes("cloud.prioCustomContent")&&!f.iD.includes("cloud.updateOnLowerAudioId")&&!f.iD.includes("cloud.dumpRuidAuthContentJson"))return null;const h=f.iD.split("."),b=g[p-1]?g[p-1].iD.split("."):[];return m.jsxs(se.Fragment,{children:[h.slice(0,-1).map((y,S)=>b[S]!==y?S===0?m.jsxs("h3",{style:{marginLeft:`${S*20}px`,marginBottom:"10px"},children:["Category ",y]},`category-${y}`):m.jsxs("h4",{style:{marginLeft:`${S*10}px`,marginTop:"10px",marginBottom:"10px"},children:[".",y]},`category-${y}`):null),m.jsx(_Y,{option:f,overlayId:e},`option-item-${f.iD}`)]},`option-${f.iD}`)})})}),m.jsx(Rr,{children:r("settings.levelLabel")}),m.jsxs(mo.Group,{value:a,onChange:f=>u(f.target.value),style:{display:"flex",justifyContent:"center",marginTop:8},disabled:i,children:[m.jsx(mo.Button,{value:"1",children:"Basic"}),m.jsx(mo.Button,{value:"2",children:"Detail"}),m.jsx(mo.Button,{value:"3",children:"Expert"})]})]})},iB=new xn(pn());function BX(){const[e,t]=l.useState([]);return l.useEffect(()=>{async function n(){var r=[];try{const i=await(await iB.apiGetTeddyCloudApiRaw("/api/tonieboxesJson")).json();r=[...r,...i]}catch(o){console.error("Error fetching and transforming toniebox data:",o)}try{const i=await(await iB.apiGetTeddyCloudApiRaw("/api/tonieboxesCustomJson")).json();r=[...r,...i]}catch(o){console.error("Error fetching and transforming custom toniebox data:",o)}const a=r.map(o=>({id:o.id,name:o.name,img_src:o.img_src,crop:o.crop||null}));t(a)}n()},[]),e}const pa=new xn(pn()),{Paragraph:tI,Text:Pze}=bn,{Meta:Dze}=Jd,{useToken:Lze}=Ea,Fze=({tonieboxCard:e,tonieboxImages:t})=>{var xe,ge,Pe,Ve,Ae;const{t:n}=Nt(),{token:r}=Lze(),[a,o]=Xe.useMessage(),[i,s]=l.useState(!1),[c,u]=l.useState(""),[d,f]=l.useState(""),[p,g]=l.useState(""),[h,b]=l.useState(!1),[y,S]=l.useState(null),[v,x]=l.useState(),[C,w]=l.useState(!1),[E,I]=l.useState(!1),[T,R]=l.useState(!1),[_,$]=l.useState(e.boxModel),[P,D]=l.useState(e.boxModel),[A,O]=l.useState(e.boxName),[N,k]=l.useState(e.boxName),[M,L]=l.useState(null),[F,j]=l.useState(!1),[B,z]=l.useState(!0),[H,V]=l.useState(0);l.useEffect(()=>{(async()=>{const Oe=await pa.apiGetTonieboxApiAccess(e.ID);z(Oe)})()},[e.ID,C]),l.useEffect(()=>{(async()=>{const He=await pa.apiGetTonieboxStatus(e.ID);s(He)})(),(async()=>{const He=await pa.apiGetTonieboxVersion(e.ID),ze={0:"UNKNOWN",1:"CC3200",2:"CC3235",3:"ESP32"};if(He in ze){const Ze=ze[He];u(Ze)}else u("UNKNOWN")})(),(async()=>{const He=await pa.apiGetTonieboxLastRUID(e.ID);if(He!=="ffffffffffffffff"&&He!==""){const ze=await pa.apiGetTonieboxLastRUIDTime(e.ID);(async()=>{const je=await pa.apiGetTagIndex(e.ID);G(je.filter(Je=>Je.ruid===He),ze)})()}})(),i||(async()=>{const ze=await pa.apiGetLastOnline(e.ID);f(ze)})(),(async()=>{const ze=await(await pa.apiGetTeddyCloudSettingRaw("internal.ip",e.ID)).text();g(ze)})(),J(e.boxModel),D(e.boxModel)},[e.ID,e.boxModel]),l.useEffect(()=>{if(p&&c==="CC3200")try{fetch(`http://${p}/api/ajax?cmd=box-battery&sub=stats`).then(be=>be.text()).then(be=>{console.log("Battery Stats fetched --> assume CFW active"),b(!0)}).catch(be=>{console.log("No Battery Stats fetched --> assume CFW not active"),b(!1)})}catch{console.log("No Battery Stats fetched --> assume CFW not active"),b(!1)}},[p,c]);const te=BX(),Y=[{label:n("tonieboxes.editModelModal.unsetBoxName"),value:"-1"}].concat(te.map(be=>({label:be.name,value:be.id}))),J=be=>{const Oe=t.find(Fe=>Fe.id===be);L(Oe?m.jsx("img",{src:Oe.img_src,alt:"",style:{...ae(be),position:"absolute",top:"0",left:"0"}}):m.jsx("img",{src:"https://cdn.tonies.de/thumbnails/03-0009-i.png",alt:"",style:{filter:"opacity(0.20)",width:"100%",height:"auto",position:"absolute",top:"0",left:"0"}}))},G=(be,Oe)=>{S(m.jsx(m.Fragment,{children:m.jsx(gt,{to:"/tonies?tonieRUID="+be[0].ruid+"&overlay="+e.ID,children:m.jsx(Zt,{placement:"top",zIndex:2,title:n("tonieboxes.lastPlayedTonie")+be[0].tonieInfo.series+(be[0].tonieInfo.episode?" - "+be[0].tonieInfo.episode:"")+(Oe?" ("+Oe+")":""),children:m.jsx("img",{src:be[0].tonieInfo.picture,alt:"Tonie",style:{position:"absolute",bottom:0,right:0,zIndex:1,padding:8,borderRadius:4,height:"60%"}})})})}))},U=()=>{(async()=>{var Fe,Ke;const Oe=await pa.apiGetIndexGet(e.ID);(Fe=Oe==null?void 0:Oe.options)!=null&&Fe.length&&((Ke=Oe==null?void 0:Oe.options)==null?void 0:Ke.length)>0&&x(Oe)})(),q()},q=()=>{I(!0)},X=async()=>{I(!1)},Q=()=>{I(!1)},ee=()=>{w(!0)},oe=async()=>{w(!1)},le=()=>{w(!1)},fe=()=>{V(be=>be+1),ee()},ce=()=>{D(P===void 0?_:P),R(!0)},Te=()=>{D(_),k(N),O(N),R(!1)},Se=async()=>{J(P),$(P);const be=async()=>{await pa.apiTriggerWriteConfigGet()};try{pa.apiPostTeddyCloudSetting("boxModel",P,e.ID).then(()=>{be()}).catch(Oe=>{Xe.error(n("tonieboxes.editModelModal.errorWhileSavingConfig"))}),Xe.success(n("tonieboxes.editModelModal.successOnModelChange"))}catch(Oe){Xe.error(n("tonieboxes.editModelModal.errorOnModelChange",{error:Oe}))}},ve=async()=>{k(A);const be=async()=>{await pa.apiTriggerWriteConfigGet()};try{pa.apiPostTeddyCloudSetting("boxName",A.toString(),e.ID).then(()=>{be()}).catch(Oe=>{Xe.error(n("tonieboxes.editModelModal.errorWhileSavingConfig"))}),Xe.success(n("tonieboxes.editModelModal.successOnNameChange"))}catch(Oe){Xe.error(n("tonieboxes.editModelModal.errorOnNameChange",{error:Oe}))}},ae=be=>{const Oe=t.find(Fe=>Fe.id===be);if(Oe&&Oe.crop){const[Fe,Ke,He]=Oe.crop;return{width:"100%",height:"auto",transform:`scale(${He}) translateX(${Fe}px) translateY(${Ke}px)`}}else return{width:"100%",height:"auto"}},ie=()=>e.ID.replace(/(.{2})(?=.)/g,"$1:"),ue=async()=>{R(!1),A!==N&&ve(),_!==P&&Se()},ye=m.jsx(m.Fragment,{children:m.jsxs(ut,{type:"primary",onClick:ue,disabled:A===N&&_===P,children:[m.jsx(uq,{},"saveClick")," ",n("tonies.editModal.save")]})}),Ee=m.jsxs(Sn,{title:m.jsx(m.Fragment,{children:m.jsxs("h3",{children:[n("tonieboxes.editModelModal.editModel",{name:e.boxName}),m.jsx("br",{}),m.jsx(Pze,{type:"secondary",children:(c!=="UNKNOWN"?c:"MAC")+": "+ie()})]})}),open:T,footer:ye,onCancel:Te,children:[m.jsx(Rr,{orientation:"left",orientationMargin:"0",children:n("tonieboxes.editModelModal.name")}),m.jsx(tI,{children:m.jsx(Jt,{name:"boxName",value:A,onChange:be=>O(be.target.value),addonBefore:m.jsx(Jr,{onClick:()=>O(N),style:{color:A===N?r.colorTextDisabled:r.colorText,cursor:A===N?"default":"pointer"}})})}),m.jsx(Rr,{orientation:"left",orientationMargin:"0",children:n("tonieboxes.editModelModal.model")}),m.jsx(tI,{children:m.jsx(Ar,{options:Y,value:P,onChange:be=>D(be)})})]}),Me=m.jsxs(Sn,{title:n("tonieboxes.uploadTonieboxCertificatesModal.uploadTonieboxCertificates",{name:e.boxName}),open:E,onOk:X,onCancel:Q,children:[m.jsxs(tI,{children:[n("tonieboxes.uploadTonieboxCertificatesModal.uploadPath")," ",m.jsx("i",{children:(ge=(xe=v==null?void 0:v.options)==null?void 0:xe.find(be=>be.iD==="core.certdir"))==null?void 0:ge.value})," ",m.jsx("small",{children:(Ve=(Pe=v==null?void 0:v.options)==null?void 0:Pe.find(be=>be.iD==="core.certdir"))!=null&&Ve.overlayed?n("tonieboxes.uploadTonieboxCertificatesModal.boxSpecific"):n("tonieboxes.uploadTonieboxCertificatesModal.AttentionGeneralPath")})]}),m.jsx(dX,{overlay:e.ID})]}),Ie=m.jsx(Sn,{title:n("tonieboxes.editTonieboxSettingsModal.editTonieboxSettings",{name:e.boxName}),width:"auto",open:C,onOk:oe,onCancel:le,children:m.jsx(Mze,{overlay:e.ID},H)}),Ce=()=>{try{a.open({type:"loading",content:n("tonieboxes.messages.deleting"),duration:0}),pa.apiPostTeddyCloudSetting("removeOverlay",null,e.ID).then(be=>be.text()).then(be=>{a.destroy(),be==="OK"?(a.open({type:"success",content:n("tonieboxes.messages.deleteSuccessful")}),window.location.reload()):a.open({type:"error",content:n("tonieboxes.messages.deleteFailed")+be})}).catch(be=>{a.destroy(),a.open({type:"error",content:n("tonieboxes.messages.deleteFailed")+be})})}catch(be){a.destroy(),a.open({type:"error",content:n("tonieboxes.messages.deleteFailed")+be})}},me=()=>{j(!0)},we=()=>{Ce(),j(!1)},_e=()=>{j(!1)},Ne=m.jsx(Ad,{title:n("tonieboxes.confirmDeleteModal"),open:F,okText:n("tonieboxes.delete"),cancelText:n("tonieboxes.cancel"),content:n("tonieboxes.confirmDeleteDialog",{tonieboxToDelete:N}),handleOk:we,handleCancel:_e}),he=async()=>{try{await pa.apiTriggerWriteConfigGet()}catch{Xe.error("Error while saving config to file.")}},ke=async()=>{try{pa.apiPostTeddyCloudSetting("toniebox.api_access",!B,e.ID).then(()=>{he(),z(!B),B?Xe.success(n("tonieboxes.messages.apiAccessDisabled")):Xe.success(n("tonieboxes.messages.apiAccessEnabled"))}).catch(be=>{throw new Error(be.status+" "+be.statusText)})}catch(be){Xe.error(n("tonieboxes.messages.apiAccessNotChangedError")+be)}};return m.jsxs(m.Fragment,{children:[o,m.jsx(Jd,{hoverable:!1,size:"default",style:{background:r.colorBgContainerDisabled,cursor:"default"},title:m.jsx("span",{children:N}),cover:m.jsxs("div",{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden"},children:[y,m.jsx("img",{src:(Ae=t.find(be=>be.id==="03-0009"))==null?void 0:Ae.img_src,alt:"",style:{position:"relative",filter:"opacity(0)",width:"100%",height:"auto"}}),M]}),actions:[m.jsx(m.Fragment,{children:B?i?m.jsx(Zt,{title:n("tonieboxes.online"),children:m.jsx(FR,{style:{color:"green",cursor:"default"}})}):m.jsx(Zt,{title:n("tonieboxes.offline")+(d?" - "+n("tonieboxes.lastOnline")+": "+d:""),children:m.jsx(FR,{style:{color:r.colorTextDescription,cursor:"default"}})}):m.jsx(Zt,{title:n("tonieboxes.accessApiDisabled"),children:m.jsx(Pwe,{style:{color:"red",cursor:"pointer"},onClick:ke})})}),m.jsx(vg,{onClick:()=>ce()},"edit"),m.jsx(tN,{style:{marginRight:8},onClick:U},"certificate"),m.jsx(nN,{style:{marginRight:8},onClick:fe},"edit"),m.jsx(Ed,{style:{marginRight:8},onClick:me},"delete")],children:m.jsx(Dze,{description:[(c!=="UNKNOWN"&&c!==void 0&&c!==null?c:"MAC")+" ",h?m.jsx(Zt,{title:n("tonieboxes.linkToBoxCFW"),children:m.jsxs(gt,{to:"http://"+p,target:"_blank",children:[ie()," ",m.jsx(kwe,{})]})}):ie()]})}),Ie,Me,Ee,Ne]})},jze=({tonieboxCards:e})=>{const[t,n]=l.useState(!0),r=BX();return r.length===0&&t?m.jsx("div",{children:"Loading..."}):m.jsx(xl,{grid:{gutter:16,xs:1,sm:2,md:2,lg:3,xl:3,xxl:4},dataSource:e,renderItem:a=>m.jsx(xl.Item,{id:a.ID,children:m.jsx(Fze,{tonieboxCard:a,tonieboxImages:r})})})},Bze=()=>m.jsx("svg",{version:"1.0",xmlns:"http://www.w3.org/2000/svg",width:"12.000000pt",height:"12.000000pt",viewBox:"0 0 900.000000 900.000000",preserveAspectRatio:"xMidYMid meet",children:m.jsxs("g",{transform:"translate(0.000000,900.000000) scale(0.100000,-0.100000)",fill:"currentColor",stroke:"none",children:[m.jsx("path",{d:"M5895 8380 c-4 -6 -21 -16 -38 -24 -60 -25 -301 -236 -416 -363 -42 -46 -101 -103 -131 -127 -30 -24 -116 -104 -190 -177 -75 -74 -167 -163 -205 -199 -39 -36 -132 -124 -208 -195 -186 -175 -194 -179 -368 -195 -138 -13 -274 -10 -303 7 -45 25 -385 357 -446 434 -65 84 -279 313 -345 369 -17 14 -58 40 -91 58 -59 31 -67 32 -177 32 -87 0 -117 -3 -127 -14 -6 -8 -23 -16 -37 -18 -28 -3 -61 -47 -62 -83 -1 -12 -5 -25 -10 -30 -5 -6 -28 -64 -50 -130 -51 -151 -94 -274 -121 -345 -12 -30 -32 -86 -45 -125 -13 -38 -38 -108 -54 -154 -17 -46 -31 -85 -31 -87 0 -2 -181 -4 -402 -4 -362 0 -410 -2 -473 -19 -93 -25 -147 -55 -209 -117 -62 -62 -92 -116 -117 -209 -18 -68 -19 -160 -19 -2724 0 -2915 -4 -2713 58 -2836 31 -62 127 -155 189 -185 109 -52 -33 -49 2843 -49 2835 0 2752 -2 2840 44 111 57 194 152 230 266 20 61 20 110 20 2759 0 2673 0 2697 -20 2755 -50 147 -153 247 -300 294 -33 10 -131 15 -370 20 l-325 6 -2 50 c-9 210 -37 703 -49 855 -8 102 -14 239 -14 306 0 171 9 164 -233 164 -115 0 -188 -4 -192 -10z m-1 -652 c3 -13 6 -68 6 -123 0 -55 7 -174 15 -265 8 -91 15 -202 15 -247 l0 -83 -420 0 c-356 0 -420 2 -420 14 0 8 4 16 9 18 5 2 34 26 63 53 29 28 118 111 198 185 147 137 229 213 402 378 53 51 103 92 111 92 8 0 17 -10 21 -22z m-2697 -470 c65 -61 146 -138 181 -171 34 -32 62 -63 62 -68 0 -5 -107 -9 -255 -9 -169 0 -255 3 -255 10 0 10 30 104 49 152 18 47 40 104 56 151 9 26 23 47 31 47 7 0 66 -50 131 -112z m3746 -698 c16 0 17 -130 15 -2622 l-3 -2623 -2642 -3 -2643 -2 -2 2617 c-2 1850 0 2620 8 2627 7 8 777 10 2630 9 1440 -2 2627 -3 2637 -3z"}),m.jsx("path",{d:"M5735 6087 c-54 -22 -72 -36 -104 -83 -27 -41 -31 -57 -31 -111 0 -129 77 -205 206 -205 90 0 154 42 188 126 66 160 -100 335 -259 273z"}),m.jsx("path",{d:"M2842 5359 c-52 -16 -118 -90 -132 -148 -36 -150 102 -286 252 -250 61 14 129 75 148 134 29 86 -9 195 -83 242 -45 29 -131 39 -185 22z"}),m.jsx("path",{d:"M5035 5362 c-90 -32 -145 -106 -145 -197 0 -96 68 -183 161 -205 39 -10 57 -9 101 4 63 19 75 28 116 85 28 39 32 52 32 110 0 120 -72 199 -186 206 -32 2 -68 1 -79 -3z"}),m.jsx("path",{d:"M5730 5359 c-85 -36 -130 -105 -130 -202 0 -56 4 -70 32 -108 40 -56 52 -65 112 -85 43 -15 57 -15 100 -4 235 59 212 392 -28 406 -33 2 -72 -1 -86 -7z"}),m.jsx("path",{d:"M2818 4620 c-48 -26 -93 -82 -108 -135 -29 -103 38 -216 147 -250 54 -17 58 -17 112 0 36 12 69 33 93 57 92 94 68 260 -47 325 -52 29 -144 31 -197 3z"}),m.jsx("path",{d:"M3506 4609 c-150 -100 -116 -315 59 -375 54 -18 56 -18 109 0 89 30 156 116 156 199 0 73 -68 172 -137 198 -13 5 -50 9 -82 9 -48 0 -66 -5 -105 -31z"}),m.jsx("path",{d:"M4258 4610 c-152 -101 -119 -316 57 -376 54 -18 56 -18 109 0 89 31 156 116 156 200 0 73 -66 170 -133 195 -16 6 -54 11 -86 11 -47 0 -66 -5 -103 -30z"}),m.jsx("path",{d:"M4984 4607 c-149 -103 -115 -318 60 -373 55 -17 59 -17 111 0 52 18 92 51 128 106 22 33 23 140 1 183 -40 78 -103 117 -193 117 -50 0 -66 -5 -107 -33z"}),m.jsx("path",{d:"M5715 4623 c-79 -41 -115 -103 -115 -195 0 -42 6 -72 17 -88 36 -55 76 -88 129 -106 53 -18 55 -18 109 1 121 41 182 154 143 266 -15 46 -42 79 -90 112 -34 22 -52 27 -102 27 -36 -1 -74 -7 -91 -17z"}),m.jsx("path",{d:"M2841 3901 c-60 -24 -107 -74 -127 -134 -15 -44 -15 -57 -4 -101 41 -161 208 -217 339 -114 48 37 65 78 66 155 0 63 -3 76 -30 115 -34 49 -120 98 -169 97 -17 0 -51 -8 -75 -18z"}),m.jsx("path",{d:"M3532 3894 c-162 -80 -161 -292 0 -375 46 -24 127 -25 171 -3 73 37 127 119 127 193 -1 77 -59 158 -138 192 -59 26 -98 24 -160 -7z"}),m.jsx("path",{d:"M4279 3892 c-99 -51 -148 -176 -103 -265 86 -170 309 -169 385 2 35 80 19 159 -47 225 -36 35 -105 66 -149 66 -18 0 -57 -13 -86 -28z"}),m.jsx("path",{d:"M5015 3896 c-60 -28 -94 -63 -112 -114 -28 -81 -10 -163 48 -220 104 -102 265 -77 330 50 22 42 26 146 8 181 -34 65 -128 127 -193 127 -17 0 -53 -11 -81 -24z"}),m.jsx("path",{d:"M5727 3901 c-45 -21 -93 -65 -113 -103 -21 -40 -18 -141 5 -186 37 -72 102 -112 181 -112 151 0 251 153 191 292 -23 52 -52 80 -111 107 -54 25 -102 25 -153 2z"}),m.jsx("path",{d:"M2855 3201 c-70 -17 -128 -80 -146 -159 -25 -105 47 -216 156 -242 49 -12 62 -11 110 4 148 46 194 226 86 337 -60 62 -122 80 -206 60z"}),m.jsx("path",{d:"M3546 3196 c-181 -67 -179 -326 3 -391 69 -24 127 -15 194 29 44 29 87 112 87 166 -1 59 -43 136 -95 172 -50 34 -132 45 -189 24z"}),m.jsx("path",{d:"M4296 3196 c-145 -54 -180 -230 -69 -348 27 -29 99 -58 142 -58 71 1 142 46 182 114 38 67 38 123 1 191 -51 93 -161 136 -256 101z"}),m.jsx("path",{d:"M5038 3203 c-36 -6 -115 -77 -133 -120 -45 -107 14 -239 124 -278 52 -18 84 -19 131 -2 49 17 72 35 108 86 28 39 32 52 32 110 0 80 -26 132 -85 173 -41 28 -117 42 -177 31z"}),m.jsx("path",{d:"M5737 3200 c-44 -14 -95 -58 -117 -100 -31 -61 -28 -153 8 -207 36 -55 69 -80 126 -95 129 -34 261 76 253 212 -4 71 -21 104 -78 152 -38 32 -54 39 -105 43 -32 2 -72 0 -87 -5z"}),m.jsx("path",{d:"M3535 2463 c-44 -23 -84 -63 -106 -105 -48 -94 -2 -219 100 -270 64 -33 103 -35 163 -9 79 34 137 115 138 192 0 74 -54 156 -127 193 -41 20 -129 20 -168 -1z"}),m.jsx("path",{d:"M4285 2463 c-44 -23 -84 -63 -106 -105 -48 -94 -2 -219 100 -270 64 -33 103 -35 163 -9 79 34 137 115 138 192 0 74 -54 156 -127 193 -41 20 -129 20 -168 -1z"}),m.jsx("path",{d:"M5012 2463 c-69 -38 -104 -83 -123 -162 -10 -46 20 -134 61 -176 32 -33 107 -65 151 -65 61 0 156 64 188 127 6 12 11 49 11 83 0 94 -42 161 -122 195 -50 20 -126 19 -166 -2z"})]})}),Ca=()=>{const{t:e}=Nt(),t=Ki(),[n,r]=l.useState([]),a=s=>{const c=[];s.includes("/tonieboxes/boxsetup")&&(c.push("boxsetup"),s.includes("/tonieboxes/boxsetup/esp32")?c.push("esp32"):s.includes("/tonieboxes/boxsetup/cc3200")?c.push("cc3200"):s.includes("/tonieboxes/boxsetup/cc3235")&&c.push("cc3235")),r(u=>Array.from(new Set([...u,...c])))};l.useEffect(()=>{a(t.pathname)},[t.pathname]);const o=s=>{const c=s.find(d=>!n.includes(d)),u=n.find(d=>!s.includes(d));c?r(d=>[...d,c]):u&&r(d=>d.filter(f=>f!==u))},i=[{key:"tonieboxes",label:m.jsx(gt,{to:"/tonieboxes",style:{marginLeft:8},children:e("tonieboxes.navigationTitle")}),icon:se.createElement(Bze),title:e("tonieboxes.navigationTitle")},{key:"boxsetup",label:m.jsx(gt,{to:"/tonieboxes/boxsetup",style:{color:"currentColor"},children:e("tonieboxes.boxSetup.navigationTitle")}),icon:se.createElement(cq),title:e("tonieboxes.boxSetup.navigationTitle"),children:[{key:"identifyboxversion",label:m.jsx(gt,{to:"/tonieboxes/boxsetup/identifyboxversion",children:e("tonieboxes.boxSetup.identifyVersion.navigationTitle")}),icon:se.createElement(rm),title:e("tonieboxes.boxSetup.identifyVersion.navigationTitle")},{key:"openbox",label:m.jsx(gt,{to:"/tonieboxes/boxsetup/openboxguide",children:e("tonieboxes.boxSetup.openBoxGuide.navigationTitle")}),icon:se.createElement(tCe),title:e("tonieboxes.boxSetup.openBoxGuide.navigationTitle")},{key:"esp32",label:m.jsx(gt,{to:"/tonieboxes/boxsetup/esp32/flashing",style:{color:"currentColor",display:"flex",alignItems:"center",padding:"0 50px 0 0"},children:e("tonieboxes.esp32BoxFlashing.navigationTitle")}),icon:se.createElement(Zf),title:e("tonieboxes.esp32BoxFlashing.navigationTitle"),children:[{key:"esp32legacy",label:m.jsx(gt,{to:"/tonieboxes/boxsetup/esp32/legacy",children:e("tonieboxes.esp32BoxFlashing.legacy.navigationTitle")}),icon:se.createElement(Zf),title:e("tonieboxes.esp32BoxFlashing.legacy.navigationTitle")}]},{key:"cc3200",label:m.jsx(gt,{to:"/tonieboxes/boxsetup/cc3200/flashing",children:e("tonieboxes.cc3200BoxFlashing.navigationTitle")}),icon:se.createElement(Zf),title:e("tonieboxes.cc3200BoxFlashing.navigationTitle")},{key:"cc3235",label:m.jsx(gt,{to:"/tonieboxes/boxsetup/cc3235/flashing",children:e("tonieboxes.cc3235BoxFlashing.navigationTitle")}),icon:se.createElement(Zf),title:e("tonieboxes.cc3235BoxFlashing.navigationTitle")}]}];return m.jsx(bm,{mode:"inline",defaultOpenKeys:["sub"],openKeys:n,selectedKeys:[],onOpenChange:o,items:i})},sB=new xn(pn()),zze=()=>{const{t:e}=Nt(),[t,n]=l.useState([]),[r,a]=l.useState(!1);l.useEffect(()=>{(async()=>{const c=await sB.apiGetTonieboxesIndex();n(c)})(),(async()=>{try{const c=await sB.apiGetNewBoxesAllowed();a(c)}catch(c){Xe.error("Fetching new box allowed: "+c)}})()},[]);const o=r?m.jsx(An,{message:e("tonieboxes.newBoxesAllowed"),description:e("tonieboxes.newBoxesAllowedText"),type:"warning",showIcon:!0,style:{margin:"16px 0"}}):"";return m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(Ca,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(Ca,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")},{title:e("tonieboxes.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsx("h1",{children:e("tonieboxes.title")}),o,m.jsx(jze,{tonieboxCards:t})]})]})]})},Ja=()=>{const{t:e}=Nt(),[t,n]=l.useState([]),r=i=>{const s=[];i.includes("/contribution")&&s.push("contribution"),n(c=>Array.from(new Set([...c,...s])))};l.useEffect(()=>{r(location.pathname)},[location.pathname]);const a=i=>{const s=i.find(u=>!t.includes(u)),c=t.find(u=>!i.includes(u));s?n(u=>[...u,s]):c&&n(u=>u.filter(d=>d!==c))},o=[{key:"community",label:m.jsx(gt,{to:"/community",children:e("community.navigationTitle")}),icon:se.createElement($we),title:e("community.navigationTitle")},{key:"faq",label:m.jsx(gt,{to:"/community/faq",children:e("community.faq.navigationTitle")}),icon:se.createElement(LG),title:e("community.faq.navigationTitle")},{key:"contribution",label:m.jsx(gt,{to:"/community/contribution",style:{color:"currentColor",display:"flex",alignItems:"center",padding:"0 50px 0 0"},children:e("community.contribution.navigationTitle")}),icon:se.createElement(_xe),title:e("community.contribution.navigationTitle"),children:[{key:"toniesJson",label:m.jsx(gt,{to:"/community/contribution/tonies-json",children:e("community.contribution.toniesJson.navigationTitle")}),icon:se.createElement(M0e),title:e("community.contribution.toniesJson.navigationTitle")},{key:"translation",label:m.jsx(gt,{to:"/community/contribution/translations",children:e("community.translations.navigationTitle")}),icon:se.createElement(lq),title:e("community.translations.navigationTitle")}]},{key:"contributors",label:m.jsx(gt,{to:"/community/contributors",children:e("community.contributors.navigationTitle")}),icon:se.createElement(Qxe),title:e("community.contributors.navigationTitle")},{key:"changelog",label:m.jsx(gt,{to:"/community/changelog",children:e("community.changelog.navigationTitle")}),icon:se.createElement(j1e),title:e("community.changelog.navigationTitle")},{key:"Forum",label:m.jsx(gt,{to:"https://forum.revvox.de/",target:"_blank",children:e("community.forum.navigationTitle")}),icon:se.createElement(hxe),title:e("community.forum.navigationTitle")}];return m.jsx(bm,{mode:"inline",defaultOpenKeys:["sub"],openKeys:t,selectedKeys:[],onOpenChange:a,items:o})},{Paragraph:lB}=bn,Hze=()=>{const{t:e}=Nt();return m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(Ja,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(Ja,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")},{title:e("community.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsx("h1",{children:e("community.title")}),m.jsxs(lB,{children:[m.jsx("h2",{children:"Get involved"}),"Be a part of our global contributor community by writing code, commenting on issues, or participate in discussons in our telegram group."]}),m.jsxs(lB,{children:["Your best points of contact are the following locations",m.jsxs("ul",{children:[m.jsxs("li",{children:[m.jsx(gt,{to:"https://github.com/toniebox-reverse-engineering",target:"_blank",children:"GitHub"}),m.jsx("ul",{children:m.jsx("li",{children:"The place where all sources are stored for this and related projects. Where you can fork the repositories, contribute new or improved features, create issues or just give some feedback on already existing issues."})})]}),m.jsxs("li",{children:[m.jsx(gt,{to:"https://t.me/toniebox_reverse_engineering",target:"_blank",children:"Telegram Chat"}),m.jsx("ul",{children:m.jsx("li",{children:"The first level support if you need help or if you are interested in getting involved in the development of TeddyCloud."})})]}),m.jsxs("li",{children:[m.jsx(gt,{to:"https://forum.revvox.de/",target:"_blank",children:"Discourse Forum"}),m.jsx("ul",{children:m.jsx("li",{children:"The lively knowledge base for the project, a place to ask questions whose answers can be helpful for others."})})]}),m.jsxs("li",{children:[m.jsx(gt,{to:"https://tonies-wiki.revvox.de/docs/tools/teddycloud/",target:"_blank",children:"TeddyCloud Wiki"}),m.jsx("ul",{children:m.jsx("li",{children:"A Wiki contains, among other things, how to install TeddyCloud and how to solve possible problems."})})]})]})]})]})]})]})},{Paragraph:bu}=bn,Uze=()=>{const{t:e}=Nt(),t=["Use welcome and inclusive language.","Be respectful of differing viewpoints and experiences.","Gracefully accept constructive criticism.","Foster what's best for the community.","Show empathy for other community members.","Decisions are made based on technical merit and consensus. The Teddycloud community aspires to treat everyone equally, and to value all contributions."],n=["Write code.","Improve documentation.","Answer questions on our telegram group.","Investigate bugs and issues on GitHub.","Review and comment on pull requests from other developers.","Report an issue.","Give a “thumbs up” 👍 on issues that are relevant to you."];return m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(Ja,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(Ja,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")},{title:e("community.navigationTitle")},{title:e("community.contribution.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsx("h1",{children:e("community.contribution.title")}),m.jsxs(bu,{children:[m.jsx(bu,{children:"The Teddycloud can only grow through the contributions of this community. Thanks so much for your enthusiasm and your work - we appreciate everything you do!"}),m.jsxs(bu,{children:[m.jsx("h2",{children:"Community values"}),m.jsx(bu,{children:"In the interest of fostering an open and welcoming environment, contributors and maintainers pledge to make participation in our project and our community a harassment-free experience for everyone - regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation."}),m.jsx(bu,{children:"Examples of behaviors that contribute to creating a positive environment include:"}),m.jsx("ul",{children:t.map((r,a)=>m.jsx("li",{children:r},a))})]}),m.jsxs(bu,{children:[m.jsx("h2",{children:"Make your first contribution"}),"There are many ways to contribute to Teddycloud! You can contribute code and make improvements to the Teddycloud documentation. Our most common contributions include code, documentation, and community support.",m.jsx("ul",{children:n.map((r,a)=>m.jsx("li",{children:r},a))})]})]})]})]})]})},Vze=new xn(pn()),{Paragraph:cB}=bn,{Panel:Wze}=yl,Gze=()=>{const{t:e}=Nt(),[t,n]=l.useState({});return l.useEffect(()=>{async function r(){try{const s=(await(await Vze.apiGetTeddyCloudApiRaw("/api/toniesJson")).json()).filter(u=>u.audio_id&&u.audio_id.length===0&&!["creative-tonie","system"].includes(u.category)&&!u.model.includes("20000")).map(u=>({model:u.model,series:u.series,episodes:u.episodes,pic:u.pic,audio_id:u.audio_id||[],category:u.category,language:u.language})),c={};s.forEach(u=>{c[u.language]||(c[u.language]=[]),c[u.language].push(u)}),n(c)}catch(a){console.error("Error fetching and transforming data:",a)}}r()},[]),m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(Ja,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(Ja,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")},{title:e("community.navigationTitle")},{title:e("community.contribution.navigationTitle")},{title:e("community.contribution.toniesJson.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsx("h1",{children:e("community.contribution.toniesJson.title")}),m.jsx(cB,{children:e("community.contribution.toniesJson.text")}),m.jsx(cB,{children:m.jsx(yl,{accordion:!0,children:Object.keys(t).map((r,a)=>m.jsx(Wze,{header:r,children:m.jsx(xl,{children:Array.isArray(t[r])&&t[r].map((o,i)=>m.jsx(xl.Item,{id:o.model,children:m.jsxs("div",{children:[m.jsx("img",{src:o.pic,alt:"",style:{width:"100px",height:"auto"}}),o.model," - ",o.series," -"," ",o.episodes]})},i))})},a))})})]})]})]})},{Paragraph:Bf}=bn,qze=()=>{const{t:e}=Nt();return m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(Ja,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(Ja,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")},{title:e("community.navigationTitle")},{title:e("community.contributors.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsx("h1",{children:e("community.contributors.title")}),m.jsxs(Bf,{children:["This project relies on the tireless contributors who offer their free time and skills. Directly related to TeddyCloud are the contributors of the two projects teddycloud and teddycloud_web:",m.jsxs(Bf,{children:[m.jsx("h3",{children:"teddycloud"}),m.jsx("div",{children:"The most neccessary, but mostly invisible part of your TeddyCloud Server."}),m.jsx(gt,{to:"https://github.com/toniebox-reverse-engineering/teddycloud/graphs/contributors",target:"_blank",children:"https://github.com/toniebox-reverse-engineering/teddycloud/graphs/contributors"})]}),m.jsxs(Bf,{children:[m.jsx("h3",{children:"teddycloud_web"}),m.jsx("div",{children:"Which is actually this frontend you are using and seeing here."}),m.jsx(gt,{to:"https://github.com/toniebox-reverse-engineering/teddycloud_web/graphs/contributors",target:"_blank",children:"https://github.com/toniebox-reverse-engineering/teddycloud_web/graphs/contributors"})]}),m.jsxs(Bf,{children:["You can find more contributors to the entire topic complex in the other GitHub repositories at"," ",m.jsx(gt,{to:"https://github.com/orgs/toniebox-reverse-engineering/repositories",target:"_blank",children:"https://github.com/orgs/toniebox-reverse-engineering/repositories"})]})]}),m.jsx(Na,{}),m.jsxs(Bf,{children:[m.jsx("div",{style:{marginBottom:24},children:"A big round of applause for them!"}),m.jsx(pk,{maxNoOfGuests:100,toniesSize:150,showQuestionMark:!1,height:150})]})]})]})]})},{Paragraph:uB,Text:nI}=bn,Kze=()=>{const{t:e}=Nt(),t=[{version:"0.6.2",changes:["Stabilization backend","Provide TrackSeconds for Frontend https://github.com/toniebox-reverse-engineering/teddycloud/issues/187","Fixed bug no update of model in content.json if empty https://github.com/toniebox-reverse-engineering/teddycloud/issues/215","Added web_version.json for consistency checks, including new setting frontend.ignore_web_version_mismatch","Added frontend setting frontend.confirm_audioplayer_close","Fixed some bugs","gui: Next button in audio player now jumps according tracks of taf","gui: Show error if something went wrong while encoding new taf (Audio Encoder)","gui: Added translation overview page in community contribution section","gui: Improved Audio Encoder, leave selected target folder till reload of page, if only one file is added, take filename as preset for taf filename https://github.com/toniebox-reverse-engineering/teddycloud/issues/223","gui: Fixed filterbug in FileBrowser Component (List + Select) https://github.com/toniebox-reverse-engineering/teddycloud/issues/224","gui: Show warning if web_version of gui does not match expected web_version from backend","gui: Show warning if ogg/opus (taf) is not supported by browser","gui: Integrated frontend.confirm_audioplayer_close","gui: Improved Code Snippet Element, show line numbers and added copy functionality","gui: Added Box setup overview page","gui: Added Box version identification page https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/145","gui: Added Open Toniebox guide page (first version) https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/146","gui: Extended CC3200 Firmware flash section, added custom alt Url Patch generation. https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/126","gui: Extended CC3200 Firmware flash section, extended Applying Patches step","gui: Extended CC3235 Firmware flash section, same version as wiki, but additional images flash chip","gui: Added ESP32 Firmware flash legacy section, same version as wiki","gui: some refactoring"],commits:["https://github.com/toniebox-reverse-engineering/teddycloud/compare/tc_v0.6.1...tc_v0.6.2","https://github.com/toniebox-reverse-engineering/teddycloud_web/compare/tcw_v0.6.1...tcw_v0.6.2"],discussionLink:"https://forum.revvox.de/t/release-notes-0-6-2/773",githubReleaseLink:"https://github.com/toniebox-reverse-engineering/teddycloud/releases/tag/tc_v0.6.2"},{version:"0.6.1",changes:["Stabilization backend","Changed default for setting cloud.prioCustomContent to false","Disabled prioCustomContent if lower audio id is allowed","Added reload tonies(.custom).json api https://github.com/toniebox-reverse-engineering/teddycloud/issues/177","Added moveFile api https://github.com/toniebox-reverse-engineering/teddycloud/issues/198","Added server side taf file encoding","Support TAF files in taps and server side taf file encoding","Added API to extract certificates https://github.com/toniebox-reverse-engineering/teddycloud/issues/103","Initial cert generation generates now a 4096bit long cert https://github.com/toniebox-reverse-engineering/teddycloud/issues/138","Extended settings api","Fixed bug updating empty model information if entry was added in tonies.json https://github.com/toniebox-reverse-engineering/teddycloud/issues/215","Fixed some bugs","gui: Fixed bug storing source with html special chars","gui: Fixed bug saving model and source of a tonie/tag at once","gui: Fixed display bug sourceInfo with unknown content","gui: Integrated new reload tonies.json api","gui: Added Moving and renaming of files in library and content","gui: Fixing security weaknesses","gui: Added file upload to library",`gui: If setting "Category frontend: Split content / model" is disabled, don't show the source info in Tonies list and details modal`,"gui: Added encoding functionality in library","gui: Allow playing all encodable files in teddyCloud","gui: ESP32 flash process - integrated remaining manual steps. Certificate extraction is now also automated","gui: Fixed bug tonieboxes if tonieboxes.custom.json was empty or not available https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/133","gui: Added Spanish language - feel free to improve translations as current translation is completely done by ChatGPT."],commits:["https://github.com/toniebox-reverse-engineering/teddycloud/compare/tc_v0.6.0...tc_v0.6.1","https://github.com/toniebox-reverse-engineering/teddycloud_web/compare/tcw_v0.6.0...tcw_v0.6.1"],discussionLink:"https://forum.revvox.de/t/release-notes-0-6-1/701",githubReleaseLink:"https://github.com/toniebox-reverse-engineering/teddycloud/releases/tag/tc_v0.6.1"},{version:"0.6.0",changes:["Stabilization backend","store last played time of last played tag","extend getTagIndex API, provide language in tonieInfos","PoC Toniebox api access (explicitly allow access to teddy cloud api on tonebox level)","Added enable/disable new Tonieboxes: prohibit registration of new tonieboxes if not enabled","Added removal of overlays (= removal of Tonieboxes from TeddyCloud)","add hide tonie/tag functionality (hide using new /web gui, present to box to unhide)","fixed locking bug, reworked locking.","fixed bug not storing cloud auth in some circumstances","fixed bug not storing source in json file: https://github.com/toniebox-reverse-engineering/teddycloud/issues/165","added limit to tempfile creation for radiostreams, default: 240mb (~6h) (configurable if expert mode is activated) https://github.com/toniebox-reverse-engineering/teddycloud/issues/180","added possibility to set WiFi Credentials on ESP32 Firmware patching","introduced second HTTPS port for WebFrontend only, which allows using https for webfrontend (Default: 8443)","tonie images from boxine can now be cached locally (PoC)","new /web gui is now default web gui: https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/47","new /web gui: enhanced Toniecard, added search for Radiostream in Edit Modal","new /web gui: Tonies - Content section - added Migrate Content to Lib button on TAF files","new /web gui: added RTNL Log Page: https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/48","new /web gui: added show Json File when double click on json file (File browser view)","new /web gui: added show TAP File when double click on tap file (File browser view)","new /web gui: added show TAF Header (including AudioID + Hash) when double click on a taf file (File browser view)","new /web gui: show date time of last played tag (toniecard + toniboxcard)","new /web gui: added Tonie Audio Playlist page (WIP - Implementation not yet finished), rearranged menu entries tonies section: https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/52","new /web gui: added delete feature in content, library and audio playlist page","new /web gui: improved changelog page, parse links and open links in new tab; completed contributors page: https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/27","new /web gui: added language flag to tonies card if it's not the same as the most owned language ones, added language filter","new /web gui: deletion of tonieboxes","new /web gui: info if add new boxes is enabled on homepage and tonieboxes page","new /web gui: enable/disable API access for toniebox added on tonieboxes page","new /web gui: add hide tonie/tag in tonies list (in info modal)","new /web gui: PoC Tonies Custom Json Editor (WiP, not working, but you get the json part to copy into the tonies.custom.json)","new /web gui: PoC Tonie Audio Playlist Editor (WiP, not working, but you get the json to copy and save as a TAP file) ","new /web gui: allow TAP files to be selected on Edit Tag Modal","new /web gui: new 404 page","new /web gui: hidden feature Tonie meeting. Search for it!","new /web gui: added link to Toniebox if the box is version cc3200, an ip is available and cfw is installed: https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/28","new /web gui: hide audioplayer if no source is set, when clicking on play icon of a tonie/taf/... the player is shown: https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/40","new /web gui: added minimize/maximize audioplayer https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/40","new /web gui: show Tonie on tonie article search","new /web gui: improved audioplayer, added volume control to custom one, hide doubled audioplayer","new /web gui: added French translation. Feel free to check if chatGPT is a good translator. If something is wrong, give us a shout at telegram!","new /weg gui: overworked filebrowser to be responsive","new /web gui: overworked tonie information modal, now also available in file browser (library + content)","new /web gui: added Create Directory functionality in file browser","new /web gui: added better breadcrumb to filebrowser (clickable for easy directory switching) https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/78","new /web gui: set nocloud to true if source of a tag is changed https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/77","new /web gui: show image and information from set source if different from model https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/80","new /web gui: tonie overview: filter now also considers information from set source","new /web gui: fixed bugs after updating tonies in tonies overview","new /web gui: added FAQ page in community section","new /web gui: support web streams in audioplayer","new /web gui: improved filebrowser, added filter field and made buttons sticky","new /web gui: integrated ESP32 Firmware Flashing https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/46","new /web gui: integrated setting of WiFi credentials in ESP32 Firmware Flashing","new /web gui: show hint on ESP32 Firmware Flashing page if browser does not support WebSerial","new /web gui: allow multiselection in file browser for file deletion","new /web gui: limit audio encoder to 99 files (as Toniebox only supports 99 chapters)","new /web gui: fixed image fetch loop when playing a tonie","new /web gui: fixed poor audio quality in some case when using audio encoder","new /web gui: migrated gui from create-react-app to vite","new /web gui: fixed some bugs and minor refactoring"],commits:["https://github.com/toniebox-reverse-engineering/teddycloud/compare/tc_v0.5.2...tc_v0.6.0","https://github.com/toniebox-reverse-engineering/teddycloud_web/compare/tcw_v0.5.2...tcw_v0.6.0"],discussionLink:"https://forum.revvox.de/t/release-notes-0-6-0/468",githubReleaseLink:"https://github.com/toniebox-reverse-engineering/teddycloud/releases/tag/tc_v0.6.0"},{version:"0.5.2",changes:["Stabilization backend","Several fixes and changes regards backend crashes and emptied config files when changing any tonie setting","Fix for random directories in library (and everywhere)","Fixed bug storing last played tonie per box","Fixed bug clearing text settings (like paths or flex tonie)","API for searching models is now case insensitive","Save IP of Toniebox as prepartion for linking CFW Tonieboxes","Introduced Settings level - 1: Basic, 2: Detail, 3: Expert (1 Default - if you are missing settings, increase level!)","new /web gui: enhanced Tonies Card, added editable content source","new /web gui: enhanced Toniebox Card, improved UX","new /web gui: Dark theme (Last used Theme stored in localStorage in Browser)","new /web gui: Show All (Hide Pagination on Tonies List, stored in localStorage in Browser)","new /web gui: Support of overlayed content folder. More details can be found here: https://forum.revvox.de/t/teddycloud-supporting-multiple-tonieboxes/451/1","new /web gui: Text inputs in Settings must be saved explicitly. (only Textinputs, other types are still autosaved.) Expect changes in future releases.","new /web gui: fixed various state bugs","new /web gui: show last online date of offline tonieboxes","new /web gui: Messages on successful setting updates","new /web gui: some refactoring"],commits:["https://github.com/toniebox-reverse-engineering/teddycloud/compare/tc_v0.5.1...tc_v0.5.2","https://github.com/toniebox-reverse-engineering/teddycloud_web/compare/tcw_v0.5.1...tcw_v0.5.2"],discussionLink:"https://forum.revvox.de/t/release-notes-0-5-2/450",githubReleaseLink:"https://github.com/toniebox-reverse-engineering/teddycloud/releases/tag/tc_v0.5.2"},{version:"0.5.1",changes:["Stabilization Backend (added locks to prevent crashes, removed memory leaks)","Creating dirs when uploading certificates to a not yet existing path","Moving Tafs from Content to Library on click (not yet available in (new?) frontend)","new /web gui: Pagination + Filtering on Tonies List ( Paging Tonies · Issue #24 · toniebox-reverse-engineering/teddycloud_web · GitHub 2 )","new /web gui: Extend Box Management: Certificate upload now box specific possible, overworked certificate upload ( Certificate upload box related · Issue #26 · toniebox-reverse-engineering/teddycloud_web · GitHub )","new /web gui: Show last played Tonie on Box Management, link to prefiltered Tonieslist, added marking of the Last played Tonies on each box in Tonieslist ( Make use of internal.last_ruid · Issue #30 · toniebox-reverse-engineering/teddycloud_web · GitHub 1 )","new /web gui: adapted cursor on cards to default as cards not really clickable ( TonieCard Cursor · Issue #25 · toniebox-reverse-engineering/teddycloud_web · GitHub )","new /web gui: fixed navigation item marking","new /web gui: updated box models, added pseudomodels of the official tonies covers (sleepy bear, sheep and rabbit). They are now placed in a json in the config folder. Custom tonieboxes are now also possible. Add your customised one in tonieboxes.custom.json and choose it in the box mgmt.","new /web gui: added community section (WIP) ( Add Changelog and contribution page · Issue #27 · toniebox-reverse-engineering/teddycloud_web · GitHub 1 )","new /web gui: fixed warnings"],commits:["https://github.com/toniebox-reverse-engineering/teddycloud/compare/tc_v0.5.0...tc_v0.5.1","https://github.com/toniebox-reverse-engineering/teddycloud_web/compare/tcw_v0.5.0...tcw_v0.5.1"],discussionLink:"https://forum.revvox.de/t/release-notes-0-5-1/447",githubReleaseLink:"https://github.com/toniebox-reverse-engineering/teddycloud/releases/tag/tc_v0.5.1"},{version:"0.5.0",changes:["security mitigations on public instances as it‘s definitely not recommended to host teddycloud in public accessible for all","prepared authentication for frontend (backend adaptions)","linked new /web gui on teddycloud administration gui","overworked header, reordered menu items, new icons, better readable status in new /web gui","fixed modals (still some display problems on small devices like mobiles exists)","added audio encoder to new /web gui, you are now able to select files and encode them to a taf","This lets you bring your own content easily on an existing tonie.","added toniebox management to new /web gui, improved backend functions for that","only at least once connected boxes are listed, model must be set manually","enriched homepage in new /web gui with 5 randomly selected tonies of yours","adapt tonie card list to different cover image sizes in new /web gui (all cards within one row have now the same height)","added no cloud and live icon (Toggle to enable/disable) on tonie card in new /web gui","fixed several bugs"],commits:["https://github.com/toniebox-reverse-engineering/teddycloud/pull/154","https://github.com/toniebox-reverse-engineering/teddycloud_web/pull/8","https://github.com/toniebox-reverse-engineering/teddycloud_web/pull/9","https://github.com/toniebox-reverse-engineering/teddycloud_web/pull/19","https://github.com/toniebox-reverse-engineering/teddycloud_web/pull/21","https://github.com/toniebox-reverse-engineering/teddycloud_web/pull/22"],discussionLink:"https://forum.revvox.de/t/release-notes-0-5-0/444",githubReleaseLink:"https://github.com/toniebox-reverse-engineering/teddycloud/releases/tag/tc_v0.5.0"},{version:"0.4.5 and older",changes:["A lot more. See Github for details!"],commits:[]}],n=r=>{const a=/(https?:\/\/[^\s]+)/g;return r.split(a).map((i,s)=>a.test(i)?m.jsx(gt,{to:i,target:"_blank",rel:"noopener noreferrer",children:i},s):i)};return m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(Ja,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(Ja,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")},{title:e("community.navigationTitle")},{title:e("community.changelog.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsx("h1",{children:e("community.changelog.title")}),m.jsx(uB,{children:m.jsx(xl,{dataSource:t,renderItem:r=>m.jsxs(m.Fragment,{children:[m.jsxs("h2",{children:["Version ",r.version]}),m.jsxs(uB,{children:[m.jsx("h3",{children:"Changes"}),m.jsx("ul",{children:r.changes.map((a,o)=>m.jsx("li",{children:n(a)},o))})]}),r.commits&&r.commits.length>0&&m.jsxs(m.Fragment,{children:[m.jsx(nI,{strong:!0,children:"All contained commits can be found here (teddy cloud repo):"}),m.jsx("ul",{children:r.commits.map((a,o)=>m.jsx("li",{children:m.jsx(gt,{to:a,target:"_blank",children:a})},o))})]}),r.discussionLink&&m.jsxs(m.Fragment,{children:[m.jsx(nI,{strong:!0,children:"Discussion:"}),m.jsx("ul",{children:m.jsx("li",{children:m.jsx(gt,{to:r.discussionLink,target:"_blank",children:r.discussionLink})})})]}),r.githubReleaseLink&&m.jsxs(m.Fragment,{children:[m.jsx(nI,{strong:!0,children:"GitHub Release:"}),m.jsx("ul",{children:m.jsx("li",{children:m.jsx(gt,{to:r.githubReleaseLink,target:"_blank",children:r.githubReleaseLink})})})]})]})})})]})]})]})};class Ra extends Error{}/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const Yze=4,dB=0,fB=1,Xze=2;function ff(e){let t=e.length;for(;--t>=0;)e[t]=0}const Zze=0,zX=1,Qze=2,Jze=3,e9e=258,Ck=29,Rm=256,_g=Rm+1+Ck,od=30,Ek=19,HX=2*_g+1,rc=15,rI=16,t9e=7,Ik=256,UX=16,VX=17,WX=18,E_=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),Ev=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),n9e=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),GX=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),r9e=512,ls=new Array((_g+2)*2);ff(ls);const Np=new Array(od*2);ff(Np);const $g=new Array(r9e);ff($g);const Og=new Array(e9e-Jze+1);ff(Og);const Tk=new Array(Ck);ff(Tk);const Fb=new Array(od);ff(Fb);function aI(e,t,n,r,a){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=a,this.has_stree=e&&e.length}let qX,KX,YX;function oI(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}const XX=e=>e<256?$g[e]:$g[256+(e>>>7)],Ng=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},qa=(e,t,n)=>{e.bi_valid>rI-n?(e.bi_buf|=t<>rI-e.bi_valid,e.bi_valid+=n-rI):(e.bi_buf|=t<{qa(e,n[t*2],n[t*2+1])},ZX=(e,t)=>{let n=0;do n|=e&1,e>>>=1,n<<=1;while(--t>0);return n>>>1},a9e=e=>{e.bi_valid===16?(Ng(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},o9e=(e,t)=>{const n=t.dyn_tree,r=t.max_code,a=t.stat_desc.static_tree,o=t.stat_desc.has_stree,i=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,c=t.stat_desc.max_length;let u,d,f,p,g,h,b=0;for(p=0;p<=rc;p++)e.bl_count[p]=0;for(n[e.heap[e.heap_max]*2+1]=0,u=e.heap_max+1;uc&&(p=c,b++),n[d*2+1]=p,!(d>r)&&(e.bl_count[p]++,g=0,d>=s&&(g=i[d-s]),h=n[d*2],e.opt_len+=h*(p+g),o&&(e.static_len+=h*(a[d*2+1]+g)));if(b!==0){do{for(p=c-1;e.bl_count[p]===0;)p--;e.bl_count[p]--,e.bl_count[p+1]+=2,e.bl_count[c]--,b-=2}while(b>0);for(p=c;p!==0;p--)for(d=e.bl_count[p];d!==0;)f=e.heap[--u],!(f>r)&&(n[f*2+1]!==p&&(e.opt_len+=(p-n[f*2+1])*n[f*2],n[f*2+1]=p),d--)}},QX=(e,t,n)=>{const r=new Array(rc+1);let a=0,o,i;for(o=1;o<=rc;o++)a=a+n[o-1]<<1,r[o]=a;for(i=0;i<=t;i++){let s=e[i*2+1];s!==0&&(e[i*2]=ZX(r[s]++,s))}},i9e=()=>{let e,t,n,r,a;const o=new Array(rc+1);for(n=0,r=0;r>=7;r{let t;for(t=0;t<_g;t++)e.dyn_ltree[t*2]=0;for(t=0;t{e.bi_valid>8?Ng(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},pB=(e,t,n,r)=>{const a=t*2,o=n*2;return e[a]{const r=e.heap[n];let a=n<<1;for(;a<=e.heap_len&&(a{let r,a,o=0,i,s;if(e.sym_next!==0)do r=e.pending_buf[e.sym_buf+o++]&255,r+=(e.pending_buf[e.sym_buf+o++]&255)<<8,a=e.pending_buf[e.sym_buf+o++],r===0?Ai(e,a,t):(i=Og[a],Ai(e,i+Rm+1,t),s=E_[i],s!==0&&(a-=Tk[i],qa(e,a,s)),r--,i=XX(r),Ai(e,i,n),s=Ev[i],s!==0&&(r-=Fb[i],qa(e,r,s)));while(o{const n=t.dyn_tree,r=t.stat_desc.static_tree,a=t.stat_desc.has_stree,o=t.stat_desc.elems;let i,s,c=-1,u;for(e.heap_len=0,e.heap_max=HX,i=0;i>1;i>=1;i--)iI(e,n,i);u=o;do i=e.heap[1],e.heap[1]=e.heap[e.heap_len--],iI(e,n,1),s=e.heap[1],e.heap[--e.heap_max]=i,e.heap[--e.heap_max]=s,n[u*2]=n[i*2]+n[s*2],e.depth[u]=(e.depth[i]>=e.depth[s]?e.depth[i]:e.depth[s])+1,n[i*2+1]=n[s*2+1]=u,e.heap[1]=u++,iI(e,n,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],o9e(e,t),QX(n,c,e.bl_count)},mB=(e,t,n)=>{let r,a=-1,o,i=t[0*2+1],s=0,c=7,u=4;for(i===0&&(c=138,u=3),t[(n+1)*2+1]=65535,r=0;r<=n;r++)o=i,i=t[(r+1)*2+1],!(++s{let r,a=-1,o,i=t[0*2+1],s=0,c=7,u=4;for(i===0&&(c=138,u=3),r=0;r<=n;r++)if(o=i,i=t[(r+1)*2+1],!(++s{let t;for(mB(e,e.dyn_ltree,e.l_desc.max_code),mB(e,e.dyn_dtree,e.d_desc.max_code),I_(e,e.bl_desc),t=Ek-1;t>=3&&e.bl_tree[GX[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},l9e=(e,t,n,r)=>{let a;for(qa(e,t-257,5),qa(e,n-1,5),qa(e,r-4,4),a=0;a{let t=4093624447,n;for(n=0;n<=31;n++,t>>>=1)if(t&1&&e.dyn_ltree[n*2]!==0)return dB;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return fB;for(n=32;n{vB||(i9e(),vB=!0),e.l_desc=new oI(e.dyn_ltree,qX),e.d_desc=new oI(e.dyn_dtree,KX),e.bl_desc=new oI(e.bl_tree,YX),e.bi_buf=0,e.bi_valid=0,JX(e)},tZ=(e,t,n,r)=>{qa(e,(Zze<<1)+(r?1:0),3),eZ(e),Ng(e,n),Ng(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n},d9e=e=>{qa(e,zX<<1,3),Ai(e,Ik,ls),a9e(e)},f9e=(e,t,n,r)=>{let a,o,i=0;e.level>0?(e.strm.data_type===Xze&&(e.strm.data_type=c9e(e)),I_(e,e.l_desc),I_(e,e.d_desc),i=s9e(e),a=e.opt_len+3+7>>>3,o=e.static_len+3+7>>>3,o<=a&&(a=o)):a=o=n+5,n+4<=a&&t!==-1?tZ(e,t,n,r):e.strategy===Yze||o===a?(qa(e,(zX<<1)+(r?1:0),3),gB(e,ls,Np)):(qa(e,(Qze<<1)+(r?1:0),3),l9e(e,e.l_desc.max_code+1,e.d_desc.max_code+1,i+1),gB(e,e.dyn_ltree,e.dyn_dtree)),JX(e),r&&eZ(e)},p9e=(e,t,n)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=n,t===0?e.dyn_ltree[n*2]++:(e.matches++,t--,e.dyn_ltree[(Og[n]+Rm+1)*2]++,e.dyn_dtree[XX(t)*2]++),e.sym_next===e.sym_end);var g9e=u9e,m9e=tZ,h9e=f9e,v9e=p9e,b9e=d9e,y9e={_tr_init:g9e,_tr_stored_block:m9e,_tr_flush_block:h9e,_tr_tally:v9e,_tr_align:b9e};const S9e=(e,t,n,r)=>{let a=e&65535|0,o=e>>>16&65535|0,i=0;for(;n!==0;){i=n>2e3?2e3:n,n-=i;do a=a+t[r++]|0,o=o+a|0;while(--i);a%=65521,o%=65521}return a|o<<16|0};var kg=S9e;const x9e=()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t},w9e=new Uint32Array(x9e()),C9e=(e,t,n,r)=>{const a=w9e,o=r+n;e^=-1;for(let i=r;i>>8^a[(e^t[i])&255];return e^-1};var Wr=C9e,Oc={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},pf={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:E9e,_tr_stored_block:T_,_tr_flush_block:I9e,_tr_tally:gl,_tr_align:T9e}=y9e,{Z_NO_FLUSH:ml,Z_PARTIAL_FLUSH:R9e,Z_FULL_FLUSH:_9e,Z_FINISH:Do,Z_BLOCK:bB,Z_OK:oa,Z_STREAM_END:yB,Z_STREAM_ERROR:ji,Z_DATA_ERROR:$9e,Z_BUF_ERROR:sI,Z_DEFAULT_COMPRESSION:O9e,Z_FILTERED:N9e,Z_HUFFMAN_ONLY:Bh,Z_RLE:k9e,Z_FIXED:A9e,Z_DEFAULT_STRATEGY:M9e,Z_UNKNOWN:P9e,Z_DEFLATED:Gy}=pf,D9e=9,L9e=15,F9e=8,j9e=29,B9e=256,R_=B9e+1+j9e,z9e=30,H9e=19,U9e=2*R_+1,V9e=15,hn=3,nl=258,Bi=nl+hn+1,W9e=32,Pd=42,Rk=57,__=69,$_=73,O_=91,N_=103,ac=113,np=666,ka=1,gf=2,Nc=3,mf=4,G9e=3,oc=(e,t)=>(e.msg=Oc[t],t),SB=e=>e*2-(e>4?9:0),Ks=e=>{let t=e.length;for(;--t>=0;)e[t]=0},q9e=e=>{let t,n,r,a=e.w_size;t=e.hash_size,r=t;do n=e.head[--r],e.head[r]=n>=a?n-a:0;while(--t);t=a,r=t;do n=e.prev[--r],e.prev[r]=n>=a?n-a:0;while(--t)};let K9e=(e,t,n)=>(t<{const t=e.state;let n=t.pending;n>e.avail_out&&(n=e.avail_out),n!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,t.pending===0&&(t.pending_out=0))},ho=(e,t)=>{I9e(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,lo(e.strm)},_n=(e,t)=>{e.pending_buf[e.pending++]=t},zf=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},k_=(e,t,n,r)=>{let a=e.avail_in;return a>r&&(a=r),a===0?0:(e.avail_in-=a,t.set(e.input.subarray(e.next_in,e.next_in+a),n),e.state.wrap===1?e.adler=kg(e.adler,t,a,n):e.state.wrap===2&&(e.adler=Wr(e.adler,t,a,n)),e.next_in+=a,e.total_in+=a,a)},nZ=(e,t)=>{let n=e.max_chain_length,r=e.strstart,a,o,i=e.prev_length,s=e.nice_match;const c=e.strstart>e.w_size-Bi?e.strstart-(e.w_size-Bi):0,u=e.window,d=e.w_mask,f=e.prev,p=e.strstart+nl;let g=u[r+i-1],h=u[r+i];e.prev_length>=e.good_match&&(n>>=2),s>e.lookahead&&(s=e.lookahead);do if(a=t,!(u[a+i]!==h||u[a+i-1]!==g||u[a]!==u[r]||u[++a]!==u[r+1])){r+=2,a++;do;while(u[++r]===u[++a]&&u[++r]===u[++a]&&u[++r]===u[++a]&&u[++r]===u[++a]&&u[++r]===u[++a]&&u[++r]===u[++a]&&u[++r]===u[++a]&&u[++r]===u[++a]&&ri){if(e.match_start=t,i=o,o>=s)break;g=u[r+i-1],h=u[r+i]}}while((t=f[t&d])>c&&--n!==0);return i<=e.lookahead?i:e.lookahead},Dd=e=>{const t=e.w_size;let n,r,a;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-Bi)&&(e.window.set(e.window.subarray(t,t+t-r),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),q9e(e),r+=t),e.strm.avail_in===0)break;if(n=k_(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=n,e.lookahead+e.insert>=hn)for(a=e.strstart-e.insert,e.ins_h=e.window[a],e.ins_h=hl(e,e.ins_h,e.window[a+1]);e.insert&&(e.ins_h=hl(e,e.ins_h,e.window[a+hn-1]),e.prev[a&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=a,a++,e.insert--,!(e.lookahead+e.insert{let n=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,r,a,o,i=0,s=e.strm.avail_in;do{if(r=65535,o=e.bi_valid+42>>3,e.strm.avail_outa+e.strm.avail_in&&(r=a+e.strm.avail_in),r>o&&(r=o),r>8,e.pending_buf[e.pending-2]=~r,e.pending_buf[e.pending-1]=~r>>8,lo(e.strm),a&&(a>r&&(a=r),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+a),e.strm.next_out),e.strm.next_out+=a,e.strm.avail_out-=a,e.strm.total_out+=a,e.block_start+=a,r-=a),r&&(k_(e.strm,e.strm.output,e.strm.next_out,r),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r)}while(i===0);return s-=e.strm.avail_in,s&&(s>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=s&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-s,e.strm.next_in),e.strstart),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.block_start=e.strstart),e.high_watero&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,o+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),o>e.strm.avail_in&&(o=e.strm.avail_in),o&&(k_(e.strm,e.window,e.strstart,o),e.strstart+=o,e.insert+=o>e.w_size-e.insert?e.w_size-e.insert:o),e.high_water>3,o=e.pending_buf_size-o>65535?65535:e.pending_buf_size-o,n=o>e.w_size?e.w_size:o,a=e.strstart-e.block_start,(a>=n||(a||t===Do)&&t!==ml&&e.strm.avail_in===0&&a<=o)&&(r=a>o?o:a,i=t===Do&&e.strm.avail_in===0&&r===a?1:0,T_(e,e.block_start,r,i),e.block_start+=r,lo(e.strm)),i?Nc:ka)},lI=(e,t)=>{let n,r;for(;;){if(e.lookahead=hn&&(e.ins_h=hl(e,e.ins_h,e.window[e.strstart+hn-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),n!==0&&e.strstart-n<=e.w_size-Bi&&(e.match_length=nZ(e,n)),e.match_length>=hn)if(r=gl(e,e.strstart-e.match_start,e.match_length-hn),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=hn){e.match_length--;do e.strstart++,e.ins_h=hl(e,e.ins_h,e.window[e.strstart+hn-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=hl(e,e.ins_h,e.window[e.strstart+1]);else r=gl(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(ho(e,!1),e.strm.avail_out===0))return ka}return e.insert=e.strstart{let n,r,a;for(;;){if(e.lookahead=hn&&(e.ins_h=hl(e,e.ins_h,e.window[e.strstart+hn-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=hn-1,n!==0&&e.prev_length4096)&&(e.match_length=hn-1)),e.prev_length>=hn&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-hn,r=gl(e,e.strstart-1-e.prev_match,e.prev_length-hn),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=a&&(e.ins_h=hl(e,e.ins_h,e.window[e.strstart+hn-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=hn-1,e.strstart++,r&&(ho(e,!1),e.strm.avail_out===0))return ka}else if(e.match_available){if(r=gl(e,0,e.window[e.strstart-1]),r&&ho(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return ka}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=gl(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart{let n,r,a,o;const i=e.window;for(;;){if(e.lookahead<=nl){if(Dd(e),e.lookahead<=nl&&t===ml)return ka;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=hn&&e.strstart>0&&(a=e.strstart-1,r=i[a],r===i[++a]&&r===i[++a]&&r===i[++a])){o=e.strstart+nl;do;while(r===i[++a]&&r===i[++a]&&r===i[++a]&&r===i[++a]&&r===i[++a]&&r===i[++a]&&r===i[++a]&&r===i[++a]&&ae.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=hn?(n=gl(e,1,e.match_length-hn),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=gl(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(ho(e,!1),e.strm.avail_out===0))return ka}return e.insert=0,t===Do?(ho(e,!0),e.strm.avail_out===0?Nc:mf):e.sym_next&&(ho(e,!1),e.strm.avail_out===0)?ka:gf},X9e=(e,t)=>{let n;for(;;){if(e.lookahead===0&&(Dd(e),e.lookahead===0)){if(t===ml)return ka;break}if(e.match_length=0,n=gl(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(ho(e,!1),e.strm.avail_out===0))return ka}return e.insert=0,t===Do?(ho(e,!0),e.strm.avail_out===0?Nc:mf):e.sym_next&&(ho(e,!1),e.strm.avail_out===0)?ka:gf};function Ii(e,t,n,r,a){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=a}const rp=[new Ii(0,0,0,0,rZ),new Ii(4,4,8,4,lI),new Ii(4,5,16,8,lI),new Ii(4,6,32,32,lI),new Ii(4,4,16,16,yu),new Ii(8,16,32,32,yu),new Ii(8,16,128,128,yu),new Ii(8,32,128,256,yu),new Ii(32,128,258,1024,yu),new Ii(32,258,258,4096,yu)],Z9e=e=>{e.window_size=2*e.w_size,Ks(e.head),e.max_lazy_match=rp[e.level].max_lazy,e.good_match=rp[e.level].good_length,e.nice_match=rp[e.level].nice_length,e.max_chain_length=rp[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=hn-1,e.match_available=0,e.ins_h=0};function Q9e(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Gy,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(U9e*2),this.dyn_dtree=new Uint16Array((2*z9e+1)*2),this.bl_tree=new Uint16Array((2*H9e+1)*2),Ks(this.dyn_ltree),Ks(this.dyn_dtree),Ks(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(V9e+1),this.heap=new Uint16Array(2*R_+1),Ks(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*R_+1),Ks(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const _m=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==Pd&&t.status!==Rk&&t.status!==__&&t.status!==$_&&t.status!==O_&&t.status!==N_&&t.status!==ac&&t.status!==np?1:0},aZ=e=>{if(_m(e))return oc(e,ji);e.total_in=e.total_out=0,e.data_type=P9e;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?Rk:t.wrap?Pd:ac,e.adler=t.wrap===2?0:1,t.last_flush=-2,E9e(t),oa},oZ=e=>{const t=aZ(e);return t===oa&&Z9e(e.state),t},J9e=(e,t)=>_m(e)||e.state.wrap!==2?ji:(e.state.gzhead=t,oa),iZ=(e,t,n,r,a,o)=>{if(!e)return ji;let i=1;if(t===O9e&&(t=6),r<0?(i=0,r=-r):r>15&&(i=2,r-=16),a<1||a>D9e||n!==Gy||r<8||r>15||t<0||t>9||o<0||o>A9e||r===8&&i!==1)return oc(e,ji);r===8&&(r=9);const s=new Q9e;return e.state=s,s.strm=e,s.status=Pd,s.wrap=i,s.gzhead=null,s.w_bits=r,s.w_size=1<iZ(e,t,Gy,L9e,F9e,M9e),tHe=(e,t)=>{if(_m(e)||t>bB||t<0)return e?oc(e,ji):ji;const n=e.state;if(!e.output||e.avail_in!==0&&!e.input||n.status===np&&t!==Do)return oc(e,e.avail_out===0?sI:ji);const r=n.last_flush;if(n.last_flush=t,n.pending!==0){if(lo(e),e.avail_out===0)return n.last_flush=-1,oa}else if(e.avail_in===0&&SB(t)<=SB(r)&&t!==Do)return oc(e,sI);if(n.status===np&&e.avail_in!==0)return oc(e,sI);if(n.status===Pd&&n.wrap===0&&(n.status=ac),n.status===Pd){let a=Gy+(n.w_bits-8<<4)<<8,o=-1;if(n.strategy>=Bh||n.level<2?o=0:n.level<6?o=1:n.level===6?o=2:o=3,a|=o<<6,n.strstart!==0&&(a|=W9e),a+=31-a%31,zf(n,a),n.strstart!==0&&(zf(n,e.adler>>>16),zf(n,e.adler&65535)),e.adler=1,n.status=ac,lo(e),n.pending!==0)return n.last_flush=-1,oa}if(n.status===Rk){if(e.adler=0,_n(n,31),_n(n,139),_n(n,8),n.gzhead)_n(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),_n(n,n.gzhead.time&255),_n(n,n.gzhead.time>>8&255),_n(n,n.gzhead.time>>16&255),_n(n,n.gzhead.time>>24&255),_n(n,n.level===9?2:n.strategy>=Bh||n.level<2?4:0),_n(n,n.gzhead.os&255),n.gzhead.extra&&n.gzhead.extra.length&&(_n(n,n.gzhead.extra.length&255),_n(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=Wr(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=__;else if(_n(n,0),_n(n,0),_n(n,0),_n(n,0),_n(n,0),_n(n,n.level===9?2:n.strategy>=Bh||n.level<2?4:0),_n(n,G9e),n.status=ac,lo(e),n.pending!==0)return n.last_flush=-1,oa}if(n.status===__){if(n.gzhead.extra){let a=n.pending,o=(n.gzhead.extra.length&65535)-n.gzindex;for(;n.pending+o>n.pending_buf_size;){let s=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+s),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>a&&(e.adler=Wr(e.adler,n.pending_buf,n.pending-a,a)),n.gzindex+=s,lo(e),n.pending!==0)return n.last_flush=-1,oa;a=0,o-=s}let i=new Uint8Array(n.gzhead.extra);n.pending_buf.set(i.subarray(n.gzindex,n.gzindex+o),n.pending),n.pending+=o,n.gzhead.hcrc&&n.pending>a&&(e.adler=Wr(e.adler,n.pending_buf,n.pending-a,a)),n.gzindex=0}n.status=$_}if(n.status===$_){if(n.gzhead.name){let a=n.pending,o;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>a&&(e.adler=Wr(e.adler,n.pending_buf,n.pending-a,a)),lo(e),n.pending!==0)return n.last_flush=-1,oa;a=0}n.gzindexa&&(e.adler=Wr(e.adler,n.pending_buf,n.pending-a,a)),n.gzindex=0}n.status=O_}if(n.status===O_){if(n.gzhead.comment){let a=n.pending,o;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>a&&(e.adler=Wr(e.adler,n.pending_buf,n.pending-a,a)),lo(e),n.pending!==0)return n.last_flush=-1,oa;a=0}n.gzindexa&&(e.adler=Wr(e.adler,n.pending_buf,n.pending-a,a))}n.status=N_}if(n.status===N_){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(lo(e),n.pending!==0))return n.last_flush=-1,oa;_n(n,e.adler&255),_n(n,e.adler>>8&255),e.adler=0}if(n.status=ac,lo(e),n.pending!==0)return n.last_flush=-1,oa}if(e.avail_in!==0||n.lookahead!==0||t!==ml&&n.status!==np){let a=n.level===0?rZ(n,t):n.strategy===Bh?X9e(n,t):n.strategy===k9e?Y9e(n,t):rp[n.level].func(n,t);if((a===Nc||a===mf)&&(n.status=np),a===ka||a===Nc)return e.avail_out===0&&(n.last_flush=-1),oa;if(a===gf&&(t===R9e?T9e(n):t!==bB&&(T_(n,0,0,!1),t===_9e&&(Ks(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),lo(e),e.avail_out===0))return n.last_flush=-1,oa}return t!==Do?oa:n.wrap<=0?yB:(n.wrap===2?(_n(n,e.adler&255),_n(n,e.adler>>8&255),_n(n,e.adler>>16&255),_n(n,e.adler>>24&255),_n(n,e.total_in&255),_n(n,e.total_in>>8&255),_n(n,e.total_in>>16&255),_n(n,e.total_in>>24&255)):(zf(n,e.adler>>>16),zf(n,e.adler&65535)),lo(e),n.wrap>0&&(n.wrap=-n.wrap),n.pending!==0?oa:yB)},nHe=e=>{if(_m(e))return ji;const t=e.state.status;return e.state=null,t===ac?oc(e,$9e):oa},rHe=(e,t)=>{let n=t.length;if(_m(e))return ji;const r=e.state,a=r.wrap;if(a===2||a===1&&r.status!==Pd||r.lookahead)return ji;if(a===1&&(e.adler=kg(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){a===0&&(Ks(r.head),r.strstart=0,r.block_start=0,r.insert=0);let c=new Uint8Array(r.w_size);c.set(t.subarray(n-r.w_size,n),0),t=c,n=r.w_size}const o=e.avail_in,i=e.next_in,s=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,Dd(r);r.lookahead>=hn;){let c=r.strstart,u=r.lookahead-(hn-1);do r.ins_h=hl(r,r.ins_h,r.window[c+hn-1]),r.prev[c&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=c,c++;while(--u);r.strstart=c,r.lookahead=hn-1,Dd(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=hn-1,r.match_available=0,e.next_in=i,e.input=s,e.avail_in=o,r.wrap=a,oa};var aHe=eHe,oHe=iZ,iHe=oZ,sHe=aZ,lHe=J9e,cHe=tHe,uHe=nHe,dHe=rHe,fHe="pako deflate (from Nodeca project)",kp={deflateInit:aHe,deflateInit2:oHe,deflateReset:iHe,deflateResetKeep:sHe,deflateSetHeader:lHe,deflate:cHe,deflateEnd:uHe,deflateSetDictionary:dHe,deflateInfo:fHe};const pHe=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var gHe=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const n=t.shift();if(n){if(typeof n!="object")throw new TypeError(n+"must be non-object");for(const r in n)pHe(n,r)&&(e[r]=n[r])}}return e},mHe=e=>{let t=0;for(let r=0,a=e.length;r=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;Ag[254]=Ag[254]=1;var hHe=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,n,r,a,o,i=e.length,s=0;for(a=0;a>>6,t[o++]=128|n&63):n<65536?(t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|n&63):(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63,t[o++]=128|n>>>6&63,t[o++]=128|n&63);return t};const vHe=(e,t)=>{if(t<65534&&e.subarray&&sZ)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n="";for(let r=0;r{const n=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let r,a;const o=new Array(n*2);for(a=0,r=0;r4){o[a++]=65533,r+=s-1;continue}for(i&=s===2?31:s===3?15:7;s>1&&r1){o[a++]=65533;continue}i<65536?o[a++]=i:(i-=65536,o[a++]=55296|i>>10&1023,o[a++]=56320|i&1023)}return vHe(o,a)},yHe=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let n=t-1;for(;n>=0&&(e[n]&192)===128;)n--;return n<0||n===0?t:n+Ag[e[n]]>t?n:t},Mg={string2buf:hHe,buf2string:bHe,utf8border:yHe};function SHe(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var lZ=SHe;const cZ=Object.prototype.toString,{Z_NO_FLUSH:xHe,Z_SYNC_FLUSH:wHe,Z_FULL_FLUSH:CHe,Z_FINISH:EHe,Z_OK:jb,Z_STREAM_END:IHe,Z_DEFAULT_COMPRESSION:THe,Z_DEFAULT_STRATEGY:RHe,Z_DEFLATED:_He}=pf;function $m(e){this.options=qy.assign({level:THe,method:_He,chunkSize:16384,windowBits:15,memLevel:8,strategy:RHe},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new lZ,this.strm.avail_out=0;let n=kp.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==jb)throw new Error(Oc[n]);if(t.header&&kp.deflateSetHeader(this.strm,t.header),t.dictionary){let r;if(typeof t.dictionary=="string"?r=Mg.string2buf(t.dictionary):cZ.call(t.dictionary)==="[object ArrayBuffer]"?r=new Uint8Array(t.dictionary):r=t.dictionary,n=kp.deflateSetDictionary(this.strm,r),n!==jb)throw new Error(Oc[n]);this._dict_set=!0}}$m.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize;let a,o;if(this.ended)return!1;for(t===~~t?o=t:o=t===!0?EHe:xHe,typeof e=="string"?n.input=Mg.string2buf(e):cZ.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){if(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),(o===wHe||o===CHe)&&n.avail_out<=6){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(a=kp.deflate(n,o),a===IHe)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),a=kp.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===jb;if(n.avail_out===0){this.onData(n.output);continue}if(o>0&&n.next_out>0){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(n.avail_in===0)break}return!0};$m.prototype.onData=function(e){this.chunks.push(e)};$m.prototype.onEnd=function(e){e===jb&&(this.result=qy.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function _k(e,t){const n=new $m(t);if(n.push(e,!0),n.err)throw n.msg||Oc[n.err];return n.result}function $He(e,t){return t=t||{},t.raw=!0,_k(e,t)}function OHe(e,t){return t=t||{},t.gzip=!0,_k(e,t)}var NHe=$m,kHe=_k,AHe=$He,MHe=OHe,PHe=pf,DHe={Deflate:NHe,deflate:kHe,deflateRaw:AHe,gzip:MHe,constants:PHe};const zh=16209,LHe=16191;var FHe=function(t,n){let r,a,o,i,s,c,u,d,f,p,g,h,b,y,S,v,x,C,w,E,I,T,R,_;const $=t.state;r=t.next_in,R=t.input,a=r+(t.avail_in-5),o=t.next_out,_=t.output,i=o-(n-t.avail_out),s=o+(t.avail_out-257),c=$.dmax,u=$.wsize,d=$.whave,f=$.wnext,p=$.window,g=$.hold,h=$.bits,b=$.lencode,y=$.distcode,S=(1<<$.lenbits)-1,v=(1<<$.distbits)-1;e:do{h<15&&(g+=R[r++]<>>24,g>>>=C,h-=C,C=x>>>16&255,C===0)_[o++]=x&65535;else if(C&16){w=x&65535,C&=15,C&&(h>>=C,h-=C),h<15&&(g+=R[r++]<>>24,g>>>=C,h-=C,C=x>>>16&255,C&16){if(E=x&65535,C&=15,hc){t.msg="invalid distance too far back",$.mode=zh;break e}if(g>>>=C,h-=C,C=o-i,E>C){if(C=E-C,C>d&&$.sane){t.msg="invalid distance too far back",$.mode=zh;break e}if(I=0,T=p,f===0){if(I+=u-C,C2;)_[o++]=T[I++],_[o++]=T[I++],_[o++]=T[I++],w-=3;w&&(_[o++]=T[I++],w>1&&(_[o++]=T[I++]))}else{I=o-E;do _[o++]=_[I++],_[o++]=_[I++],_[o++]=_[I++],w-=3;while(w>2);w&&(_[o++]=_[I++],w>1&&(_[o++]=_[I++]))}}else if(C&64){t.msg="invalid distance code",$.mode=zh;break e}else{x=y[(x&65535)+(g&(1<>3,r-=w,h-=w<<3,g&=(1<{const c=s.bits;let u=0,d=0,f=0,p=0,g=0,h=0,b=0,y=0,S=0,v=0,x,C,w,E,I,T=null,R;const _=new Uint16Array(Su+1),$=new Uint16Array(Su+1);let P=null,D,A,O;for(u=0;u<=Su;u++)_[u]=0;for(d=0;d=1&&_[p]===0;p--);if(g>p&&(g=p),p===0)return a[o++]=1<<24|64<<16|0,a[o++]=1<<24|64<<16|0,s.bits=1,0;for(f=1;f0&&(e===CB||p!==1))return-1;for($[1]=0,u=1;uxB||e===EB&&S>wB)return 1;for(;;){D=u-b,i[d]+1=R?(A=P[i[d]-R],O=T[i[d]-R]):(A=96,O=0),x=1<>b)+C]=D<<24|A<<16|O|0;while(C!==0);for(x=1<>=1;if(x!==0?(v&=x-1,v+=x):v=0,d++,--_[u]===0){if(u===p)break;u=t[n+i[d]]}if(u>g&&(v&E)!==w){for(b===0&&(b=g),I+=f,h=u-b,y=1<xB||e===EB&&S>wB)return 1;w=v&E,a[w]=g<<24|h<<16|I-o|0}}return v!==0&&(a[I+v]=u-b<<24|64<<16|0),s.bits=g,0};var Ap=UHe;const VHe=0,uZ=1,dZ=2,{Z_FINISH:IB,Z_BLOCK:WHe,Z_TREES:Hh,Z_OK:kc,Z_STREAM_END:GHe,Z_NEED_DICT:qHe,Z_STREAM_ERROR:Go,Z_DATA_ERROR:fZ,Z_MEM_ERROR:pZ,Z_BUF_ERROR:KHe,Z_DEFLATED:TB}=pf,Ky=16180,RB=16181,_B=16182,$B=16183,OB=16184,NB=16185,kB=16186,AB=16187,MB=16188,PB=16189,Bb=16190,ts=16191,uI=16192,DB=16193,dI=16194,LB=16195,FB=16196,jB=16197,BB=16198,Uh=16199,Vh=16200,zB=16201,HB=16202,UB=16203,VB=16204,WB=16205,fI=16206,GB=16207,qB=16208,ir=16209,gZ=16210,mZ=16211,YHe=852,XHe=592,ZHe=15,QHe=ZHe,KB=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function JHe(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Yc=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.modemZ?1:0},hZ=e=>{if(Yc(e))return Go;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=Ky,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(YHe),t.distcode=t.distdyn=new Int32Array(XHe),t.sane=1,t.back=-1,kc},vZ=e=>{if(Yc(e))return Go;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,hZ(e)},bZ=(e,t)=>{let n;if(Yc(e))return Go;const r=e.state;return t<0?(n=0,t=-t):(n=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?Go:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,vZ(e))},yZ=(e,t)=>{if(!e)return Go;const n=new JHe;e.state=n,n.strm=e,n.window=null,n.mode=Ky;const r=bZ(e,t);return r!==kc&&(e.state=null),r},eUe=e=>yZ(e,QHe);let YB=!0,pI,gI;const tUe=e=>{if(YB){pI=new Int32Array(512),gI=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Ap(uZ,e.lens,0,288,pI,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Ap(dZ,e.lens,0,32,gI,0,e.work,{bits:5}),YB=!1}e.lencode=pI,e.lenbits=9,e.distcode=gI,e.distbits=5},SZ=(e,t,n,r)=>{let a;const o=e.state;return o.window===null&&(o.wsize=1<=o.wsize?(o.window.set(t.subarray(n-o.wsize,n),0),o.wnext=0,o.whave=o.wsize):(a=o.wsize-o.wnext,a>r&&(a=r),o.window.set(t.subarray(n-r,n-r+a),o.wnext),r-=a,r?(o.window.set(t.subarray(n-r,n),0),o.wnext=r,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave{let n,r,a,o,i,s,c,u,d,f,p,g,h,b,y=0,S,v,x,C,w,E,I,T;const R=new Uint8Array(4);let _,$;const P=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Yc(e)||!e.output||!e.input&&e.avail_in!==0)return Go;n=e.state,n.mode===ts&&(n.mode=uI),i=e.next_out,a=e.output,c=e.avail_out,o=e.next_in,r=e.input,s=e.avail_in,u=n.hold,d=n.bits,f=s,p=c,T=kc;e:for(;;)switch(n.mode){case Ky:if(n.wrap===0){n.mode=uI;break}for(;d<16;){if(s===0)break e;s--,u+=r[o++]<>>8&255,n.check=Wr(n.check,R,2,0),u=0,d=0,n.mode=RB;break}if(n.head&&(n.head.done=!1),!(n.wrap&1)||(((u&255)<<8)+(u>>8))%31){e.msg="incorrect header check",n.mode=ir;break}if((u&15)!==TB){e.msg="unknown compression method",n.mode=ir;break}if(u>>>=4,d-=4,I=(u&15)+8,n.wbits===0&&(n.wbits=I),I>15||I>n.wbits){e.msg="invalid window size",n.mode=ir;break}n.dmax=1<>8&1),n.flags&512&&n.wrap&4&&(R[0]=u&255,R[1]=u>>>8&255,n.check=Wr(n.check,R,2,0)),u=0,d=0,n.mode=_B;case _B:for(;d<32;){if(s===0)break e;s--,u+=r[o++]<>>8&255,R[2]=u>>>16&255,R[3]=u>>>24&255,n.check=Wr(n.check,R,4,0)),u=0,d=0,n.mode=$B;case $B:for(;d<16;){if(s===0)break e;s--,u+=r[o++]<>8),n.flags&512&&n.wrap&4&&(R[0]=u&255,R[1]=u>>>8&255,n.check=Wr(n.check,R,2,0)),u=0,d=0,n.mode=OB;case OB:if(n.flags&1024){for(;d<16;){if(s===0)break e;s--,u+=r[o++]<>>8&255,n.check=Wr(n.check,R,2,0)),u=0,d=0}else n.head&&(n.head.extra=null);n.mode=NB;case NB:if(n.flags&1024&&(g=n.length,g>s&&(g=s),g&&(n.head&&(I=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(o,o+g),I)),n.flags&512&&n.wrap&4&&(n.check=Wr(n.check,r,g,o)),s-=g,o+=g,n.length-=g),n.length))break e;n.length=0,n.mode=kB;case kB:if(n.flags&2048){if(s===0)break e;g=0;do I=r[o+g++],n.head&&I&&n.length<65536&&(n.head.name+=String.fromCharCode(I));while(I&&g>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=ts;break;case PB:for(;d<32;){if(s===0)break e;s--,u+=r[o++]<>>=d&7,d-=d&7,n.mode=fI;break}for(;d<3;){if(s===0)break e;s--,u+=r[o++]<>>=1,d-=1,u&3){case 0:n.mode=DB;break;case 1:if(tUe(n),n.mode=Uh,t===Hh){u>>>=2,d-=2;break e}break;case 2:n.mode=FB;break;case 3:e.msg="invalid block type",n.mode=ir}u>>>=2,d-=2;break;case DB:for(u>>>=d&7,d-=d&7;d<32;){if(s===0)break e;s--,u+=r[o++]<>>16^65535)){e.msg="invalid stored block lengths",n.mode=ir;break}if(n.length=u&65535,u=0,d=0,n.mode=dI,t===Hh)break e;case dI:n.mode=LB;case LB:if(g=n.length,g){if(g>s&&(g=s),g>c&&(g=c),g===0)break e;a.set(r.subarray(o,o+g),i),s-=g,o+=g,c-=g,i+=g,n.length-=g;break}n.mode=ts;break;case FB:for(;d<14;){if(s===0)break e;s--,u+=r[o++]<>>=5,d-=5,n.ndist=(u&31)+1,u>>>=5,d-=5,n.ncode=(u&15)+4,u>>>=4,d-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=ir;break}n.have=0,n.mode=jB;case jB:for(;n.have>>=3,d-=3}for(;n.have<19;)n.lens[P[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,_={bits:n.lenbits},T=Ap(VHe,n.lens,0,19,n.lencode,0,n.work,_),n.lenbits=_.bits,T){e.msg="invalid code lengths set",n.mode=ir;break}n.have=0,n.mode=BB;case BB:for(;n.have>>24,v=y>>>16&255,x=y&65535,!(S<=d);){if(s===0)break e;s--,u+=r[o++]<>>=S,d-=S,n.lens[n.have++]=x;else{if(x===16){for($=S+2;d<$;){if(s===0)break e;s--,u+=r[o++]<>>=S,d-=S,n.have===0){e.msg="invalid bit length repeat",n.mode=ir;break}I=n.lens[n.have-1],g=3+(u&3),u>>>=2,d-=2}else if(x===17){for($=S+3;d<$;){if(s===0)break e;s--,u+=r[o++]<>>=S,d-=S,I=0,g=3+(u&7),u>>>=3,d-=3}else{for($=S+7;d<$;){if(s===0)break e;s--,u+=r[o++]<>>=S,d-=S,I=0,g=11+(u&127),u>>>=7,d-=7}if(n.have+g>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=ir;break}for(;g--;)n.lens[n.have++]=I}}if(n.mode===ir)break;if(n.lens[256]===0){e.msg="invalid code -- missing end-of-block",n.mode=ir;break}if(n.lenbits=9,_={bits:n.lenbits},T=Ap(uZ,n.lens,0,n.nlen,n.lencode,0,n.work,_),n.lenbits=_.bits,T){e.msg="invalid literal/lengths set",n.mode=ir;break}if(n.distbits=6,n.distcode=n.distdyn,_={bits:n.distbits},T=Ap(dZ,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,_),n.distbits=_.bits,T){e.msg="invalid distances set",n.mode=ir;break}if(n.mode=Uh,t===Hh)break e;case Uh:n.mode=Vh;case Vh:if(s>=6&&c>=258){e.next_out=i,e.avail_out=c,e.next_in=o,e.avail_in=s,n.hold=u,n.bits=d,FHe(e,p),i=e.next_out,a=e.output,c=e.avail_out,o=e.next_in,r=e.input,s=e.avail_in,u=n.hold,d=n.bits,n.mode===ts&&(n.back=-1);break}for(n.back=0;y=n.lencode[u&(1<>>24,v=y>>>16&255,x=y&65535,!(S<=d);){if(s===0)break e;s--,u+=r[o++]<>C)],S=y>>>24,v=y>>>16&255,x=y&65535,!(C+S<=d);){if(s===0)break e;s--,u+=r[o++]<>>=C,d-=C,n.back+=C}if(u>>>=S,d-=S,n.back+=S,n.length=x,v===0){n.mode=WB;break}if(v&32){n.back=-1,n.mode=ts;break}if(v&64){e.msg="invalid literal/length code",n.mode=ir;break}n.extra=v&15,n.mode=zB;case zB:if(n.extra){for($=n.extra;d<$;){if(s===0)break e;s--,u+=r[o++]<>>=n.extra,d-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=HB;case HB:for(;y=n.distcode[u&(1<>>24,v=y>>>16&255,x=y&65535,!(S<=d);){if(s===0)break e;s--,u+=r[o++]<>C)],S=y>>>24,v=y>>>16&255,x=y&65535,!(C+S<=d);){if(s===0)break e;s--,u+=r[o++]<>>=C,d-=C,n.back+=C}if(u>>>=S,d-=S,n.back+=S,v&64){e.msg="invalid distance code",n.mode=ir;break}n.offset=x,n.extra=v&15,n.mode=UB;case UB:if(n.extra){for($=n.extra;d<$;){if(s===0)break e;s--,u+=r[o++]<>>=n.extra,d-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=ir;break}n.mode=VB;case VB:if(c===0)break e;if(g=p-c,n.offset>g){if(g=n.offset-g,g>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=ir;break}g>n.wnext?(g-=n.wnext,h=n.wsize-g):h=n.wnext-g,g>n.length&&(g=n.length),b=n.window}else b=a,h=i-n.offset,g=n.length;g>c&&(g=c),c-=g,n.length-=g;do a[i++]=b[h++];while(--g);n.length===0&&(n.mode=Vh);break;case WB:if(c===0)break e;a[i++]=n.length,c--,n.mode=Vh;break;case fI:if(n.wrap){for(;d<32;){if(s===0)break e;s--,u|=r[o++]<{if(Yc(e))return Go;let t=e.state;return t.window&&(t.window=null),e.state=null,kc},aUe=(e,t)=>{if(Yc(e))return Go;const n=e.state;return n.wrap&2?(n.head=t,t.done=!1,kc):Go},oUe=(e,t)=>{const n=t.length;let r,a,o;return Yc(e)||(r=e.state,r.wrap!==0&&r.mode!==Bb)?Go:r.mode===Bb&&(a=1,a=kg(a,t,n,0),a!==r.check)?fZ:(o=SZ(e,t,n,n),o?(r.mode=gZ,pZ):(r.havedict=1,kc))};var iUe=vZ,sUe=bZ,lUe=hZ,cUe=eUe,uUe=yZ,dUe=nUe,fUe=rUe,pUe=aUe,gUe=oUe,mUe="pako inflate (from Nodeca project)",cs={inflateReset:iUe,inflateReset2:sUe,inflateResetKeep:lUe,inflateInit:cUe,inflateInit2:uUe,inflate:dUe,inflateEnd:fUe,inflateGetHeader:pUe,inflateSetDictionary:gUe,inflateInfo:mUe};function hUe(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var vUe=hUe;const xZ=Object.prototype.toString,{Z_NO_FLUSH:bUe,Z_FINISH:yUe,Z_OK:Pg,Z_STREAM_END:mI,Z_NEED_DICT:hI,Z_STREAM_ERROR:SUe,Z_DATA_ERROR:XB,Z_MEM_ERROR:xUe}=pf;function Om(e){this.options=qy.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new lZ,this.strm.avail_out=0;let n=cs.inflateInit2(this.strm,t.windowBits);if(n!==Pg)throw new Error(Oc[n]);if(this.header=new vUe,cs.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Mg.string2buf(t.dictionary):xZ.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=cs.inflateSetDictionary(this.strm,t.dictionary),n!==Pg)))throw new Error(Oc[n])}Om.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize,a=this.options.dictionary;let o,i,s;if(this.ended)return!1;for(t===~~t?i=t:i=t===!0?yUe:bUe,xZ.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){for(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),o=cs.inflate(n,i),o===hI&&a&&(o=cs.inflateSetDictionary(n,a),o===Pg?o=cs.inflate(n,i):o===XB&&(o=hI));n.avail_in>0&&o===mI&&n.state.wrap>0&&e[n.next_in]!==0;)cs.inflateReset(n),o=cs.inflate(n,i);switch(o){case SUe:case XB:case hI:case xUe:return this.onEnd(o),this.ended=!0,!1}if(s=n.avail_out,n.next_out&&(n.avail_out===0||o===mI))if(this.options.to==="string"){let c=Mg.utf8border(n.output,n.next_out),u=n.next_out-c,d=Mg.buf2string(n.output,c);n.next_out=u,n.avail_out=r-u,u&&n.output.set(n.output.subarray(c,c+u),0),this.onData(d)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(!(o===Pg&&s===0)){if(o===mI)return o=cs.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(n.avail_in===0)break}}return!0};Om.prototype.onData=function(e){this.chunks.push(e)};Om.prototype.onEnd=function(e){e===Pg&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=qy.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function $k(e,t){const n=new Om(t);if(n.push(e),n.err)throw n.msg||Oc[n.err];return n.result}function wUe(e,t){return t=t||{},t.raw=!0,$k(e,t)}var CUe=Om,EUe=$k,IUe=wUe,TUe=$k,RUe=pf,_Ue={Inflate:CUe,inflate:EUe,inflateRaw:IUe,ungzip:TUe,constants:RUe};const{Deflate:RVe,deflate:$Ue,deflateRaw:_Ve,gzip:$Ve}=DHe,{Inflate:OUe,inflate:OVe,inflateRaw:NVe,ungzip:kVe}=_Ue;var NUe=$Ue,kUe=OUe;class Iv{constructor(t,n=!1,r=!0){this.device=t,this.tracing=n,this.slipReaderEnabled=!1,this.leftOver=new Uint8Array(0),this.baudrate=0,this.traceLog="",this.lastTraceTime=Date.now(),this._DTR_state=!1,this.slipReaderEnabled=r}getInfo(){const t=this.device.getInfo();return t.usbVendorId&&t.usbProductId?`WebSerial VendorID 0x${t.usbVendorId.toString(16)} ProductID 0x${t.usbProductId.toString(16)}`:""}getPid(){return this.device.getInfo().usbProductId}trace(t){const a=`${`TRACE ${(Date.now()-this.lastTraceTime).toFixed(3)}`} ${t}`;console.log(a),this.traceLog+=a+` + `),n.append(a.name,new Blob([v.buffer]),`pcmData.${r.indexOf(a)}.pcm`),e(void 0)}catch(c){t(c)}},i.onerror=()=>{t("Failed to read the file")},a.file&&i.readAsArrayBuffer(a.file)}const $ze=e=>Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&"),Fh=new xn(pn()),{useToken:Oze}=Ta,vu={id:"1",pId:"-1",value:"1",title:"/"},jh=99,Nze=()=>{const{t:e}=Nt(),{token:t}=Oze(),[n,r]=Ye.useMessage(),[a,o]=l.useState(!1),[i,s]=l.useState([]),[c,u]=l.useState(!1),[d,f]=l.useState(!1),[p,g]=l.useState(""),[h,b]=l.useState(vu.id),[y,S]=l.useState([vu]),[v,x]=l.useState(!1),[w,C]=l.useState(""),[E,I]=l.useState(!1),[T,R]=l.useState(!1),_=l.useRef(null);let $=0;l.useEffect(()=>{(async()=>{const U=new xn(pn());let q=!1;try{const X=await U.apiGetTeddyCloudSettingRaw("debug.web.pcm_encode_console_url");if(!X.ok)throw new Error(`HTTP error! status: ${X.status}`);q=(await X.json()).toString()==="true"}catch(X){console.error("Error fetching debug.web.pcm_encode_console_url: ",X)}o(q)})(),(async()=>{const U=L(vu.id);Fh.apiGetTeddyCloudApiRaw(`/api/fileIndexV2?path=${U}&special=library`).then(q=>q.json()).then(q=>{var X=q.files;X=X.filter(Q=>Q.isDir&&Q.name!=="..").sort((Q,ee)=>Q.name===ee.name?0:Q.name.toLowerCase()>ee.name.toLowerCase()?1:-1).map(Q=>({id:vu.id+"."+X.indexOf(Q),pId:vu.id,value:vu.id+"."+X.indexOf(Q),title:Q.name})),S(y.concat(X))})})()},[]),l.useEffect(()=>{v&&setTimeout(()=>{_.current&&_.current.focus()},0)},[v]),l.useEffect(()=>{$=i.length},[i]);const P=vX(Uy,{activationConstraint:{distance:10}}),D=({active:J,over:G})=>{J.id!==(G==null?void 0:G.id)&&s(U=>{const q=U.findIndex(Q=>Q.uid===J.id),X=U.findIndex(Q=>Q.uid===(G==null?void 0:G.id));return Gy(U,q,X)})},A=({fileList:J})=>{$++,$>jh&&n.open({type:"error",content:e("tonies.encoder.maxFiles",{maxFiles:jh})});const G=J.slice(0,jh);if(G.length===1&&p===""){const q=G[0].name.replace(/\.[^/.]+$/,"");g(q)}s(G)},O=J=>{const G=i.indexOf(J),U=i.slice();U.splice(G,1),s(U)},N=async()=>{u(!0);const J=new FormData;for(const X of i)try{await new Promise((Q,ee)=>_ze(Q,ee,J,i,X,a))}catch(Q){Ye.error(e("tonies.encoder.errorFileProcessing")+" "+Q),u(!1);return}const G=Math.floor(Date.now()/1e3),U={name:p+".taf",audioId:G-1342177280,path:L(h),special:"library"};f(!0);const q=$ze(U);try{const X=await Fh.apiPostTeddyCloudFormDataRaw(`/api/pcmUpload?${q}`,J);X.ok?(Ye.success(e("tonies.encoder.uploadSuccessful")),s([]),g("")):Ye.error(e("tonies.encoder.uploadFailed")+": "+X.statusText),f(!1),u(!1)}catch{Ye.error(e("tonies.encoder.uploadFailed")),f(!1),u(!1)}},k={listType:"picture",multiple:!0,beforeUpload:J=>{const G=J;return G.file=J,i.push(G),s(i),!1},fileList:i,onChange:A,itemRender:(J,G)=>m.jsx(Rze,{originNode:J,fileList:i,file:G,onRemove:O,disabled:c})},M=({id:J})=>new Promise((G,U)=>{const q=L(J);Fh.apiGetTeddyCloudApiRaw(`/api/fileIndexV2?path=${q}&special=library`).then(X=>X.json()).then(X=>{let Q=X.files;Q=Q.filter(ee=>ee.isDir&&ee.name!=="..").sort((ee,oe)=>ee.name===oe.name?0:ee.name.toLowerCase()>oe.name.toLowerCase()?1:-1).map(ee=>({id:J+"."+Q.indexOf(ee),pId:J,value:J+"."+Q.indexOf(ee),title:ee.name})),S(y.concat(Q)),G(!0)}).then(()=>{U()})}),L=J=>{const G=y.filter(U=>U.value===J)[0];return G.pId==="-1"?"":L(y.filter(U=>U.id===G.pId)[0].id)+"/"+G.title},F=()=>{s(J=>[...J].sort((G,U)=>G.name.localeCompare(U.name)))},j=()=>{s([])},B=()=>{x(!0)},z=J=>{R(!Gu(J.target.value.toString())),C(J.target.value)},H=()=>{const J=L(h),G=`${h}.${y.length}`,U={id:G,pId:h,value:G,title:w};try{Fh.apiPostTeddyCloudRaw("/api/dirCreate?special=library",J+"/"+w).then(q=>q.text()).then(q=>{if(q!=="OK")throw new Error(q);S([...y,U].sort((X,Q)=>X.title===Q.title?0:X.title.toLowerCase()>Q.title.toLowerCase()?1:-1)),b(G),Ye.success(e("fileBrowser.createDirectory.directoryCreated")),x(!1),C("")}).catch(q=>{Ye.error(q.message)})}catch{Ye.error("Error while creating directory")}},V=()=>{x(!1),C(""),R(!1)},te=m.jsxs(Sn,{title:e("fileBrowser.createDirectory.modalTitle"),open:v,onCancel:V,onOk:H,okText:e("fileBrowser.createDirectory.create"),cancelText:e("fileBrowser.createDirectory.cancel"),okButtonProps:{disabled:T},children:[m.jsxs("p",{children:[e("fileBrowser.createDirectory.inDirectory")," ",m.jsxs("b",{children:[L(h),"/"]})]}),m.jsx(qt.Item,{validateStatus:T?"error":"",help:T?e("inputValidator.invalidCharactersDetected",{invalidChar:kp}):"",required:!0,children:m.jsx(Jt,{ref:_,autoFocus:!0,placeholder:e("fileBrowser.createDirectory.placeholder"),value:w,status:T?"error":"",onChange:z})})]}),Y=J=>{const G=J.target.value;I(!Gu(G)),g(G)};return m.jsxs(m.Fragment,{children:[r,m.jsx(jn,{children:m.jsx(Go,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(Go,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")},{title:e("tonies.navigationTitle")},{title:e("tonies.encoder.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsx("h1",{children:e("tonies.encoder.title")}),m.jsxs(ka,{direction:"vertical",style:{display:"flex"},children:[m.jsx(NX,{sensors:[P],onDragEnd:D,children:m.jsx(DX,{items:i.map(J=>J.uid),strategy:AX,disabled:c,children:m.jsxs(vm.Dragger,{...k,disabled:c,children:[m.jsx("p",{className:"ant-upload-drag-icon",children:m.jsx(tN,{})}),m.jsx("p",{className:"ant-upload-text",children:e("tonies.encoder.uploadText",{maxFiles:jh})}),m.jsx("p",{className:"ant-upload-hint",children:e("tonies.encoder.uploadHint")})]})})}),i.length>0?m.jsxs(m.Fragment,{children:[m.jsxs(ka,{direction:"horizontal",style:{width:"100%",display:"flex",alignItems:"flex-start",flexWrap:"wrap"},children:[m.jsx(ct,{type:"default",disabled:c,onClick:F,children:e("tonies.encoder.sortAlphabetically")}),m.jsx(ct,{type:"default",disabled:c,style:{marginRight:16},onClick:j,children:e("tonies.encoder.clearList")})]}),m.jsx(Rr,{}),m.jsx("div",{style:{width:"100%"},className:"encoder",children:m.jsxs(ka,{direction:"vertical",style:{width:"100%"},children:[m.jsxs(ka.Compact,{direction:"horizontal",style:{width:"100%",display:"flex",alignItems:"flex-end",justifyContent:"flex-end"},children:[m.jsx(Jt,{type:"text",style:{maxWidth:180,borderTopRightRadius:0,borderBottomRightRadius:0},disabled:!0,value:e("tonies.encoder.saveAs")}),m.jsx(Al,{treeLine:!0,treeDataSimpleMode:!0,disabled:c,style:{maxWidth:250},value:h,dropdownStyle:{maxHeight:400,overflow:"auto"},onChange:b,loadData:M,treeData:y}),m.jsx(Zt,{title:e("fileBrowser.createDirectory.createDirectory"),children:m.jsx(ct,{disabled:c,icon:m.jsx(FR,{}),onClick:B,style:{borderRadius:0}})}),m.jsx(Jt,{addonAfter:".taf",required:!0,defaultValue:p,style:{maxWidth:300},status:i.length>0&&p===""||E?"error":"",onChange:Y,disabled:c})]}),E?m.jsx("div",{style:{textAlign:"end",color:t.colorErrorText},children:e("inputValidator.invalidCharactersDetected",{invalidChar:kp})}):"",m.jsx(ka.Compact,{style:{display:"flex",justifyContent:"flex-end",marginTop:"8px"},children:m.jsx(ct,{type:"primary",onClick:N,disabled:i.length===0||p===""||E,loading:c,children:e(c?d?"tonies.encoder.processing":"tonies.encoder.uploading":"tonies.encoder.upload")})})]})})]}):m.jsx(m.Fragment,{})]})]})]}),te]})},{Paragraph:kze}=bn,Aze=()=>{const{t:e}=Nt(),[t,n]=l.useState(!1),r=a=>{console.log("Received values of form: ",a),n(!1)};return m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(Go,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(Go,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")},{title:e("tonies.navigationTitle")},{title:e("tonies.tap.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsx("h1",{children:e("tonies.tap.title")}),m.jsx(An,{message:e("settings.information"),description:m.jsx("div",{children:"Development still in progress - Please be patient or support implementation of this feature!"}),type:"info",showIcon:!0,style:{marginBottom:8}}),m.jsx(wk,{special:"library",filetypeFilter:[".tap"],showColumns:["picture","name","size","date","controls"],isTapList:!0}),m.jsx(kze,{children:m.jsxs("div",{children:[m.jsx(ct,{type:"primary",style:{marginTop:8},onClick:()=>{n(!0)},children:e("tonies.tapEditor.titleCreate")}),m.jsx(pX,{open:t,onCreate:r,onCancel:()=>{n(!1)}})]})})]})]})]})},Bh=new xn(pn()),Mze=({overlay:e})=>{var d;const[t,n]=l.useState(),{t:r}=Nt(),[a,o]=l.useState(""),[i,s]=l.useState(!1);l.useEffect(()=>{(async()=>{try{const p=await Bh.apiGetTeddyCloudSettingRaw("core.settings_level");if(!p.ok)throw new Error(`HTTP error! status: ${p.status}`);const g=await p.json();o(g.toString())}catch(p){console.error("Error fetching settings level: ",p)}})()},[]),l.useEffect(()=>{(async()=>{var g,h;s(!0);const p=await Bh.apiGetIndexGet(e);(g=p==null?void 0:p.options)!=null&&g.length&&((h=p==null?void 0:p.options)==null?void 0:h.length)>0&&n(p),s(!1)})()},[e,a]);const c=async()=>{try{await Bh.apiTriggerWriteConfigGet()}catch{Ye.error("Error while saving config to file.")}},u=async f=>{try{await Bh.apiPostTeddyCloudSetting("core.settings_level",f),c(),o(f)}catch{Ye.error("Error while sending data to server.")}};return m.jsxs(m.Fragment,{children:[m.jsx(An,{message:r("settings.warning"),description:m.jsx("div",{children:r("settings.warningHint")}),type:"warning",showIcon:!0,style:{margin:"8px"}}),m.jsx(Rr,{children:r("settings.title")}),m.jsx(RY,{initialValues:{test:"test"},onSubmit:f=>{},children:m.jsx(qt,{labelCol:{span:8},wrapperCol:{span:14},layout:"horizontal",children:(d=t==null?void 0:t.options)==null?void 0:d.map((f,p,g)=>{if(f.iD.includes("core.settings_level")||!f.iD.includes("core.certdir")&&!f.iD.includes("core.client_cert.")&&!f.iD.includes("core.flex_")&&!f.iD.includes("core.contentdir")&&!f.iD.includes("toniebox.")&&!f.iD.includes("cloud.enabled")&&!f.iD.includes("cloud.enableV1Claim")&&!f.iD.includes("cloud.enableV1CloudReset")&&!f.iD.includes("cloud.enableV1FreshnessCheck")&&!f.iD.includes("cloud.enableV1Log")&&!f.iD.includes("cloud.enableV1Time")&&!f.iD.includes("cloud.enableV1Ota")&&!f.iD.includes("cloud.enableV2Content")&&!f.iD.includes("cloud.cacheOta")&&!f.iD.includes("cloud.localOta")&&!f.iD.includes("cloud.cacheContent")&&!f.iD.includes("cloud.cacheToLibrary")&&!f.iD.includes("cloud.markCustomTagByPass")&&!f.iD.includes("cloud.prioCustomContent")&&!f.iD.includes("cloud.updateOnLowerAudioId")&&!f.iD.includes("cloud.dumpRuidAuthContentJson"))return null;const h=f.iD.split("."),b=g[p-1]?g[p-1].iD.split("."):[];return m.jsxs(se.Fragment,{children:[h.slice(0,-1).map((y,S)=>b[S]!==y?S===0?m.jsxs("h3",{style:{marginLeft:`${S*20}px`,marginBottom:"10px"},children:["Category ",y]},`category-${y}`):m.jsxs("h4",{style:{marginLeft:`${S*10}px`,marginTop:"10px",marginBottom:"10px"},children:[".",y]},`category-${y}`):null),m.jsx(_Y,{option:f,overlayId:e},`option-item-${f.iD}`)]},`option-${f.iD}`)})})}),m.jsx(Rr,{children:r("settings.levelLabel")}),m.jsxs(ho.Group,{value:a,onChange:f=>u(f.target.value),style:{display:"flex",justifyContent:"center",marginTop:8},disabled:i,children:[m.jsx(ho.Button,{value:"1",children:"Basic"}),m.jsx(ho.Button,{value:"2",children:"Detail"}),m.jsx(ho.Button,{value:"3",children:"Expert"})]})]})},iB=new xn(pn());function BX(){const[e,t]=l.useState([]);return l.useEffect(()=>{async function n(){var r=[];try{const i=await(await iB.apiGetTeddyCloudApiRaw("/api/tonieboxesJson")).json();r=[...r,...i]}catch(o){console.error("Error fetching and transforming toniebox data:",o)}try{const i=await(await iB.apiGetTeddyCloudApiRaw("/api/tonieboxesCustomJson")).json();r=[...r,...i]}catch(o){console.error("Error fetching and transforming custom toniebox data:",o)}const a=r.map(o=>({id:o.id,name:o.name,img_src:o.img_src,crop:o.crop||null}));t(a)}n()},[]),e}const ma=new xn(pn()),{Paragraph:nI,Text:Pze}=bn,{Meta:Dze}=Jd,{useToken:Lze}=Ta,Fze=({tonieboxCard:e,tonieboxImages:t})=>{var Re,me,_e,Ze,Oe;const{t:n}=Nt(),{token:r}=Lze(),[a,o]=Ye.useMessage(),[i,s]=l.useState(!1),[c,u]=l.useState(""),[d,f]=l.useState(""),[p,g]=l.useState(""),[h,b]=l.useState(!1),[y,S]=l.useState(null),[v,x]=l.useState(),[w,C]=l.useState(!1),[E,I]=l.useState(!1),[T,R]=l.useState(!1),[_,$]=l.useState(e.boxModel),[P,D]=l.useState(e.boxModel),[A,O]=l.useState(e.boxName),[N,k]=l.useState(e.boxName),[M,L]=l.useState(null),[F,j]=l.useState(!1),[B,z]=l.useState(!0),[H,V]=l.useState(0);l.useEffect(()=>{(async()=>{const Ae=await ma.apiGetTonieboxApiAccess(e.ID);z(Ae)})()},[e.ID,w]),l.useEffect(()=>{(async()=>{const He=await ma.apiGetTonieboxStatus(e.ID);s(He)})(),(async()=>{const He=await ma.apiGetTonieboxVersion(e.ID),ze={0:"UNKNOWN",1:"CC3200",2:"CC3235",3:"ESP32"};if(He in ze){const Xe=ze[He];u(Xe)}else u("UNKNOWN")})(),(async()=>{const He=await ma.apiGetTonieboxLastRUID(e.ID);if(He!=="ffffffffffffffff"&&He!==""){const ze=await ma.apiGetTonieboxLastRUIDTime(e.ID);(async()=>{const je=await ma.apiGetTagIndex(e.ID);G(je.filter(Je=>Je.ruid===He),ze)})()}})(),i||(async()=>{const ze=await ma.apiGetLastOnline(e.ID);f(ze)})(),(async()=>{const ze=await(await ma.apiGetTeddyCloudSettingRaw("internal.ip",e.ID)).text();g(ze)})(),J(e.boxModel),D(e.boxModel)},[e.ID,e.boxModel]),l.useEffect(()=>{if(p&&c==="CC3200")try{fetch(`http://${p}/api/ajax?cmd=box-battery&sub=stats`).then(Se=>Se.text()).then(Se=>{console.log("Battery Stats fetched --> assume CFW active"),b(!0)}).catch(Se=>{console.log("No Battery Stats fetched --> assume CFW not active"),b(!1)})}catch{console.log("No Battery Stats fetched --> assume CFW not active"),b(!1)}},[p,c]);const te=BX(),Y=[{label:n("tonieboxes.editModelModal.unsetBoxName"),value:"-1"}].concat(te.map(Se=>({label:Se.name,value:Se.id}))),J=Se=>{const Ae=t.find(Fe=>Fe.id===Se);L(Ae?m.jsx("img",{src:Ae.img_src,alt:"",style:{...ae(Se),position:"absolute",top:"0",left:"0"}}):m.jsx("img",{src:"https://cdn.tonies.de/thumbnails/03-0009-i.png",alt:"",style:{filter:"opacity(0.20)",width:"100%",height:"auto",position:"absolute",top:"0",left:"0"}}))},G=(Se,Ae)=>{S(m.jsx(m.Fragment,{children:m.jsx(yt,{to:"/tonies?tonieRUID="+Se[0].ruid+"&overlay="+e.ID,children:m.jsx(Zt,{placement:"top",zIndex:2,title:n("tonieboxes.lastPlayedTonie")+Se[0].tonieInfo.series+(Se[0].tonieInfo.episode?" - "+Se[0].tonieInfo.episode:"")+(Ae?" ("+Ae+")":""),children:m.jsx("img",{src:Se[0].tonieInfo.picture,alt:"Tonie",style:{position:"absolute",bottom:0,right:0,zIndex:1,padding:8,borderRadius:4,height:"60%"}})})})}))},U=()=>{(async()=>{var Fe,Ve;const Ae=await ma.apiGetIndexGet(e.ID);(Fe=Ae==null?void 0:Ae.options)!=null&&Fe.length&&((Ve=Ae==null?void 0:Ae.options)==null?void 0:Ve.length)>0&&x(Ae)})(),q()},q=()=>{I(!0)},X=async()=>{I(!1)},Q=()=>{I(!1)},ee=()=>{C(!0)},oe=async()=>{C(!1)},le=()=>{C(!1)},fe=()=>{V(Se=>Se+1),ee()},ce=()=>{D(P===void 0?_:P),R(!0)},Ie=()=>{D(_),k(N),O(N),R(!1)},be=async()=>{J(P),$(P);const Se=async()=>{await ma.apiTriggerWriteConfigGet()};try{ma.apiPostTeddyCloudSetting("boxModel",P,e.ID).then(()=>{Se()}).catch(Ae=>{Ye.error(n("tonieboxes.editModelModal.errorWhileSavingConfig"))}),Ye.success(n("tonieboxes.editModelModal.successOnModelChange"))}catch(Ae){Ye.error(n("tonieboxes.editModelModal.errorOnModelChange",{error:Ae}))}},he=async()=>{k(A);const Se=async()=>{await ma.apiTriggerWriteConfigGet()};try{ma.apiPostTeddyCloudSetting("boxName",A.toString(),e.ID).then(()=>{Se()}).catch(Ae=>{Ye.error(n("tonieboxes.editModelModal.errorWhileSavingConfig"))}),Ye.success(n("tonieboxes.editModelModal.successOnNameChange"))}catch(Ae){Ye.error(n("tonieboxes.editModelModal.errorOnNameChange",{error:Ae}))}},ae=Se=>{const Ae=t.find(Fe=>Fe.id===Se);if(Ae&&Ae.crop){const[Fe,Ve,He]=Ae.crop;return{width:"100%",height:"auto",transform:`scale(${He}) translateX(${Fe}px) translateY(${Ve}px)`}}else return{width:"100%",height:"auto"}},ie=()=>e.ID.replace(/(.{2})(?=.)/g,"$1:"),ue=async()=>{R(!1),A!==N&&he(),_!==P&&be()},xe=m.jsx(m.Fragment,{children:m.jsxs(ct,{type:"primary",onClick:ue,disabled:A===N&&_===P,children:[m.jsx(uq,{},"saveClick")," ",n("tonies.editModal.save")]})}),we=m.jsxs(Sn,{title:m.jsx(m.Fragment,{children:m.jsxs("h3",{children:[n("tonieboxes.editModelModal.editModel",{name:e.boxName}),m.jsx("br",{}),m.jsx(Pze,{type:"secondary",children:(c!=="UNKNOWN"?c:"MAC")+": "+ie()})]})}),open:T,footer:xe,onCancel:Ie,children:[m.jsx(Rr,{orientation:"left",orientationMargin:"0",children:n("tonieboxes.editModelModal.name")}),m.jsx(nI,{children:m.jsx(Jt,{name:"boxName",value:A,onChange:Se=>O(Se.target.value),addonBefore:m.jsx(ta,{onClick:()=>O(N),style:{color:A===N?r.colorTextDisabled:r.colorText,cursor:A===N?"default":"pointer"}})})}),m.jsx(Rr,{orientation:"left",orientationMargin:"0",children:n("tonieboxes.editModelModal.model")}),m.jsx(nI,{children:m.jsx(Ar,{options:Y,value:P,onChange:Se=>D(Se)})})]}),Me=m.jsxs(Sn,{title:n("tonieboxes.uploadTonieboxCertificatesModal.uploadTonieboxCertificates",{name:e.boxName}),open:E,onOk:X,onCancel:Q,children:[m.jsxs(nI,{children:[n("tonieboxes.uploadTonieboxCertificatesModal.uploadPath")," ",m.jsx("i",{children:(me=(Re=v==null?void 0:v.options)==null?void 0:Re.find(Se=>Se.iD==="core.certdir"))==null?void 0:me.value})," ",m.jsx("small",{children:(Ze=(_e=v==null?void 0:v.options)==null?void 0:_e.find(Se=>Se.iD==="core.certdir"))!=null&&Ze.overlayed?n("tonieboxes.uploadTonieboxCertificatesModal.boxSpecific"):n("tonieboxes.uploadTonieboxCertificatesModal.AttentionGeneralPath")})]}),m.jsx(dX,{overlay:e.ID})]}),Ce=m.jsx(Sn,{title:n("tonieboxes.editTonieboxSettingsModal.editTonieboxSettings",{name:e.boxName}),width:"auto",open:w,onOk:oe,onCancel:le,children:m.jsx(Mze,{overlay:e.ID},H)}),De=()=>{try{a.open({type:"loading",content:n("tonieboxes.messages.deleting"),duration:0}),ma.apiPostTeddyCloudSetting("removeOverlay",null,e.ID).then(Se=>Se.text()).then(Se=>{a.destroy(),Se==="OK"?(a.open({type:"success",content:n("tonieboxes.messages.deleteSuccessful")}),window.location.reload()):a.open({type:"error",content:n("tonieboxes.messages.deleteFailed")+Se})}).catch(Se=>{a.destroy(),a.open({type:"error",content:n("tonieboxes.messages.deleteFailed")+Se})})}catch(Se){a.destroy(),a.open({type:"error",content:n("tonieboxes.messages.deleteFailed")+Se})}},ye=()=>{j(!0)},ve=()=>{De(),j(!1)},$e=()=>{j(!1)},Ee=m.jsx(Ad,{title:n("tonieboxes.confirmDeleteModal"),open:F,okText:n("tonieboxes.delete"),cancelText:n("tonieboxes.cancel"),content:n("tonieboxes.confirmDeleteDialog",{tonieboxToDelete:N}),handleOk:ve,handleCancel:$e}),ge=async()=>{try{await ma.apiTriggerWriteConfigGet()}catch{Ye.error("Error while saving config to file.")}},Ne=async()=>{try{ma.apiPostTeddyCloudSetting("toniebox.api_access",!B,e.ID).then(()=>{ge(),z(!B),B?Ye.success(n("tonieboxes.messages.apiAccessDisabled")):Ye.success(n("tonieboxes.messages.apiAccessEnabled"))}).catch(Se=>{throw new Error(Se.status+" "+Se.statusText)})}catch(Se){Ye.error(n("tonieboxes.messages.apiAccessNotChangedError")+Se)}};return m.jsxs(m.Fragment,{children:[o,m.jsx(Jd,{hoverable:!1,size:"default",style:{background:r.colorBgContainerDisabled,cursor:"default"},title:m.jsx("span",{children:N}),cover:m.jsxs("div",{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden"},children:[y,m.jsx("img",{src:(Oe=t.find(Se=>Se.id==="03-0009"))==null?void 0:Oe.img_src,alt:"",style:{position:"relative",filter:"opacity(0)",width:"100%",height:"auto"}}),M]}),actions:[m.jsx(m.Fragment,{children:B?i?m.jsx(Zt,{title:n("tonieboxes.online"),children:m.jsx(jR,{style:{color:"green",cursor:"default"}})}):m.jsx(Zt,{title:n("tonieboxes.offline")+(d?" - "+n("tonieboxes.lastOnline")+": "+d:""),children:m.jsx(jR,{style:{color:r.colorTextDescription,cursor:"default"}})}):m.jsx(Zt,{title:n("tonieboxes.accessApiDisabled"),children:m.jsx(Pwe,{style:{color:"red",cursor:"pointer"},onClick:Ne})})}),m.jsx(yg,{onClick:()=>ce()},"edit"),m.jsx(nN,{style:{marginRight:8},onClick:U},"certificate"),m.jsx(rN,{style:{marginRight:8},onClick:fe},"edit"),m.jsx(Ed,{style:{marginRight:8},onClick:ye},"delete")],children:m.jsx(Dze,{description:[(c!=="UNKNOWN"&&c!==void 0&&c!==null?c:"MAC")+" ",h?m.jsx(Zt,{title:n("tonieboxes.linkToBoxCFW"),children:m.jsxs(yt,{to:"http://"+p,target:"_blank",children:[ie()," ",m.jsx(kwe,{})]})}):ie()]})}),Ce,Me,we,Ee]})},jze=({tonieboxCards:e})=>{const[t,n]=l.useState(!0),r=BX();return r.length===0&&t?m.jsx("div",{children:"Loading..."}):m.jsx(xl,{grid:{gutter:16,xs:1,sm:2,md:2,lg:3,xl:3,xxl:4},dataSource:e,renderItem:a=>m.jsx(xl.Item,{id:a.ID,children:m.jsx(Fze,{tonieboxCard:a,tonieboxImages:r})})})},Bze=()=>m.jsx("svg",{version:"1.0",xmlns:"http://www.w3.org/2000/svg",width:"12.000000pt",height:"12.000000pt",viewBox:"0 0 900.000000 900.000000",preserveAspectRatio:"xMidYMid meet",children:m.jsxs("g",{transform:"translate(0.000000,900.000000) scale(0.100000,-0.100000)",fill:"currentColor",stroke:"none",children:[m.jsx("path",{d:"M5895 8380 c-4 -6 -21 -16 -38 -24 -60 -25 -301 -236 -416 -363 -42 -46 -101 -103 -131 -127 -30 -24 -116 -104 -190 -177 -75 -74 -167 -163 -205 -199 -39 -36 -132 -124 -208 -195 -186 -175 -194 -179 -368 -195 -138 -13 -274 -10 -303 7 -45 25 -385 357 -446 434 -65 84 -279 313 -345 369 -17 14 -58 40 -91 58 -59 31 -67 32 -177 32 -87 0 -117 -3 -127 -14 -6 -8 -23 -16 -37 -18 -28 -3 -61 -47 -62 -83 -1 -12 -5 -25 -10 -30 -5 -6 -28 -64 -50 -130 -51 -151 -94 -274 -121 -345 -12 -30 -32 -86 -45 -125 -13 -38 -38 -108 -54 -154 -17 -46 -31 -85 -31 -87 0 -2 -181 -4 -402 -4 -362 0 -410 -2 -473 -19 -93 -25 -147 -55 -209 -117 -62 -62 -92 -116 -117 -209 -18 -68 -19 -160 -19 -2724 0 -2915 -4 -2713 58 -2836 31 -62 127 -155 189 -185 109 -52 -33 -49 2843 -49 2835 0 2752 -2 2840 44 111 57 194 152 230 266 20 61 20 110 20 2759 0 2673 0 2697 -20 2755 -50 147 -153 247 -300 294 -33 10 -131 15 -370 20 l-325 6 -2 50 c-9 210 -37 703 -49 855 -8 102 -14 239 -14 306 0 171 9 164 -233 164 -115 0 -188 -4 -192 -10z m-1 -652 c3 -13 6 -68 6 -123 0 -55 7 -174 15 -265 8 -91 15 -202 15 -247 l0 -83 -420 0 c-356 0 -420 2 -420 14 0 8 4 16 9 18 5 2 34 26 63 53 29 28 118 111 198 185 147 137 229 213 402 378 53 51 103 92 111 92 8 0 17 -10 21 -22z m-2697 -470 c65 -61 146 -138 181 -171 34 -32 62 -63 62 -68 0 -5 -107 -9 -255 -9 -169 0 -255 3 -255 10 0 10 30 104 49 152 18 47 40 104 56 151 9 26 23 47 31 47 7 0 66 -50 131 -112z m3746 -698 c16 0 17 -130 15 -2622 l-3 -2623 -2642 -3 -2643 -2 -2 2617 c-2 1850 0 2620 8 2627 7 8 777 10 2630 9 1440 -2 2627 -3 2637 -3z"}),m.jsx("path",{d:"M5735 6087 c-54 -22 -72 -36 -104 -83 -27 -41 -31 -57 -31 -111 0 -129 77 -205 206 -205 90 0 154 42 188 126 66 160 -100 335 -259 273z"}),m.jsx("path",{d:"M2842 5359 c-52 -16 -118 -90 -132 -148 -36 -150 102 -286 252 -250 61 14 129 75 148 134 29 86 -9 195 -83 242 -45 29 -131 39 -185 22z"}),m.jsx("path",{d:"M5035 5362 c-90 -32 -145 -106 -145 -197 0 -96 68 -183 161 -205 39 -10 57 -9 101 4 63 19 75 28 116 85 28 39 32 52 32 110 0 120 -72 199 -186 206 -32 2 -68 1 -79 -3z"}),m.jsx("path",{d:"M5730 5359 c-85 -36 -130 -105 -130 -202 0 -56 4 -70 32 -108 40 -56 52 -65 112 -85 43 -15 57 -15 100 -4 235 59 212 392 -28 406 -33 2 -72 -1 -86 -7z"}),m.jsx("path",{d:"M2818 4620 c-48 -26 -93 -82 -108 -135 -29 -103 38 -216 147 -250 54 -17 58 -17 112 0 36 12 69 33 93 57 92 94 68 260 -47 325 -52 29 -144 31 -197 3z"}),m.jsx("path",{d:"M3506 4609 c-150 -100 -116 -315 59 -375 54 -18 56 -18 109 0 89 30 156 116 156 199 0 73 -68 172 -137 198 -13 5 -50 9 -82 9 -48 0 -66 -5 -105 -31z"}),m.jsx("path",{d:"M4258 4610 c-152 -101 -119 -316 57 -376 54 -18 56 -18 109 0 89 31 156 116 156 200 0 73 -66 170 -133 195 -16 6 -54 11 -86 11 -47 0 -66 -5 -103 -30z"}),m.jsx("path",{d:"M4984 4607 c-149 -103 -115 -318 60 -373 55 -17 59 -17 111 0 52 18 92 51 128 106 22 33 23 140 1 183 -40 78 -103 117 -193 117 -50 0 -66 -5 -107 -33z"}),m.jsx("path",{d:"M5715 4623 c-79 -41 -115 -103 -115 -195 0 -42 6 -72 17 -88 36 -55 76 -88 129 -106 53 -18 55 -18 109 1 121 41 182 154 143 266 -15 46 -42 79 -90 112 -34 22 -52 27 -102 27 -36 -1 -74 -7 -91 -17z"}),m.jsx("path",{d:"M2841 3901 c-60 -24 -107 -74 -127 -134 -15 -44 -15 -57 -4 -101 41 -161 208 -217 339 -114 48 37 65 78 66 155 0 63 -3 76 -30 115 -34 49 -120 98 -169 97 -17 0 -51 -8 -75 -18z"}),m.jsx("path",{d:"M3532 3894 c-162 -80 -161 -292 0 -375 46 -24 127 -25 171 -3 73 37 127 119 127 193 -1 77 -59 158 -138 192 -59 26 -98 24 -160 -7z"}),m.jsx("path",{d:"M4279 3892 c-99 -51 -148 -176 -103 -265 86 -170 309 -169 385 2 35 80 19 159 -47 225 -36 35 -105 66 -149 66 -18 0 -57 -13 -86 -28z"}),m.jsx("path",{d:"M5015 3896 c-60 -28 -94 -63 -112 -114 -28 -81 -10 -163 48 -220 104 -102 265 -77 330 50 22 42 26 146 8 181 -34 65 -128 127 -193 127 -17 0 -53 -11 -81 -24z"}),m.jsx("path",{d:"M5727 3901 c-45 -21 -93 -65 -113 -103 -21 -40 -18 -141 5 -186 37 -72 102 -112 181 -112 151 0 251 153 191 292 -23 52 -52 80 -111 107 -54 25 -102 25 -153 2z"}),m.jsx("path",{d:"M2855 3201 c-70 -17 -128 -80 -146 -159 -25 -105 47 -216 156 -242 49 -12 62 -11 110 4 148 46 194 226 86 337 -60 62 -122 80 -206 60z"}),m.jsx("path",{d:"M3546 3196 c-181 -67 -179 -326 3 -391 69 -24 127 -15 194 29 44 29 87 112 87 166 -1 59 -43 136 -95 172 -50 34 -132 45 -189 24z"}),m.jsx("path",{d:"M4296 3196 c-145 -54 -180 -230 -69 -348 27 -29 99 -58 142 -58 71 1 142 46 182 114 38 67 38 123 1 191 -51 93 -161 136 -256 101z"}),m.jsx("path",{d:"M5038 3203 c-36 -6 -115 -77 -133 -120 -45 -107 14 -239 124 -278 52 -18 84 -19 131 -2 49 17 72 35 108 86 28 39 32 52 32 110 0 80 -26 132 -85 173 -41 28 -117 42 -177 31z"}),m.jsx("path",{d:"M5737 3200 c-44 -14 -95 -58 -117 -100 -31 -61 -28 -153 8 -207 36 -55 69 -80 126 -95 129 -34 261 76 253 212 -4 71 -21 104 -78 152 -38 32 -54 39 -105 43 -32 2 -72 0 -87 -5z"}),m.jsx("path",{d:"M3535 2463 c-44 -23 -84 -63 -106 -105 -48 -94 -2 -219 100 -270 64 -33 103 -35 163 -9 79 34 137 115 138 192 0 74 -54 156 -127 193 -41 20 -129 20 -168 -1z"}),m.jsx("path",{d:"M4285 2463 c-44 -23 -84 -63 -106 -105 -48 -94 -2 -219 100 -270 64 -33 103 -35 163 -9 79 34 137 115 138 192 0 74 -54 156 -127 193 -41 20 -129 20 -168 -1z"}),m.jsx("path",{d:"M5012 2463 c-69 -38 -104 -83 -123 -162 -10 -46 20 -134 61 -176 32 -33 107 -65 151 -65 61 0 156 64 188 127 6 12 11 49 11 83 0 94 -42 161 -122 195 -50 20 -126 19 -166 -2z"})]})}),Ia=()=>{const{t:e}=Nt(),t=Yi(),[n,r]=l.useState([]),a=s=>{const c=[];s.includes("/tonieboxes/boxsetup")&&(c.push("boxsetup"),s.includes("/tonieboxes/boxsetup/esp32")?c.push("esp32"):s.includes("/tonieboxes/boxsetup/cc3200")?c.push("cc3200"):s.includes("/tonieboxes/boxsetup/cc3235")&&c.push("cc3235")),r(u=>Array.from(new Set([...u,...c])))};l.useEffect(()=>{a(t.pathname)},[t.pathname]);const o=s=>{const c=s.find(d=>!n.includes(d)),u=n.find(d=>!s.includes(d));c?r(d=>[...d,c]):u&&r(d=>d.filter(f=>f!==u))},i=[{key:"tonieboxes",label:m.jsx(yt,{to:"/tonieboxes",style:{marginLeft:8},children:e("tonieboxes.navigationTitle")}),icon:se.createElement(Bze),title:e("tonieboxes.navigationTitle")},{key:"boxsetup",label:m.jsx(yt,{to:"/tonieboxes/boxsetup",style:{color:"currentColor"},children:e("tonieboxes.boxSetup.navigationTitle")}),icon:se.createElement(cq),title:e("tonieboxes.boxSetup.navigationTitle"),children:[{key:"identifyboxversion",label:m.jsx(yt,{to:"/tonieboxes/boxsetup/identifyboxversion",children:e("tonieboxes.boxSetup.identifyVersion.navigationTitle")}),icon:se.createElement(om),title:e("tonieboxes.boxSetup.identifyVersion.navigationTitle")},{key:"openbox",label:m.jsx(yt,{to:"/tonieboxes/boxsetup/openboxguide",children:e("tonieboxes.boxSetup.openBoxGuide.navigationTitle")}),icon:se.createElement(tCe),title:e("tonieboxes.boxSetup.openBoxGuide.navigationTitle")},{key:"esp32",label:m.jsx(yt,{to:"/tonieboxes/boxsetup/esp32/flashing",style:{color:"currentColor",display:"flex",alignItems:"center",padding:"0 50px 0 0"},children:e("tonieboxes.esp32BoxFlashing.navigationTitle")}),icon:se.createElement(Jf),title:e("tonieboxes.esp32BoxFlashing.navigationTitle"),children:[{key:"esp32legacy",label:m.jsx(yt,{to:"/tonieboxes/boxsetup/esp32/legacy",children:e("tonieboxes.esp32BoxFlashing.legacy.navigationTitle")}),icon:se.createElement(Jf),title:e("tonieboxes.esp32BoxFlashing.legacy.navigationTitle")}]},{key:"cc3200",label:m.jsx(yt,{to:"/tonieboxes/boxsetup/cc3200/flashing",children:e("tonieboxes.cc3200BoxFlashing.navigationTitle")}),icon:se.createElement(Jf),title:e("tonieboxes.cc3200BoxFlashing.navigationTitle")},{key:"cc3235",label:m.jsx(yt,{to:"/tonieboxes/boxsetup/cc3235/flashing",children:e("tonieboxes.cc3235BoxFlashing.navigationTitle")}),icon:se.createElement(Jf),title:e("tonieboxes.cc3235BoxFlashing.navigationTitle")}]}];return m.jsx(Sm,{mode:"inline",defaultOpenKeys:["sub"],openKeys:n,selectedKeys:[],onOpenChange:o,items:i})},sB=new xn(pn()),zze=()=>{const{t:e}=Nt(),[t,n]=l.useState([]),[r,a]=l.useState(!1);l.useEffect(()=>{(async()=>{const c=await sB.apiGetTonieboxesIndex();n(c)})(),(async()=>{try{const c=await sB.apiGetNewBoxesAllowed();a(c)}catch(c){Ye.error("Fetching new box allowed: "+c)}})()},[]);const o=r?m.jsx(An,{message:e("tonieboxes.newBoxesAllowed"),description:e("tonieboxes.newBoxesAllowedText"),type:"warning",showIcon:!0,style:{margin:"16px 0"}}):"";return m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(Ia,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(Ia,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")},{title:e("tonieboxes.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsx("h1",{children:e("tonieboxes.title")}),o,m.jsx(jze,{tonieboxCards:t})]})]})]})},eo=()=>{const{t:e}=Nt(),[t,n]=l.useState([]),r=i=>{const s=[];i.includes("/contribution")&&s.push("contribution"),n(c=>Array.from(new Set([...c,...s])))};l.useEffect(()=>{r(location.pathname)},[location.pathname]);const a=i=>{const s=i.find(u=>!t.includes(u)),c=t.find(u=>!i.includes(u));s?n(u=>[...u,s]):c&&n(u=>u.filter(d=>d!==c))},o=[{key:"community",label:m.jsx(yt,{to:"/community",children:e("community.navigationTitle")}),icon:se.createElement($we),title:e("community.navigationTitle")},{key:"faq",label:m.jsx(yt,{to:"/community/faq",children:e("community.faq.navigationTitle")}),icon:se.createElement(LG),title:e("community.faq.navigationTitle")},{key:"contribution",label:m.jsx(yt,{to:"/community/contribution",style:{color:"currentColor",display:"flex",alignItems:"center",padding:"0 50px 0 0"},children:e("community.contribution.navigationTitle")}),icon:se.createElement(_xe),title:e("community.contribution.navigationTitle"),children:[{key:"toniesJson",label:m.jsx(yt,{to:"/community/contribution/tonies-json",children:e("community.contribution.toniesJson.navigationTitle")}),icon:se.createElement(M0e),title:e("community.contribution.toniesJson.navigationTitle")},{key:"translation",label:m.jsx(yt,{to:"/community/contribution/translations",children:e("community.translations.navigationTitle")}),icon:se.createElement(lq),title:e("community.translations.navigationTitle")}]},{key:"contributors",label:m.jsx(yt,{to:"/community/contributors",children:e("community.contributors.navigationTitle")}),icon:se.createElement(Qxe),title:e("community.contributors.navigationTitle")},{key:"changelog",label:m.jsx(yt,{to:"/community/changelog",children:e("community.changelog.navigationTitle")}),icon:se.createElement(j1e),title:e("community.changelog.navigationTitle")},{key:"Forum",label:m.jsx(yt,{to:"https://forum.revvox.de/",target:"_blank",children:e("community.forum.navigationTitle")}),icon:se.createElement(hxe),title:e("community.forum.navigationTitle")}];return m.jsx(Sm,{mode:"inline",defaultOpenKeys:["sub"],openKeys:t,selectedKeys:[],onOpenChange:a,items:o})},{Paragraph:lB}=bn,Hze=()=>{const{t:e}=Nt();return m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(eo,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(eo,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")},{title:e("community.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsx("h1",{children:e("community.title")}),m.jsxs(lB,{children:[m.jsx("h2",{children:"Get involved"}),"Be a part of our global contributor community by writing code, commenting on issues, or participate in discussons in our telegram group."]}),m.jsxs(lB,{children:["Your best points of contact are the following locations",m.jsxs("ul",{children:[m.jsxs("li",{children:[m.jsx(yt,{to:"https://github.com/toniebox-reverse-engineering",target:"_blank",children:"GitHub"}),m.jsx("ul",{children:m.jsx("li",{children:"The place where all sources are stored for this and related projects. Where you can fork the repositories, contribute new or improved features, create issues or just give some feedback on already existing issues."})})]}),m.jsxs("li",{children:[m.jsx(yt,{to:"https://t.me/toniebox_reverse_engineering",target:"_blank",children:"Telegram Chat"}),m.jsx("ul",{children:m.jsx("li",{children:"The first level support if you need help or if you are interested in getting involved in the development of TeddyCloud."})})]}),m.jsxs("li",{children:[m.jsx(yt,{to:"https://forum.revvox.de/",target:"_blank",children:"Discourse Forum"}),m.jsx("ul",{children:m.jsx("li",{children:"The lively knowledge base for the project, a place to ask questions whose answers can be helpful for others."})})]}),m.jsxs("li",{children:[m.jsx(yt,{to:"https://tonies-wiki.revvox.de/docs/tools/teddycloud/",target:"_blank",children:"TeddyCloud Wiki"}),m.jsx("ul",{children:m.jsx("li",{children:"A Wiki contains, among other things, how to install TeddyCloud and how to solve possible problems."})})]})]})]})]})]})]})},{Paragraph:bu}=bn,Uze=()=>{const{t:e}=Nt(),t=["Use welcome and inclusive language.","Be respectful of differing viewpoints and experiences.","Gracefully accept constructive criticism.","Foster what's best for the community.","Show empathy for other community members.","Decisions are made based on technical merit and consensus. The Teddycloud community aspires to treat everyone equally, and to value all contributions."],n=["Write code.","Improve documentation.","Answer questions on our telegram group.","Investigate bugs and issues on GitHub.","Review and comment on pull requests from other developers.","Report an issue.","Give a “thumbs up” 👍 on issues that are relevant to you."];return m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(eo,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(eo,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")},{title:e("community.navigationTitle")},{title:e("community.contribution.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsx("h1",{children:e("community.contribution.title")}),m.jsxs(bu,{children:[m.jsx(bu,{children:"The Teddycloud can only grow through the contributions of this community. Thanks so much for your enthusiasm and your work - we appreciate everything you do!"}),m.jsxs(bu,{children:[m.jsx("h2",{children:"Community values"}),m.jsx(bu,{children:"In the interest of fostering an open and welcoming environment, contributors and maintainers pledge to make participation in our project and our community a harassment-free experience for everyone - regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation."}),m.jsx(bu,{children:"Examples of behaviors that contribute to creating a positive environment include:"}),m.jsx("ul",{children:t.map((r,a)=>m.jsx("li",{children:r},a))})]}),m.jsxs(bu,{children:[m.jsx("h2",{children:"Make your first contribution"}),"There are many ways to contribute to Teddycloud! You can contribute code and make improvements to the Teddycloud documentation. Our most common contributions include code, documentation, and community support.",m.jsx("ul",{children:n.map((r,a)=>m.jsx("li",{children:r},a))})]})]})]})]})]})},Vze=new xn(pn()),{Paragraph:cB}=bn,{Panel:Wze}=yl,Gze=()=>{const{t:e}=Nt(),[t,n]=l.useState({});return l.useEffect(()=>{async function r(){try{const s=(await(await Vze.apiGetTeddyCloudApiRaw("/api/toniesJson")).json()).filter(u=>u.audio_id&&u.audio_id.length===0&&!["creative-tonie","system"].includes(u.category)&&!u.model.includes("20000")).map(u=>({model:u.model,series:u.series,episodes:u.episodes,pic:u.pic,audio_id:u.audio_id||[],category:u.category,language:u.language})),c={};s.forEach(u=>{c[u.language]||(c[u.language]=[]),c[u.language].push(u)}),n(c)}catch(a){console.error("Error fetching and transforming data:",a)}}r()},[]),m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(eo,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(eo,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")},{title:e("community.navigationTitle")},{title:e("community.contribution.navigationTitle")},{title:e("community.contribution.toniesJson.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsx("h1",{children:e("community.contribution.toniesJson.title")}),m.jsx(cB,{children:e("community.contribution.toniesJson.text")}),m.jsx(cB,{children:m.jsx(yl,{accordion:!0,children:Object.keys(t).map((r,a)=>m.jsx(Wze,{header:r,children:m.jsx(xl,{children:Array.isArray(t[r])&&t[r].map((o,i)=>m.jsx(xl.Item,{id:o.model,children:m.jsxs("div",{children:[m.jsx("img",{src:o.pic,alt:"",style:{width:"100px",height:"auto"}}),o.model," - ",o.series," -"," ",o.episodes]})},i))})},a))})})]})]})]})},{Paragraph:Hf}=bn,qze=()=>{const{t:e}=Nt();return m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(eo,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(eo,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")},{title:e("community.navigationTitle")},{title:e("community.contributors.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsx("h1",{children:e("community.contributors.title")}),m.jsxs(Hf,{children:["This project relies on the tireless contributors who offer their free time and skills. Directly related to TeddyCloud are the contributors of the two projects teddycloud and teddycloud_web:",m.jsxs(Hf,{children:[m.jsx("h3",{children:"teddycloud"}),m.jsx("div",{children:"The most neccessary, but mostly invisible part of your TeddyCloud Server."}),m.jsx(yt,{to:"https://github.com/toniebox-reverse-engineering/teddycloud/graphs/contributors",target:"_blank",children:"https://github.com/toniebox-reverse-engineering/teddycloud/graphs/contributors"})]}),m.jsxs(Hf,{children:[m.jsx("h3",{children:"teddycloud_web"}),m.jsx("div",{children:"Which is actually this frontend you are using and seeing here."}),m.jsx(yt,{to:"https://github.com/toniebox-reverse-engineering/teddycloud_web/graphs/contributors",target:"_blank",children:"https://github.com/toniebox-reverse-engineering/teddycloud_web/graphs/contributors"})]}),m.jsxs(Hf,{children:["You can find more contributors to the entire topic complex in the other GitHub repositories at"," ",m.jsx(yt,{to:"https://github.com/orgs/toniebox-reverse-engineering/repositories",target:"_blank",children:"https://github.com/orgs/toniebox-reverse-engineering/repositories"})]})]}),m.jsx(ka,{}),m.jsxs(Hf,{children:[m.jsx("div",{style:{marginBottom:24},children:"A big round of applause for them!"}),m.jsx(pk,{maxNoOfGuests:100,toniesSize:150,showQuestionMark:!1,height:150})]})]})]})]})},{Paragraph:uB,Text:rI}=bn,Kze=()=>{const{t:e}=Nt(),t=[{version:"0.6.2",changes:["Stabilization backend","Provide TrackSeconds for Frontend https://github.com/toniebox-reverse-engineering/teddycloud/issues/187","Fixed bug no update of model in content.json if empty https://github.com/toniebox-reverse-engineering/teddycloud/issues/215","Added web_version.json for consistency checks, including new setting frontend.ignore_web_version_mismatch","Added frontend setting frontend.confirm_audioplayer_close","Fixed some bugs","gui: Next button in audio player now jumps according tracks of taf","gui: Show error if something went wrong while encoding new taf (Audio Encoder)","gui: Added translation overview page in community contribution section","gui: Improved Audio Encoder, leave selected target folder till reload of page, if only one file is added, take filename as preset for taf filename https://github.com/toniebox-reverse-engineering/teddycloud/issues/223","gui: Fixed filterbug in FileBrowser Component (List + Select) https://github.com/toniebox-reverse-engineering/teddycloud/issues/224","gui: Show warning if web_version of gui does not match expected web_version from backend","gui: Show warning if ogg/opus (taf) is not supported by browser","gui: Integrated frontend.confirm_audioplayer_close","gui: Improved Code Snippet Element, show line numbers and added copy functionality","gui: Added Box setup overview page","gui: Added Box version identification page https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/145","gui: Added Open Toniebox guide page (first version) https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/146","gui: Extended CC3200 Firmware flash section, added custom alt Url Patch generation. https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/126","gui: Extended CC3200 Firmware flash section, extended Applying Patches step","gui: Extended CC3235 Firmware flash section, same version as wiki, but additional images flash chip","gui: Added ESP32 Firmware flash legacy section, same version as wiki","gui: some refactoring"],commits:["https://github.com/toniebox-reverse-engineering/teddycloud/compare/tc_v0.6.1...tc_v0.6.2","https://github.com/toniebox-reverse-engineering/teddycloud_web/compare/tcw_v0.6.1...tcw_v0.6.2"],discussionLink:"https://forum.revvox.de/t/release-notes-0-6-2/773",githubReleaseLink:"https://github.com/toniebox-reverse-engineering/teddycloud/releases/tag/tc_v0.6.2"},{version:"0.6.1",changes:["Stabilization backend","Changed default for setting cloud.prioCustomContent to false","Disabled prioCustomContent if lower audio id is allowed","Added reload tonies(.custom).json api https://github.com/toniebox-reverse-engineering/teddycloud/issues/177","Added moveFile api https://github.com/toniebox-reverse-engineering/teddycloud/issues/198","Added server side taf file encoding","Support TAF files in taps and server side taf file encoding","Added API to extract certificates https://github.com/toniebox-reverse-engineering/teddycloud/issues/103","Initial cert generation generates now a 4096bit long cert https://github.com/toniebox-reverse-engineering/teddycloud/issues/138","Extended settings api","Fixed bug updating empty model information if entry was added in tonies.json https://github.com/toniebox-reverse-engineering/teddycloud/issues/215","Fixed some bugs","gui: Fixed bug storing source with html special chars","gui: Fixed bug saving model and source of a tonie/tag at once","gui: Fixed display bug sourceInfo with unknown content","gui: Integrated new reload tonies.json api","gui: Added Moving and renaming of files in library and content","gui: Fixing security weaknesses","gui: Added file upload to library",`gui: If setting "Category frontend: Split content / model" is disabled, don't show the source info in Tonies list and details modal`,"gui: Added encoding functionality in library","gui: Allow playing all encodable files in teddyCloud","gui: ESP32 flash process - integrated remaining manual steps. Certificate extraction is now also automated","gui: Fixed bug tonieboxes if tonieboxes.custom.json was empty or not available https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/133","gui: Added Spanish language - feel free to improve translations as current translation is completely done by ChatGPT."],commits:["https://github.com/toniebox-reverse-engineering/teddycloud/compare/tc_v0.6.0...tc_v0.6.1","https://github.com/toniebox-reverse-engineering/teddycloud_web/compare/tcw_v0.6.0...tcw_v0.6.1"],discussionLink:"https://forum.revvox.de/t/release-notes-0-6-1/701",githubReleaseLink:"https://github.com/toniebox-reverse-engineering/teddycloud/releases/tag/tc_v0.6.1"},{version:"0.6.0",changes:["Stabilization backend","store last played time of last played tag","extend getTagIndex API, provide language in tonieInfos","PoC Toniebox api access (explicitly allow access to teddy cloud api on tonebox level)","Added enable/disable new Tonieboxes: prohibit registration of new tonieboxes if not enabled","Added removal of overlays (= removal of Tonieboxes from TeddyCloud)","add hide tonie/tag functionality (hide using new /web gui, present to box to unhide)","fixed locking bug, reworked locking.","fixed bug not storing cloud auth in some circumstances","fixed bug not storing source in json file: https://github.com/toniebox-reverse-engineering/teddycloud/issues/165","added limit to tempfile creation for radiostreams, default: 240mb (~6h) (configurable if expert mode is activated) https://github.com/toniebox-reverse-engineering/teddycloud/issues/180","added possibility to set WiFi Credentials on ESP32 Firmware patching","introduced second HTTPS port for WebFrontend only, which allows using https for webfrontend (Default: 8443)","tonie images from boxine can now be cached locally (PoC)","new /web gui is now default web gui: https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/47","new /web gui: enhanced Toniecard, added search for Radiostream in Edit Modal","new /web gui: Tonies - Content section - added Migrate Content to Lib button on TAF files","new /web gui: added RTNL Log Page: https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/48","new /web gui: added show Json File when double click on json file (File browser view)","new /web gui: added show TAP File when double click on tap file (File browser view)","new /web gui: added show TAF Header (including AudioID + Hash) when double click on a taf file (File browser view)","new /web gui: show date time of last played tag (toniecard + toniboxcard)","new /web gui: added Tonie Audio Playlist page (WIP - Implementation not yet finished), rearranged menu entries tonies section: https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/52","new /web gui: added delete feature in content, library and audio playlist page","new /web gui: improved changelog page, parse links and open links in new tab; completed contributors page: https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/27","new /web gui: added language flag to tonies card if it's not the same as the most owned language ones, added language filter","new /web gui: deletion of tonieboxes","new /web gui: info if add new boxes is enabled on homepage and tonieboxes page","new /web gui: enable/disable API access for toniebox added on tonieboxes page","new /web gui: add hide tonie/tag in tonies list (in info modal)","new /web gui: PoC Tonies Custom Json Editor (WiP, not working, but you get the json part to copy into the tonies.custom.json)","new /web gui: PoC Tonie Audio Playlist Editor (WiP, not working, but you get the json to copy and save as a TAP file) ","new /web gui: allow TAP files to be selected on Edit Tag Modal","new /web gui: new 404 page","new /web gui: hidden feature Tonie meeting. Search for it!","new /web gui: added link to Toniebox if the box is version cc3200, an ip is available and cfw is installed: https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/28","new /web gui: hide audioplayer if no source is set, when clicking on play icon of a tonie/taf/... the player is shown: https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/40","new /web gui: added minimize/maximize audioplayer https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/40","new /web gui: show Tonie on tonie article search","new /web gui: improved audioplayer, added volume control to custom one, hide doubled audioplayer","new /web gui: added French translation. Feel free to check if chatGPT is a good translator. If something is wrong, give us a shout at telegram!","new /weg gui: overworked filebrowser to be responsive","new /web gui: overworked tonie information modal, now also available in file browser (library + content)","new /web gui: added Create Directory functionality in file browser","new /web gui: added better breadcrumb to filebrowser (clickable for easy directory switching) https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/78","new /web gui: set nocloud to true if source of a tag is changed https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/77","new /web gui: show image and information from set source if different from model https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/80","new /web gui: tonie overview: filter now also considers information from set source","new /web gui: fixed bugs after updating tonies in tonies overview","new /web gui: added FAQ page in community section","new /web gui: support web streams in audioplayer","new /web gui: improved filebrowser, added filter field and made buttons sticky","new /web gui: integrated ESP32 Firmware Flashing https://github.com/toniebox-reverse-engineering/teddycloud_web/issues/46","new /web gui: integrated setting of WiFi credentials in ESP32 Firmware Flashing","new /web gui: show hint on ESP32 Firmware Flashing page if browser does not support WebSerial","new /web gui: allow multiselection in file browser for file deletion","new /web gui: limit audio encoder to 99 files (as Toniebox only supports 99 chapters)","new /web gui: fixed image fetch loop when playing a tonie","new /web gui: fixed poor audio quality in some case when using audio encoder","new /web gui: migrated gui from create-react-app to vite","new /web gui: fixed some bugs and minor refactoring"],commits:["https://github.com/toniebox-reverse-engineering/teddycloud/compare/tc_v0.5.2...tc_v0.6.0","https://github.com/toniebox-reverse-engineering/teddycloud_web/compare/tcw_v0.5.2...tcw_v0.6.0"],discussionLink:"https://forum.revvox.de/t/release-notes-0-6-0/468",githubReleaseLink:"https://github.com/toniebox-reverse-engineering/teddycloud/releases/tag/tc_v0.6.0"},{version:"0.5.2",changes:["Stabilization backend","Several fixes and changes regards backend crashes and emptied config files when changing any tonie setting","Fix for random directories in library (and everywhere)","Fixed bug storing last played tonie per box","Fixed bug clearing text settings (like paths or flex tonie)","API for searching models is now case insensitive","Save IP of Toniebox as prepartion for linking CFW Tonieboxes","Introduced Settings level - 1: Basic, 2: Detail, 3: Expert (1 Default - if you are missing settings, increase level!)","new /web gui: enhanced Tonies Card, added editable content source","new /web gui: enhanced Toniebox Card, improved UX","new /web gui: Dark theme (Last used Theme stored in localStorage in Browser)","new /web gui: Show All (Hide Pagination on Tonies List, stored in localStorage in Browser)","new /web gui: Support of overlayed content folder. More details can be found here: https://forum.revvox.de/t/teddycloud-supporting-multiple-tonieboxes/451/1","new /web gui: Text inputs in Settings must be saved explicitly. (only Textinputs, other types are still autosaved.) Expect changes in future releases.","new /web gui: fixed various state bugs","new /web gui: show last online date of offline tonieboxes","new /web gui: Messages on successful setting updates","new /web gui: some refactoring"],commits:["https://github.com/toniebox-reverse-engineering/teddycloud/compare/tc_v0.5.1...tc_v0.5.2","https://github.com/toniebox-reverse-engineering/teddycloud_web/compare/tcw_v0.5.1...tcw_v0.5.2"],discussionLink:"https://forum.revvox.de/t/release-notes-0-5-2/450",githubReleaseLink:"https://github.com/toniebox-reverse-engineering/teddycloud/releases/tag/tc_v0.5.2"},{version:"0.5.1",changes:["Stabilization Backend (added locks to prevent crashes, removed memory leaks)","Creating dirs when uploading certificates to a not yet existing path","Moving Tafs from Content to Library on click (not yet available in (new?) frontend)","new /web gui: Pagination + Filtering on Tonies List ( Paging Tonies · Issue #24 · toniebox-reverse-engineering/teddycloud_web · GitHub 2 )","new /web gui: Extend Box Management: Certificate upload now box specific possible, overworked certificate upload ( Certificate upload box related · Issue #26 · toniebox-reverse-engineering/teddycloud_web · GitHub )","new /web gui: Show last played Tonie on Box Management, link to prefiltered Tonieslist, added marking of the Last played Tonies on each box in Tonieslist ( Make use of internal.last_ruid · Issue #30 · toniebox-reverse-engineering/teddycloud_web · GitHub 1 )","new /web gui: adapted cursor on cards to default as cards not really clickable ( TonieCard Cursor · Issue #25 · toniebox-reverse-engineering/teddycloud_web · GitHub )","new /web gui: fixed navigation item marking","new /web gui: updated box models, added pseudomodels of the official tonies covers (sleepy bear, sheep and rabbit). They are now placed in a json in the config folder. Custom tonieboxes are now also possible. Add your customised one in tonieboxes.custom.json and choose it in the box mgmt.","new /web gui: added community section (WIP) ( Add Changelog and contribution page · Issue #27 · toniebox-reverse-engineering/teddycloud_web · GitHub 1 )","new /web gui: fixed warnings"],commits:["https://github.com/toniebox-reverse-engineering/teddycloud/compare/tc_v0.5.0...tc_v0.5.1","https://github.com/toniebox-reverse-engineering/teddycloud_web/compare/tcw_v0.5.0...tcw_v0.5.1"],discussionLink:"https://forum.revvox.de/t/release-notes-0-5-1/447",githubReleaseLink:"https://github.com/toniebox-reverse-engineering/teddycloud/releases/tag/tc_v0.5.1"},{version:"0.5.0",changes:["security mitigations on public instances as it‘s definitely not recommended to host teddycloud in public accessible for all","prepared authentication for frontend (backend adaptions)","linked new /web gui on teddycloud administration gui","overworked header, reordered menu items, new icons, better readable status in new /web gui","fixed modals (still some display problems on small devices like mobiles exists)","added audio encoder to new /web gui, you are now able to select files and encode them to a taf","This lets you bring your own content easily on an existing tonie.","added toniebox management to new /web gui, improved backend functions for that","only at least once connected boxes are listed, model must be set manually","enriched homepage in new /web gui with 5 randomly selected tonies of yours","adapt tonie card list to different cover image sizes in new /web gui (all cards within one row have now the same height)","added no cloud and live icon (Toggle to enable/disable) on tonie card in new /web gui","fixed several bugs"],commits:["https://github.com/toniebox-reverse-engineering/teddycloud/pull/154","https://github.com/toniebox-reverse-engineering/teddycloud_web/pull/8","https://github.com/toniebox-reverse-engineering/teddycloud_web/pull/9","https://github.com/toniebox-reverse-engineering/teddycloud_web/pull/19","https://github.com/toniebox-reverse-engineering/teddycloud_web/pull/21","https://github.com/toniebox-reverse-engineering/teddycloud_web/pull/22"],discussionLink:"https://forum.revvox.de/t/release-notes-0-5-0/444",githubReleaseLink:"https://github.com/toniebox-reverse-engineering/teddycloud/releases/tag/tc_v0.5.0"},{version:"0.4.5 and older",changes:["A lot more. See Github for details!"],commits:[]}],n=r=>{const a=/(https?:\/\/[^\s]+)/g;return r.split(a).map((i,s)=>a.test(i)?m.jsx(yt,{to:i,target:"_blank",rel:"noopener noreferrer",children:i},s):i)};return m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(eo,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(eo,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")},{title:e("community.navigationTitle")},{title:e("community.changelog.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsx("h1",{children:e("community.changelog.title")}),m.jsx(uB,{children:m.jsx(xl,{dataSource:t,renderItem:r=>m.jsxs(m.Fragment,{children:[m.jsxs("h2",{children:["Version ",r.version]}),m.jsxs(uB,{children:[m.jsx("h3",{children:"Changes"}),m.jsx("ul",{children:r.changes.map((a,o)=>m.jsx("li",{children:n(a)},o))})]}),r.commits&&r.commits.length>0&&m.jsxs(m.Fragment,{children:[m.jsx(rI,{strong:!0,children:"All contained commits can be found here (teddy cloud repo):"}),m.jsx("ul",{children:r.commits.map((a,o)=>m.jsx("li",{children:m.jsx(yt,{to:a,target:"_blank",children:a})},o))})]}),r.discussionLink&&m.jsxs(m.Fragment,{children:[m.jsx(rI,{strong:!0,children:"Discussion:"}),m.jsx("ul",{children:m.jsx("li",{children:m.jsx(yt,{to:r.discussionLink,target:"_blank",children:r.discussionLink})})})]}),r.githubReleaseLink&&m.jsxs(m.Fragment,{children:[m.jsx(rI,{strong:!0,children:"GitHub Release:"}),m.jsx("ul",{children:m.jsx("li",{children:m.jsx(yt,{to:r.githubReleaseLink,target:"_blank",children:r.githubReleaseLink})})})]})]})})})]})]})]})};class $a extends Error{}/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const Yze=4,dB=0,fB=1,Xze=2;function pf(e){let t=e.length;for(;--t>=0;)e[t]=0}const Zze=0,zX=1,Qze=2,Jze=3,e9e=258,Ck=29,$m=256,Og=$m+1+Ck,od=30,Ek=19,HX=2*Og+1,rc=15,aI=16,t9e=7,Ik=256,UX=16,VX=17,WX=18,I_=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),Iv=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),n9e=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),GX=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),r9e=512,cs=new Array((Og+2)*2);pf(cs);const Ap=new Array(od*2);pf(Ap);const Ng=new Array(r9e);pf(Ng);const kg=new Array(e9e-Jze+1);pf(kg);const Tk=new Array(Ck);pf(Tk);const jb=new Array(od);pf(jb);function oI(e,t,n,r,a){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=a,this.has_stree=e&&e.length}let qX,KX,YX;function iI(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}const XX=e=>e<256?Ng[e]:Ng[256+(e>>>7)],Ag=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},Ka=(e,t,n)=>{e.bi_valid>aI-n?(e.bi_buf|=t<>aI-e.bi_valid,e.bi_valid+=n-aI):(e.bi_buf|=t<{Ka(e,n[t*2],n[t*2+1])},ZX=(e,t)=>{let n=0;do n|=e&1,e>>>=1,n<<=1;while(--t>0);return n>>>1},a9e=e=>{e.bi_valid===16?(Ag(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},o9e=(e,t)=>{const n=t.dyn_tree,r=t.max_code,a=t.stat_desc.static_tree,o=t.stat_desc.has_stree,i=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,c=t.stat_desc.max_length;let u,d,f,p,g,h,b=0;for(p=0;p<=rc;p++)e.bl_count[p]=0;for(n[e.heap[e.heap_max]*2+1]=0,u=e.heap_max+1;uc&&(p=c,b++),n[d*2+1]=p,!(d>r)&&(e.bl_count[p]++,g=0,d>=s&&(g=i[d-s]),h=n[d*2],e.opt_len+=h*(p+g),o&&(e.static_len+=h*(a[d*2+1]+g)));if(b!==0){do{for(p=c-1;e.bl_count[p]===0;)p--;e.bl_count[p]--,e.bl_count[p+1]+=2,e.bl_count[c]--,b-=2}while(b>0);for(p=c;p!==0;p--)for(d=e.bl_count[p];d!==0;)f=e.heap[--u],!(f>r)&&(n[f*2+1]!==p&&(e.opt_len+=(p-n[f*2+1])*n[f*2],n[f*2+1]=p),d--)}},QX=(e,t,n)=>{const r=new Array(rc+1);let a=0,o,i;for(o=1;o<=rc;o++)a=a+n[o-1]<<1,r[o]=a;for(i=0;i<=t;i++){let s=e[i*2+1];s!==0&&(e[i*2]=ZX(r[s]++,s))}},i9e=()=>{let e,t,n,r,a;const o=new Array(rc+1);for(n=0,r=0;r>=7;r{let t;for(t=0;t{e.bi_valid>8?Ag(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},pB=(e,t,n,r)=>{const a=t*2,o=n*2;return e[a]{const r=e.heap[n];let a=n<<1;for(;a<=e.heap_len&&(a{let r,a,o=0,i,s;if(e.sym_next!==0)do r=e.pending_buf[e.sym_buf+o++]&255,r+=(e.pending_buf[e.sym_buf+o++]&255)<<8,a=e.pending_buf[e.sym_buf+o++],r===0?Mi(e,a,t):(i=kg[a],Mi(e,i+$m+1,t),s=I_[i],s!==0&&(a-=Tk[i],Ka(e,a,s)),r--,i=XX(r),Mi(e,i,n),s=Iv[i],s!==0&&(r-=jb[i],Ka(e,r,s)));while(o{const n=t.dyn_tree,r=t.stat_desc.static_tree,a=t.stat_desc.has_stree,o=t.stat_desc.elems;let i,s,c=-1,u;for(e.heap_len=0,e.heap_max=HX,i=0;i>1;i>=1;i--)sI(e,n,i);u=o;do i=e.heap[1],e.heap[1]=e.heap[e.heap_len--],sI(e,n,1),s=e.heap[1],e.heap[--e.heap_max]=i,e.heap[--e.heap_max]=s,n[u*2]=n[i*2]+n[s*2],e.depth[u]=(e.depth[i]>=e.depth[s]?e.depth[i]:e.depth[s])+1,n[i*2+1]=n[s*2+1]=u,e.heap[1]=u++,sI(e,n,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],o9e(e,t),QX(n,c,e.bl_count)},mB=(e,t,n)=>{let r,a=-1,o,i=t[0*2+1],s=0,c=7,u=4;for(i===0&&(c=138,u=3),t[(n+1)*2+1]=65535,r=0;r<=n;r++)o=i,i=t[(r+1)*2+1],!(++s{let r,a=-1,o,i=t[0*2+1],s=0,c=7,u=4;for(i===0&&(c=138,u=3),r=0;r<=n;r++)if(o=i,i=t[(r+1)*2+1],!(++s{let t;for(mB(e,e.dyn_ltree,e.l_desc.max_code),mB(e,e.dyn_dtree,e.d_desc.max_code),T_(e,e.bl_desc),t=Ek-1;t>=3&&e.bl_tree[GX[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},l9e=(e,t,n,r)=>{let a;for(Ka(e,t-257,5),Ka(e,n-1,5),Ka(e,r-4,4),a=0;a{let t=4093624447,n;for(n=0;n<=31;n++,t>>>=1)if(t&1&&e.dyn_ltree[n*2]!==0)return dB;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return fB;for(n=32;n<$m;n++)if(e.dyn_ltree[n*2]!==0)return fB;return dB};let vB=!1;const u9e=e=>{vB||(i9e(),vB=!0),e.l_desc=new iI(e.dyn_ltree,qX),e.d_desc=new iI(e.dyn_dtree,KX),e.bl_desc=new iI(e.bl_tree,YX),e.bi_buf=0,e.bi_valid=0,JX(e)},tZ=(e,t,n,r)=>{Ka(e,(Zze<<1)+(r?1:0),3),eZ(e),Ag(e,n),Ag(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n},d9e=e=>{Ka(e,zX<<1,3),Mi(e,Ik,cs),a9e(e)},f9e=(e,t,n,r)=>{let a,o,i=0;e.level>0?(e.strm.data_type===Xze&&(e.strm.data_type=c9e(e)),T_(e,e.l_desc),T_(e,e.d_desc),i=s9e(e),a=e.opt_len+3+7>>>3,o=e.static_len+3+7>>>3,o<=a&&(a=o)):a=o=n+5,n+4<=a&&t!==-1?tZ(e,t,n,r):e.strategy===Yze||o===a?(Ka(e,(zX<<1)+(r?1:0),3),gB(e,cs,Ap)):(Ka(e,(Qze<<1)+(r?1:0),3),l9e(e,e.l_desc.max_code+1,e.d_desc.max_code+1,i+1),gB(e,e.dyn_ltree,e.dyn_dtree)),JX(e),r&&eZ(e)},p9e=(e,t,n)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=n,t===0?e.dyn_ltree[n*2]++:(e.matches++,t--,e.dyn_ltree[(kg[n]+$m+1)*2]++,e.dyn_dtree[XX(t)*2]++),e.sym_next===e.sym_end);var g9e=u9e,m9e=tZ,h9e=f9e,v9e=p9e,b9e=d9e,y9e={_tr_init:g9e,_tr_stored_block:m9e,_tr_flush_block:h9e,_tr_tally:v9e,_tr_align:b9e};const S9e=(e,t,n,r)=>{let a=e&65535|0,o=e>>>16&65535|0,i=0;for(;n!==0;){i=n>2e3?2e3:n,n-=i;do a=a+t[r++]|0,o=o+a|0;while(--i);a%=65521,o%=65521}return a|o<<16|0};var Mg=S9e;const x9e=()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t},w9e=new Uint32Array(x9e()),C9e=(e,t,n,r)=>{const a=w9e,o=r+n;e^=-1;for(let i=r;i>>8^a[(e^t[i])&255];return e^-1};var Gr=C9e,Oc={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},gf={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:E9e,_tr_stored_block:R_,_tr_flush_block:I9e,_tr_tally:gl,_tr_align:T9e}=y9e,{Z_NO_FLUSH:ml,Z_PARTIAL_FLUSH:R9e,Z_FULL_FLUSH:_9e,Z_FINISH:Lo,Z_BLOCK:bB,Z_OK:sa,Z_STREAM_END:yB,Z_STREAM_ERROR:Bi,Z_DATA_ERROR:$9e,Z_BUF_ERROR:lI,Z_DEFAULT_COMPRESSION:O9e,Z_FILTERED:N9e,Z_HUFFMAN_ONLY:zh,Z_RLE:k9e,Z_FIXED:A9e,Z_DEFAULT_STRATEGY:M9e,Z_UNKNOWN:P9e,Z_DEFLATED:qy}=gf,D9e=9,L9e=15,F9e=8,j9e=29,B9e=256,__=B9e+1+j9e,z9e=30,H9e=19,U9e=2*__+1,V9e=15,hn=3,nl=258,zi=nl+hn+1,W9e=32,Pd=42,Rk=57,$_=69,O_=73,N_=91,k_=103,ac=113,ap=666,Aa=1,mf=2,Nc=3,hf=4,G9e=3,oc=(e,t)=>(e.msg=Oc[t],t),SB=e=>e*2-(e>4?9:0),Ks=e=>{let t=e.length;for(;--t>=0;)e[t]=0},q9e=e=>{let t,n,r,a=e.w_size;t=e.hash_size,r=t;do n=e.head[--r],e.head[r]=n>=a?n-a:0;while(--t);t=a,r=t;do n=e.prev[--r],e.prev[r]=n>=a?n-a:0;while(--t)};let K9e=(e,t,n)=>(t<{const t=e.state;let n=t.pending;n>e.avail_out&&(n=e.avail_out),n!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,t.pending===0&&(t.pending_out=0))},vo=(e,t)=>{I9e(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,co(e.strm)},_n=(e,t)=>{e.pending_buf[e.pending++]=t},Uf=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},A_=(e,t,n,r)=>{let a=e.avail_in;return a>r&&(a=r),a===0?0:(e.avail_in-=a,t.set(e.input.subarray(e.next_in,e.next_in+a),n),e.state.wrap===1?e.adler=Mg(e.adler,t,a,n):e.state.wrap===2&&(e.adler=Gr(e.adler,t,a,n)),e.next_in+=a,e.total_in+=a,a)},nZ=(e,t)=>{let n=e.max_chain_length,r=e.strstart,a,o,i=e.prev_length,s=e.nice_match;const c=e.strstart>e.w_size-zi?e.strstart-(e.w_size-zi):0,u=e.window,d=e.w_mask,f=e.prev,p=e.strstart+nl;let g=u[r+i-1],h=u[r+i];e.prev_length>=e.good_match&&(n>>=2),s>e.lookahead&&(s=e.lookahead);do if(a=t,!(u[a+i]!==h||u[a+i-1]!==g||u[a]!==u[r]||u[++a]!==u[r+1])){r+=2,a++;do;while(u[++r]===u[++a]&&u[++r]===u[++a]&&u[++r]===u[++a]&&u[++r]===u[++a]&&u[++r]===u[++a]&&u[++r]===u[++a]&&u[++r]===u[++a]&&u[++r]===u[++a]&&ri){if(e.match_start=t,i=o,o>=s)break;g=u[r+i-1],h=u[r+i]}}while((t=f[t&d])>c&&--n!==0);return i<=e.lookahead?i:e.lookahead},Dd=e=>{const t=e.w_size;let n,r,a;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-zi)&&(e.window.set(e.window.subarray(t,t+t-r),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),q9e(e),r+=t),e.strm.avail_in===0)break;if(n=A_(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=n,e.lookahead+e.insert>=hn)for(a=e.strstart-e.insert,e.ins_h=e.window[a],e.ins_h=hl(e,e.ins_h,e.window[a+1]);e.insert&&(e.ins_h=hl(e,e.ins_h,e.window[a+hn-1]),e.prev[a&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=a,a++,e.insert--,!(e.lookahead+e.insert{let n=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,r,a,o,i=0,s=e.strm.avail_in;do{if(r=65535,o=e.bi_valid+42>>3,e.strm.avail_outa+e.strm.avail_in&&(r=a+e.strm.avail_in),r>o&&(r=o),r>8,e.pending_buf[e.pending-2]=~r,e.pending_buf[e.pending-1]=~r>>8,co(e.strm),a&&(a>r&&(a=r),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+a),e.strm.next_out),e.strm.next_out+=a,e.strm.avail_out-=a,e.strm.total_out+=a,e.block_start+=a,r-=a),r&&(A_(e.strm,e.strm.output,e.strm.next_out,r),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r)}while(i===0);return s-=e.strm.avail_in,s&&(s>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=s&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-s,e.strm.next_in),e.strstart),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.block_start=e.strstart),e.high_watero&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,o+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),o>e.strm.avail_in&&(o=e.strm.avail_in),o&&(A_(e.strm,e.window,e.strstart,o),e.strstart+=o,e.insert+=o>e.w_size-e.insert?e.w_size-e.insert:o),e.high_water>3,o=e.pending_buf_size-o>65535?65535:e.pending_buf_size-o,n=o>e.w_size?e.w_size:o,a=e.strstart-e.block_start,(a>=n||(a||t===Lo)&&t!==ml&&e.strm.avail_in===0&&a<=o)&&(r=a>o?o:a,i=t===Lo&&e.strm.avail_in===0&&r===a?1:0,R_(e,e.block_start,r,i),e.block_start+=r,co(e.strm)),i?Nc:Aa)},cI=(e,t)=>{let n,r;for(;;){if(e.lookahead=hn&&(e.ins_h=hl(e,e.ins_h,e.window[e.strstart+hn-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),n!==0&&e.strstart-n<=e.w_size-zi&&(e.match_length=nZ(e,n)),e.match_length>=hn)if(r=gl(e,e.strstart-e.match_start,e.match_length-hn),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=hn){e.match_length--;do e.strstart++,e.ins_h=hl(e,e.ins_h,e.window[e.strstart+hn-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=hl(e,e.ins_h,e.window[e.strstart+1]);else r=gl(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(vo(e,!1),e.strm.avail_out===0))return Aa}return e.insert=e.strstart{let n,r,a;for(;;){if(e.lookahead=hn&&(e.ins_h=hl(e,e.ins_h,e.window[e.strstart+hn-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=hn-1,n!==0&&e.prev_length4096)&&(e.match_length=hn-1)),e.prev_length>=hn&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-hn,r=gl(e,e.strstart-1-e.prev_match,e.prev_length-hn),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=a&&(e.ins_h=hl(e,e.ins_h,e.window[e.strstart+hn-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=hn-1,e.strstart++,r&&(vo(e,!1),e.strm.avail_out===0))return Aa}else if(e.match_available){if(r=gl(e,0,e.window[e.strstart-1]),r&&vo(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return Aa}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=gl(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart{let n,r,a,o;const i=e.window;for(;;){if(e.lookahead<=nl){if(Dd(e),e.lookahead<=nl&&t===ml)return Aa;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=hn&&e.strstart>0&&(a=e.strstart-1,r=i[a],r===i[++a]&&r===i[++a]&&r===i[++a])){o=e.strstart+nl;do;while(r===i[++a]&&r===i[++a]&&r===i[++a]&&r===i[++a]&&r===i[++a]&&r===i[++a]&&r===i[++a]&&r===i[++a]&&ae.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=hn?(n=gl(e,1,e.match_length-hn),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=gl(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(vo(e,!1),e.strm.avail_out===0))return Aa}return e.insert=0,t===Lo?(vo(e,!0),e.strm.avail_out===0?Nc:hf):e.sym_next&&(vo(e,!1),e.strm.avail_out===0)?Aa:mf},X9e=(e,t)=>{let n;for(;;){if(e.lookahead===0&&(Dd(e),e.lookahead===0)){if(t===ml)return Aa;break}if(e.match_length=0,n=gl(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(vo(e,!1),e.strm.avail_out===0))return Aa}return e.insert=0,t===Lo?(vo(e,!0),e.strm.avail_out===0?Nc:hf):e.sym_next&&(vo(e,!1),e.strm.avail_out===0)?Aa:mf};function Ti(e,t,n,r,a){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=a}const op=[new Ti(0,0,0,0,rZ),new Ti(4,4,8,4,cI),new Ti(4,5,16,8,cI),new Ti(4,6,32,32,cI),new Ti(4,4,16,16,yu),new Ti(8,16,32,32,yu),new Ti(8,16,128,128,yu),new Ti(8,32,128,256,yu),new Ti(32,128,258,1024,yu),new Ti(32,258,258,4096,yu)],Z9e=e=>{e.window_size=2*e.w_size,Ks(e.head),e.max_lazy_match=op[e.level].max_lazy,e.good_match=op[e.level].good_length,e.nice_match=op[e.level].nice_length,e.max_chain_length=op[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=hn-1,e.match_available=0,e.ins_h=0};function Q9e(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=qy,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(U9e*2),this.dyn_dtree=new Uint16Array((2*z9e+1)*2),this.bl_tree=new Uint16Array((2*H9e+1)*2),Ks(this.dyn_ltree),Ks(this.dyn_dtree),Ks(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(V9e+1),this.heap=new Uint16Array(2*__+1),Ks(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*__+1),Ks(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Om=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==Pd&&t.status!==Rk&&t.status!==$_&&t.status!==O_&&t.status!==N_&&t.status!==k_&&t.status!==ac&&t.status!==ap?1:0},aZ=e=>{if(Om(e))return oc(e,Bi);e.total_in=e.total_out=0,e.data_type=P9e;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?Rk:t.wrap?Pd:ac,e.adler=t.wrap===2?0:1,t.last_flush=-2,E9e(t),sa},oZ=e=>{const t=aZ(e);return t===sa&&Z9e(e.state),t},J9e=(e,t)=>Om(e)||e.state.wrap!==2?Bi:(e.state.gzhead=t,sa),iZ=(e,t,n,r,a,o)=>{if(!e)return Bi;let i=1;if(t===O9e&&(t=6),r<0?(i=0,r=-r):r>15&&(i=2,r-=16),a<1||a>D9e||n!==qy||r<8||r>15||t<0||t>9||o<0||o>A9e||r===8&&i!==1)return oc(e,Bi);r===8&&(r=9);const s=new Q9e;return e.state=s,s.strm=e,s.status=Pd,s.wrap=i,s.gzhead=null,s.w_bits=r,s.w_size=1<iZ(e,t,qy,L9e,F9e,M9e),tHe=(e,t)=>{if(Om(e)||t>bB||t<0)return e?oc(e,Bi):Bi;const n=e.state;if(!e.output||e.avail_in!==0&&!e.input||n.status===ap&&t!==Lo)return oc(e,e.avail_out===0?lI:Bi);const r=n.last_flush;if(n.last_flush=t,n.pending!==0){if(co(e),e.avail_out===0)return n.last_flush=-1,sa}else if(e.avail_in===0&&SB(t)<=SB(r)&&t!==Lo)return oc(e,lI);if(n.status===ap&&e.avail_in!==0)return oc(e,lI);if(n.status===Pd&&n.wrap===0&&(n.status=ac),n.status===Pd){let a=qy+(n.w_bits-8<<4)<<8,o=-1;if(n.strategy>=zh||n.level<2?o=0:n.level<6?o=1:n.level===6?o=2:o=3,a|=o<<6,n.strstart!==0&&(a|=W9e),a+=31-a%31,Uf(n,a),n.strstart!==0&&(Uf(n,e.adler>>>16),Uf(n,e.adler&65535)),e.adler=1,n.status=ac,co(e),n.pending!==0)return n.last_flush=-1,sa}if(n.status===Rk){if(e.adler=0,_n(n,31),_n(n,139),_n(n,8),n.gzhead)_n(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),_n(n,n.gzhead.time&255),_n(n,n.gzhead.time>>8&255),_n(n,n.gzhead.time>>16&255),_n(n,n.gzhead.time>>24&255),_n(n,n.level===9?2:n.strategy>=zh||n.level<2?4:0),_n(n,n.gzhead.os&255),n.gzhead.extra&&n.gzhead.extra.length&&(_n(n,n.gzhead.extra.length&255),_n(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=Gr(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=$_;else if(_n(n,0),_n(n,0),_n(n,0),_n(n,0),_n(n,0),_n(n,n.level===9?2:n.strategy>=zh||n.level<2?4:0),_n(n,G9e),n.status=ac,co(e),n.pending!==0)return n.last_flush=-1,sa}if(n.status===$_){if(n.gzhead.extra){let a=n.pending,o=(n.gzhead.extra.length&65535)-n.gzindex;for(;n.pending+o>n.pending_buf_size;){let s=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+s),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>a&&(e.adler=Gr(e.adler,n.pending_buf,n.pending-a,a)),n.gzindex+=s,co(e),n.pending!==0)return n.last_flush=-1,sa;a=0,o-=s}let i=new Uint8Array(n.gzhead.extra);n.pending_buf.set(i.subarray(n.gzindex,n.gzindex+o),n.pending),n.pending+=o,n.gzhead.hcrc&&n.pending>a&&(e.adler=Gr(e.adler,n.pending_buf,n.pending-a,a)),n.gzindex=0}n.status=O_}if(n.status===O_){if(n.gzhead.name){let a=n.pending,o;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>a&&(e.adler=Gr(e.adler,n.pending_buf,n.pending-a,a)),co(e),n.pending!==0)return n.last_flush=-1,sa;a=0}n.gzindexa&&(e.adler=Gr(e.adler,n.pending_buf,n.pending-a,a)),n.gzindex=0}n.status=N_}if(n.status===N_){if(n.gzhead.comment){let a=n.pending,o;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>a&&(e.adler=Gr(e.adler,n.pending_buf,n.pending-a,a)),co(e),n.pending!==0)return n.last_flush=-1,sa;a=0}n.gzindexa&&(e.adler=Gr(e.adler,n.pending_buf,n.pending-a,a))}n.status=k_}if(n.status===k_){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(co(e),n.pending!==0))return n.last_flush=-1,sa;_n(n,e.adler&255),_n(n,e.adler>>8&255),e.adler=0}if(n.status=ac,co(e),n.pending!==0)return n.last_flush=-1,sa}if(e.avail_in!==0||n.lookahead!==0||t!==ml&&n.status!==ap){let a=n.level===0?rZ(n,t):n.strategy===zh?X9e(n,t):n.strategy===k9e?Y9e(n,t):op[n.level].func(n,t);if((a===Nc||a===hf)&&(n.status=ap),a===Aa||a===Nc)return e.avail_out===0&&(n.last_flush=-1),sa;if(a===mf&&(t===R9e?T9e(n):t!==bB&&(R_(n,0,0,!1),t===_9e&&(Ks(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),co(e),e.avail_out===0))return n.last_flush=-1,sa}return t!==Lo?sa:n.wrap<=0?yB:(n.wrap===2?(_n(n,e.adler&255),_n(n,e.adler>>8&255),_n(n,e.adler>>16&255),_n(n,e.adler>>24&255),_n(n,e.total_in&255),_n(n,e.total_in>>8&255),_n(n,e.total_in>>16&255),_n(n,e.total_in>>24&255)):(Uf(n,e.adler>>>16),Uf(n,e.adler&65535)),co(e),n.wrap>0&&(n.wrap=-n.wrap),n.pending!==0?sa:yB)},nHe=e=>{if(Om(e))return Bi;const t=e.state.status;return e.state=null,t===ac?oc(e,$9e):sa},rHe=(e,t)=>{let n=t.length;if(Om(e))return Bi;const r=e.state,a=r.wrap;if(a===2||a===1&&r.status!==Pd||r.lookahead)return Bi;if(a===1&&(e.adler=Mg(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){a===0&&(Ks(r.head),r.strstart=0,r.block_start=0,r.insert=0);let c=new Uint8Array(r.w_size);c.set(t.subarray(n-r.w_size,n),0),t=c,n=r.w_size}const o=e.avail_in,i=e.next_in,s=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,Dd(r);r.lookahead>=hn;){let c=r.strstart,u=r.lookahead-(hn-1);do r.ins_h=hl(r,r.ins_h,r.window[c+hn-1]),r.prev[c&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=c,c++;while(--u);r.strstart=c,r.lookahead=hn-1,Dd(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=hn-1,r.match_available=0,e.next_in=i,e.input=s,e.avail_in=o,r.wrap=a,sa};var aHe=eHe,oHe=iZ,iHe=oZ,sHe=aZ,lHe=J9e,cHe=tHe,uHe=nHe,dHe=rHe,fHe="pako deflate (from Nodeca project)",Mp={deflateInit:aHe,deflateInit2:oHe,deflateReset:iHe,deflateResetKeep:sHe,deflateSetHeader:lHe,deflate:cHe,deflateEnd:uHe,deflateSetDictionary:dHe,deflateInfo:fHe};const pHe=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var gHe=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const n=t.shift();if(n){if(typeof n!="object")throw new TypeError(n+"must be non-object");for(const r in n)pHe(n,r)&&(e[r]=n[r])}}return e},mHe=e=>{let t=0;for(let r=0,a=e.length;r=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;Pg[254]=Pg[254]=1;var hHe=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,n,r,a,o,i=e.length,s=0;for(a=0;a>>6,t[o++]=128|n&63):n<65536?(t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|n&63):(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63,t[o++]=128|n>>>6&63,t[o++]=128|n&63);return t};const vHe=(e,t)=>{if(t<65534&&e.subarray&&sZ)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n="";for(let r=0;r{const n=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let r,a;const o=new Array(n*2);for(a=0,r=0;r4){o[a++]=65533,r+=s-1;continue}for(i&=s===2?31:s===3?15:7;s>1&&r1){o[a++]=65533;continue}i<65536?o[a++]=i:(i-=65536,o[a++]=55296|i>>10&1023,o[a++]=56320|i&1023)}return vHe(o,a)},yHe=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let n=t-1;for(;n>=0&&(e[n]&192)===128;)n--;return n<0||n===0?t:n+Pg[e[n]]>t?n:t},Dg={string2buf:hHe,buf2string:bHe,utf8border:yHe};function SHe(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var lZ=SHe;const cZ=Object.prototype.toString,{Z_NO_FLUSH:xHe,Z_SYNC_FLUSH:wHe,Z_FULL_FLUSH:CHe,Z_FINISH:EHe,Z_OK:Bb,Z_STREAM_END:IHe,Z_DEFAULT_COMPRESSION:THe,Z_DEFAULT_STRATEGY:RHe,Z_DEFLATED:_He}=gf;function Nm(e){this.options=Ky.assign({level:THe,method:_He,chunkSize:16384,windowBits:15,memLevel:8,strategy:RHe},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new lZ,this.strm.avail_out=0;let n=Mp.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==Bb)throw new Error(Oc[n]);if(t.header&&Mp.deflateSetHeader(this.strm,t.header),t.dictionary){let r;if(typeof t.dictionary=="string"?r=Dg.string2buf(t.dictionary):cZ.call(t.dictionary)==="[object ArrayBuffer]"?r=new Uint8Array(t.dictionary):r=t.dictionary,n=Mp.deflateSetDictionary(this.strm,r),n!==Bb)throw new Error(Oc[n]);this._dict_set=!0}}Nm.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize;let a,o;if(this.ended)return!1;for(t===~~t?o=t:o=t===!0?EHe:xHe,typeof e=="string"?n.input=Dg.string2buf(e):cZ.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){if(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),(o===wHe||o===CHe)&&n.avail_out<=6){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(a=Mp.deflate(n,o),a===IHe)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),a=Mp.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===Bb;if(n.avail_out===0){this.onData(n.output);continue}if(o>0&&n.next_out>0){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(n.avail_in===0)break}return!0};Nm.prototype.onData=function(e){this.chunks.push(e)};Nm.prototype.onEnd=function(e){e===Bb&&(this.result=Ky.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function _k(e,t){const n=new Nm(t);if(n.push(e,!0),n.err)throw n.msg||Oc[n.err];return n.result}function $He(e,t){return t=t||{},t.raw=!0,_k(e,t)}function OHe(e,t){return t=t||{},t.gzip=!0,_k(e,t)}var NHe=Nm,kHe=_k,AHe=$He,MHe=OHe,PHe=gf,DHe={Deflate:NHe,deflate:kHe,deflateRaw:AHe,gzip:MHe,constants:PHe};const Hh=16209,LHe=16191;var FHe=function(t,n){let r,a,o,i,s,c,u,d,f,p,g,h,b,y,S,v,x,w,C,E,I,T,R,_;const $=t.state;r=t.next_in,R=t.input,a=r+(t.avail_in-5),o=t.next_out,_=t.output,i=o-(n-t.avail_out),s=o+(t.avail_out-257),c=$.dmax,u=$.wsize,d=$.whave,f=$.wnext,p=$.window,g=$.hold,h=$.bits,b=$.lencode,y=$.distcode,S=(1<<$.lenbits)-1,v=(1<<$.distbits)-1;e:do{h<15&&(g+=R[r++]<>>24,g>>>=w,h-=w,w=x>>>16&255,w===0)_[o++]=x&65535;else if(w&16){C=x&65535,w&=15,w&&(h>>=w,h-=w),h<15&&(g+=R[r++]<>>24,g>>>=w,h-=w,w=x>>>16&255,w&16){if(E=x&65535,w&=15,hc){t.msg="invalid distance too far back",$.mode=Hh;break e}if(g>>>=w,h-=w,w=o-i,E>w){if(w=E-w,w>d&&$.sane){t.msg="invalid distance too far back",$.mode=Hh;break e}if(I=0,T=p,f===0){if(I+=u-w,w2;)_[o++]=T[I++],_[o++]=T[I++],_[o++]=T[I++],C-=3;C&&(_[o++]=T[I++],C>1&&(_[o++]=T[I++]))}else{I=o-E;do _[o++]=_[I++],_[o++]=_[I++],_[o++]=_[I++],C-=3;while(C>2);C&&(_[o++]=_[I++],C>1&&(_[o++]=_[I++]))}}else if(w&64){t.msg="invalid distance code",$.mode=Hh;break e}else{x=y[(x&65535)+(g&(1<>3,r-=C,h-=C<<3,g&=(1<{const c=s.bits;let u=0,d=0,f=0,p=0,g=0,h=0,b=0,y=0,S=0,v=0,x,w,C,E,I,T=null,R;const _=new Uint16Array(Su+1),$=new Uint16Array(Su+1);let P=null,D,A,O;for(u=0;u<=Su;u++)_[u]=0;for(d=0;d=1&&_[p]===0;p--);if(g>p&&(g=p),p===0)return a[o++]=1<<24|64<<16|0,a[o++]=1<<24|64<<16|0,s.bits=1,0;for(f=1;f0&&(e===CB||p!==1))return-1;for($[1]=0,u=1;uxB||e===EB&&S>wB)return 1;for(;;){D=u-b,i[d]+1=R?(A=P[i[d]-R],O=T[i[d]-R]):(A=96,O=0),x=1<>b)+w]=D<<24|A<<16|O|0;while(w!==0);for(x=1<>=1;if(x!==0?(v&=x-1,v+=x):v=0,d++,--_[u]===0){if(u===p)break;u=t[n+i[d]]}if(u>g&&(v&E)!==C){for(b===0&&(b=g),I+=f,h=u-b,y=1<xB||e===EB&&S>wB)return 1;C=v&E,a[C]=g<<24|h<<16|I-o|0}}return v!==0&&(a[I+v]=u-b<<24|64<<16|0),s.bits=g,0};var Pp=UHe;const VHe=0,uZ=1,dZ=2,{Z_FINISH:IB,Z_BLOCK:WHe,Z_TREES:Uh,Z_OK:kc,Z_STREAM_END:GHe,Z_NEED_DICT:qHe,Z_STREAM_ERROR:qo,Z_DATA_ERROR:fZ,Z_MEM_ERROR:pZ,Z_BUF_ERROR:KHe,Z_DEFLATED:TB}=gf,Yy=16180,RB=16181,_B=16182,$B=16183,OB=16184,NB=16185,kB=16186,AB=16187,MB=16188,PB=16189,zb=16190,ns=16191,dI=16192,DB=16193,fI=16194,LB=16195,FB=16196,jB=16197,BB=16198,Vh=16199,Wh=16200,zB=16201,HB=16202,UB=16203,VB=16204,WB=16205,pI=16206,GB=16207,qB=16208,sr=16209,gZ=16210,mZ=16211,YHe=852,XHe=592,ZHe=15,QHe=ZHe,KB=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function JHe(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Yc=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.modemZ?1:0},hZ=e=>{if(Yc(e))return qo;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=Yy,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(YHe),t.distcode=t.distdyn=new Int32Array(XHe),t.sane=1,t.back=-1,kc},vZ=e=>{if(Yc(e))return qo;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,hZ(e)},bZ=(e,t)=>{let n;if(Yc(e))return qo;const r=e.state;return t<0?(n=0,t=-t):(n=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?qo:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,vZ(e))},yZ=(e,t)=>{if(!e)return qo;const n=new JHe;e.state=n,n.strm=e,n.window=null,n.mode=Yy;const r=bZ(e,t);return r!==kc&&(e.state=null),r},eUe=e=>yZ(e,QHe);let YB=!0,gI,mI;const tUe=e=>{if(YB){gI=new Int32Array(512),mI=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Pp(uZ,e.lens,0,288,gI,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Pp(dZ,e.lens,0,32,mI,0,e.work,{bits:5}),YB=!1}e.lencode=gI,e.lenbits=9,e.distcode=mI,e.distbits=5},SZ=(e,t,n,r)=>{let a;const o=e.state;return o.window===null&&(o.wsize=1<=o.wsize?(o.window.set(t.subarray(n-o.wsize,n),0),o.wnext=0,o.whave=o.wsize):(a=o.wsize-o.wnext,a>r&&(a=r),o.window.set(t.subarray(n-r,n-r+a),o.wnext),r-=a,r?(o.window.set(t.subarray(n-r,n),0),o.wnext=r,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave{let n,r,a,o,i,s,c,u,d,f,p,g,h,b,y=0,S,v,x,w,C,E,I,T;const R=new Uint8Array(4);let _,$;const P=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Yc(e)||!e.output||!e.input&&e.avail_in!==0)return qo;n=e.state,n.mode===ns&&(n.mode=dI),i=e.next_out,a=e.output,c=e.avail_out,o=e.next_in,r=e.input,s=e.avail_in,u=n.hold,d=n.bits,f=s,p=c,T=kc;e:for(;;)switch(n.mode){case Yy:if(n.wrap===0){n.mode=dI;break}for(;d<16;){if(s===0)break e;s--,u+=r[o++]<>>8&255,n.check=Gr(n.check,R,2,0),u=0,d=0,n.mode=RB;break}if(n.head&&(n.head.done=!1),!(n.wrap&1)||(((u&255)<<8)+(u>>8))%31){e.msg="incorrect header check",n.mode=sr;break}if((u&15)!==TB){e.msg="unknown compression method",n.mode=sr;break}if(u>>>=4,d-=4,I=(u&15)+8,n.wbits===0&&(n.wbits=I),I>15||I>n.wbits){e.msg="invalid window size",n.mode=sr;break}n.dmax=1<>8&1),n.flags&512&&n.wrap&4&&(R[0]=u&255,R[1]=u>>>8&255,n.check=Gr(n.check,R,2,0)),u=0,d=0,n.mode=_B;case _B:for(;d<32;){if(s===0)break e;s--,u+=r[o++]<>>8&255,R[2]=u>>>16&255,R[3]=u>>>24&255,n.check=Gr(n.check,R,4,0)),u=0,d=0,n.mode=$B;case $B:for(;d<16;){if(s===0)break e;s--,u+=r[o++]<>8),n.flags&512&&n.wrap&4&&(R[0]=u&255,R[1]=u>>>8&255,n.check=Gr(n.check,R,2,0)),u=0,d=0,n.mode=OB;case OB:if(n.flags&1024){for(;d<16;){if(s===0)break e;s--,u+=r[o++]<>>8&255,n.check=Gr(n.check,R,2,0)),u=0,d=0}else n.head&&(n.head.extra=null);n.mode=NB;case NB:if(n.flags&1024&&(g=n.length,g>s&&(g=s),g&&(n.head&&(I=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(o,o+g),I)),n.flags&512&&n.wrap&4&&(n.check=Gr(n.check,r,g,o)),s-=g,o+=g,n.length-=g),n.length))break e;n.length=0,n.mode=kB;case kB:if(n.flags&2048){if(s===0)break e;g=0;do I=r[o+g++],n.head&&I&&n.length<65536&&(n.head.name+=String.fromCharCode(I));while(I&&g>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=ns;break;case PB:for(;d<32;){if(s===0)break e;s--,u+=r[o++]<>>=d&7,d-=d&7,n.mode=pI;break}for(;d<3;){if(s===0)break e;s--,u+=r[o++]<>>=1,d-=1,u&3){case 0:n.mode=DB;break;case 1:if(tUe(n),n.mode=Vh,t===Uh){u>>>=2,d-=2;break e}break;case 2:n.mode=FB;break;case 3:e.msg="invalid block type",n.mode=sr}u>>>=2,d-=2;break;case DB:for(u>>>=d&7,d-=d&7;d<32;){if(s===0)break e;s--,u+=r[o++]<>>16^65535)){e.msg="invalid stored block lengths",n.mode=sr;break}if(n.length=u&65535,u=0,d=0,n.mode=fI,t===Uh)break e;case fI:n.mode=LB;case LB:if(g=n.length,g){if(g>s&&(g=s),g>c&&(g=c),g===0)break e;a.set(r.subarray(o,o+g),i),s-=g,o+=g,c-=g,i+=g,n.length-=g;break}n.mode=ns;break;case FB:for(;d<14;){if(s===0)break e;s--,u+=r[o++]<>>=5,d-=5,n.ndist=(u&31)+1,u>>>=5,d-=5,n.ncode=(u&15)+4,u>>>=4,d-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=sr;break}n.have=0,n.mode=jB;case jB:for(;n.have>>=3,d-=3}for(;n.have<19;)n.lens[P[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,_={bits:n.lenbits},T=Pp(VHe,n.lens,0,19,n.lencode,0,n.work,_),n.lenbits=_.bits,T){e.msg="invalid code lengths set",n.mode=sr;break}n.have=0,n.mode=BB;case BB:for(;n.have>>24,v=y>>>16&255,x=y&65535,!(S<=d);){if(s===0)break e;s--,u+=r[o++]<>>=S,d-=S,n.lens[n.have++]=x;else{if(x===16){for($=S+2;d<$;){if(s===0)break e;s--,u+=r[o++]<>>=S,d-=S,n.have===0){e.msg="invalid bit length repeat",n.mode=sr;break}I=n.lens[n.have-1],g=3+(u&3),u>>>=2,d-=2}else if(x===17){for($=S+3;d<$;){if(s===0)break e;s--,u+=r[o++]<>>=S,d-=S,I=0,g=3+(u&7),u>>>=3,d-=3}else{for($=S+7;d<$;){if(s===0)break e;s--,u+=r[o++]<>>=S,d-=S,I=0,g=11+(u&127),u>>>=7,d-=7}if(n.have+g>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=sr;break}for(;g--;)n.lens[n.have++]=I}}if(n.mode===sr)break;if(n.lens[256]===0){e.msg="invalid code -- missing end-of-block",n.mode=sr;break}if(n.lenbits=9,_={bits:n.lenbits},T=Pp(uZ,n.lens,0,n.nlen,n.lencode,0,n.work,_),n.lenbits=_.bits,T){e.msg="invalid literal/lengths set",n.mode=sr;break}if(n.distbits=6,n.distcode=n.distdyn,_={bits:n.distbits},T=Pp(dZ,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,_),n.distbits=_.bits,T){e.msg="invalid distances set",n.mode=sr;break}if(n.mode=Vh,t===Uh)break e;case Vh:n.mode=Wh;case Wh:if(s>=6&&c>=258){e.next_out=i,e.avail_out=c,e.next_in=o,e.avail_in=s,n.hold=u,n.bits=d,FHe(e,p),i=e.next_out,a=e.output,c=e.avail_out,o=e.next_in,r=e.input,s=e.avail_in,u=n.hold,d=n.bits,n.mode===ns&&(n.back=-1);break}for(n.back=0;y=n.lencode[u&(1<>>24,v=y>>>16&255,x=y&65535,!(S<=d);){if(s===0)break e;s--,u+=r[o++]<>w)],S=y>>>24,v=y>>>16&255,x=y&65535,!(w+S<=d);){if(s===0)break e;s--,u+=r[o++]<>>=w,d-=w,n.back+=w}if(u>>>=S,d-=S,n.back+=S,n.length=x,v===0){n.mode=WB;break}if(v&32){n.back=-1,n.mode=ns;break}if(v&64){e.msg="invalid literal/length code",n.mode=sr;break}n.extra=v&15,n.mode=zB;case zB:if(n.extra){for($=n.extra;d<$;){if(s===0)break e;s--,u+=r[o++]<>>=n.extra,d-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=HB;case HB:for(;y=n.distcode[u&(1<>>24,v=y>>>16&255,x=y&65535,!(S<=d);){if(s===0)break e;s--,u+=r[o++]<>w)],S=y>>>24,v=y>>>16&255,x=y&65535,!(w+S<=d);){if(s===0)break e;s--,u+=r[o++]<>>=w,d-=w,n.back+=w}if(u>>>=S,d-=S,n.back+=S,v&64){e.msg="invalid distance code",n.mode=sr;break}n.offset=x,n.extra=v&15,n.mode=UB;case UB:if(n.extra){for($=n.extra;d<$;){if(s===0)break e;s--,u+=r[o++]<>>=n.extra,d-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=sr;break}n.mode=VB;case VB:if(c===0)break e;if(g=p-c,n.offset>g){if(g=n.offset-g,g>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=sr;break}g>n.wnext?(g-=n.wnext,h=n.wsize-g):h=n.wnext-g,g>n.length&&(g=n.length),b=n.window}else b=a,h=i-n.offset,g=n.length;g>c&&(g=c),c-=g,n.length-=g;do a[i++]=b[h++];while(--g);n.length===0&&(n.mode=Wh);break;case WB:if(c===0)break e;a[i++]=n.length,c--,n.mode=Wh;break;case pI:if(n.wrap){for(;d<32;){if(s===0)break e;s--,u|=r[o++]<{if(Yc(e))return qo;let t=e.state;return t.window&&(t.window=null),e.state=null,kc},aUe=(e,t)=>{if(Yc(e))return qo;const n=e.state;return n.wrap&2?(n.head=t,t.done=!1,kc):qo},oUe=(e,t)=>{const n=t.length;let r,a,o;return Yc(e)||(r=e.state,r.wrap!==0&&r.mode!==zb)?qo:r.mode===zb&&(a=1,a=Mg(a,t,n,0),a!==r.check)?fZ:(o=SZ(e,t,n,n),o?(r.mode=gZ,pZ):(r.havedict=1,kc))};var iUe=vZ,sUe=bZ,lUe=hZ,cUe=eUe,uUe=yZ,dUe=nUe,fUe=rUe,pUe=aUe,gUe=oUe,mUe="pako inflate (from Nodeca project)",us={inflateReset:iUe,inflateReset2:sUe,inflateResetKeep:lUe,inflateInit:cUe,inflateInit2:uUe,inflate:dUe,inflateEnd:fUe,inflateGetHeader:pUe,inflateSetDictionary:gUe,inflateInfo:mUe};function hUe(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var vUe=hUe;const xZ=Object.prototype.toString,{Z_NO_FLUSH:bUe,Z_FINISH:yUe,Z_OK:Lg,Z_STREAM_END:hI,Z_NEED_DICT:vI,Z_STREAM_ERROR:SUe,Z_DATA_ERROR:XB,Z_MEM_ERROR:xUe}=gf;function km(e){this.options=Ky.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new lZ,this.strm.avail_out=0;let n=us.inflateInit2(this.strm,t.windowBits);if(n!==Lg)throw new Error(Oc[n]);if(this.header=new vUe,us.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Dg.string2buf(t.dictionary):xZ.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=us.inflateSetDictionary(this.strm,t.dictionary),n!==Lg)))throw new Error(Oc[n])}km.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize,a=this.options.dictionary;let o,i,s;if(this.ended)return!1;for(t===~~t?i=t:i=t===!0?yUe:bUe,xZ.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){for(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),o=us.inflate(n,i),o===vI&&a&&(o=us.inflateSetDictionary(n,a),o===Lg?o=us.inflate(n,i):o===XB&&(o=vI));n.avail_in>0&&o===hI&&n.state.wrap>0&&e[n.next_in]!==0;)us.inflateReset(n),o=us.inflate(n,i);switch(o){case SUe:case XB:case vI:case xUe:return this.onEnd(o),this.ended=!0,!1}if(s=n.avail_out,n.next_out&&(n.avail_out===0||o===hI))if(this.options.to==="string"){let c=Dg.utf8border(n.output,n.next_out),u=n.next_out-c,d=Dg.buf2string(n.output,c);n.next_out=u,n.avail_out=r-u,u&&n.output.set(n.output.subarray(c,c+u),0),this.onData(d)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(!(o===Lg&&s===0)){if(o===hI)return o=us.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(n.avail_in===0)break}}return!0};km.prototype.onData=function(e){this.chunks.push(e)};km.prototype.onEnd=function(e){e===Lg&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Ky.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function $k(e,t){const n=new km(t);if(n.push(e),n.err)throw n.msg||Oc[n.err];return n.result}function wUe(e,t){return t=t||{},t.raw=!0,$k(e,t)}var CUe=km,EUe=$k,IUe=wUe,TUe=$k,RUe=gf,_Ue={Inflate:CUe,inflate:EUe,inflateRaw:IUe,ungzip:TUe,constants:RUe};const{Deflate:RVe,deflate:$Ue,deflateRaw:_Ve,gzip:$Ve}=DHe,{Inflate:OUe,inflate:OVe,inflateRaw:NVe,ungzip:kVe}=_Ue;var NUe=$Ue,kUe=OUe;class Tv{constructor(t,n=!1,r=!0){this.device=t,this.tracing=n,this.slipReaderEnabled=!1,this.leftOver=new Uint8Array(0),this.baudrate=0,this.traceLog="",this.lastTraceTime=Date.now(),this._DTR_state=!1,this.slipReaderEnabled=r}getInfo(){const t=this.device.getInfo();return t.usbVendorId&&t.usbProductId?`WebSerial VendorID 0x${t.usbVendorId.toString(16)} ProductID 0x${t.usbProductId.toString(16)}`:""}getPid(){return this.device.getInfo().usbProductId}trace(t){const a=`${`TRACE ${(Date.now()-this.lastTraceTime).toFixed(3)}`} ${t}`;console.log(a),this.traceLog+=a+` `}async returnTrace(){try{await navigator.clipboard.writeText(this.traceLog),console.log("Text copied to clipboard!")}catch(t){console.error("Failed to copy text:",t)}}hexify(t){return Array.from(t).map(n=>n.toString(16).padStart(2,"0")).join("").padEnd(16," ")}hexConvert(t,n=!0){if(n&&t.length>16){let r="",a=t;for(;a.length>0;){const o=a.slice(0,16),i=String.fromCharCode(...o).split("").map(s=>s===" "||s>=" "&&s<="~"&&s!==" "?s:".").join("");a=a.slice(16),r+=` - ${this.hexify(o.slice(0,8))} ${this.hexify(o.slice(8))} | ${i}`}return r}else return this.hexify(t)}slipWriter(t){const n=[];n.push(192);for(let r=0;r0)return o;a=this.leftOver,this.leftOver=new Uint8Array(0)}if(this.device.readable==null)return this.leftOver;this.reader=this.device.readable.getReader();try{t>0&&(r=setTimeout(()=>{this.reader&&this.reader.cancel()},t));do{const{value:o,done:i}=await this.reader.read();if(i)throw this.leftOver=a,new Error("Timeout");a=new Uint8Array(this._appendBuffer(a.buffer,o.buffer))}while(a.length0&&clearTimeout(r),this.reader.releaseLock()}if(this.tracing&&(console.log("Read bytes"),this.trace(`Read ${a.length} bytes: ${this.hexConvert(a)}`)),this.slipReaderEnabled){const o=this.slipReader(a);return this.tracing&&(console.log("Slip reader results"),this.trace(`Read ${o.length} bytes: ${this.hexConvert(o)}`)),o}return a}async rawRead(t=0){if(this.leftOver.length!=0){const r=this.leftOver;return this.leftOver=new Uint8Array(0),r}if(!this.device.readable)return this.leftOver;this.reader=this.device.readable.getReader();let n;try{t>0&&(n=setTimeout(()=>{this.reader&&this.reader.cancel()},t));const{value:r,done:a}=await this.reader.read();return a||this.tracing&&(console.log("Raw Read bytes"),this.trace(`Read ${r.length} bytes: ${this.hexConvert(r)}`)),r}finally{t>0&&clearTimeout(n),this.reader.releaseLock()}}async setRTS(t){await this.device.setSignals({requestToSend:t}),await this.setDTR(this._DTR_state)}async setDTR(t){this._DTR_state=t,await this.device.setSignals({dataTerminalReady:t})}async connect(t=115200,n={}){await this.device.open({baudRate:t,dataBits:n==null?void 0:n.dataBits,stopBits:n==null?void 0:n.stopBits,bufferSize:n==null?void 0:n.bufferSize,parity:n==null?void 0:n.parity,flowControl:n==null?void 0:n.flowControl}),this.baudrate=t,this.leftOver=new Uint8Array(0)}async sleep(t){return new Promise(n=>setTimeout(n,t))}async waitForUnlock(t){for(;this.device.readable&&this.device.readable.locked||this.device.writable&&this.device.writable.locked;)await this.sleep(t)}async disconnect(){var t,n;!((t=this.device.readable)===null||t===void 0)&&t.locked&&await((n=this.reader)===null||n===void 0?void 0:n.cancel()),await this.waitForUnlock(400),this.reader=void 0,await this.device.close()}}function Tv(e){return new Promise(t=>setTimeout(t,e))}async function AUe(e){await e.setRTS(!1),await e.setDTR(!1),await Tv(100),await e.setDTR(!0),await e.setRTS(!1),await Tv(100),await e.setRTS(!0),await e.setDTR(!1),await e.setRTS(!0),await Tv(100),await e.setRTS(!1),await e.setDTR(!1)}function MUe(e){const t=["D","R","W"],n=e.split("|");for(const r of n){const a=r[0],o=r.slice(1);if(!t.includes(a))return!1;if(a==="D"||a==="R"){if(o!=="0"&&o!=="1")return!1}else if(a==="W"){const i=parseInt(o);if(isNaN(i)||i<=0)return!1}}return!0}async function PUe(e,t){const n={D:async r=>await e.setDTR(r),R:async r=>await e.setRTS(r),W:async r=>await Tv(r)};try{if(!MUe(t))return;const a=t.split("|");for(const o of a){const i=o[0],s=o.slice(1);i==="W"?await n.W(Number(s)):(i==="D"||i==="R")&&await n[i](s==="1")}}catch{throw new Error("Invalid custom reset sequence")}}var DUe=function(t){return atob(t)};const ZB=Ma(DUe);async function LUe(e){switch(e){case 15736195:{const{ESP32ROM:t}=await es(async()=>{const{ESP32ROM:n}=await import("./esp32-BPYaDt9v.js");return{ESP32ROM:n}},__vite__mapDeps([0,1]));return new t}case 1867591791:case 2084675695:{const{ESP32C2ROM:t}=await es(async()=>{const{ESP32C2ROM:n}=await import("./esp32c2-CtjOOsCE.js");return{ESP32C2ROM:n}},__vite__mapDeps([2,3,1]));return new t}case 1763790959:case 456216687:case 1216438383:case 1130455151:{const{ESP32C3ROM:t}=await es(async()=>{const{ESP32C3ROM:n}=await import("./esp32c3-DDsZSfEd.js");return{ESP32C3ROM:n}},__vite__mapDeps([3,1]));return new t}case 752910447:{const{ESP32C6ROM:t}=await es(async()=>{const{ESP32C6ROM:n}=await import("./esp32c6-BRG5ZpJ8.js");return{ESP32C6ROM:n}},__vite__mapDeps([4,1]));return new t}case 3619110528:{const{ESP32H2ROM:t}=await es(async()=>{const{ESP32H2ROM:n}=await import("./esp32h2-Cf8JbGZQ.js");return{ESP32H2ROM:n}},__vite__mapDeps([5,1]));return new t}case 9:{const{ESP32S3ROM:t}=await es(async()=>{const{ESP32S3ROM:n}=await import("./esp32s3-DkgZlzv1.js");return{ESP32S3ROM:n}},__vite__mapDeps([6,1]));return new t}case 1990:{const{ESP32S2ROM:t}=await es(async()=>{const{ESP32S2ROM:n}=await import("./esp32s2-BOsRKhcm.js");return{ESP32S2ROM:n}},__vite__mapDeps([7,1]));return new t}case 4293968129:{const{ESP8266ROM:t}=await es(async()=>{const{ESP8266ROM:n}=await import("./esp8266-8VKmCx7J.js");return{ESP8266ROM:n}},__vite__mapDeps([8,1]));return new t}case 0:case 182303440:case 117676761:{const{ESP32P4ROM:t}=await es(async()=>{const{ESP32P4ROM:n}=await import("./esp32p4-DfBdIAkh.js");return{ESP32P4ROM:n}},__vite__mapDeps([9,0,1]));return new t}default:return null}}class vI{constructor(t){this.ESP_RAM_BLOCK=6144,this.ESP_FLASH_BEGIN=2,this.ESP_FLASH_DATA=3,this.ESP_FLASH_END=4,this.ESP_MEM_BEGIN=5,this.ESP_MEM_END=6,this.ESP_MEM_DATA=7,this.ESP_WRITE_REG=9,this.ESP_READ_REG=10,this.ESP_SPI_ATTACH=13,this.ESP_CHANGE_BAUDRATE=15,this.ESP_FLASH_DEFL_BEGIN=16,this.ESP_FLASH_DEFL_DATA=17,this.ESP_FLASH_DEFL_END=18,this.ESP_SPI_FLASH_MD5=19,this.ESP_ERASE_FLASH=208,this.ESP_ERASE_REGION=209,this.ESP_READ_FLASH=210,this.ESP_RUN_USER_CODE=211,this.ESP_IMAGE_MAGIC=233,this.ESP_CHECKSUM_MAGIC=239,this.ROM_INVALID_RECV_MSG=5,this.ERASE_REGION_TIMEOUT_PER_MB=3e4,this.ERASE_WRITE_TIMEOUT_PER_MB=4e4,this.MD5_TIMEOUT_PER_MB=8e3,this.CHIP_ERASE_TIMEOUT=12e4,this.FLASH_READ_TIMEOUT=1e5,this.MAX_TIMEOUT=this.CHIP_ERASE_TIMEOUT*2,this.CHIP_DETECT_MAGIC_REG_ADDR=1073745920,this.DETECTED_FLASH_SIZES={18:"256KB",19:"512KB",20:"1MB",21:"2MB",22:"4MB",23:"8MB",24:"16MB"},this.DETECTED_FLASH_SIZES_NUM={18:256,19:512,20:1024,21:2048,22:4096,23:8192,24:16384},this.USB_JTAG_SERIAL_PID=4097,this.romBaudrate=115200,this.debugLogging=!1,this.syncStubDetected=!1,this.checksum=function(n){let r,a=239;for(r=0;rsetTimeout(n,t))}write(t,n=!0){this.terminal?n?this.terminal.writeLine(t):this.terminal.write(t):console.log(t)}error(t,n=!0){this.write(`Error: ${t}`,n)}info(t,n=!0){this.write(t,n)}debug(t,n=!0){this.debugLogging&&this.write(`Debug: ${t}`,n)}_shortToBytearray(t){return new Uint8Array([t&255,t>>8&255])}_intToByteArray(t){return new Uint8Array([t&255,t>>8&255,t>>16&255,t>>24&255])}_byteArrayToShort(t,n){return t|n>>8}_byteArrayToInt(t,n,r,a){return t|n<<8|r<<16|a<<24}_appendBuffer(t,n){const r=new Uint8Array(t.byteLength+n.byteLength);return r.set(new Uint8Array(t),0),r.set(new Uint8Array(n),t.byteLength),r.buffer}_appendArray(t,n){const r=new Uint8Array(t.length+n.length);return r.set(t,0),r.set(n,t.length),r}ui8ToBstr(t){let n="";for(let r=0;r0&&(i=this._appendArray(i,this._intToByteArray(this.chip.UART_DATE_REG_ADDR)),i=this._appendArray(i,this._intToByteArray(0)),i=this._appendArray(i,this._intToByteArray(0)),i=this._appendArray(i,this._intToByteArray(o))),await this.checkCommand("write target memory",this.ESP_WRITE_REG,i)}async sync(){this.debug("Sync");const t=new Uint8Array(36);let n;for(t[0]=7,t[1]=7,t[2]=18,t[3]=32,n=0;n<32;n++)t[4+n]=85;try{const r=await this.command(8,t,void 0,void 0,100);return this.syncStubDetected=this.syncStubDetected&&r[0]===0,r}catch(r){throw this.debug("Sync err "+r),r}}async _connectAttempt(t="default_reset",n=!1){if(this.debug("_connect_attempt "+t+" "+n),t!=="no_reset")if(this.transport.getPid()===this.USB_JTAG_SERIAL_PID)await AUe(this.transport);else{const o=n?"D0|R1|W100|W2000|D1|R0|W50|D0":"D0|R1|W100|D1|R0|W50|D0";await PUe(this.transport,o)}let r=0,a=!0;for(;a;){try{const o=await this.transport.read(1e3);r+=o.length}catch(o){if(this.debug(o.message),o instanceof Error){a=!1;break}}await this._sleep(50)}for(this.transport.slipReaderEnabled=!0,this.syncStubDetected=!0,r=7;r--;){try{const o=await this.sync();return this.debug(o[0].toString()),"success"}catch(o){o instanceof Error&&(n?this.info("_",!1):this.info(".",!1))}await this._sleep(50)}return"error"}async connect(t="default_reset",n=7,r=!1){let a,o;for(this.info("Connecting...",!1),await this.transport.connect(this.romBaudrate,this.serialOptions),a=0;a>>0;this.debug("Chip Magic "+i.toString(16));const s=await LUe(i);if(this.chip===null)throw new Ra(`Unexpected CHIP magic value ${i}. Failed to autodetect chip type.`);this.chip=s}}async detectChip(t="default_reset"){await this.connect(t),this.info("Detecting chip type... ",!1),this.chip!=null?this.info(this.chip.CHIP_NAME):this.info("unknown!")}async checkCommand(t="",n=null,r=new Uint8Array(0),a=0,o=3e3){this.debug("check_command "+t);const i=await this.command(n,r,a,void 0,o);return i[1].length>4?i[1]:i[0]}async memBegin(t,n,r,a){this.debug("mem_begin "+t+" "+n+" "+r+" "+a.toString(16));let o=this._appendArray(this._intToByteArray(t),this._intToByteArray(n));o=this._appendArray(o,this._intToByteArray(r)),o=this._appendArray(o,this._intToByteArray(a)),await this.checkCommand("enter RAM download mode",this.ESP_MEM_BEGIN,o)}async memBlock(t,n){let r=this._appendArray(this._intToByteArray(t.length),this._intToByteArray(n));r=this._appendArray(r,this._intToByteArray(0)),r=this._appendArray(r,this._intToByteArray(0)),r=this._appendArray(r,t);const a=this.checksum(t);await this.checkCommand("write to target RAM",this.ESP_MEM_DATA,r,a)}async memFinish(t){const n=t===0?1:0,r=this._appendArray(this._intToByteArray(n),this._intToByteArray(t));await this.checkCommand("leave RAM download mode",this.ESP_MEM_END,r,void 0,50)}async flashSpiAttach(t){const n=this._intToByteArray(t);await this.checkCommand("configure SPI flash pins",this.ESP_SPI_ATTACH,n)}async flashBegin(t,n){const r=Math.floor((t+this.FLASH_WRITE_SIZE-1)/this.FLASH_WRITE_SIZE),a=this.chip.getEraseSize(n,t),o=new Date,i=o.getTime();let s=3e3;this.IS_STUB==!1&&(s=this.timeoutPerMb(this.ERASE_REGION_TIMEOUT_PER_MB,t)),this.debug("flash begin "+a+" "+r+" "+this.FLASH_WRITE_SIZE+" "+n+" "+t);let c=this._appendArray(this._intToByteArray(a),this._intToByteArray(r));c=this._appendArray(c,this._intToByteArray(this.FLASH_WRITE_SIZE)),c=this._appendArray(c,this._intToByteArray(n)),this.IS_STUB==!1&&(c=this._appendArray(c,this._intToByteArray(0))),await this.checkCommand("enter Flash download mode",this.ESP_FLASH_BEGIN,c,void 0,s);const u=o.getTime();return t!=0&&this.IS_STUB==!1&&this.info("Took "+(u-i)/1e3+"."+(u-i)%1e3+"s to erase flash block"),r}async flashDeflBegin(t,n,r){const a=Math.floor((n+this.FLASH_WRITE_SIZE-1)/this.FLASH_WRITE_SIZE),o=Math.floor((t+this.FLASH_WRITE_SIZE-1)/this.FLASH_WRITE_SIZE),i=new Date,s=i.getTime();let c,u;this.IS_STUB?(c=t,u=3e3):(c=o*this.FLASH_WRITE_SIZE,u=this.timeoutPerMb(this.ERASE_REGION_TIMEOUT_PER_MB,c)),this.info("Compressed "+t+" bytes to "+n+"...");let d=this._appendArray(this._intToByteArray(c),this._intToByteArray(a));d=this._appendArray(d,this._intToByteArray(this.FLASH_WRITE_SIZE)),d=this._appendArray(d,this._intToByteArray(r)),(this.chip.CHIP_NAME==="ESP32-S2"||this.chip.CHIP_NAME==="ESP32-S3"||this.chip.CHIP_NAME==="ESP32-C3"||this.chip.CHIP_NAME==="ESP32-C2")&&this.IS_STUB===!1&&(d=this._appendArray(d,this._intToByteArray(0))),await this.checkCommand("enter compressed flash mode",this.ESP_FLASH_DEFL_BEGIN,d,void 0,u);const f=i.getTime();return t!=0&&this.IS_STUB===!1&&this.info("Took "+(f-s)/1e3+"."+(f-s)%1e3+"s to erase flash block"),a}async flashBlock(t,n,r){let a=this._appendArray(this._intToByteArray(t.length),this._intToByteArray(n));a=this._appendArray(a,this._intToByteArray(0)),a=this._appendArray(a,this._intToByteArray(0)),a=this._appendArray(a,t);const o=this.checksum(t);await this.checkCommand("write to target Flash after seq "+n,this.ESP_FLASH_DATA,a,o,r)}async flashDeflBlock(t,n,r){let a=this._appendArray(this._intToByteArray(t.length),this._intToByteArray(n));a=this._appendArray(a,this._intToByteArray(0)),a=this._appendArray(a,this._intToByteArray(0)),a=this._appendArray(a,t);const o=this.checksum(t);this.debug("flash_defl_block "+t[0].toString(16)+" "+t[1].toString(16)),await this.checkCommand("write compressed data to flash after seq "+n,this.ESP_FLASH_DEFL_DATA,a,o,r)}async flashFinish(t=!1){const n=t?0:1,r=this._intToByteArray(n);await this.checkCommand("leave Flash mode",this.ESP_FLASH_END,r)}async flashDeflFinish(t=!1){const n=t?0:1,r=this._intToByteArray(n);await this.checkCommand("leave compressed flash mode",this.ESP_FLASH_DEFL_END,r)}async runSpiflashCommand(t,n,r){const s=this.chip.SPI_REG_BASE,c=s+0,u=s+this.chip.SPI_USR_OFFS,d=s+this.chip.SPI_USR1_OFFS,f=s+this.chip.SPI_USR2_OFFS,p=s+this.chip.SPI_W0_OFFS;let g;this.chip.SPI_MOSI_DLEN_OFFS!=null?g=async(I,T)=>{const R=s+this.chip.SPI_MOSI_DLEN_OFFS,_=s+this.chip.SPI_MISO_DLEN_OFFS;I>0&&await this.writeReg(R,I-1),T>0&&await this.writeReg(_,T-1)}:g=async(I,T)=>{const R=d,_=17,$=8,P=I===0?0:I-1,A=(T===0?0:T-1)<<$|P<<_;await this.writeReg(R,A)};const h=1<<18,b=28;if(r>32)throw new Ra("Reading more than 32 bits back from a SPI flash operation is unsupported");if(n.length>64)throw new Ra("Writing more than 64 bytes of data with one SPI command is unsupported");const y=n.length*8,S=await this.readReg(u),v=await this.readReg(f);let x=-2147483648,C;r>0&&(x|=268435456),y>0&&(x|=134217728),await g(y,r),await this.writeReg(u,x);let w=7<("00"+n.toString(16)).slice(-2)).join("")}async flashMd5sum(t,n){const r=this.timeoutPerMb(this.MD5_TIMEOUT_PER_MB,n);let a=this._appendArray(this._intToByteArray(t),this._intToByteArray(n));a=this._appendArray(a,this._intToByteArray(0)),a=this._appendArray(a,this._intToByteArray(0));let o=await this.checkCommand("calculate md5sum",this.ESP_SPI_FLASH_MD5,a,void 0,r);return o instanceof Uint8Array&&o.length>16&&(o=o.slice(0,16)),this.toHex(o)}async readFlash(t,n,r=null){let a=this._appendArray(this._intToByteArray(t),this._intToByteArray(n));a=this._appendArray(a,this._intToByteArray(4096)),a=this._appendArray(a,this._intToByteArray(1024));const o=await this.checkCommand("read flash",this.ESP_READ_FLASH,a);if(o!=0)throw new Ra("Failed to read memory: "+o);let i=new Uint8Array(0);for(;i.length0&&(i=this._appendArray(i,s),await this.transport.write(this._intToByteArray(i.length)),r&&r(s,i.length,n));else throw new Ra("Failed to read memory: "+s)}return i}async runStub(){if(this.syncStubDetected)return this.info("Stub is already running. No upload is necessary."),this.chip;this.info("Uploading stub...");let t=ZB(this.chip.ROM_TEXT),n=t.split("").map(function(s){return s.charCodeAt(0)});const r=new Uint8Array(n);t=ZB(this.chip.ROM_DATA),n=t.split("").map(function(s){return s.charCodeAt(0)});const a=new Uint8Array(n);let o=Math.floor((r.length+this.ESP_RAM_BLOCK-1)/this.ESP_RAM_BLOCK),i;for(await this.memBegin(r.length,o,this.ESP_RAM_BLOCK,this.chip.TEXT_START),i=0;i"u")throw new Ra("Flash size "+t+" is not supported by this chip type. Supported sizes: "+this.chip.FLASH_SIZES);return this.chip.FLASH_SIZES[t]}_updateImageFlashParams(t,n,r,a,o){if(this.debug("_update_image_flash_params "+r+" "+a+" "+o),t.length<8||n!=this.chip.BOOTLOADER_FLASH_OFFSET)return t;if(r==="keep"&&a==="keep"&&o==="keep")return this.info("Not changing the image"),t;const i=parseInt(t[0]);let s=parseInt(t[2]);const c=parseInt(t[3]);if(i!==this.ESP_IMAGE_MAGIC)return this.info("Warning: Image file at 0x"+n.toString(16)+" doesn't look like an image file, so not changing any flash settings."),t;a!=="keep"&&(s={qio:0,qout:1,dio:2,dout:3}[a]);let u=c&15;o!=="keep"&&(u={"40m":0,"26m":1,"20m":2,"80m":15}[o]);let d=c&240;r!=="keep"&&(d=this.parseFlashSizeArg(r));const f=s<<8|u+d;return this.info("Flash params set to "+f.toString(16)),parseInt(t[2])!==s<<8&&(t=t.substring(0,2)+(s<<8).toString()+t.substring(3)),parseInt(t[3])!==u+d&&(t=t.substring(0,3)+(u+d).toString()+t.substring(4)),t}async writeFlash(t){if(this.debug("EspLoader program"),t.flashSize!=="keep"){const a=this.flashSizeBytes(t.flashSize);for(let o=0;oa)throw new Ra(`File ${o+1} doesn't fit in the available flash`)}this.IS_STUB===!0&&t.eraseAll===!0&&await this.eraseFlash();let n,r;for(let a=0;a0&&(n+="ÿÿÿÿ".substring(4-o)),r=t.fileArray[a].address,this.debug("Image Length "+n.length),n.length===0){this.debug("Warning: File is empty");continue}n=this._updateImageFlashParams(n,r,t.flashSize,t.flashMode,t.flashFreq);let i=null;t.calculateMD5Hash&&(i=t.calculateMD5Hash(n),this.debug("Image MD5 "+i));const s=n.length;let c;if(t.compress){const v=this.bstrToUi8(n);n=this.ui8ToBstr(NUe(v,{level:9})),c=await this.flashDeflBegin(s,n.length,r)}else c=await this.flashBegin(s,r);let u=0,d=0;const f=n.length;t.reportProgress&&t.reportProgress(a,0,f);let p=new Date;const g=p.getTime();let h=5e3;const b=new kUe({chunkSize:1});let y=0;for(b.onData=function(v){y+=v.byteLength};n.length>0;){this.debug("Write loop "+r+" "+u+" "+c),this.info("Writing at 0x"+(r+y).toString(16)+"... ("+Math.floor(100*(u+1)/c)+"%)");const v=this.bstrToUi8(n.slice(0,this.FLASH_WRITE_SIZE));if(t.compress){const x=y;b.push(v,!1);const C=y-x;let w=3e3;this.timeoutPerMb(this.ERASE_WRITE_TIMEOUT_PER_MB,C)>3e3&&(w=this.timeoutPerMb(this.ERASE_WRITE_TIMEOUT_PER_MB,C)),this.IS_STUB===!1&&(h=w),await this.flashDeflBlock(v,u,h),this.IS_STUB&&(h=w)}else throw new Ra("Yet to handle Non Compressed writes");d+=v.length,n=n.slice(this.FLASH_WRITE_SIZE,n.length),u++,t.reportProgress&&t.reportProgress(a,d,f)}this.IS_STUB&&await this.readReg(this.CHIP_DETECT_MAGIC_REG_ADDR,h),p=new Date;const S=p.getTime()-g;if(t.compress&&this.info("Wrote "+s+" bytes ("+d+" compressed) at 0x"+r.toString(16)+" in "+S/1e3+" seconds."),i){const v=await this.flashMd5sum(r,s);if(new String(v).valueOf()!=new String(i).valueOf())throw this.info("File md5: "+i),this.info("Flash md5: "+v),new Ra("MD5 of file does not match data in flash!");this.info("Hash of data verified.")}}this.info("Leaving..."),this.IS_STUB&&(await this.flashBegin(0,0),t.compress?await this.flashDeflFinish():await this.flashFinish())}async flashId(){this.debug("flash_id");const t=await this.readFlashId();this.info("Manufacturer: "+(t&255).toString(16));const n=t>>16&255;this.info("Device: "+(t>>8&255).toString(16)+n.toString(16)),this.info("Detected flash size: "+this.DETECTED_FLASH_SIZES[n])}async getFlashSize(){this.debug("flash_id");const n=await this.readFlashId()>>16&255;return this.DETECTED_FLASH_SIZES_NUM[n]}async hardReset(){await this.transport.setRTS(!0),await this._sleep(100),await this.transport.setRTS(!1)}async softReset(){if(!this.IS_STUB)await this.flashBegin(0,0),await this.flashFinish(!1);else{if(this.chip.CHIP_NAME!="ESP8266")throw new Ra("Soft resetting is currently only supported on ESP8266");await this.command(this.ESP_RUN_USER_CODE,void 0,void 0,!1)}}}const FUe=()=>{const[e,t]=l.useState(0),n=["",".","..","...","....","....."];return l.useEffect(()=>{const r=setInterval(()=>{t(a=>(a+1)%n.length)},666);return()=>clearInterval(r)},[]),m.jsx(m.Fragment,{children:n[e]})},jUe=()=>"serial"in navigator,BUe="/web/assets/tb-esp32-uart-clamp-D_86EMpu.png",zUe="/web/assets/esp32_pcb_clamp-Cw2o3uco.png",HUe="/web/assets/tb-esp32-uart-BDPWj6EB.png",bI=new xn(pn()),{Paragraph:ma}=bn;function wZ(){const{t:e}=Nt();return m.jsxs(m.Fragment,{children:[m.jsx(ma,{children:e("tonieboxes.connectESP32Modal.connectESP32Text1")}),m.jsx(ma,{style:{display:"flex",alignItems:"flex-start",justifyContent:"center"},children:m.jsx(Oa,{src:HUe,style:{height:200,width:"auto"},preview:!1,alt:e("tonieboxes.connectESP32Modal.esp32UartJ103")})}),m.jsx("h5",{children:e("tonieboxes.connectESP32Modal.esp32UartJ103ClampTitle")}),m.jsx(ma,{style:{display:"flex",alignItems:"flex-start",justifyContent:"center",flexWrap:"wrap",gap:16},children:m.jsxs(Oa.PreviewGroup,{children:[m.jsxs("div",{style:{maxWidth:200},children:[m.jsx(Oa,{style:{height:200,width:"auto"},src:BUe,alt:e("tonieboxes.connectESP32Modal.esp32UartJ103Clamp")}),m.jsx("p",{style:{marginTop:8},children:e("tonieboxes.connectESP32Modal.esp32UartJ103Clamp")})]}),m.jsxs("div",{style:{maxWidth:200},children:[m.jsx(Oa,{style:{height:200,width:"auto"},src:zUe,alt:e("tonieboxes.connectESP32Modal.esp32UartJ103AnalogClamp")}),m.jsx("p",{style:{marginTop:8},children:e("tonieboxes.connectESP32Modal.esp32UartJ103AnalogClamp")})]})]})}),m.jsx(ma,{children:e("tonieboxes.connectESP32Modal.esp32UartJ103Clamp4PinHint")}),m.jsx(ma,{children:e("tonieboxes.connectESP32Modal.connectESP32Text2")}),m.jsx(An,{type:"warning",message:e("tonieboxes.connectESP32Modal.beware"),description:e("tonieboxes.connectESP32Modal.warningText")}),m.jsx("h5",{children:e("tonieboxes.connectESP32Modal.normalMode")}),m.jsx(ma,{children:e("tonieboxes.connectESP32Modal.normalModeText")}),m.jsx(ba,{language:"shell",code:`ESP-ROM:esp32s3-20210327 + ${this.hexify(o.slice(0,8))} ${this.hexify(o.slice(8))} | ${i}`}return r}else return this.hexify(t)}slipWriter(t){const n=[];n.push(192);for(let r=0;r0)return o;a=this.leftOver,this.leftOver=new Uint8Array(0)}if(this.device.readable==null)return this.leftOver;this.reader=this.device.readable.getReader();try{t>0&&(r=setTimeout(()=>{this.reader&&this.reader.cancel()},t));do{const{value:o,done:i}=await this.reader.read();if(i)throw this.leftOver=a,new Error("Timeout");a=new Uint8Array(this._appendBuffer(a.buffer,o.buffer))}while(a.length0&&clearTimeout(r),this.reader.releaseLock()}if(this.tracing&&(console.log("Read bytes"),this.trace(`Read ${a.length} bytes: ${this.hexConvert(a)}`)),this.slipReaderEnabled){const o=this.slipReader(a);return this.tracing&&(console.log("Slip reader results"),this.trace(`Read ${o.length} bytes: ${this.hexConvert(o)}`)),o}return a}async rawRead(t=0){if(this.leftOver.length!=0){const r=this.leftOver;return this.leftOver=new Uint8Array(0),r}if(!this.device.readable)return this.leftOver;this.reader=this.device.readable.getReader();let n;try{t>0&&(n=setTimeout(()=>{this.reader&&this.reader.cancel()},t));const{value:r,done:a}=await this.reader.read();return a||this.tracing&&(console.log("Raw Read bytes"),this.trace(`Read ${r.length} bytes: ${this.hexConvert(r)}`)),r}finally{t>0&&clearTimeout(n),this.reader.releaseLock()}}async setRTS(t){await this.device.setSignals({requestToSend:t}),await this.setDTR(this._DTR_state)}async setDTR(t){this._DTR_state=t,await this.device.setSignals({dataTerminalReady:t})}async connect(t=115200,n={}){await this.device.open({baudRate:t,dataBits:n==null?void 0:n.dataBits,stopBits:n==null?void 0:n.stopBits,bufferSize:n==null?void 0:n.bufferSize,parity:n==null?void 0:n.parity,flowControl:n==null?void 0:n.flowControl}),this.baudrate=t,this.leftOver=new Uint8Array(0)}async sleep(t){return new Promise(n=>setTimeout(n,t))}async waitForUnlock(t){for(;this.device.readable&&this.device.readable.locked||this.device.writable&&this.device.writable.locked;)await this.sleep(t)}async disconnect(){var t,n;!((t=this.device.readable)===null||t===void 0)&&t.locked&&await((n=this.reader)===null||n===void 0?void 0:n.cancel()),await this.waitForUnlock(400),this.reader=void 0,await this.device.close()}}function Rv(e){return new Promise(t=>setTimeout(t,e))}async function AUe(e){await e.setRTS(!1),await e.setDTR(!1),await Rv(100),await e.setDTR(!0),await e.setRTS(!1),await Rv(100),await e.setRTS(!0),await e.setDTR(!1),await e.setRTS(!0),await Rv(100),await e.setRTS(!1),await e.setDTR(!1)}function MUe(e){const t=["D","R","W"],n=e.split("|");for(const r of n){const a=r[0],o=r.slice(1);if(!t.includes(a))return!1;if(a==="D"||a==="R"){if(o!=="0"&&o!=="1")return!1}else if(a==="W"){const i=parseInt(o);if(isNaN(i)||i<=0)return!1}}return!0}async function PUe(e,t){const n={D:async r=>await e.setDTR(r),R:async r=>await e.setRTS(r),W:async r=>await Rv(r)};try{if(!MUe(t))return;const a=t.split("|");for(const o of a){const i=o[0],s=o.slice(1);i==="W"?await n.W(Number(s)):(i==="D"||i==="R")&&await n[i](s==="1")}}catch{throw new Error("Invalid custom reset sequence")}}var DUe=function(t){return atob(t)};const ZB=Pa(DUe);async function LUe(e){switch(e){case 15736195:{const{ESP32ROM:t}=await ts(async()=>{const{ESP32ROM:n}=await import("./esp32-BPYaDt9v.js");return{ESP32ROM:n}},__vite__mapDeps([0,1]));return new t}case 1867591791:case 2084675695:{const{ESP32C2ROM:t}=await ts(async()=>{const{ESP32C2ROM:n}=await import("./esp32c2-CtjOOsCE.js");return{ESP32C2ROM:n}},__vite__mapDeps([2,3,1]));return new t}case 1763790959:case 456216687:case 1216438383:case 1130455151:{const{ESP32C3ROM:t}=await ts(async()=>{const{ESP32C3ROM:n}=await import("./esp32c3-DDsZSfEd.js");return{ESP32C3ROM:n}},__vite__mapDeps([3,1]));return new t}case 752910447:{const{ESP32C6ROM:t}=await ts(async()=>{const{ESP32C6ROM:n}=await import("./esp32c6-BRG5ZpJ8.js");return{ESP32C6ROM:n}},__vite__mapDeps([4,1]));return new t}case 3619110528:{const{ESP32H2ROM:t}=await ts(async()=>{const{ESP32H2ROM:n}=await import("./esp32h2-Cf8JbGZQ.js");return{ESP32H2ROM:n}},__vite__mapDeps([5,1]));return new t}case 9:{const{ESP32S3ROM:t}=await ts(async()=>{const{ESP32S3ROM:n}=await import("./esp32s3-DkgZlzv1.js");return{ESP32S3ROM:n}},__vite__mapDeps([6,1]));return new t}case 1990:{const{ESP32S2ROM:t}=await ts(async()=>{const{ESP32S2ROM:n}=await import("./esp32s2-BOsRKhcm.js");return{ESP32S2ROM:n}},__vite__mapDeps([7,1]));return new t}case 4293968129:{const{ESP8266ROM:t}=await ts(async()=>{const{ESP8266ROM:n}=await import("./esp8266-8VKmCx7J.js");return{ESP8266ROM:n}},__vite__mapDeps([8,1]));return new t}case 0:case 182303440:case 117676761:{const{ESP32P4ROM:t}=await ts(async()=>{const{ESP32P4ROM:n}=await import("./esp32p4-DfBdIAkh.js");return{ESP32P4ROM:n}},__vite__mapDeps([9,0,1]));return new t}default:return null}}class bI{constructor(t){this.ESP_RAM_BLOCK=6144,this.ESP_FLASH_BEGIN=2,this.ESP_FLASH_DATA=3,this.ESP_FLASH_END=4,this.ESP_MEM_BEGIN=5,this.ESP_MEM_END=6,this.ESP_MEM_DATA=7,this.ESP_WRITE_REG=9,this.ESP_READ_REG=10,this.ESP_SPI_ATTACH=13,this.ESP_CHANGE_BAUDRATE=15,this.ESP_FLASH_DEFL_BEGIN=16,this.ESP_FLASH_DEFL_DATA=17,this.ESP_FLASH_DEFL_END=18,this.ESP_SPI_FLASH_MD5=19,this.ESP_ERASE_FLASH=208,this.ESP_ERASE_REGION=209,this.ESP_READ_FLASH=210,this.ESP_RUN_USER_CODE=211,this.ESP_IMAGE_MAGIC=233,this.ESP_CHECKSUM_MAGIC=239,this.ROM_INVALID_RECV_MSG=5,this.ERASE_REGION_TIMEOUT_PER_MB=3e4,this.ERASE_WRITE_TIMEOUT_PER_MB=4e4,this.MD5_TIMEOUT_PER_MB=8e3,this.CHIP_ERASE_TIMEOUT=12e4,this.FLASH_READ_TIMEOUT=1e5,this.MAX_TIMEOUT=this.CHIP_ERASE_TIMEOUT*2,this.CHIP_DETECT_MAGIC_REG_ADDR=1073745920,this.DETECTED_FLASH_SIZES={18:"256KB",19:"512KB",20:"1MB",21:"2MB",22:"4MB",23:"8MB",24:"16MB"},this.DETECTED_FLASH_SIZES_NUM={18:256,19:512,20:1024,21:2048,22:4096,23:8192,24:16384},this.USB_JTAG_SERIAL_PID=4097,this.romBaudrate=115200,this.debugLogging=!1,this.syncStubDetected=!1,this.checksum=function(n){let r,a=239;for(r=0;rsetTimeout(n,t))}write(t,n=!0){this.terminal?n?this.terminal.writeLine(t):this.terminal.write(t):console.log(t)}error(t,n=!0){this.write(`Error: ${t}`,n)}info(t,n=!0){this.write(t,n)}debug(t,n=!0){this.debugLogging&&this.write(`Debug: ${t}`,n)}_shortToBytearray(t){return new Uint8Array([t&255,t>>8&255])}_intToByteArray(t){return new Uint8Array([t&255,t>>8&255,t>>16&255,t>>24&255])}_byteArrayToShort(t,n){return t|n>>8}_byteArrayToInt(t,n,r,a){return t|n<<8|r<<16|a<<24}_appendBuffer(t,n){const r=new Uint8Array(t.byteLength+n.byteLength);return r.set(new Uint8Array(t),0),r.set(new Uint8Array(n),t.byteLength),r.buffer}_appendArray(t,n){const r=new Uint8Array(t.length+n.length);return r.set(t,0),r.set(n,t.length),r}ui8ToBstr(t){let n="";for(let r=0;r0&&(i=this._appendArray(i,this._intToByteArray(this.chip.UART_DATE_REG_ADDR)),i=this._appendArray(i,this._intToByteArray(0)),i=this._appendArray(i,this._intToByteArray(0)),i=this._appendArray(i,this._intToByteArray(o))),await this.checkCommand("write target memory",this.ESP_WRITE_REG,i)}async sync(){this.debug("Sync");const t=new Uint8Array(36);let n;for(t[0]=7,t[1]=7,t[2]=18,t[3]=32,n=0;n<32;n++)t[4+n]=85;try{const r=await this.command(8,t,void 0,void 0,100);return this.syncStubDetected=this.syncStubDetected&&r[0]===0,r}catch(r){throw this.debug("Sync err "+r),r}}async _connectAttempt(t="default_reset",n=!1){if(this.debug("_connect_attempt "+t+" "+n),t!=="no_reset")if(this.transport.getPid()===this.USB_JTAG_SERIAL_PID)await AUe(this.transport);else{const o=n?"D0|R1|W100|W2000|D1|R0|W50|D0":"D0|R1|W100|D1|R0|W50|D0";await PUe(this.transport,o)}let r=0,a=!0;for(;a;){try{const o=await this.transport.read(1e3);r+=o.length}catch(o){if(this.debug(o.message),o instanceof Error){a=!1;break}}await this._sleep(50)}for(this.transport.slipReaderEnabled=!0,this.syncStubDetected=!0,r=7;r--;){try{const o=await this.sync();return this.debug(o[0].toString()),"success"}catch(o){o instanceof Error&&(n?this.info("_",!1):this.info(".",!1))}await this._sleep(50)}return"error"}async connect(t="default_reset",n=7,r=!1){let a,o;for(this.info("Connecting...",!1),await this.transport.connect(this.romBaudrate,this.serialOptions),a=0;a>>0;this.debug("Chip Magic "+i.toString(16));const s=await LUe(i);if(this.chip===null)throw new $a(`Unexpected CHIP magic value ${i}. Failed to autodetect chip type.`);this.chip=s}}async detectChip(t="default_reset"){await this.connect(t),this.info("Detecting chip type... ",!1),this.chip!=null?this.info(this.chip.CHIP_NAME):this.info("unknown!")}async checkCommand(t="",n=null,r=new Uint8Array(0),a=0,o=3e3){this.debug("check_command "+t);const i=await this.command(n,r,a,void 0,o);return i[1].length>4?i[1]:i[0]}async memBegin(t,n,r,a){this.debug("mem_begin "+t+" "+n+" "+r+" "+a.toString(16));let o=this._appendArray(this._intToByteArray(t),this._intToByteArray(n));o=this._appendArray(o,this._intToByteArray(r)),o=this._appendArray(o,this._intToByteArray(a)),await this.checkCommand("enter RAM download mode",this.ESP_MEM_BEGIN,o)}async memBlock(t,n){let r=this._appendArray(this._intToByteArray(t.length),this._intToByteArray(n));r=this._appendArray(r,this._intToByteArray(0)),r=this._appendArray(r,this._intToByteArray(0)),r=this._appendArray(r,t);const a=this.checksum(t);await this.checkCommand("write to target RAM",this.ESP_MEM_DATA,r,a)}async memFinish(t){const n=t===0?1:0,r=this._appendArray(this._intToByteArray(n),this._intToByteArray(t));await this.checkCommand("leave RAM download mode",this.ESP_MEM_END,r,void 0,50)}async flashSpiAttach(t){const n=this._intToByteArray(t);await this.checkCommand("configure SPI flash pins",this.ESP_SPI_ATTACH,n)}async flashBegin(t,n){const r=Math.floor((t+this.FLASH_WRITE_SIZE-1)/this.FLASH_WRITE_SIZE),a=this.chip.getEraseSize(n,t),o=new Date,i=o.getTime();let s=3e3;this.IS_STUB==!1&&(s=this.timeoutPerMb(this.ERASE_REGION_TIMEOUT_PER_MB,t)),this.debug("flash begin "+a+" "+r+" "+this.FLASH_WRITE_SIZE+" "+n+" "+t);let c=this._appendArray(this._intToByteArray(a),this._intToByteArray(r));c=this._appendArray(c,this._intToByteArray(this.FLASH_WRITE_SIZE)),c=this._appendArray(c,this._intToByteArray(n)),this.IS_STUB==!1&&(c=this._appendArray(c,this._intToByteArray(0))),await this.checkCommand("enter Flash download mode",this.ESP_FLASH_BEGIN,c,void 0,s);const u=o.getTime();return t!=0&&this.IS_STUB==!1&&this.info("Took "+(u-i)/1e3+"."+(u-i)%1e3+"s to erase flash block"),r}async flashDeflBegin(t,n,r){const a=Math.floor((n+this.FLASH_WRITE_SIZE-1)/this.FLASH_WRITE_SIZE),o=Math.floor((t+this.FLASH_WRITE_SIZE-1)/this.FLASH_WRITE_SIZE),i=new Date,s=i.getTime();let c,u;this.IS_STUB?(c=t,u=3e3):(c=o*this.FLASH_WRITE_SIZE,u=this.timeoutPerMb(this.ERASE_REGION_TIMEOUT_PER_MB,c)),this.info("Compressed "+t+" bytes to "+n+"...");let d=this._appendArray(this._intToByteArray(c),this._intToByteArray(a));d=this._appendArray(d,this._intToByteArray(this.FLASH_WRITE_SIZE)),d=this._appendArray(d,this._intToByteArray(r)),(this.chip.CHIP_NAME==="ESP32-S2"||this.chip.CHIP_NAME==="ESP32-S3"||this.chip.CHIP_NAME==="ESP32-C3"||this.chip.CHIP_NAME==="ESP32-C2")&&this.IS_STUB===!1&&(d=this._appendArray(d,this._intToByteArray(0))),await this.checkCommand("enter compressed flash mode",this.ESP_FLASH_DEFL_BEGIN,d,void 0,u);const f=i.getTime();return t!=0&&this.IS_STUB===!1&&this.info("Took "+(f-s)/1e3+"."+(f-s)%1e3+"s to erase flash block"),a}async flashBlock(t,n,r){let a=this._appendArray(this._intToByteArray(t.length),this._intToByteArray(n));a=this._appendArray(a,this._intToByteArray(0)),a=this._appendArray(a,this._intToByteArray(0)),a=this._appendArray(a,t);const o=this.checksum(t);await this.checkCommand("write to target Flash after seq "+n,this.ESP_FLASH_DATA,a,o,r)}async flashDeflBlock(t,n,r){let a=this._appendArray(this._intToByteArray(t.length),this._intToByteArray(n));a=this._appendArray(a,this._intToByteArray(0)),a=this._appendArray(a,this._intToByteArray(0)),a=this._appendArray(a,t);const o=this.checksum(t);this.debug("flash_defl_block "+t[0].toString(16)+" "+t[1].toString(16)),await this.checkCommand("write compressed data to flash after seq "+n,this.ESP_FLASH_DEFL_DATA,a,o,r)}async flashFinish(t=!1){const n=t?0:1,r=this._intToByteArray(n);await this.checkCommand("leave Flash mode",this.ESP_FLASH_END,r)}async flashDeflFinish(t=!1){const n=t?0:1,r=this._intToByteArray(n);await this.checkCommand("leave compressed flash mode",this.ESP_FLASH_DEFL_END,r)}async runSpiflashCommand(t,n,r){const s=this.chip.SPI_REG_BASE,c=s+0,u=s+this.chip.SPI_USR_OFFS,d=s+this.chip.SPI_USR1_OFFS,f=s+this.chip.SPI_USR2_OFFS,p=s+this.chip.SPI_W0_OFFS;let g;this.chip.SPI_MOSI_DLEN_OFFS!=null?g=async(I,T)=>{const R=s+this.chip.SPI_MOSI_DLEN_OFFS,_=s+this.chip.SPI_MISO_DLEN_OFFS;I>0&&await this.writeReg(R,I-1),T>0&&await this.writeReg(_,T-1)}:g=async(I,T)=>{const R=d,_=17,$=8,P=I===0?0:I-1,A=(T===0?0:T-1)<<$|P<<_;await this.writeReg(R,A)};const h=1<<18,b=28;if(r>32)throw new $a("Reading more than 32 bits back from a SPI flash operation is unsupported");if(n.length>64)throw new $a("Writing more than 64 bytes of data with one SPI command is unsupported");const y=n.length*8,S=await this.readReg(u),v=await this.readReg(f);let x=-2147483648,w;r>0&&(x|=268435456),y>0&&(x|=134217728),await g(y,r),await this.writeReg(u,x);let C=7<("00"+n.toString(16)).slice(-2)).join("")}async flashMd5sum(t,n){const r=this.timeoutPerMb(this.MD5_TIMEOUT_PER_MB,n);let a=this._appendArray(this._intToByteArray(t),this._intToByteArray(n));a=this._appendArray(a,this._intToByteArray(0)),a=this._appendArray(a,this._intToByteArray(0));let o=await this.checkCommand("calculate md5sum",this.ESP_SPI_FLASH_MD5,a,void 0,r);return o instanceof Uint8Array&&o.length>16&&(o=o.slice(0,16)),this.toHex(o)}async readFlash(t,n,r=null){let a=this._appendArray(this._intToByteArray(t),this._intToByteArray(n));a=this._appendArray(a,this._intToByteArray(4096)),a=this._appendArray(a,this._intToByteArray(1024));const o=await this.checkCommand("read flash",this.ESP_READ_FLASH,a);if(o!=0)throw new $a("Failed to read memory: "+o);let i=new Uint8Array(0);for(;i.length0&&(i=this._appendArray(i,s),await this.transport.write(this._intToByteArray(i.length)),r&&r(s,i.length,n));else throw new $a("Failed to read memory: "+s)}return i}async runStub(){if(this.syncStubDetected)return this.info("Stub is already running. No upload is necessary."),this.chip;this.info("Uploading stub...");let t=ZB(this.chip.ROM_TEXT),n=t.split("").map(function(s){return s.charCodeAt(0)});const r=new Uint8Array(n);t=ZB(this.chip.ROM_DATA),n=t.split("").map(function(s){return s.charCodeAt(0)});const a=new Uint8Array(n);let o=Math.floor((r.length+this.ESP_RAM_BLOCK-1)/this.ESP_RAM_BLOCK),i;for(await this.memBegin(r.length,o,this.ESP_RAM_BLOCK,this.chip.TEXT_START),i=0;i"u")throw new $a("Flash size "+t+" is not supported by this chip type. Supported sizes: "+this.chip.FLASH_SIZES);return this.chip.FLASH_SIZES[t]}_updateImageFlashParams(t,n,r,a,o){if(this.debug("_update_image_flash_params "+r+" "+a+" "+o),t.length<8||n!=this.chip.BOOTLOADER_FLASH_OFFSET)return t;if(r==="keep"&&a==="keep"&&o==="keep")return this.info("Not changing the image"),t;const i=parseInt(t[0]);let s=parseInt(t[2]);const c=parseInt(t[3]);if(i!==this.ESP_IMAGE_MAGIC)return this.info("Warning: Image file at 0x"+n.toString(16)+" doesn't look like an image file, so not changing any flash settings."),t;a!=="keep"&&(s={qio:0,qout:1,dio:2,dout:3}[a]);let u=c&15;o!=="keep"&&(u={"40m":0,"26m":1,"20m":2,"80m":15}[o]);let d=c&240;r!=="keep"&&(d=this.parseFlashSizeArg(r));const f=s<<8|u+d;return this.info("Flash params set to "+f.toString(16)),parseInt(t[2])!==s<<8&&(t=t.substring(0,2)+(s<<8).toString()+t.substring(3)),parseInt(t[3])!==u+d&&(t=t.substring(0,3)+(u+d).toString()+t.substring(4)),t}async writeFlash(t){if(this.debug("EspLoader program"),t.flashSize!=="keep"){const a=this.flashSizeBytes(t.flashSize);for(let o=0;oa)throw new $a(`File ${o+1} doesn't fit in the available flash`)}this.IS_STUB===!0&&t.eraseAll===!0&&await this.eraseFlash();let n,r;for(let a=0;a0&&(n+="ÿÿÿÿ".substring(4-o)),r=t.fileArray[a].address,this.debug("Image Length "+n.length),n.length===0){this.debug("Warning: File is empty");continue}n=this._updateImageFlashParams(n,r,t.flashSize,t.flashMode,t.flashFreq);let i=null;t.calculateMD5Hash&&(i=t.calculateMD5Hash(n),this.debug("Image MD5 "+i));const s=n.length;let c;if(t.compress){const v=this.bstrToUi8(n);n=this.ui8ToBstr(NUe(v,{level:9})),c=await this.flashDeflBegin(s,n.length,r)}else c=await this.flashBegin(s,r);let u=0,d=0;const f=n.length;t.reportProgress&&t.reportProgress(a,0,f);let p=new Date;const g=p.getTime();let h=5e3;const b=new kUe({chunkSize:1});let y=0;for(b.onData=function(v){y+=v.byteLength};n.length>0;){this.debug("Write loop "+r+" "+u+" "+c),this.info("Writing at 0x"+(r+y).toString(16)+"... ("+Math.floor(100*(u+1)/c)+"%)");const v=this.bstrToUi8(n.slice(0,this.FLASH_WRITE_SIZE));if(t.compress){const x=y;b.push(v,!1);const w=y-x;let C=3e3;this.timeoutPerMb(this.ERASE_WRITE_TIMEOUT_PER_MB,w)>3e3&&(C=this.timeoutPerMb(this.ERASE_WRITE_TIMEOUT_PER_MB,w)),this.IS_STUB===!1&&(h=C),await this.flashDeflBlock(v,u,h),this.IS_STUB&&(h=C)}else throw new $a("Yet to handle Non Compressed writes");d+=v.length,n=n.slice(this.FLASH_WRITE_SIZE,n.length),u++,t.reportProgress&&t.reportProgress(a,d,f)}this.IS_STUB&&await this.readReg(this.CHIP_DETECT_MAGIC_REG_ADDR,h),p=new Date;const S=p.getTime()-g;if(t.compress&&this.info("Wrote "+s+" bytes ("+d+" compressed) at 0x"+r.toString(16)+" in "+S/1e3+" seconds."),i){const v=await this.flashMd5sum(r,s);if(new String(v).valueOf()!=new String(i).valueOf())throw this.info("File md5: "+i),this.info("Flash md5: "+v),new $a("MD5 of file does not match data in flash!");this.info("Hash of data verified.")}}this.info("Leaving..."),this.IS_STUB&&(await this.flashBegin(0,0),t.compress?await this.flashDeflFinish():await this.flashFinish())}async flashId(){this.debug("flash_id");const t=await this.readFlashId();this.info("Manufacturer: "+(t&255).toString(16));const n=t>>16&255;this.info("Device: "+(t>>8&255).toString(16)+n.toString(16)),this.info("Detected flash size: "+this.DETECTED_FLASH_SIZES[n])}async getFlashSize(){this.debug("flash_id");const n=await this.readFlashId()>>16&255;return this.DETECTED_FLASH_SIZES_NUM[n]}async hardReset(){await this.transport.setRTS(!0),await this._sleep(100),await this.transport.setRTS(!1)}async softReset(){if(!this.IS_STUB)await this.flashBegin(0,0),await this.flashFinish(!1);else{if(this.chip.CHIP_NAME!="ESP8266")throw new $a("Soft resetting is currently only supported on ESP8266");await this.command(this.ESP_RUN_USER_CODE,void 0,void 0,!1)}}}const FUe=()=>{const[e,t]=l.useState(0),n=["",".","..","...","....","....."];return l.useEffect(()=>{const r=setInterval(()=>{t(a=>(a+1)%n.length)},666);return()=>clearInterval(r)},[]),m.jsx(m.Fragment,{children:n[e]})},jUe=()=>"serial"in navigator,BUe="/web/assets/tb-esp32-uart-clamp-D_86EMpu.png",zUe="/web/assets/esp32_pcb_clamp-Cw2o3uco.png",HUe="/web/assets/tb-esp32-uart-BDPWj6EB.png",yI=new xn(pn()),{Paragraph:va}=bn;function wZ(){const{t:e}=Nt();return m.jsxs(m.Fragment,{children:[m.jsx(va,{children:e("tonieboxes.connectESP32Modal.connectESP32Text1")}),m.jsx(va,{style:{display:"flex",alignItems:"flex-start",justifyContent:"center"},children:m.jsx(qr,{src:HUe,style:{height:200,width:"auto"},preview:!1,alt:e("tonieboxes.connectESP32Modal.esp32UartJ103")})}),m.jsx("h5",{children:e("tonieboxes.connectESP32Modal.esp32UartJ103ClampTitle")}),m.jsx(va,{style:{display:"flex",alignItems:"flex-start",justifyContent:"center",flexWrap:"wrap",gap:16},children:m.jsxs(qr.PreviewGroup,{children:[m.jsxs("div",{style:{maxWidth:200},children:[m.jsx(qr,{style:{height:200,width:"auto"},src:BUe,alt:e("tonieboxes.connectESP32Modal.esp32UartJ103Clamp")}),m.jsx("p",{style:{marginTop:8},children:e("tonieboxes.connectESP32Modal.esp32UartJ103Clamp")})]}),m.jsxs("div",{style:{maxWidth:200},children:[m.jsx(qr,{style:{height:200,width:"auto"},src:zUe,alt:e("tonieboxes.connectESP32Modal.esp32UartJ103AnalogClamp")}),m.jsx("p",{style:{marginTop:8},children:e("tonieboxes.connectESP32Modal.esp32UartJ103AnalogClamp")})]})]})}),m.jsx(va,{children:e("tonieboxes.connectESP32Modal.esp32UartJ103Clamp4PinHint")}),m.jsx(va,{children:e("tonieboxes.connectESP32Modal.connectESP32Text2")}),m.jsx(An,{type:"warning",message:e("tonieboxes.connectESP32Modal.beware"),description:e("tonieboxes.connectESP32Modal.warningText")}),m.jsx("h5",{children:e("tonieboxes.connectESP32Modal.normalMode")}),m.jsx(va,{children:e("tonieboxes.connectESP32Modal.normalModeText")}),m.jsx(Sa,{language:"shell",code:`ESP-ROM:esp32s3-20210327 Build:Mar 27 2021 rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT) SPIWP:0xee @@ -630,11 +630,11 @@ load:0x3fcd0108,len:0x118 load:0x403b6000,len:0xb90 load:0x403ba000,len:0x27f4 entry 0x403b61c4 -+ gibberish`}),m.jsx("h5",{children:e("tonieboxes.connectESP32Modal.downloadMode")}),m.jsx(ma,{children:e("tonieboxes.connectESP32Modal.downloadModeText")}),m.jsx(ba,{language:"shell",code:`ESP-ROM:esp32s3-20210327 ++ gibberish`}),m.jsx("h5",{children:e("tonieboxes.connectESP32Modal.downloadMode")}),m.jsx(va,{children:e("tonieboxes.connectESP32Modal.downloadModeText")}),m.jsx(Sa,{language:"shell",code:`ESP-ROM:esp32s3-20210327 Build:Mar 27 2021 rst:0x1 (POWERON),boot:0x0 (DOWNLOAD(USB/UART0)) waiting for download -J103 Pinout`})]})}function Ok(){const{t:e}=Nt();return m.jsxs(m.Fragment,{children:[m.jsx(ma,{children:e("tonieboxes.boxFlashingCommon.certificatesIntro")}),m.jsx("h4",{children:e("tonieboxes.boxFlashingCommon.dumpCertificates")}),m.jsx(ma,{children:e("tonieboxes.boxFlashingCommon.dumpCertificatesIntro1")}),m.jsx(ma,{children:e("tonieboxes.boxFlashingCommon.dumpCertificatesIntro2")})]})}function CZ(){const{t:e}=Nt();return m.jsxs(m.Fragment,{children:[m.jsx("h4",{children:e("tonieboxes.boxFlashingCommon.dnsHint")}),m.jsx(ma,{children:e("tonieboxes.boxFlashingCommon.dnsText1")}),m.jsx(An,{type:"warning",showIcon:!0,message:e("tonieboxes.boxFlashingCommon.dnsBeware"),description:e("tonieboxes.boxFlashingCommon.dnsBewareText"),style:{marginBottom:16}}),m.jsx(ma,{children:e("tonieboxes.boxFlashingCommon.dnsText2")}),m.jsx(ma,{children:m.jsx(ba,{language:"shell",code:`uci set dhcp.teddycloud="tag" +J103 Pinout`})]})}function Ok(){const{t:e}=Nt();return m.jsxs(m.Fragment,{children:[m.jsx(va,{children:e("tonieboxes.boxFlashingCommon.certificatesIntro")}),m.jsx("h4",{children:e("tonieboxes.boxFlashingCommon.dumpCertificates")}),m.jsx(va,{children:e("tonieboxes.boxFlashingCommon.dumpCertificatesIntro1")}),m.jsx(va,{children:e("tonieboxes.boxFlashingCommon.dumpCertificatesIntro2")})]})}function CZ(){const{t:e}=Nt();return m.jsxs(m.Fragment,{children:[m.jsx("h4",{children:e("tonieboxes.boxFlashingCommon.dnsHint")}),m.jsx(va,{children:e("tonieboxes.boxFlashingCommon.dnsText1")}),m.jsx(An,{type:"warning",showIcon:!0,message:e("tonieboxes.boxFlashingCommon.dnsBeware"),description:e("tonieboxes.boxFlashingCommon.dnsBewareText"),style:{marginBottom:16}}),m.jsx(va,{children:e("tonieboxes.boxFlashingCommon.dnsText2")}),m.jsx(va,{children:m.jsx(Sa,{language:"shell",code:`uci set dhcp.teddycloud="tag" uci set dhcp.teddycloud.dhcp_option="3,1.2.3.4" # 1.2.3.4=teddycloud ip uci add dhcp host @@ -643,16 +643,16 @@ uci set dhcp.@host[-1].mac="00:11:22:33:44:55" # toniebox mac uci set dhcp.@host[-1].ip="1.2.3.101" # toniebox_1 ip uci set dhcp.@host[-1].tag="teddycloud" uci commit dhcp -/etc/init.d/dnsmasq restart`})})]})}const Yy=({boxVersion:e,isOpen:t,onClose:n})=>{const{t:r}=Nt(),[a,o]=l.useState([]),[i,s]=l.useState(!1);l.useEffect(()=>{t&&c()},[t,i]);const c=async()=>{const f=await bI.apiGetTonieboxesIndex(),p=await Promise.all(f.map(async g=>{const b=await bI.apiGetTonieboxStatus(g.ID)?"Online":"Offline",y=await bI.apiGetTonieboxVersion(g.ID);let v={0:"UNKNOWN",1:"CC3200",2:"CC3235",3:"ESP32"}[y]||"UNKNOWN";return{...g,status:b,version:v}}));o(p)},u=[{title:r("tonieboxes.availableBoxModal.commonName"),dataIndex:"commonName",key:"commonName"},{title:r("tonieboxes.availableBoxModal.boxVersion"),dataIndex:"version",key:"version"},{title:r("tonieboxes.availableBoxModal.status"),dataIndex:"status",key:"status"}],d=m.jsxs(ma,{style:{display:"flex",gap:8,justifyContent:"flex-end",flexWrap:"wrap"},children:[m.jsx(ut,{onClick:()=>s(f=>!f),children:r("tonieboxes.availableBoxModal.recheck")}),m.jsxs(ut,{onClick:n,children:[" ",r("tonieboxes.availableBoxModal.cancel")]}),m.jsx(ut,{type:"primary",onClick:n,children:r("tonieboxes.availableBoxModal.ok")})]});return m.jsxs(Sn,{title:r("tonieboxes.availableBoxModal.availableBoxes",{boxVersion:e}),open:t,onOk:n,onCancel:n,footer:d,children:[m.jsxs(ma,{children:[m.jsx(ma,{children:r("tonieboxes.availableBoxModal.newBoxAvailable",{cc3200Hint:e==="CC3200"?r("tonieboxes.availableBoxModal.cc3200Hint"):""})}),m.jsx(gt,{to:"https://tonies-wiki.revvox.de/docs/tools/teddycloud/setup/test-troubleshooting/",target:"_blank",children:r("tonieboxes.availableBoxModal.troubleShooting")})]}),m.jsx("h4",{children:r("tonieboxes.availableBoxModal.availableBoxes",{boxVersion:e})}),m.jsx(Qa,{dataSource:a.filter(f=>f.version===e),columns:u,rowKey:"ID",pagination:!1})]})},xu=new xn(pn()),{Paragraph:sr,Text:UUe}=bn,{Step:VUe}=Ns,WUe=()=>{const{t:e}=Nt(),t=kr.language,n=l.useRef(null),[r,a]=l.useState(!1),[o,i]=l.useState(""),[s,c]=l.useState(!1),[u,d]=l.useState(!1),[f,p]=l.useState(!1),[g,h]=l.useState("certs/client"),[b,y]=l.useState(""),[S,v]=l.useState(0),[x,C]=l.useState(!1),[w,E]=l.useState({progress:0,chipMac:"",chipType:"",flashId:"",flashManuf:"",flashDevice:"",flashSize:"",state:"",filename:"",flashName:"",port:null,originalFlash:null,patchedFlash:null,showStatus:!1,showProgress:!1,showDownload:!1,showFlash:!1,connected:!1,hostname:window.location.hostname,wifi_ssid:"",wifi_pass:"",proceed:!1,actionInProgress:!1,warningTextHostname:"",warningTextWifi:"",downloadLink:"",downloadLinkPatched:"",error:!1}),[I,T]=l.useState(!1),R=921600,_=115200;function $(Ce){const me=new Uint8Array(Ce);let we="";for(let _e=0;_e{(async()=>{const we=await(await xu.apiGetTeddyCloudSettingRaw("core.certdir")).text();h(we)})()},[]),l.useEffect(()=>{T(jUe())},[]),l.useEffect(()=>{if(window.location.protocol!=="https:"){a(!1);const Ce=async()=>{try{return await(await xu.apiGetTeddyCloudSettingRaw("core.server.https_web_port")).text()}catch(_e){console.error("Error fetching https port: ",_e)}},me=async()=>{try{return await(await xu.apiGetTeddyCloudSettingRaw("core.server.http_port")).text()}catch(_e){console.error("Error fetching http port: ",_e)}};(async()=>{const _e=await Ce()||"",Ne=await me()||"",he=new URL(window.location.href);he.protocol="https:",he.port?he.port=he.port===Ne?_e:he.port:he.port=_e,i(he.toString())})()}else a(!0)},[]),l.useEffect(()=>{Q(S,(()=>{switch(S){case 0:return te;case 1:return Y;case 2:return J;case 3:return U;default:return m.jsx("div",{})}})())},[w,t]),l.useEffect(()=>{w.proceed&&Te()},[w.proceed]),l.useEffect(()=>{c(w.actionInProgress)},[w.actionInProgress]);const P=()=>{o&&(window.location.href=o)},D=async Ce=>{if(w.port)return console.log(w.port.getInfo),w.port;E(we=>({...we,showStatus:!0,showProgress:!1,progress:0,state:Ce||"Open serial port"}));let me=null;try{me=await navigator.serial.requestPort(),await me.open({baudRate:115200}),await me.close()}catch(we){return we==="NetworkError"?(E(_e=>({..._e,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.portOpenFailedInUse"),error:!0})),alert(e("tonieboxes.esp32BoxFlashing.esp32flasher.portOpenFailedInUse"))):we==="NotFoundError"?E(_e=>({..._e,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.noPortAvailable"),error:!0})):(E(_e=>({..._e,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.error")+we,error:!0})),alert(e("tonieboxes.esp32BoxFlashing.esp32flasher.error")+` ${we}`)),null}return me?(console.log("port done"),E(we=>({...we,port:me})),me):(E(we=>({...we,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.invalidSerialPort"),error:!0})),null)},A=async Ce=>{if(console.log("loadFlashFile"),!Ce.target.files)return;const me=Ce.target.files[0];if(!me)return;E(_e=>({..._e,state:"",chipMac:"",chipType:"",flashId:"",flashManuf:"",flashDevice:"",flashSize:"",error:!1,actionInProgress:!0})),console.log("Read file '"+me+"'");const we=new FileReader;we.onload=async _e=>{var ke;console.log("Connecting to ESP32");const Ne=await D(e("tonieboxes.esp32BoxFlashing.esp32flasher.connectingReadMac"));if(Ne===null||w.connected){E(xe=>({...xe,actionInProgress:!1}));return}E(xe=>({...xe,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.connectingTo")+` ${w.port}`,showFlash:!1,connected:!0}));let he=null;try{const xe=new Iv(Ne);he=new vI({transport:xe,baudrate:R,romBaudrate:_})}catch(xe){E(ge=>({...ge,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.failedToConnect")+` ${xe}`,connected:!1,actionInProgress:!1,error:!0})),alert(xe),await Ne.close();return}try{E(Oe=>({...Oe,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.retrievingMac"),actionInProgress:!0})),await he.main();let xe=await he.chip.readMac(he);E(Oe=>({...Oe,chipMac:xe})),console.log("Chip MAC: "+xe),await Ne.close();const ge=(ke=_e.target)==null?void 0:ke.result,Pe=new Uint8Array(ge),Ve=`ESP32_${xe.replace(/:/g,"")}`,Ae=new Blob([Pe],{type:"application/octet-stream"}),be=URL.createObjectURL(Ae);await N(Pe,Ve),_e.target&&E(Oe=>{var Fe;return{...Oe,patchedFlash:(Fe=_e.target)==null?void 0:Fe.result,showFlash:!0,connected:!1,flashName:"from file",downloadLink:be}}),console.log("Done")}catch(xe){E(ge=>({...ge,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.failedToCommunicate")+` ${xe}`,connected:!1,actionInProgress:!1,error:!0})),console.error(xe),alert(xe),await Ne.close();return}},we.readAsArrayBuffer(me),E(_e=>({..._e,actionInProgress:!1})),Ce.target.value=""},O=async()=>{let Ce=null,me=null,we="";me=new Uint8Array(1024);const _e=await D(e("tonieboxes.esp32BoxFlashing.esp32flasher.connectingReadFlash"));if(_e===null||w.connected)return;E(xe=>({...xe,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.connectingTo")+` ${_e.getInfo()}`,chipMac:"",chipType:"",flashId:"",flashManuf:"",flashDevice:"",flashSize:"",showFlash:!1,connected:!0,actionInProgress:!0,error:!1}));try{const xe=new Iv(_e);Ce=new vI({transport:xe,baudrate:R,romBaudrate:_})}catch(xe){E(ge=>({...ge,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.failedToConnect")+` ${xe}`,connected:!1,actionInProgress:!1,error:!0})),alert(xe),await _e.close();return}try{E(Ve=>({...Ve,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.connectingToESP")})),await Ce.main(),E(Ve=>({...Ve,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.connected")})),we=await Ce.chip.readMac(Ce),E(Ve=>({...Ve,chipMac:we})),console.log("Chip MAC: "+we);const xe=await Ce.chip.getChipDescription(Ce);E(Ve=>({...Ve,chipType:xe}));let ge=await Ce.readFlashId();E(Ve=>({...Ve,flashId:""+ge,flashManuf:""+(ge&255),flashDevice:""+(ge>>8&255)}));let Pe=await Ce.getFlashSize();if(E(Ve=>({...Ve,flashSize:""+Pe})),Pe<0||Pe>16384){E(Ve=>({...Ve,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.flashSizeError"),connected:!1,actionInProgress:!1,error:!0})),await _e.close();return}E(Ve=>({...Ve,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.readingFlash"),showProgress:!0,progress:0})),me=await Ce.readFlash(0,Pe*1024,(Ve,Ae,be)=>{const Oe=100*Ae/be;E(Fe=>({...Fe,progress:Oe}))}),await _e.close(),E(Ve=>({...Ve,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.readingFinished"),progress:100,originalFlash:me,connected:!1}))}catch(xe){E(ge=>({...ge,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.failedToCommunicate")+` ${xe}`,connected:!1,actionInProgress:!1,error:!0})),console.error(xe),alert(xe),await _e.close();return}const Ne=`ESP32_${we.replace(/:/g,"")}`,he=new Blob([me],{type:"application/octet-stream"}),ke=URL.createObjectURL(he);E(xe=>({...xe,downloadLink:ke,showProgress:!1})),await N(me,Ne),console.log("Done")},N=async(Ce,me)=>{try{E(Ne=>({...Ne,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.uploading"),error:!1}));const we=new FormData;we.append(me,new Blob([Ce.buffer]),me);const _e=await xu.apiPostTeddyCloudFormDataRaw("/api/esp32/uploadFirmware",we);if(_e.ok&&_e.status===200){const Ne=await _e.text();E(he=>({...he,showDownload:!0,filename:Ne,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.uploadSuccessful")+` ${Ne}`+e("tonieboxes.esp32BoxFlashing.esp32flasher.readyToProceed"),proceed:!0,actionInProgress:!1}))}else E(Ne=>({...Ne,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.uploadFailed"),actionInProgress:!1,error:!0}))}catch(we){console.error("There was an error when uploading!",we),E(_e=>({..._e,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.uploadFailed"),actionInProgress:!1,error:!0}))}},k=async()=>{if(w.wifi_ssid&&!w.wifi_pass||!w.wifi_ssid&&w.wifi_pass){E(me=>({...me,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.wifiCredentialsIncomplete"),showStatus:!0,warningTextWifi:e("tonieboxes.esp32BoxFlashing.esp32flasher.wifiCredentialsIncomplete"),error:!0}));return}E(me=>({...me,actionInProgress:!0})),E(me=>({...me,showProgress:!1,showFlash:!1,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.patchingFlashImage"),error:!1}));const Ce=await xu.apiGetTeddyCloudApiRaw(`/api/esp32/patchFirmware?filename=${w.filename}&hostname=${encodeURIComponent(w.hostname)}`+(w.wifi_ssid&&w.wifi_pass?`&wifi_ssid=${encodeURIComponent(w.wifi_ssid)}&wifi_pass=${encodeURIComponent(w.wifi_pass)}`:""));if(E(me=>({...me,showProgress:!1,showFlash:!1,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.patchingFlashImage")})),Ce.ok&&Ce.status===200){const me=await Ce.arrayBuffer();E(Ne=>({...Ne,patchedFlash:me,showFlash:!0,flashName:"patched"}));const we=new Blob([me],{type:"application/octet-stream"}),_e=URL.createObjectURL(we);E(Ne=>({...Ne,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.patchingSuccessful",{size:(me.byteLength/1024/1024).toFixed(0)}),downloadLinkPatched:_e})),Te()}else E(me=>({...me,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.patchingFailed"),error:!0}));E(me=>({...me,actionInProgress:!1}))},M=async()=>{const Ce=await D(e("tonieboxes.esp32BoxFlashing.esp32flasher.connectingWriteFlash"));if(Ce===null||w.connected)return;E(we=>({...we,actionInProgress:!0,error:!1})),E(we=>({...we,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.connectingTo")+` ${Ce.getInfo()}`,connected:!0}));let me=null;try{const we=new Iv(Ce);me=new vI({transport:we,baudrate:R,romBaudrate:_})}catch(we){E(_e=>({..._e,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.failedToConnect")+` ${we}`,connected:!1,actionInProgress:!1,error:!0})),alert(we),await Ce.close();return}try{E(ge=>({...ge,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.connectingToESP")})),await me.main(),E(ge=>({...ge,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.connected"),progress:0,showProgress:!0}));let we=await me.chip.readMac(me);E(ge=>({...ge,chipMac:we})),console.log("Chip MAC: "+we);const _e=await me.chip.getChipDescription(me);E(ge=>({...ge,chipType:_e}));let Ne=await me.readFlashId();E(ge=>({...ge,flashId:""+Ne,flashManuf:""+(Ne&255),flashDevice:""+(Ne>>8&255)}));let he=await me.getFlashSize();if(E(ge=>({...ge,flashSize:""+he})),he<0||he>16384){E(ge=>({...ge,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.flashSizeError"),connected:!1,actionInProgress:!1,error:!0})),await Ce.close();return}E(ge=>({...ge,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.preparingFlash",{size:(w.patchedFlash.byteLength/1024/1024).toFixed(0)})}));let ke=[];ke.push({data:$(w.patchedFlash),address:0});let xe={fileArray:ke,flashSize:"keep",flashMode:"keep",flashFreq:"keep",eraseAll:!1,compress:!0,reportProgress:(ge,Pe,Ve)=>{const Ae=100*Pe/Ve;E(be=>({...be,progress:Ae}))}};E(ge=>({...ge,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.writingFlash",{size:(w.patchedFlash.byteLength/1024/1024).toFixed(0)})})),await me.writeFlash(xe),await Ce.close(),E(ge=>({...ge,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.writingFinished"),connected:!1,actionInProgress:!1,proceed:!0}))}catch(we){E(_e=>({..._e,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.failedToCommunicate")+` ${we}`,connected:!1,actionInProgress:!1,error:!0})),console.error(we),alert(we),await Ce.close();return}},L=async Ce=>{const me=Xe.loading(e("tonieboxes.esp32BoxFlashing.esp32flasher.extractingCertificates"),0);Ce&&p(!1);try{const we=await xu.apiPostTeddyCloudRaw(`/api/esp32/extractCerts?filename=${w.filename}`+(Ce?"&overwrite=true":""));if(we.ok&&we.status===200)me(),Xe.success(e("tonieboxes.esp32BoxFlashing.esp32flasher.extractingCertificatesSuccessful",{file:w.filename}));else if(!we.ok&&we.status===409){me();const _e=await we.text();Xe.error(e("tonieboxes.esp32BoxFlashing.esp32flasher.extractingCertificatesFailed",{file:w.filename})+": "+_e),y(_e),p(!0)}else me(),Xe.error(e("tonieboxes.esp32BoxFlashing.esp32flasher.extractingCertificatesFailed",{file:w.filename})+": "+await we.text())}catch(we){me(),Xe.error(e("tonieboxes.esp32BoxFlashing.esp32flasher.extractingCertificatesFailed",{file:w.filename})+": "+we)}},F=[{title:e("tonieboxes.esp32BoxFlashing.esp32flasher.titleReadESP32ImportFlash")},{title:e("tonieboxes.esp32BoxFlashing.esp32flasher.titlePatchFlash")},{title:e("tonieboxes.esp32BoxFlashing.esp32flasher.titleFlashESP32")},{title:e("tonieboxes.esp32BoxFlashing.esp32flasher.titleESP32FirmwareFlashed")}],j=m.jsx(m.Fragment,{children:w.showProgress&&m.jsx("div",{children:m.jsx("div",{children:m.jsx(iy,{percent:w.progress||0,format:Ce=>`${(Ce??0).toFixed(2)}%`})})})}),B=m.jsx(m.Fragment,{children:(w.chipType||w.chipMac)&&m.jsxs("div",{children:[m.jsx(Rr,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.infoTable")}),m.jsx("table",{className:"info-table",children:m.jsxs("tbody",{children:[w.chipType&&m.jsxs("tr",{children:[m.jsx("td",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.chipType")}),m.jsx("td",{children:w.chipType})]}),w.chipMac&&m.jsxs("tr",{children:[m.jsx("td",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.chipMAC")}),m.jsx("td",{children:w.chipMac})]}),w.flashId&&m.jsxs("tr",{children:[m.jsx("td",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.flashId")}),m.jsxs("td",{children:["0x",w.flashId.toString()]})]}),w.flashManuf&&m.jsxs("tr",{children:[m.jsx("td",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.flashManuf")}),m.jsxs("td",{children:["0x",w.flashManuf.toString()]})]}),w.flashDevice&&m.jsxs("tr",{children:[m.jsx("td",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.flashDevice")}),m.jsxs("td",{children:["0x",w.flashDevice.toString()]})]}),w.flashSize&&m.jsxs("tr",{children:[m.jsx("td",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.flashSize")}),m.jsxs("td",{children:[w.flashSize," KiB"]})]})]})})]})}),z=Ce=>Ce.replace(/[^a-zA-Z0-9-.]/g,"").trim(),H=Ce=>{if(Ce.endsWith("...")){const me=Ce.slice(0,-3);return m.jsxs("div",{style:{display:"flex"},children:[me,m.jsx(FUe,{})]})}return Ce},V=w.showStatus&&m.jsx("div",{className:"status",style:{marginBottom:16,color:w.error?"#CC3010":"unset"},children:m.jsx("i",{children:H(w.state)})}),te=m.jsxs(m.Fragment,{children:[m.jsx("h3",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.titleReadESP32ImportFlash")}),!w.actionInProgress&&m.jsxs(m.Fragment,{children:[m.jsx(An,{type:"warning",closeIcon:!0,showIcon:!0,message:e("tonieboxes.hintLatestFirmwareTitle"),description:e("tonieboxes.hintLatestFirmware")}),m.jsx(sr,{style:{marginTop:16},children:e("tonieboxes.esp32BoxFlashing.esp32flasher.hintReadESP32ImportFlash")}),m.jsx(yl,{size:"small",style:{marginBottom:16},items:[{key:"1",label:e("tonieboxes.esp32BoxFlashing.esp32flasher.connectESPCollapseTitle"),children:m.jsx(m.Fragment,{children:wZ()})}]})]}),V,m.jsx("input",{type:"file",style:{display:"none"},ref:n,onChange:A}),j]}),Y=m.jsxs(m.Fragment,{children:[m.jsx("h3",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.titlePatchFlash")}),m.jsxs("div",{children:[!w.actionInProgress&&m.jsx(sr,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.hintPatchFlash")}),V,!w.actionInProgress&&w.downloadLink?m.jsxs("div",{style:{marginBottom:16},children:[" ",m.jsx("a",{href:w.downloadLink,download:w.filename,title:w.filename,children:e("tonieboxes.esp32BoxFlashing.esp32flasher.downloadLink")})]}):"",m.jsxs(qt,{children:[m.jsx(Rr,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.hostnameSettings")}),m.jsx(sr,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.hintPatchHost")}),m.jsxs(qt.Item,{children:[m.jsxs($a,{align:"middle",style:{display:"flex",alignItems:"center"},children:[m.jsx(En,{style:{flex:"0 0 200px",color:w.warningTextHostname?"#CC3010":"unset"},children:m.jsx("label",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.hostname")})}),m.jsx(En,{style:{flex:"1 1 auto"},children:m.jsx(Jt,{type:"text",value:w.hostname,onChange:Ce=>{let me=z(Ce.target.value),we="";me.length>12?we=e("tonieboxes.esp32BoxFlashing.esp32flasher.hostnameTooLong"):we="",E(_e=>({..._e,hostname:me,warningTextHostname:we}))}})})]}),w.warningTextHostname&&m.jsx("p",{style:{color:"#CC3010"},children:e("tonieboxes.esp32BoxFlashing.esp32flasher.hostnameTooLong")})]}),m.jsx(Rr,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.wifiSettings")}),m.jsx(sr,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.hintPatchWifi")}),m.jsx(qt.Item,{children:m.jsxs($a,{align:"middle",style:{display:"flex",alignItems:"center"},children:[m.jsx(En,{style:{flex:"0 0 200px",color:w.warningTextWifi?"#CC3010":"unset"},children:m.jsx("label",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.wifiSSID")})}),m.jsx(En,{style:{flex:"1 1 auto"},children:m.jsx(Jt,{type:"text",defaultValue:w.wifi_ssid,onChange:Ce=>{let me=Ce.target.value;E(we=>({...we,wifi_ssid:me,warningTextWifi:Ce.target.value&&w.wifi_pass||!Ce.target.value&&!w.wifi_pass?"":e("tonieboxes.esp32BoxFlashing.esp32flasher.wifiCredentialsIncomplete")}))}})})]})}),m.jsxs(qt.Item,{children:[m.jsxs($a,{align:"middle",style:{display:"flex",alignItems:"center"},children:[m.jsx(En,{style:{flex:"0 0 200px",color:w.warningTextWifi?"#CC3010":"unset"},children:m.jsx("label",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.wifiPassword")})}),m.jsx(En,{style:{flex:"1 1 auto"},children:m.jsx(Jt.Password,{defaultValue:w.wifi_pass,onChange:Ce=>{let me=Ce.target.value;E(we=>({...we,wifi_pass:me,warningTextWifi:Ce.target.value&&w.wifi_ssid||!Ce.target.value&&!w.wifi_ssid?"":e("tonieboxes.esp32BoxFlashing.esp32flasher.wifiCredentialsIncomplete")}))}})})]}),w.warningTextWifi&&m.jsx("p",{style:{color:"#CC3010"},children:e("tonieboxes.esp32BoxFlashing.esp32flasher.wifiCredentialsIncomplete")})]})]})]}),j]}),J=m.jsxs(m.Fragment,{children:[m.jsx("h3",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.titleFlashESP32")}),!w.actionInProgress&&m.jsx(sr,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.hintFlashESP32")}),V,!w.actionInProgress&&w.downloadLinkPatched?m.jsxs("div",{style:{marginBottom:16},children:[" ",m.jsx("a",{href:w.downloadLinkPatched,download:"patched_"+w.filename,title:"patched_"+w.filename,children:e("tonieboxes.esp32BoxFlashing.esp32flasher.downloadLinkPatched")})]}):"",j]}),G=`${g}/${w.chipMac?w.chipMac.replaceAll(":","").toLowerCase():""}`,U=m.jsxs(m.Fragment,{children:[m.jsx("h3",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.titleESP32FirmwareFlashed")}),m.jsx(sr,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.hintESP32FirmwareFlashed")}),V,j,(w.downloadLink||w.downloadLinkPatched)&&m.jsxs(m.Fragment,{children:[m.jsx(An,{type:"info",style:{marginTop:16},showIcon:!0,message:e("tonieboxes.esp32BoxFlashing.esp32flasher.extractCertificates"),description:m.jsxs("div",{children:[m.jsxs(bn,{children:[m.jsx(Rr,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.automatically")}),m.jsx(sr,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.extractCertificatesAutomaticallyHint")}),m.jsx(ut,{icon:m.jsx(tN,{}),disabled:s,type:"primary",onClick:()=>ce(),style:{marginBottom:8},children:e("tonieboxes.esp32BoxFlashing.esp32flasher.extractCertificates")}),m.jsx(sr,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.extractCertificatesAutomaticallyHint2",{certDir:g,mac:w.chipMac.replaceAll(":","").toLocaleLowerCase()})})]}),m.jsx(Rr,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.manually")}),m.jsx(bn,{style:{marginBottom:8},children:e("tonieboxes.esp32BoxFlashing.esp32flasher.extractCertificatesManuallyHint")}),m.jsx(bn,{children:m.jsx(yl,{size:"small",items:[{key:"1",label:e("tonieboxes.esp32BoxFlashing.esp32flasher.extractCertificatesManually"),children:m.jsxs(bn,{children:[m.jsxs(sr,{children:[e("tonieboxes.esp32BoxFlashing.esp32flasher.extractCertificatesManuallyHintP1")," ",m.jsx(UUe,{code:!0,children:"docker exec -it bash"}),"."]}),m.jsx(sr,{children:m.jsx("pre",{style:{fontSize:12},children:`# Please check the filename of your backup +/etc/init.d/dnsmasq restart`})})]})}const Xy=({boxVersion:e,isOpen:t,onClose:n})=>{const{t:r}=Nt(),[a,o]=l.useState([]),[i,s]=l.useState(!1);l.useEffect(()=>{t&&c()},[t,i]);const c=async()=>{const f=await yI.apiGetTonieboxesIndex(),p=await Promise.all(f.map(async g=>{const b=await yI.apiGetTonieboxStatus(g.ID)?"Online":"Offline",y=await yI.apiGetTonieboxVersion(g.ID);let v={0:"UNKNOWN",1:"CC3200",2:"CC3235",3:"ESP32"}[y]||"UNKNOWN";return{...g,status:b,version:v}}));o(p)},u=[{title:r("tonieboxes.availableBoxModal.commonName"),dataIndex:"commonName",key:"commonName"},{title:r("tonieboxes.availableBoxModal.boxVersion"),dataIndex:"version",key:"version"},{title:r("tonieboxes.availableBoxModal.status"),dataIndex:"status",key:"status"}],d=m.jsxs(va,{style:{display:"flex",gap:8,justifyContent:"flex-end",flexWrap:"wrap"},children:[m.jsx(ct,{onClick:()=>s(f=>!f),children:r("tonieboxes.availableBoxModal.recheck")}),m.jsxs(ct,{onClick:n,children:[" ",r("tonieboxes.availableBoxModal.cancel")]}),m.jsx(ct,{type:"primary",onClick:n,children:r("tonieboxes.availableBoxModal.ok")})]});return m.jsxs(Sn,{title:r("tonieboxes.availableBoxModal.availableBoxes",{boxVersion:e}),open:t,onOk:n,onCancel:n,footer:d,children:[m.jsxs(va,{children:[m.jsx(va,{children:r("tonieboxes.availableBoxModal.newBoxAvailable",{cc3200Hint:e==="CC3200"?r("tonieboxes.availableBoxModal.cc3200Hint"):""})}),m.jsx(yt,{to:"https://tonies-wiki.revvox.de/docs/tools/teddycloud/setup/test-troubleshooting/",target:"_blank",children:r("tonieboxes.availableBoxModal.troubleShooting")})]}),m.jsx("h4",{children:r("tonieboxes.availableBoxModal.availableBoxes",{boxVersion:e})}),m.jsx(Ja,{dataSource:a.filter(f=>f.version===e),columns:u,rowKey:"ID",pagination:!1})]})},xu=new xn(pn()),{Paragraph:nr,Text:UUe}=bn,{Step:VUe}=ks,WUe=()=>{const{t:e}=Nt(),t=of(),n=kr.language,r=l.useRef(null),[a,o]=l.useState(!1),[i,s]=l.useState(""),[c,u]=l.useState(!1),[d,f]=l.useState(!1),[p,g]=l.useState(!1),[h,b]=l.useState("certs/client"),[y,S]=l.useState(""),[v,x]=l.useState(0),[w,C]=l.useState(!1),[E,I]=l.useState({progress:0,chipMac:"",chipType:"",flashId:"",flashManuf:"",flashDevice:"",flashSize:"",state:"",filename:"",flashName:"",port:null,originalFlash:null,patchedFlash:null,showStatus:!1,showProgress:!1,showDownload:!1,showFlash:!1,connected:!1,hostname:window.location.hostname,wifi_ssid:"",wifi_pass:"",proceed:!1,actionInProgress:!1,warningTextHostname:"",warningTextWifi:"",downloadLink:"",downloadLinkPatched:"",error:!1}),[T,R]=l.useState(!1),_=921600,$=115200;function P(ye){const ve=new Uint8Array(ye);let $e="";for(let Ee=0;Ee{(async()=>{const $e=await(await xu.apiGetTeddyCloudSettingRaw("core.certdir")).text();b($e)})()},[]),l.useEffect(()=>{R(jUe())},[]),l.useEffect(()=>{if(window.location.protocol!=="https:"){o(!1);const ye=async()=>{try{return await(await xu.apiGetTeddyCloudSettingRaw("core.server.https_web_port")).text()}catch(Ee){console.error("Error fetching https port: ",Ee)}},ve=async()=>{try{return await(await xu.apiGetTeddyCloudSettingRaw("core.server.http_port")).text()}catch(Ee){console.error("Error fetching http port: ",Ee)}};(async()=>{const Ee=await ye()||"",ge=await ve()||"",Ne=new URL(window.location.href);Ne.protocol="https:",Ne.port?Ne.port=Ne.port===ge?Ee:Ne.port:Ne.port=Ee,s(Ne.toString())})()}else o(!0)},[]),l.useEffect(()=>{ee(v,(()=>{switch(v){case 0:return Y;case 1:return J;case 2:return G;case 3:return q;default:return m.jsx("div",{})}})())},[E,n]),l.useEffect(()=>{E.proceed&&be()},[E.proceed]),l.useEffect(()=>{u(E.actionInProgress)},[E.actionInProgress]);const D=()=>{i&&(window.location.href=i)},A=async ye=>{if(E.port)return console.log(E.port.getInfo),E.port;I($e=>({...$e,showStatus:!0,showProgress:!1,progress:0,state:ye||"Open serial port"}));let ve=null;try{ve=await navigator.serial.requestPort(),await ve.open({baudRate:115200}),await ve.close()}catch($e){return $e==="NetworkError"?(I(Ee=>({...Ee,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.portOpenFailedInUse"),error:!0})),alert(e("tonieboxes.esp32BoxFlashing.esp32flasher.portOpenFailedInUse"))):$e==="NotFoundError"?I(Ee=>({...Ee,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.noPortAvailable"),error:!0})):(I(Ee=>({...Ee,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.error")+$e,error:!0})),alert(e("tonieboxes.esp32BoxFlashing.esp32flasher.error")+` ${$e}`)),null}return ve?(console.log("port done"),I($e=>({...$e,port:ve})),ve):(I($e=>({...$e,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.invalidSerialPort"),error:!0})),null)},O=async ye=>{if(console.log("loadFlashFile"),!ye.target.files)return;const ve=ye.target.files[0];if(!ve)return;I(Ee=>({...Ee,state:"",chipMac:"",chipType:"",flashId:"",flashManuf:"",flashDevice:"",flashSize:"",error:!1,actionInProgress:!0})),console.log("Read file '"+ve+"'");const $e=new FileReader;$e.onload=async Ee=>{var Re;console.log("Connecting to ESP32");const ge=await A(e("tonieboxes.esp32BoxFlashing.esp32flasher.connectingReadMac"));if(ge===null||E.connected){I(me=>({...me,actionInProgress:!1}));return}I(me=>({...me,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.connectingTo")+` ${E.port}`,showFlash:!1,connected:!0}));let Ne=null;try{const me=new Tv(ge);Ne=new bI({transport:me,baudrate:_,romBaudrate:$})}catch(me){I(_e=>({..._e,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.failedToConnect")+` ${me}`,connected:!1,actionInProgress:!1,error:!0})),alert(me),await ge.close();return}try{I(Fe=>({...Fe,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.retrievingMac"),actionInProgress:!0})),await Ne.main();let me=await Ne.chip.readMac(Ne);I(Fe=>({...Fe,chipMac:me})),console.log("Chip MAC: "+me),await ge.close();const _e=(Re=Ee.target)==null?void 0:Re.result,Ze=new Uint8Array(_e),Oe=`ESP32_${me.replace(/:/g,"")}`,Se=new Blob([Ze],{type:"application/octet-stream"}),Ae=URL.createObjectURL(Se);await k(Ze,Oe),Ee.target&&I(Fe=>{var Ve;return{...Fe,patchedFlash:(Ve=Ee.target)==null?void 0:Ve.result,showFlash:!0,connected:!1,flashName:"from file",downloadLink:Ae}}),console.log("Done")}catch(me){I(_e=>({..._e,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.failedToCommunicate")+` ${me}`,connected:!1,actionInProgress:!1,error:!0})),console.error(me),alert(me),await ge.close();return}},$e.readAsArrayBuffer(ve),I(Ee=>({...Ee,actionInProgress:!1})),ye.target.value=""},N=async()=>{let ye=null,ve=null,$e="";ve=new Uint8Array(1024);const Ee=await A(e("tonieboxes.esp32BoxFlashing.esp32flasher.connectingReadFlash"));if(Ee===null||E.connected)return;I(me=>({...me,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.connectingTo")+` ${Ee.getInfo()}`,chipMac:"",chipType:"",flashId:"",flashManuf:"",flashDevice:"",flashSize:"",showFlash:!1,connected:!0,actionInProgress:!0,error:!1}));try{const me=new Tv(Ee);ye=new bI({transport:me,baudrate:_,romBaudrate:$})}catch(me){I(_e=>({..._e,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.failedToConnect")+` ${me}`,connected:!1,actionInProgress:!1,error:!0})),alert(me),await Ee.close();return}try{I(Oe=>({...Oe,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.connectingToESP")})),await ye.main(),I(Oe=>({...Oe,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.connected")})),$e=await ye.chip.readMac(ye),I(Oe=>({...Oe,chipMac:$e})),console.log("Chip MAC: "+$e);const me=await ye.chip.getChipDescription(ye);I(Oe=>({...Oe,chipType:me}));let _e=await ye.readFlashId();I(Oe=>({...Oe,flashId:""+_e,flashManuf:""+(_e&255),flashDevice:""+(_e>>8&255)}));let Ze=await ye.getFlashSize();if(I(Oe=>({...Oe,flashSize:""+Ze})),Ze<0||Ze>16384){I(Oe=>({...Oe,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.flashSizeError"),connected:!1,actionInProgress:!1,error:!0})),await Ee.close();return}I(Oe=>({...Oe,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.readingFlash"),showProgress:!0,progress:0})),ve=await ye.readFlash(0,Ze*1024,(Oe,Se,Ae)=>{const Fe=100*Se/Ae;I(Ve=>({...Ve,progress:Fe}))}),await Ee.close(),I(Oe=>({...Oe,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.readingFinished"),progress:100,originalFlash:ve,connected:!1}))}catch(me){I(_e=>({..._e,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.failedToCommunicate")+` ${me}`,connected:!1,actionInProgress:!1,error:!0})),console.error(me),alert(me),await Ee.close();return}const ge=`ESP32_${$e.replace(/:/g,"")}`,Ne=new Blob([ve],{type:"application/octet-stream"}),Re=URL.createObjectURL(Ne);I(me=>({...me,downloadLink:Re,showProgress:!1})),await k(ve,ge),console.log("Done")},k=async(ye,ve)=>{try{I(ge=>({...ge,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.uploading"),error:!1}));const $e=new FormData;$e.append(ve,new Blob([ye.buffer]),ve);const Ee=await xu.apiPostTeddyCloudFormDataRaw("/api/esp32/uploadFirmware",$e);if(Ee.ok&&Ee.status===200){const ge=await Ee.text();I(Ne=>({...Ne,showDownload:!0,filename:ge,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.uploadSuccessful")+` ${ge}`+e("tonieboxes.esp32BoxFlashing.esp32flasher.readyToProceed"),proceed:!0,actionInProgress:!1}))}else I(ge=>({...ge,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.uploadFailed"),actionInProgress:!1,error:!0}))}catch($e){console.error("There was an error when uploading!",$e),I(Ee=>({...Ee,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.uploadFailed"),actionInProgress:!1,error:!0}))}},M=async()=>{if(E.wifi_ssid&&!E.wifi_pass||!E.wifi_ssid&&E.wifi_pass){I(ve=>({...ve,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.wifiCredentialsIncomplete"),showStatus:!0,warningTextWifi:e("tonieboxes.esp32BoxFlashing.esp32flasher.wifiCredentialsIncomplete"),error:!0}));return}I(ve=>({...ve,actionInProgress:!0})),I(ve=>({...ve,showProgress:!1,showFlash:!1,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.patchingFlashImage"),error:!1}));const ye=await xu.apiGetTeddyCloudApiRaw(`/api/esp32/patchFirmware?filename=${E.filename}&hostname=${encodeURIComponent(E.hostname)}`+(E.wifi_ssid&&E.wifi_pass?`&wifi_ssid=${encodeURIComponent(E.wifi_ssid)}&wifi_pass=${encodeURIComponent(E.wifi_pass)}`:""));if(I(ve=>({...ve,showProgress:!1,showFlash:!1,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.patchingFlashImage")})),ye.ok&&ye.status===200){const ve=await ye.arrayBuffer();I(ge=>({...ge,patchedFlash:ve,showFlash:!0,flashName:"patched"}));const $e=new Blob([ve],{type:"application/octet-stream"}),Ee=URL.createObjectURL($e);I(ge=>({...ge,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.patchingSuccessful",{size:(ve.byteLength/1024/1024).toFixed(0)}),downloadLinkPatched:Ee})),be()}else I(ve=>({...ve,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.patchingFailed"),error:!0}));I(ve=>({...ve,actionInProgress:!1}))},L=async()=>{const ye=await A(e("tonieboxes.esp32BoxFlashing.esp32flasher.connectingWriteFlash"));if(ye===null||E.connected)return;I($e=>({...$e,actionInProgress:!0,error:!1})),I($e=>({...$e,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.connectingTo")+` ${ye.getInfo()}`,connected:!0}));let ve=null;try{const $e=new Tv(ye);ve=new bI({transport:$e,baudrate:_,romBaudrate:$})}catch($e){I(Ee=>({...Ee,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.failedToConnect")+` ${$e}`,connected:!1,actionInProgress:!1,error:!0})),alert($e),await ye.close();return}try{I(_e=>({..._e,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.connectingToESP")})),await ve.main(),I(_e=>({..._e,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.connected"),progress:0,showProgress:!0}));let $e=await ve.chip.readMac(ve);I(_e=>({..._e,chipMac:$e})),console.log("Chip MAC: "+$e);const Ee=await ve.chip.getChipDescription(ve);I(_e=>({..._e,chipType:Ee}));let ge=await ve.readFlashId();I(_e=>({..._e,flashId:""+ge,flashManuf:""+(ge&255),flashDevice:""+(ge>>8&255)}));let Ne=await ve.getFlashSize();if(I(_e=>({..._e,flashSize:""+Ne})),Ne<0||Ne>16384){I(_e=>({..._e,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.flashSizeError"),connected:!1,actionInProgress:!1,error:!0})),await ye.close();return}I(_e=>({..._e,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.preparingFlash",{size:(E.patchedFlash.byteLength/1024/1024).toFixed(0)})}));let Re=[];Re.push({data:P(E.patchedFlash),address:0});let me={fileArray:Re,flashSize:"keep",flashMode:"keep",flashFreq:"keep",eraseAll:!1,compress:!0,reportProgress:(_e,Ze,Oe)=>{const Se=100*Ze/Oe;I(Ae=>({...Ae,progress:Se}))}};I(_e=>({..._e,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.writingFlash",{size:(E.patchedFlash.byteLength/1024/1024).toFixed(0)})})),await ve.writeFlash(me),await ye.close(),I(_e=>({..._e,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.writingFinished"),connected:!1,actionInProgress:!1,proceed:!0}))}catch($e){I(Ee=>({...Ee,state:e("tonieboxes.esp32BoxFlashing.esp32flasher.failedToCommunicate")+` ${$e}`,connected:!1,actionInProgress:!1,error:!0})),console.error($e),alert($e),await ye.close();return}},F=async ye=>{const ve=Ye.loading(e("tonieboxes.esp32BoxFlashing.esp32flasher.extractingCertificates"),0);ye&&g(!1);try{const $e=await xu.apiPostTeddyCloudRaw(`/api/esp32/extractCerts?filename=${E.filename}`+(ye?"&overwrite=true":""));if($e.ok&&$e.status===200)ve(),Ye.success(e("tonieboxes.esp32BoxFlashing.esp32flasher.extractingCertificatesSuccessful",{file:E.filename}));else if(!$e.ok&&$e.status===409){ve();const Ee=await $e.text();Ye.error(e("tonieboxes.esp32BoxFlashing.esp32flasher.extractingCertificatesFailed",{file:E.filename})+": "+Ee),S(Ee),g(!0)}else ve(),Ye.error(e("tonieboxes.esp32BoxFlashing.esp32flasher.extractingCertificatesFailed",{file:E.filename})+": "+await $e.text())}catch($e){ve(),Ye.error(e("tonieboxes.esp32BoxFlashing.esp32flasher.extractingCertificatesFailed",{file:E.filename})+": "+$e)}},j=[{title:e("tonieboxes.esp32BoxFlashing.esp32flasher.titleReadESP32ImportFlash")},{title:e("tonieboxes.esp32BoxFlashing.esp32flasher.titlePatchFlash")},{title:e("tonieboxes.esp32BoxFlashing.esp32flasher.titleFlashESP32")},{title:e("tonieboxes.esp32BoxFlashing.esp32flasher.titleESP32FirmwareFlashed")}],B=m.jsx(m.Fragment,{children:E.showProgress&&m.jsx("div",{children:m.jsx("div",{children:m.jsx(sy,{percent:E.progress||0,format:ye=>`${(ye??0).toFixed(2)}%`})})})}),z=m.jsx(m.Fragment,{children:(E.chipType||E.chipMac)&&m.jsxs("div",{children:[m.jsx(Rr,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.infoTable")}),m.jsx("table",{className:"info-table",children:m.jsxs("tbody",{children:[E.chipType&&m.jsxs("tr",{children:[m.jsx("td",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.chipType")}),m.jsx("td",{children:E.chipType})]}),E.chipMac&&m.jsxs("tr",{children:[m.jsx("td",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.chipMAC")}),m.jsx("td",{children:E.chipMac})]}),E.flashId&&m.jsxs("tr",{children:[m.jsx("td",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.flashId")}),m.jsxs("td",{children:["0x",E.flashId.toString()]})]}),E.flashManuf&&m.jsxs("tr",{children:[m.jsx("td",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.flashManuf")}),m.jsxs("td",{children:["0x",E.flashManuf.toString()]})]}),E.flashDevice&&m.jsxs("tr",{children:[m.jsx("td",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.flashDevice")}),m.jsxs("td",{children:["0x",E.flashDevice.toString()]})]}),E.flashSize&&m.jsxs("tr",{children:[m.jsx("td",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.flashSize")}),m.jsxs("td",{children:[E.flashSize," KiB"]})]})]})})]})}),H=ye=>ye.replace(/[^a-zA-Z0-9-.]/g,"").trim(),V=ye=>{if(ye.endsWith("...")){const ve=ye.slice(0,-3);return m.jsxs("div",{style:{display:"flex"},children:[ve,m.jsx(FUe,{})]})}return ye},te=E.showStatus&&m.jsx("div",{className:"status",style:{marginBottom:16,color:E.error?"#CC3010":"unset"},children:m.jsx("i",{children:V(E.state)})}),Y=m.jsxs(m.Fragment,{children:[m.jsx("h3",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.titleReadESP32ImportFlash")}),!E.actionInProgress&&m.jsxs(m.Fragment,{children:[m.jsx(An,{type:"warning",closeIcon:!0,showIcon:!0,message:e("tonieboxes.hintLatestFirmwareTitle"),description:e("tonieboxes.hintLatestFirmware")}),m.jsx(nr,{style:{marginTop:16},children:e("tonieboxes.esp32BoxFlashing.esp32flasher.hintReadESP32ImportFlash")}),m.jsx(yl,{size:"small",style:{marginBottom:16},items:[{key:"1",label:e("tonieboxes.esp32BoxFlashing.esp32flasher.connectESPCollapseTitle"),children:m.jsx(m.Fragment,{children:wZ()})}]})]}),te,m.jsx("input",{type:"file",style:{display:"none"},ref:r,onChange:O}),B]}),J=m.jsxs(m.Fragment,{children:[m.jsx("h3",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.titlePatchFlash")}),m.jsxs("div",{children:[!E.actionInProgress&&m.jsx(nr,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.hintPatchFlash")}),te,!E.actionInProgress&&E.downloadLink?m.jsxs("div",{style:{marginBottom:16},children:[" ",m.jsx("a",{href:E.downloadLink,download:E.filename,title:E.filename,children:e("tonieboxes.esp32BoxFlashing.esp32flasher.downloadLink")})]}):"",m.jsxs(qt,{children:[m.jsx(Rr,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.hostnameSettings")}),m.jsx(nr,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.hintPatchHost")}),m.jsxs(qt.Item,{children:[m.jsxs(Na,{align:"middle",style:{display:"flex",alignItems:"center"},children:[m.jsx(En,{style:{flex:"0 0 200px",color:E.warningTextHostname?"#CC3010":"unset"},children:m.jsx("label",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.hostname")})}),m.jsx(En,{style:{flex:"1 1 auto"},children:m.jsx(Jt,{type:"text",value:E.hostname,onChange:ye=>{let ve=H(ye.target.value),$e="";ve.length>12?$e=e("tonieboxes.esp32BoxFlashing.esp32flasher.hostnameTooLong"):$e="",I(Ee=>({...Ee,hostname:ve,warningTextHostname:$e}))}})})]}),E.warningTextHostname&&m.jsx("p",{style:{color:"#CC3010"},children:e("tonieboxes.esp32BoxFlashing.esp32flasher.hostnameTooLong")})]}),m.jsx(Rr,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.wifiSettings")}),m.jsx(nr,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.hintPatchWifi")}),m.jsx(qt.Item,{children:m.jsxs(Na,{align:"middle",style:{display:"flex",alignItems:"center"},children:[m.jsx(En,{style:{flex:"0 0 200px",color:E.warningTextWifi?"#CC3010":"unset"},children:m.jsx("label",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.wifiSSID")})}),m.jsx(En,{style:{flex:"1 1 auto"},children:m.jsx(Jt,{type:"text",defaultValue:E.wifi_ssid,onChange:ye=>{let ve=ye.target.value;I($e=>({...$e,wifi_ssid:ve,warningTextWifi:ye.target.value&&E.wifi_pass||!ye.target.value&&!E.wifi_pass?"":e("tonieboxes.esp32BoxFlashing.esp32flasher.wifiCredentialsIncomplete")}))}})})]})}),m.jsxs(qt.Item,{children:[m.jsxs(Na,{align:"middle",style:{display:"flex",alignItems:"center"},children:[m.jsx(En,{style:{flex:"0 0 200px",color:E.warningTextWifi?"#CC3010":"unset"},children:m.jsx("label",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.wifiPassword")})}),m.jsx(En,{style:{flex:"1 1 auto"},children:m.jsx(Jt.Password,{defaultValue:E.wifi_pass,onChange:ye=>{let ve=ye.target.value;I($e=>({...$e,wifi_pass:ve,warningTextWifi:ye.target.value&&E.wifi_ssid||!ye.target.value&&!E.wifi_ssid?"":e("tonieboxes.esp32BoxFlashing.esp32flasher.wifiCredentialsIncomplete")}))}})})]}),E.warningTextWifi&&m.jsx("p",{style:{color:"#CC3010"},children:e("tonieboxes.esp32BoxFlashing.esp32flasher.wifiCredentialsIncomplete")})]})]})]}),B]}),G=m.jsxs(m.Fragment,{children:[m.jsx("h3",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.titleFlashESP32")}),!E.actionInProgress&&m.jsx(nr,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.hintFlashESP32")}),te,!E.actionInProgress&&E.downloadLinkPatched?m.jsxs("div",{style:{marginBottom:16},children:[" ",m.jsx("a",{href:E.downloadLinkPatched,download:"patched_"+E.filename,title:"patched_"+E.filename,children:e("tonieboxes.esp32BoxFlashing.esp32flasher.downloadLinkPatched")})]}):"",B]}),U=`${h}/${E.chipMac?E.chipMac.replaceAll(":","").toLowerCase():""}`,q=m.jsxs(m.Fragment,{children:[m.jsx("h3",{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.titleESP32FirmwareFlashed")}),m.jsx(nr,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.hintESP32FirmwareFlashed")}),te,B,(E.downloadLink||E.downloadLinkPatched)&&m.jsxs(m.Fragment,{children:[m.jsx(An,{type:"info",style:{marginTop:16},showIcon:!0,message:e("tonieboxes.esp32BoxFlashing.esp32flasher.extractCertificates"),description:m.jsxs("div",{children:[m.jsxs(bn,{children:[m.jsx(Rr,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.automatically")}),m.jsx(nr,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.extractCertificatesAutomaticallyHint")}),m.jsx(ct,{icon:m.jsx(nN,{}),disabled:c,type:"primary",onClick:()=>Ie(),style:{marginBottom:8},children:e("tonieboxes.esp32BoxFlashing.esp32flasher.extractCertificates")}),m.jsx(nr,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.extractCertificatesAutomaticallyHint2",{certDir:h,mac:E.chipMac.replaceAll(":","").toLocaleLowerCase()})})]}),m.jsx(Rr,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.manually")}),m.jsx(bn,{style:{marginBottom:8},children:e("tonieboxes.esp32BoxFlashing.esp32flasher.extractCertificatesManuallyHint")}),m.jsx(bn,{children:m.jsx(yl,{size:"small",items:[{key:"1",label:e("tonieboxes.esp32BoxFlashing.esp32flasher.extractCertificatesManually"),children:m.jsxs(bn,{children:[m.jsxs(nr,{children:[e("tonieboxes.esp32BoxFlashing.esp32flasher.extractCertificatesManuallyHintP1")," ",m.jsx(UUe,{code:!0,children:"docker exec -it bash"}),"."]}),m.jsx(nr,{children:m.jsx("pre",{style:{fontSize:12},children:`# Please check the filename of your backup # Be sure you are in the TeddyCloud directory # cd /teddycloud/ # just for docker -mkdir ${G} -teddycloud --esp32-extract data/firmware/`+(w.filename?w.filename:"ESP32_.bin")+` --destination ${G}`})}),m.jsx(sr,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.extractCertificatesManuallyHintP2")}),m.jsx(sr,{children:m.jsx("pre",{style:{fontSize:12},children:`mv ${G}/CLIENT.DER ${G}/client.der -mv ${G}/PRIVATE.DER ${g}/${G}/private.der -mv ${G}/CA.DER ${g}/${G}/ca.der`})}),m.jsx(sr,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.extractCertificatesManuallyHintP3")}),m.jsx(sr,{children:m.jsx("pre",{style:{fontSize:12},children:`cp ${G}/client.der ${g}/client.der -cp ${G}/private.der ${g}/private.der -cp ${G}/ca.der ${g}/ca.der`})})]})}]})})]})}),m.jsxs(sr,{style:{marginTop:16},children:[e("tonieboxes.esp32BoxFlashing.esp32flasher.downloadFlashFilesHint"),m.jsxs("ul",{style:{marginTop:8},children:[w.downloadLink&&m.jsx("li",{children:m.jsx("a",{href:w.downloadLink,download:w.filename,title:w.filename,children:e("tonieboxes.esp32BoxFlashing.esp32flasher.downloadLink")})}),w.downloadLinkPatched&&m.jsx("li",{children:m.jsx("a",{href:w.downloadLinkPatched,download:"patched_"+w.filename,title:"patched_"+w.filename,children:e("tonieboxes.esp32BoxFlashing.esp32flasher.downloadLinkPatched")})})]})]})]})]}),[q,X]=l.useState([te,Y,J,U]),Q=(Ce,me)=>{X(we=>{const _e=[...we];return _e[Ce]=me,_e})},ee=()=>{O()},oe=()=>{n.current&&n.current.click()},le=()=>{k()},fe=()=>{M()},ce=()=>{L()},Te=()=>{E(Ce=>({...Ce,proceed:!1})),v(S+1)},Se=()=>{E(Ce=>({...Ce,state:"",showProgress:!1,error:!1})),v(S-1)},ve=()=>{d(!1),fe()},ae=()=>{d(!1)},ie=m.jsx(ut,{icon:m.jsx(Ts,{}),disabled:s,onClick:()=>Se(),children:e("tonieboxes.esp32BoxFlashing.esp32flasher.previous")}),ue=()=>{ye()},ye=()=>{C(!0)},Ee=()=>{C(!1)},Me=m.jsx(Yy,{boxVersion:"ESP32",isOpen:x,onClose:Ee}),Ie=I?m.jsxs(m.Fragment,{children:[m.jsx(Rr,{children:e("tonieboxes.esp32BoxFlashing.title")}),m.jsx(Ad,{title:e("tonieboxes.esp32BoxFlashing.esp32flasher.confirmFlashModal"),open:u,okText:e("tonieboxes.esp32BoxFlashing.esp32flasher.flash"),cancelText:e("tonieboxes.esp32BoxFlashing.esp32flasher.cancel"),content:e("tonieboxes.esp32BoxFlashing.esp32flasher.confirmFlashDialog"),contentHint:e("tonieboxes.esp32BoxFlashing.esp32flasher.confirmFlashDialogHint"),handleOk:ve,handleCancel:ae}),m.jsx(Ns,{current:S,children:F.map((Ce,me)=>m.jsx(VUe,{title:Ce.title,status:me===S&&me===F.length-1?"finish":me===S?w.error?"error":"process":meoe(),children:e("tonieboxes.esp32BoxFlashing.esp32flasher.loadFile")}),m.jsx(ut,{icon:m.jsx(QO,{}),disabled:s,type:"primary",onClick:()=>ee(),children:e("tonieboxes.esp32BoxFlashing.esp32flasher.readFlash")})]}),m.jsx(ut,{icon:m.jsx(Za,{}),iconPosition:"end",disabled:!w.proceed&&!w.filename||s,onClick:()=>Te(),children:e("tonieboxes.esp32BoxFlashing.esp32flasher.next")})]}),S===1&&m.jsxs("div",{style:{display:"flex",justifyContent:"space-between",flexWrap:"wrap",gap:8},children:[ie,m.jsx("div",{style:{display:"flex",gap:8},children:m.jsx(ut,{icon:m.jsx(XO,{}),disabled:s,type:"primary",onClick:()=>le(),children:e("tonieboxes.esp32BoxFlashing.esp32flasher.patchImage")})}),m.jsx(ut,{icon:m.jsx(Za,{}),iconPosition:"end",disabled:s||!w.showFlash,onClick:()=>Te(),children:e("tonieboxes.esp32BoxFlashing.esp32flasher.next")})]}),S===2&&m.jsxs("div",{style:{display:"flex",justifyContent:"space-between",flexWrap:"wrap",gap:8},children:[ie,m.jsx("div",{style:{display:"flex",gap:8},children:m.jsx(ut,{icon:m.jsx(tEe,{}),disabled:s,type:"primary",onClick:()=>d(!0),children:e("tonieboxes.esp32BoxFlashing.esp32flasher.flashEsp32")})}),m.jsx("div",{})]}),S===3&&m.jsxs("div",{style:{display:"flex",justifyContent:"space-between",flexWrap:"wrap",gap:8},children:[ie,m.jsx("div",{children:m.jsx(ut,{icon:m.jsx(Sl,{}),type:"primary",onClick:ue,children:e("tonieboxes.esp32BoxFlashing.legacy.checkBoxes")})}),m.jsx("div",{})]}),B]})]}):m.jsxs(m.Fragment,{children:[m.jsx(sr,{children:m.jsx(An,{message:e("tonieboxes.esp32BoxFlashing.attention"),description:e("tonieboxes.esp32BoxFlashing.browserNotSupported"),type:"warning",showIcon:!0})}),m.jsxs(sr,{style:{marginTop:16},children:[m.jsxs(sr,{children:[" ",e("tonieboxes.esp32BoxFlashing.hintLegacyApproach")]}),m.jsx(sr,{children:m.jsx(ut,{children:m.jsx(gt,{to:"/tonieboxes/boxsetup/esp32/legacy",children:e("tonieboxes.esp32BoxFlashing.legacy.navigationTitle")})})})]})]});return m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(Ca,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(Ca,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")},{title:e("tonieboxes.navigationTitle")},{title:e("tonieboxes.esp32BoxFlashing.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsx("h1",{children:e("tonieboxes.esp32BoxFlashing.title")}),r?Ie:m.jsxs(m.Fragment,{children:[m.jsx(An,{message:e("tonieboxes.esp32BoxFlashing.attention"),description:m.jsxs(m.Fragment,{children:[m.jsx(sr,{children:e("tonieboxes.esp32BoxFlashing.hint")}),m.jsx(sr,{children:m.jsx(ut,{icon:m.jsx(fq,{}),onClick:P,children:e("tonieboxes.esp32BoxFlashing.redirect")})})]}),type:"warning",showIcon:!0}),m.jsxs(sr,{style:{marginTop:16},children:[m.jsxs(sr,{children:[" ",e("tonieboxes.esp32BoxFlashing.legacy.followLegacyApproach")]}),m.jsx(sr,{children:m.jsx(ut,{children:m.jsx(gt,{to:"/tonieboxes/boxsetup/esp32/legacy",children:e("tonieboxes.esp32BoxFlashing.legacy.navigationTitle")})})})]})]}),m.jsx(Ad,{title:e("tonieboxes.esp32BoxFlashing.esp32flasher.extractingCertificates409ResponseForceOverwrite"),okText:e("tonieboxes.esp32BoxFlashing.esp32flasher.extractingCertificates409ResponseForceOverwriteConfirmButton"),cancelText:e("tonieboxes.esp32BoxFlashing.esp32flasher.cancel"),content:e("tonieboxes.esp32BoxFlashing.esp32flasher.extractingCertificates409ResponseForceOverwriteContent",{error:b}),open:f,handleOk:()=>L(!0),handleCancel:()=>p(!1)}),Me]})]})]})},{Paragraph:GUe}=bn,qUe=()=>{const{t:e}=Nt();return m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(El,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(El,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")},{title:e("home.tonieMeeting.navigationTitle")}]}),m.jsx(Dn,{children:m.jsx(GUe,{children:m.jsx(pk,{maxNoOfGuests:500,toniesSize:150,showQuestionMark:!1})})})]})]})},{Paragraph:QB}=bn,KUe=()=>{const{t:e}=Nt(),t=e("faq",{returnObjects:!0});return m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(Ja,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(Ja,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")},{title:e("community.navigationTitle")},{title:e("community.faq.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsx("h1",{children:e("community.faq.title")}),m.jsx(QB,{children:e("community.faq.intro")}),m.jsx(QB,{children:t.map((n,r)=>m.jsxs("div",{style:{marginBottom:"20px"},children:[m.jsx("h3",{children:n.question}),m.jsx("p",{children:n.answer})]},r))})]})]})]})},yI=new xn(pn()),YUe=()=>{const{t:e}=Nt(),[t,n]=l.useState(""),[r,a]=l.useState(""),[o,i]=l.useState("");l.useEffect(()=>{yI.apiGetTeddyCloudSettingRaw("internal.version.v_long").then(d=>d.text()).then(d=>n(d)).catch(d=>console.error("Error fetching data:",d)),yI.apiGetTeddyCloudSettingRaw("internal.version.id").then(d=>d.text()).then(d=>a(d)).catch(d=>console.error("Error fetching data:",d)),yI.apiGetTeddyCloudSettingRaw("internal.version.git_sha_short").then(d=>d.text()).then(d=>i(d)).catch(d=>console.error("Error fetching data:",d))},[]);const s=(d,f)=>m.jsx("ul",{children:Object.keys(d).map(p=>{const g=d[p],h=`${f}.${p}`;return typeof g=="object"&&g.items?m.jsxs("li",{children:[e(`${h}.title`),s(g.items,h+".items")]},p):m.jsx("li",{children:e(h)},p)})}),c=e("home.features.features",{returnObjects:!0}),u=e("home.features.futureFeatures",{returnObjects:!0});return m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(El,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(El,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")},{title:e("home.features.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsx("h1",{children:e("home.features.title")+" "+r}),m.jsx("p",{children:e("home.features.description")}),m.jsxs("p",{children:["Build:"," ",m.jsx(gt,{to:"https://github.com/toniebox-reverse-engineering/teddycloud/tree/"+o,target:"_blank",children:t.replace(r,"")})]}),m.jsx("h2",{children:e("home.features.currentlyImplementedFeatures")}),s(c,"home.features.features"),m.jsx("h2",{children:e("home.features.yetToCome")}),s(u,"home.features.futureFeatures")]})]})]})},XUe="/web/assets/cc3235_flash-D2YMWv70.jpg",ZUe="/web/assets/cc3235_smd_grippers-MdbEjaZo.jpg",{Paragraph:Ba}=bn,{Step:QUe}=Ns,JUe=()=>{const{t:e}=Nt(),t=kr.language,[n,r]=l.useState(0),[a,o]=l.useState(!1),i=[{title:e("tonieboxes.boxFlashingCommon.preparations")},{title:e("tonieboxes.boxFlashingCommon.certificates")},{title:e("tonieboxes.boxFlashingCommon.dns")}],s=m.jsxs(m.Fragment,{children:[m.jsx("h3",{children:e("tonieboxes.boxFlashingCommon.preparations")}),m.jsx(An,{type:"warning",closeIcon:!0,showIcon:!0,message:e("tonieboxes.hintLatestFirmwareTitle"),description:e("tonieboxes.hintLatestFirmware"),style:{marginBottom:16}}),m.jsxs(Ba,{children:[e("tonieboxes.cc3235BoxFlashing.preparationText")," ",m.jsx(gt,{to:"https://support.tonies.com/hc/en-us/articles/4415294030482-How-do-I-set-up-a-Wi-Fi-connection-without-the-setup-assistant",target:"_blank",children:e("tonieboxes.cc3235BoxFlashing.preparationTextLink")})]}),m.jsx("h4",{children:e("tonieboxes.cc3235BoxFlashing.installCC3200tool")}),m.jsx(gt,{to:"https://github.com/toniebox-reverse-engineering/cc3200tool?tab=readme-ov-file#installation",target:"_blank",children:e("tonieboxes.cc3235BoxFlashing.installCC3200toolLink")}),m.jsx("h4",{children:e("tonieboxes.cc3235BoxFlashing.installSerprogFirmware")}),m.jsx(Ba,{children:m.jsx(gt,{to:"https://github.com/stacksmashing/pico-serprog",target:"_blank",children:e("tonieboxes.cc3235BoxFlashing.serprogFirmwareLink")})})]}),c=m.jsxs(m.Fragment,{children:[m.jsx("h3",{children:e("tonieboxes.boxFlashingCommon.certificates")}),Ok(),m.jsx("h4",{children:"CC3235"}),m.jsx(Ba,{children:e("tonieboxes.cc3235BoxFlashing.dumpCertificatesCC3235")}),m.jsx(yl,{size:"small",style:{marginBottom:16},items:[{key:"1",label:e("tonieboxes.cc3235BoxFlashing.flashCollapse.collapseTitle"),children:m.jsx(m.Fragment,{children:m.jsx(Ba,{style:{display:"flex",alignItems:"flex-start",justifyContent:"center"},children:m.jsxs(Oa.PreviewGroup,{children:[m.jsxs("div",{style:{display:"inline-block",margin:"0 20px"},children:[m.jsx(Oa,{src:XUe,height:200,alt:e("tonieboxes.cc3235BoxFlashing.flashCollapse.cc3235flash")}),m.jsx("p",{style:{marginTop:8},children:e("tonieboxes.cc3235BoxFlashing.flashCollapse.cc3235flash")})]}),m.jsxs("div",{style:{maxWidth:200,display:"inline-block",margin:"0 20px"},children:[m.jsx(Oa,{src:ZUe,height:200,alt:e("tonieboxes.cc3235BoxFlashing.flashCollapse.cc3235flashWithSMDGrippers")}),m.jsx("p",{style:{marginTop:8},children:e("tonieboxes.cc3235BoxFlashing.flashCollapse.cc3235flashWithSMDGrippers")})]})]})})})}]}),m.jsx("h5",{children:e("tonieboxes.cc3235BoxFlashing.readingFlashPico")}),m.jsx(Ba,{children:e("tonieboxes.cc3235BoxFlashing.readingFlashPicoText1")}),m.jsx(Ba,{children:m.jsx(ba,{language:"shell",code:"flashrom -p serprog:dev=/dev/ttyACM0:921600 -r cc32xx-flash.bin --progress"})}),m.jsx(Ba,{children:e("tonieboxes.cc3235BoxFlashing.readingFlashPicoText2")}),m.jsx(Ba,{children:m.jsx(ba,{language:"shell",code:"flashrom -p serprog:dev=/dev/ttyACM0:921600 -r cc32xx-flash.2.bin --progress diff cc32xx-flash.bin cc32xx-flash.2.bin #no output = equal"})}),m.jsx("h5",{children:e("tonieboxes.cc3235BoxFlashing.extractCertificates")}),m.jsx(Ba,{children:e("tonieboxes.cc3235BoxFlashing.useCC3200ToolToExtract")}),m.jsx(Ba,{children:m.jsx(ba,{language:"shell",code:"cc3200tool -if cc32xx-flash.bin -d cc32xx read_all_files extract/"})}),m.jsx("h4",{children:e("tonieboxes.cc3235BoxFlashing.flashCAreplacement")}),m.jsx(Ba,{children:e("tonieboxes.cc3235BoxFlashing.flashCAreplacementText1")}),m.jsx(Ba,{children:m.jsx(ba,{language:"shell",code:`cc3200tool -if cc32xx-flash.bin -of cc32xx-flash.customca.bin -d cc32xx write_file customca.der /cert/ca.der -flashrom -p serprog:dev=/dev/ttyACM0:921600 -w cc32xx-flash.bin --progress`})}),m.jsx(Ba,{children:e("tonieboxes.cc3235BoxFlashing.flashCAreplacementText2")})]}),u=m.jsxs(m.Fragment,{children:[m.jsx("h3",{children:e("tonieboxes.boxFlashingCommon.dns")}),CZ()]}),[d,f]=l.useState([s,c,u]),p=(w,E)=>{f(I=>{const T=[...I];return T[w]=E,T})};l.useEffect(()=>{p(n,(()=>{switch(n){case 0:return s;case 1:return c;case 2:return u;default:return m.jsx("div",{})}})())},[n,t,vs()]);const g=()=>{r(n-1)},h=()=>{r(n+1)},b=m.jsx(ut,{icon:m.jsx(Ts,{}),onClick:()=>g(),children:e("tonieboxes.cc3235BoxFlashing.previous")}),y=w=>{r(w)},S=()=>{v()},v=()=>{o(!0)},x=()=>{o(!1)},C=m.jsx(Yy,{boxVersion:"CC3235",isOpen:a,onClose:x});return m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(Ca,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(Ca,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")},{title:e("tonieboxes.navigationTitle")},{title:e("tonieboxes.cc3235BoxFlashing.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsx("h1",{children:e("tonieboxes.cc3235BoxFlashing.title")}),m.jsx(Rr,{children:e("tonieboxes.cc3235BoxFlashing.title")}),m.jsxs(Ba,{style:{marginTop:16},children:[m.jsx(Ns,{current:n,onChange:y,children:i.map((w,E)=>m.jsx(QUe,{title:w.title,status:E===n&&E===i.length?"finish":E===n?"process":E{const{t:e}=Nt(),t=kr.language,[n,r]=l.useState(0),[a,o]=l.useState(""),[i,s]=l.useState(""),[c,u]=l.useState(!1),d=j=>j.replace(/[^a-zA-Z0-9-.]/g,"").trim(),f=[{title:e("tonieboxes.boxFlashingCommon.preparations")},{title:e("tonieboxes.cc3200BoxFlashing.bootloader")},{title:e("tonieboxes.boxFlashingCommon.certificates")},{title:e("tonieboxes.cc3200BoxFlashing.patches")},{title:e("tonieboxes.cc3200BoxFlashing.applyingPatches")}],p=m.jsxs(m.Fragment,{children:[m.jsx("h3",{children:e("tonieboxes.boxFlashingCommon.preparations")}),m.jsx(An,{type:"warning",closeIcon:!0,showIcon:!0,message:e("tonieboxes.hintLatestFirmwareTitle"),description:e("tonieboxes.hintLatestFirmware"),style:{marginBottom:16}}),m.jsxs(Qo,{children:[e("tonieboxes.cc3235BoxFlashing.preparationText")," ",m.jsx(gt,{to:"https://support.tonies.com/hc/en-us/articles/4415294030482-How-do-I-set-up-a-Wi-Fi-connection-without-the-setup-assistant",target:"_blank",children:e("tonieboxes.cc3235BoxFlashing.preparationTextLink")})]}),m.jsx("h4",{children:e("tonieboxes.cc3200BoxFlashing.installCC3200tool")}),m.jsx(gt,{to:"https://github.com/toniebox-reverse-engineering/cc3200tool?tab=readme-ov-file#installation",target:"_blank",children:e("tonieboxes.cc3200BoxFlashing.installCC3200toolLink")}),m.jsx("h4",{children:e("tonieboxes.cc3200BoxFlashing.connectToToniebox")}),m.jsx(gt,{to:"https://tonies-wiki.revvox.de/docs/wiki/cc3200/debug-port/",target:"_blank",children:e("tonieboxes.cc3200BoxFlashing.connectToTonieboxLink")})]}),g=m.jsxs(m.Fragment,{children:[m.jsx("h3",{children:e("tonieboxes.cc3200BoxFlashing.bootloader")}),m.jsx("h4",{children:e("tonieboxes.cc3200BoxFlashing.installBootloader")}),m.jsx(gt,{to:"https://tonies-wiki.revvox.de/docs/custom-firmware/cc3200/hackieboxng-bl/install/",target:"_blank",children:e("tonieboxes.cc3200BoxFlashing.installBootloaderLink")})]}),h=m.jsxs(m.Fragment,{children:[m.jsx("h3",{children:e("tonieboxes.boxFlashingCommon.certificates")}),Ok(),m.jsx(gt,{to:"https://tonies-wiki.revvox.de/docs/tools/teddycloud/setup/dump-certs/cc3200/",target:"_blank",children:e("tonieboxes.cc3200BoxFlashing.dumpCertificatesLink")}),m.jsx("h4",{children:e("tonieboxes.cc3200BoxFlashing.flashCAreplacement")}),m.jsx(gt,{to:"https://tonies-wiki.revvox.de/docs/tools/teddycloud/setup/flash-ca/cc3200/",target:"_blank",children:e("tonieboxes.cc3200BoxFlashing.flashCAreplacementLink")})]}),b=m.jsxs(m.Fragment,{children:[m.jsx("h3",{children:e("tonieboxes.cc3200BoxFlashing.patches")}),m.jsx(gt,{to:"https://tonies-wiki.revvox.de/docs/custom-firmware/cc3200/hackieboxng-bl/ofw-patches/",target:"_blank",children:e("tonieboxes.cc3200BoxFlashing.patchesMoreInformationLink")}),m.jsx("h4",{children:e("tonieboxes.cc3200BoxFlashing.customUrlPatch")}),m.jsx(An,{description:e("tonieboxes.cc3200BoxFlashing.customUrlPatchHint"),type:"warning",style:{marginBottom:8}}),m.jsxs(qt,{children:[m.jsx(Qo,{children:e("tonieboxes.cc3200BoxFlashing.hintPatchHost")}),m.jsxs(qt.Item,{children:[m.jsxs($a,{align:"middle",style:{display:"flex",alignItems:"center"},children:[m.jsx(En,{style:{flex:"0 0 200px",color:i?"#CC3010":"unset"},children:m.jsx("label",{children:e("tonieboxes.cc3200BoxFlashing.hostname")})}),m.jsx(En,{style:{flex:"1 1 auto"},children:m.jsx(Jt,{type:"text",value:a,onChange:j=>{let B=d(j.target.value),z="";B.length>12?z=e("tonieboxes.cc3200BoxFlashing.hostnameTooLong"):z="",o(B),s(z)}})})]}),i&&m.jsx("p",{style:{color:"#CC3010"},children:i})]})]})]}),y=[{key:"1",keyName:"activeImg",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.activeImgDesc"),values:"ofw1, ofw2, ofw3, cfw1, cfw2, cfw3, add1, add2, add3",defaultValue:"ofw1"},{key:"2",keyName:"waitForPress",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.waitForPressDesc"),values:"true, false",defaultValue:"false"},{key:"3",keyName:"waitForBoot",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.waitForBootDesc"),values:"true, false",defaultValue:"false"},{key:"4",keyName:"waitTimeoutInS",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.waitTimeoutInSDesc"),values:"1-255",defaultValue:"60"},{key:"5",keyName:"minBatteryLevel",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.minBatteryLevelDesc"),values:"",defaultValue:"8869"},{key:"6",keyName:"ofwFixValue",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.ofwFixValueDesc"),values:"hex array with 4 bytes",defaultValue:'["4C", "01", "10", "00"]'},{key:"7",keyName:"ofwFixFlash",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.ofwFixFlashDesc"),values:"ex. /sys/pre-img.bin",defaultValue:""},{key:"8",keyName:"serialLog",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.serialLogDesc"),values:"true, false",defaultValue:"true"},{key:"9",keyName:"logLevel",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.logLevelDesc"),values:"0-5",defaultValue:"DEBUG_LOG_LEVEL"},{key:"10",keyName:"logColor",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.logColorDesc"),values:"true, false",defaultValue:"false"}],S=[{title:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.key"),dataIndex:"keyName",key:"keyName",width:120},{title:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.description"),dataIndex:"description",key:"description"},{title:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.values"),dataIndex:"values",key:"values"},{title:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.default"),dataIndex:"defaultValue",key:"defaultValue"}],v=[{key:"1",keyName:"checkHash",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.checkHashDesc"),values:"true, false",defaultValue:"true"},{key:"2",keyName:"hashFile",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.hashFileDesc"),values:"true, false",defaultValue:"false"},{key:"3",keyName:"watchdog",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.watchdogDesc"),values:"true, false",defaultValue:"false"},{key:"4",keyName:"ofwFix",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.ofwFixDesc"),values:"true, false",defaultValue:"false"},{key:"5",keyName:"ofwSimBL",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.ofwSimBLDesc"),values:"true, false",defaultValue:"false"},{key:"6",keyName:"bootFlashImg",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.bootFlashImgDesc"),values:"true, false",defaultValue:"false"},{key:"7",keyName:"flashImg",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.flashImgDesc"),values:"ex. /sys/pre-img.bin",defaultValue:""},{key:"8",keyName:"patches",description:m.jsxs(m.Fragment,{children:[e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.patchesDesc")," ",m.jsx(gt,{to:"https://github.com/toniebox-reverse-engineering/hackiebox_cfw_ng/tree/master/sd-bootloader-ng/bootmanager/sd/revvox/boot/patch",children:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.patchDirectory")}),", ",m.jsx(gt,{to:"https://tonies-wiki.revvox.de/docs/custom-firmware/cc3200/hackieboxng-bl/ofw-patches/",children:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.patchWiki")})]}),values:'["noCerts.305", "noPass3.305"]',defaultValue:"[]"}],x={general:{activeImg:"ofw2",_descWaitForPress:"Waits for an earpress on startup",waitForPress:!1,_descWaitForBoot:"Waits for an earpress before firmware boot",waitForBoot:!1,waitTimeoutInS:60,_descMinBatteryLevel:"Divide through 2785 to get voltage",minBatteryLevel:8869,ofwFixFlash:"/sys/pre-img.bin",_descSerialLog:"Logging only works with the debug build!",serialLog:!1,_descLogLevel:"0:Trace - 5:Fatal",logLevel:0,_descLogColor:"Use colors in log output",logColor:!1},ofw1:{checkHash:!1,hashFile:!1,watchdog:!0,bootFlashImg:!0,flashImg:"/sys/pre-img.bin"},ofw2:{checkHash:!0,hashFile:!1,watchdog:!0,ofwFix:!0,ofwSimBL:!0,patches:["altCa.305","altUrl.custom.305"]},ofw3:{checkHash:!0,hashFile:!1,watchdog:!0,ofwFix:!0,patches:["altCa.305","altUrl.tc.fritz.box"]},cfw1:{checkHash:!1,hashFile:!1,watchdog:!0},cfw2:{checkHash:!1,hashFile:!1,watchdog:!0},cfw3:{checkHash:!1,hashFile:!1,watchdog:!0},add1:{checkHash:!0,hashFile:!1,watchdog:!0,ofwFix:!0,ofwSimBL:!1,patches:["blockCheck.310","noCerts.305","noPass3.310","noPrivacy.305","uidCheck.307"]},add2:{checkHash:!0,hashFile:!1,watchdog:!0,ofwFix:!0,ofwSimBL:!1,patches:["altCa.305","altUrl.305"]},add3:{checkHash:!0,hashFile:!1,watchdog:!0,ofwFix:!0,ofwSimBL:!1,patches:["altCa.305","altUrl.305"]}},C=m.jsxs(m.Fragment,{children:[m.jsx("h3",{children:e("tonieboxes.cc3200BoxFlashing.applyingPatches")}),m.jsx("h4",{children:e("tonieboxes.cc3200BoxFlashing.applyingPatchesWithNgCfgJson")}),m.jsx(Qo,{children:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.introduction")}),m.jsx(yl,{size:"small",items:[{key:"1",label:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.collapseTitle"),children:m.jsxs(Qo,{children:[m.jsx("h5",{children:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.title")}),m.jsxs(Qo,{children:[e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.section1_part1")," ",m.jsx(gt,{to:"https://github.com/toniebox-reverse-engineering/hackiebox_cfw_ng/blob/master/sd-bootloader-ng/bootmanager/sd/revvox/boot/ngCfg.json",target:"_blank",children:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.section1_link")}),e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.section1_part2")]}),m.jsx(Qo,{children:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.section1_part3")}),m.jsx("h5",{children:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.generalSection")}),m.jsx(Qa,{dataSource:y,columns:S,pagination:!1,size:"small"}),m.jsx("h5",{children:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.firmwareSection")}),e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.firmwareSectionIntro"),m.jsx(Qa,{dataSource:v,columns:S,pagination:!1,size:"small"})]})}],style:{marginBottom:16}}),m.jsx(Qo,{children:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.section2_part1")}),m.jsx(Qo,{children:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.section2_part2")}),m.jsx(yl,{size:"small",items:[{key:"1",label:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.examplengCFGJsonCollapse.collapseTitle"),children:m.jsx(Qo,{children:m.jsx(ba,{language:"shell",code:JSON.stringify(x,null,2)})})}],style:{marginBottom:16}}),m.jsx(Qo,{style:{marginTop:16},children:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.finish")})]}),[w,E]=l.useState([p,g,h,b,C]),I=(j,B)=>{E(z=>{const H=[...z];return H[j]=B,H})};l.useEffect(()=>{I(n,(()=>{switch(n){case 0:return p;case 1:return g;case 2:return h;case 3:return b;case 4:return C;default:return m.jsx("div",{})}})())},[n,a,t,vs()]);const T=()=>{r(n-1)},R=()=>{r(n+1)},_=m.jsx(ut,{icon:m.jsx(Ts,{}),onClick:()=>T(),children:e("tonieboxes.cc3200BoxFlashing.previous")}),$=j=>{r(j)},P=()=>{D()},D=()=>{u(!0)},A=()=>{u(!1)},O=m.jsx(Yy,{boxVersion:"CC3200",isOpen:c,onClose:A}),N={general:{_desc:"Changes Boxine URLs to custom ones.",_memPos:"",_fwVer:"3.0.5+"},searchAndReplace:[{_desc:"prod.de.tbs.toys to ",search:["70","72","6f","64","2e","64","65","2e","74","62","73","2e","74","6f","79","73","00"],replace:["70","72","6f","64","2e","72","65","76","76","6f","78","00","??","??","??","??","??"]},{_desc:"rtnl.bxcl.de to ",search:["72","74","6e","6c","2e","62","78","63","6c","2e","64","65","00"],replace:["72","74","6e","6c","2e","72","65","76","76","6f","78","00","??"]}]},k=(j,B)=>{const z=j.split("").map(J=>J.charCodeAt(0).toString(16).padStart(2,"0"));z.push("00");const H=z.length,te=B-H;return te>0?z.concat(Array.from({length:te},()=>"??")):z},M=j=>({...N,searchAndReplace:(z=>z.map(H=>{const V=k(j,H.replace.length);return{...H,_desc:`${H._desc}${j}`,replace:V}}))(N.searchAndReplace)}),L=j=>`{ +mkdir ${U} +teddycloud --esp32-extract data/firmware/`+(E.filename?E.filename:"ESP32_.bin")+` --destination ${U}`})}),m.jsx(nr,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.extractCertificatesManuallyHintP2")}),m.jsx(nr,{children:m.jsx("pre",{style:{fontSize:12},children:`mv ${U}/CLIENT.DER ${U}/client.der +mv ${U}/PRIVATE.DER ${h}/${U}/private.der +mv ${U}/CA.DER ${h}/${U}/ca.der`})}),m.jsx(nr,{children:e("tonieboxes.esp32BoxFlashing.esp32flasher.extractCertificatesManuallyHintP3")}),m.jsx(nr,{children:m.jsx("pre",{style:{fontSize:12},children:`cp ${U}/client.der ${h}/client.der +cp ${U}/private.der ${h}/private.der +cp ${U}/ca.der ${h}/ca.der`})})]})}]})})]})}),m.jsxs(nr,{style:{marginTop:16},children:[e("tonieboxes.esp32BoxFlashing.esp32flasher.downloadFlashFilesHint"),m.jsxs("ul",{style:{marginTop:8},children:[E.downloadLink&&m.jsx("li",{children:m.jsx("a",{href:E.downloadLink,download:E.filename,title:E.filename,children:e("tonieboxes.esp32BoxFlashing.esp32flasher.downloadLink")})}),E.downloadLinkPatched&&m.jsx("li",{children:m.jsx("a",{href:E.downloadLinkPatched,download:"patched_"+E.filename,title:"patched_"+E.filename,children:e("tonieboxes.esp32BoxFlashing.esp32flasher.downloadLinkPatched")})})]})]})]})]}),[X,Q]=l.useState([Y,J,G,q]),ee=(ye,ve)=>{Q($e=>{const Ee=[...$e];return Ee[ye]=ve,Ee})},oe=()=>{N()},le=()=>{r.current&&r.current.click()},fe=()=>{M()},ce=()=>{L()},Ie=()=>{F()},be=()=>{I(ye=>({...ye,proceed:!1})),x(v+1)},he=()=>{I(ye=>({...ye,state:"",showProgress:!1,error:!1})),x(v-1)},ae=()=>{f(!1),ce()},ie=()=>{f(!1)},ue=m.jsx(ct,{icon:m.jsx(Rs,{}),disabled:c,onClick:()=>he(),children:e("tonieboxes.esp32BoxFlashing.esp32flasher.previous")}),xe=()=>{we()},we=()=>{C(!0)},Me=()=>{C(!1)},Ce=m.jsx(Xy,{boxVersion:"ESP32",isOpen:w,onClose:Me}),De=T?m.jsxs(m.Fragment,{children:[m.jsx(Rr,{children:e("tonieboxes.esp32BoxFlashing.title")}),m.jsx(Ad,{title:e("tonieboxes.esp32BoxFlashing.esp32flasher.confirmFlashModal"),open:d,okText:e("tonieboxes.esp32BoxFlashing.esp32flasher.flash"),cancelText:e("tonieboxes.esp32BoxFlashing.esp32flasher.cancel"),content:e("tonieboxes.esp32BoxFlashing.esp32flasher.confirmFlashDialog"),contentHint:e("tonieboxes.esp32BoxFlashing.esp32flasher.confirmFlashDialogHint"),handleOk:ae,handleCancel:ie}),m.jsx(ks,{current:v,children:j.map((ye,ve)=>m.jsx(VUe,{title:ye.title,status:ve===v&&ve===j.length-1?"finish":ve===v?E.error?"error":"process":vet("/tonieboxes/boxsetup/esp32/legacy"),children:e("tonieboxes.esp32BoxFlashing.legacy.navigationTitle")})})}),m.jsxs("div",{style:{display:"flex",gap:8},children:[m.jsx(ct,{icon:m.jsx(Fxe,{}),disabled:c,onClick:()=>le(),children:e("tonieboxes.esp32BoxFlashing.esp32flasher.loadFile")}),m.jsx(ct,{icon:m.jsx(JO,{}),disabled:c,type:"primary",onClick:()=>oe(),children:e("tonieboxes.esp32BoxFlashing.esp32flasher.readFlash")})]}),m.jsx(ct,{icon:m.jsx(Qa,{}),iconPosition:"end",disabled:!E.proceed&&!E.filename||c,onClick:()=>be(),children:e("tonieboxes.esp32BoxFlashing.esp32flasher.next")})]}),v===1&&m.jsxs("div",{style:{display:"flex",justifyContent:"space-between",flexWrap:"wrap",gap:8},children:[ue,m.jsx("div",{style:{display:"flex",gap:8},children:m.jsx(ct,{icon:m.jsx(ZO,{}),disabled:c,type:"primary",onClick:()=>fe(),children:e("tonieboxes.esp32BoxFlashing.esp32flasher.patchImage")})}),m.jsx(ct,{icon:m.jsx(Qa,{}),iconPosition:"end",disabled:c||!E.showFlash,onClick:()=>be(),children:e("tonieboxes.esp32BoxFlashing.esp32flasher.next")})]}),v===2&&m.jsxs("div",{style:{display:"flex",justifyContent:"space-between",flexWrap:"wrap",gap:8},children:[ue,m.jsx("div",{style:{display:"flex",gap:8},children:m.jsx(ct,{icon:m.jsx(tEe,{}),disabled:c,type:"primary",onClick:()=>f(!0),children:e("tonieboxes.esp32BoxFlashing.esp32flasher.flashEsp32")})}),m.jsx("div",{})]}),v===3&&m.jsxs("div",{style:{display:"flex",justifyContent:"space-between",flexWrap:"wrap",gap:8},children:[ue,m.jsx("div",{children:m.jsx(ct,{icon:m.jsx(Sl,{}),type:"primary",onClick:xe,children:e("tonieboxes.esp32BoxFlashing.legacy.checkBoxes")})}),m.jsx("div",{})]}),z]})]}):m.jsxs(m.Fragment,{children:[m.jsx(nr,{children:m.jsx(An,{message:e("tonieboxes.esp32BoxFlashing.attention"),description:e("tonieboxes.esp32BoxFlashing.browserNotSupported"),type:"warning",showIcon:!0})}),m.jsxs(nr,{style:{marginTop:16},children:[m.jsxs(nr,{children:[" ",e("tonieboxes.esp32BoxFlashing.hintLegacyApproach")]}),m.jsx(nr,{children:m.jsx(ct,{onClick:()=>t("/tonieboxes/boxsetup/esp32/legacy"),children:e("tonieboxes.esp32BoxFlashing.legacy.navigationTitle")})})]})]});return m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(Ia,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(Ia,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")},{title:e("tonieboxes.navigationTitle")},{title:e("tonieboxes.esp32BoxFlashing.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsx("h1",{children:e("tonieboxes.esp32BoxFlashing.title")}),a?De:m.jsxs(m.Fragment,{children:[m.jsx(An,{message:e("tonieboxes.esp32BoxFlashing.attention"),description:m.jsxs(m.Fragment,{children:[m.jsx(nr,{children:e("tonieboxes.esp32BoxFlashing.hint")}),m.jsx(nr,{children:m.jsx(ct,{icon:m.jsx(fq,{}),onClick:D,children:e("tonieboxes.esp32BoxFlashing.redirect")})})]}),type:"warning",showIcon:!0}),m.jsxs(nr,{style:{marginTop:16},children:[m.jsxs(nr,{children:[" ",e("tonieboxes.esp32BoxFlashing.legacy.followLegacyApproach")]}),m.jsx(nr,{children:m.jsx(ct,{onClick:()=>t("/tonieboxes/boxsetup/esp32/legacy"),children:e("tonieboxes.esp32BoxFlashing.legacy.navigationTitle")})})]})]}),m.jsx(Ad,{title:e("tonieboxes.esp32BoxFlashing.esp32flasher.extractingCertificates409ResponseForceOverwrite"),okText:e("tonieboxes.esp32BoxFlashing.esp32flasher.extractingCertificates409ResponseForceOverwriteConfirmButton"),cancelText:e("tonieboxes.esp32BoxFlashing.esp32flasher.cancel"),content:e("tonieboxes.esp32BoxFlashing.esp32flasher.extractingCertificates409ResponseForceOverwriteContent",{error:y}),open:p,handleOk:()=>F(!0),handleCancel:()=>g(!1)}),Ce]})]})]})},{Paragraph:GUe}=bn,qUe=()=>{const{t:e}=Nt();return m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(El,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(El,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")},{title:e("home.tonieMeeting.navigationTitle")}]}),m.jsx(Dn,{children:m.jsx(GUe,{children:m.jsx(pk,{maxNoOfGuests:500,toniesSize:150,showQuestionMark:!1})})})]})]})},{Paragraph:QB}=bn,KUe=()=>{const{t:e}=Nt(),t=e("faq",{returnObjects:!0});return m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(eo,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(eo,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")},{title:e("community.navigationTitle")},{title:e("community.faq.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsx("h1",{children:e("community.faq.title")}),m.jsx(QB,{children:e("community.faq.intro")}),m.jsx(QB,{children:t.map((n,r)=>m.jsxs("div",{style:{marginBottom:"20px"},children:[m.jsx("h3",{children:n.question}),m.jsx("p",{children:n.answer})]},r))})]})]})]})},SI=new xn(pn()),YUe=()=>{const{t:e}=Nt(),[t,n]=l.useState(""),[r,a]=l.useState(""),[o,i]=l.useState("");l.useEffect(()=>{SI.apiGetTeddyCloudSettingRaw("internal.version.v_long").then(d=>d.text()).then(d=>n(d)).catch(d=>console.error("Error fetching data:",d)),SI.apiGetTeddyCloudSettingRaw("internal.version.id").then(d=>d.text()).then(d=>a(d)).catch(d=>console.error("Error fetching data:",d)),SI.apiGetTeddyCloudSettingRaw("internal.version.git_sha_short").then(d=>d.text()).then(d=>i(d)).catch(d=>console.error("Error fetching data:",d))},[]);const s=(d,f)=>m.jsx("ul",{children:Object.keys(d).map(p=>{const g=d[p],h=`${f}.${p}`;return typeof g=="object"&&g.items?m.jsxs("li",{children:[e(`${h}.title`),s(g.items,h+".items")]},p):m.jsx("li",{children:e(h)},p)})}),c=e("home.features.features",{returnObjects:!0}),u=e("home.features.futureFeatures",{returnObjects:!0});return m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(El,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(El,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")},{title:e("home.features.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsx("h1",{children:e("home.features.title")+" "+r}),m.jsx("p",{children:e("home.features.description")}),m.jsxs("p",{children:["Build:"," ",m.jsx(yt,{to:"https://github.com/toniebox-reverse-engineering/teddycloud/tree/"+o,target:"_blank",children:t.replace(r,"")})]}),m.jsx("h2",{children:e("home.features.currentlyImplementedFeatures")}),s(c,"home.features.features"),m.jsx("h2",{children:e("home.features.yetToCome")}),s(u,"home.features.futureFeatures")]})]})]})},XUe="/web/assets/cc3235_flash-D2YMWv70.jpg",ZUe="/web/assets/cc3235_smd_grippers-MdbEjaZo.jpg",{Paragraph:za}=bn,{Step:QUe}=ks,JUe=()=>{const{t:e}=Nt(),t=kr.language,[n,r]=l.useState(0),[a,o]=l.useState(!1),i=[{title:e("tonieboxes.boxFlashingCommon.preparations")},{title:e("tonieboxes.boxFlashingCommon.certificates")},{title:e("tonieboxes.boxFlashingCommon.dns")}],s=m.jsxs(m.Fragment,{children:[m.jsx("h3",{children:e("tonieboxes.boxFlashingCommon.preparations")}),m.jsx(An,{type:"warning",closeIcon:!0,showIcon:!0,message:e("tonieboxes.hintLatestFirmwareTitle"),description:e("tonieboxes.hintLatestFirmware"),style:{marginBottom:16}}),m.jsxs(za,{children:[e("tonieboxes.cc3235BoxFlashing.preparationText")," ",m.jsx(yt,{to:"https://support.tonies.com/hc/en-us/articles/4415294030482-How-do-I-set-up-a-Wi-Fi-connection-without-the-setup-assistant",target:"_blank",children:e("tonieboxes.cc3235BoxFlashing.preparationTextLink")})]}),m.jsx("h4",{children:e("tonieboxes.cc3235BoxFlashing.installCC3200tool")}),m.jsx(yt,{to:"https://github.com/toniebox-reverse-engineering/cc3200tool?tab=readme-ov-file#installation",target:"_blank",children:e("tonieboxes.cc3235BoxFlashing.installCC3200toolLink")}),m.jsx("h4",{children:e("tonieboxes.cc3235BoxFlashing.installSerprogFirmware")}),m.jsx(za,{children:m.jsx(yt,{to:"https://github.com/stacksmashing/pico-serprog",target:"_blank",children:e("tonieboxes.cc3235BoxFlashing.serprogFirmwareLink")})})]}),c=m.jsxs(m.Fragment,{children:[m.jsx("h3",{children:e("tonieboxes.boxFlashingCommon.certificates")}),Ok(),m.jsx("h4",{children:"CC3235"}),m.jsx(za,{children:e("tonieboxes.cc3235BoxFlashing.dumpCertificatesCC3235")}),m.jsx(yl,{size:"small",style:{marginBottom:16},items:[{key:"1",label:e("tonieboxes.cc3235BoxFlashing.flashCollapse.collapseTitle"),children:m.jsx(m.Fragment,{children:m.jsx(za,{style:{display:"flex",alignItems:"flex-start",justifyContent:"center",flexWrap:"wrap",gap:16},children:m.jsxs(qr.PreviewGroup,{children:[m.jsxs("div",{style:{maxWidth:200},children:[m.jsx(qr,{src:XUe,style:{height:200,width:"auto"},alt:e("tonieboxes.cc3235BoxFlashing.flashCollapse.cc3235flash")}),m.jsx("p",{style:{marginTop:8},children:e("tonieboxes.cc3235BoxFlashing.flashCollapse.cc3235flash")})]}),m.jsxs("div",{style:{maxWidth:200},children:[m.jsx(qr,{src:ZUe,style:{height:200,width:"auto"},alt:e("tonieboxes.cc3235BoxFlashing.flashCollapse.cc3235flashWithSMDGrippers")}),m.jsx("p",{style:{marginTop:8},children:e("tonieboxes.cc3235BoxFlashing.flashCollapse.cc3235flashWithSMDGrippers")})]})]})})})}]}),m.jsx("h5",{children:e("tonieboxes.cc3235BoxFlashing.readingFlashPico")}),m.jsx(za,{children:e("tonieboxes.cc3235BoxFlashing.readingFlashPicoText1")}),m.jsx(za,{children:m.jsx(Sa,{language:"shell",code:"flashrom -p serprog:dev=/dev/ttyACM0:921600 -r cc32xx-flash.bin --progress"})}),m.jsx(za,{children:e("tonieboxes.cc3235BoxFlashing.readingFlashPicoText2")}),m.jsx(za,{children:m.jsx(Sa,{language:"shell",code:"flashrom -p serprog:dev=/dev/ttyACM0:921600 -r cc32xx-flash.2.bin --progress diff cc32xx-flash.bin cc32xx-flash.2.bin #no output = equal"})}),m.jsx("h5",{children:e("tonieboxes.cc3235BoxFlashing.extractCertificates")}),m.jsx(za,{children:e("tonieboxes.cc3235BoxFlashing.useCC3200ToolToExtract")}),m.jsx(za,{children:m.jsx(Sa,{language:"shell",code:"cc3200tool -if cc32xx-flash.bin -d cc32xx read_all_files extract/"})}),m.jsx("h4",{children:e("tonieboxes.cc3235BoxFlashing.flashCAreplacement")}),m.jsx(za,{children:e("tonieboxes.cc3235BoxFlashing.flashCAreplacementText1")}),m.jsx(za,{children:m.jsx(Sa,{language:"shell",code:`cc3200tool -if cc32xx-flash.bin -of cc32xx-flash.customca.bin -d cc32xx write_file customca.der /cert/ca.der +flashrom -p serprog:dev=/dev/ttyACM0:921600 -w cc32xx-flash.bin --progress`})}),m.jsx(za,{children:e("tonieboxes.cc3235BoxFlashing.flashCAreplacementText2")})]}),u=m.jsxs(m.Fragment,{children:[m.jsx("h3",{children:e("tonieboxes.boxFlashingCommon.dns")}),CZ()]}),[d,f]=l.useState([s,c,u]),p=(C,E)=>{f(I=>{const T=[...I];return T[C]=E,T})};l.useEffect(()=>{p(n,(()=>{switch(n){case 0:return s;case 1:return c;case 2:return u;default:return m.jsx("div",{})}})())},[n,t,bs()]);const g=()=>{r(n-1)},h=()=>{r(n+1)},b=m.jsx(ct,{icon:m.jsx(Rs,{}),onClick:()=>g(),children:e("tonieboxes.cc3235BoxFlashing.previous")}),y=C=>{r(C)},S=()=>{v()},v=()=>{o(!0)},x=()=>{o(!1)},w=m.jsx(Xy,{boxVersion:"CC3235",isOpen:a,onClose:x});return m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(Ia,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(Ia,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")},{title:e("tonieboxes.navigationTitle")},{title:e("tonieboxes.cc3235BoxFlashing.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsx("h1",{children:e("tonieboxes.cc3235BoxFlashing.title")}),m.jsx(Rr,{children:e("tonieboxes.cc3235BoxFlashing.title")}),m.jsxs(za,{style:{marginTop:16},children:[m.jsx(ks,{current:n,onChange:y,children:i.map((C,E)=>m.jsx(QUe,{title:C.title,status:E===n&&E===i.length?"finish":E===n?"process":E{const{t:e}=Nt(),t=kr.language,[n,r]=l.useState(0),[a,o]=l.useState(""),[i,s]=l.useState(""),[c,u]=l.useState(!1),d=j=>j.replace(/[^a-zA-Z0-9-.]/g,"").trim(),f=[{title:e("tonieboxes.boxFlashingCommon.preparations")},{title:e("tonieboxes.cc3200BoxFlashing.bootloader")},{title:e("tonieboxes.boxFlashingCommon.certificates")},{title:e("tonieboxes.cc3200BoxFlashing.patches")},{title:e("tonieboxes.cc3200BoxFlashing.applyingPatches")}],p=m.jsxs(m.Fragment,{children:[m.jsx("h3",{children:e("tonieboxes.boxFlashingCommon.preparations")}),m.jsx(An,{type:"warning",closeIcon:!0,showIcon:!0,message:e("tonieboxes.hintLatestFirmwareTitle"),description:e("tonieboxes.hintLatestFirmware"),style:{marginBottom:16}}),m.jsxs(Jo,{children:[e("tonieboxes.cc3235BoxFlashing.preparationText")," ",m.jsx(yt,{to:"https://support.tonies.com/hc/en-us/articles/4415294030482-How-do-I-set-up-a-Wi-Fi-connection-without-the-setup-assistant",target:"_blank",children:e("tonieboxes.cc3235BoxFlashing.preparationTextLink")})]}),m.jsx("h4",{children:e("tonieboxes.cc3200BoxFlashing.installCC3200tool")}),m.jsx(yt,{to:"https://github.com/toniebox-reverse-engineering/cc3200tool?tab=readme-ov-file#installation",target:"_blank",children:e("tonieboxes.cc3200BoxFlashing.installCC3200toolLink")}),m.jsx("h4",{children:e("tonieboxes.cc3200BoxFlashing.connectToToniebox")}),m.jsx(yt,{to:"https://tonies-wiki.revvox.de/docs/wiki/cc3200/debug-port/",target:"_blank",children:e("tonieboxes.cc3200BoxFlashing.connectToTonieboxLink")})]}),g=m.jsxs(m.Fragment,{children:[m.jsx("h3",{children:e("tonieboxes.cc3200BoxFlashing.bootloader")}),m.jsx("h4",{children:e("tonieboxes.cc3200BoxFlashing.installBootloader")}),m.jsx(yt,{to:"https://tonies-wiki.revvox.de/docs/custom-firmware/cc3200/hackieboxng-bl/install/",target:"_blank",children:e("tonieboxes.cc3200BoxFlashing.installBootloaderLink")})]}),h=m.jsxs(m.Fragment,{children:[m.jsx("h3",{children:e("tonieboxes.boxFlashingCommon.certificates")}),Ok(),m.jsx(yt,{to:"https://tonies-wiki.revvox.de/docs/tools/teddycloud/setup/dump-certs/cc3200/",target:"_blank",children:e("tonieboxes.cc3200BoxFlashing.dumpCertificatesLink")}),m.jsx("h4",{children:e("tonieboxes.cc3200BoxFlashing.flashCAreplacement")}),m.jsx(yt,{to:"https://tonies-wiki.revvox.de/docs/tools/teddycloud/setup/flash-ca/cc3200/",target:"_blank",children:e("tonieboxes.cc3200BoxFlashing.flashCAreplacementLink")})]}),b=m.jsxs(m.Fragment,{children:[m.jsx("h3",{children:e("tonieboxes.cc3200BoxFlashing.patches")}),m.jsx(yt,{to:"https://tonies-wiki.revvox.de/docs/custom-firmware/cc3200/hackieboxng-bl/ofw-patches/",target:"_blank",children:e("tonieboxes.cc3200BoxFlashing.patchesMoreInformationLink")}),m.jsx("h4",{children:e("tonieboxes.cc3200BoxFlashing.customUrlPatch")}),m.jsx(An,{description:e("tonieboxes.cc3200BoxFlashing.customUrlPatchHint"),type:"warning",style:{marginBottom:8}}),m.jsxs(qt,{children:[m.jsx(Jo,{children:e("tonieboxes.cc3200BoxFlashing.hintPatchHost")}),m.jsxs(qt.Item,{children:[m.jsxs(Na,{align:"middle",style:{display:"flex",alignItems:"center"},children:[m.jsx(En,{style:{flex:"0 0 200px",color:i?"#CC3010":"unset"},children:m.jsx("label",{children:e("tonieboxes.cc3200BoxFlashing.hostname")})}),m.jsx(En,{style:{flex:"1 1 auto"},children:m.jsx(Jt,{type:"text",value:a,onChange:j=>{let B=d(j.target.value),z="";B.length>12?z=e("tonieboxes.cc3200BoxFlashing.hostnameTooLong"):z="",o(B),s(z)}})})]}),i&&m.jsx("p",{style:{color:"#CC3010"},children:i})]})]})]}),y=[{key:"1",keyName:"activeImg",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.activeImgDesc"),values:"ofw1, ofw2, ofw3, cfw1, cfw2, cfw3, add1, add2, add3",defaultValue:"ofw1"},{key:"2",keyName:"waitForPress",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.waitForPressDesc"),values:"true, false",defaultValue:"false"},{key:"3",keyName:"waitForBoot",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.waitForBootDesc"),values:"true, false",defaultValue:"false"},{key:"4",keyName:"waitTimeoutInS",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.waitTimeoutInSDesc"),values:"1-255",defaultValue:"60"},{key:"5",keyName:"minBatteryLevel",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.minBatteryLevelDesc"),values:"",defaultValue:"8869"},{key:"6",keyName:"ofwFixValue",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.ofwFixValueDesc"),values:"hex array with 4 bytes",defaultValue:'["4C", "01", "10", "00"]'},{key:"7",keyName:"ofwFixFlash",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.ofwFixFlashDesc"),values:"ex. /sys/pre-img.bin",defaultValue:""},{key:"8",keyName:"serialLog",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.serialLogDesc"),values:"true, false",defaultValue:"true"},{key:"9",keyName:"logLevel",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.logLevelDesc"),values:"0-5",defaultValue:"DEBUG_LOG_LEVEL"},{key:"10",keyName:"logColor",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.logColorDesc"),values:"true, false",defaultValue:"false"}],S=[{title:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.key"),dataIndex:"keyName",key:"keyName",width:120},{title:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.description"),dataIndex:"description",key:"description"},{title:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.values"),dataIndex:"values",key:"values"},{title:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.default"),dataIndex:"defaultValue",key:"defaultValue"}],v=[{key:"1",keyName:"checkHash",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.checkHashDesc"),values:"true, false",defaultValue:"true"},{key:"2",keyName:"hashFile",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.hashFileDesc"),values:"true, false",defaultValue:"false"},{key:"3",keyName:"watchdog",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.watchdogDesc"),values:"true, false",defaultValue:"false"},{key:"4",keyName:"ofwFix",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.ofwFixDesc"),values:"true, false",defaultValue:"false"},{key:"5",keyName:"ofwSimBL",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.ofwSimBLDesc"),values:"true, false",defaultValue:"false"},{key:"6",keyName:"bootFlashImg",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.bootFlashImgDesc"),values:"true, false",defaultValue:"false"},{key:"7",keyName:"flashImg",description:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.flashImgDesc"),values:"ex. /sys/pre-img.bin",defaultValue:""},{key:"8",keyName:"patches",description:m.jsxs(m.Fragment,{children:[e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.patchesDesc")," ",m.jsx(yt,{to:"https://github.com/toniebox-reverse-engineering/hackiebox_cfw_ng/tree/master/sd-bootloader-ng/bootmanager/sd/revvox/boot/patch",children:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.patchDirectory")}),", ",m.jsx(yt,{to:"https://tonies-wiki.revvox.de/docs/custom-firmware/cc3200/hackieboxng-bl/ofw-patches/",children:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.patchWiki")})]}),values:'["noCerts.305", "noPass3.305"]',defaultValue:"[]"}],x={general:{activeImg:"ofw2",_descWaitForPress:"Waits for an earpress on startup",waitForPress:!1,_descWaitForBoot:"Waits for an earpress before firmware boot",waitForBoot:!1,waitTimeoutInS:60,_descMinBatteryLevel:"Divide through 2785 to get voltage",minBatteryLevel:8869,ofwFixFlash:"/sys/pre-img.bin",_descSerialLog:"Logging only works with the debug build!",serialLog:!1,_descLogLevel:"0:Trace - 5:Fatal",logLevel:0,_descLogColor:"Use colors in log output",logColor:!1},ofw1:{checkHash:!1,hashFile:!1,watchdog:!0,bootFlashImg:!0,flashImg:"/sys/pre-img.bin"},ofw2:{checkHash:!0,hashFile:!1,watchdog:!0,ofwFix:!0,ofwSimBL:!0,patches:["altCa.305","altUrl.custom.305"]},ofw3:{checkHash:!0,hashFile:!1,watchdog:!0,ofwFix:!0,patches:["altCa.305","altUrl.tc.fritz.box"]},cfw1:{checkHash:!1,hashFile:!1,watchdog:!0},cfw2:{checkHash:!1,hashFile:!1,watchdog:!0},cfw3:{checkHash:!1,hashFile:!1,watchdog:!0},add1:{checkHash:!0,hashFile:!1,watchdog:!0,ofwFix:!0,ofwSimBL:!1,patches:["blockCheck.310","noCerts.305","noPass3.310","noPrivacy.305","uidCheck.307"]},add2:{checkHash:!0,hashFile:!1,watchdog:!0,ofwFix:!0,ofwSimBL:!1,patches:["altCa.305","altUrl.305"]},add3:{checkHash:!0,hashFile:!1,watchdog:!0,ofwFix:!0,ofwSimBL:!1,patches:["altCa.305","altUrl.305"]}},w=m.jsxs(m.Fragment,{children:[m.jsx("h3",{children:e("tonieboxes.cc3200BoxFlashing.applyingPatches")}),m.jsx("h4",{children:e("tonieboxes.cc3200BoxFlashing.applyingPatchesWithNgCfgJson")}),m.jsx(Jo,{children:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.introduction")}),m.jsx(yl,{size:"small",items:[{key:"1",label:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.collapseTitle"),children:m.jsxs(Jo,{children:[m.jsx("h5",{children:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.title")}),m.jsxs(Jo,{children:[e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.section1_part1")," ",m.jsx(yt,{to:"https://github.com/toniebox-reverse-engineering/hackiebox_cfw_ng/blob/master/sd-bootloader-ng/bootmanager/sd/revvox/boot/ngCfg.json",target:"_blank",children:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.section1_link")}),e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.section1_part2")]}),m.jsx(Jo,{children:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.section1_part3")}),m.jsx("h5",{children:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.generalSection")}),m.jsx(Ja,{dataSource:y,columns:S,pagination:!1,size:"small"}),m.jsx("h5",{children:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.firmwareSection")}),e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.technicalDetailsCollapse.firmwareSectionIntro"),m.jsx(Ja,{dataSource:v,columns:S,pagination:!1,size:"small"})]})}],style:{marginBottom:16}}),m.jsx(Jo,{children:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.section2_part1")}),m.jsx(Jo,{children:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.section2_part2")}),m.jsx(yl,{size:"small",items:[{key:"1",label:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.examplengCFGJsonCollapse.collapseTitle"),children:m.jsx(Jo,{children:m.jsx(Sa,{language:"shell",code:JSON.stringify(x,null,2)})})}],style:{marginBottom:16}}),m.jsx(Jo,{style:{marginTop:16},children:e("tonieboxes.cc3200BoxFlashing.applyingPatchesSection.finish")})]}),[C,E]=l.useState([p,g,h,b,w]),I=(j,B)=>{E(z=>{const H=[...z];return H[j]=B,H})};l.useEffect(()=>{I(n,(()=>{switch(n){case 0:return p;case 1:return g;case 2:return h;case 3:return b;case 4:return w;default:return m.jsx("div",{})}})())},[n,a,t,bs()]);const T=()=>{r(n-1)},R=()=>{r(n+1)},_=m.jsx(ct,{icon:m.jsx(Rs,{}),onClick:()=>T(),children:e("tonieboxes.cc3200BoxFlashing.previous")}),$=j=>{r(j)},P=()=>{D()},D=()=>{u(!0)},A=()=>{u(!1)},O=m.jsx(Xy,{boxVersion:"CC3200",isOpen:c,onClose:A}),N={general:{_desc:"Changes Boxine URLs to custom ones.",_memPos:"",_fwVer:"3.0.5+"},searchAndReplace:[{_desc:"prod.de.tbs.toys to ",search:["70","72","6f","64","2e","64","65","2e","74","62","73","2e","74","6f","79","73","00"],replace:["70","72","6f","64","2e","72","65","76","76","6f","78","00","??","??","??","??","??"]},{_desc:"rtnl.bxcl.de to ",search:["72","74","6e","6c","2e","62","78","63","6c","2e","64","65","00"],replace:["72","74","6e","6c","2e","72","65","76","76","6f","78","00","??"]}]},k=(j,B)=>{const z=j.split("").map(J=>J.charCodeAt(0).toString(16).padStart(2,"0"));z.push("00");const H=z.length,te=B-H;return te>0?z.concat(Array.from({length:te},()=>"??")):z},M=j=>({...N,searchAndReplace:(z=>z.map(H=>{const V=k(j,H.replace.length);return{...H,_desc:`${H._desc}${j}`,replace:V}}))(N.searchAndReplace)}),L=j=>`{ "general": { "_desc": "${j.general._desc}", "_memPos": "${j.general._memPos}", @@ -663,7 +663,7 @@ flashrom -p serprog:dev=/dev/ttyACM0:921600 -w cc32xx-flash.bin --progress`})}), "search": ["${B.search.join('", "')}"], "replace": ["${B.replace.join('", "')}"] }`).join(", ")}] -}`,F=()=>{(B=>{const z=M(B),H=L(z),V=new Blob([H],{type:"application/json"}),te=URL.createObjectURL(V),Y=document.createElement("a");Y.href=te,Y.download="altUrl.custom.305.json",document.body.appendChild(Y),Y.click(),document.body.removeChild(Y)})(a)};return m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(Ca,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(Ca,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")},{title:e("tonieboxes.navigationTitle")},{title:e("tonieboxes.cc3200BoxFlashing.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsx("h1",{children:e("tonieboxes.cc3200BoxFlashing.title")}),m.jsx(Rr,{children:e("tonieboxes.cc3200BoxFlashing.title")}),m.jsxs(Qo,{children:[m.jsx(Ns,{current:n,onChange:$,children:f.map((j,B)=>m.jsx(eVe,{title:j.title,status:B===n&&B===f.length?"finish":B===n?"process":B12||a.length===0,type:"primary",onClick:F,children:e("tonieboxes.cc3200BoxFlashing.createPatch")})}),m.jsx("div",{children:m.jsx(ut,{icon:m.jsx(Za,{}),iconPosition:"end",onClick:()=>R(),children:e("tonieboxes.cc3200BoxFlashing.next")})})]}),n===4&&m.jsxs("div",{style:{display:"flex",justifyContent:"space-between",flexWrap:"wrap",gap:8},children:[_,m.jsx("div",{children:m.jsx(ut,{icon:m.jsx(Sl,{}),type:"primary",onClick:P,children:e("tonieboxes.cc3200BoxFlashing.checkBoxes")})}),m.jsx("div",{})]})]})]}),O]})]})]})},{Paragraph:wu}=bn,{useToken:nVe}=Ea,rVe=new xn(pn()),aVe=()=>{const{t:e}=Nt(),{token:t}=nVe(),[n,r]=l.useState(!0);l.useEffect(()=>{(async()=>{try{const i=await rVe.apiGetNewBoxesAllowed();r(i)}catch(i){Xe.error("Fetching new box allowed: "+i)}})()},[]);const a=[{children:m.jsxs(m.Fragment,{children:[m.jsx("h5",{style:{marginTop:8},children:e("tonieboxes.boxSetup.setupTeddyCloud")}),m.jsx(wu,{children:e("tonieboxes.boxSetup.setupTeddyCloudText")})]}),dot:m.jsx(MR,{}),color:t.colorSuccess,style:{paddingBottom:8}},{children:m.jsxs(m.Fragment,{children:[m.jsx("h5",{style:{marginTop:8},children:e("tonieboxes.boxSetup.identifyTonieboxVersion")}),m.jsx(wu,{children:e("tonieboxes.boxSetup.identifyTonieboxVersionText")}),m.jsx("ul",{children:m.jsx("li",{children:m.jsx(gt,{to:"/tonieboxes/boxsetup/identifyboxversion",children:e("tonieboxes.boxSetup.identifyTonieboxVersion")})})})]}),dot:m.jsx(rm,{}),style:{paddingBottom:8}},{children:m.jsxs(m.Fragment,{children:[m.jsx("h5",{style:{marginTop:8},children:e("tonieboxes.boxSetup.flashBox")}),m.jsx(wu,{children:e("tonieboxes.boxSetup.flashBoxText")}),m.jsxs("ul",{children:[m.jsx("li",{children:m.jsx(gt,{to:"/tonieboxes/boxsetup/esp32/flashing",children:"ESP32"})}),m.jsx("li",{children:m.jsx(gt,{to:"/tonieboxes/boxsetup/cc3200/flashing",children:"CC3200"})}),m.jsx("li",{children:m.jsx(gt,{to:"/tonieboxes/boxsetup/cc3235/flashing",children:"CC3235"})})]})]}),dot:m.jsx(Zf,{}),style:{paddingBottom:8}},{children:m.jsxs(m.Fragment,{children:[m.jsx("h5",{style:{marginTop:8},children:e("tonieboxes.boxSetup.useIt")}),m.jsx(wu,{children:e("tonieboxes.boxSetup.useItText")})]}),dot:m.jsx(ACe,{}),style:{paddingBottom:8}}];return m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(Ca,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(Ca,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")},{title:e("tonieboxes.navigationTitle")},{title:e("tonieboxes.boxSetup.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsx("h1",{children:e("tonieboxes.boxSetup.title")}),!n&&m.jsx(An,{type:"warning",showIcon:!0,message:e("tonieboxes.noNewBoxesAllowed"),description:e("tonieboxes.noNewBoxesAllowedText"),style:{marginBottom:16}}),m.jsx(An,{type:"warning",closeIcon:!0,showIcon:!0,message:e("tonieboxes.hintLatestFirmwareTitle"),description:e("tonieboxes.hintLatestFirmware")}),m.jsxs(wu,{style:{marginTop:16},children:[e("tonieboxes.boxSetup.boxSetupIntro1")," ",m.jsx(gt,{to:"https://forum.revvox.de/",target:"_blank",children:e("tonieboxes.boxSetup.boxSetupIntroForum")})," ",e("tonieboxes.boxSetup.boxSetupIntro2")," ",m.jsx(gt,{to:"https://t.me/toniebox_reverse_engineering",target:"_blank",children:e("tonieboxes.boxSetup.boxSetupIntroTelegram")})," ",e("tonieboxes.boxSetup.boxSetupIntro3")]}),m.jsx(wu,{style:{marginTop:16},children:m.jsx(Zq,{items:a})})," "]})]})]})},oVe="/web/assets/3235_pcb-BE0vs2bl.png",iVe="/web/assets/3200_pcb-Dxz0Vi-z.png",sVe="/web/assets/cc3200-B-jSkbsy.jpg",lVe="/web/assets/cc3235-Cr21bWbC.jpg",cVe="/web/assets/esp32_pcb-CWEYHEzm.png",uVe="/web/assets/esp32-B_b6hCjy.jpg",{Paragraph:Fs}=bn,{useToken:dVe}=Ea,fVe=()=>{const{t:e}=Nt(),{token:t}=dVe(),[n,r]=l.useState(""),[a,o]=l.useState(""),[i,s]=l.useState(null),[c,u]=l.useState(null),d=C=>C.replace(/[^a-zA-Z0-9-:]/g,"").trim(),f=async()=>{s(null),u(null);try{const C=await fetch(`https://api.macvendors.com/${encodeURIComponent(n)}`);if(!C.ok)throw new Error("MAC address not found or invalid");const w=await C.text();s(w)}catch(C){u(C.message)}},[p,g]=l.useState(i!=null&&i.toLowerCase().includes("espressif")?"esp32":"cc3200");l.useEffect(()=>{i!=null&&i.toLowerCase().includes("espressif")?g("esp32"):g("cc3200")},[i]);const h=m.jsxs(m.Fragment,{children:[m.jsx(Fs,{children:e("tonieboxes.boxSetup.identifyVersion.cc3200text")}),m.jsx(Oa,{src:iVe,width:400,style:{maxWidth:window.innerWidth<448?"70%":"100%"},alt:"PCB CC3200"})," ",m.jsx(Oa,{src:sVe,height:300,alt:"Chip CC3200"})]}),b=m.jsxs(m.Fragment,{children:[m.jsx(Fs,{children:e("tonieboxes.boxSetup.identifyVersion.cc3235text")}),m.jsx(Oa,{src:oVe,width:400,style:{maxWidth:window.innerWidth<448?"70%":"100%"},alt:"PCB CC3235"})," ",m.jsx(Oa,{src:lVe,height:300,alt:"Chip CC3235"})]}),y=m.jsxs(m.Fragment,{children:[m.jsx(Fs,{children:e("tonieboxes.boxSetup.identifyVersion.esp32text")}),m.jsx(Oa,{src:cVe,width:400,style:{maxWidth:window.innerWidth<448?"70%":"100%"},alt:"PCB ESP32"})," ",m.jsx(Oa,{src:uVe,height:300,alt:"Chip ESP32"})]}),S=[{key:"cc3200",label:"CC3200",children:h},{key:"cc3235",label:"CC3235",children:b},{key:"esp32",label:"ESP32",children:y}],v=m.jsxs(m.Fragment,{children:[m.jsx(DO,{activeKey:p,onChange:C=>g(C),defaultActiveKey:i!=null&&i.toLowerCase().includes("espressif")?"esp32":"cc3200",items:S.filter(C=>((i==null?void 0:i.toLowerCase().includes("texas"))||!i)&&C.key==="cc3200"||((i==null?void 0:i.toLowerCase().includes("texas"))||!i)&&C.key==="cc3235"||((i==null?void 0:i.toLowerCase().includes("espressif"))||!i)&&C.key==="esp32"),indicator:{size:C=>C-20,align:"center"}}),m.jsxs(Fs,{style:{marginTop:16},children:[e("tonieboxes.boxSetup.identifyVersion.proceedToFlash1")," ",m.jsxs(gt,{to:`../tonieboxes/boxsetup/${p}/flashing`,children:[p.toUpperCase()," ",e("tonieboxes.boxSetup.identifyVersion.proceedToFlashLinkText")]})]})]}),x=()=>{r(""),s(null),o(""),u(null)};return m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(Ca,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(Ca,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")},{title:e("tonieboxes.navigationTitle")},{title:e("tonieboxes.boxSetup.identifyVersion.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsx("h1",{children:e("tonieboxes.boxSetup.identifyVersion.title")}),m.jsxs(qt,{children:[m.jsxs(Fs,{children:[e("tonieboxes.boxSetup.identifyVersion.identifyUsingMac")," "]}),m.jsxs(qt.Item,{children:[m.jsxs($a,{align:"middle",style:{display:"flex",alignItems:"center"},children:[m.jsx(En,{style:{flex:"0 0 250px",color:a?"#CC3010":"unset"},children:m.jsx("label",{children:e("tonieboxes.boxSetup.identifyVersion.mac")})}),m.jsx(En,{style:{flex:"1 1 auto"},children:m.jsx(Jt,{type:"text",value:n,onChange:C=>{let w=d(C.target.value),E="";w.length>17?E=e("tonieboxes.boxSetup.identifyVersion.boxMacTooLong"):E="",r(w),o(E)},addonBefore:m.jsx(Jr,{onClick:x,style:{color:n?t.colorText:t.colorTextDisabled,cursor:n?"pointer":"default"}})})})]}),a&&m.jsx("p",{style:{color:"#CC3010"},children:a})]}),m.jsx(ut,{icon:m.jsx(XO,{}),disabled:n.length>17||n.length===0,type:"primary",onClick:f,children:e("tonieboxes.boxSetup.identifyVersion.identify")}),m.jsxs(Fs,{style:{fontSize:"small",marginTop:16},children:[e("tonieboxes.boxSetup.identifyVersion.macvendors")," ",m.jsx(gt,{to:"https://macvendors.com/",target:"_blank",children:e("tonieboxes.boxSetup.identifyVersion.macvendorsLink")})]})]}),i?m.jsxs(m.Fragment,{children:[m.jsx(An,{style:{marginTop:16},type:"success",description:m.jsxs(m.Fragment,{children:[e("tonieboxes.boxSetup.identifyVersion.vendor"),": ",m.jsx("b",{children:i})," ",e("tonieboxes.boxSetup.identifyVersion.boxVersion"),i.includes("Espressif")?m.jsx("b",{children:" ESP32"}):m.jsxs(m.Fragment,{children:[m.jsx("b",{children:" CC3200"})," ",e("tonieboxes.boxSetup.identifyVersion.or"),m.jsx("b",{children:" CC3235"})]})," ",e("tonieboxes.boxSetup.identifyVersion.version"),"."]})}),i.toLowerCase().includes("texas")?m.jsx(Fs,{style:{marginTop:16},children:e("tonieboxes.boxSetup.identifyVersion.tiInstruction")}):""]}):c?m.jsx(An,{style:{marginTop:16},type:"error",description:m.jsx(m.Fragment,{children:e("tonieboxes.boxSetup.identifyVersion.errorMac")})}):"",m.jsxs(Fs,{style:{marginTop:16},children:[i?"":m.jsxs(m.Fragment,{children:[e("tonieboxes.boxSetup.identifyVersion.generalInstruction1")," ",m.jsx(Zt,{title:e("tonieboxes.boxSetup.openBoxGuide.linkTooltip"),children:m.jsx(gt,{to:"/tonieboxes/boxsetup/openboxguide",children:e("tonieboxes.boxSetup.identifyVersion.generalInstructionLinkText")})})," ",e("tonieboxes.boxSetup.identifyVersion.generalInstruction2")]}),v]})]})]})]})},pVe="/web/assets/esp32_write_patched_image_with_esptools-DmsBlrjp.png",{Paragraph:Ti}=bn,{Step:gVe}=Ns,mVe=()=>{const{t:e}=Nt(),t=kr.language,[n,r]=l.useState(0),[a,o]=l.useState(!1),i=[{title:e("tonieboxes.boxFlashingCommon.preparations")},{title:e("tonieboxes.boxFlashingCommon.certificates")},{title:e("tonieboxes.boxFlashingCommon.dns")}],s=m.jsxs(m.Fragment,{children:[m.jsx("h3",{children:e("tonieboxes.boxFlashingCommon.preparations")}),m.jsx(An,{type:"warning",closeIcon:!0,showIcon:!0,message:e("tonieboxes.hintLatestFirmwareTitle"),description:e("tonieboxes.hintLatestFirmware"),style:{marginBottom:16}}),m.jsxs(Ti,{children:[e("tonieboxes.esp32BoxFlashing.legacy.preparationText")," ",m.jsx(gt,{to:"https://support.tonies.com/hc/en-us/articles/4415294030482-How-do-I-set-up-a-Wi-Fi-connection-without-the-setup-assistant",target:"_blank",children:e("tonieboxes.esp32BoxFlashing.legacy.preparationTextLink")})]}),m.jsx("h4",{children:e("tonieboxes.esp32BoxFlashing.legacy.installESPTool")}),m.jsx(Ti,{children:e("tonieboxes.esp32BoxFlashing.legacy.installESPToolText")}),m.jsx(Ti,{children:m.jsx(gt,{to:"https://github.com/espressif/esptool",target:"_blank",children:e("tonieboxes.esp32BoxFlashing.legacy.installESPToolLink")})}),m.jsx("h4",{children:e("tonieboxes.esp32BoxFlashing.legacy.connectESP32")}),wZ()]}),c=m.jsxs(m.Fragment,{children:[m.jsx("h3",{children:e("tonieboxes.boxFlashingCommon.certificates")}),Ok(),m.jsx(Ti,{children:m.jsx(ba,{language:"shell",code:`# extract firmware +}`,F=()=>{(B=>{const z=M(B),H=L(z),V=new Blob([H],{type:"application/json"}),te=URL.createObjectURL(V),Y=document.createElement("a");Y.href=te,Y.download="altUrl.custom.305.json",document.body.appendChild(Y),Y.click(),document.body.removeChild(Y)})(a)};return m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(Ia,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(Ia,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")},{title:e("tonieboxes.navigationTitle")},{title:e("tonieboxes.cc3200BoxFlashing.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsx("h1",{children:e("tonieboxes.cc3200BoxFlashing.title")}),m.jsx(Rr,{children:e("tonieboxes.cc3200BoxFlashing.title")}),m.jsxs(Jo,{children:[m.jsx(ks,{current:n,onChange:$,children:f.map((j,B)=>m.jsx(eVe,{title:j.title,status:B===n&&B===f.length?"finish":B===n?"process":B12||a.length===0,type:"primary",onClick:F,children:e("tonieboxes.cc3200BoxFlashing.createPatch")})}),m.jsx("div",{children:m.jsx(ct,{icon:m.jsx(Qa,{}),iconPosition:"end",onClick:()=>R(),children:e("tonieboxes.cc3200BoxFlashing.next")})})]}),n===4&&m.jsxs("div",{style:{display:"flex",justifyContent:"space-between",flexWrap:"wrap",gap:8},children:[_,m.jsx("div",{children:m.jsx(ct,{icon:m.jsx(Sl,{}),type:"primary",onClick:P,children:e("tonieboxes.cc3200BoxFlashing.checkBoxes")})}),m.jsx("div",{})]})]})]}),O]})]})]})},{Paragraph:wu}=bn,{useToken:nVe}=Ta,rVe=new xn(pn()),aVe=()=>{const{t:e}=Nt(),{token:t}=nVe(),[n,r]=l.useState(!0);l.useEffect(()=>{(async()=>{try{const i=await rVe.apiGetNewBoxesAllowed();r(i)}catch(i){Ye.error("Fetching new box allowed: "+i)}})()},[]);const a=[{children:m.jsxs(m.Fragment,{children:[m.jsx("h5",{style:{marginTop:8},children:e("tonieboxes.boxSetup.setupTeddyCloud")}),m.jsx(wu,{children:e("tonieboxes.boxSetup.setupTeddyCloudText")})]}),dot:m.jsx(PR,{}),color:t.colorSuccess,style:{paddingBottom:8}},{children:m.jsxs(m.Fragment,{children:[m.jsx("h5",{style:{marginTop:8},children:e("tonieboxes.boxSetup.identifyTonieboxVersion")}),m.jsx(wu,{children:e("tonieboxes.boxSetup.identifyTonieboxVersionText")}),m.jsx("ul",{children:m.jsx("li",{children:m.jsx(yt,{to:"/tonieboxes/boxsetup/identifyboxversion",children:e("tonieboxes.boxSetup.identifyTonieboxVersion")})})})]}),dot:m.jsx(om,{}),style:{paddingBottom:8}},{children:m.jsxs(m.Fragment,{children:[m.jsx("h5",{style:{marginTop:8},children:e("tonieboxes.boxSetup.flashBox")}),m.jsx(wu,{children:e("tonieboxes.boxSetup.flashBoxText")}),m.jsxs("ul",{children:[m.jsx("li",{children:m.jsx(yt,{to:"/tonieboxes/boxsetup/esp32/flashing",children:"ESP32"})}),m.jsx("li",{children:m.jsx(yt,{to:"/tonieboxes/boxsetup/cc3200/flashing",children:"CC3200"})}),m.jsx("li",{children:m.jsx(yt,{to:"/tonieboxes/boxsetup/cc3235/flashing",children:"CC3235"})})]})]}),dot:m.jsx(Jf,{}),style:{paddingBottom:8}},{children:m.jsxs(m.Fragment,{children:[m.jsx("h5",{style:{marginTop:8},children:e("tonieboxes.boxSetup.useIt")}),m.jsx(wu,{children:e("tonieboxes.boxSetup.useItText")})]}),dot:m.jsx(ACe,{}),style:{paddingBottom:8}}];return m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(Ia,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(Ia,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")},{title:e("tonieboxes.navigationTitle")},{title:e("tonieboxes.boxSetup.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsx("h1",{children:e("tonieboxes.boxSetup.title")}),!n&&m.jsx(An,{type:"warning",showIcon:!0,message:e("tonieboxes.noNewBoxesAllowed"),description:e("tonieboxes.noNewBoxesAllowedText"),style:{marginBottom:16}}),m.jsx(An,{type:"warning",closeIcon:!0,showIcon:!0,message:e("tonieboxes.hintLatestFirmwareTitle"),description:e("tonieboxes.hintLatestFirmware")}),m.jsxs(wu,{style:{marginTop:16},children:[e("tonieboxes.boxSetup.boxSetupIntro1")," ",m.jsx(yt,{to:"https://forum.revvox.de/",target:"_blank",children:e("tonieboxes.boxSetup.boxSetupIntroForum")})," ",e("tonieboxes.boxSetup.boxSetupIntro2")," ",m.jsx(yt,{to:"https://t.me/toniebox_reverse_engineering",target:"_blank",children:e("tonieboxes.boxSetup.boxSetupIntroTelegram")})," ",e("tonieboxes.boxSetup.boxSetupIntro3")]}),m.jsx(wu,{style:{marginTop:16},children:m.jsx(Zq,{items:a})})," "]})]})]})},oVe="/web/assets/3235_pcb-BE0vs2bl.png",iVe="/web/assets/3200_pcb-Dxz0Vi-z.png",sVe="/web/assets/cc3200-B-jSkbsy.jpg",lVe="/web/assets/cc3235-Cr21bWbC.jpg",cVe="/web/assets/esp32_pcb-CWEYHEzm.png",uVe="/web/assets/esp32-B_b6hCjy.jpg",{Paragraph:Vr}=bn,{useToken:dVe}=Ta,fVe=()=>{const{t:e}=Nt(),{token:t}=dVe(),n=of(),[r,a]=l.useState(""),[o,i]=l.useState(""),[s,c]=l.useState(null),[u,d]=l.useState(null),f=C=>C.replace(/[^a-zA-Z0-9-:]/g,"").trim(),p=async()=>{c(null),d(null);try{const C=await fetch(`https://api.macvendors.com/${encodeURIComponent(r)}`);if(!C.ok)throw new Error("MAC address not found or invalid");const E=await C.text();c(E)}catch(C){d(C.message)}},[g,h]=l.useState(s!=null&&s.toLowerCase().includes("espressif")?"esp32":"cc3200");l.useEffect(()=>{s!=null&&s.toLowerCase().includes("espressif")?h("esp32"):h("cc3200")},[s]);const b=m.jsxs(m.Fragment,{children:[m.jsx(Vr,{children:e("tonieboxes.boxSetup.identifyVersion.cc3200text")}),m.jsx(Vr,{style:{display:"flex",alignItems:"center",justifyContent:"flex-start",flexWrap:"wrap",gap:16},children:m.jsxs(qr.PreviewGroup,{children:[m.jsx(Vr,{style:{maxWidth:400},children:m.jsx(qr,{src:iVe,alt:"PCB CC3200"})}),m.jsx(Vr,{style:{maxWidth:"100%"},children:m.jsx(qr,{src:sVe,style:{height:300,width:"auto"},alt:"Chip CC3200"})})]})})]}),y=m.jsxs(m.Fragment,{children:[m.jsx(Vr,{children:e("tonieboxes.boxSetup.identifyVersion.cc3235text")}),m.jsx(Vr,{style:{display:"flex",alignItems:"center",justifyContent:"flex-start",flexWrap:"wrap",gap:16},children:m.jsxs(qr.PreviewGroup,{children:[m.jsx(Vr,{style:{maxWidth:400},children:m.jsx(qr,{src:oVe,alt:"PCB CC3235"})}),m.jsx(Vr,{style:{maxWidth:"100%"},children:m.jsx(qr,{src:lVe,style:{height:300,width:"auto"},alt:"Chip CC3235"})})]})})]}),S=m.jsxs(m.Fragment,{children:[m.jsx(Vr,{children:e("tonieboxes.boxSetup.identifyVersion.esp32text")}),m.jsx(Vr,{style:{display:"flex",alignItems:"center",justifyContent:"flex-start",flexWrap:"wrap",gap:16},children:m.jsxs(qr.PreviewGroup,{children:[m.jsx(Vr,{style:{maxWidth:400},children:m.jsx(qr,{src:cVe,alt:"PCB ESP32"})}),m.jsx(Vr,{style:{maxWidth:"100%"},children:m.jsx(qr,{src:uVe,style:{height:300,width:"auto"},alt:"Chip ESP32"})})]})})]}),v=[{key:"cc3200",label:"CC3200",children:b},{key:"cc3235",label:"CC3235",children:y},{key:"esp32",label:"ESP32",children:S}],x=m.jsxs(m.Fragment,{children:[m.jsx(LO,{activeKey:g,onChange:C=>h(C),defaultActiveKey:s!=null&&s.toLowerCase().includes("espressif")?"esp32":"cc3200",items:v.filter(C=>((s==null?void 0:s.toLowerCase().includes("texas"))||!s)&&C.key==="cc3200"||((s==null?void 0:s.toLowerCase().includes("texas"))||!s)&&C.key==="cc3235"||((s==null?void 0:s.toLowerCase().includes("espressif"))||!s)&&C.key==="esp32"),indicator:{size:C=>C-20,align:"center"}}),m.jsxs(Vr,{children:[e("tonieboxes.boxSetup.identifyVersion.proceedToFlash1")," "]}),m.jsx(Vr,{style:{marginTop:16},children:m.jsx(ct,{type:"primary",onClick:()=>n(`../tonieboxes/boxsetup/${g}/flashing`),children:`${g.toUpperCase()} ${e("tonieboxes.boxSetup.identifyVersion.proceedToFlashLinkText")}`})})]}),w=()=>{a(""),c(null),i(""),d(null)};return m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(Ia,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(Ia,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")},{title:e("tonieboxes.navigationTitle")},{title:e("tonieboxes.boxSetup.identifyVersion.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsx("h1",{children:e("tonieboxes.boxSetup.identifyVersion.title")}),m.jsxs(qt,{children:[m.jsxs(Vr,{children:[e("tonieboxes.boxSetup.identifyVersion.identifyUsingMac")," "]}),m.jsxs(qt.Item,{children:[m.jsxs(Na,{align:"middle",style:{display:"flex",alignItems:"center"},children:[m.jsx(En,{style:{flex:"0 0 250px",color:o?"#CC3010":"unset"},children:m.jsx("label",{children:e("tonieboxes.boxSetup.identifyVersion.mac")})}),m.jsx(En,{style:{flex:"1 1 auto"},children:m.jsx(Jt,{type:"text",value:r,onChange:C=>{let E=f(C.target.value),I="";E.length>17?I=e("tonieboxes.boxSetup.identifyVersion.boxMacTooLong"):I="",a(E),i(I)},addonBefore:m.jsx(ta,{onClick:w,style:{color:r?t.colorText:t.colorTextDisabled,cursor:r?"pointer":"default"}})})})]}),o&&m.jsx("p",{style:{color:"#CC3010"},children:o})]}),m.jsx(ct,{icon:m.jsx(ZO,{}),disabled:r.length>17||r.length===0,type:"primary",onClick:p,children:e("tonieboxes.boxSetup.identifyVersion.identify")}),m.jsxs(Vr,{style:{fontSize:"small",marginTop:16},children:[e("tonieboxes.boxSetup.identifyVersion.macvendors")," ",m.jsx(yt,{to:"https://macvendors.com/",target:"_blank",children:e("tonieboxes.boxSetup.identifyVersion.macvendorsLink")})]})]}),s?m.jsxs(m.Fragment,{children:[m.jsx(An,{style:{marginTop:16},type:"success",description:m.jsxs(m.Fragment,{children:[e("tonieboxes.boxSetup.identifyVersion.vendor"),": ",m.jsx("b",{children:s})," ",e("tonieboxes.boxSetup.identifyVersion.boxVersion"),s.includes("Espressif")?m.jsx("b",{children:" ESP32"}):m.jsxs(m.Fragment,{children:[m.jsx("b",{children:" CC3200"})," ",e("tonieboxes.boxSetup.identifyVersion.or"),m.jsx("b",{children:" CC3235"})]})," ",e("tonieboxes.boxSetup.identifyVersion.version"),"."]})}),s.toLowerCase().includes("texas")?m.jsx(Vr,{style:{marginTop:16},children:e("tonieboxes.boxSetup.identifyVersion.tiInstruction")}):""]}):u?m.jsx(An,{style:{marginTop:16},type:"error",description:m.jsx(m.Fragment,{children:e("tonieboxes.boxSetup.identifyVersion.errorMac")})}):"",m.jsxs(Vr,{style:{marginTop:16},children:[s?"":m.jsxs(m.Fragment,{children:[e("tonieboxes.boxSetup.identifyVersion.generalInstruction1")," ",m.jsx(Zt,{title:e("tonieboxes.boxSetup.openBoxGuide.linkTooltip"),children:m.jsx(yt,{to:"/tonieboxes/boxsetup/openboxguide",children:e("tonieboxes.boxSetup.identifyVersion.generalInstructionLinkText")})})," ",e("tonieboxes.boxSetup.identifyVersion.generalInstruction2")]}),x]})]})]})]})},pVe="/web/assets/esp32_write_patched_image_with_esptools-DmsBlrjp.png",{Paragraph:Ri}=bn,{Step:gVe}=ks,mVe=()=>{const{t:e}=Nt(),t=kr.language,[n,r]=l.useState(0),[a,o]=l.useState(!1),i=[{title:e("tonieboxes.boxFlashingCommon.preparations")},{title:e("tonieboxes.boxFlashingCommon.certificates")},{title:e("tonieboxes.boxFlashingCommon.dns")}],s=m.jsxs(m.Fragment,{children:[m.jsx("h3",{children:e("tonieboxes.boxFlashingCommon.preparations")}),m.jsx(An,{type:"warning",closeIcon:!0,showIcon:!0,message:e("tonieboxes.hintLatestFirmwareTitle"),description:e("tonieboxes.hintLatestFirmware"),style:{marginBottom:16}}),m.jsxs(Ri,{children:[e("tonieboxes.esp32BoxFlashing.legacy.preparationText")," ",m.jsx(yt,{to:"https://support.tonies.com/hc/en-us/articles/4415294030482-How-do-I-set-up-a-Wi-Fi-connection-without-the-setup-assistant",target:"_blank",children:e("tonieboxes.esp32BoxFlashing.legacy.preparationTextLink")})]}),m.jsx("h4",{children:e("tonieboxes.esp32BoxFlashing.legacy.installESPTool")}),m.jsx(Ri,{children:e("tonieboxes.esp32BoxFlashing.legacy.installESPToolText")}),m.jsx(Ri,{children:m.jsx(yt,{to:"https://github.com/espressif/esptool",target:"_blank",children:e("tonieboxes.esp32BoxFlashing.legacy.installESPToolLink")})}),m.jsx("h4",{children:e("tonieboxes.esp32BoxFlashing.legacy.connectESP32")}),wZ()]}),c=m.jsxs(m.Fragment,{children:[m.jsx("h3",{children:e("tonieboxes.boxFlashingCommon.certificates")}),Ok(),m.jsx(Ri,{children:m.jsx(Sa,{language:"shell",code:`# extract firmware esptool.py -b 921600 read_flash 0x0 0x800000 tb.esp32.bin # extract certficates from firmware mkdir certs/client/esp32 @@ -684,7 +684,7 @@ cp certs/client//ca.der certs/client/ca.der mkdir certs/client/esp32-fakeca cp certs/client/esp32/CLIENT.DER certs/client/esp32-fakeca/ cp certs/client/esp32/PRIVATE.DER certs/client/esp32-fakeca/ -cp certs/server/ca.der certs/client/esp32-fakeca/CA.DER`})}),m.jsx(Ti,{children:e("tonieboxes.esp32BoxFlashing.legacy.checkDumpIsOk")}),m.jsx("h5",{children:e("tonieboxes.esp32BoxFlashing.legacy.flashCAreplacement")}),e("tonieboxes.esp32BoxFlashing.legacy.flashCAreplacementText1"),m.jsx(Ti,{children:m.jsx(ba,{language:"shell",code:`# copy firmware backup +cp certs/server/ca.der certs/client/esp32-fakeca/CA.DER`})}),m.jsx(Ri,{children:e("tonieboxes.esp32BoxFlashing.legacy.checkDumpIsOk")}),m.jsx("h5",{children:e("tonieboxes.esp32BoxFlashing.legacy.flashCAreplacement")}),e("tonieboxes.esp32BoxFlashing.legacy.flashCAreplacementText1"),m.jsx(Ri,{children:m.jsx(Sa,{language:"shell",code:`# copy firmware backup cp tb.esp32.bin tb.esp32.fakeca.bin # inject new CA into firmware @@ -693,4 +693,4 @@ teddycloud --esp32-inject tb.esp32.fakeca.bin --source certs/client/esp32-fakeca teddycloud --esp32-hostpatch tb.esp32.fakeca.bin --hostname # flash firmware with new CA -esptool.py -b 921600 write_flash 0x0 tb.esp32.fakeca.bin`})}),m.jsx(Oa,{preview:!1,src:pVe,alt:e("tonieboxes.esp32BoxFlashing.legacy.flashESPtoolScreen")}),m.jsx(Ti,{style:{marginTop:16},children:e("tonieboxes.esp32BoxFlashing.legacy.flashCAreplacementText2")}),m.jsx(Ti,{children:e("tonieboxes.esp32BoxFlashing.legacy.flashCAreplacementText3")})]}),u=m.jsxs(m.Fragment,{children:[m.jsx("h3",{children:e("tonieboxes.boxFlashingCommon.dns")}),m.jsx(Ti,{children:e("tonieboxes.esp32BoxFlashing.legacy.skipDnsIfAlreadyDone")}),CZ()]}),[d,f]=l.useState([s,c,u]),p=(w,E)=>{f(I=>{const T=[...I];return T[w]=E,T})};l.useEffect(()=>{p(n,(()=>{switch(n){case 0:return s;case 1:return c;case 2:return u;default:return m.jsx("div",{})}})())},[n,t,vs()]);const g=()=>{r(n-1)},h=()=>{r(n+1)},b=m.jsx(ut,{icon:m.jsx(Ts,{}),onClick:()=>g(),children:e("tonieboxes.esp32BoxFlashing.legacy.previous")}),y=w=>{r(w)},S=()=>{v()},v=()=>{o(!0)},x=()=>{o(!1)},C=m.jsx(Yy,{boxVersion:"ESP32",isOpen:a,onClose:x});return m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(Ca,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(Ca,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")},{title:e("tonieboxes.navigationTitle")},{title:e("tonieboxes.esp32BoxFlashing.legacy.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsx("h1",{children:e("tonieboxes.esp32BoxFlashing.legacy.title")}),m.jsx(Rr,{children:e("tonieboxes.esp32BoxFlashing.legacy.title")}),m.jsxs(Ti,{style:{marginTop:16},children:[m.jsx(Ns,{current:n,onChange:y,children:i.map((w,E)=>m.jsx(gVe,{title:w.title,status:E===n&&E===i.length?"finish":E===n?"process":E{const r=[];return Object.keys(e).forEach(a=>{const o=n?`${n}.${a}`:a;Array.isArray(e[a])?Array.isArray(t[a])?e[a].forEach((i,s)=>{const c=`${o}[${s}].question`,u=`${o}[${s}].answer`;t[a][s]||r.push(c,u)}):e[a].forEach((i,s)=>{const c=`${o}[${s}].question`,u=`${o}[${s}].answer`;r.push(c,u)}):typeof e[a]=="object"&&e[a]!==null?!(a in t)||typeof t[a]!="object"?r.push(...IZ(e[a],o)):r.push(...EZ(e[a],t[a],o)):a in t||r.push(o)}),r},IZ=(e,t="")=>{const n=[];return Object.keys(e).forEach(r=>{const a=t?`${t}.${r}`:r;Array.isArray(e[r])?e[r].forEach((o,i)=>{n.push(`${a}[${i}].question`,`${a}[${i}].answer`)}):typeof e[r]=="object"&&e[r]!==null?n.push(...IZ(e[r],a)):n.push(a)}),n},TZ=(e,t,n="")=>{const r=[];return Object.keys(t).forEach(a=>{const o=n?`${n}.${a}`:a;Array.isArray(t[a])?Array.isArray(e[a])?t[a].forEach((i,s)=>{const c=`${o}[${s}].question`,u=`${o}[${s}].answer`;e[a][s]||r.push(c,u)}):t[a].forEach((i,s)=>{const c=`${o}[${s}].question`,u=`${o}[${s}].answer`;r.push(c,u)}):typeof t[a]=="object"&&t[a]!==null?!e[a]||typeof e[a]!="object"?r.push(o):r.push(...TZ(e[a],t[a],o)):a in e||r.push(o)}),r},hVe=()=>{const{t:e}=Nt(),[t,n]=l.useState({}),[r,a]=l.useState({}),[o,i]=l.useState({}),[s,c]=l.useState(!0),u=["en","fr","de","es"],d="en";return l.useEffect(()=>{(async()=>{const p={};for(let g of u){const b=await(await fetch(`/web/translations/${g}.json`)).json();p[g]=b}n(p),c(!1)})()},[]),l.useEffect(()=>{if(!s&&t[d]){const f=t[d],p={},g={};u.forEach(h=>{if(h!==d){const b=t[h];p[h]=EZ(f,b),g[h]=TZ(f,b)}}),a(p),i(g)}},[s,t]),s?m.jsx("p",{children:"Loading translations..."}):m.jsxs(m.Fragment,{children:[m.jsx("h2",{children:e("community.translations.missingExtraKeysHeadline")}),u.every(f=>{var p,g;return f===d||((p=r[f])==null?void 0:p.length)===0&&((g=o[f])==null?void 0:g.length)===0})?m.jsx("p",{children:e("community.translations.noDiscrepancies")}):m.jsx("div",{children:u.map(f=>{var p,g;return f!==d&&m.jsxs("div",{children:[m.jsxs("h2",{children:[e("community.translations.language"),": ",f.toUpperCase()]}),m.jsx("h3",{children:e("community.translations.missingKeys")}),((p=r[f])==null?void 0:p.length)>0?m.jsx("ul",{children:r[f].map((h,b)=>m.jsx("li",{children:h},b))}):m.jsx("p",{children:e("community.translations.noMissingKeys")}),m.jsxs("h3",{children:[e("community.translations.extraKeys"),":"]}),((g=o[f])==null?void 0:g.length)>0?m.jsx("ul",{children:o[f].map((h,b)=>m.jsx("li",{children:h},b))}):m.jsx("p",{children:e("community.translations.noExtraKeys")})]},f)})})]})},RZ=(e,t="")=>{const n=[];return Object.keys(e).forEach(r=>{const a=t?`${t}.${r}`:r;Array.isArray(e[r])?e[r].forEach((o,i)=>{n.push(`${a}[${i}].question`,`${a}[${i}].answer`)}):typeof e[r]=="object"&&e[r]!==null?n.push(...RZ(e[r],a)):n.push(a)}),n},vVe=(e,t)=>{const n=t.split(".");let r=e;for(let a of n){if(a.includes("[")){const[o,i]=a.split("["),s=parseInt(i.replace("]",""),10);if(r=r[o],Array.isArray(r))r=r[s];else return}else r=r?r[a]:void 0;if(r===void 0)return}return typeof r=="string"?r:void 0},bVe=()=>{const{t:e}=Nt(),[t,n]=l.useState({}),[r,a]=l.useState(!0),o=["en","fr","de","es"],i="en";if(l.useEffect(()=>{(async()=>{const f={};for(let p of o){const h=await(await fetch(`/web/translations/${p}.json`)).json();f[p]=h}n(f),a(!1)})()},[]),r)return m.jsx("p",{children:"Loading translations..."});const s=RZ(t[i]),c=[{title:e("community.translations.key"),dataIndex:"key",key:"key",width:"30%",fixed:"left",render:d=>m.jsx("div",{style:{wordWrap:"break-word",wordBreak:"break-all"},children:d})},...o.map(d=>({title:d.toUpperCase(),dataIndex:d,key:d}))],u=s.map(d=>{const f={key:d};return o.forEach(p=>{const g=vVe(t[p],d);f[p]=g||"<"+e("community.translations.missing")+">"}),f});return m.jsxs(m.Fragment,{children:[m.jsx("h2",{children:e("community.translations.allTranslationStrings")}),m.jsx(Qa,{size:"small",columns:c,scroll:{x:"100%"},dataSource:u,rowKey:"key",pagination:!1})]})},{Paragraph:yVe}=bn,SVe=()=>{const{t:e}=Nt();return m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(Ja,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(Ja,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")},{title:e("community.navigationTitle")},{title:e("community.translations.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsx("h1",{children:e("community.translations.title")}),m.jsx(yVe,{children:e("community.translations.hint")}),m.jsx(hVe,{}),m.jsx(bVe,{})]})]})]})},{Paragraph:xVe}=bn,wVe=()=>{const{t:e}=Nt();return m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(Ca,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(Ca,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")},{title:e("tonieboxes.navigationTitle")},{title:e("tonieboxes.boxSetup.openBoxGuide.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsx("h1",{children:e("tonieboxes.boxSetup.openBoxGuide.title")}),m.jsx(xVe,{children:e("tonieboxes.boxSetup.openBoxGuide.intro")}),m.jsxs("ul",{children:[m.jsx("li",{children:m.jsx(gt,{to:e("tonieboxes.boxSetup.openBoxGuide.link1"),target:"_blank",children:e("tonieboxes.boxSetup.openBoxGuide.link1")})}),m.jsx("li",{children:m.jsx(gt,{to:"https://www.youtube.com/watch?v=Cv9ID4-P6_A",target:"_blank",children:"https://www.youtube.com/watch?v=Cv9ID4-P6_A"})})]})]})]})]})};function CVe(){const{defaultAlgorithm:e,darkAlgorithm:t}=Ea,n=u=>{const d=document.querySelector('meta[name="theme-color"]');d&&d.setAttribute("content",u),document.body.style.backgroundColor=u},[r,a]=l.useState(()=>localStorage.getItem("theme")||"auto"),[o,i]=l.useState(vs()==="dark"),s=()=>{a(u=>u==="dark"?"light":u==="light"?"auto":"dark")};l.useEffect(()=>{localStorage.setItem("theme",r),i(vs()==="dark"),vs()==="dark"?n("#000000"):n("#f5f5f5")},[r]);let c;return r==="dark"?c=m.jsx(qwe,{onClick:s}):r==="light"?c=m.jsx(VCe,{onClick:s}):c=m.jsx(H1e,{onClick:s}),m.jsx(yi,{theme:{algorithm:o?t:e,components:{Slider:{dotSize:3,handleSize:6,handleSizeHover:8,railSize:4},Popover:{titleMinWidth:0}}},children:m.jsx("div",{className:"App",children:m.jsx(Gi,{style:{minHeight:"100vh"},children:m.jsx(v$e,{basename:"/web",children:m.jsxs(w$e,{children:[m.jsx(_Be,{themeSwitch:c}),m.jsx(Gi,{children:m.jsxs(u$e,{children:[m.jsx($n,{path:"/",element:m.jsx(uBe,{})}),m.jsx($n,{path:"/home/stats",element:m.jsx(bBe,{})}),m.jsx($n,{path:"/home/features",element:m.jsx(YUe,{})}),m.jsx($n,{path:"/home/toniemeeting",element:m.jsx(qUe,{})}),m.jsx($n,{path:"/tonies",element:m.jsx(DBe,{})}),m.jsx($n,{path:"/tonies/system-sounds",element:m.jsx(jBe,{})}),m.jsx($n,{path:"/tonies/content",element:m.jsx(Eze,{})}),m.jsx($n,{path:"/tonies/library",element:m.jsx(Ize,{})}),m.jsx($n,{path:"/tonies/encoder",element:m.jsx(Nze,{})}),m.jsx($n,{path:"/tonies/tap",element:m.jsx(Aze,{})}),m.jsx($n,{path:"/tonieboxes",element:m.jsx(zze,{})}),m.jsx($n,{path:"/tonieboxes/boxsetup",element:m.jsx(aVe,{})}),m.jsx($n,{path:"/tonieboxes/boxsetup/identifyboxversion",element:m.jsx(fVe,{})}),m.jsx($n,{path:"/tonieboxes/boxsetup/openboxguide",element:m.jsx(wVe,{})}),m.jsx($n,{path:"/tonieboxes/boxsetup/esp32/flashing",element:m.jsx(WUe,{})}),m.jsx($n,{path:"/tonieboxes/boxsetup/esp32/legacy",element:m.jsx(mVe,{})}),m.jsx($n,{path:"/tonieboxes/boxsetup/cc3200/flashing",element:m.jsx(tVe,{})}),m.jsx($n,{path:"/tonieboxes/boxsetup/cc3235/flashing",element:m.jsx(JUe,{})}),m.jsx($n,{path:"/settings",element:m.jsx(CMe,{})}),m.jsx($n,{path:"/settings/certificates",element:m.jsx(q5e,{})}),m.jsx($n,{path:"/settings/rtnl",element:m.jsx(G5e,{})}),m.jsx($n,{path:"/community",element:m.jsx(Hze,{})}),m.jsx($n,{path:"/community/faq",element:m.jsx(KUe,{})}),m.jsx($n,{path:"/community/contribution",element:m.jsx(Uze,{})}),m.jsx($n,{path:"/community/contribution/tonies-json",element:m.jsx(Gze,{})}),m.jsx($n,{path:"/community/contribution/translations",element:m.jsx(SVe,{})}),m.jsx($n,{path:"/community/contributors",element:m.jsx(qze,{})}),m.jsx($n,{path:"/community/changelog",element:m.jsx(Kze,{})}),m.jsx($n,{path:"/uitest",element:m.jsx(E$e,{})}),m.jsx($n,{path:"/*",element:m.jsx(hBe,{})})]})}),m.jsx(ABe,{})]})})})})})}const EVe=SI.createRoot(document.getElementById("root"));EVe.render(m.jsx(se.StrictMode,{children:m.jsx(CVe,{})}))});export default IVe(); +esptool.py -b 921600 write_flash 0x0 tb.esp32.fakeca.bin`})}),m.jsx(qr,{preview:!1,src:pVe,alt:e("tonieboxes.esp32BoxFlashing.legacy.flashESPtoolScreen")}),m.jsx(Ri,{style:{marginTop:16},children:e("tonieboxes.esp32BoxFlashing.legacy.flashCAreplacementText2")}),m.jsx(Ri,{children:e("tonieboxes.esp32BoxFlashing.legacy.flashCAreplacementText3")})]}),u=m.jsxs(m.Fragment,{children:[m.jsx("h3",{children:e("tonieboxes.boxFlashingCommon.dns")}),m.jsx(Ri,{children:e("tonieboxes.esp32BoxFlashing.legacy.skipDnsIfAlreadyDone")}),CZ()]}),[d,f]=l.useState([s,c,u]),p=(C,E)=>{f(I=>{const T=[...I];return T[C]=E,T})};l.useEffect(()=>{p(n,(()=>{switch(n){case 0:return s;case 1:return c;case 2:return u;default:return m.jsx("div",{})}})())},[n,t,bs()]);const g=()=>{r(n-1)},h=()=>{r(n+1)},b=m.jsx(ct,{icon:m.jsx(Rs,{}),onClick:()=>g(),children:e("tonieboxes.esp32BoxFlashing.legacy.previous")}),y=C=>{r(C)},S=()=>{v()},v=()=>{o(!0)},x=()=>{o(!1)},w=m.jsx(Xy,{boxVersion:"ESP32",isOpen:a,onClose:x});return m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(Ia,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(Ia,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")},{title:e("tonieboxes.navigationTitle")},{title:e("tonieboxes.esp32BoxFlashing.legacy.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsx("h1",{children:e("tonieboxes.esp32BoxFlashing.legacy.title")}),m.jsx(Rr,{children:e("tonieboxes.esp32BoxFlashing.legacy.title")}),m.jsxs(Ri,{style:{marginTop:16},children:[m.jsx(ks,{current:n,onChange:y,children:i.map((C,E)=>m.jsx(gVe,{title:C.title,status:E===n&&E===i.length?"finish":E===n?"process":E{const r=[];return Object.keys(e).forEach(a=>{const o=n?`${n}.${a}`:a;Array.isArray(e[a])?Array.isArray(t[a])?e[a].forEach((i,s)=>{const c=`${o}[${s}].question`,u=`${o}[${s}].answer`;t[a][s]||r.push(c,u)}):e[a].forEach((i,s)=>{const c=`${o}[${s}].question`,u=`${o}[${s}].answer`;r.push(c,u)}):typeof e[a]=="object"&&e[a]!==null?!(a in t)||typeof t[a]!="object"?r.push(...IZ(e[a],o)):r.push(...EZ(e[a],t[a],o)):a in t||r.push(o)}),r},IZ=(e,t="")=>{const n=[];return Object.keys(e).forEach(r=>{const a=t?`${t}.${r}`:r;Array.isArray(e[r])?e[r].forEach((o,i)=>{n.push(`${a}[${i}].question`,`${a}[${i}].answer`)}):typeof e[r]=="object"&&e[r]!==null?n.push(...IZ(e[r],a)):n.push(a)}),n},TZ=(e,t,n="")=>{const r=[];return Object.keys(t).forEach(a=>{const o=n?`${n}.${a}`:a;Array.isArray(t[a])?Array.isArray(e[a])?t[a].forEach((i,s)=>{const c=`${o}[${s}].question`,u=`${o}[${s}].answer`;e[a][s]||r.push(c,u)}):t[a].forEach((i,s)=>{const c=`${o}[${s}].question`,u=`${o}[${s}].answer`;r.push(c,u)}):typeof t[a]=="object"&&t[a]!==null?!e[a]||typeof e[a]!="object"?r.push(o):r.push(...TZ(e[a],t[a],o)):a in e||r.push(o)}),r},hVe=()=>{const{t:e}=Nt(),[t,n]=l.useState({}),[r,a]=l.useState({}),[o,i]=l.useState({}),[s,c]=l.useState(!0),u=["en","fr","de","es"],d="en";return l.useEffect(()=>{(async()=>{const p={};for(let g of u){const b=await(await fetch(`/web/translations/${g}.json`)).json();p[g]=b}n(p),c(!1)})()},[]),l.useEffect(()=>{if(!s&&t[d]){const f=t[d],p={},g={};u.forEach(h=>{if(h!==d){const b=t[h];p[h]=EZ(f,b),g[h]=TZ(f,b)}}),a(p),i(g)}},[s,t]),s?m.jsx("p",{children:"Loading translations..."}):m.jsxs(m.Fragment,{children:[m.jsx("h2",{children:e("community.translations.missingExtraKeysHeadline")}),u.every(f=>{var p,g;return f===d||((p=r[f])==null?void 0:p.length)===0&&((g=o[f])==null?void 0:g.length)===0})?m.jsx("p",{children:e("community.translations.noDiscrepancies")}):m.jsx("div",{children:u.map(f=>{var p,g;return f!==d&&m.jsxs("div",{children:[m.jsxs("h2",{children:[e("community.translations.language"),": ",f.toUpperCase()]}),m.jsx("h3",{children:e("community.translations.missingKeys")}),((p=r[f])==null?void 0:p.length)>0?m.jsx("ul",{children:r[f].map((h,b)=>m.jsx("li",{children:h},b))}):m.jsx("p",{children:e("community.translations.noMissingKeys")}),m.jsxs("h3",{children:[e("community.translations.extraKeys"),":"]}),((g=o[f])==null?void 0:g.length)>0?m.jsx("ul",{children:o[f].map((h,b)=>m.jsx("li",{children:h},b))}):m.jsx("p",{children:e("community.translations.noExtraKeys")})]},f)})})]})},RZ=(e,t="")=>{const n=[];return Object.keys(e).forEach(r=>{const a=t?`${t}.${r}`:r;Array.isArray(e[r])?e[r].forEach((o,i)=>{n.push(`${a}[${i}].question`,`${a}[${i}].answer`)}):typeof e[r]=="object"&&e[r]!==null?n.push(...RZ(e[r],a)):n.push(a)}),n},vVe=(e,t)=>{const n=t.split(".");let r=e;for(let a of n){if(a.includes("[")){const[o,i]=a.split("["),s=parseInt(i.replace("]",""),10);if(r=r[o],Array.isArray(r))r=r[s];else return}else r=r?r[a]:void 0;if(r===void 0)return}return typeof r=="string"?r:void 0},bVe=()=>{const{t:e}=Nt(),[t,n]=l.useState({}),[r,a]=l.useState(!0),o=["en","fr","de","es"],i="en";if(l.useEffect(()=>{(async()=>{const f={};for(let p of o){const h=await(await fetch(`/web/translations/${p}.json`)).json();f[p]=h}n(f),a(!1)})()},[]),r)return m.jsx("p",{children:"Loading translations..."});const s=RZ(t[i]),c=[{title:e("community.translations.key"),dataIndex:"key",key:"key",width:"30%",fixed:"left",render:d=>m.jsx("div",{style:{wordWrap:"break-word",wordBreak:"break-all"},children:d})},...o.map(d=>({title:d.toUpperCase(),dataIndex:d,key:d}))],u=s.map(d=>{const f={key:d};return o.forEach(p=>{const g=vVe(t[p],d);f[p]=g||"<"+e("community.translations.missing")+">"}),f});return m.jsxs(m.Fragment,{children:[m.jsx("h2",{children:e("community.translations.allTranslationStrings")}),m.jsx(Ja,{size:"small",columns:c,scroll:{x:"100%"},dataSource:u,rowKey:"key",pagination:!1})]})},{Paragraph:yVe}=bn,SVe=()=>{const{t:e}=Nt();return m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(eo,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(eo,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")},{title:e("community.navigationTitle")},{title:e("community.translations.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsx("h1",{children:e("community.translations.title")}),m.jsx(yVe,{children:e("community.translations.hint")}),m.jsx(hVe,{}),m.jsx(bVe,{})]})]})]})},{Paragraph:xVe}=bn,wVe=()=>{const{t:e}=Nt();return m.jsxs(m.Fragment,{children:[m.jsx(jn,{children:m.jsx(Ia,{})}),m.jsxs(Bn,{children:[m.jsx(In,{children:m.jsx(Ia,{})}),m.jsx(zn,{items:[{title:e("home.navigationTitle")},{title:e("tonieboxes.navigationTitle")},{title:e("tonieboxes.boxSetup.openBoxGuide.navigationTitle")}]}),m.jsxs(Dn,{children:[m.jsx("h1",{children:e("tonieboxes.boxSetup.openBoxGuide.title")}),m.jsx(xVe,{children:e("tonieboxes.boxSetup.openBoxGuide.intro")}),m.jsxs("ul",{children:[m.jsx("li",{children:m.jsx(yt,{to:e("tonieboxes.boxSetup.openBoxGuide.link1"),target:"_blank",children:e("tonieboxes.boxSetup.openBoxGuide.link1")})}),m.jsx("li",{children:m.jsx(yt,{to:"https://www.youtube.com/watch?v=Cv9ID4-P6_A",target:"_blank",children:"https://www.youtube.com/watch?v=Cv9ID4-P6_A"})})]})]})]})]})};function CVe(){const{defaultAlgorithm:e,darkAlgorithm:t}=Ta,n=u=>{const d=document.querySelector('meta[name="theme-color"]');d&&d.setAttribute("content",u),document.body.style.backgroundColor=u},[r,a]=l.useState(()=>localStorage.getItem("theme")||"auto"),[o,i]=l.useState(bs()==="dark"),s=()=>{a(u=>u==="dark"?"light":u==="light"?"auto":"dark")};l.useEffect(()=>{localStorage.setItem("theme",r),i(bs()==="dark"),bs()==="dark"?n("#000000"):n("#f5f5f5")},[r]);let c;return r==="dark"?c=m.jsx(qwe,{onClick:s}):r==="light"?c=m.jsx(VCe,{onClick:s}):c=m.jsx(H1e,{onClick:s}),m.jsx(Si,{theme:{algorithm:o?t:e,components:{Slider:{dotSize:3,handleSize:6,handleSizeHover:8,railSize:4},Popover:{titleMinWidth:0}}},children:m.jsx("div",{className:"App",children:m.jsx(qi,{style:{minHeight:"100vh"},children:m.jsx(v$e,{basename:"/web",children:m.jsxs(w$e,{children:[m.jsx(_Be,{themeSwitch:c}),m.jsx(qi,{children:m.jsxs(u$e,{children:[m.jsx($n,{path:"/",element:m.jsx(uBe,{})}),m.jsx($n,{path:"/home/stats",element:m.jsx(bBe,{})}),m.jsx($n,{path:"/home/features",element:m.jsx(YUe,{})}),m.jsx($n,{path:"/home/toniemeeting",element:m.jsx(qUe,{})}),m.jsx($n,{path:"/tonies",element:m.jsx(DBe,{})}),m.jsx($n,{path:"/tonies/system-sounds",element:m.jsx(jBe,{})}),m.jsx($n,{path:"/tonies/content",element:m.jsx(Eze,{})}),m.jsx($n,{path:"/tonies/library",element:m.jsx(Ize,{})}),m.jsx($n,{path:"/tonies/encoder",element:m.jsx(Nze,{})}),m.jsx($n,{path:"/tonies/tap",element:m.jsx(Aze,{})}),m.jsx($n,{path:"/tonieboxes",element:m.jsx(zze,{})}),m.jsx($n,{path:"/tonieboxes/boxsetup",element:m.jsx(aVe,{})}),m.jsx($n,{path:"/tonieboxes/boxsetup/identifyboxversion",element:m.jsx(fVe,{})}),m.jsx($n,{path:"/tonieboxes/boxsetup/openboxguide",element:m.jsx(wVe,{})}),m.jsx($n,{path:"/tonieboxes/boxsetup/esp32/flashing",element:m.jsx(WUe,{})}),m.jsx($n,{path:"/tonieboxes/boxsetup/esp32/legacy",element:m.jsx(mVe,{})}),m.jsx($n,{path:"/tonieboxes/boxsetup/cc3200/flashing",element:m.jsx(tVe,{})}),m.jsx($n,{path:"/tonieboxes/boxsetup/cc3235/flashing",element:m.jsx(JUe,{})}),m.jsx($n,{path:"/settings",element:m.jsx(CMe,{})}),m.jsx($n,{path:"/settings/certificates",element:m.jsx(q5e,{})}),m.jsx($n,{path:"/settings/rtnl",element:m.jsx(G5e,{})}),m.jsx($n,{path:"/community",element:m.jsx(Hze,{})}),m.jsx($n,{path:"/community/faq",element:m.jsx(KUe,{})}),m.jsx($n,{path:"/community/contribution",element:m.jsx(Uze,{})}),m.jsx($n,{path:"/community/contribution/tonies-json",element:m.jsx(Gze,{})}),m.jsx($n,{path:"/community/contribution/translations",element:m.jsx(SVe,{})}),m.jsx($n,{path:"/community/contributors",element:m.jsx(qze,{})}),m.jsx($n,{path:"/community/changelog",element:m.jsx(Kze,{})}),m.jsx($n,{path:"/uitest",element:m.jsx(E$e,{})}),m.jsx($n,{path:"/*",element:m.jsx(hBe,{})})]})}),m.jsx(ABe,{})]})})})})})}const EVe=xI.createRoot(document.getElementById("root"));EVe.render(m.jsx(se.StrictMode,{children:m.jsx(CVe,{})}))});export default IVe(); diff --git a/contrib/data/www/web/index.html b/contrib/data/www/web/index.html index 43d05a82..8dde205b 100644 --- a/contrib/data/www/web/index.html +++ b/contrib/data/www/web/index.html @@ -12,7 +12,7 @@ --> TeddyCloud - + diff --git a/contrib/data/www/web/web_version.json b/contrib/data/www/web/web_version.json index a4c386df..ad565dcf 100644 --- a/contrib/data/www/web/web_version.json +++ b/contrib/data/www/web/web_version.json @@ -2,9 +2,9 @@ "web_version": "vX.X.X", "web_gitDirty": "0", "web_gitTag": "undefined", - "web_gitDateTime": "2024-10-22 00:05:20 +0200", - "web_gitSha": "4881b0bd2ba45bb8d6b5e3437bba3f736df63018", + "web_gitDateTime": "2024-10-22 21:04:24 +0200", + "web_gitSha": "4d2a0d747cdcb14ac33a98aef00cdcf2d2fd1778", "web_gitTagPrefix": "undefined", - "web_gitShortSha": "4881b0b", + "web_gitShortSha": "4d2a0d7", "_eof":"" } diff --git a/teddycloud_web b/teddycloud_web index 4881b0bd..4d2a0d74 160000 --- a/teddycloud_web +++ b/teddycloud_web @@ -1 +1 @@ -Subproject commit 4881b0bd2ba45bb8d6b5e3437bba3f736df63018 +Subproject commit 4d2a0d747cdcb14ac33a98aef00cdcf2d2fd1778