app-v3-scripts-editor 1.2.3 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app-v3-scripts-editor.css +1 -1
- package/dist/app-v3-scripts-editor.es.js +29652 -23297
- package/dist/app-v3-scripts-editor.umd.js +147 -111
- package/dist/components/Blocks/Speak/block.d.ts +2 -8
- package/dist/components/Blocks/Speak/index.css.d.ts +1 -3
- package/dist/components/Blocks/Speak/index.settings.d.ts +3 -1
- package/dist/components/Blocks/Speak/node.d.ts +1 -7
- package/dist/components/Blocks/Speak/types.d.ts +26 -0
- package/dist/components/Blocks/Speak/use-alerts/index.d.ts +6 -0
- package/dist/components/Shared/ConfirmDeleteButton/index.d.ts +7 -0
- package/dist/components/Shared/EditBlockTitleButton/index.d.ts +7 -0
- package/dist/constants/initial-script.d.ts +23 -3
- package/dist/constants/node-types.d.ts +1 -1
- package/dist/hooks/use-selected-node/index.d.ts +7 -0
- package/dist/hooks/use-update-node/index.d.ts +8 -0
- package/dist/styles/colors.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(Wt,T){typeof exports=="object"&&typeof module<"u"?T(exports,require("react"),require("react/jsx-runtime"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react/jsx-runtime","react-dom"],T):(Wt=typeof globalThis<"u"?globalThis:Wt||self,T(Wt["app-v3-scripts-editor"]={},Wt.React,Wt["react/jsx-runtime"],Wt.ReactDOM))})(this,function(Wt,T,k,hr){"use strict";function cf(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const h=cf(T),uf=cf(hr);function mt(e){if(typeof e=="string"||typeof e=="number")return""+e;let t="";if(Array.isArray(e))for(let n=0,r;n<e.length;n++)(r=mt(e[n]))!==""&&(t+=(t&&" ")+r);else for(let n in e)e[n]&&(t+=(t&&" ")+n);return t}var S1={value:()=>{}};function sa(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new la(n)}function la(e){this._=e}function E1(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",o=n.indexOf(".");if(o>=0&&(r=n.slice(o+1),n=n.slice(0,o)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}la.prototype=sa.prototype={constructor:la,on:function(e,t){var n=this._,r=E1(e+"",n),o,i=-1,a=r.length;if(arguments.length<2){for(;++i<a;)if((o=(e=r[i]).type)&&(o=$1(n[o],e.name)))return o;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++i<a;)if(o=(e=r[i]).type)n[o]=df(n[o],e.name,t);else if(t==null)for(o in n)n[o]=df(n[o],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new la(e)},call:function(e,t){if((o=arguments.length-2)>0)for(var n=new Array(o),r=0,o,i;r<o;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(i=this._[e],r=0,o=i.length;r<o;++r)i[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],o=0,i=r.length;o<i;++o)r[o].value.apply(t,n)}};function $1(e,t){for(var n=0,r=e.length,o;n<r;++n)if((o=e[n]).name===t)return o.value}function df(e,t,n){for(var r=0,o=e.length;r<o;++r)if(e[r].name===t){e[r]=S1,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var wl="http://www.w3.org/1999/xhtml";const ff={svg:"http://www.w3.org/2000/svg",xhtml:wl,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ca(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),ff.hasOwnProperty(t)?{space:ff[t],local:e}:e}function O1(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===wl&&t.documentElement.namespaceURI===wl?t.createElement(e):t.createElementNS(n,e)}}function _1(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function pf(e){var t=ca(e);return(t.local?_1:O1)(t)}function N1(){}function xl(e){return e==null?N1:function(){return this.querySelector(e)}}function P1(e){typeof e!="function"&&(e=xl(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var i=t[o],a=i.length,s=r[o]=new Array(a),l,c,u=0;u<a;++u)(l=i[u])&&(c=e.call(l,l.__data__,u,i))&&("__data__"in l&&(c.__data__=l.__data__),s[u]=c);return new qt(r,this._parents)}function T1(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function I1(){return[]}function gf(e){return e==null?I1:function(){return this.querySelectorAll(e)}}function M1(e){return function(){return T1(e.apply(this,arguments))}}function A1(e){typeof e=="function"?e=M1(e):e=gf(e);for(var t=this._groups,n=t.length,r=[],o=[],i=0;i<n;++i)for(var a=t[i],s=a.length,l,c=0;c<s;++c)(l=a[c])&&(r.push(e.call(l,l.__data__,c,a)),o.push(l));return new qt(r,o)}function hf(e){return function(){return this.matches(e)}}function mf(e){return function(t){return t.matches(e)}}var D1=Array.prototype.find;function F1(e){return function(){return D1.call(this.children,e)}}function L1(){return this.firstElementChild}function j1(e){return this.select(e==null?L1:F1(typeof e=="function"?e:mf(e)))}var z1=Array.prototype.filter;function R1(){return Array.from(this.children)}function V1(e){return function(){return z1.call(this.children,e)}}function k1(e){return this.selectAll(e==null?R1:V1(typeof e=="function"?e:mf(e)))}function H1(e){typeof e!="function"&&(e=hf(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var i=t[o],a=i.length,s=r[o]=[],l,c=0;c<a;++c)(l=i[c])&&e.call(l,l.__data__,c,i)&&s.push(l);return new qt(r,this._parents)}function vf(e){return new Array(e.length)}function B1(){return new qt(this._enter||this._groups.map(vf),this._parents)}function ua(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}ua.prototype={constructor:ua,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function W1(e){return function(){return e}}function q1(e,t,n,r,o,i){for(var a=0,s,l=t.length,c=i.length;a<c;++a)(s=t[a])?(s.__data__=i[a],r[a]=s):n[a]=new ua(e,i[a]);for(;a<l;++a)(s=t[a])&&(o[a]=s)}function U1(e,t,n,r,o,i,a){var s,l,c=new Map,u=t.length,d=i.length,f=new Array(u),p;for(s=0;s<u;++s)(l=t[s])&&(f[s]=p=a.call(l,l.__data__,s,t)+"",c.has(p)?o[s]=l:c.set(p,l));for(s=0;s<d;++s)p=a.call(e,i[s],s,i)+"",(l=c.get(p))?(r[s]=l,l.__data__=i[s],c.delete(p)):n[s]=new ua(e,i[s]);for(s=0;s<u;++s)(l=t[s])&&c.get(f[s])===l&&(o[s]=l)}function G1(e){return e.__data__}function X1(e,t){if(!arguments.length)return Array.from(this,G1);var n=t?U1:q1,r=this._parents,o=this._groups;typeof e!="function"&&(e=W1(e));for(var i=o.length,a=new Array(i),s=new Array(i),l=new Array(i),c=0;c<i;++c){var u=r[c],d=o[c],f=d.length,p=Y1(e.call(u,u&&u.__data__,c,r)),v=p.length,m=s[c]=new Array(v),g=a[c]=new Array(v),y=l[c]=new Array(f);n(u,d,m,g,y,p,t);for(var x=0,b=0,C,w;x<v;++x)if(C=m[x]){for(x>=b&&(b=x+1);!(w=g[b])&&++b<v;);C._next=w||null}}return a=new qt(a,r),a._enter=s,a._exit=l,a}function Y1(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function K1(){return new qt(this._exit||this._groups.map(vf),this._parents)}function Z1(e,t,n){var r=this.enter(),o=this,i=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(o=t(o),o&&(o=o.selection())),n==null?i.remove():n(i),r&&o?r.merge(o).order():o}function Q1(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,o=n.length,i=r.length,a=Math.min(o,i),s=new Array(o),l=0;l<a;++l)for(var c=n[l],u=r[l],d=c.length,f=s[l]=new Array(d),p,v=0;v<d;++v)(p=c[v]||u[v])&&(f[v]=p);for(;l<o;++l)s[l]=n[l];return new qt(s,this._parents)}function J1(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],o=r.length-1,i=r[o],a;--o>=0;)(a=r[o])&&(i&&a.compareDocumentPosition(i)^4&&i.parentNode.insertBefore(a,i),i=a);return this}function eC(e){e||(e=tC);function t(d,f){return d&&f?e(d.__data__,f.__data__):!d-!f}for(var n=this._groups,r=n.length,o=new Array(r),i=0;i<r;++i){for(var a=n[i],s=a.length,l=o[i]=new Array(s),c,u=0;u<s;++u)(c=a[u])&&(l[u]=c);l.sort(t)}return new qt(o,this._parents).order()}function tC(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function nC(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function rC(){return Array.from(this)}function oC(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],o=0,i=r.length;o<i;++o){var a=r[o];if(a)return a}return null}function iC(){let e=0;for(const t of this)++e;return e}function aC(){return!this.node()}function sC(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var o=t[n],i=0,a=o.length,s;i<a;++i)(s=o[i])&&e.call(s,s.__data__,i,o);return this}function lC(e){return function(){this.removeAttribute(e)}}function cC(e){return function(){this.removeAttributeNS(e.space,e.local)}}function uC(e,t){return function(){this.setAttribute(e,t)}}function dC(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function fC(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function pC(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function gC(e,t){var n=ca(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?cC:lC:typeof t=="function"?n.local?pC:fC:n.local?dC:uC)(n,t))}function yf(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function hC(e){return function(){this.style.removeProperty(e)}}function mC(e,t,n){return function(){this.style.setProperty(e,t,n)}}function vC(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function yC(e,t,n){return arguments.length>1?this.each((t==null?hC:typeof t=="function"?vC:mC)(e,t,n??"")):no(this.node(),e)}function no(e,t){return e.style.getPropertyValue(t)||yf(e).getComputedStyle(e,null).getPropertyValue(t)}function bC(e){return function(){delete this[e]}}function CC(e,t){return function(){this[e]=t}}function wC(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function xC(e,t){return arguments.length>1?this.each((t==null?bC:typeof t=="function"?wC:CC)(e,t)):this.node()[e]}function bf(e){return e.trim().split(/^|\s+/)}function Sl(e){return e.classList||new Cf(e)}function Cf(e){this._node=e,this._names=bf(e.getAttribute("class")||"")}Cf.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function wf(e,t){for(var n=Sl(e),r=-1,o=t.length;++r<o;)n.add(t[r])}function xf(e,t){for(var n=Sl(e),r=-1,o=t.length;++r<o;)n.remove(t[r])}function SC(e){return function(){wf(this,e)}}function EC(e){return function(){xf(this,e)}}function $C(e,t){return function(){(t.apply(this,arguments)?wf:xf)(this,e)}}function OC(e,t){var n=bf(e+"");if(arguments.length<2){for(var r=Sl(this.node()),o=-1,i=n.length;++o<i;)if(!r.contains(n[o]))return!1;return!0}return this.each((typeof t=="function"?$C:t?SC:EC)(n,t))}function _C(){this.textContent=""}function NC(e){return function(){this.textContent=e}}function PC(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function TC(e){return arguments.length?this.each(e==null?_C:(typeof e=="function"?PC:NC)(e)):this.node().textContent}function IC(){this.innerHTML=""}function MC(e){return function(){this.innerHTML=e}}function AC(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function DC(e){return arguments.length?this.each(e==null?IC:(typeof e=="function"?AC:MC)(e)):this.node().innerHTML}function FC(){this.nextSibling&&this.parentNode.appendChild(this)}function LC(){return this.each(FC)}function jC(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function zC(){return this.each(jC)}function RC(e){var t=typeof e=="function"?e:pf(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function VC(){return null}function kC(e,t){var n=typeof e=="function"?e:pf(e),r=t==null?VC:typeof t=="function"?t:xl(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function HC(){var e=this.parentNode;e&&e.removeChild(this)}function BC(){return this.each(HC)}function WC(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function qC(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function UC(e){return this.select(e?qC:WC)}function GC(e){return arguments.length?this.property("__data__",e):this.node().__data__}function XC(e){return function(t){e.call(this,t,this.__data__)}}function YC(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function KC(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,o=t.length,i;n<o;++n)i=t[n],(!e.type||i.type===e.type)&&i.name===e.name?this.removeEventListener(i.type,i.listener,i.options):t[++r]=i;++r?t.length=r:delete this.__on}}}function ZC(e,t,n){return function(){var r=this.__on,o,i=XC(t);if(r){for(var a=0,s=r.length;a<s;++a)if((o=r[a]).type===e.type&&o.name===e.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=i,o.options=n),o.value=t;return}}this.addEventListener(e.type,i,n),o={type:e.type,name:e.name,value:t,listener:i,options:n},r?r.push(o):this.__on=[o]}}function QC(e,t,n){var r=YC(e+""),o,i=r.length,a;if(arguments.length<2){var s=this.node().__on;if(s){for(var l=0,c=s.length,u;l<c;++l)for(o=0,u=s[l];o<i;++o)if((a=r[o]).type===u.type&&a.name===u.name)return u.value}return}for(s=t?ZC:KC,o=0;o<i;++o)this.each(s(r[o],t,n));return this}function Sf(e,t,n){var r=yf(e),o=r.CustomEvent;typeof o=="function"?o=new o(t,n):(o=r.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function JC(e,t){return function(){return Sf(this,e,t)}}function ew(e,t){return function(){return Sf(this,e,t.apply(this,arguments))}}function tw(e,t){return this.each((typeof t=="function"?ew:JC)(e,t))}function*nw(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],o=0,i=r.length,a;o<i;++o)(a=r[o])&&(yield a)}var Ef=[null];function qt(e,t){this._groups=e,this._parents=t}function Zo(){return new qt([[document.documentElement]],Ef)}function rw(){return this}qt.prototype=Zo.prototype={constructor:qt,select:P1,selectAll:A1,selectChild:j1,selectChildren:k1,filter:H1,data:X1,enter:B1,exit:K1,join:Z1,merge:Q1,selection:rw,order:J1,sort:eC,call:nC,nodes:rC,node:oC,size:iC,empty:aC,each:sC,attr:gC,style:yC,property:xC,classed:OC,text:TC,html:DC,raise:LC,lower:zC,append:RC,insert:kC,remove:BC,clone:UC,datum:GC,on:QC,dispatch:tw,[Symbol.iterator]:nw};function Ut(e){return typeof e=="string"?new qt([[document.querySelector(e)]],[document.documentElement]):new qt([[e]],Ef)}function ow(e){let t;for(;t=e.sourceEvent;)e=t;return e}function dn(e,t){if(e=ow(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var o=t.getBoundingClientRect();return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}const iw={passive:!1},Qo={capture:!0,passive:!1};function El(e){e.stopImmediatePropagation()}function ro(e){e.preventDefault(),e.stopImmediatePropagation()}function $f(e){var t=e.document.documentElement,n=Ut(e).on("dragstart.drag",ro,Qo);"onselectstart"in t?n.on("selectstart.drag",ro,Qo):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function Of(e,t){var n=e.document.documentElement,r=Ut(e).on("dragstart.drag",null);t&&(r.on("click.drag",ro,Qo),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const da=e=>()=>e;function $l(e,{sourceEvent:t,subject:n,target:r,identifier:o,active:i,x:a,y:s,dx:l,dy:c,dispatch:u}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:o,enumerable:!0,configurable:!0},active:{value:i,enumerable:!0,configurable:!0},x:{value:a,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:c,enumerable:!0,configurable:!0},_:{value:u}})}$l.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function aw(e){return!e.ctrlKey&&!e.button}function sw(){return this.parentNode}function lw(e,t){return t??{x:e.x,y:e.y}}function cw(){return navigator.maxTouchPoints||"ontouchstart"in this}function _f(){var e=aw,t=sw,n=lw,r=cw,o={},i=sa("start","drag","end"),a=0,s,l,c,u,d=0;function f(C){C.on("mousedown.drag",p).filter(r).on("touchstart.drag",g).on("touchmove.drag",y,iw).on("touchend.drag touchcancel.drag",x).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(C,w){if(!(u||!e.call(this,C,w))){var $=b(this,t.call(this,C,w),C,w,"mouse");$&&(Ut(C.view).on("mousemove.drag",v,Qo).on("mouseup.drag",m,Qo),$f(C.view),El(C),c=!1,s=C.clientX,l=C.clientY,$("start",C))}}function v(C){if(ro(C),!c){var w=C.clientX-s,$=C.clientY-l;c=w*w+$*$>d}o.mouse("drag",C)}function m(C){Ut(C.view).on("mousemove.drag mouseup.drag",null),Of(C.view,c),ro(C),o.mouse("end",C)}function g(C,w){if(e.call(this,C,w)){var $=C.changedTouches,S=t.call(this,C,w),E=$.length,_,P;for(_=0;_<E;++_)(P=b(this,S,C,w,$[_].identifier,$[_]))&&(El(C),P("start",C,$[_]))}}function y(C){var w=C.changedTouches,$=w.length,S,E;for(S=0;S<$;++S)(E=o[w[S].identifier])&&(ro(C),E("drag",C,w[S]))}function x(C){var w=C.changedTouches,$=w.length,S,E;for(u&&clearTimeout(u),u=setTimeout(function(){u=null},500),S=0;S<$;++S)(E=o[w[S].identifier])&&(El(C),E("end",C,w[S]))}function b(C,w,$,S,E,_){var P=i.copy(),A=dn(_||$,w),L,D,O;if((O=n.call(C,new $l("beforestart",{sourceEvent:$,target:f,identifier:E,active:a,x:A[0],y:A[1],dx:0,dy:0,dispatch:P}),S))!=null)return L=O.x-A[0]||0,D=O.y-A[1]||0,function M(N,I,j){var z=A,F;switch(N){case"start":o[E]=M,F=a++;break;case"end":delete o[E],--a;case"drag":A=dn(j||I,w),F=a;break}P.call(N,C,new $l(N,{sourceEvent:I,subject:O,target:f,identifier:E,active:F,x:A[0]+L,y:A[1]+D,dx:A[0]-z[0],dy:A[1]-z[1],dispatch:P}),S)}}return f.filter=function(C){return arguments.length?(e=typeof C=="function"?C:da(!!C),f):e},f.container=function(C){return arguments.length?(t=typeof C=="function"?C:da(C),f):t},f.subject=function(C){return arguments.length?(n=typeof C=="function"?C:da(C),f):n},f.touchable=function(C){return arguments.length?(r=typeof C=="function"?C:da(!!C),f):r},f.on=function(){var C=i.on.apply(i,arguments);return C===i?f:C},f.clickDistance=function(C){return arguments.length?(d=(C=+C)*C,f):Math.sqrt(d)},f}function Ol(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Nf(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Jo(){}var ei=.7,fa=1/ei,oo="\\s*([+-]?\\d+)\\s*",ti="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",$n="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",uw=/^#([0-9a-f]{3,8})$/,dw=new RegExp(`^rgb\\(${oo},${oo},${oo}\\)$`),fw=new RegExp(`^rgb\\(${$n},${$n},${$n}\\)$`),pw=new RegExp(`^rgba\\(${oo},${oo},${oo},${ti}\\)$`),gw=new RegExp(`^rgba\\(${$n},${$n},${$n},${ti}\\)$`),hw=new RegExp(`^hsl\\(${ti},${$n},${$n}\\)$`),mw=new RegExp(`^hsla\\(${ti},${$n},${$n},${ti}\\)$`),Pf={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Ol(Jo,Ar,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Tf,formatHex:Tf,formatHex8:vw,formatHsl:yw,formatRgb:If,toString:If});function Tf(){return this.rgb().formatHex()}function vw(){return this.rgb().formatHex8()}function yw(){return Lf(this).formatHsl()}function If(){return this.rgb().formatRgb()}function Ar(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=uw.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Mf(t):n===3?new Vt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?pa(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?pa(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=dw.exec(e))?new Vt(t[1],t[2],t[3],1):(t=fw.exec(e))?new Vt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=pw.exec(e))?pa(t[1],t[2],t[3],t[4]):(t=gw.exec(e))?pa(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=hw.exec(e))?Ff(t[1],t[2]/100,t[3]/100,1):(t=mw.exec(e))?Ff(t[1],t[2]/100,t[3]/100,t[4]):Pf.hasOwnProperty(e)?Mf(Pf[e]):e==="transparent"?new Vt(NaN,NaN,NaN,0):null}function Mf(e){return new Vt(e>>16&255,e>>8&255,e&255,1)}function pa(e,t,n,r){return r<=0&&(e=t=n=NaN),new Vt(e,t,n,r)}function bw(e){return e instanceof Jo||(e=Ar(e)),e?(e=e.rgb(),new Vt(e.r,e.g,e.b,e.opacity)):new Vt}function _l(e,t,n,r){return arguments.length===1?bw(e):new Vt(e,t,n,r??1)}function Vt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Ol(Vt,_l,Nf(Jo,{brighter(e){return e=e==null?fa:Math.pow(fa,e),new Vt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ei:Math.pow(ei,e),new Vt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Vt(Dr(this.r),Dr(this.g),Dr(this.b),ga(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Af,formatHex:Af,formatHex8:Cw,formatRgb:Df,toString:Df}));function Af(){return`#${Fr(this.r)}${Fr(this.g)}${Fr(this.b)}`}function Cw(){return`#${Fr(this.r)}${Fr(this.g)}${Fr(this.b)}${Fr((isNaN(this.opacity)?1:this.opacity)*255)}`}function Df(){const e=ga(this.opacity);return`${e===1?"rgb(":"rgba("}${Dr(this.r)}, ${Dr(this.g)}, ${Dr(this.b)}${e===1?")":`, ${e})`}`}function ga(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Dr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Fr(e){return e=Dr(e),(e<16?"0":"")+e.toString(16)}function Ff(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new fn(e,t,n,r)}function Lf(e){if(e instanceof fn)return new fn(e.h,e.s,e.l,e.opacity);if(e instanceof Jo||(e=Ar(e)),!e)return new fn;if(e instanceof fn)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(t===i?a=(n-r)/s+(n<r)*6:n===i?a=(r-t)/s+2:a=(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new fn(a,s,l,e.opacity)}function ww(e,t,n,r){return arguments.length===1?Lf(e):new fn(e,t,n,r??1)}function fn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Ol(fn,ww,Nf(Jo,{brighter(e){return e=e==null?fa:Math.pow(fa,e),new fn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ei:Math.pow(ei,e),new fn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Vt(Nl(e>=240?e-240:e+120,o,r),Nl(e,o,r),Nl(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new fn(jf(this.h),ha(this.s),ha(this.l),ga(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=ga(this.opacity);return`${e===1?"hsl(":"hsla("}${jf(this.h)}, ${ha(this.s)*100}%, ${ha(this.l)*100}%${e===1?")":`, ${e})`}`}}));function jf(e){return e=(e||0)%360,e<0?e+360:e}function ha(e){return Math.max(0,Math.min(1,e||0))}function Nl(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Pl=e=>()=>e;function xw(e,t){return function(n){return e+n*t}}function Sw(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function Ew(e){return(e=+e)==1?zf:function(t,n){return n-t?Sw(t,n,e):Pl(isNaN(t)?n:t)}}function zf(e,t){var n=t-e;return n?xw(e,n):Pl(isNaN(e)?t:e)}const ma=function e(t){var n=Ew(t);function r(o,i){var a=n((o=_l(o)).r,(i=_l(i)).r),s=n(o.g,i.g),l=n(o.b,i.b),c=zf(o.opacity,i.opacity);return function(u){return o.r=a(u),o.g=s(u),o.b=l(u),o.opacity=c(u),o+""}}return r.gamma=e,r}(1);function $w(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),o;return function(i){for(o=0;o<n;++o)r[o]=e[o]*(1-i)+t[o]*i;return r}}function Ow(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function _w(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,o=new Array(r),i=new Array(n),a;for(a=0;a<r;++a)o[a]=ni(e[a],t[a]);for(;a<n;++a)i[a]=t[a];return function(s){for(a=0;a<r;++a)i[a]=o[a](s);return i}}function Nw(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function On(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Pw(e,t){var n={},r={},o;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(o in t)o in e?n[o]=ni(e[o],t[o]):r[o]=t[o];return function(i){for(o in n)r[o]=n[o](i);return r}}var Tl=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Il=new RegExp(Tl.source,"g");function Tw(e){return function(){return e}}function Iw(e){return function(t){return e(t)+""}}function Rf(e,t){var n=Tl.lastIndex=Il.lastIndex=0,r,o,i,a=-1,s=[],l=[];for(e=e+"",t=t+"";(r=Tl.exec(e))&&(o=Il.exec(t));)(i=o.index)>n&&(i=t.slice(n,i),s[a]?s[a]+=i:s[++a]=i),(r=r[0])===(o=o[0])?s[a]?s[a]+=o:s[++a]=o:(s[++a]=null,l.push({i:a,x:On(r,o)})),n=Il.lastIndex;return n<t.length&&(i=t.slice(n),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?Iw(l[0].x):Tw(t):(t=l.length,function(c){for(var u=0,d;u<t;++u)s[(d=l[u]).i]=d.x(c);return s.join("")})}function ni(e,t){var n=typeof t,r;return t==null||n==="boolean"?Pl(t):(n==="number"?On:n==="string"?(r=Ar(t))?(t=r,ma):Rf:t instanceof Ar?ma:t instanceof Date?Nw:Ow(t)?$w:Array.isArray(t)?_w:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Pw:On)(e,t)}var Vf=180/Math.PI,Ml={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function kf(e,t,n,r,o,i){var a,s,l;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r<t*n&&(e=-e,t=-t,l=-l,a=-a),{translateX:o,translateY:i,rotate:Math.atan2(t,e)*Vf,skewX:Math.atan(l)*Vf,scaleX:a,scaleY:s}}var va;function Mw(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Ml:kf(t.a,t.b,t.c,t.d,t.e,t.f)}function Aw(e){return e==null||(va||(va=document.createElementNS("http://www.w3.org/2000/svg","g")),va.setAttribute("transform",e),!(e=va.transform.baseVal.consolidate()))?Ml:(e=e.matrix,kf(e.a,e.b,e.c,e.d,e.e,e.f))}function Hf(e,t,n,r){function o(c){return c.length?c.pop()+" ":""}function i(c,u,d,f,p,v){if(c!==d||u!==f){var m=p.push("translate(",null,t,null,n);v.push({i:m-4,x:On(c,d)},{i:m-2,x:On(u,f)})}else(d||f)&&p.push("translate("+d+t+f+n)}function a(c,u,d,f){c!==u?(c-u>180?u+=360:u-c>180&&(c+=360),f.push({i:d.push(o(d)+"rotate(",null,r)-2,x:On(c,u)})):u&&d.push(o(d)+"rotate("+u+r)}function s(c,u,d,f){c!==u?f.push({i:d.push(o(d)+"skewX(",null,r)-2,x:On(c,u)}):u&&d.push(o(d)+"skewX("+u+r)}function l(c,u,d,f,p,v){if(c!==d||u!==f){var m=p.push(o(p)+"scale(",null,",",null,")");v.push({i:m-4,x:On(c,d)},{i:m-2,x:On(u,f)})}else(d!==1||f!==1)&&p.push(o(p)+"scale("+d+","+f+")")}return function(c,u){var d=[],f=[];return c=e(c),u=e(u),i(c.translateX,c.translateY,u.translateX,u.translateY,d,f),a(c.rotate,u.rotate,d,f),s(c.skewX,u.skewX,d,f),l(c.scaleX,c.scaleY,u.scaleX,u.scaleY,d,f),c=u=null,function(p){for(var v=-1,m=f.length,g;++v<m;)d[(g=f[v]).i]=g.x(p);return d.join("")}}}var Dw=Hf(Mw,"px, ","px)","deg)"),Fw=Hf(Aw,", ",")",")"),Lw=1e-12;function Bf(e){return((e=Math.exp(e))+1/e)/2}function jw(e){return((e=Math.exp(e))-1/e)/2}function zw(e){return((e=Math.exp(2*e))-1)/(e+1)}const ya=function e(t,n,r){function o(i,a){var s=i[0],l=i[1],c=i[2],u=a[0],d=a[1],f=a[2],p=u-s,v=d-l,m=p*p+v*v,g,y;if(m<Lw)y=Math.log(f/c)/t,g=function(S){return[s+S*p,l+S*v,c*Math.exp(t*S*y)]};else{var x=Math.sqrt(m),b=(f*f-c*c+r*m)/(2*c*n*x),C=(f*f-c*c-r*m)/(2*f*n*x),w=Math.log(Math.sqrt(b*b+1)-b),$=Math.log(Math.sqrt(C*C+1)-C);y=($-w)/t,g=function(S){var E=S*y,_=Bf(w),P=c/(n*x)*(_*zw(t*E+w)-jw(w));return[s+P*p,l+P*v,c*_/Bf(t*E+w)]}}return g.duration=y*1e3*t/Math.SQRT2,g}return o.rho=function(i){var a=Math.max(.001,+i),s=a*a,l=s*s;return e(a,s,l)},o}(Math.SQRT2,2,4);var io=0,ri=0,oi=0,Wf=1e3,ba,ii,Ca=0,Lr=0,wa=0,ai=typeof performance=="object"&&performance.now?performance:Date,qf=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Al(){return Lr||(qf(Rw),Lr=ai.now()+wa)}function Rw(){Lr=0}function xa(){this._call=this._time=this._next=null}xa.prototype=Uf.prototype={constructor:xa,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?Al():+n)+(t==null?0:+t),!this._next&&ii!==this&&(ii?ii._next=this:ba=this,ii=this),this._call=e,this._time=n,Dl()},stop:function(){this._call&&(this._call=null,this._time=1/0,Dl())}};function Uf(e,t,n){var r=new xa;return r.restart(e,t,n),r}function Vw(){Al(),++io;for(var e=ba,t;e;)(t=Lr-e._time)>=0&&e._call.call(void 0,t),e=e._next;--io}function Gf(){Lr=(Ca=ai.now())+wa,io=ri=0;try{Vw()}finally{io=0,Hw(),Lr=0}}function kw(){var e=ai.now(),t=e-Ca;t>Wf&&(wa-=t,Ca=e)}function Hw(){for(var e,t=ba,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:ba=n);ii=e,Dl(r)}function Dl(e){if(!io){ri&&(ri=clearTimeout(ri));var t=e-Lr;t>24?(e<1/0&&(ri=setTimeout(Gf,e-ai.now()-wa)),oi&&(oi=clearInterval(oi))):(oi||(Ca=ai.now(),oi=setInterval(kw,Wf)),io=1,qf(Gf))}}function Xf(e,t,n){var r=new xa;return t=t==null?0:+t,r.restart(o=>{r.stop(),e(o+t)},t,n),r}var Bw=sa("start","end","cancel","interrupt"),Ww=[],Yf=0,Kf=1,Fl=2,Sa=3,Zf=4,Ll=5,Ea=6;function $a(e,t,n,r,o,i){var a=e.__transition;if(!a)e.__transition={};else if(n in a)return;qw(e,n,{name:t,index:r,group:o,on:Bw,tween:Ww,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:Yf})}function jl(e,t){var n=pn(e,t);if(n.state>Yf)throw new Error("too late; already scheduled");return n}function _n(e,t){var n=pn(e,t);if(n.state>Sa)throw new Error("too late; already running");return n}function pn(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function qw(e,t,n){var r=e.__transition,o;r[t]=n,n.timer=Uf(i,0,n.time);function i(c){n.state=Kf,n.timer.restart(a,n.delay,n.time),n.delay<=c&&a(c-n.delay)}function a(c){var u,d,f,p;if(n.state!==Kf)return l();for(u in r)if(p=r[u],p.name===n.name){if(p.state===Sa)return Xf(a);p.state===Zf?(p.state=Ea,p.timer.stop(),p.on.call("interrupt",e,e.__data__,p.index,p.group),delete r[u]):+u<t&&(p.state=Ea,p.timer.stop(),p.on.call("cancel",e,e.__data__,p.index,p.group),delete r[u])}if(Xf(function(){n.state===Sa&&(n.state=Zf,n.timer.restart(s,n.delay,n.time),s(c))}),n.state=Fl,n.on.call("start",e,e.__data__,n.index,n.group),n.state===Fl){for(n.state=Sa,o=new Array(f=n.tween.length),u=0,d=-1;u<f;++u)(p=n.tween[u].value.call(e,e.__data__,n.index,n.group))&&(o[++d]=p);o.length=d+1}}function s(c){for(var u=c<n.duration?n.ease.call(null,c/n.duration):(n.timer.restart(l),n.state=Ll,1),d=-1,f=o.length;++d<f;)o[d].call(e,u);n.state===Ll&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){n.state=Ea,n.timer.stop(),delete r[t];for(var c in r)return;delete e.__transition}}function Oa(e,t){var n=e.__transition,r,o,i=!0,a;if(n){t=t==null?null:t+"";for(a in n){if((r=n[a]).name!==t){i=!1;continue}o=r.state>Fl&&r.state<Ll,r.state=Ea,r.timer.stop(),r.on.call(o?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[a]}i&&delete e.__transition}}function Uw(e){return this.each(function(){Oa(this,e)})}function Gw(e,t){var n,r;return function(){var o=_n(this,e),i=o.tween;if(i!==n){r=n=i;for(var a=0,s=r.length;a<s;++a)if(r[a].name===t){r=r.slice(),r.splice(a,1);break}}o.tween=r}}function Xw(e,t,n){var r,o;if(typeof n!="function")throw new Error;return function(){var i=_n(this,e),a=i.tween;if(a!==r){o=(r=a).slice();for(var s={name:t,value:n},l=0,c=o.length;l<c;++l)if(o[l].name===t){o[l]=s;break}l===c&&o.push(s)}i.tween=o}}function Yw(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=pn(this.node(),n).tween,o=0,i=r.length,a;o<i;++o)if((a=r[o]).name===e)return a.value;return null}return this.each((t==null?Gw:Xw)(n,e,t))}function zl(e,t,n){var r=e._id;return e.each(function(){var o=_n(this,r);(o.value||(o.value={}))[t]=n.apply(this,arguments)}),function(o){return pn(o,r).value[t]}}function Qf(e,t){var n;return(typeof t=="number"?On:t instanceof Ar?ma:(n=Ar(t))?(t=n,ma):Rf)(e,t)}function Kw(e){return function(){this.removeAttribute(e)}}function Zw(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Qw(e,t,n){var r,o=n+"",i;return function(){var a=this.getAttribute(e);return a===o?null:a===r?i:i=t(r=a,n)}}function Jw(e,t,n){var r,o=n+"",i;return function(){var a=this.getAttributeNS(e.space,e.local);return a===o?null:a===r?i:i=t(r=a,n)}}function ex(e,t,n){var r,o,i;return function(){var a,s=n(this),l;return s==null?void this.removeAttribute(e):(a=this.getAttribute(e),l=s+"",a===l?null:a===r&&l===o?i:(o=l,i=t(r=a,s)))}}function tx(e,t,n){var r,o,i;return function(){var a,s=n(this),l;return s==null?void this.removeAttributeNS(e.space,e.local):(a=this.getAttributeNS(e.space,e.local),l=s+"",a===l?null:a===r&&l===o?i:(o=l,i=t(r=a,s)))}}function nx(e,t){var n=ca(e),r=n==="transform"?Fw:Qf;return this.attrTween(e,typeof t=="function"?(n.local?tx:ex)(n,r,zl(this,"attr."+e,t)):t==null?(n.local?Zw:Kw)(n):(n.local?Jw:Qw)(n,r,t))}function rx(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function ox(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function ix(e,t){var n,r;function o(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&ox(e,i)),n}return o._value=t,o}function ax(e,t){var n,r;function o(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&rx(e,i)),n}return o._value=t,o}function sx(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var r=ca(e);return this.tween(n,(r.local?ix:ax)(r,t))}function lx(e,t){return function(){jl(this,e).delay=+t.apply(this,arguments)}}function cx(e,t){return t=+t,function(){jl(this,e).delay=t}}function ux(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?lx:cx)(t,e)):pn(this.node(),t).delay}function dx(e,t){return function(){_n(this,e).duration=+t.apply(this,arguments)}}function fx(e,t){return t=+t,function(){_n(this,e).duration=t}}function px(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?dx:fx)(t,e)):pn(this.node(),t).duration}function gx(e,t){if(typeof t!="function")throw new Error;return function(){_n(this,e).ease=t}}function hx(e){var t=this._id;return arguments.length?this.each(gx(t,e)):pn(this.node(),t).ease}function mx(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;_n(this,e).ease=n}}function vx(e){if(typeof e!="function")throw new Error;return this.each(mx(this._id,e))}function yx(e){typeof e!="function"&&(e=hf(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var i=t[o],a=i.length,s=r[o]=[],l,c=0;c<a;++c)(l=i[c])&&e.call(l,l.__data__,c,i)&&s.push(l);return new Gn(r,this._parents,this._name,this._id)}function bx(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,o=n.length,i=Math.min(r,o),a=new Array(r),s=0;s<i;++s)for(var l=t[s],c=n[s],u=l.length,d=a[s]=new Array(u),f,p=0;p<u;++p)(f=l[p]||c[p])&&(d[p]=f);for(;s<r;++s)a[s]=t[s];return new Gn(a,this._parents,this._name,this._id)}function Cx(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function wx(e,t,n){var r,o,i=Cx(t)?jl:_n;return function(){var a=i(this,e),s=a.on;s!==r&&(o=(r=s).copy()).on(t,n),a.on=o}}function xx(e,t){var n=this._id;return arguments.length<2?pn(this.node(),n).on.on(e):this.each(wx(n,e,t))}function Sx(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function Ex(){return this.on("end.remove",Sx(this._id))}function $x(e){var t=this._name,n=this._id;typeof e!="function"&&(e=xl(e));for(var r=this._groups,o=r.length,i=new Array(o),a=0;a<o;++a)for(var s=r[a],l=s.length,c=i[a]=new Array(l),u,d,f=0;f<l;++f)(u=s[f])&&(d=e.call(u,u.__data__,f,s))&&("__data__"in u&&(d.__data__=u.__data__),c[f]=d,$a(c[f],t,n,f,c,pn(u,n)));return new Gn(i,this._parents,t,n)}function Ox(e){var t=this._name,n=this._id;typeof e!="function"&&(e=gf(e));for(var r=this._groups,o=r.length,i=[],a=[],s=0;s<o;++s)for(var l=r[s],c=l.length,u,d=0;d<c;++d)if(u=l[d]){for(var f=e.call(u,u.__data__,d,l),p,v=pn(u,n),m=0,g=f.length;m<g;++m)(p=f[m])&&$a(p,t,n,m,f,v);i.push(f),a.push(u)}return new Gn(i,a,t,n)}var _x=Zo.prototype.constructor;function Nx(){return new _x(this._groups,this._parents)}function Px(e,t){var n,r,o;return function(){var i=no(this,e),a=(this.style.removeProperty(e),no(this,e));return i===a?null:i===n&&a===r?o:o=t(n=i,r=a)}}function Jf(e){return function(){this.style.removeProperty(e)}}function Tx(e,t,n){var r,o=n+"",i;return function(){var a=no(this,e);return a===o?null:a===r?i:i=t(r=a,n)}}function Ix(e,t,n){var r,o,i;return function(){var a=no(this,e),s=n(this),l=s+"";return s==null&&(l=s=(this.style.removeProperty(e),no(this,e))),a===l?null:a===r&&l===o?i:(o=l,i=t(r=a,s))}}function Mx(e,t){var n,r,o,i="style."+t,a="end."+i,s;return function(){var l=_n(this,e),c=l.on,u=l.value[i]==null?s||(s=Jf(t)):void 0;(c!==n||o!==u)&&(r=(n=c).copy()).on(a,o=u),l.on=r}}function Ax(e,t,n){var r=(e+="")=="transform"?Dw:Qf;return t==null?this.styleTween(e,Px(e,r)).on("end.style."+e,Jf(e)):typeof t=="function"?this.styleTween(e,Ix(e,r,zl(this,"style."+e,t))).each(Mx(this._id,e)):this.styleTween(e,Tx(e,r,t),n).on("end.style."+e,null)}function Dx(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function Fx(e,t,n){var r,o;function i(){var a=t.apply(this,arguments);return a!==o&&(r=(o=a)&&Dx(e,a,n)),r}return i._value=t,i}function Lx(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;return this.tween(r,Fx(e,t,n??""))}function jx(e){return function(){this.textContent=e}}function zx(e){return function(){var t=e(this);this.textContent=t??""}}function Rx(e){return this.tween("text",typeof e=="function"?zx(zl(this,"text",e)):jx(e==null?"":e+""))}function Vx(e){return function(t){this.textContent=e.call(this,t)}}function kx(e){var t,n;function r(){var o=e.apply(this,arguments);return o!==n&&(t=(n=o)&&Vx(o)),t}return r._value=e,r}function Hx(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,kx(e))}function Bx(){for(var e=this._name,t=this._id,n=ep(),r=this._groups,o=r.length,i=0;i<o;++i)for(var a=r[i],s=a.length,l,c=0;c<s;++c)if(l=a[c]){var u=pn(l,t);$a(l,e,n,c,a,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Gn(r,this._parents,e,n)}function Wx(){var e,t,n=this,r=n._id,o=n.size();return new Promise(function(i,a){var s={value:a},l={value:function(){--o===0&&i()}};n.each(function(){var c=_n(this,r),u=c.on;u!==e&&(t=(e=u).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(l)),c.on=t}),o===0&&i()})}var qx=0;function Gn(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function ep(){return++qx}var Xn=Zo.prototype;Gn.prototype={constructor:Gn,select:$x,selectAll:Ox,selectChild:Xn.selectChild,selectChildren:Xn.selectChildren,filter:yx,merge:bx,selection:Nx,transition:Bx,call:Xn.call,nodes:Xn.nodes,node:Xn.node,size:Xn.size,empty:Xn.empty,each:Xn.each,on:xx,attr:nx,attrTween:sx,style:Ax,styleTween:Lx,text:Rx,textTween:Hx,remove:Ex,tween:Yw,delay:ux,duration:px,ease:hx,easeVarying:vx,end:Wx,[Symbol.iterator]:Xn[Symbol.iterator]};function Ux(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Gx={time:null,delay:0,duration:250,ease:Ux};function Xx(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function Yx(e){var t,n;e instanceof Gn?(t=e._id,e=e._name):(t=ep(),(n=Gx).time=Al(),e=e==null?null:e+"");for(var r=this._groups,o=r.length,i=0;i<o;++i)for(var a=r[i],s=a.length,l,c=0;c<s;++c)(l=a[c])&&$a(l,e,t,c,a,n||Xx(l,t));return new Gn(r,this._parents,e,t)}Zo.prototype.interrupt=Uw,Zo.prototype.transition=Yx;const _a=e=>()=>e;function Kx(e,{sourceEvent:t,target:n,transform:r,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:o}})}function Yn(e,t,n){this.k=e,this.x=t,this.y=n}Yn.prototype={constructor:Yn,scale:function(e){return e===1?this:new Yn(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Yn(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Na=new Yn(1,0,0);tp.prototype=Yn.prototype;function tp(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Na;return e.__zoom}function Rl(e){e.stopImmediatePropagation()}function si(e){e.preventDefault(),e.stopImmediatePropagation()}function Zx(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function Qx(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function np(){return this.__zoom||Na}function Jx(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function eS(){return navigator.maxTouchPoints||"ontouchstart"in this}function tS(e,t,n){var r=e.invertX(t[0][0])-n[0][0],o=e.invertX(t[1][0])-n[1][0],i=e.invertY(t[0][1])-n[0][1],a=e.invertY(t[1][1])-n[1][1];return e.translate(o>r?(r+o)/2:Math.min(0,r)||Math.max(0,o),a>i?(i+a)/2:Math.min(0,i)||Math.max(0,a))}function rp(){var e=Zx,t=Qx,n=tS,r=Jx,o=eS,i=[0,1/0],a=[[-1/0,-1/0],[1/0,1/0]],s=250,l=ya,c=sa("start","zoom","end"),u,d,f,p=500,v=150,m=0,g=10;function y(O){O.property("__zoom",np).on("wheel.zoom",E,{passive:!1}).on("mousedown.zoom",_).on("dblclick.zoom",P).filter(o).on("touchstart.zoom",A).on("touchmove.zoom",L).on("touchend.zoom touchcancel.zoom",D).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}y.transform=function(O,M,N,I){var j=O.selection?O.selection():O;j.property("__zoom",np),O!==j?w(O,M,N,I):j.interrupt().each(function(){$(this,arguments).event(I).start().zoom(null,typeof M=="function"?M.apply(this,arguments):M).end()})},y.scaleBy=function(O,M,N,I){y.scaleTo(O,function(){var j=this.__zoom.k,z=typeof M=="function"?M.apply(this,arguments):M;return j*z},N,I)},y.scaleTo=function(O,M,N,I){y.transform(O,function(){var j=t.apply(this,arguments),z=this.__zoom,F=N==null?C(j):typeof N=="function"?N.apply(this,arguments):N,R=z.invert(F),W=typeof M=="function"?M.apply(this,arguments):M;return n(b(x(z,W),F,R),j,a)},N,I)},y.translateBy=function(O,M,N,I){y.transform(O,function(){return n(this.__zoom.translate(typeof M=="function"?M.apply(this,arguments):M,typeof N=="function"?N.apply(this,arguments):N),t.apply(this,arguments),a)},null,I)},y.translateTo=function(O,M,N,I,j){y.transform(O,function(){var z=t.apply(this,arguments),F=this.__zoom,R=I==null?C(z):typeof I=="function"?I.apply(this,arguments):I;return n(Na.translate(R[0],R[1]).scale(F.k).translate(typeof M=="function"?-M.apply(this,arguments):-M,typeof N=="function"?-N.apply(this,arguments):-N),z,a)},I,j)};function x(O,M){return M=Math.max(i[0],Math.min(i[1],M)),M===O.k?O:new Yn(M,O.x,O.y)}function b(O,M,N){var I=M[0]-N[0]*O.k,j=M[1]-N[1]*O.k;return I===O.x&&j===O.y?O:new Yn(O.k,I,j)}function C(O){return[(+O[0][0]+ +O[1][0])/2,(+O[0][1]+ +O[1][1])/2]}function w(O,M,N,I){O.on("start.zoom",function(){$(this,arguments).event(I).start()}).on("interrupt.zoom end.zoom",function(){$(this,arguments).event(I).end()}).tween("zoom",function(){var j=this,z=arguments,F=$(j,z).event(I),R=t.apply(j,z),W=N==null?C(R):typeof N=="function"?N.apply(j,z):N,H=Math.max(R[1][0]-R[0][0],R[1][1]-R[0][1]),V=j.__zoom,B=typeof M=="function"?M.apply(j,z):M,U=l(V.invert(W).concat(H/V.k),B.invert(W).concat(H/B.k));return function(K){if(K===1)K=B;else{var G=U(K),Z=H/G[2];K=new Yn(Z,W[0]-G[0]*Z,W[1]-G[1]*Z)}F.zoom(null,K)}})}function $(O,M,N){return!N&&O.__zooming||new S(O,M)}function S(O,M){this.that=O,this.args=M,this.active=0,this.sourceEvent=null,this.extent=t.apply(O,M),this.taps=0}S.prototype={event:function(O){return O&&(this.sourceEvent=O),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(O,M){return this.mouse&&O!=="mouse"&&(this.mouse[1]=M.invert(this.mouse[0])),this.touch0&&O!=="touch"&&(this.touch0[1]=M.invert(this.touch0[0])),this.touch1&&O!=="touch"&&(this.touch1[1]=M.invert(this.touch1[0])),this.that.__zoom=M,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(O){var M=Ut(this.that).datum();c.call(O,this.that,new Kx(O,{sourceEvent:this.sourceEvent,target:y,transform:this.that.__zoom,dispatch:c}),M)}};function E(O,...M){if(!e.apply(this,arguments))return;var N=$(this,M).event(O),I=this.__zoom,j=Math.max(i[0],Math.min(i[1],I.k*Math.pow(2,r.apply(this,arguments)))),z=dn(O);if(N.wheel)(N.mouse[0][0]!==z[0]||N.mouse[0][1]!==z[1])&&(N.mouse[1]=I.invert(N.mouse[0]=z)),clearTimeout(N.wheel);else{if(I.k===j)return;N.mouse=[z,I.invert(z)],Oa(this),N.start()}si(O),N.wheel=setTimeout(F,v),N.zoom("mouse",n(b(x(I,j),N.mouse[0],N.mouse[1]),N.extent,a));function F(){N.wheel=null,N.end()}}function _(O,...M){if(f||!e.apply(this,arguments))return;var N=O.currentTarget,I=$(this,M,!0).event(O),j=Ut(O.view).on("mousemove.zoom",W,!0).on("mouseup.zoom",H,!0),z=dn(O,N),F=O.clientX,R=O.clientY;$f(O.view),Rl(O),I.mouse=[z,this.__zoom.invert(z)],Oa(this),I.start();function W(V){if(si(V),!I.moved){var B=V.clientX-F,U=V.clientY-R;I.moved=B*B+U*U>m}I.event(V).zoom("mouse",n(b(I.that.__zoom,I.mouse[0]=dn(V,N),I.mouse[1]),I.extent,a))}function H(V){j.on("mousemove.zoom mouseup.zoom",null),Of(V.view,I.moved),si(V),I.event(V).end()}}function P(O,...M){if(e.apply(this,arguments)){var N=this.__zoom,I=dn(O.changedTouches?O.changedTouches[0]:O,this),j=N.invert(I),z=N.k*(O.shiftKey?.5:2),F=n(b(x(N,z),I,j),t.apply(this,M),a);si(O),s>0?Ut(this).transition().duration(s).call(w,F,I,O):Ut(this).call(y.transform,F,I,O)}}function A(O,...M){if(e.apply(this,arguments)){var N=O.touches,I=N.length,j=$(this,M,O.changedTouches.length===I).event(O),z,F,R,W;for(Rl(O),F=0;F<I;++F)R=N[F],W=dn(R,this),W=[W,this.__zoom.invert(W),R.identifier],j.touch0?!j.touch1&&j.touch0[2]!==W[2]&&(j.touch1=W,j.taps=0):(j.touch0=W,z=!0,j.taps=1+!!u);u&&(u=clearTimeout(u)),z&&(j.taps<2&&(d=W[0],u=setTimeout(function(){u=null},p)),Oa(this),j.start())}}function L(O,...M){if(this.__zooming){var N=$(this,M).event(O),I=O.changedTouches,j=I.length,z,F,R,W;for(si(O),z=0;z<j;++z)F=I[z],R=dn(F,this),N.touch0&&N.touch0[2]===F.identifier?N.touch0[0]=R:N.touch1&&N.touch1[2]===F.identifier&&(N.touch1[0]=R);if(F=N.that.__zoom,N.touch1){var H=N.touch0[0],V=N.touch0[1],B=N.touch1[0],U=N.touch1[1],K=(K=B[0]-H[0])*K+(K=B[1]-H[1])*K,G=(G=U[0]-V[0])*G+(G=U[1]-V[1])*G;F=x(F,Math.sqrt(K/G)),R=[(H[0]+B[0])/2,(H[1]+B[1])/2],W=[(V[0]+U[0])/2,(V[1]+U[1])/2]}else if(N.touch0)R=N.touch0[0],W=N.touch0[1];else return;N.zoom("touch",n(b(F,R,W),N.extent,a))}}function D(O,...M){if(this.__zooming){var N=$(this,M).event(O),I=O.changedTouches,j=I.length,z,F;for(Rl(O),f&&clearTimeout(f),f=setTimeout(function(){f=null},p),z=0;z<j;++z)F=I[z],N.touch0&&N.touch0[2]===F.identifier?delete N.touch0:N.touch1&&N.touch1[2]===F.identifier&&delete N.touch1;if(N.touch1&&!N.touch0&&(N.touch0=N.touch1,delete N.touch1),N.touch0)N.touch0[1]=this.__zoom.invert(N.touch0[0]);else if(N.end(),N.taps===2&&(F=dn(F,this),Math.hypot(d[0]-F[0],d[1]-F[1])<g)){var R=Ut(this).on("dblclick.zoom");R&&R.apply(this,arguments)}}}return y.wheelDelta=function(O){return arguments.length?(r=typeof O=="function"?O:_a(+O),y):r},y.filter=function(O){return arguments.length?(e=typeof O=="function"?O:_a(!!O),y):e},y.touchable=function(O){return arguments.length?(o=typeof O=="function"?O:_a(!!O),y):o},y.extent=function(O){return arguments.length?(t=typeof O=="function"?O:_a([[+O[0][0],+O[0][1]],[+O[1][0],+O[1][1]]]),y):t},y.scaleExtent=function(O){return arguments.length?(i[0]=+O[0],i[1]=+O[1],y):[i[0],i[1]]},y.translateExtent=function(O){return arguments.length?(a[0][0]=+O[0][0],a[1][0]=+O[1][0],a[0][1]=+O[0][1],a[1][1]=+O[1][1],y):[[a[0][0],a[0][1]],[a[1][0],a[1][1]]]},y.constrain=function(O){return arguments.length?(n=O,y):n},y.duration=function(O){return arguments.length?(s=+O,y):s},y.interpolate=function(O){return arguments.length?(l=O,y):l},y.on=function(){var O=c.on.apply(c,arguments);return O===c?y:O},y.clickDistance=function(O){return arguments.length?(m=(O=+O)*O,y):Math.sqrt(m)},y.tapDistance=function(O){return arguments.length?(g=+O,y):g},y}const Gt={error001:()=>"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:e=>`Node type "${e}" not found. Using fallback type "default".`,error004:()=>"The React Flow parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:e=>`The old edge with id=${e} does not exist.`,error009:e=>`Marker type "${e}" doesn't exist.`,error008:(e,{id:t,sourceHandle:n,targetHandle:r})=>`Couldn't create edge for ${e} handle id: "${e==="source"?n:r}", edge id: ${t}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:e=>`Edge type "${e}" not found. Using fallback type "default".`,error012:e=>`Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(e="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${e}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs."},li=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],op=["Enter"," ","Escape"],ip={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:e,x:t,y:n})=>`Moved selected node ${e}. New position, x: ${t}, y: ${n}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};var ao;(function(e){e.Strict="strict",e.Loose="loose"})(ao||(ao={}));var jr;(function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"})(jr||(jr={}));var ci;(function(e){e.Partial="partial",e.Full="full"})(ci||(ci={}));const ap={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null};var mr;(function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"})(mr||(mr={}));var Pa;(function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"})(Pa||(Pa={}));var be;(function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"})(be||(be={}));const sp={[be.Left]:be.Right,[be.Right]:be.Left,[be.Top]:be.Bottom,[be.Bottom]:be.Top};function lp(e){return e===null?null:e?"valid":"invalid"}const cp=e=>"id"in e&&"source"in e&&"target"in e,nS=e=>"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),Vl=e=>"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),ui=(e,t=[0,0])=>{const{width:n,height:r}=Kn(e),o=e.origin??t,i=n*o[0],a=r*o[1];return{x:e.position.x-i,y:e.position.y-a}},rS=(e,t={nodeOrigin:[0,0]})=>{if(process.env.NODE_ENV==="development"&&!t.nodeLookup&&console.warn("Please use `getNodesBounds` from `useReactFlow`/`useSvelteFlow` hook to ensure correct values for sub flows. If not possible, you have to provide a nodeLookup to support sub flows."),e.length===0)return{x:0,y:0,width:0,height:0};const n=e.reduce((r,o)=>{const i=typeof o=="string";let a=!t.nodeLookup&&!i?o:void 0;t.nodeLookup&&(a=i?t.nodeLookup.get(o):Vl(o)?o:t.nodeLookup.get(o.id));const s=a?Ma(a,t.nodeOrigin):{x:0,y:0,x2:0,y2:0};return Ta(r,s)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return Ia(n)},di=(e,t={})=>{if(e.size===0)return{x:0,y:0,width:0,height:0};let n={x:1/0,y:1/0,x2:-1/0,y2:-1/0};return e.forEach(r=>{if(t.filter===void 0||t.filter(r)){const o=Ma(r);n=Ta(n,o)}}),Ia(n)},kl=(e,t,[n,r,o]=[0,0,1],i=!1,a=!1)=>{const s={...pi(t,[n,r,o]),width:t.width/o,height:t.height/o},l=[];for(const c of e.values()){const{measured:u,selectable:d=!0,hidden:f=!1}=c;if(a&&!d||f)continue;const p=u.width??c.width??c.initialWidth??null,v=u.height??c.height??c.initialHeight??null,m=fi(s,lo(c)),g=(p??0)*(v??0),y=i&&m>0;(!c.internals.handleBounds||y||m>=g||c.dragging)&&l.push(c)}return l},oS=(e,t)=>{const n=new Set;return e.forEach(r=>{n.add(r.id)}),t.filter(r=>n.has(r.source)||n.has(r.target))};function iS(e,t){const n=new Map,r=t!=null&&t.nodes?new Set(t.nodes.map(o=>o.id)):null;return e.forEach(o=>{o.measured.width&&o.measured.height&&((t==null?void 0:t.includeHiddenNodes)||!o.hidden)&&(!r||r.has(o.id))&&n.set(o.id,o)}),n}async function aS({nodes:e,width:t,height:n,panZoom:r,minZoom:o,maxZoom:i},a){if(e.size===0)return Promise.resolve(!0);const s=iS(e,a),l=di(s),c=Bl(l,t,n,(a==null?void 0:a.minZoom)??o,(a==null?void 0:a.maxZoom)??i,(a==null?void 0:a.padding)??.1);return await r.setViewport(c,{duration:a==null?void 0:a.duration,ease:a==null?void 0:a.ease,interpolate:a==null?void 0:a.interpolate}),Promise.resolve(!0)}function up({nodeId:e,nextPosition:t,nodeLookup:n,nodeOrigin:r=[0,0],nodeExtent:o,onError:i}){const a=n.get(e),s=a.parentId?n.get(a.parentId):void 0,{x:l,y:c}=s?s.internals.positionAbsolute:{x:0,y:0},u=a.origin??r;let d=o;if(a.extent==="parent"&&!a.expandParent)if(!s)i==null||i("005",Gt.error005());else{const p=s.measured.width,v=s.measured.height;p&&v&&(d=[[l,c],[l+p,c+v]])}else s&&uo(a.extent)&&(d=[[a.extent[0][0]+l,a.extent[0][1]+c],[a.extent[1][0]+l,a.extent[1][1]+c]]);const f=uo(d)?zr(t,d,a.measured):t;return(a.measured.width===void 0||a.measured.height===void 0)&&(i==null||i("015",Gt.error015())),{position:{x:f.x-l+(a.measured.width??0)*u[0],y:f.y-c+(a.measured.height??0)*u[1]},positionAbsolute:f}}async function sS({nodesToRemove:e=[],edgesToRemove:t=[],nodes:n,edges:r,onBeforeDelete:o}){const i=new Set(e.map(f=>f.id)),a=[];for(const f of n){if(f.deletable===!1)continue;const p=i.has(f.id),v=!p&&f.parentId&&a.find(m=>m.id===f.parentId);(p||v)&&a.push(f)}const s=new Set(t.map(f=>f.id)),l=r.filter(f=>f.deletable!==!1),u=oS(a,l);for(const f of l)s.has(f.id)&&!u.find(v=>v.id===f.id)&&u.push(f);if(!o)return{edges:u,nodes:a};const d=await o({nodes:a,edges:u});return typeof d=="boolean"?d?{edges:u,nodes:a}:{edges:[],nodes:[]}:d}const so=(e,t=0,n=1)=>Math.min(Math.max(e,t),n),zr=(e={x:0,y:0},t,n)=>({x:so(e.x,t[0][0],t[1][0]-((n==null?void 0:n.width)??0)),y:so(e.y,t[0][1],t[1][1]-((n==null?void 0:n.height)??0))});function dp(e,t,n){const{width:r,height:o}=Kn(n),{x:i,y:a}=n.internals.positionAbsolute;return zr(e,[[i,a],[i+r,a+o]],t)}const fp=(e,t,n)=>e<t?so(Math.abs(e-t),1,t)/t:e>n?-so(Math.abs(e-n),1,t)/t:0,pp=(e,t,n=15,r=40)=>{const o=fp(e.x,r,t.width-r)*n,i=fp(e.y,r,t.height-r)*n;return[o,i]},Ta=(e,t)=>({x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}),Hl=({x:e,y:t,width:n,height:r})=>({x:e,y:t,x2:e+n,y2:t+r}),Ia=({x:e,y:t,x2:n,y2:r})=>({x:e,y:t,width:n-e,height:r-t}),lo=(e,t=[0,0])=>{var o,i;const{x:n,y:r}=Vl(e)?e.internals.positionAbsolute:ui(e,t);return{x:n,y:r,width:((o=e.measured)==null?void 0:o.width)??e.width??e.initialWidth??0,height:((i=e.measured)==null?void 0:i.height)??e.height??e.initialHeight??0}},Ma=(e,t=[0,0])=>{var o,i;const{x:n,y:r}=Vl(e)?e.internals.positionAbsolute:ui(e,t);return{x:n,y:r,x2:n+(((o=e.measured)==null?void 0:o.width)??e.width??e.initialWidth??0),y2:r+(((i=e.measured)==null?void 0:i.height)??e.height??e.initialHeight??0)}},gp=(e,t)=>Ia(Ta(Hl(e),Hl(t))),fi=(e,t)=>{const n=Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x)),r=Math.max(0,Math.min(e.y+e.height,t.y+t.height)-Math.max(e.y,t.y));return Math.ceil(n*r)},hp=e=>gn(e.width)&&gn(e.height)&&gn(e.x)&&gn(e.y),gn=e=>!isNaN(e)&&isFinite(e),mp=(e,t)=>{process.env.NODE_ENV==="development"&&console.warn(`[React Flow]: ${t} Help: https://reactflow.dev/error#${e}`)},Aa=(e,t=[1,1])=>({x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}),pi=({x:e,y:t},[n,r,o],i=!1,a=[1,1])=>{const s={x:(e-n)/o,y:(t-r)/o};return i?Aa(s,a):s},Da=({x:e,y:t},[n,r,o])=>({x:e*o+n,y:t*o+r});function co(e,t){if(typeof e=="number")return Math.floor((t-t/(1+e))*.5);if(typeof e=="string"&&e.endsWith("px")){const n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(n)}if(typeof e=="string"&&e.endsWith("%")){const n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(t*n*.01)}return console.error(`[React Flow] The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function lS(e,t,n){if(typeof e=="string"||typeof e=="number"){const r=co(e,n),o=co(e,t);return{top:r,right:o,bottom:r,left:o,x:o*2,y:r*2}}if(typeof e=="object"){const r=co(e.top??e.y??0,n),o=co(e.bottom??e.y??0,n),i=co(e.left??e.x??0,t),a=co(e.right??e.x??0,t);return{top:r,right:a,bottom:o,left:i,x:i+a,y:r+o}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function cS(e,t,n,r,o,i){const{x:a,y:s}=Da(e,[t,n,r]),{x:l,y:c}=Da({x:e.x+e.width,y:e.y+e.height},[t,n,r]),u=o-l,d=i-c;return{left:Math.floor(a),top:Math.floor(s),right:Math.floor(u),bottom:Math.floor(d)}}const Bl=(e,t,n,r,o,i)=>{const a=lS(i,t,n),s=(t-a.x)/e.width,l=(n-a.y)/e.height,c=Math.min(s,l),u=so(c,r,o),d=e.x+e.width/2,f=e.y+e.height/2,p=t/2-d*u,v=n/2-f*u,m=cS(e,p,v,u,t,n),g={left:Math.min(m.left-a.left,0),top:Math.min(m.top-a.top,0),right:Math.min(m.right-a.right,0),bottom:Math.min(m.bottom-a.bottom,0)};return{x:p-g.left+g.right,y:v-g.top+g.bottom,zoom:u}},Fa=()=>{var e;return typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)==null?void 0:e.indexOf("Mac"))>=0};function uo(e){return e!==void 0&&e!=="parent"}function Kn(e){var t,n;return{width:((t=e.measured)==null?void 0:t.width)??e.width??e.initialWidth??0,height:((n=e.measured)==null?void 0:n.height)??e.height??e.initialHeight??0}}function vp(e){var t,n;return(((t=e.measured)==null?void 0:t.width)??e.width??e.initialWidth)!==void 0&&(((n=e.measured)==null?void 0:n.height)??e.height??e.initialHeight)!==void 0}function yp(e,t={width:0,height:0},n,r,o){const i={...e},a=r.get(n);if(a){const s=a.origin||o;i.x+=a.internals.positionAbsolute.x-(t.width??0)*s[0],i.y+=a.internals.positionAbsolute.y-(t.height??0)*s[1]}return i}function bp(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}function uS(){let e,t;return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}}function dS(e){return{...ip,...e||{}}}function gi(e,{snapGrid:t=[0,0],snapToGrid:n=!1,transform:r,containerBounds:o}){const{x:i,y:a}=Nn(e),s=pi({x:i-((o==null?void 0:o.left)??0),y:a-((o==null?void 0:o.top)??0)},r),{x:l,y:c}=n?Aa(s,t):s;return{xSnapped:l,ySnapped:c,...s}}const Wl=e=>({width:e.offsetWidth,height:e.offsetHeight}),Cp=e=>{var t;return((t=e==null?void 0:e.getRootNode)==null?void 0:t.call(e))||(window==null?void 0:window.document)},fS=["INPUT","SELECT","TEXTAREA"];function wp(e){var r,o;const t=((o=(r=e.composedPath)==null?void 0:r.call(e))==null?void 0:o[0])||e.target;return(t==null?void 0:t.nodeType)!==1?!1:fS.includes(t.nodeName)||t.hasAttribute("contenteditable")||!!t.closest(".nokey")}const xp=e=>"clientX"in e,Nn=(e,t)=>{var i,a;const n=xp(e),r=n?e.clientX:(i=e.touches)==null?void 0:i[0].clientX,o=n?e.clientY:(a=e.touches)==null?void 0:a[0].clientY;return{x:r-((t==null?void 0:t.left)??0),y:o-((t==null?void 0:t.top)??0)}},Sp=(e,t,n,r,o)=>{const i=t.querySelectorAll(`.${e}`);return!i||!i.length?null:Array.from(i).map(a=>{const s=a.getBoundingClientRect();return{id:a.getAttribute("data-handleid"),type:e,nodeId:o,position:a.getAttribute("data-handlepos"),x:(s.left-n.left)/r,y:(s.top-n.top)/r,...Wl(a)}})};function Ep({sourceX:e,sourceY:t,targetX:n,targetY:r,sourceControlX:o,sourceControlY:i,targetControlX:a,targetControlY:s}){const l=e*.125+o*.375+a*.375+n*.125,c=t*.125+i*.375+s*.375+r*.125,u=Math.abs(l-e),d=Math.abs(c-t);return[l,c,u,d]}function La(e,t){return e>=0?.5*e:t*25*Math.sqrt(-e)}function $p({pos:e,x1:t,y1:n,x2:r,y2:o,c:i}){switch(e){case be.Left:return[t-La(t-r,i),n];case be.Right:return[t+La(r-t,i),n];case be.Top:return[t,n-La(n-o,i)];case be.Bottom:return[t,n+La(o-n,i)]}}function Op({sourceX:e,sourceY:t,sourcePosition:n=be.Bottom,targetX:r,targetY:o,targetPosition:i=be.Top,curvature:a=.25}){const[s,l]=$p({pos:n,x1:e,y1:t,x2:r,y2:o,c:a}),[c,u]=$p({pos:i,x1:r,y1:o,x2:e,y2:t,c:a}),[d,f,p,v]=Ep({sourceX:e,sourceY:t,targetX:r,targetY:o,sourceControlX:s,sourceControlY:l,targetControlX:c,targetControlY:u});return[`M${e},${t} C${s},${l} ${c},${u} ${r},${o}`,d,f,p,v]}function _p({sourceX:e,sourceY:t,targetX:n,targetY:r}){const o=Math.abs(n-e)/2,i=n<e?n+o:n-o,a=Math.abs(r-t)/2,s=r<t?r+a:r-a;return[i,s,o,a]}function pS({sourceNode:e,targetNode:t,selected:n=!1,zIndex:r,elevateOnSelect:o=!1}){if(r!==void 0)return r;const i=o&&n?1e3:0,a=Math.max(e.parentId?e.internals.z:0,t.parentId?t.internals.z:0);return i+a}function gS({sourceNode:e,targetNode:t,width:n,height:r,transform:o}){const i=Ta(Ma(e),Ma(t));i.x===i.x2&&(i.x2+=1),i.y===i.y2&&(i.y2+=1);const a={x:-o[0]/o[2],y:-o[1]/o[2],width:n/o[2],height:r/o[2]};return fi(a,Ia(i))>0}const hS=({source:e,sourceHandle:t,target:n,targetHandle:r})=>`xy-edge__${e}${t||""}-${n}${r||""}`,mS=(e,t)=>t.some(n=>n.source===e.source&&n.target===e.target&&(n.sourceHandle===e.sourceHandle||!n.sourceHandle&&!e.sourceHandle)&&(n.targetHandle===e.targetHandle||!n.targetHandle&&!e.targetHandle)),Np=(e,t)=>{if(!e.source||!e.target)return mp("006",Gt.error006()),t;let n;return cp(e)?n={...e}:n={...e,id:hS(e)},mS(n,t)?t:(n.sourceHandle===null&&delete n.sourceHandle,n.targetHandle===null&&delete n.targetHandle,t.concat(n))};function Pp({sourceX:e,sourceY:t,targetX:n,targetY:r}){const[o,i,a,s]=_p({sourceX:e,sourceY:t,targetX:n,targetY:r});return[`M ${e},${t}L ${n},${r}`,o,i,a,s]}const Tp={[be.Left]:{x:-1,y:0},[be.Right]:{x:1,y:0},[be.Top]:{x:0,y:-1},[be.Bottom]:{x:0,y:1}},vS=({source:e,sourcePosition:t=be.Bottom,target:n})=>t===be.Left||t===be.Right?e.x<n.x?{x:1,y:0}:{x:-1,y:0}:e.y<n.y?{x:0,y:1}:{x:0,y:-1},Ip=(e,t)=>Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function yS({source:e,sourcePosition:t=be.Bottom,target:n,targetPosition:r=be.Top,center:o,offset:i}){const a=Tp[t],s=Tp[r],l={x:e.x+a.x*i,y:e.y+a.y*i},c={x:n.x+s.x*i,y:n.y+s.y*i},u=vS({source:l,sourcePosition:t,target:c}),d=u.x!==0?"x":"y",f=u[d];let p=[],v,m;const g={x:0,y:0},y={x:0,y:0},[x,b,C,w]=_p({sourceX:e.x,sourceY:e.y,targetX:n.x,targetY:n.y});if(a[d]*s[d]===-1){v=o.x??x,m=o.y??b;const S=[{x:v,y:l.y},{x:v,y:c.y}],E=[{x:l.x,y:m},{x:c.x,y:m}];a[d]===f?p=d==="x"?S:E:p=d==="x"?E:S}else{const S=[{x:l.x,y:c.y}],E=[{x:c.x,y:l.y}];if(d==="x"?p=a.x===f?E:S:p=a.y===f?S:E,t===r){const D=Math.abs(e[d]-n[d]);if(D<=i){const O=Math.min(i-1,i-D);a[d]===f?g[d]=(l[d]>e[d]?-1:1)*O:y[d]=(c[d]>n[d]?-1:1)*O}}if(t!==r){const D=d==="x"?"y":"x",O=a[d]===s[D],M=l[D]>c[D],N=l[D]<c[D];(a[d]===1&&(!O&&M||O&&N)||a[d]!==1&&(!O&&N||O&&M))&&(p=d==="x"?S:E)}const _={x:l.x+g.x,y:l.y+g.y},P={x:c.x+y.x,y:c.y+y.y},A=Math.max(Math.abs(_.x-p[0].x),Math.abs(P.x-p[0].x)),L=Math.max(Math.abs(_.y-p[0].y),Math.abs(P.y-p[0].y));A>=L?(v=(_.x+P.x)/2,m=p[0].y):(v=p[0].x,m=(_.y+P.y)/2)}return[[e,{x:l.x+g.x,y:l.y+g.y},...p,{x:c.x+y.x,y:c.y+y.y},n],v,m,C,w]}function bS(e,t,n,r){const o=Math.min(Ip(e,t)/2,Ip(t,n)/2,r),{x:i,y:a}=t;if(e.x===i&&i===n.x||e.y===a&&a===n.y)return`L${i} ${a}`;if(e.y===a){const c=e.x<n.x?-1:1,u=e.y<n.y?1:-1;return`L ${i+o*c},${a}Q ${i},${a} ${i},${a+o*u}`}const s=e.x<n.x?1:-1,l=e.y<n.y?-1:1;return`L ${i},${a+o*l}Q ${i},${a} ${i+o*s},${a}`}function ql({sourceX:e,sourceY:t,sourcePosition:n=be.Bottom,targetX:r,targetY:o,targetPosition:i=be.Top,borderRadius:a=5,centerX:s,centerY:l,offset:c=20}){const[u,d,f,p,v]=yS({source:{x:e,y:t},sourcePosition:n,target:{x:r,y:o},targetPosition:i,center:{x:s,y:l},offset:c});return[u.reduce((g,y,x)=>{let b="";return x>0&&x<u.length-1?b=bS(u[x-1],y,u[x+1],a):b=`${x===0?"M":"L"}${y.x} ${y.y}`,g+=b,g},""),d,f,p,v]}function Mp(e){var t;return e&&!!(e.internals.handleBounds||(t=e.handles)!=null&&t.length)&&!!(e.measured.width||e.width||e.initialWidth)}function CS(e){var d;const{sourceNode:t,targetNode:n}=e;if(!Mp(t)||!Mp(n))return null;const r=t.internals.handleBounds||Ap(t.handles),o=n.internals.handleBounds||Ap(n.handles),i=Dp((r==null?void 0:r.source)??[],e.sourceHandle),a=Dp(e.connectionMode===ao.Strict?(o==null?void 0:o.target)??[]:((o==null?void 0:o.target)??[]).concat((o==null?void 0:o.source)??[]),e.targetHandle);if(!i||!a)return(d=e.onError)==null||d.call(e,"008",Gt.error008(i?"target":"source",{id:e.id,sourceHandle:e.sourceHandle,targetHandle:e.targetHandle})),null;const s=(i==null?void 0:i.position)||be.Bottom,l=(a==null?void 0:a.position)||be.Top,c=hi(t,i,s),u=hi(n,a,l);return{sourceX:c.x,sourceY:c.y,targetX:u.x,targetY:u.y,sourcePosition:s,targetPosition:l}}function Ap(e){if(!e)return null;const t=[],n=[];for(const r of e)r.width=r.width??1,r.height=r.height??1,r.type==="source"?t.push(r):r.type==="target"&&n.push(r);return{source:t,target:n}}function hi(e,t,n=be.Left,r=!1){const o=((t==null?void 0:t.x)??0)+e.internals.positionAbsolute.x,i=((t==null?void 0:t.y)??0)+e.internals.positionAbsolute.y,{width:a,height:s}=t??Kn(e);if(r)return{x:o+a/2,y:i+s/2};switch((t==null?void 0:t.position)??n){case be.Top:return{x:o+a/2,y:i};case be.Right:return{x:o+a,y:i+s/2};case be.Bottom:return{x:o+a/2,y:i+s};case be.Left:return{x:o,y:i+s/2}}}function Dp(e,t){return e&&(t?e.find(n=>n.id===t):e[0])||null}function Ul(e,t){return e?typeof e=="string"?e:`${t?`${t}__`:""}${Object.keys(e).sort().map(r=>`${r}=${e[r]}`).join("&")}`:""}function wS(e,{id:t,defaultColor:n,defaultMarkerStart:r,defaultMarkerEnd:o}){const i=new Set;return e.reduce((a,s)=>([s.markerStart||r,s.markerEnd||o].forEach(l=>{if(l&&typeof l=="object"){const c=Ul(l,t);i.has(c)||(a.push({id:c,color:l.color||n,...l}),i.add(c))}}),a),[]).sort((a,s)=>a.id.localeCompare(s.id))}const Gl={nodeOrigin:[0,0],nodeExtent:li,elevateNodesOnSelect:!0,defaults:{}},xS={...Gl,checkEquality:!0};function Xl(e,t){const n={...e};for(const r in t)t[r]!==void 0&&(n[r]=t[r]);return n}function SS(e,t,n){const r=Xl(Gl,n);for(const o of e.values())if(o.parentId)Kl(o,e,t,r);else{const i=ui(o,r.nodeOrigin),a=uo(o.extent)?o.extent:r.nodeExtent,s=zr(i,a,Kn(o));o.internals.positionAbsolute=s}}function Yl(e,t,n,r){var l,c;const o=Xl(xS,r);let i=e.length>0;const a=new Map(t),s=o!=null&&o.elevateNodesOnSelect?1e3:0;t.clear(),n.clear();for(const u of e){let d=a.get(u.id);if(o.checkEquality&&u===(d==null?void 0:d.internals.userNode))t.set(u.id,d);else{const f=ui(u,o.nodeOrigin),p=uo(u.extent)?u.extent:o.nodeExtent,v=zr(f,p,Kn(u));d={...o.defaults,...u,measured:{width:(l=u.measured)==null?void 0:l.width,height:(c=u.measured)==null?void 0:c.height},internals:{positionAbsolute:v,handleBounds:u.measured?d==null?void 0:d.internals.handleBounds:void 0,z:Fp(u,s),userNode:u}},t.set(u.id,d)}(d.measured===void 0||d.measured.width===void 0||d.measured.height===void 0)&&!d.hidden&&(i=!1),u.parentId&&Kl(d,t,n,r)}return i}function ES(e,t){if(!e.parentId)return;const n=t.get(e.parentId);n?n.set(e.id,e):t.set(e.parentId,new Map([[e.id,e]]))}function Kl(e,t,n,r){const{elevateNodesOnSelect:o,nodeOrigin:i,nodeExtent:a}=Xl(Gl,r),s=e.parentId,l=t.get(s);if(!l){console.warn(`Parent node ${s} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}ES(e,n);const c=o?1e3:0,{x:u,y:d,z:f}=$S(e,l,i,a,c),{positionAbsolute:p}=e.internals,v=u!==p.x||d!==p.y;(v||f!==e.internals.z)&&t.set(e.id,{...e,internals:{...e.internals,positionAbsolute:v?{x:u,y:d}:p,z:f}})}function Fp(e,t){return(gn(e.zIndex)?e.zIndex:0)+(e.selected?t:0)}function $S(e,t,n,r,o){const{x:i,y:a}=t.internals.positionAbsolute,s=Kn(e),l=ui(e,n),c=uo(e.extent)?zr(l,e.extent,s):l;let u=zr({x:i+c.x,y:a+c.y},r,s);e.extent==="parent"&&(u=dp(u,s,t));const d=Fp(e,o),f=t.internals.z??0;return{x:u.x,y:u.y,z:f>=d?f+1:d}}function Zl(e,t,n,r=[0,0]){var a;const o=[],i=new Map;for(const s of e){const l=t.get(s.parentId);if(!l)continue;const c=((a=i.get(s.parentId))==null?void 0:a.expandedRect)??lo(l),u=gp(c,s.rect);i.set(s.parentId,{expandedRect:u,parent:l})}return i.size>0&&i.forEach(({expandedRect:s,parent:l},c)=>{var b;const u=l.internals.positionAbsolute,d=Kn(l),f=l.origin??r,p=s.x<u.x?Math.round(Math.abs(u.x-s.x)):0,v=s.y<u.y?Math.round(Math.abs(u.y-s.y)):0,m=Math.max(d.width,Math.round(s.width)),g=Math.max(d.height,Math.round(s.height)),y=(m-d.width)*f[0],x=(g-d.height)*f[1];(p>0||v>0||y||x)&&(o.push({id:c,type:"position",position:{x:l.position.x-p+y,y:l.position.y-v+x}}),(b=n.get(c))==null||b.forEach(C=>{e.some(w=>w.id===C.id)||o.push({id:C.id,type:"position",position:{x:C.position.x+p,y:C.position.y+v}})})),(d.width<s.width||d.height<s.height||p||v)&&o.push({id:c,type:"dimensions",setAttributes:!0,dimensions:{width:m+(p?f[0]*p-y:0),height:g+(v?f[1]*v-x:0)}})}),o}function OS(e,t,n,r,o,i){const a=r==null?void 0:r.querySelector(".xyflow__viewport");let s=!1;if(!a)return{changes:[],updatedInternals:s};const l=[],c=window.getComputedStyle(a),{m22:u}=new window.DOMMatrixReadOnly(c.transform),d=[];for(const f of e.values()){const p=t.get(f.id);if(!p)continue;if(p.hidden){t.set(p.id,{...p,internals:{...p.internals,handleBounds:void 0}}),s=!0;continue}const v=Wl(f.nodeElement),m=p.measured.width!==v.width||p.measured.height!==v.height;if(!!(v.width&&v.height&&(m||!p.internals.handleBounds||f.force))){const y=f.nodeElement.getBoundingClientRect(),x=uo(p.extent)?p.extent:i;let{positionAbsolute:b}=p.internals;p.parentId&&p.extent==="parent"?b=dp(b,v,t.get(p.parentId)):x&&(b=zr(b,x,v));const C={...p,measured:v,internals:{...p.internals,positionAbsolute:b,handleBounds:{source:Sp("source",f.nodeElement,y,u,p.id),target:Sp("target",f.nodeElement,y,u,p.id)}}};t.set(p.id,C),p.parentId&&Kl(C,t,n,{nodeOrigin:o}),s=!0,m&&(l.push({id:p.id,type:"dimensions",dimensions:v}),p.expandParent&&p.parentId&&d.push({id:p.id,parentId:p.parentId,rect:lo(C,o)}))}}if(d.length>0){const f=Zl(d,t,n,o);l.push(...f)}return{changes:l,updatedInternals:s}}async function _S({delta:e,panZoom:t,transform:n,translateExtent:r,width:o,height:i}){if(!t||!e.x&&!e.y)return Promise.resolve(!1);const a=await t.setViewportConstrained({x:n[0]+e.x,y:n[1]+e.y,zoom:n[2]},[[0,0],[o,i]],r),s=!!a&&(a.x!==n[0]||a.y!==n[1]||a.k!==n[2]);return Promise.resolve(s)}function Lp(e,t,n,r,o,i){let a=o;const s=r.get(a)||new Map;r.set(a,s.set(n,t)),a=`${o}-${e}`;const l=r.get(a)||new Map;if(r.set(a,l.set(n,t)),i){a=`${o}-${e}-${i}`;const c=r.get(a)||new Map;r.set(a,c.set(n,t))}}function jp(e,t,n){e.clear(),t.clear();for(const r of n){const{source:o,target:i,sourceHandle:a=null,targetHandle:s=null}=r,l={edgeId:r.id,source:o,target:i,sourceHandle:a,targetHandle:s},c=`${o}-${a}--${i}-${s}`,u=`${i}-${s}--${o}-${a}`;Lp("source",l,u,e,o,a),Lp("target",l,c,e,i,s),t.set(r.id,r)}}function zp(e,t){if(!e.parentId)return!1;const n=t.get(e.parentId);return n?n.selected?!0:zp(n,t):!1}function Rp(e,t,n){var o;let r=e;do{if((o=r==null?void 0:r.matches)!=null&&o.call(r,t))return!0;if(r===n)return!1;r=r==null?void 0:r.parentElement}while(r);return!1}function NS(e,t,n,r){const o=new Map;for(const[i,a]of e)if((a.selected||a.id===r)&&(!a.parentId||!zp(a,e))&&(a.draggable||t&&typeof a.draggable>"u")){const s=e.get(i);s&&o.set(i,{id:i,position:s.position||{x:0,y:0},distance:{x:n.x-s.internals.positionAbsolute.x,y:n.y-s.internals.positionAbsolute.y},extent:s.extent,parentId:s.parentId,origin:s.origin,expandParent:s.expandParent,internals:{positionAbsolute:s.internals.positionAbsolute||{x:0,y:0}},measured:{width:s.measured.width??0,height:s.measured.height??0}})}return o}function Ql({nodeId:e,dragItems:t,nodeLookup:n,dragging:r=!0}){var a,s,l;const o=[];for(const[c,u]of t){const d=(a=n.get(c))==null?void 0:a.internals.userNode;d&&o.push({...d,position:u.position,dragging:r})}if(!e)return[o[0],o];const i=(s=n.get(e))==null?void 0:s.internals.userNode;return[i?{...i,position:((l=t.get(e))==null?void 0:l.position)||i.position,dragging:r}:o[0],o]}function PS({onNodeMouseDown:e,getStoreItems:t,onDragStart:n,onDrag:r,onDragStop:o}){let i={x:null,y:null},a=0,s=new Map,l=!1,c={x:0,y:0},u=null,d=!1,f=null,p=!1,v=!1;function m({noDragClassName:y,handleSelector:x,domNode:b,isSelectable:C,nodeId:w,nodeClickDistance:$=0}){f=Ut(b);function S({x:A,y:L},D){const{nodeLookup:O,nodeExtent:M,snapGrid:N,snapToGrid:I,nodeOrigin:j,onNodeDrag:z,onSelectionDrag:F,onError:R,updateNodePositions:W}=t();i={x:A,y:L};let H=!1,V={x:0,y:0,x2:0,y2:0};if(s.size>1&&M){const B=di(s);V=Hl(B)}for(const[B,U]of s){if(!O.has(B))continue;let K={x:A-U.distance.x,y:L-U.distance.y};I&&(K=Aa(K,N));let G=[[M[0][0],M[0][1]],[M[1][0],M[1][1]]];if(s.size>1&&M&&!U.extent){const{positionAbsolute:ee}=U.internals,q=ee.x-V.x+M[0][0],te=ee.x+U.measured.width-V.x2+M[1][0],Y=ee.y-V.y+M[0][1],oe=ee.y+U.measured.height-V.y2+M[1][1];G=[[q,Y],[te,oe]]}const{position:Z,positionAbsolute:J}=up({nodeId:B,nextPosition:K,nodeLookup:O,nodeExtent:G,nodeOrigin:j,onError:R});H=H||U.position.x!==Z.x||U.position.y!==Z.y,U.position=Z,U.internals.positionAbsolute=J}if(v=v||H,!!H&&(W(s,!0),D&&(r||z||!w&&F))){const[B,U]=Ql({nodeId:w,dragItems:s,nodeLookup:O});r==null||r(D,s,B,U),z==null||z(D,B,U),w||F==null||F(D,U)}}async function E(){if(!u)return;const{transform:A,panBy:L,autoPanSpeed:D,autoPanOnNodeDrag:O}=t();if(!O){l=!1,cancelAnimationFrame(a);return}const[M,N]=pp(c,u,D);(M!==0||N!==0)&&(i.x=(i.x??0)-M/A[2],i.y=(i.y??0)-N/A[2],await L({x:M,y:N})&&S(i,null)),a=requestAnimationFrame(E)}function _(A){var H;const{nodeLookup:L,multiSelectionActive:D,nodesDraggable:O,transform:M,snapGrid:N,snapToGrid:I,selectNodesOnDrag:j,onNodeDragStart:z,onSelectionDragStart:F,unselectNodesAndEdges:R}=t();d=!0,(!j||!C)&&!D&&w&&((H=L.get(w))!=null&&H.selected||R()),C&&j&&w&&(e==null||e(w));const W=gi(A.sourceEvent,{transform:M,snapGrid:N,snapToGrid:I,containerBounds:u});if(i=W,s=NS(L,O,W,w),s.size>0&&(n||z||!w&&F)){const[V,B]=Ql({nodeId:w,dragItems:s,nodeLookup:L});n==null||n(A.sourceEvent,s,V,B),z==null||z(A.sourceEvent,V,B),w||F==null||F(A.sourceEvent,B)}}const P=_f().clickDistance($).on("start",A=>{const{domNode:L,nodeDragThreshold:D,transform:O,snapGrid:M,snapToGrid:N}=t();u=(L==null?void 0:L.getBoundingClientRect())||null,p=!1,v=!1,D===0&&_(A),i=gi(A.sourceEvent,{transform:O,snapGrid:M,snapToGrid:N,containerBounds:u}),c=Nn(A.sourceEvent,u)}).on("drag",A=>{const{autoPanOnNodeDrag:L,transform:D,snapGrid:O,snapToGrid:M,nodeDragThreshold:N,nodeLookup:I}=t(),j=gi(A.sourceEvent,{transform:D,snapGrid:O,snapToGrid:M,containerBounds:u});if((A.sourceEvent.type==="touchmove"&&A.sourceEvent.touches.length>1||w&&!I.has(w))&&(p=!0),!p){if(!l&&L&&d&&(l=!0,E()),!d){const z=j.xSnapped-(i.x??0),F=j.ySnapped-(i.y??0);Math.sqrt(z*z+F*F)>N&&_(A)}(i.x!==j.xSnapped||i.y!==j.ySnapped)&&s&&d&&(c=Nn(A.sourceEvent,u),S(j,A.sourceEvent))}}).on("end",A=>{if(!(!d||p)&&(l=!1,d=!1,cancelAnimationFrame(a),s.size>0)){const{nodeLookup:L,updateNodePositions:D,onNodeDragStop:O,onSelectionDragStop:M}=t();if(v&&(D(s,!1),v=!1),o||O||!w&&M){const[N,I]=Ql({nodeId:w,dragItems:s,nodeLookup:L,dragging:!1});o==null||o(A.sourceEvent,s,N,I),O==null||O(A.sourceEvent,N,I),w||M==null||M(A.sourceEvent,I)}}}).filter(A=>{const L=A.target;return!A.button&&(!y||!Rp(L,`.${y}`,b))&&(!x||Rp(L,x,b))});f.call(P)}function g(){f==null||f.on(".drag",null)}return{update:m,destroy:g}}function TS(e,t,n){const r=[],o={x:e.x-n,y:e.y-n,width:n*2,height:n*2};for(const i of t.values())fi(o,lo(i))>0&&r.push(i);return r}const IS=250;function MS(e,t,n,r){var s,l;let o=[],i=1/0;const a=TS(e,n,t+IS);for(const c of a){const u=[...((s=c.internals.handleBounds)==null?void 0:s.source)??[],...((l=c.internals.handleBounds)==null?void 0:l.target)??[]];for(const d of u){if(r.nodeId===d.nodeId&&r.type===d.type&&r.id===d.id)continue;const{x:f,y:p}=hi(c,d,d.position,!0),v=Math.sqrt(Math.pow(f-e.x,2)+Math.pow(p-e.y,2));v>t||(v<i?(o=[{...d,x:f,y:p}],i=v):v===i&&o.push({...d,x:f,y:p}))}}if(!o.length)return null;if(o.length>1){const c=r.type==="source"?"target":"source";return o.find(u=>u.type===c)??o[0]}return o[0]}function Vp(e,t,n,r,o,i=!1){var c,u,d;const a=r.get(e);if(!a)return null;const s=o==="strict"?(c=a.internals.handleBounds)==null?void 0:c[t]:[...((u=a.internals.handleBounds)==null?void 0:u.source)??[],...((d=a.internals.handleBounds)==null?void 0:d.target)??[]],l=(n?s==null?void 0:s.find(f=>f.id===n):s==null?void 0:s[0])??null;return l&&i?{...l,...hi(a,l,l.position,!0)}:l}function kp(e,t){return e||(t!=null&&t.classList.contains("target")?"target":t!=null&&t.classList.contains("source")?"source":null)}function AS(e,t){let n=null;return t?n=!0:e&&!t&&(n=!1),n}const Hp=()=>!0;function DS(e,{connectionMode:t,connectionRadius:n,handleId:r,nodeId:o,edgeUpdaterType:i,isTarget:a,domNode:s,nodeLookup:l,lib:c,autoPanOnConnect:u,flowId:d,panBy:f,cancelConnection:p,onConnectStart:v,onConnect:m,onConnectEnd:g,isValidConnection:y=Hp,onReconnectEnd:x,updateConnection:b,getTransform:C,getFromHandle:w,autoPanSpeed:$,dragThreshold:S=1}){const E=Cp(e.target);let _=0,P;const{x:A,y:L}=Nn(e),D=E==null?void 0:E.elementFromPoint(A,L),O=kp(i,D),M=s==null?void 0:s.getBoundingClientRect();let N=!1;if(!M||!O)return;const I=Vp(o,O,r,l,t);if(!I)return;let j=Nn(e,M),z=!1,F=null,R=!1,W=null;function H(){if(!u||!M)return;const[ee,q]=pp(j,M,$);f({x:ee,y:q}),_=requestAnimationFrame(H)}const V={...I,nodeId:o,type:O,position:I.position},B=l.get(o);let K={inProgress:!0,isValid:null,from:hi(B,V,be.Left,!0),fromHandle:V,fromPosition:V.position,fromNode:B,to:j,toHandle:null,toPosition:sp[V.position],toNode:null};function G(){N=!0,b(K),v==null||v(e,{nodeId:o,handleId:r,handleType:O})}S===0&&G();function Z(ee){if(!N){const{x:oe,y:ne}=Nn(ee),ce=oe-A,ve=ne-L;if(!(ce*ce+ve*ve>S*S))return;G()}if(!w()||!V){J(ee);return}const q=C();j=Nn(ee,M),P=MS(pi(j,q,!1,[1,1]),n,l,V),z||(H(),z=!0);const te=Bp(ee,{handle:P,connectionMode:t,fromNodeId:o,fromHandleId:r,fromType:a?"target":"source",isValidConnection:y,doc:E,lib:c,flowId:d,nodeLookup:l});W=te.handleDomNode,F=te.connection,R=AS(!!P,te.isValid);const Y={...K,isValid:R,to:te.toHandle&&R?Da({x:te.toHandle.x,y:te.toHandle.y},q):j,toHandle:te.toHandle,toPosition:R&&te.toHandle?te.toHandle.position:sp[V.position],toNode:te.toHandle?l.get(te.toHandle.nodeId):null};R&&P&&K.toHandle&&Y.toHandle&&K.toHandle.type===Y.toHandle.type&&K.toHandle.nodeId===Y.toHandle.nodeId&&K.toHandle.id===Y.toHandle.id&&K.to.x===Y.to.x&&K.to.y===Y.to.y||(b(Y),K=Y)}function J(ee){if(N){(P||W)&&F&&R&&(m==null||m(F));const{inProgress:q,...te}=K,Y={...te,toPosition:K.toHandle?K.toPosition:null};g==null||g(ee,Y),i&&(x==null||x(ee,Y))}p(),cancelAnimationFrame(_),z=!1,R=!1,F=null,W=null,E.removeEventListener("mousemove",Z),E.removeEventListener("mouseup",J),E.removeEventListener("touchmove",Z),E.removeEventListener("touchend",J)}E.addEventListener("mousemove",Z),E.addEventListener("mouseup",J),E.addEventListener("touchmove",Z),E.addEventListener("touchend",J)}function Bp(e,{handle:t,connectionMode:n,fromNodeId:r,fromHandleId:o,fromType:i,doc:a,lib:s,flowId:l,isValidConnection:c=Hp,nodeLookup:u}){const d=i==="target",f=t?a.querySelector(`.${s}-flow__handle[data-id="${l}-${t==null?void 0:t.nodeId}-${t==null?void 0:t.id}-${t==null?void 0:t.type}"]`):null,{x:p,y:v}=Nn(e),m=a.elementFromPoint(p,v),g=m!=null&&m.classList.contains(`${s}-flow__handle`)?m:f,y={handleDomNode:g,isValid:!1,connection:null,toHandle:null};if(g){const x=kp(void 0,g),b=g.getAttribute("data-nodeid"),C=g.getAttribute("data-handleid"),w=g.classList.contains("connectable"),$=g.classList.contains("connectableend");if(!b||!x)return y;const S={source:d?b:r,sourceHandle:d?C:o,target:d?r:b,targetHandle:d?o:C};y.connection=S;const _=w&&$&&(n===ao.Strict?d&&x==="source"||!d&&x==="target":b!==r||C!==o);y.isValid=_&&c(S),y.toHandle=Vp(b,x,C,u,n,!0)}return y}const Jl={onPointerDown:DS,isValid:Bp};function FS({domNode:e,panZoom:t,getTransform:n,getViewScale:r}){const o=Ut(e);function i({translateExtent:s,width:l,height:c,zoomStep:u=10,pannable:d=!0,zoomable:f=!0,inversePan:p=!1}){const v=b=>{const C=n();if(b.sourceEvent.type!=="wheel"||!t)return;const w=-b.sourceEvent.deltaY*(b.sourceEvent.deltaMode===1?.05:b.sourceEvent.deltaMode?1:.002)*u,$=C[2]*Math.pow(2,w);t.scaleTo($)};let m=[0,0];const g=b=>{(b.sourceEvent.type==="mousedown"||b.sourceEvent.type==="touchstart")&&(m=[b.sourceEvent.clientX??b.sourceEvent.touches[0].clientX,b.sourceEvent.clientY??b.sourceEvent.touches[0].clientY])},y=b=>{const C=n();if(b.sourceEvent.type!=="mousemove"&&b.sourceEvent.type!=="touchmove"||!t)return;const w=[b.sourceEvent.clientX??b.sourceEvent.touches[0].clientX,b.sourceEvent.clientY??b.sourceEvent.touches[0].clientY],$=[w[0]-m[0],w[1]-m[1]];m=w;const S=r()*Math.max(C[2],Math.log(C[2]))*(p?-1:1),E={x:C[0]-$[0]*S,y:C[1]-$[1]*S},_=[[0,0],[l,c]];t.setViewportConstrained({x:E.x,y:E.y,zoom:C[2]},_,s)},x=rp().on("start",g).on("zoom",d?y:null).on("zoom.wheel",f?v:null);o.call(x,{})}function a(){o.on("zoom",null)}return{update:i,destroy:a,pointer:dn}}const LS=(e,t)=>e.x!==t.x||e.y!==t.y||e.zoom!==t.k,ja=e=>({x:e.x,y:e.y,zoom:e.k}),ec=({x:e,y:t,zoom:n})=>Na.translate(e,t).scale(n),fo=(e,t)=>e.target.closest(`.${t}`),Wp=(e,t)=>t===2&&Array.isArray(e)&&e.includes(2),jS=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,tc=(e,t=0,n=jS,r=()=>{})=>{const o=typeof t=="number"&&t>0;return o||r(),o?e.transition().duration(t).ease(n).on("end",r):e},qp=e=>{const t=e.ctrlKey&&Fa()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*t};function zS({zoomPanValues:e,noWheelClassName:t,d3Selection:n,d3Zoom:r,panOnScrollMode:o,panOnScrollSpeed:i,zoomOnPinch:a,onPanZoomStart:s,onPanZoom:l,onPanZoomEnd:c}){return u=>{if(fo(u,t))return!1;u.preventDefault(),u.stopImmediatePropagation();const d=n.property("__zoom").k||1;if(u.ctrlKey&&a){const g=dn(u),y=qp(u),x=d*Math.pow(2,y);r.scaleTo(n,x,g,u);return}const f=u.deltaMode===1?20:1;let p=o===jr.Vertical?0:u.deltaX*f,v=o===jr.Horizontal?0:u.deltaY*f;!Fa()&&u.shiftKey&&o!==jr.Vertical&&(p=u.deltaY*f,v=0),r.translateBy(n,-(p/d)*i,-(v/d)*i,{internal:!0});const m=ja(n.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling||(e.isPanScrolling=!0,s==null||s(u,m)),e.isPanScrolling&&(l==null||l(u,m),e.panScrollTimeout=setTimeout(()=>{c==null||c(u,m),e.isPanScrolling=!1},150))}}function RS({noWheelClassName:e,preventScrolling:t,d3ZoomHandler:n}){return function(r,o){const i=r.type==="wheel",a=!t&&i&&!r.ctrlKey,s=fo(r,e);if(r.ctrlKey&&i&&s&&r.preventDefault(),a||s)return null;r.preventDefault(),n.call(this,r,o)}}function VS({zoomPanValues:e,onDraggingChange:t,onPanZoomStart:n}){return r=>{var i,a,s;if((i=r.sourceEvent)!=null&&i.internal)return;const o=ja(r.transform);e.mouseButton=((a=r.sourceEvent)==null?void 0:a.button)||0,e.isZoomingOrPanning=!0,e.prevViewport=o,((s=r.sourceEvent)==null?void 0:s.type)==="mousedown"&&t(!0),n&&(n==null||n(r.sourceEvent,o))}}function kS({zoomPanValues:e,panOnDrag:t,onPaneContextMenu:n,onTransformChange:r,onPanZoom:o}){return i=>{var a,s;e.usedRightMouseButton=!!(n&&Wp(t,e.mouseButton??0)),(a=i.sourceEvent)!=null&&a.sync||r([i.transform.x,i.transform.y,i.transform.k]),o&&!((s=i.sourceEvent)!=null&&s.internal)&&(o==null||o(i.sourceEvent,ja(i.transform)))}}function HS({zoomPanValues:e,panOnDrag:t,panOnScroll:n,onDraggingChange:r,onPanZoomEnd:o,onPaneContextMenu:i}){return a=>{var s;if(!((s=a.sourceEvent)!=null&&s.internal)&&(e.isZoomingOrPanning=!1,i&&Wp(t,e.mouseButton??0)&&!e.usedRightMouseButton&&a.sourceEvent&&i(a.sourceEvent),e.usedRightMouseButton=!1,r(!1),o&&LS(e.prevViewport,a.transform))){const l=ja(a.transform);e.prevViewport=l,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{o==null||o(a.sourceEvent,l)},n?150:0)}}}function BS({zoomActivationKeyPressed:e,zoomOnScroll:t,zoomOnPinch:n,panOnDrag:r,panOnScroll:o,zoomOnDoubleClick:i,userSelectionActive:a,noWheelClassName:s,noPanClassName:l,lib:c}){return u=>{var v;const d=e||t,f=n&&u.ctrlKey;if(u.button===1&&u.type==="mousedown"&&(fo(u,`${c}-flow__node`)||fo(u,`${c}-flow__edge`)))return!0;if(!r&&!d&&!o&&!i&&!n||a||fo(u,s)&&u.type==="wheel"||fo(u,l)&&(u.type!=="wheel"||o&&u.type==="wheel"&&!e)||!n&&u.ctrlKey&&u.type==="wheel")return!1;if(!n&&u.type==="touchstart"&&((v=u.touches)==null?void 0:v.length)>1)return u.preventDefault(),!1;if(!d&&!o&&!f&&u.type==="wheel"||!r&&(u.type==="mousedown"||u.type==="touchstart")||Array.isArray(r)&&!r.includes(u.button)&&u.type==="mousedown")return!1;const p=Array.isArray(r)&&r.includes(u.button)||!u.button||u.button<=1;return(!u.ctrlKey||u.type==="wheel")&&p}}function WS({domNode:e,minZoom:t,maxZoom:n,paneClickDistance:r,translateExtent:o,viewport:i,onPanZoom:a,onPanZoomStart:s,onPanZoomEnd:l,onDraggingChange:c}){const u={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{x:0,y:0,zoom:0},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},d=e.getBoundingClientRect(),f=rp().clickDistance(!gn(r)||r<0?0:r).scaleExtent([t,n]).translateExtent(o),p=Ut(e).call(f);b({x:i.x,y:i.y,zoom:so(i.zoom,t,n)},[[0,0],[d.width,d.height]],o);const v=p.on("wheel.zoom"),m=p.on("dblclick.zoom");f.wheelDelta(qp);function g(L,D){return p?new Promise(O=>{f==null||f.interpolate((D==null?void 0:D.interpolate)==="linear"?ni:ya).transform(tc(p,D==null?void 0:D.duration,D==null?void 0:D.ease,()=>O(!0)),L)}):Promise.resolve(!1)}function y({noWheelClassName:L,noPanClassName:D,onPaneContextMenu:O,userSelectionActive:M,panOnScroll:N,panOnDrag:I,panOnScrollMode:j,panOnScrollSpeed:z,preventScrolling:F,zoomOnPinch:R,zoomOnScroll:W,zoomOnDoubleClick:H,zoomActivationKeyPressed:V,lib:B,onTransformChange:U}){M&&!u.isZoomingOrPanning&&x();const G=N&&!V&&!M?zS({zoomPanValues:u,noWheelClassName:L,d3Selection:p,d3Zoom:f,panOnScrollMode:j,panOnScrollSpeed:z,zoomOnPinch:R,onPanZoomStart:s,onPanZoom:a,onPanZoomEnd:l}):RS({noWheelClassName:L,preventScrolling:F,d3ZoomHandler:v});if(p.on("wheel.zoom",G,{passive:!1}),!M){const J=VS({zoomPanValues:u,onDraggingChange:c,onPanZoomStart:s});f.on("start",J);const ee=kS({zoomPanValues:u,panOnDrag:I,onPaneContextMenu:!!O,onPanZoom:a,onTransformChange:U});f.on("zoom",ee);const q=HS({zoomPanValues:u,panOnDrag:I,panOnScroll:N,onPaneContextMenu:O,onPanZoomEnd:l,onDraggingChange:c});f.on("end",q)}const Z=BS({zoomActivationKeyPressed:V,panOnDrag:I,zoomOnScroll:W,panOnScroll:N,zoomOnDoubleClick:H,zoomOnPinch:R,userSelectionActive:M,noPanClassName:D,noWheelClassName:L,lib:B});f.filter(Z),H?p.on("dblclick.zoom",m):p.on("dblclick.zoom",null)}function x(){f.on("zoom",null)}async function b(L,D,O){const M=ec(L),N=f==null?void 0:f.constrain()(M,D,O);return N&&await g(N),new Promise(I=>I(N))}async function C(L,D){const O=ec(L);return await g(O,D),new Promise(M=>M(O))}function w(L){if(p){const D=ec(L),O=p.property("__zoom");(O.k!==L.zoom||O.x!==L.x||O.y!==L.y)&&(f==null||f.transform(p,D,null,{sync:!0}))}}function $(){const L=p?tp(p.node()):{x:0,y:0,k:1};return{x:L.x,y:L.y,zoom:L.k}}function S(L,D){return p?new Promise(O=>{f==null||f.interpolate((D==null?void 0:D.interpolate)==="linear"?ni:ya).scaleTo(tc(p,D==null?void 0:D.duration,D==null?void 0:D.ease,()=>O(!0)),L)}):Promise.resolve(!1)}function E(L,D){return p?new Promise(O=>{f==null||f.interpolate((D==null?void 0:D.interpolate)==="linear"?ni:ya).scaleBy(tc(p,D==null?void 0:D.duration,D==null?void 0:D.ease,()=>O(!0)),L)}):Promise.resolve(!1)}function _(L){f==null||f.scaleExtent(L)}function P(L){f==null||f.translateExtent(L)}function A(L){const D=!gn(L)||L<0?0:L;f==null||f.clickDistance(D)}return{update:y,destroy:x,setViewport:C,setViewportConstrained:b,getViewport:$,scaleTo:S,scaleBy:E,setScaleExtent:_,setTranslateExtent:P,syncViewport:w,setClickDistance:A}}var po;(function(e){e.Line="line",e.Handle="handle"})(po||(po={}));function qS({width:e,prevWidth:t,height:n,prevHeight:r,affectsX:o,affectsY:i}){const a=e-t,s=n-r,l=[a>0?1:a<0?-1:0,s>0?1:s<0?-1:0];return a&&o&&(l[0]=l[0]*-1),s&&i&&(l[1]=l[1]*-1),l}function US(e){const t=e.includes("right")||e.includes("left"),n=e.includes("bottom")||e.includes("top"),r=e.includes("left"),o=e.includes("top");return{isHorizontal:t,isVertical:n,affectsX:r,affectsY:o}}function vr(e,t){return Math.max(0,t-e)}function yr(e,t){return Math.max(0,e-t)}function za(e,t,n){return Math.max(0,t-e,e-n)}function Up(e,t){return e?!t:t}function GS(e,t,n,r,o,i,a,s){let{affectsX:l,affectsY:c}=t;const{isHorizontal:u,isVertical:d}=t,f=u&&d,{xSnapped:p,ySnapped:v}=n,{minWidth:m,maxWidth:g,minHeight:y,maxHeight:x}=r,{x:b,y:C,width:w,height:$,aspectRatio:S}=e;let E=Math.floor(u?p-e.pointerX:0),_=Math.floor(d?v-e.pointerY:0);const P=w+(l?-E:E),A=$+(c?-_:_),L=-i[0]*w,D=-i[1]*$;let O=za(P,m,g),M=za(A,y,x);if(a){let j=0,z=0;l&&E<0?j=vr(b+E+L,a[0][0]):!l&&E>0&&(j=yr(b+P+L,a[1][0])),c&&_<0?z=vr(C+_+D,a[0][1]):!c&&_>0&&(z=yr(C+A+D,a[1][1])),O=Math.max(O,j),M=Math.max(M,z)}if(s){let j=0,z=0;l&&E>0?j=yr(b+E,s[0][0]):!l&&E<0&&(j=vr(b+P,s[1][0])),c&&_>0?z=yr(C+_,s[0][1]):!c&&_<0&&(z=vr(C+A,s[1][1])),O=Math.max(O,j),M=Math.max(M,z)}if(o){if(u){const j=za(P/S,y,x)*S;if(O=Math.max(O,j),a){let z=0;!l&&!c||l&&!c&&f?z=yr(C+D+P/S,a[1][1])*S:z=vr(C+D+(l?E:-E)/S,a[0][1])*S,O=Math.max(O,z)}if(s){let z=0;!l&&!c||l&&!c&&f?z=vr(C+P/S,s[1][1])*S:z=yr(C+(l?E:-E)/S,s[0][1])*S,O=Math.max(O,z)}}if(d){const j=za(A*S,m,g)/S;if(M=Math.max(M,j),a){let z=0;!l&&!c||c&&!l&&f?z=yr(b+A*S+L,a[1][0])/S:z=vr(b+(c?_:-_)*S+L,a[0][0])/S,M=Math.max(M,z)}if(s){let z=0;!l&&!c||c&&!l&&f?z=vr(b+A*S,s[1][0])/S:z=yr(b+(c?_:-_)*S,s[0][0])/S,M=Math.max(M,z)}}}_=_+(_<0?M:-M),E=E+(E<0?O:-O),o&&(f?P>A*S?_=(Up(l,c)?-E:E)/S:E=(Up(l,c)?-_:_)*S:u?(_=E/S,c=l):(E=_*S,l=c));const N=l?b+E:b,I=c?C+_:C;return{width:w+(l?-E:E),height:$+(c?-_:_),x:i[0]*E*(l?-1:1)+N,y:i[1]*_*(c?-1:1)+I}}const Gp={width:0,height:0,x:0,y:0},XS={...Gp,pointerX:0,pointerY:0,aspectRatio:1};function YS(e){return[[0,0],[e.measured.width,e.measured.height]]}function KS(e,t,n){const r=t.position.x+e.position.x,o=t.position.y+e.position.y,i=e.measured.width??0,a=e.measured.height??0,s=n[0]*i,l=n[1]*a;return[[r-s,o-l],[r+i-s,o+a-l]]}function ZS({domNode:e,nodeId:t,getStoreItems:n,onChange:r,onEnd:o}){const i=Ut(e);function a({controlPosition:l,boundaries:c,keepAspectRatio:u,resizeDirection:d,onResizeStart:f,onResize:p,onResizeEnd:v,shouldResize:m}){let g={...Gp},y={...XS};const x=US(l);let b,C=null,w=[],$,S,E;const _=_f().on("start",P=>{const{nodeLookup:A,transform:L,snapGrid:D,snapToGrid:O,nodeOrigin:M,paneDomNode:N}=n();if(b=A.get(t),!b)return;C=(N==null?void 0:N.getBoundingClientRect())??null;const{xSnapped:I,ySnapped:j}=gi(P.sourceEvent,{transform:L,snapGrid:D,snapToGrid:O,containerBounds:C});g={width:b.measured.width??0,height:b.measured.height??0,x:b.position.x??0,y:b.position.y??0},y={...g,pointerX:I,pointerY:j,aspectRatio:g.width/g.height},$=void 0,b.parentId&&(b.extent==="parent"||b.expandParent)&&($=A.get(b.parentId),S=$&&b.extent==="parent"?YS($):void 0),w=[],E=void 0;for(const[z,F]of A)if(F.parentId===t&&(w.push({id:z,position:{...F.position},extent:F.extent}),F.extent==="parent"||F.expandParent)){const R=KS(F,b,F.origin??M);E?E=[[Math.min(R[0][0],E[0][0]),Math.min(R[0][1],E[0][1])],[Math.max(R[1][0],E[1][0]),Math.max(R[1][1],E[1][1])]]:E=R}f==null||f(P,{...g})}).on("drag",P=>{const{transform:A,snapGrid:L,snapToGrid:D,nodeOrigin:O}=n(),M=gi(P.sourceEvent,{transform:A,snapGrid:L,snapToGrid:D,containerBounds:C}),N=[];if(!b)return;const{x:I,y:j,width:z,height:F}=g,R={},W=b.origin??O,{width:H,height:V,x:B,y:U}=GS(y,x,M,c,u,W,S,E),K=H!==z,G=V!==F,Z=B!==I&&K,J=U!==j&&G;if(!Z&&!J&&!K&&!G)return;if((Z||J||W[0]===1||W[1]===1)&&(R.x=Z?B:g.x,R.y=J?U:g.y,g.x=R.x,g.y=R.y,w.length>0)){const Y=B-I,oe=U-j;for(const ne of w)ne.position={x:ne.position.x-Y+W[0]*(H-z),y:ne.position.y-oe+W[1]*(V-F)},N.push(ne)}if((K||G)&&(R.width=K&&(!d||d==="horizontal")?H:g.width,R.height=G&&(!d||d==="vertical")?V:g.height,g.width=R.width,g.height=R.height),$&&b.expandParent){const Y=W[0]*(R.width??0);R.x&&R.x<Y&&(g.x=Y,y.x=y.x-(R.x-Y));const oe=W[1]*(R.height??0);R.y&&R.y<oe&&(g.y=oe,y.y=y.y-(R.y-oe))}const ee=qS({width:g.width,prevWidth:z,height:g.height,prevHeight:F,affectsX:x.affectsX,affectsY:x.affectsY}),q={...g,direction:ee};(m==null?void 0:m(P,q))!==!1&&(p==null||p(P,q),r(R,N))}).on("end",P=>{v==null||v(P,{...g}),o==null||o({...g})});i.call(_)}function s(){i.on(".drag",null)}return{update:a,destroy:s}}function mi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ra={exports:{}},nc={},Va={exports:{}},rc={};/**
|
|
1
|
+
(function(rr,M){typeof exports=="object"&&typeof module<"u"?M(exports,require("react"),require("react/jsx-runtime"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react/jsx-runtime","react-dom"],M):(rr=typeof globalThis<"u"?globalThis:rr||self,M(rr["app-v3-scripts-editor"]={},rr.React,rr["react/jsx-runtime"],rr.ReactDOM))})(this,function(rr,M,X,hi){"use strict";function iv(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const h=iv(M),av=iv(hi);function on(e){if(typeof e=="string"||typeof e=="number")return""+e;let t="";if(Array.isArray(e))for(let n=0,r;n<e.length;n++)(r=on(e[n]))!==""&&(t+=(t&&" ")+r);else for(let n in e)e[n]&&(t+=(t&&" ")+n);return t}var wO={value:()=>{}};function lc(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new cc(n)}function cc(e){this._=e}function SO(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",o=n.indexOf(".");if(o>=0&&(r=n.slice(o+1),n=n.slice(0,o)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}cc.prototype=lc.prototype={constructor:cc,on:function(e,t){var n=this._,r=SO(e+"",n),o,i=-1,a=r.length;if(arguments.length<2){for(;++i<a;)if((o=(e=r[i]).type)&&(o=EO(n[o],e.name)))return o;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++i<a;)if(o=(e=r[i]).type)n[o]=sv(n[o],e.name,t);else if(t==null)for(o in n)n[o]=sv(n[o],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new cc(e)},call:function(e,t){if((o=arguments.length-2)>0)for(var n=new Array(o),r=0,o,i;r<o;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(i=this._[e],r=0,o=i.length;r<o;++r)i[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],o=0,i=r.length;o<i;++o)r[o].value.apply(t,n)}};function EO(e,t){for(var n=0,r=e.length,o;n<r;++n)if((o=e[n]).name===t)return o.value}function sv(e,t,n){for(var r=0,o=e.length;r<o;++r)if(e[r].name===t){e[r]=wO,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var ff="http://www.w3.org/1999/xhtml";const lv={svg:"http://www.w3.org/2000/svg",xhtml:ff,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function uc(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),lv.hasOwnProperty(t)?{space:lv[t],local:e}:e}function $O(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===ff&&t.documentElement.namespaceURI===ff?t.createElement(e):t.createElementNS(n,e)}}function _O(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function cv(e){var t=uc(e);return(t.local?_O:$O)(t)}function OO(){}function gf(e){return e==null?OO:function(){return this.querySelector(e)}}function NO(e){typeof e!="function"&&(e=gf(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var i=t[o],a=i.length,l=r[o]=new Array(a),u,d,f=0;f<a;++f)(u=i[f])&&(d=e.call(u,u.__data__,f,i))&&("__data__"in u&&(d.__data__=u.__data__),l[f]=d);return new or(r,this._parents)}function PO(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function IO(){return[]}function uv(e){return e==null?IO:function(){return this.querySelectorAll(e)}}function TO(e){return function(){return PO(e.apply(this,arguments))}}function MO(e){typeof e=="function"?e=TO(e):e=uv(e);for(var t=this._groups,n=t.length,r=[],o=[],i=0;i<n;++i)for(var a=t[i],l=a.length,u,d=0;d<l;++d)(u=a[d])&&(r.push(e.call(u,u.__data__,d,a)),o.push(u));return new or(r,o)}function dv(e){return function(){return this.matches(e)}}function fv(e){return function(t){return t.matches(e)}}var AO=Array.prototype.find;function DO(e){return function(){return AO.call(this.children,e)}}function FO(){return this.firstElementChild}function LO(e){return this.select(e==null?FO:DO(typeof e=="function"?e:fv(e)))}var RO=Array.prototype.filter;function zO(){return Array.from(this.children)}function jO(e){return function(){return RO.call(this.children,e)}}function BO(e){return this.selectAll(e==null?zO:jO(typeof e=="function"?e:fv(e)))}function VO(e){typeof e!="function"&&(e=dv(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var i=t[o],a=i.length,l=r[o]=[],u,d=0;d<a;++d)(u=i[d])&&e.call(u,u.__data__,d,i)&&l.push(u);return new or(r,this._parents)}function gv(e){return new Array(e.length)}function HO(){return new or(this._enter||this._groups.map(gv),this._parents)}function dc(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}dc.prototype={constructor:dc,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function kO(e){return function(){return e}}function WO(e,t,n,r,o,i){for(var a=0,l,u=t.length,d=i.length;a<d;++a)(l=t[a])?(l.__data__=i[a],r[a]=l):n[a]=new dc(e,i[a]);for(;a<u;++a)(l=t[a])&&(o[a]=l)}function UO(e,t,n,r,o,i,a){var l,u,d=new Map,f=t.length,g=i.length,p=new Array(f),m;for(l=0;l<f;++l)(u=t[l])&&(p[l]=m=a.call(u,u.__data__,l,t)+"",d.has(m)?o[l]=u:d.set(m,u));for(l=0;l<g;++l)m=a.call(e,i[l],l,i)+"",(u=d.get(m))?(r[l]=u,u.__data__=i[l],d.delete(m)):n[l]=new dc(e,i[l]);for(l=0;l<f;++l)(u=t[l])&&d.get(p[l])===u&&(o[l]=u)}function qO(e){return e.__data__}function GO(e,t){if(!arguments.length)return Array.from(this,qO);var n=t?UO:WO,r=this._parents,o=this._groups;typeof e!="function"&&(e=kO(e));for(var i=o.length,a=new Array(i),l=new Array(i),u=new Array(i),d=0;d<i;++d){var f=r[d],g=o[d],p=g.length,m=XO(e.call(f,f&&f.__data__,d,r)),b=m.length,C=l[d]=new Array(b),y=a[d]=new Array(b),x=u[d]=new Array(p);n(f,g,C,y,x,m,t);for(var $=0,w=0,E,S;$<b;++$)if(E=C[$]){for($>=w&&(w=$+1);!(S=y[w])&&++w<b;);E._next=S||null}}return a=new or(a,r),a._enter=l,a._exit=u,a}function XO(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function YO(){return new or(this._exit||this._groups.map(gv),this._parents)}function KO(e,t,n){var r=this.enter(),o=this,i=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(o=t(o),o&&(o=o.selection())),n==null?i.remove():n(i),r&&o?r.merge(o).order():o}function ZO(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,o=n.length,i=r.length,a=Math.min(o,i),l=new Array(o),u=0;u<a;++u)for(var d=n[u],f=r[u],g=d.length,p=l[u]=new Array(g),m,b=0;b<g;++b)(m=d[b]||f[b])&&(p[b]=m);for(;u<o;++u)l[u]=n[u];return new or(l,this._parents)}function QO(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],o=r.length-1,i=r[o],a;--o>=0;)(a=r[o])&&(i&&a.compareDocumentPosition(i)^4&&i.parentNode.insertBefore(a,i),i=a);return this}function JO(e){e||(e=e2);function t(g,p){return g&&p?e(g.__data__,p.__data__):!g-!p}for(var n=this._groups,r=n.length,o=new Array(r),i=0;i<r;++i){for(var a=n[i],l=a.length,u=o[i]=new Array(l),d,f=0;f<l;++f)(d=a[f])&&(u[f]=d);u.sort(t)}return new or(o,this._parents).order()}function e2(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function t2(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function n2(){return Array.from(this)}function r2(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],o=0,i=r.length;o<i;++o){var a=r[o];if(a)return a}return null}function o2(){let e=0;for(const t of this)++e;return e}function i2(){return!this.node()}function a2(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var o=t[n],i=0,a=o.length,l;i<a;++i)(l=o[i])&&e.call(l,l.__data__,i,o);return this}function s2(e){return function(){this.removeAttribute(e)}}function l2(e){return function(){this.removeAttributeNS(e.space,e.local)}}function c2(e,t){return function(){this.setAttribute(e,t)}}function u2(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function d2(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function f2(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function g2(e,t){var n=uc(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?l2:s2:typeof t=="function"?n.local?f2:d2:n.local?u2:c2)(n,t))}function pv(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function p2(e){return function(){this.style.removeProperty(e)}}function h2(e,t,n){return function(){this.style.setProperty(e,t,n)}}function m2(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function v2(e,t,n){return arguments.length>1?this.each((t==null?p2:typeof t=="function"?m2:h2)(e,t,n??"")):Ea(this.node(),e)}function Ea(e,t){return e.style.getPropertyValue(t)||pv(e).getComputedStyle(e,null).getPropertyValue(t)}function y2(e){return function(){delete this[e]}}function b2(e,t){return function(){this[e]=t}}function C2(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function x2(e,t){return arguments.length>1?this.each((t==null?y2:typeof t=="function"?C2:b2)(e,t)):this.node()[e]}function hv(e){return e.trim().split(/^|\s+/)}function pf(e){return e.classList||new mv(e)}function mv(e){this._node=e,this._names=hv(e.getAttribute("class")||"")}mv.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function vv(e,t){for(var n=pf(e),r=-1,o=t.length;++r<o;)n.add(t[r])}function yv(e,t){for(var n=pf(e),r=-1,o=t.length;++r<o;)n.remove(t[r])}function w2(e){return function(){vv(this,e)}}function S2(e){return function(){yv(this,e)}}function E2(e,t){return function(){(t.apply(this,arguments)?vv:yv)(this,e)}}function $2(e,t){var n=hv(e+"");if(arguments.length<2){for(var r=pf(this.node()),o=-1,i=n.length;++o<i;)if(!r.contains(n[o]))return!1;return!0}return this.each((typeof t=="function"?E2:t?w2:S2)(n,t))}function _2(){this.textContent=""}function O2(e){return function(){this.textContent=e}}function N2(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function P2(e){return arguments.length?this.each(e==null?_2:(typeof e=="function"?N2:O2)(e)):this.node().textContent}function I2(){this.innerHTML=""}function T2(e){return function(){this.innerHTML=e}}function M2(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function A2(e){return arguments.length?this.each(e==null?I2:(typeof e=="function"?M2:T2)(e)):this.node().innerHTML}function D2(){this.nextSibling&&this.parentNode.appendChild(this)}function F2(){return this.each(D2)}function L2(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function R2(){return this.each(L2)}function z2(e){var t=typeof e=="function"?e:cv(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function j2(){return null}function B2(e,t){var n=typeof e=="function"?e:cv(e),r=t==null?j2:typeof t=="function"?t:gf(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function V2(){var e=this.parentNode;e&&e.removeChild(this)}function H2(){return this.each(V2)}function k2(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function W2(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function U2(e){return this.select(e?W2:k2)}function q2(e){return arguments.length?this.property("__data__",e):this.node().__data__}function G2(e){return function(t){e.call(this,t,this.__data__)}}function X2(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function Y2(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,o=t.length,i;n<o;++n)i=t[n],(!e.type||i.type===e.type)&&i.name===e.name?this.removeEventListener(i.type,i.listener,i.options):t[++r]=i;++r?t.length=r:delete this.__on}}}function K2(e,t,n){return function(){var r=this.__on,o,i=G2(t);if(r){for(var a=0,l=r.length;a<l;++a)if((o=r[a]).type===e.type&&o.name===e.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=i,o.options=n),o.value=t;return}}this.addEventListener(e.type,i,n),o={type:e.type,name:e.name,value:t,listener:i,options:n},r?r.push(o):this.__on=[o]}}function Z2(e,t,n){var r=X2(e+""),o,i=r.length,a;if(arguments.length<2){var l=this.node().__on;if(l){for(var u=0,d=l.length,f;u<d;++u)for(o=0,f=l[u];o<i;++o)if((a=r[o]).type===f.type&&a.name===f.name)return f.value}return}for(l=t?K2:Y2,o=0;o<i;++o)this.each(l(r[o],t,n));return this}function bv(e,t,n){var r=pv(e),o=r.CustomEvent;typeof o=="function"?o=new o(t,n):(o=r.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function Q2(e,t){return function(){return bv(this,e,t)}}function J2(e,t){return function(){return bv(this,e,t.apply(this,arguments))}}function eN(e,t){return this.each((typeof t=="function"?J2:Q2)(e,t))}function*tN(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],o=0,i=r.length,a;o<i;++o)(a=r[o])&&(yield a)}var Cv=[null];function or(e,t){this._groups=e,this._parents=t}function Ls(){return new or([[document.documentElement]],Cv)}function nN(){return this}or.prototype=Ls.prototype={constructor:or,select:NO,selectAll:MO,selectChild:LO,selectChildren:BO,filter:VO,data:GO,enter:HO,exit:YO,join:KO,merge:ZO,selection:nN,order:QO,sort:JO,call:t2,nodes:n2,node:r2,size:o2,empty:i2,each:a2,attr:g2,style:v2,property:x2,classed:$2,text:P2,html:A2,raise:F2,lower:R2,append:z2,insert:B2,remove:H2,clone:U2,datum:q2,on:Z2,dispatch:eN,[Symbol.iterator]:tN};function ir(e){return typeof e=="string"?new or([[document.querySelector(e)]],[document.documentElement]):new or([[e]],Cv)}function rN(e){let t;for(;t=e.sourceEvent;)e=t;return e}function Ur(e,t){if(e=rN(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var o=t.getBoundingClientRect();return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}const oN={passive:!1},Rs={capture:!0,passive:!1};function hf(e){e.stopImmediatePropagation()}function $a(e){e.preventDefault(),e.stopImmediatePropagation()}function xv(e){var t=e.document.documentElement,n=ir(e).on("dragstart.drag",$a,Rs);"onselectstart"in t?n.on("selectstart.drag",$a,Rs):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function wv(e,t){var n=e.document.documentElement,r=ir(e).on("dragstart.drag",null);t&&(r.on("click.drag",$a,Rs),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const fc=e=>()=>e;function mf(e,{sourceEvent:t,subject:n,target:r,identifier:o,active:i,x:a,y:l,dx:u,dy:d,dispatch:f}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:o,enumerable:!0,configurable:!0},active:{value:i,enumerable:!0,configurable:!0},x:{value:a,enumerable:!0,configurable:!0},y:{value:l,enumerable:!0,configurable:!0},dx:{value:u,enumerable:!0,configurable:!0},dy:{value:d,enumerable:!0,configurable:!0},_:{value:f}})}mf.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function iN(e){return!e.ctrlKey&&!e.button}function aN(){return this.parentNode}function sN(e,t){return t??{x:e.x,y:e.y}}function lN(){return navigator.maxTouchPoints||"ontouchstart"in this}function Sv(){var e=iN,t=aN,n=sN,r=lN,o={},i=lc("start","drag","end"),a=0,l,u,d,f,g=0;function p(E){E.on("mousedown.drag",m).filter(r).on("touchstart.drag",y).on("touchmove.drag",x,oN).on("touchend.drag touchcancel.drag",$).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function m(E,S){if(!(f||!e.call(this,E,S))){var O=w(this,t.call(this,E,S),E,S,"mouse");O&&(ir(E.view).on("mousemove.drag",b,Rs).on("mouseup.drag",C,Rs),xv(E.view),hf(E),d=!1,l=E.clientX,u=E.clientY,O("start",E))}}function b(E){if($a(E),!d){var S=E.clientX-l,O=E.clientY-u;d=S*S+O*O>g}o.mouse("drag",E)}function C(E){ir(E.view).on("mousemove.drag mouseup.drag",null),wv(E.view,d),$a(E),o.mouse("end",E)}function y(E,S){if(e.call(this,E,S)){var O=E.changedTouches,_=t.call(this,E,S),P=O.length,T,L;for(T=0;T<P;++T)(L=w(this,_,E,S,O[T].identifier,O[T]))&&(hf(E),L("start",E,O[T]))}}function x(E){var S=E.changedTouches,O=S.length,_,P;for(_=0;_<O;++_)(P=o[S[_].identifier])&&($a(E),P("drag",E,S[_]))}function $(E){var S=E.changedTouches,O=S.length,_,P;for(f&&clearTimeout(f),f=setTimeout(function(){f=null},500),_=0;_<O;++_)(P=o[S[_].identifier])&&(hf(E),P("end",E,S[_]))}function w(E,S,O,_,P,T){var L=i.copy(),z=Ur(T||O,S),B,j,I;if((I=n.call(E,new mf("beforestart",{sourceEvent:O,target:p,identifier:P,active:a,x:z[0],y:z[1],dx:0,dy:0,dispatch:L}),_))!=null)return B=I.x-z[0]||0,j=I.y-z[1]||0,function F(A,D,V){var W=z,H;switch(A){case"start":o[P]=F,H=a++;break;case"end":delete o[P],--a;case"drag":z=Ur(V||D,S),H=a;break}L.call(A,E,new mf(A,{sourceEvent:D,subject:I,target:p,identifier:P,active:H,x:z[0]+B,y:z[1]+j,dx:z[0]-W[0],dy:z[1]-W[1],dispatch:L}),_)}}return p.filter=function(E){return arguments.length?(e=typeof E=="function"?E:fc(!!E),p):e},p.container=function(E){return arguments.length?(t=typeof E=="function"?E:fc(E),p):t},p.subject=function(E){return arguments.length?(n=typeof E=="function"?E:fc(E),p):n},p.touchable=function(E){return arguments.length?(r=typeof E=="function"?E:fc(!!E),p):r},p.on=function(){var E=i.on.apply(i,arguments);return E===i?p:E},p.clickDistance=function(E){return arguments.length?(g=(E=+E)*E,p):Math.sqrt(g)},p}function vf(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Ev(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function zs(){}var js=.7,gc=1/js,_a="\\s*([+-]?\\d+)\\s*",Bs="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",po="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",cN=/^#([0-9a-f]{3,8})$/,uN=new RegExp(`^rgb\\(${_a},${_a},${_a}\\)$`),dN=new RegExp(`^rgb\\(${po},${po},${po}\\)$`),fN=new RegExp(`^rgba\\(${_a},${_a},${_a},${Bs}\\)$`),gN=new RegExp(`^rgba\\(${po},${po},${po},${Bs}\\)$`),pN=new RegExp(`^hsl\\(${Bs},${po},${po}\\)$`),hN=new RegExp(`^hsla\\(${Bs},${po},${po},${Bs}\\)$`),$v={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};vf(zs,qi,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:_v,formatHex:_v,formatHex8:mN,formatHsl:vN,formatRgb:Ov,toString:Ov});function _v(){return this.rgb().formatHex()}function mN(){return this.rgb().formatHex8()}function vN(){return Mv(this).formatHsl()}function Ov(){return this.rgb().formatRgb()}function qi(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=cN.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Nv(t):n===3?new Gn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?pc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?pc(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=uN.exec(e))?new Gn(t[1],t[2],t[3],1):(t=dN.exec(e))?new Gn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=fN.exec(e))?pc(t[1],t[2],t[3],t[4]):(t=gN.exec(e))?pc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=pN.exec(e))?Tv(t[1],t[2]/100,t[3]/100,1):(t=hN.exec(e))?Tv(t[1],t[2]/100,t[3]/100,t[4]):$v.hasOwnProperty(e)?Nv($v[e]):e==="transparent"?new Gn(NaN,NaN,NaN,0):null}function Nv(e){return new Gn(e>>16&255,e>>8&255,e&255,1)}function pc(e,t,n,r){return r<=0&&(e=t=n=NaN),new Gn(e,t,n,r)}function yN(e){return e instanceof zs||(e=qi(e)),e?(e=e.rgb(),new Gn(e.r,e.g,e.b,e.opacity)):new Gn}function yf(e,t,n,r){return arguments.length===1?yN(e):new Gn(e,t,n,r??1)}function Gn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}vf(Gn,yf,Ev(zs,{brighter(e){return e=e==null?gc:Math.pow(gc,e),new Gn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?js:Math.pow(js,e),new Gn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Gn(Gi(this.r),Gi(this.g),Gi(this.b),hc(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Pv,formatHex:Pv,formatHex8:bN,formatRgb:Iv,toString:Iv}));function Pv(){return`#${Xi(this.r)}${Xi(this.g)}${Xi(this.b)}`}function bN(){return`#${Xi(this.r)}${Xi(this.g)}${Xi(this.b)}${Xi((isNaN(this.opacity)?1:this.opacity)*255)}`}function Iv(){const e=hc(this.opacity);return`${e===1?"rgb(":"rgba("}${Gi(this.r)}, ${Gi(this.g)}, ${Gi(this.b)}${e===1?")":`, ${e})`}`}function hc(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Gi(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Xi(e){return e=Gi(e),(e<16?"0":"")+e.toString(16)}function Tv(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new qr(e,t,n,r)}function Mv(e){if(e instanceof qr)return new qr(e.h,e.s,e.l,e.opacity);if(e instanceof zs||(e=qi(e)),!e)return new qr;if(e instanceof qr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,u=(i+o)/2;return l?(t===i?a=(n-r)/l+(n<r)*6:n===i?a=(r-t)/l+2:a=(t-n)/l+4,l/=u<.5?i+o:2-i-o,a*=60):l=u>0&&u<1?0:a,new qr(a,l,u,e.opacity)}function CN(e,t,n,r){return arguments.length===1?Mv(e):new qr(e,t,n,r??1)}function qr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}vf(qr,CN,Ev(zs,{brighter(e){return e=e==null?gc:Math.pow(gc,e),new qr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?js:Math.pow(js,e),new qr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Gn(bf(e>=240?e-240:e+120,o,r),bf(e,o,r),bf(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new qr(Av(this.h),mc(this.s),mc(this.l),hc(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=hc(this.opacity);return`${e===1?"hsl(":"hsla("}${Av(this.h)}, ${mc(this.s)*100}%, ${mc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Av(e){return e=(e||0)%360,e<0?e+360:e}function mc(e){return Math.max(0,Math.min(1,e||0))}function bf(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Cf=e=>()=>e;function xN(e,t){return function(n){return e+n*t}}function wN(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function SN(e){return(e=+e)==1?Dv:function(t,n){return n-t?wN(t,n,e):Cf(isNaN(t)?n:t)}}function Dv(e,t){var n=t-e;return n?xN(e,n):Cf(isNaN(e)?t:e)}const vc=function e(t){var n=SN(t);function r(o,i){var a=n((o=yf(o)).r,(i=yf(i)).r),l=n(o.g,i.g),u=n(o.b,i.b),d=Dv(o.opacity,i.opacity);return function(f){return o.r=a(f),o.g=l(f),o.b=u(f),o.opacity=d(f),o+""}}return r.gamma=e,r}(1);function EN(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),o;return function(i){for(o=0;o<n;++o)r[o]=e[o]*(1-i)+t[o]*i;return r}}function $N(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function _N(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,o=new Array(r),i=new Array(n),a;for(a=0;a<r;++a)o[a]=Vs(e[a],t[a]);for(;a<n;++a)i[a]=t[a];return function(l){for(a=0;a<r;++a)i[a]=o[a](l);return i}}function ON(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function ho(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function NN(e,t){var n={},r={},o;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(o in t)o in e?n[o]=Vs(e[o],t[o]):r[o]=t[o];return function(i){for(o in n)r[o]=n[o](i);return r}}var xf=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,wf=new RegExp(xf.source,"g");function PN(e){return function(){return e}}function IN(e){return function(t){return e(t)+""}}function Fv(e,t){var n=xf.lastIndex=wf.lastIndex=0,r,o,i,a=-1,l=[],u=[];for(e=e+"",t=t+"";(r=xf.exec(e))&&(o=wf.exec(t));)(i=o.index)>n&&(i=t.slice(n,i),l[a]?l[a]+=i:l[++a]=i),(r=r[0])===(o=o[0])?l[a]?l[a]+=o:l[++a]=o:(l[++a]=null,u.push({i:a,x:ho(r,o)})),n=wf.lastIndex;return n<t.length&&(i=t.slice(n),l[a]?l[a]+=i:l[++a]=i),l.length<2?u[0]?IN(u[0].x):PN(t):(t=u.length,function(d){for(var f=0,g;f<t;++f)l[(g=u[f]).i]=g.x(d);return l.join("")})}function Vs(e,t){var n=typeof t,r;return t==null||n==="boolean"?Cf(t):(n==="number"?ho:n==="string"?(r=qi(t))?(t=r,vc):Fv:t instanceof qi?vc:t instanceof Date?ON:$N(t)?EN:Array.isArray(t)?_N:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?NN:ho)(e,t)}var Lv=180/Math.PI,Sf={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Rv(e,t,n,r,o,i){var a,l,u;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(u=e*n+t*r)&&(n-=e*u,r-=t*u),(l=Math.sqrt(n*n+r*r))&&(n/=l,r/=l,u/=l),e*r<t*n&&(e=-e,t=-t,u=-u,a=-a),{translateX:o,translateY:i,rotate:Math.atan2(t,e)*Lv,skewX:Math.atan(u)*Lv,scaleX:a,scaleY:l}}var yc;function TN(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Sf:Rv(t.a,t.b,t.c,t.d,t.e,t.f)}function MN(e){return e==null||(yc||(yc=document.createElementNS("http://www.w3.org/2000/svg","g")),yc.setAttribute("transform",e),!(e=yc.transform.baseVal.consolidate()))?Sf:(e=e.matrix,Rv(e.a,e.b,e.c,e.d,e.e,e.f))}function zv(e,t,n,r){function o(d){return d.length?d.pop()+" ":""}function i(d,f,g,p,m,b){if(d!==g||f!==p){var C=m.push("translate(",null,t,null,n);b.push({i:C-4,x:ho(d,g)},{i:C-2,x:ho(f,p)})}else(g||p)&&m.push("translate("+g+t+p+n)}function a(d,f,g,p){d!==f?(d-f>180?f+=360:f-d>180&&(d+=360),p.push({i:g.push(o(g)+"rotate(",null,r)-2,x:ho(d,f)})):f&&g.push(o(g)+"rotate("+f+r)}function l(d,f,g,p){d!==f?p.push({i:g.push(o(g)+"skewX(",null,r)-2,x:ho(d,f)}):f&&g.push(o(g)+"skewX("+f+r)}function u(d,f,g,p,m,b){if(d!==g||f!==p){var C=m.push(o(m)+"scale(",null,",",null,")");b.push({i:C-4,x:ho(d,g)},{i:C-2,x:ho(f,p)})}else(g!==1||p!==1)&&m.push(o(m)+"scale("+g+","+p+")")}return function(d,f){var g=[],p=[];return d=e(d),f=e(f),i(d.translateX,d.translateY,f.translateX,f.translateY,g,p),a(d.rotate,f.rotate,g,p),l(d.skewX,f.skewX,g,p),u(d.scaleX,d.scaleY,f.scaleX,f.scaleY,g,p),d=f=null,function(m){for(var b=-1,C=p.length,y;++b<C;)g[(y=p[b]).i]=y.x(m);return g.join("")}}}var AN=zv(TN,"px, ","px)","deg)"),DN=zv(MN,", ",")",")"),FN=1e-12;function jv(e){return((e=Math.exp(e))+1/e)/2}function LN(e){return((e=Math.exp(e))-1/e)/2}function RN(e){return((e=Math.exp(2*e))-1)/(e+1)}const bc=function e(t,n,r){function o(i,a){var l=i[0],u=i[1],d=i[2],f=a[0],g=a[1],p=a[2],m=f-l,b=g-u,C=m*m+b*b,y,x;if(C<FN)x=Math.log(p/d)/t,y=function(_){return[l+_*m,u+_*b,d*Math.exp(t*_*x)]};else{var $=Math.sqrt(C),w=(p*p-d*d+r*C)/(2*d*n*$),E=(p*p-d*d-r*C)/(2*p*n*$),S=Math.log(Math.sqrt(w*w+1)-w),O=Math.log(Math.sqrt(E*E+1)-E);x=(O-S)/t,y=function(_){var P=_*x,T=jv(S),L=d/(n*$)*(T*RN(t*P+S)-LN(S));return[l+L*m,u+L*b,d*T/jv(t*P+S)]}}return y.duration=x*1e3*t/Math.SQRT2,y}return o.rho=function(i){var a=Math.max(.001,+i),l=a*a,u=l*l;return e(a,l,u)},o}(Math.SQRT2,2,4);var Oa=0,Hs=0,ks=0,Bv=1e3,Cc,Ws,xc=0,Yi=0,wc=0,Us=typeof performance=="object"&&performance.now?performance:Date,Vv=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Ef(){return Yi||(Vv(zN),Yi=Us.now()+wc)}function zN(){Yi=0}function Sc(){this._call=this._time=this._next=null}Sc.prototype=Hv.prototype={constructor:Sc,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?Ef():+n)+(t==null?0:+t),!this._next&&Ws!==this&&(Ws?Ws._next=this:Cc=this,Ws=this),this._call=e,this._time=n,$f()},stop:function(){this._call&&(this._call=null,this._time=1/0,$f())}};function Hv(e,t,n){var r=new Sc;return r.restart(e,t,n),r}function jN(){Ef(),++Oa;for(var e=Cc,t;e;)(t=Yi-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Oa}function kv(){Yi=(xc=Us.now())+wc,Oa=Hs=0;try{jN()}finally{Oa=0,VN(),Yi=0}}function BN(){var e=Us.now(),t=e-xc;t>Bv&&(wc-=t,xc=e)}function VN(){for(var e,t=Cc,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Cc=n);Ws=e,$f(r)}function $f(e){if(!Oa){Hs&&(Hs=clearTimeout(Hs));var t=e-Yi;t>24?(e<1/0&&(Hs=setTimeout(kv,e-Us.now()-wc)),ks&&(ks=clearInterval(ks))):(ks||(xc=Us.now(),ks=setInterval(BN,Bv)),Oa=1,Vv(kv))}}function Wv(e,t,n){var r=new Sc;return t=t==null?0:+t,r.restart(o=>{r.stop(),e(o+t)},t,n),r}var HN=lc("start","end","cancel","interrupt"),kN=[],Uv=0,qv=1,_f=2,Ec=3,Gv=4,Of=5,$c=6;function _c(e,t,n,r,o,i){var a=e.__transition;if(!a)e.__transition={};else if(n in a)return;WN(e,n,{name:t,index:r,group:o,on:HN,tween:kN,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:Uv})}function Nf(e,t){var n=Gr(e,t);if(n.state>Uv)throw new Error("too late; already scheduled");return n}function mo(e,t){var n=Gr(e,t);if(n.state>Ec)throw new Error("too late; already running");return n}function Gr(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function WN(e,t,n){var r=e.__transition,o;r[t]=n,n.timer=Hv(i,0,n.time);function i(d){n.state=qv,n.timer.restart(a,n.delay,n.time),n.delay<=d&&a(d-n.delay)}function a(d){var f,g,p,m;if(n.state!==qv)return u();for(f in r)if(m=r[f],m.name===n.name){if(m.state===Ec)return Wv(a);m.state===Gv?(m.state=$c,m.timer.stop(),m.on.call("interrupt",e,e.__data__,m.index,m.group),delete r[f]):+f<t&&(m.state=$c,m.timer.stop(),m.on.call("cancel",e,e.__data__,m.index,m.group),delete r[f])}if(Wv(function(){n.state===Ec&&(n.state=Gv,n.timer.restart(l,n.delay,n.time),l(d))}),n.state=_f,n.on.call("start",e,e.__data__,n.index,n.group),n.state===_f){for(n.state=Ec,o=new Array(p=n.tween.length),f=0,g=-1;f<p;++f)(m=n.tween[f].value.call(e,e.__data__,n.index,n.group))&&(o[++g]=m);o.length=g+1}}function l(d){for(var f=d<n.duration?n.ease.call(null,d/n.duration):(n.timer.restart(u),n.state=Of,1),g=-1,p=o.length;++g<p;)o[g].call(e,f);n.state===Of&&(n.on.call("end",e,e.__data__,n.index,n.group),u())}function u(){n.state=$c,n.timer.stop(),delete r[t];for(var d in r)return;delete e.__transition}}function Oc(e,t){var n=e.__transition,r,o,i=!0,a;if(n){t=t==null?null:t+"";for(a in n){if((r=n[a]).name!==t){i=!1;continue}o=r.state>_f&&r.state<Of,r.state=$c,r.timer.stop(),r.on.call(o?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[a]}i&&delete e.__transition}}function UN(e){return this.each(function(){Oc(this,e)})}function qN(e,t){var n,r;return function(){var o=mo(this,e),i=o.tween;if(i!==n){r=n=i;for(var a=0,l=r.length;a<l;++a)if(r[a].name===t){r=r.slice(),r.splice(a,1);break}}o.tween=r}}function GN(e,t,n){var r,o;if(typeof n!="function")throw new Error;return function(){var i=mo(this,e),a=i.tween;if(a!==r){o=(r=a).slice();for(var l={name:t,value:n},u=0,d=o.length;u<d;++u)if(o[u].name===t){o[u]=l;break}u===d&&o.push(l)}i.tween=o}}function XN(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=Gr(this.node(),n).tween,o=0,i=r.length,a;o<i;++o)if((a=r[o]).name===e)return a.value;return null}return this.each((t==null?qN:GN)(n,e,t))}function Pf(e,t,n){var r=e._id;return e.each(function(){var o=mo(this,r);(o.value||(o.value={}))[t]=n.apply(this,arguments)}),function(o){return Gr(o,r).value[t]}}function Xv(e,t){var n;return(typeof t=="number"?ho:t instanceof qi?vc:(n=qi(t))?(t=n,vc):Fv)(e,t)}function YN(e){return function(){this.removeAttribute(e)}}function KN(e){return function(){this.removeAttributeNS(e.space,e.local)}}function ZN(e,t,n){var r,o=n+"",i;return function(){var a=this.getAttribute(e);return a===o?null:a===r?i:i=t(r=a,n)}}function QN(e,t,n){var r,o=n+"",i;return function(){var a=this.getAttributeNS(e.space,e.local);return a===o?null:a===r?i:i=t(r=a,n)}}function JN(e,t,n){var r,o,i;return function(){var a,l=n(this),u;return l==null?void this.removeAttribute(e):(a=this.getAttribute(e),u=l+"",a===u?null:a===r&&u===o?i:(o=u,i=t(r=a,l)))}}function eP(e,t,n){var r,o,i;return function(){var a,l=n(this),u;return l==null?void this.removeAttributeNS(e.space,e.local):(a=this.getAttributeNS(e.space,e.local),u=l+"",a===u?null:a===r&&u===o?i:(o=u,i=t(r=a,l)))}}function tP(e,t){var n=uc(e),r=n==="transform"?DN:Xv;return this.attrTween(e,typeof t=="function"?(n.local?eP:JN)(n,r,Pf(this,"attr."+e,t)):t==null?(n.local?KN:YN)(n):(n.local?QN:ZN)(n,r,t))}function nP(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function rP(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function oP(e,t){var n,r;function o(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&rP(e,i)),n}return o._value=t,o}function iP(e,t){var n,r;function o(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&nP(e,i)),n}return o._value=t,o}function aP(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var r=uc(e);return this.tween(n,(r.local?oP:iP)(r,t))}function sP(e,t){return function(){Nf(this,e).delay=+t.apply(this,arguments)}}function lP(e,t){return t=+t,function(){Nf(this,e).delay=t}}function cP(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?sP:lP)(t,e)):Gr(this.node(),t).delay}function uP(e,t){return function(){mo(this,e).duration=+t.apply(this,arguments)}}function dP(e,t){return t=+t,function(){mo(this,e).duration=t}}function fP(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?uP:dP)(t,e)):Gr(this.node(),t).duration}function gP(e,t){if(typeof t!="function")throw new Error;return function(){mo(this,e).ease=t}}function pP(e){var t=this._id;return arguments.length?this.each(gP(t,e)):Gr(this.node(),t).ease}function hP(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;mo(this,e).ease=n}}function mP(e){if(typeof e!="function")throw new Error;return this.each(hP(this._id,e))}function vP(e){typeof e!="function"&&(e=dv(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var i=t[o],a=i.length,l=r[o]=[],u,d=0;d<a;++d)(u=i[d])&&e.call(u,u.__data__,d,i)&&l.push(u);return new Ao(r,this._parents,this._name,this._id)}function yP(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,o=n.length,i=Math.min(r,o),a=new Array(r),l=0;l<i;++l)for(var u=t[l],d=n[l],f=u.length,g=a[l]=new Array(f),p,m=0;m<f;++m)(p=u[m]||d[m])&&(g[m]=p);for(;l<r;++l)a[l]=t[l];return new Ao(a,this._parents,this._name,this._id)}function bP(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function CP(e,t,n){var r,o,i=bP(t)?Nf:mo;return function(){var a=i(this,e),l=a.on;l!==r&&(o=(r=l).copy()).on(t,n),a.on=o}}function xP(e,t){var n=this._id;return arguments.length<2?Gr(this.node(),n).on.on(e):this.each(CP(n,e,t))}function wP(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function SP(){return this.on("end.remove",wP(this._id))}function EP(e){var t=this._name,n=this._id;typeof e!="function"&&(e=gf(e));for(var r=this._groups,o=r.length,i=new Array(o),a=0;a<o;++a)for(var l=r[a],u=l.length,d=i[a]=new Array(u),f,g,p=0;p<u;++p)(f=l[p])&&(g=e.call(f,f.__data__,p,l))&&("__data__"in f&&(g.__data__=f.__data__),d[p]=g,_c(d[p],t,n,p,d,Gr(f,n)));return new Ao(i,this._parents,t,n)}function $P(e){var t=this._name,n=this._id;typeof e!="function"&&(e=uv(e));for(var r=this._groups,o=r.length,i=[],a=[],l=0;l<o;++l)for(var u=r[l],d=u.length,f,g=0;g<d;++g)if(f=u[g]){for(var p=e.call(f,f.__data__,g,u),m,b=Gr(f,n),C=0,y=p.length;C<y;++C)(m=p[C])&&_c(m,t,n,C,p,b);i.push(p),a.push(f)}return new Ao(i,a,t,n)}var _P=Ls.prototype.constructor;function OP(){return new _P(this._groups,this._parents)}function NP(e,t){var n,r,o;return function(){var i=Ea(this,e),a=(this.style.removeProperty(e),Ea(this,e));return i===a?null:i===n&&a===r?o:o=t(n=i,r=a)}}function Yv(e){return function(){this.style.removeProperty(e)}}function PP(e,t,n){var r,o=n+"",i;return function(){var a=Ea(this,e);return a===o?null:a===r?i:i=t(r=a,n)}}function IP(e,t,n){var r,o,i;return function(){var a=Ea(this,e),l=n(this),u=l+"";return l==null&&(u=l=(this.style.removeProperty(e),Ea(this,e))),a===u?null:a===r&&u===o?i:(o=u,i=t(r=a,l))}}function TP(e,t){var n,r,o,i="style."+t,a="end."+i,l;return function(){var u=mo(this,e),d=u.on,f=u.value[i]==null?l||(l=Yv(t)):void 0;(d!==n||o!==f)&&(r=(n=d).copy()).on(a,o=f),u.on=r}}function MP(e,t,n){var r=(e+="")=="transform"?AN:Xv;return t==null?this.styleTween(e,NP(e,r)).on("end.style."+e,Yv(e)):typeof t=="function"?this.styleTween(e,IP(e,r,Pf(this,"style."+e,t))).each(TP(this._id,e)):this.styleTween(e,PP(e,r,t),n).on("end.style."+e,null)}function AP(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function DP(e,t,n){var r,o;function i(){var a=t.apply(this,arguments);return a!==o&&(r=(o=a)&&AP(e,a,n)),r}return i._value=t,i}function FP(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;return this.tween(r,DP(e,t,n??""))}function LP(e){return function(){this.textContent=e}}function RP(e){return function(){var t=e(this);this.textContent=t??""}}function zP(e){return this.tween("text",typeof e=="function"?RP(Pf(this,"text",e)):LP(e==null?"":e+""))}function jP(e){return function(t){this.textContent=e.call(this,t)}}function BP(e){var t,n;function r(){var o=e.apply(this,arguments);return o!==n&&(t=(n=o)&&jP(o)),t}return r._value=e,r}function VP(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,BP(e))}function HP(){for(var e=this._name,t=this._id,n=Kv(),r=this._groups,o=r.length,i=0;i<o;++i)for(var a=r[i],l=a.length,u,d=0;d<l;++d)if(u=a[d]){var f=Gr(u,t);_c(u,e,n,d,a,{time:f.time+f.delay+f.duration,delay:0,duration:f.duration,ease:f.ease})}return new Ao(r,this._parents,e,n)}function kP(){var e,t,n=this,r=n._id,o=n.size();return new Promise(function(i,a){var l={value:a},u={value:function(){--o===0&&i()}};n.each(function(){var d=mo(this,r),f=d.on;f!==e&&(t=(e=f).copy(),t._.cancel.push(l),t._.interrupt.push(l),t._.end.push(u)),d.on=t}),o===0&&i()})}var WP=0;function Ao(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Kv(){return++WP}var Do=Ls.prototype;Ao.prototype={constructor:Ao,select:EP,selectAll:$P,selectChild:Do.selectChild,selectChildren:Do.selectChildren,filter:vP,merge:yP,selection:OP,transition:HP,call:Do.call,nodes:Do.nodes,node:Do.node,size:Do.size,empty:Do.empty,each:Do.each,on:xP,attr:tP,attrTween:aP,style:MP,styleTween:FP,text:zP,textTween:VP,remove:SP,tween:XN,delay:cP,duration:fP,ease:pP,easeVarying:mP,end:kP,[Symbol.iterator]:Do[Symbol.iterator]};function UP(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var qP={time:null,delay:0,duration:250,ease:UP};function GP(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function XP(e){var t,n;e instanceof Ao?(t=e._id,e=e._name):(t=Kv(),(n=qP).time=Ef(),e=e==null?null:e+"");for(var r=this._groups,o=r.length,i=0;i<o;++i)for(var a=r[i],l=a.length,u,d=0;d<l;++d)(u=a[d])&&_c(u,e,t,d,a,n||GP(u,t));return new Ao(r,this._parents,e,t)}Ls.prototype.interrupt=UN,Ls.prototype.transition=XP;const Nc=e=>()=>e;function YP(e,{sourceEvent:t,target:n,transform:r,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:o}})}function Fo(e,t,n){this.k=e,this.x=t,this.y=n}Fo.prototype={constructor:Fo,scale:function(e){return e===1?this:new Fo(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Fo(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Pc=new Fo(1,0,0);Zv.prototype=Fo.prototype;function Zv(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Pc;return e.__zoom}function If(e){e.stopImmediatePropagation()}function qs(e){e.preventDefault(),e.stopImmediatePropagation()}function KP(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function ZP(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function Qv(){return this.__zoom||Pc}function QP(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function JP(){return navigator.maxTouchPoints||"ontouchstart"in this}function eI(e,t,n){var r=e.invertX(t[0][0])-n[0][0],o=e.invertX(t[1][0])-n[1][0],i=e.invertY(t[0][1])-n[0][1],a=e.invertY(t[1][1])-n[1][1];return e.translate(o>r?(r+o)/2:Math.min(0,r)||Math.max(0,o),a>i?(i+a)/2:Math.min(0,i)||Math.max(0,a))}function Jv(){var e=KP,t=ZP,n=eI,r=QP,o=JP,i=[0,1/0],a=[[-1/0,-1/0],[1/0,1/0]],l=250,u=bc,d=lc("start","zoom","end"),f,g,p,m=500,b=150,C=0,y=10;function x(I){I.property("__zoom",Qv).on("wheel.zoom",P,{passive:!1}).on("mousedown.zoom",T).on("dblclick.zoom",L).filter(o).on("touchstart.zoom",z).on("touchmove.zoom",B).on("touchend.zoom touchcancel.zoom",j).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}x.transform=function(I,F,A,D){var V=I.selection?I.selection():I;V.property("__zoom",Qv),I!==V?S(I,F,A,D):V.interrupt().each(function(){O(this,arguments).event(D).start().zoom(null,typeof F=="function"?F.apply(this,arguments):F).end()})},x.scaleBy=function(I,F,A,D){x.scaleTo(I,function(){var V=this.__zoom.k,W=typeof F=="function"?F.apply(this,arguments):F;return V*W},A,D)},x.scaleTo=function(I,F,A,D){x.transform(I,function(){var V=t.apply(this,arguments),W=this.__zoom,H=A==null?E(V):typeof A=="function"?A.apply(this,arguments):A,q=W.invert(H),Z=typeof F=="function"?F.apply(this,arguments):F;return n(w($(W,Z),H,q),V,a)},A,D)},x.translateBy=function(I,F,A,D){x.transform(I,function(){return n(this.__zoom.translate(typeof F=="function"?F.apply(this,arguments):F,typeof A=="function"?A.apply(this,arguments):A),t.apply(this,arguments),a)},null,D)},x.translateTo=function(I,F,A,D,V){x.transform(I,function(){var W=t.apply(this,arguments),H=this.__zoom,q=D==null?E(W):typeof D=="function"?D.apply(this,arguments):D;return n(Pc.translate(q[0],q[1]).scale(H.k).translate(typeof F=="function"?-F.apply(this,arguments):-F,typeof A=="function"?-A.apply(this,arguments):-A),W,a)},D,V)};function $(I,F){return F=Math.max(i[0],Math.min(i[1],F)),F===I.k?I:new Fo(F,I.x,I.y)}function w(I,F,A){var D=F[0]-A[0]*I.k,V=F[1]-A[1]*I.k;return D===I.x&&V===I.y?I:new Fo(I.k,D,V)}function E(I){return[(+I[0][0]+ +I[1][0])/2,(+I[0][1]+ +I[1][1])/2]}function S(I,F,A,D){I.on("start.zoom",function(){O(this,arguments).event(D).start()}).on("interrupt.zoom end.zoom",function(){O(this,arguments).event(D).end()}).tween("zoom",function(){var V=this,W=arguments,H=O(V,W).event(D),q=t.apply(V,W),Z=A==null?E(q):typeof A=="function"?A.apply(V,W):A,Y=Math.max(q[1][0]-q[0][0],q[1][1]-q[0][1]),G=V.__zoom,K=typeof F=="function"?F.apply(V,W):F,te=u(G.invert(Z).concat(Y/G.k),K.invert(Z).concat(Y/K.k));return function(ie){if(ie===1)ie=K;else{var ee=te(ie),ae=Y/ee[2];ie=new Fo(ae,Z[0]-ee[0]*ae,Z[1]-ee[1]*ae)}H.zoom(null,ie)}})}function O(I,F,A){return!A&&I.__zooming||new _(I,F)}function _(I,F){this.that=I,this.args=F,this.active=0,this.sourceEvent=null,this.extent=t.apply(I,F),this.taps=0}_.prototype={event:function(I){return I&&(this.sourceEvent=I),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(I,F){return this.mouse&&I!=="mouse"&&(this.mouse[1]=F.invert(this.mouse[0])),this.touch0&&I!=="touch"&&(this.touch0[1]=F.invert(this.touch0[0])),this.touch1&&I!=="touch"&&(this.touch1[1]=F.invert(this.touch1[0])),this.that.__zoom=F,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(I){var F=ir(this.that).datum();d.call(I,this.that,new YP(I,{sourceEvent:this.sourceEvent,target:x,transform:this.that.__zoom,dispatch:d}),F)}};function P(I,...F){if(!e.apply(this,arguments))return;var A=O(this,F).event(I),D=this.__zoom,V=Math.max(i[0],Math.min(i[1],D.k*Math.pow(2,r.apply(this,arguments)))),W=Ur(I);if(A.wheel)(A.mouse[0][0]!==W[0]||A.mouse[0][1]!==W[1])&&(A.mouse[1]=D.invert(A.mouse[0]=W)),clearTimeout(A.wheel);else{if(D.k===V)return;A.mouse=[W,D.invert(W)],Oc(this),A.start()}qs(I),A.wheel=setTimeout(H,b),A.zoom("mouse",n(w($(D,V),A.mouse[0],A.mouse[1]),A.extent,a));function H(){A.wheel=null,A.end()}}function T(I,...F){if(p||!e.apply(this,arguments))return;var A=I.currentTarget,D=O(this,F,!0).event(I),V=ir(I.view).on("mousemove.zoom",Z,!0).on("mouseup.zoom",Y,!0),W=Ur(I,A),H=I.clientX,q=I.clientY;xv(I.view),If(I),D.mouse=[W,this.__zoom.invert(W)],Oc(this),D.start();function Z(G){if(qs(G),!D.moved){var K=G.clientX-H,te=G.clientY-q;D.moved=K*K+te*te>C}D.event(G).zoom("mouse",n(w(D.that.__zoom,D.mouse[0]=Ur(G,A),D.mouse[1]),D.extent,a))}function Y(G){V.on("mousemove.zoom mouseup.zoom",null),wv(G.view,D.moved),qs(G),D.event(G).end()}}function L(I,...F){if(e.apply(this,arguments)){var A=this.__zoom,D=Ur(I.changedTouches?I.changedTouches[0]:I,this),V=A.invert(D),W=A.k*(I.shiftKey?.5:2),H=n(w($(A,W),D,V),t.apply(this,F),a);qs(I),l>0?ir(this).transition().duration(l).call(S,H,D,I):ir(this).call(x.transform,H,D,I)}}function z(I,...F){if(e.apply(this,arguments)){var A=I.touches,D=A.length,V=O(this,F,I.changedTouches.length===D).event(I),W,H,q,Z;for(If(I),H=0;H<D;++H)q=A[H],Z=Ur(q,this),Z=[Z,this.__zoom.invert(Z),q.identifier],V.touch0?!V.touch1&&V.touch0[2]!==Z[2]&&(V.touch1=Z,V.taps=0):(V.touch0=Z,W=!0,V.taps=1+!!f);f&&(f=clearTimeout(f)),W&&(V.taps<2&&(g=Z[0],f=setTimeout(function(){f=null},m)),Oc(this),V.start())}}function B(I,...F){if(this.__zooming){var A=O(this,F).event(I),D=I.changedTouches,V=D.length,W,H,q,Z;for(qs(I),W=0;W<V;++W)H=D[W],q=Ur(H,this),A.touch0&&A.touch0[2]===H.identifier?A.touch0[0]=q:A.touch1&&A.touch1[2]===H.identifier&&(A.touch1[0]=q);if(H=A.that.__zoom,A.touch1){var Y=A.touch0[0],G=A.touch0[1],K=A.touch1[0],te=A.touch1[1],ie=(ie=K[0]-Y[0])*ie+(ie=K[1]-Y[1])*ie,ee=(ee=te[0]-G[0])*ee+(ee=te[1]-G[1])*ee;H=$(H,Math.sqrt(ie/ee)),q=[(Y[0]+K[0])/2,(Y[1]+K[1])/2],Z=[(G[0]+te[0])/2,(G[1]+te[1])/2]}else if(A.touch0)q=A.touch0[0],Z=A.touch0[1];else return;A.zoom("touch",n(w(H,q,Z),A.extent,a))}}function j(I,...F){if(this.__zooming){var A=O(this,F).event(I),D=I.changedTouches,V=D.length,W,H;for(If(I),p&&clearTimeout(p),p=setTimeout(function(){p=null},m),W=0;W<V;++W)H=D[W],A.touch0&&A.touch0[2]===H.identifier?delete A.touch0:A.touch1&&A.touch1[2]===H.identifier&&delete A.touch1;if(A.touch1&&!A.touch0&&(A.touch0=A.touch1,delete A.touch1),A.touch0)A.touch0[1]=this.__zoom.invert(A.touch0[0]);else if(A.end(),A.taps===2&&(H=Ur(H,this),Math.hypot(g[0]-H[0],g[1]-H[1])<y)){var q=ir(this).on("dblclick.zoom");q&&q.apply(this,arguments)}}}return x.wheelDelta=function(I){return arguments.length?(r=typeof I=="function"?I:Nc(+I),x):r},x.filter=function(I){return arguments.length?(e=typeof I=="function"?I:Nc(!!I),x):e},x.touchable=function(I){return arguments.length?(o=typeof I=="function"?I:Nc(!!I),x):o},x.extent=function(I){return arguments.length?(t=typeof I=="function"?I:Nc([[+I[0][0],+I[0][1]],[+I[1][0],+I[1][1]]]),x):t},x.scaleExtent=function(I){return arguments.length?(i[0]=+I[0],i[1]=+I[1],x):[i[0],i[1]]},x.translateExtent=function(I){return arguments.length?(a[0][0]=+I[0][0],a[1][0]=+I[1][0],a[0][1]=+I[0][1],a[1][1]=+I[1][1],x):[[a[0][0],a[0][1]],[a[1][0],a[1][1]]]},x.constrain=function(I){return arguments.length?(n=I,x):n},x.duration=function(I){return arguments.length?(l=+I,x):l},x.interpolate=function(I){return arguments.length?(u=I,x):u},x.on=function(){var I=d.on.apply(d,arguments);return I===d?x:I},x.clickDistance=function(I){return arguments.length?(C=(I=+I)*I,x):Math.sqrt(C)},x.tapDistance=function(I){return arguments.length?(y=+I,x):y},x}const ar={error001:()=>"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:e=>`Node type "${e}" not found. Using fallback type "default".`,error004:()=>"The React Flow parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:e=>`The old edge with id=${e} does not exist.`,error009:e=>`Marker type "${e}" doesn't exist.`,error008:(e,{id:t,sourceHandle:n,targetHandle:r})=>`Couldn't create edge for ${e} handle id: "${e==="source"?n:r}", edge id: ${t}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:e=>`Edge type "${e}" not found. Using fallback type "default".`,error012:e=>`Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(e="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${e}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs."},Gs=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],e0=["Enter"," ","Escape"],t0={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:e,x:t,y:n})=>`Moved selected node ${e}. New position, x: ${t}, y: ${n}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};var Na;(function(e){e.Strict="strict",e.Loose="loose"})(Na||(Na={}));var Ki;(function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"})(Ki||(Ki={}));var Xs;(function(e){e.Partial="partial",e.Full="full"})(Xs||(Xs={}));const n0={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null};var mi;(function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"})(mi||(mi={}));var Ic;(function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"})(Ic||(Ic={}));var Ve;(function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"})(Ve||(Ve={}));const r0={[Ve.Left]:Ve.Right,[Ve.Right]:Ve.Left,[Ve.Top]:Ve.Bottom,[Ve.Bottom]:Ve.Top};function o0(e){return e===null?null:e?"valid":"invalid"}const i0=e=>"id"in e&&"source"in e&&"target"in e,tI=e=>"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),Tf=e=>"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),Ys=(e,t=[0,0])=>{const{width:n,height:r}=Lo(e),o=e.origin??t,i=n*o[0],a=r*o[1];return{x:e.position.x-i,y:e.position.y-a}},nI=(e,t={nodeOrigin:[0,0]})=>{if(process.env.NODE_ENV==="development"&&!t.nodeLookup&&console.warn("Please use `getNodesBounds` from `useReactFlow`/`useSvelteFlow` hook to ensure correct values for sub flows. If not possible, you have to provide a nodeLookup to support sub flows."),e.length===0)return{x:0,y:0,width:0,height:0};const n=e.reduce((r,o)=>{const i=typeof o=="string";let a=!t.nodeLookup&&!i?o:void 0;t.nodeLookup&&(a=i?t.nodeLookup.get(o):Tf(o)?o:t.nodeLookup.get(o.id));const l=a?Ac(a,t.nodeOrigin):{x:0,y:0,x2:0,y2:0};return Tc(r,l)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return Mc(n)},Ks=(e,t={})=>{if(e.size===0)return{x:0,y:0,width:0,height:0};let n={x:1/0,y:1/0,x2:-1/0,y2:-1/0};return e.forEach(r=>{if(t.filter===void 0||t.filter(r)){const o=Ac(r);n=Tc(n,o)}}),Mc(n)},Mf=(e,t,[n,r,o]=[0,0,1],i=!1,a=!1)=>{const l={...Qs(t,[n,r,o]),width:t.width/o,height:t.height/o},u=[];for(const d of e.values()){const{measured:f,selectable:g=!0,hidden:p=!1}=d;if(a&&!g||p)continue;const m=f.width??d.width??d.initialWidth??null,b=f.height??d.height??d.initialHeight??null,C=Zs(l,Ia(d)),y=(m??0)*(b??0),x=i&&C>0;(!d.internals.handleBounds||x||C>=y||d.dragging)&&u.push(d)}return u},rI=(e,t)=>{const n=new Set;return e.forEach(r=>{n.add(r.id)}),t.filter(r=>n.has(r.source)||n.has(r.target))};function oI(e,t){const n=new Map,r=t!=null&&t.nodes?new Set(t.nodes.map(o=>o.id)):null;return e.forEach(o=>{o.measured.width&&o.measured.height&&((t==null?void 0:t.includeHiddenNodes)||!o.hidden)&&(!r||r.has(o.id))&&n.set(o.id,o)}),n}async function iI({nodes:e,width:t,height:n,panZoom:r,minZoom:o,maxZoom:i},a){if(e.size===0)return Promise.resolve(!0);const l=oI(e,a),u=Ks(l),d=Df(u,t,n,(a==null?void 0:a.minZoom)??o,(a==null?void 0:a.maxZoom)??i,(a==null?void 0:a.padding)??.1);return await r.setViewport(d,{duration:a==null?void 0:a.duration,ease:a==null?void 0:a.ease,interpolate:a==null?void 0:a.interpolate}),Promise.resolve(!0)}function a0({nodeId:e,nextPosition:t,nodeLookup:n,nodeOrigin:r=[0,0],nodeExtent:o,onError:i}){const a=n.get(e),l=a.parentId?n.get(a.parentId):void 0,{x:u,y:d}=l?l.internals.positionAbsolute:{x:0,y:0},f=a.origin??r;let g=o;if(a.extent==="parent"&&!a.expandParent)if(!l)i==null||i("005",ar.error005());else{const m=l.measured.width,b=l.measured.height;m&&b&&(g=[[u,d],[u+m,d+b]])}else l&&Ma(a.extent)&&(g=[[a.extent[0][0]+u,a.extent[0][1]+d],[a.extent[1][0]+u,a.extent[1][1]+d]]);const p=Ma(g)?Zi(t,g,a.measured):t;return(a.measured.width===void 0||a.measured.height===void 0)&&(i==null||i("015",ar.error015())),{position:{x:p.x-u+(a.measured.width??0)*f[0],y:p.y-d+(a.measured.height??0)*f[1]},positionAbsolute:p}}async function aI({nodesToRemove:e=[],edgesToRemove:t=[],nodes:n,edges:r,onBeforeDelete:o}){const i=new Set(e.map(p=>p.id)),a=[];for(const p of n){if(p.deletable===!1)continue;const m=i.has(p.id),b=!m&&p.parentId&&a.find(C=>C.id===p.parentId);(m||b)&&a.push(p)}const l=new Set(t.map(p=>p.id)),u=r.filter(p=>p.deletable!==!1),f=rI(a,u);for(const p of u)l.has(p.id)&&!f.find(b=>b.id===p.id)&&f.push(p);if(!o)return{edges:f,nodes:a};const g=await o({nodes:a,edges:f});return typeof g=="boolean"?g?{edges:f,nodes:a}:{edges:[],nodes:[]}:g}const Pa=(e,t=0,n=1)=>Math.min(Math.max(e,t),n),Zi=(e={x:0,y:0},t,n)=>({x:Pa(e.x,t[0][0],t[1][0]-((n==null?void 0:n.width)??0)),y:Pa(e.y,t[0][1],t[1][1]-((n==null?void 0:n.height)??0))});function s0(e,t,n){const{width:r,height:o}=Lo(n),{x:i,y:a}=n.internals.positionAbsolute;return Zi(e,[[i,a],[i+r,a+o]],t)}const l0=(e,t,n)=>e<t?Pa(Math.abs(e-t),1,t)/t:e>n?-Pa(Math.abs(e-n),1,t)/t:0,c0=(e,t,n=15,r=40)=>{const o=l0(e.x,r,t.width-r)*n,i=l0(e.y,r,t.height-r)*n;return[o,i]},Tc=(e,t)=>({x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}),Af=({x:e,y:t,width:n,height:r})=>({x:e,y:t,x2:e+n,y2:t+r}),Mc=({x:e,y:t,x2:n,y2:r})=>({x:e,y:t,width:n-e,height:r-t}),Ia=(e,t=[0,0])=>{var o,i;const{x:n,y:r}=Tf(e)?e.internals.positionAbsolute:Ys(e,t);return{x:n,y:r,width:((o=e.measured)==null?void 0:o.width)??e.width??e.initialWidth??0,height:((i=e.measured)==null?void 0:i.height)??e.height??e.initialHeight??0}},Ac=(e,t=[0,0])=>{var o,i;const{x:n,y:r}=Tf(e)?e.internals.positionAbsolute:Ys(e,t);return{x:n,y:r,x2:n+(((o=e.measured)==null?void 0:o.width)??e.width??e.initialWidth??0),y2:r+(((i=e.measured)==null?void 0:i.height)??e.height??e.initialHeight??0)}},u0=(e,t)=>Mc(Tc(Af(e),Af(t))),Zs=(e,t)=>{const n=Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x)),r=Math.max(0,Math.min(e.y+e.height,t.y+t.height)-Math.max(e.y,t.y));return Math.ceil(n*r)},d0=e=>Xr(e.width)&&Xr(e.height)&&Xr(e.x)&&Xr(e.y),Xr=e=>!isNaN(e)&&isFinite(e),f0=(e,t)=>{process.env.NODE_ENV==="development"&&console.warn(`[React Flow]: ${t} Help: https://reactflow.dev/error#${e}`)},Dc=(e,t=[1,1])=>({x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}),Qs=({x:e,y:t},[n,r,o],i=!1,a=[1,1])=>{const l={x:(e-n)/o,y:(t-r)/o};return i?Dc(l,a):l},Fc=({x:e,y:t},[n,r,o])=>({x:e*o+n,y:t*o+r});function Ta(e,t){if(typeof e=="number")return Math.floor((t-t/(1+e))*.5);if(typeof e=="string"&&e.endsWith("px")){const n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(n)}if(typeof e=="string"&&e.endsWith("%")){const n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(t*n*.01)}return console.error(`[React Flow] The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function sI(e,t,n){if(typeof e=="string"||typeof e=="number"){const r=Ta(e,n),o=Ta(e,t);return{top:r,right:o,bottom:r,left:o,x:o*2,y:r*2}}if(typeof e=="object"){const r=Ta(e.top??e.y??0,n),o=Ta(e.bottom??e.y??0,n),i=Ta(e.left??e.x??0,t),a=Ta(e.right??e.x??0,t);return{top:r,right:a,bottom:o,left:i,x:i+a,y:r+o}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function lI(e,t,n,r,o,i){const{x:a,y:l}=Fc(e,[t,n,r]),{x:u,y:d}=Fc({x:e.x+e.width,y:e.y+e.height},[t,n,r]),f=o-u,g=i-d;return{left:Math.floor(a),top:Math.floor(l),right:Math.floor(f),bottom:Math.floor(g)}}const Df=(e,t,n,r,o,i)=>{const a=sI(i,t,n),l=(t-a.x)/e.width,u=(n-a.y)/e.height,d=Math.min(l,u),f=Pa(d,r,o),g=e.x+e.width/2,p=e.y+e.height/2,m=t/2-g*f,b=n/2-p*f,C=lI(e,m,b,f,t,n),y={left:Math.min(C.left-a.left,0),top:Math.min(C.top-a.top,0),right:Math.min(C.right-a.right,0),bottom:Math.min(C.bottom-a.bottom,0)};return{x:m-y.left+y.right,y:b-y.top+y.bottom,zoom:f}},Lc=()=>{var e;return typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)==null?void 0:e.indexOf("Mac"))>=0};function Ma(e){return e!==void 0&&e!=="parent"}function Lo(e){var t,n;return{width:((t=e.measured)==null?void 0:t.width)??e.width??e.initialWidth??0,height:((n=e.measured)==null?void 0:n.height)??e.height??e.initialHeight??0}}function g0(e){var t,n;return(((t=e.measured)==null?void 0:t.width)??e.width??e.initialWidth)!==void 0&&(((n=e.measured)==null?void 0:n.height)??e.height??e.initialHeight)!==void 0}function p0(e,t={width:0,height:0},n,r,o){const i={...e},a=r.get(n);if(a){const l=a.origin||o;i.x+=a.internals.positionAbsolute.x-(t.width??0)*l[0],i.y+=a.internals.positionAbsolute.y-(t.height??0)*l[1]}return i}function h0(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}function cI(){let e,t;return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}}function uI(e){return{...t0,...e||{}}}function Js(e,{snapGrid:t=[0,0],snapToGrid:n=!1,transform:r,containerBounds:o}){const{x:i,y:a}=vo(e),l=Qs({x:i-((o==null?void 0:o.left)??0),y:a-((o==null?void 0:o.top)??0)},r),{x:u,y:d}=n?Dc(l,t):l;return{xSnapped:u,ySnapped:d,...l}}const Ff=e=>({width:e.offsetWidth,height:e.offsetHeight}),m0=e=>{var t;return((t=e==null?void 0:e.getRootNode)==null?void 0:t.call(e))||(window==null?void 0:window.document)},dI=["INPUT","SELECT","TEXTAREA"];function v0(e){var r,o;const t=((o=(r=e.composedPath)==null?void 0:r.call(e))==null?void 0:o[0])||e.target;return(t==null?void 0:t.nodeType)!==1?!1:dI.includes(t.nodeName)||t.hasAttribute("contenteditable")||!!t.closest(".nokey")}const y0=e=>"clientX"in e,vo=(e,t)=>{var i,a;const n=y0(e),r=n?e.clientX:(i=e.touches)==null?void 0:i[0].clientX,o=n?e.clientY:(a=e.touches)==null?void 0:a[0].clientY;return{x:r-((t==null?void 0:t.left)??0),y:o-((t==null?void 0:t.top)??0)}},b0=(e,t,n,r,o)=>{const i=t.querySelectorAll(`.${e}`);return!i||!i.length?null:Array.from(i).map(a=>{const l=a.getBoundingClientRect();return{id:a.getAttribute("data-handleid"),type:e,nodeId:o,position:a.getAttribute("data-handlepos"),x:(l.left-n.left)/r,y:(l.top-n.top)/r,...Ff(a)}})};function C0({sourceX:e,sourceY:t,targetX:n,targetY:r,sourceControlX:o,sourceControlY:i,targetControlX:a,targetControlY:l}){const u=e*.125+o*.375+a*.375+n*.125,d=t*.125+i*.375+l*.375+r*.125,f=Math.abs(u-e),g=Math.abs(d-t);return[u,d,f,g]}function Rc(e,t){return e>=0?.5*e:t*25*Math.sqrt(-e)}function x0({pos:e,x1:t,y1:n,x2:r,y2:o,c:i}){switch(e){case Ve.Left:return[t-Rc(t-r,i),n];case Ve.Right:return[t+Rc(r-t,i),n];case Ve.Top:return[t,n-Rc(n-o,i)];case Ve.Bottom:return[t,n+Rc(o-n,i)]}}function w0({sourceX:e,sourceY:t,sourcePosition:n=Ve.Bottom,targetX:r,targetY:o,targetPosition:i=Ve.Top,curvature:a=.25}){const[l,u]=x0({pos:n,x1:e,y1:t,x2:r,y2:o,c:a}),[d,f]=x0({pos:i,x1:r,y1:o,x2:e,y2:t,c:a}),[g,p,m,b]=C0({sourceX:e,sourceY:t,targetX:r,targetY:o,sourceControlX:l,sourceControlY:u,targetControlX:d,targetControlY:f});return[`M${e},${t} C${l},${u} ${d},${f} ${r},${o}`,g,p,m,b]}function S0({sourceX:e,sourceY:t,targetX:n,targetY:r}){const o=Math.abs(n-e)/2,i=n<e?n+o:n-o,a=Math.abs(r-t)/2,l=r<t?r+a:r-a;return[i,l,o,a]}function fI({sourceNode:e,targetNode:t,selected:n=!1,zIndex:r,elevateOnSelect:o=!1}){if(r!==void 0)return r;const i=o&&n?1e3:0,a=Math.max(e.parentId?e.internals.z:0,t.parentId?t.internals.z:0);return i+a}function gI({sourceNode:e,targetNode:t,width:n,height:r,transform:o}){const i=Tc(Ac(e),Ac(t));i.x===i.x2&&(i.x2+=1),i.y===i.y2&&(i.y2+=1);const a={x:-o[0]/o[2],y:-o[1]/o[2],width:n/o[2],height:r/o[2]};return Zs(a,Mc(i))>0}const pI=({source:e,sourceHandle:t,target:n,targetHandle:r})=>`xy-edge__${e}${t||""}-${n}${r||""}`,hI=(e,t)=>t.some(n=>n.source===e.source&&n.target===e.target&&(n.sourceHandle===e.sourceHandle||!n.sourceHandle&&!e.sourceHandle)&&(n.targetHandle===e.targetHandle||!n.targetHandle&&!e.targetHandle)),E0=(e,t)=>{if(!e.source||!e.target)return f0("006",ar.error006()),t;let n;return i0(e)?n={...e}:n={...e,id:pI(e)},hI(n,t)?t:(n.sourceHandle===null&&delete n.sourceHandle,n.targetHandle===null&&delete n.targetHandle,t.concat(n))};function $0({sourceX:e,sourceY:t,targetX:n,targetY:r}){const[o,i,a,l]=S0({sourceX:e,sourceY:t,targetX:n,targetY:r});return[`M ${e},${t}L ${n},${r}`,o,i,a,l]}const _0={[Ve.Left]:{x:-1,y:0},[Ve.Right]:{x:1,y:0},[Ve.Top]:{x:0,y:-1},[Ve.Bottom]:{x:0,y:1}},mI=({source:e,sourcePosition:t=Ve.Bottom,target:n})=>t===Ve.Left||t===Ve.Right?e.x<n.x?{x:1,y:0}:{x:-1,y:0}:e.y<n.y?{x:0,y:1}:{x:0,y:-1},O0=(e,t)=>Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function vI({source:e,sourcePosition:t=Ve.Bottom,target:n,targetPosition:r=Ve.Top,center:o,offset:i}){const a=_0[t],l=_0[r],u={x:e.x+a.x*i,y:e.y+a.y*i},d={x:n.x+l.x*i,y:n.y+l.y*i},f=mI({source:u,sourcePosition:t,target:d}),g=f.x!==0?"x":"y",p=f[g];let m=[],b,C;const y={x:0,y:0},x={x:0,y:0},[$,w,E,S]=S0({sourceX:e.x,sourceY:e.y,targetX:n.x,targetY:n.y});if(a[g]*l[g]===-1){b=o.x??$,C=o.y??w;const _=[{x:b,y:u.y},{x:b,y:d.y}],P=[{x:u.x,y:C},{x:d.x,y:C}];a[g]===p?m=g==="x"?_:P:m=g==="x"?P:_}else{const _=[{x:u.x,y:d.y}],P=[{x:d.x,y:u.y}];if(g==="x"?m=a.x===p?P:_:m=a.y===p?_:P,t===r){const j=Math.abs(e[g]-n[g]);if(j<=i){const I=Math.min(i-1,i-j);a[g]===p?y[g]=(u[g]>e[g]?-1:1)*I:x[g]=(d[g]>n[g]?-1:1)*I}}if(t!==r){const j=g==="x"?"y":"x",I=a[g]===l[j],F=u[j]>d[j],A=u[j]<d[j];(a[g]===1&&(!I&&F||I&&A)||a[g]!==1&&(!I&&A||I&&F))&&(m=g==="x"?_:P)}const T={x:u.x+y.x,y:u.y+y.y},L={x:d.x+x.x,y:d.y+x.y},z=Math.max(Math.abs(T.x-m[0].x),Math.abs(L.x-m[0].x)),B=Math.max(Math.abs(T.y-m[0].y),Math.abs(L.y-m[0].y));z>=B?(b=(T.x+L.x)/2,C=m[0].y):(b=m[0].x,C=(T.y+L.y)/2)}return[[e,{x:u.x+y.x,y:u.y+y.y},...m,{x:d.x+x.x,y:d.y+x.y},n],b,C,E,S]}function yI(e,t,n,r){const o=Math.min(O0(e,t)/2,O0(t,n)/2,r),{x:i,y:a}=t;if(e.x===i&&i===n.x||e.y===a&&a===n.y)return`L${i} ${a}`;if(e.y===a){const d=e.x<n.x?-1:1,f=e.y<n.y?1:-1;return`L ${i+o*d},${a}Q ${i},${a} ${i},${a+o*f}`}const l=e.x<n.x?1:-1,u=e.y<n.y?-1:1;return`L ${i},${a+o*u}Q ${i},${a} ${i+o*l},${a}`}function Lf({sourceX:e,sourceY:t,sourcePosition:n=Ve.Bottom,targetX:r,targetY:o,targetPosition:i=Ve.Top,borderRadius:a=5,centerX:l,centerY:u,offset:d=20}){const[f,g,p,m,b]=vI({source:{x:e,y:t},sourcePosition:n,target:{x:r,y:o},targetPosition:i,center:{x:l,y:u},offset:d});return[f.reduce((y,x,$)=>{let w="";return $>0&&$<f.length-1?w=yI(f[$-1],x,f[$+1],a):w=`${$===0?"M":"L"}${x.x} ${x.y}`,y+=w,y},""),g,p,m,b]}function N0(e){var t;return e&&!!(e.internals.handleBounds||(t=e.handles)!=null&&t.length)&&!!(e.measured.width||e.width||e.initialWidth)}function bI(e){var g;const{sourceNode:t,targetNode:n}=e;if(!N0(t)||!N0(n))return null;const r=t.internals.handleBounds||P0(t.handles),o=n.internals.handleBounds||P0(n.handles),i=I0((r==null?void 0:r.source)??[],e.sourceHandle),a=I0(e.connectionMode===Na.Strict?(o==null?void 0:o.target)??[]:((o==null?void 0:o.target)??[]).concat((o==null?void 0:o.source)??[]),e.targetHandle);if(!i||!a)return(g=e.onError)==null||g.call(e,"008",ar.error008(i?"target":"source",{id:e.id,sourceHandle:e.sourceHandle,targetHandle:e.targetHandle})),null;const l=(i==null?void 0:i.position)||Ve.Bottom,u=(a==null?void 0:a.position)||Ve.Top,d=el(t,i,l),f=el(n,a,u);return{sourceX:d.x,sourceY:d.y,targetX:f.x,targetY:f.y,sourcePosition:l,targetPosition:u}}function P0(e){if(!e)return null;const t=[],n=[];for(const r of e)r.width=r.width??1,r.height=r.height??1,r.type==="source"?t.push(r):r.type==="target"&&n.push(r);return{source:t,target:n}}function el(e,t,n=Ve.Left,r=!1){const o=((t==null?void 0:t.x)??0)+e.internals.positionAbsolute.x,i=((t==null?void 0:t.y)??0)+e.internals.positionAbsolute.y,{width:a,height:l}=t??Lo(e);if(r)return{x:o+a/2,y:i+l/2};switch((t==null?void 0:t.position)??n){case Ve.Top:return{x:o+a/2,y:i};case Ve.Right:return{x:o+a,y:i+l/2};case Ve.Bottom:return{x:o+a/2,y:i+l};case Ve.Left:return{x:o,y:i+l/2}}}function I0(e,t){return e&&(t?e.find(n=>n.id===t):e[0])||null}function Rf(e,t){return e?typeof e=="string"?e:`${t?`${t}__`:""}${Object.keys(e).sort().map(r=>`${r}=${e[r]}`).join("&")}`:""}function CI(e,{id:t,defaultColor:n,defaultMarkerStart:r,defaultMarkerEnd:o}){const i=new Set;return e.reduce((a,l)=>([l.markerStart||r,l.markerEnd||o].forEach(u=>{if(u&&typeof u=="object"){const d=Rf(u,t);i.has(d)||(a.push({id:d,color:u.color||n,...u}),i.add(d))}}),a),[]).sort((a,l)=>a.id.localeCompare(l.id))}const zf={nodeOrigin:[0,0],nodeExtent:Gs,elevateNodesOnSelect:!0,defaults:{}},xI={...zf,checkEquality:!0};function jf(e,t){const n={...e};for(const r in t)t[r]!==void 0&&(n[r]=t[r]);return n}function wI(e,t,n){const r=jf(zf,n);for(const o of e.values())if(o.parentId)Vf(o,e,t,r);else{const i=Ys(o,r.nodeOrigin),a=Ma(o.extent)?o.extent:r.nodeExtent,l=Zi(i,a,Lo(o));o.internals.positionAbsolute=l}}function Bf(e,t,n,r){var u,d;const o=jf(xI,r);let i=e.length>0;const a=new Map(t),l=o!=null&&o.elevateNodesOnSelect?1e3:0;t.clear(),n.clear();for(const f of e){let g=a.get(f.id);if(o.checkEquality&&f===(g==null?void 0:g.internals.userNode))t.set(f.id,g);else{const p=Ys(f,o.nodeOrigin),m=Ma(f.extent)?f.extent:o.nodeExtent,b=Zi(p,m,Lo(f));g={...o.defaults,...f,measured:{width:(u=f.measured)==null?void 0:u.width,height:(d=f.measured)==null?void 0:d.height},internals:{positionAbsolute:b,handleBounds:f.measured?g==null?void 0:g.internals.handleBounds:void 0,z:T0(f,l),userNode:f}},t.set(f.id,g)}(g.measured===void 0||g.measured.width===void 0||g.measured.height===void 0)&&!g.hidden&&(i=!1),f.parentId&&Vf(g,t,n,r)}return i}function SI(e,t){if(!e.parentId)return;const n=t.get(e.parentId);n?n.set(e.id,e):t.set(e.parentId,new Map([[e.id,e]]))}function Vf(e,t,n,r){const{elevateNodesOnSelect:o,nodeOrigin:i,nodeExtent:a}=jf(zf,r),l=e.parentId,u=t.get(l);if(!u){console.warn(`Parent node ${l} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}SI(e,n);const d=o?1e3:0,{x:f,y:g,z:p}=EI(e,u,i,a,d),{positionAbsolute:m}=e.internals,b=f!==m.x||g!==m.y;(b||p!==e.internals.z)&&t.set(e.id,{...e,internals:{...e.internals,positionAbsolute:b?{x:f,y:g}:m,z:p}})}function T0(e,t){return(Xr(e.zIndex)?e.zIndex:0)+(e.selected?t:0)}function EI(e,t,n,r,o){const{x:i,y:a}=t.internals.positionAbsolute,l=Lo(e),u=Ys(e,n),d=Ma(e.extent)?Zi(u,e.extent,l):u;let f=Zi({x:i+d.x,y:a+d.y},r,l);e.extent==="parent"&&(f=s0(f,l,t));const g=T0(e,o),p=t.internals.z??0;return{x:f.x,y:f.y,z:p>=g?p+1:g}}function Hf(e,t,n,r=[0,0]){var a;const o=[],i=new Map;for(const l of e){const u=t.get(l.parentId);if(!u)continue;const d=((a=i.get(l.parentId))==null?void 0:a.expandedRect)??Ia(u),f=u0(d,l.rect);i.set(l.parentId,{expandedRect:f,parent:u})}return i.size>0&&i.forEach(({expandedRect:l,parent:u},d)=>{var w;const f=u.internals.positionAbsolute,g=Lo(u),p=u.origin??r,m=l.x<f.x?Math.round(Math.abs(f.x-l.x)):0,b=l.y<f.y?Math.round(Math.abs(f.y-l.y)):0,C=Math.max(g.width,Math.round(l.width)),y=Math.max(g.height,Math.round(l.height)),x=(C-g.width)*p[0],$=(y-g.height)*p[1];(m>0||b>0||x||$)&&(o.push({id:d,type:"position",position:{x:u.position.x-m+x,y:u.position.y-b+$}}),(w=n.get(d))==null||w.forEach(E=>{e.some(S=>S.id===E.id)||o.push({id:E.id,type:"position",position:{x:E.position.x+m,y:E.position.y+b}})})),(g.width<l.width||g.height<l.height||m||b)&&o.push({id:d,type:"dimensions",setAttributes:!0,dimensions:{width:C+(m?p[0]*m-x:0),height:y+(b?p[1]*b-$:0)}})}),o}function $I(e,t,n,r,o,i){const a=r==null?void 0:r.querySelector(".xyflow__viewport");let l=!1;if(!a)return{changes:[],updatedInternals:l};const u=[],d=window.getComputedStyle(a),{m22:f}=new window.DOMMatrixReadOnly(d.transform),g=[];for(const p of e.values()){const m=t.get(p.id);if(!m)continue;if(m.hidden){t.set(m.id,{...m,internals:{...m.internals,handleBounds:void 0}}),l=!0;continue}const b=Ff(p.nodeElement),C=m.measured.width!==b.width||m.measured.height!==b.height;if(!!(b.width&&b.height&&(C||!m.internals.handleBounds||p.force))){const x=p.nodeElement.getBoundingClientRect(),$=Ma(m.extent)?m.extent:i;let{positionAbsolute:w}=m.internals;m.parentId&&m.extent==="parent"?w=s0(w,b,t.get(m.parentId)):$&&(w=Zi(w,$,b));const E={...m,measured:b,internals:{...m.internals,positionAbsolute:w,handleBounds:{source:b0("source",p.nodeElement,x,f,m.id),target:b0("target",p.nodeElement,x,f,m.id)}}};t.set(m.id,E),m.parentId&&Vf(E,t,n,{nodeOrigin:o}),l=!0,C&&(u.push({id:m.id,type:"dimensions",dimensions:b}),m.expandParent&&m.parentId&&g.push({id:m.id,parentId:m.parentId,rect:Ia(E,o)}))}}if(g.length>0){const p=Hf(g,t,n,o);u.push(...p)}return{changes:u,updatedInternals:l}}async function _I({delta:e,panZoom:t,transform:n,translateExtent:r,width:o,height:i}){if(!t||!e.x&&!e.y)return Promise.resolve(!1);const a=await t.setViewportConstrained({x:n[0]+e.x,y:n[1]+e.y,zoom:n[2]},[[0,0],[o,i]],r),l=!!a&&(a.x!==n[0]||a.y!==n[1]||a.k!==n[2]);return Promise.resolve(l)}function M0(e,t,n,r,o,i){let a=o;const l=r.get(a)||new Map;r.set(a,l.set(n,t)),a=`${o}-${e}`;const u=r.get(a)||new Map;if(r.set(a,u.set(n,t)),i){a=`${o}-${e}-${i}`;const d=r.get(a)||new Map;r.set(a,d.set(n,t))}}function A0(e,t,n){e.clear(),t.clear();for(const r of n){const{source:o,target:i,sourceHandle:a=null,targetHandle:l=null}=r,u={edgeId:r.id,source:o,target:i,sourceHandle:a,targetHandle:l},d=`${o}-${a}--${i}-${l}`,f=`${i}-${l}--${o}-${a}`;M0("source",u,f,e,o,a),M0("target",u,d,e,i,l),t.set(r.id,r)}}function D0(e,t){if(!e.parentId)return!1;const n=t.get(e.parentId);return n?n.selected?!0:D0(n,t):!1}function F0(e,t,n){var o;let r=e;do{if((o=r==null?void 0:r.matches)!=null&&o.call(r,t))return!0;if(r===n)return!1;r=r==null?void 0:r.parentElement}while(r);return!1}function OI(e,t,n,r){const o=new Map;for(const[i,a]of e)if((a.selected||a.id===r)&&(!a.parentId||!D0(a,e))&&(a.draggable||t&&typeof a.draggable>"u")){const l=e.get(i);l&&o.set(i,{id:i,position:l.position||{x:0,y:0},distance:{x:n.x-l.internals.positionAbsolute.x,y:n.y-l.internals.positionAbsolute.y},extent:l.extent,parentId:l.parentId,origin:l.origin,expandParent:l.expandParent,internals:{positionAbsolute:l.internals.positionAbsolute||{x:0,y:0}},measured:{width:l.measured.width??0,height:l.measured.height??0}})}return o}function kf({nodeId:e,dragItems:t,nodeLookup:n,dragging:r=!0}){var a,l,u;const o=[];for(const[d,f]of t){const g=(a=n.get(d))==null?void 0:a.internals.userNode;g&&o.push({...g,position:f.position,dragging:r})}if(!e)return[o[0],o];const i=(l=n.get(e))==null?void 0:l.internals.userNode;return[i?{...i,position:((u=t.get(e))==null?void 0:u.position)||i.position,dragging:r}:o[0],o]}function NI({onNodeMouseDown:e,getStoreItems:t,onDragStart:n,onDrag:r,onDragStop:o}){let i={x:null,y:null},a=0,l=new Map,u=!1,d={x:0,y:0},f=null,g=!1,p=null,m=!1,b=!1;function C({noDragClassName:x,handleSelector:$,domNode:w,isSelectable:E,nodeId:S,nodeClickDistance:O=0}){p=ir(w);function _({x:z,y:B},j){const{nodeLookup:I,nodeExtent:F,snapGrid:A,snapToGrid:D,nodeOrigin:V,onNodeDrag:W,onSelectionDrag:H,onError:q,updateNodePositions:Z}=t();i={x:z,y:B};let Y=!1,G={x:0,y:0,x2:0,y2:0};if(l.size>1&&F){const K=Ks(l);G=Af(K)}for(const[K,te]of l){if(!I.has(K))continue;let ie={x:z-te.distance.x,y:B-te.distance.y};D&&(ie=Dc(ie,A));let ee=[[F[0][0],F[0][1]],[F[1][0],F[1][1]]];if(l.size>1&&F&&!te.extent){const{positionAbsolute:ue}=te.internals,J=ue.x-G.x+F[0][0],fe=ue.x+te.measured.width-G.x2+F[1][0],oe=ue.y-G.y+F[0][1],he=ue.y+te.measured.height-G.y2+F[1][1];ee=[[J,oe],[fe,he]]}const{position:ae,positionAbsolute:de}=a0({nodeId:K,nextPosition:ie,nodeLookup:I,nodeExtent:ee,nodeOrigin:V,onError:q});Y=Y||te.position.x!==ae.x||te.position.y!==ae.y,te.position=ae,te.internals.positionAbsolute=de}if(b=b||Y,!!Y&&(Z(l,!0),j&&(r||W||!S&&H))){const[K,te]=kf({nodeId:S,dragItems:l,nodeLookup:I});r==null||r(j,l,K,te),W==null||W(j,K,te),S||H==null||H(j,te)}}async function P(){if(!f)return;const{transform:z,panBy:B,autoPanSpeed:j,autoPanOnNodeDrag:I}=t();if(!I){u=!1,cancelAnimationFrame(a);return}const[F,A]=c0(d,f,j);(F!==0||A!==0)&&(i.x=(i.x??0)-F/z[2],i.y=(i.y??0)-A/z[2],await B({x:F,y:A})&&_(i,null)),a=requestAnimationFrame(P)}function T(z){var Y;const{nodeLookup:B,multiSelectionActive:j,nodesDraggable:I,transform:F,snapGrid:A,snapToGrid:D,selectNodesOnDrag:V,onNodeDragStart:W,onSelectionDragStart:H,unselectNodesAndEdges:q}=t();g=!0,(!V||!E)&&!j&&S&&((Y=B.get(S))!=null&&Y.selected||q()),E&&V&&S&&(e==null||e(S));const Z=Js(z.sourceEvent,{transform:F,snapGrid:A,snapToGrid:D,containerBounds:f});if(i=Z,l=OI(B,I,Z,S),l.size>0&&(n||W||!S&&H)){const[G,K]=kf({nodeId:S,dragItems:l,nodeLookup:B});n==null||n(z.sourceEvent,l,G,K),W==null||W(z.sourceEvent,G,K),S||H==null||H(z.sourceEvent,K)}}const L=Sv().clickDistance(O).on("start",z=>{const{domNode:B,nodeDragThreshold:j,transform:I,snapGrid:F,snapToGrid:A}=t();f=(B==null?void 0:B.getBoundingClientRect())||null,m=!1,b=!1,j===0&&T(z),i=Js(z.sourceEvent,{transform:I,snapGrid:F,snapToGrid:A,containerBounds:f}),d=vo(z.sourceEvent,f)}).on("drag",z=>{const{autoPanOnNodeDrag:B,transform:j,snapGrid:I,snapToGrid:F,nodeDragThreshold:A,nodeLookup:D}=t(),V=Js(z.sourceEvent,{transform:j,snapGrid:I,snapToGrid:F,containerBounds:f});if((z.sourceEvent.type==="touchmove"&&z.sourceEvent.touches.length>1||S&&!D.has(S))&&(m=!0),!m){if(!u&&B&&g&&(u=!0,P()),!g){const W=V.xSnapped-(i.x??0),H=V.ySnapped-(i.y??0);Math.sqrt(W*W+H*H)>A&&T(z)}(i.x!==V.xSnapped||i.y!==V.ySnapped)&&l&&g&&(d=vo(z.sourceEvent,f),_(V,z.sourceEvent))}}).on("end",z=>{if(!(!g||m)&&(u=!1,g=!1,cancelAnimationFrame(a),l.size>0)){const{nodeLookup:B,updateNodePositions:j,onNodeDragStop:I,onSelectionDragStop:F}=t();if(b&&(j(l,!1),b=!1),o||I||!S&&F){const[A,D]=kf({nodeId:S,dragItems:l,nodeLookup:B,dragging:!1});o==null||o(z.sourceEvent,l,A,D),I==null||I(z.sourceEvent,A,D),S||F==null||F(z.sourceEvent,D)}}}).filter(z=>{const B=z.target;return!z.button&&(!x||!F0(B,`.${x}`,w))&&(!$||F0(B,$,w))});p.call(L)}function y(){p==null||p.on(".drag",null)}return{update:C,destroy:y}}function PI(e,t,n){const r=[],o={x:e.x-n,y:e.y-n,width:n*2,height:n*2};for(const i of t.values())Zs(o,Ia(i))>0&&r.push(i);return r}const II=250;function TI(e,t,n,r){var l,u;let o=[],i=1/0;const a=PI(e,n,t+II);for(const d of a){const f=[...((l=d.internals.handleBounds)==null?void 0:l.source)??[],...((u=d.internals.handleBounds)==null?void 0:u.target)??[]];for(const g of f){if(r.nodeId===g.nodeId&&r.type===g.type&&r.id===g.id)continue;const{x:p,y:m}=el(d,g,g.position,!0),b=Math.sqrt(Math.pow(p-e.x,2)+Math.pow(m-e.y,2));b>t||(b<i?(o=[{...g,x:p,y:m}],i=b):b===i&&o.push({...g,x:p,y:m}))}}if(!o.length)return null;if(o.length>1){const d=r.type==="source"?"target":"source";return o.find(f=>f.type===d)??o[0]}return o[0]}function L0(e,t,n,r,o,i=!1){var d,f,g;const a=r.get(e);if(!a)return null;const l=o==="strict"?(d=a.internals.handleBounds)==null?void 0:d[t]:[...((f=a.internals.handleBounds)==null?void 0:f.source)??[],...((g=a.internals.handleBounds)==null?void 0:g.target)??[]],u=(n?l==null?void 0:l.find(p=>p.id===n):l==null?void 0:l[0])??null;return u&&i?{...u,...el(a,u,u.position,!0)}:u}function R0(e,t){return e||(t!=null&&t.classList.contains("target")?"target":t!=null&&t.classList.contains("source")?"source":null)}function MI(e,t){let n=null;return t?n=!0:e&&!t&&(n=!1),n}const z0=()=>!0;function AI(e,{connectionMode:t,connectionRadius:n,handleId:r,nodeId:o,edgeUpdaterType:i,isTarget:a,domNode:l,nodeLookup:u,lib:d,autoPanOnConnect:f,flowId:g,panBy:p,cancelConnection:m,onConnectStart:b,onConnect:C,onConnectEnd:y,isValidConnection:x=z0,onReconnectEnd:$,updateConnection:w,getTransform:E,getFromHandle:S,autoPanSpeed:O,dragThreshold:_=1}){const P=m0(e.target);let T=0,L;const{x:z,y:B}=vo(e),j=P==null?void 0:P.elementFromPoint(z,B),I=R0(i,j),F=l==null?void 0:l.getBoundingClientRect();let A=!1;if(!F||!I)return;const D=L0(o,I,r,u,t);if(!D)return;let V=vo(e,F),W=!1,H=null,q=!1,Z=null;function Y(){if(!f||!F)return;const[ue,J]=c0(V,F,O);p({x:ue,y:J}),T=requestAnimationFrame(Y)}const G={...D,nodeId:o,type:I,position:D.position},K=u.get(o);let ie={inProgress:!0,isValid:null,from:el(K,G,Ve.Left,!0),fromHandle:G,fromPosition:G.position,fromNode:K,to:V,toHandle:null,toPosition:r0[G.position],toNode:null};function ee(){A=!0,w(ie),b==null||b(e,{nodeId:o,handleId:r,handleType:I})}_===0&&ee();function ae(ue){if(!A){const{x:he,y:me}=vo(ue),_e=he-z,Re=me-B;if(!(_e*_e+Re*Re>_*_))return;ee()}if(!S()||!G){de(ue);return}const J=E();V=vo(ue,F),L=TI(Qs(V,J,!1,[1,1]),n,u,G),W||(Y(),W=!0);const fe=j0(ue,{handle:L,connectionMode:t,fromNodeId:o,fromHandleId:r,fromType:a?"target":"source",isValidConnection:x,doc:P,lib:d,flowId:g,nodeLookup:u});Z=fe.handleDomNode,H=fe.connection,q=MI(!!L,fe.isValid);const oe={...ie,isValid:q,to:fe.toHandle&&q?Fc({x:fe.toHandle.x,y:fe.toHandle.y},J):V,toHandle:fe.toHandle,toPosition:q&&fe.toHandle?fe.toHandle.position:r0[G.position],toNode:fe.toHandle?u.get(fe.toHandle.nodeId):null};q&&L&&ie.toHandle&&oe.toHandle&&ie.toHandle.type===oe.toHandle.type&&ie.toHandle.nodeId===oe.toHandle.nodeId&&ie.toHandle.id===oe.toHandle.id&&ie.to.x===oe.to.x&&ie.to.y===oe.to.y||(w(oe),ie=oe)}function de(ue){if(A){(L||Z)&&H&&q&&(C==null||C(H));const{inProgress:J,...fe}=ie,oe={...fe,toPosition:ie.toHandle?ie.toPosition:null};y==null||y(ue,oe),i&&($==null||$(ue,oe))}m(),cancelAnimationFrame(T),W=!1,q=!1,H=null,Z=null,P.removeEventListener("mousemove",ae),P.removeEventListener("mouseup",de),P.removeEventListener("touchmove",ae),P.removeEventListener("touchend",de)}P.addEventListener("mousemove",ae),P.addEventListener("mouseup",de),P.addEventListener("touchmove",ae),P.addEventListener("touchend",de)}function j0(e,{handle:t,connectionMode:n,fromNodeId:r,fromHandleId:o,fromType:i,doc:a,lib:l,flowId:u,isValidConnection:d=z0,nodeLookup:f}){const g=i==="target",p=t?a.querySelector(`.${l}-flow__handle[data-id="${u}-${t==null?void 0:t.nodeId}-${t==null?void 0:t.id}-${t==null?void 0:t.type}"]`):null,{x:m,y:b}=vo(e),C=a.elementFromPoint(m,b),y=C!=null&&C.classList.contains(`${l}-flow__handle`)?C:p,x={handleDomNode:y,isValid:!1,connection:null,toHandle:null};if(y){const $=R0(void 0,y),w=y.getAttribute("data-nodeid"),E=y.getAttribute("data-handleid"),S=y.classList.contains("connectable"),O=y.classList.contains("connectableend");if(!w||!$)return x;const _={source:g?w:r,sourceHandle:g?E:o,target:g?r:w,targetHandle:g?o:E};x.connection=_;const T=S&&O&&(n===Na.Strict?g&&$==="source"||!g&&$==="target":w!==r||E!==o);x.isValid=T&&d(_),x.toHandle=L0(w,$,E,f,n,!0)}return x}const Wf={onPointerDown:AI,isValid:j0};function DI({domNode:e,panZoom:t,getTransform:n,getViewScale:r}){const o=ir(e);function i({translateExtent:l,width:u,height:d,zoomStep:f=10,pannable:g=!0,zoomable:p=!0,inversePan:m=!1}){const b=w=>{const E=n();if(w.sourceEvent.type!=="wheel"||!t)return;const S=-w.sourceEvent.deltaY*(w.sourceEvent.deltaMode===1?.05:w.sourceEvent.deltaMode?1:.002)*f,O=E[2]*Math.pow(2,S);t.scaleTo(O)};let C=[0,0];const y=w=>{(w.sourceEvent.type==="mousedown"||w.sourceEvent.type==="touchstart")&&(C=[w.sourceEvent.clientX??w.sourceEvent.touches[0].clientX,w.sourceEvent.clientY??w.sourceEvent.touches[0].clientY])},x=w=>{const E=n();if(w.sourceEvent.type!=="mousemove"&&w.sourceEvent.type!=="touchmove"||!t)return;const S=[w.sourceEvent.clientX??w.sourceEvent.touches[0].clientX,w.sourceEvent.clientY??w.sourceEvent.touches[0].clientY],O=[S[0]-C[0],S[1]-C[1]];C=S;const _=r()*Math.max(E[2],Math.log(E[2]))*(m?-1:1),P={x:E[0]-O[0]*_,y:E[1]-O[1]*_},T=[[0,0],[u,d]];t.setViewportConstrained({x:P.x,y:P.y,zoom:E[2]},T,l)},$=Jv().on("start",y).on("zoom",g?x:null).on("zoom.wheel",p?b:null);o.call($,{})}function a(){o.on("zoom",null)}return{update:i,destroy:a,pointer:Ur}}const FI=(e,t)=>e.x!==t.x||e.y!==t.y||e.zoom!==t.k,zc=e=>({x:e.x,y:e.y,zoom:e.k}),Uf=({x:e,y:t,zoom:n})=>Pc.translate(e,t).scale(n),Aa=(e,t)=>e.target.closest(`.${t}`),B0=(e,t)=>t===2&&Array.isArray(e)&&e.includes(2),LI=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,qf=(e,t=0,n=LI,r=()=>{})=>{const o=typeof t=="number"&&t>0;return o||r(),o?e.transition().duration(t).ease(n).on("end",r):e},V0=e=>{const t=e.ctrlKey&&Lc()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*t};function RI({zoomPanValues:e,noWheelClassName:t,d3Selection:n,d3Zoom:r,panOnScrollMode:o,panOnScrollSpeed:i,zoomOnPinch:a,onPanZoomStart:l,onPanZoom:u,onPanZoomEnd:d}){return f=>{if(Aa(f,t))return!1;f.preventDefault(),f.stopImmediatePropagation();const g=n.property("__zoom").k||1;if(f.ctrlKey&&a){const y=Ur(f),x=V0(f),$=g*Math.pow(2,x);r.scaleTo(n,$,y,f);return}const p=f.deltaMode===1?20:1;let m=o===Ki.Vertical?0:f.deltaX*p,b=o===Ki.Horizontal?0:f.deltaY*p;!Lc()&&f.shiftKey&&o!==Ki.Vertical&&(m=f.deltaY*p,b=0),r.translateBy(n,-(m/g)*i,-(b/g)*i,{internal:!0});const C=zc(n.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling||(e.isPanScrolling=!0,l==null||l(f,C)),e.isPanScrolling&&(u==null||u(f,C),e.panScrollTimeout=setTimeout(()=>{d==null||d(f,C),e.isPanScrolling=!1},150))}}function zI({noWheelClassName:e,preventScrolling:t,d3ZoomHandler:n}){return function(r,o){const i=r.type==="wheel",a=!t&&i&&!r.ctrlKey,l=Aa(r,e);if(r.ctrlKey&&i&&l&&r.preventDefault(),a||l)return null;r.preventDefault(),n.call(this,r,o)}}function jI({zoomPanValues:e,onDraggingChange:t,onPanZoomStart:n}){return r=>{var i,a,l;if((i=r.sourceEvent)!=null&&i.internal)return;const o=zc(r.transform);e.mouseButton=((a=r.sourceEvent)==null?void 0:a.button)||0,e.isZoomingOrPanning=!0,e.prevViewport=o,((l=r.sourceEvent)==null?void 0:l.type)==="mousedown"&&t(!0),n&&(n==null||n(r.sourceEvent,o))}}function BI({zoomPanValues:e,panOnDrag:t,onPaneContextMenu:n,onTransformChange:r,onPanZoom:o}){return i=>{var a,l;e.usedRightMouseButton=!!(n&&B0(t,e.mouseButton??0)),(a=i.sourceEvent)!=null&&a.sync||r([i.transform.x,i.transform.y,i.transform.k]),o&&!((l=i.sourceEvent)!=null&&l.internal)&&(o==null||o(i.sourceEvent,zc(i.transform)))}}function VI({zoomPanValues:e,panOnDrag:t,panOnScroll:n,onDraggingChange:r,onPanZoomEnd:o,onPaneContextMenu:i}){return a=>{var l;if(!((l=a.sourceEvent)!=null&&l.internal)&&(e.isZoomingOrPanning=!1,i&&B0(t,e.mouseButton??0)&&!e.usedRightMouseButton&&a.sourceEvent&&i(a.sourceEvent),e.usedRightMouseButton=!1,r(!1),o&&FI(e.prevViewport,a.transform))){const u=zc(a.transform);e.prevViewport=u,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{o==null||o(a.sourceEvent,u)},n?150:0)}}}function HI({zoomActivationKeyPressed:e,zoomOnScroll:t,zoomOnPinch:n,panOnDrag:r,panOnScroll:o,zoomOnDoubleClick:i,userSelectionActive:a,noWheelClassName:l,noPanClassName:u,lib:d}){return f=>{var b;const g=e||t,p=n&&f.ctrlKey;if(f.button===1&&f.type==="mousedown"&&(Aa(f,`${d}-flow__node`)||Aa(f,`${d}-flow__edge`)))return!0;if(!r&&!g&&!o&&!i&&!n||a||Aa(f,l)&&f.type==="wheel"||Aa(f,u)&&(f.type!=="wheel"||o&&f.type==="wheel"&&!e)||!n&&f.ctrlKey&&f.type==="wheel")return!1;if(!n&&f.type==="touchstart"&&((b=f.touches)==null?void 0:b.length)>1)return f.preventDefault(),!1;if(!g&&!o&&!p&&f.type==="wheel"||!r&&(f.type==="mousedown"||f.type==="touchstart")||Array.isArray(r)&&!r.includes(f.button)&&f.type==="mousedown")return!1;const m=Array.isArray(r)&&r.includes(f.button)||!f.button||f.button<=1;return(!f.ctrlKey||f.type==="wheel")&&m}}function kI({domNode:e,minZoom:t,maxZoom:n,paneClickDistance:r,translateExtent:o,viewport:i,onPanZoom:a,onPanZoomStart:l,onPanZoomEnd:u,onDraggingChange:d}){const f={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{x:0,y:0,zoom:0},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},g=e.getBoundingClientRect(),p=Jv().clickDistance(!Xr(r)||r<0?0:r).scaleExtent([t,n]).translateExtent(o),m=ir(e).call(p);w({x:i.x,y:i.y,zoom:Pa(i.zoom,t,n)},[[0,0],[g.width,g.height]],o);const b=m.on("wheel.zoom"),C=m.on("dblclick.zoom");p.wheelDelta(V0);function y(B,j){return m?new Promise(I=>{p==null||p.interpolate((j==null?void 0:j.interpolate)==="linear"?Vs:bc).transform(qf(m,j==null?void 0:j.duration,j==null?void 0:j.ease,()=>I(!0)),B)}):Promise.resolve(!1)}function x({noWheelClassName:B,noPanClassName:j,onPaneContextMenu:I,userSelectionActive:F,panOnScroll:A,panOnDrag:D,panOnScrollMode:V,panOnScrollSpeed:W,preventScrolling:H,zoomOnPinch:q,zoomOnScroll:Z,zoomOnDoubleClick:Y,zoomActivationKeyPressed:G,lib:K,onTransformChange:te}){F&&!f.isZoomingOrPanning&&$();const ee=A&&!G&&!F?RI({zoomPanValues:f,noWheelClassName:B,d3Selection:m,d3Zoom:p,panOnScrollMode:V,panOnScrollSpeed:W,zoomOnPinch:q,onPanZoomStart:l,onPanZoom:a,onPanZoomEnd:u}):zI({noWheelClassName:B,preventScrolling:H,d3ZoomHandler:b});if(m.on("wheel.zoom",ee,{passive:!1}),!F){const de=jI({zoomPanValues:f,onDraggingChange:d,onPanZoomStart:l});p.on("start",de);const ue=BI({zoomPanValues:f,panOnDrag:D,onPaneContextMenu:!!I,onPanZoom:a,onTransformChange:te});p.on("zoom",ue);const J=VI({zoomPanValues:f,panOnDrag:D,panOnScroll:A,onPaneContextMenu:I,onPanZoomEnd:u,onDraggingChange:d});p.on("end",J)}const ae=HI({zoomActivationKeyPressed:G,panOnDrag:D,zoomOnScroll:Z,panOnScroll:A,zoomOnDoubleClick:Y,zoomOnPinch:q,userSelectionActive:F,noPanClassName:j,noWheelClassName:B,lib:K});p.filter(ae),Y?m.on("dblclick.zoom",C):m.on("dblclick.zoom",null)}function $(){p.on("zoom",null)}async function w(B,j,I){const F=Uf(B),A=p==null?void 0:p.constrain()(F,j,I);return A&&await y(A),new Promise(D=>D(A))}async function E(B,j){const I=Uf(B);return await y(I,j),new Promise(F=>F(I))}function S(B){if(m){const j=Uf(B),I=m.property("__zoom");(I.k!==B.zoom||I.x!==B.x||I.y!==B.y)&&(p==null||p.transform(m,j,null,{sync:!0}))}}function O(){const B=m?Zv(m.node()):{x:0,y:0,k:1};return{x:B.x,y:B.y,zoom:B.k}}function _(B,j){return m?new Promise(I=>{p==null||p.interpolate((j==null?void 0:j.interpolate)==="linear"?Vs:bc).scaleTo(qf(m,j==null?void 0:j.duration,j==null?void 0:j.ease,()=>I(!0)),B)}):Promise.resolve(!1)}function P(B,j){return m?new Promise(I=>{p==null||p.interpolate((j==null?void 0:j.interpolate)==="linear"?Vs:bc).scaleBy(qf(m,j==null?void 0:j.duration,j==null?void 0:j.ease,()=>I(!0)),B)}):Promise.resolve(!1)}function T(B){p==null||p.scaleExtent(B)}function L(B){p==null||p.translateExtent(B)}function z(B){const j=!Xr(B)||B<0?0:B;p==null||p.clickDistance(j)}return{update:x,destroy:$,setViewport:E,setViewportConstrained:w,getViewport:O,scaleTo:_,scaleBy:P,setScaleExtent:T,setTranslateExtent:L,syncViewport:S,setClickDistance:z}}var Da;(function(e){e.Line="line",e.Handle="handle"})(Da||(Da={}));function WI({width:e,prevWidth:t,height:n,prevHeight:r,affectsX:o,affectsY:i}){const a=e-t,l=n-r,u=[a>0?1:a<0?-1:0,l>0?1:l<0?-1:0];return a&&o&&(u[0]=u[0]*-1),l&&i&&(u[1]=u[1]*-1),u}function UI(e){const t=e.includes("right")||e.includes("left"),n=e.includes("bottom")||e.includes("top"),r=e.includes("left"),o=e.includes("top");return{isHorizontal:t,isVertical:n,affectsX:r,affectsY:o}}function vi(e,t){return Math.max(0,t-e)}function yi(e,t){return Math.max(0,e-t)}function jc(e,t,n){return Math.max(0,t-e,e-n)}function H0(e,t){return e?!t:t}function qI(e,t,n,r,o,i,a,l){let{affectsX:u,affectsY:d}=t;const{isHorizontal:f,isVertical:g}=t,p=f&&g,{xSnapped:m,ySnapped:b}=n,{minWidth:C,maxWidth:y,minHeight:x,maxHeight:$}=r,{x:w,y:E,width:S,height:O,aspectRatio:_}=e;let P=Math.floor(f?m-e.pointerX:0),T=Math.floor(g?b-e.pointerY:0);const L=S+(u?-P:P),z=O+(d?-T:T),B=-i[0]*S,j=-i[1]*O;let I=jc(L,C,y),F=jc(z,x,$);if(a){let V=0,W=0;u&&P<0?V=vi(w+P+B,a[0][0]):!u&&P>0&&(V=yi(w+L+B,a[1][0])),d&&T<0?W=vi(E+T+j,a[0][1]):!d&&T>0&&(W=yi(E+z+j,a[1][1])),I=Math.max(I,V),F=Math.max(F,W)}if(l){let V=0,W=0;u&&P>0?V=yi(w+P,l[0][0]):!u&&P<0&&(V=vi(w+L,l[1][0])),d&&T>0?W=yi(E+T,l[0][1]):!d&&T<0&&(W=vi(E+z,l[1][1])),I=Math.max(I,V),F=Math.max(F,W)}if(o){if(f){const V=jc(L/_,x,$)*_;if(I=Math.max(I,V),a){let W=0;!u&&!d||u&&!d&&p?W=yi(E+j+L/_,a[1][1])*_:W=vi(E+j+(u?P:-P)/_,a[0][1])*_,I=Math.max(I,W)}if(l){let W=0;!u&&!d||u&&!d&&p?W=vi(E+L/_,l[1][1])*_:W=yi(E+(u?P:-P)/_,l[0][1])*_,I=Math.max(I,W)}}if(g){const V=jc(z*_,C,y)/_;if(F=Math.max(F,V),a){let W=0;!u&&!d||d&&!u&&p?W=yi(w+z*_+B,a[1][0])/_:W=vi(w+(d?T:-T)*_+B,a[0][0])/_,F=Math.max(F,W)}if(l){let W=0;!u&&!d||d&&!u&&p?W=vi(w+z*_,l[1][0])/_:W=yi(w+(d?T:-T)*_,l[0][0])/_,F=Math.max(F,W)}}}T=T+(T<0?F:-F),P=P+(P<0?I:-I),o&&(p?L>z*_?T=(H0(u,d)?-P:P)/_:P=(H0(u,d)?-T:T)*_:f?(T=P/_,d=u):(P=T*_,u=d));const A=u?w+P:w,D=d?E+T:E;return{width:S+(u?-P:P),height:O+(d?-T:T),x:i[0]*P*(u?-1:1)+A,y:i[1]*T*(d?-1:1)+D}}const k0={width:0,height:0,x:0,y:0},GI={...k0,pointerX:0,pointerY:0,aspectRatio:1};function XI(e){return[[0,0],[e.measured.width,e.measured.height]]}function YI(e,t,n){const r=t.position.x+e.position.x,o=t.position.y+e.position.y,i=e.measured.width??0,a=e.measured.height??0,l=n[0]*i,u=n[1]*a;return[[r-l,o-u],[r+i-l,o+a-u]]}function KI({domNode:e,nodeId:t,getStoreItems:n,onChange:r,onEnd:o}){const i=ir(e);function a({controlPosition:u,boundaries:d,keepAspectRatio:f,resizeDirection:g,onResizeStart:p,onResize:m,onResizeEnd:b,shouldResize:C}){let y={...k0},x={...GI};const $=UI(u);let w,E=null,S=[],O,_,P;const T=Sv().on("start",L=>{const{nodeLookup:z,transform:B,snapGrid:j,snapToGrid:I,nodeOrigin:F,paneDomNode:A}=n();if(w=z.get(t),!w)return;E=(A==null?void 0:A.getBoundingClientRect())??null;const{xSnapped:D,ySnapped:V}=Js(L.sourceEvent,{transform:B,snapGrid:j,snapToGrid:I,containerBounds:E});y={width:w.measured.width??0,height:w.measured.height??0,x:w.position.x??0,y:w.position.y??0},x={...y,pointerX:D,pointerY:V,aspectRatio:y.width/y.height},O=void 0,w.parentId&&(w.extent==="parent"||w.expandParent)&&(O=z.get(w.parentId),_=O&&w.extent==="parent"?XI(O):void 0),S=[],P=void 0;for(const[W,H]of z)if(H.parentId===t&&(S.push({id:W,position:{...H.position},extent:H.extent}),H.extent==="parent"||H.expandParent)){const q=YI(H,w,H.origin??F);P?P=[[Math.min(q[0][0],P[0][0]),Math.min(q[0][1],P[0][1])],[Math.max(q[1][0],P[1][0]),Math.max(q[1][1],P[1][1])]]:P=q}p==null||p(L,{...y})}).on("drag",L=>{const{transform:z,snapGrid:B,snapToGrid:j,nodeOrigin:I}=n(),F=Js(L.sourceEvent,{transform:z,snapGrid:B,snapToGrid:j,containerBounds:E}),A=[];if(!w)return;const{x:D,y:V,width:W,height:H}=y,q={},Z=w.origin??I,{width:Y,height:G,x:K,y:te}=qI(x,$,F,d,f,Z,_,P),ie=Y!==W,ee=G!==H,ae=K!==D&&ie,de=te!==V&ⅇif(!ae&&!de&&!ie&&!ee)return;if((ae||de||Z[0]===1||Z[1]===1)&&(q.x=ae?K:y.x,q.y=de?te:y.y,y.x=q.x,y.y=q.y,S.length>0)){const oe=K-D,he=te-V;for(const me of S)me.position={x:me.position.x-oe+Z[0]*(Y-W),y:me.position.y-he+Z[1]*(G-H)},A.push(me)}if((ie||ee)&&(q.width=ie&&(!g||g==="horizontal")?Y:y.width,q.height=ee&&(!g||g==="vertical")?G:y.height,y.width=q.width,y.height=q.height),O&&w.expandParent){const oe=Z[0]*(q.width??0);q.x&&q.x<oe&&(y.x=oe,x.x=x.x-(q.x-oe));const he=Z[1]*(q.height??0);q.y&&q.y<he&&(y.y=he,x.y=x.y-(q.y-he))}const ue=WI({width:y.width,prevWidth:W,height:y.height,prevHeight:H,affectsX:$.affectsX,affectsY:$.affectsY}),J={...y,direction:ue};(C==null?void 0:C(L,J))!==!1&&(m==null||m(L,J),r(q,A))}).on("end",L=>{b==null||b(L,{...y}),o==null||o({...y})});i.call(T)}function l(){i.on(".drag",null)}return{update:a,destroy:l}}var Bc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function tl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vc={exports:{}},Gf={},Hc={exports:{}},Xf={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* use-sync-external-store-shim.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var W0;function ZI(){if(W0)return Xf;W0=1;var e=M;function t(g,p){return g===p&&(g!==0||1/g===1/p)||g!==g&&p!==p}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function l(g,p){var m=p(),b=r({inst:{value:m,getSnapshot:p}}),C=b[0].inst,y=b[1];return i(function(){C.value=m,C.getSnapshot=p,u(C)&&y({inst:C})},[g,m,p]),o(function(){return u(C)&&y({inst:C}),g(function(){u(C)&&y({inst:C})})},[g]),a(m),m}function u(g){var p=g.getSnapshot;g=g.value;try{var m=p();return!n(g,m)}catch{return!0}}function d(g,p){return p()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:l;return Xf.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,Xf}var Yf={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* use-sync-external-store-shim.development.js
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
17
|
+
*/var U0;function QI(){return U0||(U0=1,process.env.NODE_ENV!=="production"&&function(){function e(m,b){return m===b&&(m!==0||1/m===1/b)||m!==m&&b!==b}function t(m,b){f||o.startTransition===void 0||(f=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var C=b();if(!g){var y=b();i(C,y)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),g=!0)}y=a({inst:{value:C,getSnapshot:b}});var x=y[0].inst,$=y[1];return u(function(){x.value=C,x.getSnapshot=b,n(x)&&$({inst:x})},[m,C,b]),l(function(){return n(x)&&$({inst:x}),m(function(){n(x)&&$({inst:x})})},[m]),d(C),C}function n(m){var b=m.getSnapshot;m=m.value;try{var C=b();return!i(m,C)}catch{return!0}}function r(m,b){return b()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=M,i=typeof Object.is=="function"?Object.is:e,a=o.useState,l=o.useEffect,u=o.useLayoutEffect,d=o.useDebugValue,f=!1,g=!1,p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;Yf.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:p,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Yf}var q0;function G0(){return q0||(q0=1,process.env.NODE_ENV==="production"?Hc.exports=ZI():Hc.exports=QI()),Hc.exports}/**
|
|
18
18
|
* @license React
|
|
19
19
|
* use-sync-external-store-shim/with-selector.production.js
|
|
20
20
|
*
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
*
|
|
23
23
|
* This source code is licensed under the MIT license found in the
|
|
24
24
|
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var
|
|
25
|
+
*/var X0;function JI(){if(X0)return Gf;X0=1;var e=M,t=G0();function n(d,f){return d===f&&(d!==0||1/d===1/f)||d!==d&&f!==f}var r=typeof Object.is=="function"?Object.is:n,o=t.useSyncExternalStore,i=e.useRef,a=e.useEffect,l=e.useMemo,u=e.useDebugValue;return Gf.useSyncExternalStoreWithSelector=function(d,f,g,p,m){var b=i(null);if(b.current===null){var C={hasValue:!1,value:null};b.current=C}else C=b.current;b=l(function(){function x(O){if(!$){if($=!0,w=O,O=p(O),m!==void 0&&C.hasValue){var _=C.value;if(m(_,O))return E=_}return E=O}if(_=E,r(w,O))return _;var P=p(O);return m!==void 0&&m(_,P)?(w=O,_):(w=O,E=P)}var $=!1,w,E,S=g===void 0?null:g;return[function(){return x(f())},S===null?void 0:function(){return x(S())}]},[f,g,p,m]);var y=o(d,b[0],b[1]);return a(function(){C.hasValue=!0,C.value=y},[y]),u(y),y},Gf}var Kf={};/**
|
|
26
26
|
* @license React
|
|
27
27
|
* use-sync-external-store-shim/with-selector.development.js
|
|
28
28
|
*
|
|
@@ -30,76 +30,18 @@
|
|
|
30
30
|
*
|
|
31
31
|
* This source code is licensed under the MIT license found in the
|
|
32
32
|
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var
|
|
33
|
+
*/var Y0;function eT(){return Y0||(Y0=1,process.env.NODE_ENV!=="production"&&function(){function e(d,f){return d===f&&(d!==0||1/d===1/f)||d!==d&&f!==f}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=M,n=G0(),r=typeof Object.is=="function"?Object.is:e,o=n.useSyncExternalStore,i=t.useRef,a=t.useEffect,l=t.useMemo,u=t.useDebugValue;Kf.useSyncExternalStoreWithSelector=function(d,f,g,p,m){var b=i(null);if(b.current===null){var C={hasValue:!1,value:null};b.current=C}else C=b.current;b=l(function(){function x(O){if(!$){if($=!0,w=O,O=p(O),m!==void 0&&C.hasValue){var _=C.value;if(m(_,O))return E=_}return E=O}if(_=E,r(w,O))return _;var P=p(O);return m!==void 0&&m(_,P)?(w=O,_):(w=O,E=P)}var $=!1,w,E,S=g===void 0?null:g;return[function(){return x(f())},S===null?void 0:function(){return x(S())}]},[f,g,p,m]);var y=o(d,b[0],b[1]);return a(function(){C.hasValue=!0,C.value=y},[y]),u(y),y},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Kf}var K0;function tT(){return K0||(K0=1,process.env.NODE_ENV==="production"?Vc.exports=JI():Vc.exports=eT()),Vc.exports}var nT=tT();const rT=tl(nT),oT={},Z0=e=>{let t;const n=new Set,r=(f,g)=>{const p=typeof f=="function"?f(t):f;if(!Object.is(p,t)){const m=t;t=g??(typeof p!="object"||p===null)?p:Object.assign({},t,p),n.forEach(b=>b(t,m))}},o=()=>t,u={setState:r,getState:o,getInitialState:()=>d,subscribe:f=>(n.add(f),()=>n.delete(f)),destroy:()=>{(oT?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},d=t=e(r,o,u);return u},iT=e=>e?Z0(e):Z0,{useDebugValue:aT}=M,{useSyncExternalStoreWithSelector:sT}=rT,lT=e=>e;function Q0(e,t=lT,n){const r=sT(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return aT(r),r}const J0=(e,t)=>{const n=iT(e),r=(o,i=t)=>Q0(n,o,i);return Object.assign(r,n),r},cT=(e,t)=>e?J0(e,t):J0;function Gt(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[r,o]of e)if(!Object.is(o,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(const r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}const kc=M.createContext(null),uT=kc.Provider,ey=ar.error001();function gt(e,t){const n=M.useContext(kc);if(n===null)throw new Error(ey);return Q0(n,e,t)}function Bt(){const e=M.useContext(kc);if(e===null)throw new Error(ey);return M.useMemo(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe}),[e])}const ty={display:"none"},dT={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},ny="react-flow__node-desc",ry="react-flow__edge-desc",fT="react-flow__aria-live",gT=e=>e.ariaLiveMessage,pT=e=>e.ariaLabelConfig;function hT({rfId:e}){const t=gt(gT);return X.jsx("div",{id:`${fT}-${e}`,"aria-live":"assertive","aria-atomic":"true",style:dT,children:t})}function mT({rfId:e,disableKeyboardA11y:t}){const n=gt(pT);return X.jsxs(X.Fragment,{children:[X.jsx("div",{id:`${ny}-${e}`,style:ty,children:t?n["node.a11yDescription.default"]:n["node.a11yDescription.keyboardDisabled"]}),X.jsx("div",{id:`${ry}-${e}`,style:ty,children:n["edge.a11yDescription.default"]}),!t&&X.jsx(hT,{rfId:e})]})}const Wc=M.forwardRef(({position:e="top-left",children:t,className:n,style:r,...o},i)=>{const a=`${e}`.split("-");return X.jsx("div",{className:on(["react-flow__panel",n,...a]),style:r,ref:i,...o,children:t})});Wc.displayName="Panel";function vT({proOptions:e,position:t="bottom-right"}){return e!=null&&e.hideAttribution?null:X.jsx(Wc,{position:t,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://pro.reactflow.dev",children:X.jsx("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const yT=e=>{const t=[],n=[];for(const[,r]of e.nodeLookup)r.selected&&t.push(r.internals.userNode);for(const[,r]of e.edgeLookup)r.selected&&n.push(r);return{selectedNodes:t,selectedEdges:n}},Uc=e=>e.id;function bT(e,t){return Gt(e.selectedNodes.map(Uc),t.selectedNodes.map(Uc))&&Gt(e.selectedEdges.map(Uc),t.selectedEdges.map(Uc))}function CT({onSelectionChange:e}){const t=Bt(),{selectedNodes:n,selectedEdges:r}=gt(yT,bT);return M.useEffect(()=>{const o={nodes:n,edges:r};e==null||e(o),t.getState().onSelectionChangeHandlers.forEach(i=>i(o))},[n,r,e]),null}const xT=e=>!!e.onSelectionChangeHandlers;function wT({onSelectionChange:e}){const t=gt(xT);return e||t?X.jsx(CT,{onSelectionChange:e}):null}const oy=[0,0],ST={x:0,y:0,zoom:1},iy=[...["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","autoPanOnNodeFocus","nodesConnectable","nodesFocusable","edgesFocusable","edgesReconnectable","elevateNodesOnSelect","elevateEdgesOnSelect","minZoom","maxZoom","nodeExtent","onNodesChange","onEdgesChange","elementsSelectable","connectionMode","snapGrid","snapToGrid","translateExtent","connectOnClick","defaultEdgeOptions","fitView","fitViewOptions","onNodesDelete","onEdgesDelete","onDelete","onNodeDrag","onNodeDragStart","onNodeDragStop","onSelectionDrag","onSelectionDragStart","onSelectionDragStop","onMoveStart","onMove","onMoveEnd","noPanClassName","nodeOrigin","autoPanOnConnect","autoPanOnNodeDrag","onError","connectionRadius","isValidConnection","selectNodesOnDrag","nodeDragThreshold","connectionDragThreshold","onBeforeDelete","debug","autoPanSpeed","paneClickDistance","ariaLabelConfig"],"rfId"],ET=e=>({setNodes:e.setNodes,setEdges:e.setEdges,setMinZoom:e.setMinZoom,setMaxZoom:e.setMaxZoom,setTranslateExtent:e.setTranslateExtent,setNodeExtent:e.setNodeExtent,reset:e.reset,setDefaultNodesAndEdges:e.setDefaultNodesAndEdges,setPaneClickDistance:e.setPaneClickDistance}),ay={translateExtent:Gs,nodeOrigin:oy,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1",paneClickDistance:0};function $T(e){const{setNodes:t,setEdges:n,setMinZoom:r,setMaxZoom:o,setTranslateExtent:i,setNodeExtent:a,reset:l,setDefaultNodesAndEdges:u,setPaneClickDistance:d}=gt(ET,Gt),f=Bt();M.useEffect(()=>(u(e.defaultNodes,e.defaultEdges),()=>{g.current=ay,l()}),[]);const g=M.useRef(ay);return M.useEffect(()=>{for(const p of iy){const m=e[p],b=g.current[p];m!==b&&(typeof e[p]>"u"||(p==="nodes"?t(m):p==="edges"?n(m):p==="minZoom"?r(m):p==="maxZoom"?o(m):p==="translateExtent"?i(m):p==="nodeExtent"?a(m):p==="paneClickDistance"?d(m):p==="ariaLabelConfig"?f.setState({ariaLabelConfig:uI(m)}):p==="fitView"?f.setState({fitViewQueued:m}):p==="fitViewOptions"?f.setState({fitViewOptions:m}):f.setState({[p]:m})))}g.current=e},iy.map(p=>e[p])),null}function sy(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function _T(e){var r;const[t,n]=M.useState(e==="system"?null:e);return M.useEffect(()=>{if(e!=="system"){n(e);return}const o=sy(),i=()=>n(o!=null&&o.matches?"dark":"light");return i(),o==null||o.addEventListener("change",i),()=>{o==null||o.removeEventListener("change",i)}},[e]),t!==null?t:(r=sy())!=null&&r.matches?"dark":"light"}const ly=typeof document<"u"?document:null;function nl(e=null,t={target:ly,actInsideInputWithModifier:!0}){const[n,r]=M.useState(!1),o=M.useRef(!1),i=M.useRef(new Set([])),[a,l]=M.useMemo(()=>{if(e!==null){const d=(Array.isArray(e)?e:[e]).filter(g=>typeof g=="string").map(g=>g.replace("+",`
|
|
34
34
|
`).replace(`
|
|
35
35
|
|
|
36
36
|
`,`
|
|
37
37
|
+`).split(`
|
|
38
|
-
`)),u=c.reduce((d,f)=>d.concat(...f),[]);return[c,u]}return[[],[]]},[e]);return T.useEffect(()=>{const l=(t==null?void 0:t.target)??fg,c=(t==null?void 0:t.actInsideInputWithModifier)??!0;if(e!==null){const u=p=>{var g,y;if(o.current=p.ctrlKey||p.metaKey||p.shiftKey||p.altKey,(!o.current||o.current&&!c)&&wp(p))return!1;const m=gg(p.code,s);if(i.current.add(p[m]),pg(a,i.current,!1)){const x=((y=(g=p.composedPath)==null?void 0:g.call(p))==null?void 0:y[0])||p.target,b=(x==null?void 0:x.nodeName)==="BUTTON"||(x==null?void 0:x.nodeName)==="A";t.preventDefault!==!1&&(o.current||!b)&&p.preventDefault(),r(!0)}},d=p=>{const v=gg(p.code,s);pg(a,i.current,!0)?(r(!1),i.current.clear()):i.current.delete(p[v]),p.key==="Meta"&&i.current.clear(),o.current=!1},f=()=>{i.current.clear(),r(!1)};return l==null||l.addEventListener("keydown",u),l==null||l.addEventListener("keyup",d),window.addEventListener("blur",f),window.addEventListener("contextmenu",f),()=>{l==null||l.removeEventListener("keydown",u),l==null||l.removeEventListener("keyup",d),window.removeEventListener("blur",f),window.removeEventListener("contextmenu",f)}}},[e,r]),n}function pg(e,t,n){return e.filter(r=>n||r.length===t.size).some(r=>r.every(o=>t.has(o)))}function gg(e,t){return t.includes(e)?"code":"key"}const NE=()=>{const e=nt();return T.useMemo(()=>({zoomIn:t=>{const{panZoom:n}=e.getState();return n?n.scaleBy(1.2,{duration:t==null?void 0:t.duration}):Promise.resolve(!1)},zoomOut:t=>{const{panZoom:n}=e.getState();return n?n.scaleBy(1/1.2,{duration:t==null?void 0:t.duration}):Promise.resolve(!1)},zoomTo:(t,n)=>{const{panZoom:r}=e.getState();return r?r.scaleTo(t,{duration:n==null?void 0:n.duration}):Promise.resolve(!1)},getZoom:()=>e.getState().transform[2],setViewport:async(t,n)=>{const{transform:[r,o,i],panZoom:a}=e.getState();return a?(await a.setViewport({x:t.x??r,y:t.y??o,zoom:t.zoom??i},n),Promise.resolve(!0)):Promise.resolve(!1)},getViewport:()=>{const[t,n,r]=e.getState().transform;return{x:t,y:n,zoom:r}},setCenter:async(t,n,r)=>e.getState().setCenter(t,n,r),fitBounds:async(t,n)=>{const{width:r,height:o,minZoom:i,maxZoom:a,panZoom:s}=e.getState(),l=Bl(t,r,o,i,a,(n==null?void 0:n.padding)??.1);return s?(await s.setViewport(l,{duration:n==null?void 0:n.duration,ease:n==null?void 0:n.ease,interpolate:n==null?void 0:n.interpolate}),Promise.resolve(!0)):Promise.resolve(!1)},screenToFlowPosition:(t,n={})=>{const{transform:r,snapGrid:o,snapToGrid:i,domNode:a}=e.getState();if(!a)return t;const{x:s,y:l}=a.getBoundingClientRect(),c={x:t.x-s,y:t.y-l},u=n.snapGrid??o,d=n.snapToGrid??i;return pi(c,r,d,u)},flowToScreenPosition:t=>{const{transform:n,domNode:r}=e.getState();if(!r)return t;const{x:o,y:i}=r.getBoundingClientRect(),a=Da(t,n);return{x:a.x+o,y:a.y+i}}}),[])};function hg(e,t){const n=[],r=new Map,o=[];for(const i of e)if(i.type==="add"){o.push(i);continue}else if(i.type==="remove"||i.type==="replace")r.set(i.id,[i]);else{const a=r.get(i.id);a?a.push(i):r.set(i.id,[i])}for(const i of t){const a=r.get(i.id);if(!a){n.push(i);continue}if(a[0].type==="remove")continue;if(a[0].type==="replace"){n.push({...a[0].item});continue}const s={...i};for(const l of a)PE(l,s);n.push(s)}return o.length&&o.forEach(i=>{i.index!==void 0?n.splice(i.index,0,{...i.item}):n.push({...i.item})}),n}function PE(e,t){switch(e.type){case"select":{t.selected=e.selected;break}case"position":{typeof e.position<"u"&&(t.position=e.position),typeof e.dragging<"u"&&(t.dragging=e.dragging);break}case"dimensions":{typeof e.dimensions<"u"&&(t.measured??(t.measured={}),t.measured.width=e.dimensions.width,t.measured.height=e.dimensions.height,e.setAttributes&&((e.setAttributes===!0||e.setAttributes==="width")&&(t.width=e.dimensions.width),(e.setAttributes===!0||e.setAttributes==="height")&&(t.height=e.dimensions.height))),typeof e.resizing=="boolean"&&(t.resizing=e.resizing);break}}}function mg(e,t){return hg(e,t)}function vg(e,t){return hg(e,t)}function Rr(e,t){return{id:e,type:"select",selected:t}}function go(e,t=new Set,n=!1){const r=[];for(const[o,i]of e){const a=t.has(o);!(i.selected===void 0&&!a)&&i.selected!==a&&(n&&(i.selected=a),r.push(Rr(i.id,a)))}return r}function yg({items:e=[],lookup:t}){var o;const n=[],r=new Map(e.map(i=>[i.id,i]));for(const[i,a]of e.entries()){const s=t.get(a.id),l=((o=s==null?void 0:s.internals)==null?void 0:o.userNode)??s;l!==void 0&&l!==a&&n.push({id:a.id,item:a,type:"replace"}),l===void 0&&n.push({item:a,type:"add",index:i})}for(const[i]of t)r.get(i)===void 0&&n.push({id:i,type:"remove"});return n}function bg(e){return{id:e.id,type:"remove"}}const Cg=e=>nS(e),TE=e=>cp(e);function wg(e){return T.forwardRef(e)}const IE=typeof window<"u"?T.useLayoutEffect:T.useEffect;function xg(e){const[t,n]=T.useState(BigInt(0)),[r]=T.useState(()=>ME(()=>n(o=>o+BigInt(1))));return IE(()=>{const o=r.get();o.length&&(e(o),r.reset())},[t]),r}function ME(e){let t=[];return{get:()=>t,reset:()=>{t=[]},push:n=>{t.push(n),e()}}}const Sg=T.createContext(null);function AE({children:e}){const t=nt(),n=T.useCallback(s=>{const{nodes:l=[],setNodes:c,hasDefaultNodes:u,onNodesChange:d,nodeLookup:f,fitViewQueued:p}=t.getState();let v=l;for(const g of s)v=typeof g=="function"?g(v):g;const m=yg({items:v,lookup:f});u&&c(v),m.length>0?d==null||d(m):p&&window.requestAnimationFrame(()=>{const{fitViewQueued:g,nodes:y,setNodes:x}=t.getState();g&&x(y)})},[]),r=xg(n),o=T.useCallback(s=>{const{edges:l=[],setEdges:c,hasDefaultEdges:u,onEdgesChange:d,edgeLookup:f}=t.getState();let p=l;for(const v of s)p=typeof v=="function"?v(p):v;u?c(p):d&&d(yg({items:p,lookup:f}))},[]),i=xg(o),a=T.useMemo(()=>({nodeQueue:r,edgeQueue:i}),[]);return k.jsx(Sg.Provider,{value:a,children:e})}function DE(){const e=T.useContext(Sg);if(!e)throw new Error("useBatchContext must be used within a BatchProvider");return e}const FE=e=>!!e.panZoom;function Wa(){const e=NE(),t=nt(),n=DE(),r=Ae(FE),o=T.useMemo(()=>{const i=d=>t.getState().nodeLookup.get(d),a=d=>{n.nodeQueue.push(d)},s=d=>{n.edgeQueue.push(d)},l=d=>{var y,x;const{nodeLookup:f,nodeOrigin:p}=t.getState(),v=Cg(d)?d:f.get(d.id),m=v.parentId?yp(v.position,v.measured,v.parentId,f,p):v.position,g={...v,position:m,width:((y=v.measured)==null?void 0:y.width)??v.width,height:((x=v.measured)==null?void 0:x.height)??v.height};return lo(g)},c=(d,f,p={replace:!1})=>{a(v=>v.map(m=>{if(m.id===d){const g=typeof f=="function"?f(m):f;return p.replace&&Cg(g)?g:{...m,...g}}return m}))},u=(d,f,p={replace:!1})=>{s(v=>v.map(m=>{if(m.id===d){const g=typeof f=="function"?f(m):f;return p.replace&&TE(g)?g:{...m,...g}}return m}))};return{getNodes:()=>t.getState().nodes.map(d=>({...d})),getNode:d=>{var f;return(f=i(d))==null?void 0:f.internals.userNode},getInternalNode:i,getEdges:()=>{const{edges:d=[]}=t.getState();return d.map(f=>({...f}))},getEdge:d=>t.getState().edgeLookup.get(d),setNodes:a,setEdges:s,addNodes:d=>{const f=Array.isArray(d)?d:[d];n.nodeQueue.push(p=>[...p,...f])},addEdges:d=>{const f=Array.isArray(d)?d:[d];n.edgeQueue.push(p=>[...p,...f])},toObject:()=>{const{nodes:d=[],edges:f=[],transform:p}=t.getState(),[v,m,g]=p;return{nodes:d.map(y=>({...y})),edges:f.map(y=>({...y})),viewport:{x:v,y:m,zoom:g}}},deleteElements:async({nodes:d=[],edges:f=[]})=>{const{nodes:p,edges:v,onNodesDelete:m,onEdgesDelete:g,triggerNodeChanges:y,triggerEdgeChanges:x,onDelete:b,onBeforeDelete:C}=t.getState(),{nodes:w,edges:$}=await sS({nodesToRemove:d,edgesToRemove:f,nodes:p,edges:v,onBeforeDelete:C}),S=$.length>0,E=w.length>0;if(S){const _=$.map(bg);g==null||g($),x(_)}if(E){const _=w.map(bg);m==null||m(w),y(_)}return(E||S)&&(b==null||b({nodes:w,edges:$})),{deletedNodes:w,deletedEdges:$}},getIntersectingNodes:(d,f=!0,p)=>{const v=hp(d),m=v?d:l(d),g=p!==void 0;return m?(p||t.getState().nodes).filter(y=>{const x=t.getState().nodeLookup.get(y.id);if(x&&!v&&(y.id===d.id||!x.internals.positionAbsolute))return!1;const b=lo(g?y:x),C=fi(b,m);return f&&C>0||C>=m.width*m.height}):[]},isNodeIntersecting:(d,f,p=!0)=>{const m=hp(d)?d:l(d);if(!m)return!1;const g=fi(m,f);return p&&g>0||g>=m.width*m.height},updateNode:c,updateNodeData:(d,f,p={replace:!1})=>{c(d,v=>{const m=typeof f=="function"?f(v):f;return p.replace?{...v,data:m}:{...v,data:{...v.data,...m}}},p)},updateEdge:u,updateEdgeData:(d,f,p={replace:!1})=>{u(d,v=>{const m=typeof f=="function"?f(v):f;return p.replace?{...v,data:m}:{...v,data:{...v.data,...m}}},p)},getNodesBounds:d=>{const{nodeLookup:f,nodeOrigin:p}=t.getState();return rS(d,{nodeLookup:f,nodeOrigin:p})},getHandleConnections:({type:d,id:f,nodeId:p})=>{var v;return Array.from(((v=t.getState().connectionLookup.get(`${p}-${d}${f?`-${f}`:""}`))==null?void 0:v.values())??[])},getNodeConnections:({type:d,handleId:f,nodeId:p})=>{var v;return Array.from(((v=t.getState().connectionLookup.get(`${p}${d?f?`-${d}-${f}`:`-${d}`:""}`))==null?void 0:v.values())??[])},fitView:async d=>{const f=t.getState().fitViewResolver??uS();return t.setState({fitViewQueued:!0,fitViewOptions:d,fitViewResolver:f}),n.nodeQueue.push(p=>[...p]),f.promise}}},[]);return T.useMemo(()=>({...o,...e,viewportInitialized:r}),[r])}const Eg=e=>e.selected,LE=typeof window<"u"?window:void 0;function jE({deleteKeyCode:e,multiSelectionKeyCode:t}){const n=nt(),{deleteElements:r}=Wa(),o=vi(e,{actInsideInputWithModifier:!1}),i=vi(t,{target:LE});T.useEffect(()=>{if(o){const{edges:a,nodes:s}=n.getState();r({nodes:s.filter(Eg),edges:a.filter(Eg)}),n.setState({nodesSelectionActive:!1})}},[o]),T.useEffect(()=>{n.setState({multiSelectionActive:i})},[i])}function zE(e){const t=nt();T.useEffect(()=>{const n=()=>{var o,i;if(!e.current)return!1;const r=Wl(e.current);(r.height===0||r.width===0)&&((i=(o=t.getState()).onError)==null||i.call(o,"004",Gt.error004())),t.setState({width:r.width||500,height:r.height||500})};if(e.current){n(),window.addEventListener("resize",n);const r=new ResizeObserver(()=>n());return r.observe(e.current),()=>{window.removeEventListener("resize",n),r&&e.current&&r.unobserve(e.current)}}},[])}const qa={position:"absolute",width:"100%",height:"100%",top:0,left:0},RE=e=>({userSelectionActive:e.userSelectionActive,lib:e.lib});function VE({onPaneContextMenu:e,zoomOnScroll:t=!0,zoomOnPinch:n=!0,panOnScroll:r=!1,panOnScrollSpeed:o=.5,panOnScrollMode:i=jr.Free,zoomOnDoubleClick:a=!0,panOnDrag:s=!0,defaultViewport:l,translateExtent:c,minZoom:u,maxZoom:d,zoomActivationKeyCode:f,preventScrolling:p=!0,children:v,noWheelClassName:m,noPanClassName:g,onViewportChange:y,isControlledViewport:x,paneClickDistance:b}){const C=nt(),w=T.useRef(null),{userSelectionActive:$,lib:S}=Ae(RE,it),E=vi(f),_=T.useRef();zE(w);const P=T.useCallback(A=>{y==null||y({x:A[0],y:A[1],zoom:A[2]}),x||C.setState({transform:A})},[y,x]);return T.useEffect(()=>{if(w.current){_.current=WS({domNode:w.current,minZoom:u,maxZoom:d,translateExtent:c,viewport:l,paneClickDistance:b,onDraggingChange:O=>C.setState({paneDragging:O}),onPanZoomStart:(O,M)=>{const{onViewportChangeStart:N,onMoveStart:I}=C.getState();I==null||I(O,M),N==null||N(M)},onPanZoom:(O,M)=>{const{onViewportChange:N,onMove:I}=C.getState();I==null||I(O,M),N==null||N(M)},onPanZoomEnd:(O,M)=>{const{onViewportChangeEnd:N,onMoveEnd:I}=C.getState();I==null||I(O,M),N==null||N(M)}});const{x:A,y:L,zoom:D}=_.current.getViewport();return C.setState({panZoom:_.current,transform:[A,L,D],domNode:w.current.closest(".react-flow")}),()=>{var O;(O=_.current)==null||O.destroy()}}},[]),T.useEffect(()=>{var A;(A=_.current)==null||A.update({onPaneContextMenu:e,zoomOnScroll:t,zoomOnPinch:n,panOnScroll:r,panOnScrollSpeed:o,panOnScrollMode:i,zoomOnDoubleClick:a,panOnDrag:s,zoomActivationKeyPressed:E,preventScrolling:p,noPanClassName:g,userSelectionActive:$,noWheelClassName:m,lib:S,onTransformChange:P})},[e,t,n,r,o,i,a,s,E,p,g,$,m,S,P]),k.jsx("div",{className:"react-flow__renderer",ref:w,style:qa,children:v})}const kE=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function HE(){const{userSelectionActive:e,userSelectionRect:t}=Ae(kE,it);return e&&t?k.jsx("div",{className:"react-flow__selection react-flow__container",style:{width:t.width,height:t.height,transform:`translate(${t.x}px, ${t.y}px)`}}):null}const ac=(e,t)=>n=>{n.target===t.current&&(e==null||e(n))},BE=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,connectionInProgress:e.connection.inProgress,dragging:e.paneDragging});function WE({isSelecting:e,selectionKeyPressed:t,selectionMode:n=ci.Full,panOnDrag:r,selectionOnDrag:o,onSelectionStart:i,onSelectionEnd:a,onPaneClick:s,onPaneContextMenu:l,onPaneScroll:c,onPaneMouseEnter:u,onPaneMouseMove:d,onPaneMouseLeave:f,children:p}){const v=nt(),{userSelectionActive:m,elementsSelectable:g,dragging:y,connectionInProgress:x}=Ae(BE,it),b=g&&(e||m),C=T.useRef(null),w=T.useRef(),$=T.useRef(new Set),S=T.useRef(new Set),E=T.useRef(!1),_=T.useRef(!1),P=I=>{if(E.current||x){E.current=!1;return}s==null||s(I),v.getState().resetSelectedElements(),v.setState({nodesSelectionActive:!1})},A=I=>{if(Array.isArray(r)&&(r!=null&&r.includes(2))){I.preventDefault();return}l==null||l(I)},L=c?I=>c(I):void 0,D=I=>{var W,H;const{resetSelectedElements:j,domNode:z}=v.getState();if(w.current=z==null?void 0:z.getBoundingClientRect(),!g||!e||I.button!==0||I.target!==C.current||!w.current)return;(H=(W=I.target)==null?void 0:W.setPointerCapture)==null||H.call(W,I.pointerId),_.current=!0,E.current=!1;const{x:F,y:R}=Nn(I.nativeEvent,w.current);j(),v.setState({userSelectionRect:{width:0,height:0,startX:F,startY:R,x:F,y:R}}),i==null||i(I)},O=I=>{const{userSelectionRect:j,transform:z,nodeLookup:F,edgeLookup:R,connectionLookup:W,triggerNodeChanges:H,triggerEdgeChanges:V,defaultEdgeOptions:B}=v.getState();if(!w.current||!j)return;E.current=!0;const{x:U,y:K}=Nn(I.nativeEvent,w.current),{startX:G,startY:Z}=j,J={startX:G,startY:Z,x:U<G?U:G,y:K<Z?K:Z,width:Math.abs(U-G),height:Math.abs(K-Z)},ee=$.current,q=S.current;$.current=new Set(kl(F,J,z,n===ci.Partial,!0).map(Y=>Y.id)),S.current=new Set;const te=(B==null?void 0:B.selectable)??!0;for(const Y of $.current){const oe=W.get(Y);if(oe)for(const{edgeId:ne}of oe.values()){const ce=R.get(ne);ce&&(ce.selectable??te)&&S.current.add(ne)}}if(!bp(ee,$.current)){const Y=go(F,$.current,!0);H(Y)}if(!bp(q,S.current)){const Y=go(R,S.current);V(Y)}v.setState({userSelectionRect:J,userSelectionActive:!0,nodesSelectionActive:!1})},M=I=>{var z,F;if(I.button!==0||!_.current)return;(F=(z=I.target)==null?void 0:z.releasePointerCapture)==null||F.call(z,I.pointerId);const{userSelectionRect:j}=v.getState();!m&&j&&I.target===C.current&&(P==null||P(I)),v.setState({userSelectionActive:!1,userSelectionRect:null,nodesSelectionActive:$.current.size>0}),a==null||a(I),(t||o)&&(E.current=!1),_.current=!1},N=r===!0||Array.isArray(r)&&r.includes(0);return k.jsxs("div",{className:mt(["react-flow__pane",{draggable:N,dragging:y,selection:e}]),onClick:b?void 0:ac(P,C),onContextMenu:ac(A,C),onWheel:ac(L,C),onPointerEnter:b?void 0:u,onPointerDown:b?D:d,onPointerMove:b?O:d,onPointerUp:b?M:void 0,onPointerLeave:f,ref:C,style:qa,children:[p,k.jsx(HE,{})]})}function sc({id:e,store:t,unselect:n=!1,nodeRef:r}){const{addSelectedNodes:o,unselectNodesAndEdges:i,multiSelectionActive:a,nodeLookup:s,onError:l}=t.getState(),c=s.get(e);if(!c){l==null||l("012",Gt.error012(e));return}t.setState({nodesSelectionActive:!1}),c.selected?(n||c.selected&&a)&&(i({nodes:[c],edges:[]}),requestAnimationFrame(()=>{var u;return(u=r==null?void 0:r.current)==null?void 0:u.blur()})):o([e])}function $g({nodeRef:e,disabled:t=!1,noDragClassName:n,handleSelector:r,nodeId:o,isSelectable:i,nodeClickDistance:a}){const s=nt(),[l,c]=T.useState(!1),u=T.useRef();return T.useEffect(()=>{u.current=PS({getStoreItems:()=>s.getState(),onNodeMouseDown:d=>{sc({id:d,store:s,nodeRef:e})},onDragStart:()=>{c(!0)},onDragStop:()=>{c(!1)}})},[]),T.useEffect(()=>{var d,f;if(t)(d=u.current)==null||d.destroy();else if(e.current)return(f=u.current)==null||f.update({noDragClassName:n,handleSelector:r,domNode:e.current,isSelectable:i,nodeId:o,nodeClickDistance:a}),()=>{var p;(p=u.current)==null||p.destroy()}},[n,r,t,i,e,o]),l}const qE=e=>t=>t.selected&&(t.draggable||e&&typeof t.draggable>"u");function Og(){const e=nt();return T.useCallback(n=>{const{nodeExtent:r,snapToGrid:o,snapGrid:i,nodesDraggable:a,onError:s,updateNodePositions:l,nodeLookup:c,nodeOrigin:u}=e.getState(),d=new Map,f=qE(a),p=o?i[0]:5,v=o?i[1]:5,m=n.direction.x*p*n.factor,g=n.direction.y*v*n.factor;for(const[,y]of c){if(!f(y))continue;let x={x:y.internals.positionAbsolute.x+m,y:y.internals.positionAbsolute.y+g};o&&(x=Aa(x,i));const{position:b,positionAbsolute:C}=up({nodeId:y.id,nextPosition:x,nodeLookup:c,nodeExtent:r,nodeOrigin:u,onError:s});y.position=b,y.internals.positionAbsolute=C,d.set(y.id,y)}l(d)},[])}const lc=T.createContext(null),UE=lc.Provider;lc.Consumer;const _g=()=>T.useContext(lc),GE=e=>({connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName,rfId:e.rfId}),XE=(e,t,n)=>r=>{const{connectionClickStartHandle:o,connectionMode:i,connection:a}=r,{fromHandle:s,toHandle:l,isValid:c}=a,u=(l==null?void 0:l.nodeId)===e&&(l==null?void 0:l.id)===t&&(l==null?void 0:l.type)===n;return{connectingFrom:(s==null?void 0:s.nodeId)===e&&(s==null?void 0:s.id)===t&&(s==null?void 0:s.type)===n,connectingTo:u,clickConnecting:(o==null?void 0:o.nodeId)===e&&(o==null?void 0:o.id)===t&&(o==null?void 0:o.type)===n,isPossibleEndHandle:i===ao.Strict?(s==null?void 0:s.type)!==n:e!==(s==null?void 0:s.nodeId)||t!==(s==null?void 0:s.id),connectionInProcess:!!s,clickConnectionInProcess:!!o,valid:u&&c}};function YE({type:e="source",position:t=be.Top,isValidConnection:n,isConnectable:r=!0,isConnectableStart:o=!0,isConnectableEnd:i=!0,id:a,onConnect:s,children:l,className:c,onMouseDown:u,onTouchStart:d,...f},p){var M,N;const v=a||null,m=e==="target",g=nt(),y=_g(),{connectOnClick:x,noPanClassName:b,rfId:C}=Ae(GE,it),{connectingFrom:w,connectingTo:$,clickConnecting:S,isPossibleEndHandle:E,connectionInProcess:_,clickConnectionInProcess:P,valid:A}=Ae(XE(y,v,e),it);y||(N=(M=g.getState()).onError)==null||N.call(M,"010",Gt.error010());const L=I=>{const{defaultEdgeOptions:j,onConnect:z,hasDefaultEdges:F}=g.getState(),R={...j,...I};if(F){const{edges:W,setEdges:H}=g.getState();H(Np(R,W))}z==null||z(R),s==null||s(R)},D=I=>{if(!y)return;const j=xp(I.nativeEvent);if(o&&(j&&I.button===0||!j)){const z=g.getState();Jl.onPointerDown(I.nativeEvent,{autoPanOnConnect:z.autoPanOnConnect,connectionMode:z.connectionMode,connectionRadius:z.connectionRadius,domNode:z.domNode,nodeLookup:z.nodeLookup,lib:z.lib,isTarget:m,handleId:v,nodeId:y,flowId:z.rfId,panBy:z.panBy,cancelConnection:z.cancelConnection,onConnectStart:z.onConnectStart,onConnectEnd:z.onConnectEnd,updateConnection:z.updateConnection,onConnect:L,isValidConnection:n||z.isValidConnection,getTransform:()=>g.getState().transform,getFromHandle:()=>g.getState().connection.fromHandle,autoPanSpeed:z.autoPanSpeed,dragThreshold:z.connectionDragThreshold})}j?u==null||u(I):d==null||d(I)},O=I=>{const{onClickConnectStart:j,onClickConnectEnd:z,connectionClickStartHandle:F,connectionMode:R,isValidConnection:W,lib:H,rfId:V,nodeLookup:B,connection:U}=g.getState();if(!y||!F&&!o)return;if(!F){j==null||j(I.nativeEvent,{nodeId:y,handleId:v,handleType:e}),g.setState({connectionClickStartHandle:{nodeId:y,type:e,id:v}});return}const K=Cp(I.target),G=n||W,{connection:Z,isValid:J}=Jl.isValid(I.nativeEvent,{handle:{nodeId:y,id:v,type:e},connectionMode:R,fromNodeId:F.nodeId,fromHandleId:F.id||null,fromType:F.type,isValidConnection:G,flowId:V,doc:K,lib:H,nodeLookup:B});J&&Z&&L(Z);const ee=structuredClone(U);delete ee.inProgress,ee.toPosition=ee.toHandle?ee.toHandle.position:null,z==null||z(I,ee),g.setState({connectionClickStartHandle:null})};return k.jsx("div",{"data-handleid":v,"data-nodeid":y,"data-handlepos":t,"data-id":`${C}-${y}-${v}-${e}`,className:mt(["react-flow__handle",`react-flow__handle-${t}`,"nodrag",b,c,{source:!m,target:m,connectable:r,connectablestart:o,connectableend:i,clickconnecting:S,connectingfrom:w,connectingto:$,valid:A,connectionindicator:r&&(!_||E)&&(_||P?i:o)}]),onMouseDown:D,onTouchStart:D,onClick:x?O:void 0,ref:p,...f,children:l})}const Vr=T.memo(wg(YE));function KE({data:e,isConnectable:t,sourcePosition:n=be.Bottom}){return k.jsxs(k.Fragment,{children:[e==null?void 0:e.label,k.jsx(Vr,{type:"source",position:n,isConnectable:t})]})}function ZE({data:e,isConnectable:t,targetPosition:n=be.Top,sourcePosition:r=be.Bottom}){return k.jsxs(k.Fragment,{children:[k.jsx(Vr,{type:"target",position:n,isConnectable:t}),e==null?void 0:e.label,k.jsx(Vr,{type:"source",position:r,isConnectable:t})]})}function QE(){return null}function JE({data:e,isConnectable:t,targetPosition:n=be.Top}){return k.jsxs(k.Fragment,{children:[k.jsx(Vr,{type:"target",position:n,isConnectable:t}),e==null?void 0:e.label]})}const Ua={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},Ng={input:KE,default:ZE,output:JE,group:QE};function e$(e){var t,n,r,o;return e.internals.handleBounds===void 0?{width:e.width??e.initialWidth??((t=e.style)==null?void 0:t.width),height:e.height??e.initialHeight??((n=e.style)==null?void 0:n.height)}:{width:e.width??((r=e.style)==null?void 0:r.width),height:e.height??((o=e.style)==null?void 0:o.height)}}const t$=e=>{const{width:t,height:n,x:r,y:o}=di(e.nodeLookup,{filter:i=>!!i.selected});return{width:gn(t)?t:null,height:gn(n)?n:null,userSelectionActive:e.userSelectionActive,transformString:`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]}) translate(${r}px,${o}px)`}};function n$({onSelectionContextMenu:e,noPanClassName:t,disableKeyboardA11y:n}){const r=nt(),{width:o,height:i,transformString:a,userSelectionActive:s}=Ae(t$,it),l=Og(),c=T.useRef(null);if(T.useEffect(()=>{var f;n||(f=c.current)==null||f.focus({preventScroll:!0})},[n]),$g({nodeRef:c}),s||!o||!i)return null;const u=e?f=>{const p=r.getState().nodes.filter(v=>v.selected);e(f,p)}:void 0,d=f=>{Object.prototype.hasOwnProperty.call(Ua,f.key)&&(f.preventDefault(),l({direction:Ua[f.key],factor:f.shiftKey?4:1}))};return k.jsx("div",{className:mt(["react-flow__nodesselection","react-flow__container",t]),style:{transform:a},children:k.jsx("div",{ref:c,className:"react-flow__nodesselection-rect",onContextMenu:u,tabIndex:n?void 0:-1,onKeyDown:n?void 0:d,style:{width:o,height:i}})})}const Pg=typeof window<"u"?window:void 0,r$=e=>({nodesSelectionActive:e.nodesSelectionActive,userSelectionActive:e.userSelectionActive});function Tg({children:e,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:r,onPaneMouseLeave:o,onPaneContextMenu:i,onPaneScroll:a,paneClickDistance:s,deleteKeyCode:l,selectionKeyCode:c,selectionOnDrag:u,selectionMode:d,onSelectionStart:f,onSelectionEnd:p,multiSelectionKeyCode:v,panActivationKeyCode:m,zoomActivationKeyCode:g,elementsSelectable:y,zoomOnScroll:x,zoomOnPinch:b,panOnScroll:C,panOnScrollSpeed:w,panOnScrollMode:$,zoomOnDoubleClick:S,panOnDrag:E,defaultViewport:_,translateExtent:P,minZoom:A,maxZoom:L,preventScrolling:D,onSelectionContextMenu:O,noWheelClassName:M,noPanClassName:N,disableKeyboardA11y:I,onViewportChange:j,isControlledViewport:z}){const{nodesSelectionActive:F,userSelectionActive:R}=Ae(r$),W=vi(c,{target:Pg}),H=vi(m,{target:Pg}),V=H||E,B=H||C,U=u&&V!==!0,K=W||R||U;return jE({deleteKeyCode:l,multiSelectionKeyCode:v}),k.jsx(VE,{onPaneContextMenu:i,elementsSelectable:y,zoomOnScroll:x,zoomOnPinch:b,panOnScroll:B,panOnScrollSpeed:w,panOnScrollMode:$,zoomOnDoubleClick:S,panOnDrag:!W&&V,defaultViewport:_,translateExtent:P,minZoom:A,maxZoom:L,zoomActivationKeyCode:g,preventScrolling:D,noWheelClassName:M,noPanClassName:N,onViewportChange:j,isControlledViewport:z,paneClickDistance:s,children:k.jsxs(WE,{onSelectionStart:f,onSelectionEnd:p,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:r,onPaneMouseLeave:o,onPaneContextMenu:i,onPaneScroll:a,panOnDrag:V,isSelecting:!!K,selectionMode:d,selectionKeyPressed:W,selectionOnDrag:U,children:[e,F&&k.jsx(n$,{onSelectionContextMenu:O,noPanClassName:N,disableKeyboardA11y:I})]})})}Tg.displayName="FlowRenderer";const o$=T.memo(Tg),i$=e=>t=>e?kl(t.nodeLookup,{x:0,y:0,width:t.width,height:t.height},t.transform,!0).map(n=>n.id):Array.from(t.nodeLookup.keys());function a$(e){return Ae(T.useCallback(i$(e),[e]),it)}const s$=e=>e.updateNodeInternals;function l$(){const e=Ae(s$),[t]=T.useState(()=>typeof ResizeObserver>"u"?null:new ResizeObserver(n=>{const r=new Map;n.forEach(o=>{const i=o.target.getAttribute("data-id");r.set(i,{id:i,nodeElement:o.target,force:!0})}),e(r)}));return T.useEffect(()=>()=>{t==null||t.disconnect()},[t]),t}function c$({node:e,nodeType:t,hasDimensions:n,resizeObserver:r}){const o=nt(),i=T.useRef(null),a=T.useRef(null),s=T.useRef(e.sourcePosition),l=T.useRef(e.targetPosition),c=T.useRef(t),u=n&&!!e.internals.handleBounds;return T.useEffect(()=>{i.current&&!e.hidden&&(!u||a.current!==i.current)&&(a.current&&(r==null||r.unobserve(a.current)),r==null||r.observe(i.current),a.current=i.current)},[u,e.hidden]),T.useEffect(()=>()=>{a.current&&(r==null||r.unobserve(a.current),a.current=null)},[]),T.useEffect(()=>{if(i.current){const d=c.current!==t,f=s.current!==e.sourcePosition,p=l.current!==e.targetPosition;(d||f||p)&&(c.current=t,s.current=e.sourcePosition,l.current=e.targetPosition,o.getState().updateNodeInternals(new Map([[e.id,{id:e.id,nodeElement:i.current,force:!0}]])))}},[e.id,t,e.sourcePosition,e.targetPosition]),i}function u$({id:e,onClick:t,onMouseEnter:n,onMouseMove:r,onMouseLeave:o,onContextMenu:i,onDoubleClick:a,nodesDraggable:s,elementsSelectable:l,nodesConnectable:c,nodesFocusable:u,resizeObserver:d,noDragClassName:f,noPanClassName:p,disableKeyboardA11y:v,rfId:m,nodeTypes:g,nodeClickDistance:y,onError:x}){const{node:b,internals:C,isParent:w}=Ae(G=>{const Z=G.nodeLookup.get(e),J=G.parentLookup.has(e);return{node:Z,internals:Z.internals,isParent:J}},it);let $=b.type||"default",S=(g==null?void 0:g[$])||Ng[$];S===void 0&&(x==null||x("003",Gt.error003($)),$="default",S=Ng.default);const E=!!(b.draggable||s&&typeof b.draggable>"u"),_=!!(b.selectable||l&&typeof b.selectable>"u"),P=!!(b.connectable||c&&typeof b.connectable>"u"),A=!!(b.focusable||u&&typeof b.focusable>"u"),L=nt(),D=vp(b),O=c$({node:b,nodeType:$,hasDimensions:D,resizeObserver:d}),M=$g({nodeRef:O,disabled:b.hidden||!E,noDragClassName:f,handleSelector:b.dragHandle,nodeId:e,isSelectable:_,nodeClickDistance:y}),N=Og();if(b.hidden)return null;const I=Kn(b),j=e$(b),z=_||E||t||n||r||o,F=n?G=>n(G,{...C.userNode}):void 0,R=r?G=>r(G,{...C.userNode}):void 0,W=o?G=>o(G,{...C.userNode}):void 0,H=i?G=>i(G,{...C.userNode}):void 0,V=a?G=>a(G,{...C.userNode}):void 0,B=G=>{const{selectNodesOnDrag:Z,nodeDragThreshold:J}=L.getState();_&&(!Z||!E||J>0)&&sc({id:e,store:L,nodeRef:O}),t&&t(G,{...C.userNode})},U=G=>{if(!(wp(G.nativeEvent)||v)){if(op.includes(G.key)&&_){const Z=G.key==="Escape";sc({id:e,store:L,unselect:Z,nodeRef:O})}else if(E&&b.selected&&Object.prototype.hasOwnProperty.call(Ua,G.key)){G.preventDefault();const{ariaLabelConfig:Z}=L.getState();L.setState({ariaLiveMessage:Z["node.a11yDescription.ariaLiveMessage"]({direction:G.key.replace("Arrow","").toLowerCase(),x:~~C.positionAbsolute.x,y:~~C.positionAbsolute.y})}),N({direction:Ua[G.key],factor:G.shiftKey?4:1})}}},K=()=>{var Y;if(v||!((Y=O.current)!=null&&Y.matches(":focus-visible")))return;const{transform:G,width:Z,height:J,autoPanOnNodeFocus:ee,setCenter:q}=L.getState();if(!ee)return;kl(new Map([[e,b]]),{x:0,y:0,width:Z,height:J},G,!0).length>0||q(b.position.x+I.width/2,b.position.y+I.height/2,{zoom:G[2]})};return k.jsx("div",{className:mt(["react-flow__node",`react-flow__node-${$}`,{[p]:E},b.className,{selected:b.selected,selectable:_,parent:w,draggable:E,dragging:M}]),ref:O,style:{zIndex:C.z,transform:`translate(${C.positionAbsolute.x}px,${C.positionAbsolute.y}px)`,pointerEvents:z?"all":"none",visibility:D?"visible":"hidden",...b.style,...j},"data-id":e,"data-testid":`rf__node-${e}`,onMouseEnter:F,onMouseMove:R,onMouseLeave:W,onContextMenu:H,onClick:B,onDoubleClick:V,onKeyDown:A?U:void 0,tabIndex:A?0:void 0,onFocus:A?K:void 0,role:b.ariaRole??(A?"group":void 0),"aria-roledescription":"node","aria-describedby":v?void 0:`${ag}-${m}`,"aria-label":b.ariaLabel,...b.domAttributes,children:k.jsx(UE,{value:e,children:k.jsx(S,{id:e,data:b.data,type:$,positionAbsoluteX:C.positionAbsolute.x,positionAbsoluteY:C.positionAbsolute.y,selected:b.selected??!1,selectable:_,draggable:E,deletable:b.deletable??!0,isConnectable:P,sourcePosition:b.sourcePosition,targetPosition:b.targetPosition,dragging:M,dragHandle:b.dragHandle,zIndex:C.z,parentId:b.parentId,...I})})})}const d$=e=>({nodesDraggable:e.nodesDraggable,nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,onError:e.onError});function Ig(e){const{nodesDraggable:t,nodesConnectable:n,nodesFocusable:r,elementsSelectable:o,onError:i}=Ae(d$,it),a=a$(e.onlyRenderVisibleElements),s=l$();return k.jsx("div",{className:"react-flow__nodes",style:qa,children:a.map(l=>k.jsx(u$,{id:l,nodeTypes:e.nodeTypes,nodeExtent:e.nodeExtent,onClick:e.onNodeClick,onMouseEnter:e.onNodeMouseEnter,onMouseMove:e.onNodeMouseMove,onMouseLeave:e.onNodeMouseLeave,onContextMenu:e.onNodeContextMenu,onDoubleClick:e.onNodeDoubleClick,noDragClassName:e.noDragClassName,noPanClassName:e.noPanClassName,rfId:e.rfId,disableKeyboardA11y:e.disableKeyboardA11y,resizeObserver:s,nodesDraggable:t,nodesConnectable:n,nodesFocusable:r,elementsSelectable:o,nodeClickDistance:e.nodeClickDistance,onError:i},l))})}Ig.displayName="NodeRenderer";const f$=T.memo(Ig);function p$(e){return Ae(T.useCallback(n=>{if(!e)return n.edges.map(o=>o.id);const r=[];if(n.width&&n.height)for(const o of n.edges){const i=n.nodeLookup.get(o.source),a=n.nodeLookup.get(o.target);i&&a&&gS({sourceNode:i,targetNode:a,width:n.width,height:n.height,transform:n.transform})&&r.push(o.id)}return r},[e]),it)}const g$=({color:e="none",strokeWidth:t=1})=>k.jsx("polyline",{style:{stroke:e,strokeWidth:t},strokeLinecap:"round",strokeLinejoin:"round",fill:"none",points:"-5,-4 0,0 -5,4"}),h$=({color:e="none",strokeWidth:t=1})=>k.jsx("polyline",{style:{stroke:e,fill:e,strokeWidth:t},strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"}),Mg={[Pa.Arrow]:g$,[Pa.ArrowClosed]:h$};function m$(e){const t=nt();return T.useMemo(()=>{var o,i;return Object.prototype.hasOwnProperty.call(Mg,e)?Mg[e]:((i=(o=t.getState()).onError)==null||i.call(o,"009",Gt.error009(e)),null)},[e])}const v$=({id:e,type:t,color:n,width:r=12.5,height:o=12.5,markerUnits:i="strokeWidth",strokeWidth:a,orient:s="auto-start-reverse"})=>{const l=m$(t);return l?k.jsx("marker",{className:"react-flow__arrowhead",id:e,markerWidth:`${r}`,markerHeight:`${o}`,viewBox:"-10 -10 20 20",markerUnits:i,orient:s,refX:"0",refY:"0",children:k.jsx(l,{color:n,strokeWidth:a})}):null},Ag=({defaultColor:e,rfId:t})=>{const n=Ae(i=>i.edges),r=Ae(i=>i.defaultEdgeOptions),o=T.useMemo(()=>wS(n,{id:t,defaultColor:e,defaultMarkerStart:r==null?void 0:r.markerStart,defaultMarkerEnd:r==null?void 0:r.markerEnd}),[n,r,t,e]);return o.length?k.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:k.jsx("defs",{children:o.map(i=>k.jsx(v$,{id:i.id,type:i.type,color:i.color,width:i.width,height:i.height,markerUnits:i.markerUnits,strokeWidth:i.strokeWidth,orient:i.orient},i.id))})}):null};Ag.displayName="MarkerDefinitions";var y$=T.memo(Ag);function Dg({x:e,y:t,label:n,labelStyle:r,labelShowBg:o=!0,labelBgStyle:i,labelBgPadding:a=[2,4],labelBgBorderRadius:s=2,children:l,className:c,...u}){const[d,f]=T.useState({x:1,y:0,width:0,height:0}),p=mt(["react-flow__edge-textwrapper",c]),v=T.useRef(null);return T.useEffect(()=>{if(v.current){const m=v.current.getBBox();f({x:m.x,y:m.y,width:m.width,height:m.height})}},[n]),n?k.jsxs("g",{transform:`translate(${e-d.width/2} ${t-d.height/2})`,className:p,visibility:d.width?"visible":"hidden",...u,children:[o&&k.jsx("rect",{width:d.width+2*a[0],x:-a[0],y:-a[1],height:d.height+2*a[1],className:"react-flow__edge-textbg",style:i,rx:s,ry:s}),k.jsx("text",{className:"react-flow__edge-text",y:d.height/2,dy:"0.3em",ref:v,style:r,children:n}),l]}):null}Dg.displayName="EdgeText";const b$=T.memo(Dg);function Ga({path:e,labelX:t,labelY:n,label:r,labelStyle:o,labelShowBg:i,labelBgStyle:a,labelBgPadding:s,labelBgBorderRadius:l,interactionWidth:c=20,...u}){return k.jsxs(k.Fragment,{children:[k.jsx("path",{...u,d:e,fill:"none",className:mt(["react-flow__edge-path",u.className])}),c&&k.jsx("path",{d:e,fill:"none",strokeOpacity:0,strokeWidth:c,className:"react-flow__edge-interaction"}),r&&gn(t)&&gn(n)?k.jsx(b$,{x:t,y:n,label:r,labelStyle:o,labelShowBg:i,labelBgStyle:a,labelBgPadding:s,labelBgBorderRadius:l}):null]})}function Fg({pos:e,x1:t,y1:n,x2:r,y2:o}){return e===be.Left||e===be.Right?[.5*(t+r),n]:[t,.5*(n+o)]}function Lg({sourceX:e,sourceY:t,sourcePosition:n=be.Bottom,targetX:r,targetY:o,targetPosition:i=be.Top}){const[a,s]=Fg({pos:n,x1:e,y1:t,x2:r,y2:o}),[l,c]=Fg({pos:i,x1:r,y1:o,x2:e,y2:t}),[u,d,f,p]=Ep({sourceX:e,sourceY:t,targetX:r,targetY:o,sourceControlX:a,sourceControlY:s,targetControlX:l,targetControlY:c});return[`M${e},${t} C${a},${s} ${l},${c} ${r},${o}`,u,d,f,p]}function jg(e){return T.memo(({id:t,sourceX:n,sourceY:r,targetX:o,targetY:i,sourcePosition:a,targetPosition:s,label:l,labelStyle:c,labelShowBg:u,labelBgStyle:d,labelBgPadding:f,labelBgBorderRadius:p,style:v,markerEnd:m,markerStart:g,interactionWidth:y})=>{const[x,b,C]=Lg({sourceX:n,sourceY:r,sourcePosition:a,targetX:o,targetY:i,targetPosition:s}),w=e.isInternal?void 0:t;return k.jsx(Ga,{id:w,path:x,labelX:b,labelY:C,label:l,labelStyle:c,labelShowBg:u,labelBgStyle:d,labelBgPadding:f,labelBgBorderRadius:p,style:v,markerEnd:m,markerStart:g,interactionWidth:y})})}const C$=jg({isInternal:!1}),zg=jg({isInternal:!0});C$.displayName="SimpleBezierEdge",zg.displayName="SimpleBezierEdgeInternal";function Rg(e){return T.memo(({id:t,sourceX:n,sourceY:r,targetX:o,targetY:i,label:a,labelStyle:s,labelShowBg:l,labelBgStyle:c,labelBgPadding:u,labelBgBorderRadius:d,style:f,sourcePosition:p=be.Bottom,targetPosition:v=be.Top,markerEnd:m,markerStart:g,pathOptions:y,interactionWidth:x})=>{const[b,C,w]=ql({sourceX:n,sourceY:r,sourcePosition:p,targetX:o,targetY:i,targetPosition:v,borderRadius:y==null?void 0:y.borderRadius,offset:y==null?void 0:y.offset}),$=e.isInternal?void 0:t;return k.jsx(Ga,{id:$,path:b,labelX:C,labelY:w,label:a,labelStyle:s,labelShowBg:l,labelBgStyle:c,labelBgPadding:u,labelBgBorderRadius:d,style:f,markerEnd:m,markerStart:g,interactionWidth:x})})}const Vg=Rg({isInternal:!1}),kg=Rg({isInternal:!0});Vg.displayName="SmoothStepEdge",kg.displayName="SmoothStepEdgeInternal";function Hg(e){return T.memo(({id:t,...n})=>{var o;const r=e.isInternal?void 0:t;return k.jsx(Vg,{...n,id:r,pathOptions:T.useMemo(()=>{var i;return{borderRadius:0,offset:(i=n.pathOptions)==null?void 0:i.offset}},[(o=n.pathOptions)==null?void 0:o.offset])})})}const w$=Hg({isInternal:!1}),Bg=Hg({isInternal:!0});w$.displayName="StepEdge",Bg.displayName="StepEdgeInternal";function Wg(e){return T.memo(({id:t,sourceX:n,sourceY:r,targetX:o,targetY:i,label:a,labelStyle:s,labelShowBg:l,labelBgStyle:c,labelBgPadding:u,labelBgBorderRadius:d,style:f,markerEnd:p,markerStart:v,interactionWidth:m})=>{const[g,y,x]=Pp({sourceX:n,sourceY:r,targetX:o,targetY:i}),b=e.isInternal?void 0:t;return k.jsx(Ga,{id:b,path:g,labelX:y,labelY:x,label:a,labelStyle:s,labelShowBg:l,labelBgStyle:c,labelBgPadding:u,labelBgBorderRadius:d,style:f,markerEnd:p,markerStart:v,interactionWidth:m})})}const x$=Wg({isInternal:!1}),qg=Wg({isInternal:!0});x$.displayName="StraightEdge",qg.displayName="StraightEdgeInternal";function Ug(e){return T.memo(({id:t,sourceX:n,sourceY:r,targetX:o,targetY:i,sourcePosition:a=be.Bottom,targetPosition:s=be.Top,label:l,labelStyle:c,labelShowBg:u,labelBgStyle:d,labelBgPadding:f,labelBgBorderRadius:p,style:v,markerEnd:m,markerStart:g,pathOptions:y,interactionWidth:x})=>{const[b,C,w]=Op({sourceX:n,sourceY:r,sourcePosition:a,targetX:o,targetY:i,targetPosition:s,curvature:y==null?void 0:y.curvature}),$=e.isInternal?void 0:t;return k.jsx(Ga,{id:$,path:b,labelX:C,labelY:w,label:l,labelStyle:c,labelShowBg:u,labelBgStyle:d,labelBgPadding:f,labelBgBorderRadius:p,style:v,markerEnd:m,markerStart:g,interactionWidth:x})})}const S$=Ug({isInternal:!1}),Gg=Ug({isInternal:!0});S$.displayName="BezierEdge",Gg.displayName="BezierEdgeInternal";const Xg={default:Gg,straight:qg,step:Bg,smoothstep:kg,simplebezier:zg},Yg={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},E$=(e,t,n)=>n===be.Left?e-t:n===be.Right?e+t:e,$$=(e,t,n)=>n===be.Top?e-t:n===be.Bottom?e+t:e,Kg="react-flow__edgeupdater";function Zg({position:e,centerX:t,centerY:n,radius:r=10,onMouseDown:o,onMouseEnter:i,onMouseOut:a,type:s}){return k.jsx("circle",{onMouseDown:o,onMouseEnter:i,onMouseOut:a,className:mt([Kg,`${Kg}-${s}`]),cx:E$(t,r,e),cy:$$(n,r,e),r,stroke:"transparent",fill:"transparent"})}function O$({isReconnectable:e,reconnectRadius:t,edge:n,sourceX:r,sourceY:o,targetX:i,targetY:a,sourcePosition:s,targetPosition:l,onReconnect:c,onReconnectStart:u,onReconnectEnd:d,setReconnecting:f,setUpdateHover:p}){const v=nt(),m=(C,w)=>{if(C.button!==0)return;const{autoPanOnConnect:$,domNode:S,isValidConnection:E,connectionMode:_,connectionRadius:P,lib:A,onConnectStart:L,onConnectEnd:D,cancelConnection:O,nodeLookup:M,rfId:N,panBy:I,updateConnection:j}=v.getState(),z=w.type==="target",F=(H,V)=>{f(!1),d==null||d(H,n,w.type,V)},R=H=>c==null?void 0:c(n,H),W=(H,V)=>{f(!0),u==null||u(C,n,w.type),L==null||L(H,V)};Jl.onPointerDown(C.nativeEvent,{autoPanOnConnect:$,connectionMode:_,connectionRadius:P,domNode:S,handleId:w.id,nodeId:w.nodeId,nodeLookup:M,isTarget:z,edgeUpdaterType:w.type,lib:A,flowId:N,cancelConnection:O,panBy:I,isValidConnection:E,onConnect:R,onConnectStart:W,onConnectEnd:D,onReconnectEnd:F,updateConnection:j,getTransform:()=>v.getState().transform,getFromHandle:()=>v.getState().connection.fromHandle,dragThreshold:v.getState().connectionDragThreshold})},g=C=>m(C,{nodeId:n.target,id:n.targetHandle??null,type:"target"}),y=C=>m(C,{nodeId:n.source,id:n.sourceHandle??null,type:"source"}),x=()=>p(!0),b=()=>p(!1);return k.jsxs(k.Fragment,{children:[(e===!0||e==="source")&&k.jsx(Zg,{position:s,centerX:r,centerY:o,radius:t,onMouseDown:g,onMouseEnter:x,onMouseOut:b,type:"source"}),(e===!0||e==="target")&&k.jsx(Zg,{position:l,centerX:i,centerY:a,radius:t,onMouseDown:y,onMouseEnter:x,onMouseOut:b,type:"target"})]})}function _$({id:e,edgesFocusable:t,edgesReconnectable:n,elementsSelectable:r,onClick:o,onDoubleClick:i,onContextMenu:a,onMouseEnter:s,onMouseMove:l,onMouseLeave:c,reconnectRadius:u,onReconnect:d,onReconnectStart:f,onReconnectEnd:p,rfId:v,edgeTypes:m,noPanClassName:g,onError:y,disableKeyboardA11y:x}){let b=Ae(q=>q.edgeLookup.get(e));const C=Ae(q=>q.defaultEdgeOptions);b=C?{...C,...b}:b;let w=b.type||"default",$=(m==null?void 0:m[w])||Xg[w];$===void 0&&(y==null||y("011",Gt.error011(w)),w="default",$=Xg.default);const S=!!(b.focusable||t&&typeof b.focusable>"u"),E=typeof d<"u"&&(b.reconnectable||n&&typeof b.reconnectable>"u"),_=!!(b.selectable||r&&typeof b.selectable>"u"),P=T.useRef(null),[A,L]=T.useState(!1),[D,O]=T.useState(!1),M=nt(),{zIndex:N,sourceX:I,sourceY:j,targetX:z,targetY:F,sourcePosition:R,targetPosition:W}=Ae(T.useCallback(q=>{const te=q.nodeLookup.get(b.source),Y=q.nodeLookup.get(b.target);if(!te||!Y)return{zIndex:b.zIndex,...Yg};const oe=CS({id:e,sourceNode:te,targetNode:Y,sourceHandle:b.sourceHandle||null,targetHandle:b.targetHandle||null,connectionMode:q.connectionMode,onError:y});return{zIndex:pS({selected:b.selected,zIndex:b.zIndex,sourceNode:te,targetNode:Y,elevateOnSelect:q.elevateEdgesOnSelect}),...oe||Yg}},[b.source,b.target,b.sourceHandle,b.targetHandle,b.selected,b.zIndex]),it),H=T.useMemo(()=>b.markerStart?`url('#${Ul(b.markerStart,v)}')`:void 0,[b.markerStart,v]),V=T.useMemo(()=>b.markerEnd?`url('#${Ul(b.markerEnd,v)}')`:void 0,[b.markerEnd,v]);if(b.hidden||I===null||j===null||z===null||F===null)return null;const B=q=>{var ne;const{addSelectedEdges:te,unselectNodesAndEdges:Y,multiSelectionActive:oe}=M.getState();_&&(M.setState({nodesSelectionActive:!1}),b.selected&&oe?(Y({nodes:[],edges:[b]}),(ne=P.current)==null||ne.blur()):te([e])),o&&o(q,b)},U=i?q=>{i(q,{...b})}:void 0,K=a?q=>{a(q,{...b})}:void 0,G=s?q=>{s(q,{...b})}:void 0,Z=l?q=>{l(q,{...b})}:void 0,J=c?q=>{c(q,{...b})}:void 0,ee=q=>{var te;if(!x&&op.includes(q.key)&&_){const{unselectNodesAndEdges:Y,addSelectedEdges:oe}=M.getState();q.key==="Escape"?((te=P.current)==null||te.blur(),Y({edges:[b]})):oe([e])}};return k.jsx("svg",{style:{zIndex:N},children:k.jsxs("g",{className:mt(["react-flow__edge",`react-flow__edge-${w}`,b.className,g,{selected:b.selected,animated:b.animated,inactive:!_&&!o,updating:A,selectable:_}]),onClick:B,onDoubleClick:U,onContextMenu:K,onMouseEnter:G,onMouseMove:Z,onMouseLeave:J,onKeyDown:S?ee:void 0,tabIndex:S?0:void 0,role:b.ariaRole??(S?"group":"img"),"aria-roledescription":"edge","data-id":e,"data-testid":`rf__edge-${e}`,"aria-label":b.ariaLabel===null?void 0:b.ariaLabel||`Edge from ${b.source} to ${b.target}`,"aria-describedby":S?`${sg}-${v}`:void 0,ref:P,...b.domAttributes,children:[!D&&k.jsx($,{id:e,source:b.source,target:b.target,type:b.type,selected:b.selected,animated:b.animated,selectable:_,deletable:b.deletable??!0,label:b.label,labelStyle:b.labelStyle,labelShowBg:b.labelShowBg,labelBgStyle:b.labelBgStyle,labelBgPadding:b.labelBgPadding,labelBgBorderRadius:b.labelBgBorderRadius,sourceX:I,sourceY:j,targetX:z,targetY:F,sourcePosition:R,targetPosition:W,data:b.data,style:b.style,sourceHandleId:b.sourceHandle,targetHandleId:b.targetHandle,markerStart:H,markerEnd:V,pathOptions:"pathOptions"in b?b.pathOptions:void 0,interactionWidth:b.interactionWidth}),E&&k.jsx(O$,{edge:b,isReconnectable:E,reconnectRadius:u,onReconnect:d,onReconnectStart:f,onReconnectEnd:p,sourceX:I,sourceY:j,targetX:z,targetY:F,sourcePosition:R,targetPosition:W,setUpdateHover:L,setReconnecting:O})]})})}const N$=e=>({edgesFocusable:e.edgesFocusable,edgesReconnectable:e.edgesReconnectable,elementsSelectable:e.elementsSelectable,connectionMode:e.connectionMode,onError:e.onError});function Qg({defaultMarkerColor:e,onlyRenderVisibleElements:t,rfId:n,edgeTypes:r,noPanClassName:o,onReconnect:i,onEdgeContextMenu:a,onEdgeMouseEnter:s,onEdgeMouseMove:l,onEdgeMouseLeave:c,onEdgeClick:u,reconnectRadius:d,onEdgeDoubleClick:f,onReconnectStart:p,onReconnectEnd:v,disableKeyboardA11y:m}){const{edgesFocusable:g,edgesReconnectable:y,elementsSelectable:x,onError:b}=Ae(N$,it),C=p$(t);return k.jsxs("div",{className:"react-flow__edges",children:[k.jsx(y$,{defaultColor:e,rfId:n}),C.map(w=>k.jsx(_$,{id:w,edgesFocusable:g,edgesReconnectable:y,elementsSelectable:x,noPanClassName:o,onReconnect:i,onContextMenu:a,onMouseEnter:s,onMouseMove:l,onMouseLeave:c,onClick:u,reconnectRadius:d,onDoubleClick:f,onReconnectStart:p,onReconnectEnd:v,rfId:n,onError:b,edgeTypes:r,disableKeyboardA11y:m},w))]})}Qg.displayName="EdgeRenderer";const P$=T.memo(Qg),T$=e=>`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`;function I$({children:e}){const t=Ae(T$);return k.jsx("div",{className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:t},children:e})}function M$(e){const t=Wa(),n=T.useRef(!1);T.useEffect(()=>{!n.current&&t.viewportInitialized&&e&&(setTimeout(()=>e(t),1),n.current=!0)},[e,t.viewportInitialized])}const A$=e=>{var t;return(t=e.panZoom)==null?void 0:t.syncViewport};function D$(e){const t=Ae(A$),n=nt();return T.useEffect(()=>{e&&(t==null||t(e),n.setState({transform:[e.x,e.y,e.zoom]}))},[e,t]),null}function F$(e){return e.connection.inProgress?{...e.connection,to:pi(e.connection.to,e.transform)}:{...e.connection}}function L$(e){return F$}function j$(e){const t=L$();return Ae(t,it)}const z$=e=>({nodesConnectable:e.nodesConnectable,isValid:e.connection.isValid,inProgress:e.connection.inProgress,width:e.width,height:e.height});function R$({containerStyle:e,style:t,type:n,component:r}){const{nodesConnectable:o,width:i,height:a,isValid:s,inProgress:l}=Ae(z$,it);return!(i&&o&&l)?null:k.jsx("svg",{style:e,width:i,height:a,className:"react-flow__connectionline react-flow__container",children:k.jsx("g",{className:mt(["react-flow__connection",lp(s)]),children:k.jsx(Jg,{style:t,type:n,CustomComponent:r,isValid:s})})})}const Jg=({style:e,type:t=mr.Bezier,CustomComponent:n,isValid:r})=>{const{inProgress:o,from:i,fromNode:a,fromHandle:s,fromPosition:l,to:c,toNode:u,toHandle:d,toPosition:f}=j$();if(!o)return;if(n)return k.jsx(n,{connectionLineType:t,connectionLineStyle:e,fromNode:a,fromHandle:s,fromX:i.x,fromY:i.y,toX:c.x,toY:c.y,fromPosition:l,toPosition:f,connectionStatus:lp(r),toNode:u,toHandle:d});let p="";const v={sourceX:i.x,sourceY:i.y,sourcePosition:l,targetX:c.x,targetY:c.y,targetPosition:f};switch(t){case mr.Bezier:[p]=Op(v);break;case mr.SimpleBezier:[p]=Lg(v);break;case mr.Step:[p]=ql({...v,borderRadius:0});break;case mr.SmoothStep:[p]=ql(v);break;default:[p]=Pp(v)}return k.jsx("path",{d:p,fill:"none",className:"react-flow__connection-path",style:e})};Jg.displayName="ConnectionLine";const V$={};function eh(e=V$){const t=T.useRef(e),n=nt();T.useEffect(()=>{var r,o;if(process.env.NODE_ENV==="development"){const i=new Set([...Object.keys(t.current),...Object.keys(e)]);for(const a of i)if(t.current[a]!==e[a]){(o=(r=n.getState()).onError)==null||o.call(r,"002",Gt.error002());break}t.current=e}},[e])}function k$(){const e=nt(),t=T.useRef(!1);T.useEffect(()=>{var n,r;if(process.env.NODE_ENV==="development"&&!t.current){const o=document.querySelector(".react-flow__pane");o&&window.getComputedStyle(o).zIndex!=="1"&&((r=(n=e.getState()).onError)==null||r.call(n,"013",Gt.error013("react"))),t.current=!0}},[])}function th({nodeTypes:e,edgeTypes:t,onInit:n,onNodeClick:r,onEdgeClick:o,onNodeDoubleClick:i,onEdgeDoubleClick:a,onNodeMouseEnter:s,onNodeMouseMove:l,onNodeMouseLeave:c,onNodeContextMenu:u,onSelectionContextMenu:d,onSelectionStart:f,onSelectionEnd:p,connectionLineType:v,connectionLineStyle:m,connectionLineComponent:g,connectionLineContainerStyle:y,selectionKeyCode:x,selectionOnDrag:b,selectionMode:C,multiSelectionKeyCode:w,panActivationKeyCode:$,zoomActivationKeyCode:S,deleteKeyCode:E,onlyRenderVisibleElements:_,elementsSelectable:P,defaultViewport:A,translateExtent:L,minZoom:D,maxZoom:O,preventScrolling:M,defaultMarkerColor:N,zoomOnScroll:I,zoomOnPinch:j,panOnScroll:z,panOnScrollSpeed:F,panOnScrollMode:R,zoomOnDoubleClick:W,panOnDrag:H,onPaneClick:V,onPaneMouseEnter:B,onPaneMouseMove:U,onPaneMouseLeave:K,onPaneScroll:G,onPaneContextMenu:Z,paneClickDistance:J,nodeClickDistance:ee,onEdgeContextMenu:q,onEdgeMouseEnter:te,onEdgeMouseMove:Y,onEdgeMouseLeave:oe,reconnectRadius:ne,onReconnect:ce,onReconnectStart:ve,onReconnectEnd:pe,noDragClassName:_e,noWheelClassName:xe,noPanClassName:Oe,disableKeyboardA11y:he,nodeExtent:ue,rfId:Ee,viewport:Ne,onViewportChange:Ue}){return eh(e),eh(t),k$(),M$(n),D$(Ne),k.jsx(o$,{onPaneClick:V,onPaneMouseEnter:B,onPaneMouseMove:U,onPaneMouseLeave:K,onPaneContextMenu:Z,onPaneScroll:G,paneClickDistance:J,deleteKeyCode:E,selectionKeyCode:x,selectionOnDrag:b,selectionMode:C,onSelectionStart:f,onSelectionEnd:p,multiSelectionKeyCode:w,panActivationKeyCode:$,zoomActivationKeyCode:S,elementsSelectable:P,zoomOnScroll:I,zoomOnPinch:j,zoomOnDoubleClick:W,panOnScroll:z,panOnScrollSpeed:F,panOnScrollMode:R,panOnDrag:H,defaultViewport:A,translateExtent:L,minZoom:D,maxZoom:O,onSelectionContextMenu:d,preventScrolling:M,noDragClassName:_e,noWheelClassName:xe,noPanClassName:Oe,disableKeyboardA11y:he,onViewportChange:Ue,isControlledViewport:!!Ne,children:k.jsxs(I$,{children:[k.jsx(P$,{edgeTypes:t,onEdgeClick:o,onEdgeDoubleClick:a,onReconnect:ce,onReconnectStart:ve,onReconnectEnd:pe,onlyRenderVisibleElements:_,onEdgeContextMenu:q,onEdgeMouseEnter:te,onEdgeMouseMove:Y,onEdgeMouseLeave:oe,reconnectRadius:ne,defaultMarkerColor:N,noPanClassName:Oe,disableKeyboardA11y:he,rfId:Ee}),k.jsx(R$,{style:m,type:v,component:g,containerStyle:y}),k.jsx("div",{className:"react-flow__edgelabel-renderer"}),k.jsx(f$,{nodeTypes:e,onNodeClick:r,onNodeDoubleClick:i,onNodeMouseEnter:s,onNodeMouseMove:l,onNodeMouseLeave:c,onNodeContextMenu:u,nodeClickDistance:ee,onlyRenderVisibleElements:_,noPanClassName:Oe,noDragClassName:_e,disableKeyboardA11y:he,nodeExtent:ue,rfId:Ee}),k.jsx("div",{className:"react-flow__viewport-portal"})]})})}th.displayName="GraphView";const H$=T.memo(th),nh=({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,width:o,height:i,fitView:a,fitViewOptions:s,minZoom:l=.5,maxZoom:c=2,nodeOrigin:u,nodeExtent:d}={})=>{const f=new Map,p=new Map,v=new Map,m=new Map,g=r??t??[],y=n??e??[],x=u??[0,0],b=d??li;jp(v,m,g);const C=Yl(y,f,p,{nodeOrigin:x,nodeExtent:b,elevateNodesOnSelect:!1});let w=[0,0,1];if(a&&o&&i){const $=di(f,{filter:P=>!!((P.width||P.initialWidth)&&(P.height||P.initialHeight))}),{x:S,y:E,zoom:_}=Bl($,o,i,l,c,(s==null?void 0:s.padding)??.1);w=[S,E,_]}return{rfId:"1",width:0,height:0,transform:w,nodes:y,nodesInitialized:C,nodeLookup:f,parentLookup:p,edges:g,edgeLookup:m,connectionLookup:v,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:n!==void 0,hasDefaultEdges:r!==void 0,panZoom:null,minZoom:l,maxZoom:c,translateExtent:li,nodeExtent:b,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:ao.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:x,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!1,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:a??!1,fitViewOptions:s,fitViewResolver:null,connection:{...ap},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:mp,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:ip}},B$=({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,width:o,height:i,fitView:a,fitViewOptions:s,minZoom:l,maxZoom:c,nodeOrigin:u,nodeExtent:d})=>uE((f,p)=>{async function v(){const{nodeLookup:m,panZoom:g,fitViewOptions:y,fitViewResolver:x,width:b,height:C,minZoom:w,maxZoom:$}=p();g&&(await aS({nodes:m,width:b,height:C,panZoom:g,minZoom:w,maxZoom:$},y),x==null||x.resolve(!0),f({fitViewResolver:null}))}return{...nh({nodes:e,edges:t,width:o,height:i,fitView:a,fitViewOptions:s,minZoom:l,maxZoom:c,nodeOrigin:u,nodeExtent:d,defaultNodes:n,defaultEdges:r}),setNodes:m=>{const{nodeLookup:g,parentLookup:y,nodeOrigin:x,elevateNodesOnSelect:b,fitViewQueued:C}=p(),w=Yl(m,g,y,{nodeOrigin:x,nodeExtent:d,elevateNodesOnSelect:b,checkEquality:!0});C&&w?(v(),f({nodes:m,nodesInitialized:w,fitViewQueued:!1,fitViewOptions:void 0})):f({nodes:m,nodesInitialized:w})},setEdges:m=>{const{connectionLookup:g,edgeLookup:y}=p();jp(g,y,m),f({edges:m})},setDefaultNodesAndEdges:(m,g)=>{if(m){const{setNodes:y}=p();y(m),f({hasDefaultNodes:!0})}if(g){const{setEdges:y}=p();y(g),f({hasDefaultEdges:!0})}},updateNodeInternals:m=>{const{triggerNodeChanges:g,nodeLookup:y,parentLookup:x,domNode:b,nodeOrigin:C,nodeExtent:w,debug:$,fitViewQueued:S}=p(),{changes:E,updatedInternals:_}=OS(m,y,x,b,C,w);_&&(SS(y,x,{nodeOrigin:C,nodeExtent:w}),S?(v(),f({fitViewQueued:!1,fitViewOptions:void 0})):f({}),(E==null?void 0:E.length)>0&&($&&console.log("React Flow: trigger node changes",E),g==null||g(E)))},updateNodePositions:(m,g=!1)=>{const y=[],x=[],{nodeLookup:b,triggerNodeChanges:C}=p();for(const[w,$]of m){const S=b.get(w),E=!!(S!=null&&S.expandParent&&(S!=null&&S.parentId)&&($!=null&&$.position)),_={id:w,type:"position",position:E?{x:Math.max(0,$.position.x),y:Math.max(0,$.position.y)}:$.position,dragging:g};E&&S.parentId&&y.push({id:w,parentId:S.parentId,rect:{...$.internals.positionAbsolute,width:$.measured.width??0,height:$.measured.height??0}}),x.push(_)}if(y.length>0){const{parentLookup:w,nodeOrigin:$}=p(),S=Zl(y,b,w,$);x.push(...S)}C(x)},triggerNodeChanges:m=>{const{onNodesChange:g,setNodes:y,nodes:x,hasDefaultNodes:b,debug:C}=p();if(m!=null&&m.length){if(b){const w=mg(m,x);y(w)}C&&console.log("React Flow: trigger node changes",m),g==null||g(m)}},triggerEdgeChanges:m=>{const{onEdgesChange:g,setEdges:y,edges:x,hasDefaultEdges:b,debug:C}=p();if(m!=null&&m.length){if(b){const w=vg(m,x);y(w)}C&&console.log("React Flow: trigger edge changes",m),g==null||g(m)}},addSelectedNodes:m=>{const{multiSelectionActive:g,edgeLookup:y,nodeLookup:x,triggerNodeChanges:b,triggerEdgeChanges:C}=p();if(g){const w=m.map($=>Rr($,!0));b(w);return}b(go(x,new Set([...m]),!0)),C(go(y))},addSelectedEdges:m=>{const{multiSelectionActive:g,edgeLookup:y,nodeLookup:x,triggerNodeChanges:b,triggerEdgeChanges:C}=p();if(g){const w=m.map($=>Rr($,!0));C(w);return}C(go(y,new Set([...m]))),b(go(x,new Set,!0))},unselectNodesAndEdges:({nodes:m,edges:g}={})=>{const{edges:y,nodes:x,nodeLookup:b,triggerNodeChanges:C,triggerEdgeChanges:w}=p(),$=m||x,S=g||y,E=$.map(P=>{const A=b.get(P.id);return A&&(A.selected=!1),Rr(P.id,!1)}),_=S.map(P=>Rr(P.id,!1));C(E),w(_)},setMinZoom:m=>{const{panZoom:g,maxZoom:y}=p();g==null||g.setScaleExtent([m,y]),f({minZoom:m})},setMaxZoom:m=>{const{panZoom:g,minZoom:y}=p();g==null||g.setScaleExtent([y,m]),f({maxZoom:m})},setTranslateExtent:m=>{var g;(g=p().panZoom)==null||g.setTranslateExtent(m),f({translateExtent:m})},setPaneClickDistance:m=>{var g;(g=p().panZoom)==null||g.setClickDistance(m)},resetSelectedElements:()=>{const{edges:m,nodes:g,triggerNodeChanges:y,triggerEdgeChanges:x,elementsSelectable:b}=p();if(!b)return;const C=g.reduce(($,S)=>S.selected?[...$,Rr(S.id,!1)]:$,[]),w=m.reduce(($,S)=>S.selected?[...$,Rr(S.id,!1)]:$,[]);y(C),x(w)},setNodeExtent:m=>{const{nodes:g,nodeLookup:y,parentLookup:x,nodeOrigin:b,elevateNodesOnSelect:C,nodeExtent:w}=p();m[0][0]===w[0][0]&&m[0][1]===w[0][1]&&m[1][0]===w[1][0]&&m[1][1]===w[1][1]||(Yl(g,y,x,{nodeOrigin:b,nodeExtent:m,elevateNodesOnSelect:C,checkEquality:!1}),f({nodeExtent:m}))},panBy:m=>{const{transform:g,width:y,height:x,panZoom:b,translateExtent:C}=p();return _S({delta:m,panZoom:b,transform:g,translateExtent:C,width:y,height:x})},setCenter:async(m,g,y)=>{const{width:x,height:b,maxZoom:C,panZoom:w}=p();if(!w)return Promise.resolve(!1);const $=typeof(y==null?void 0:y.zoom)<"u"?y.zoom:C;return await w.setViewport({x:x/2-m*$,y:b/2-g*$,zoom:$},{duration:y==null?void 0:y.duration,ease:y==null?void 0:y.ease,interpolate:y==null?void 0:y.interpolate}),Promise.resolve(!0)},cancelConnection:()=>{f({connection:{...ap}})},updateConnection:m=>{f({connection:m})},reset:()=>f({...nh()})}},Object.is);function rh({initialNodes:e,initialEdges:t,defaultNodes:n,defaultEdges:r,initialWidth:o,initialHeight:i,initialMinZoom:a,initialMaxZoom:s,initialFitViewOptions:l,fitView:c,nodeOrigin:u,nodeExtent:d,children:f}){const[p]=T.useState(()=>B$({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,width:o,height:i,fitView:c,minZoom:a,maxZoom:s,fitViewOptions:l,nodeOrigin:u,nodeExtent:d}));return k.jsx(dE,{value:p,children:k.jsx(AE,{children:f})})}function W$({children:e,nodes:t,edges:n,defaultNodes:r,defaultEdges:o,width:i,height:a,fitView:s,fitViewOptions:l,minZoom:c,maxZoom:u,nodeOrigin:d,nodeExtent:f}){return T.useContext(ka)?k.jsx(k.Fragment,{children:e}):k.jsx(rh,{initialNodes:t,initialEdges:n,defaultNodes:r,defaultEdges:o,initialWidth:i,initialHeight:a,fitView:s,initialFitViewOptions:l,initialMinZoom:c,initialMaxZoom:u,nodeOrigin:d,nodeExtent:f,children:e})}const q$={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function U$({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,className:o,nodeTypes:i,edgeTypes:a,onNodeClick:s,onEdgeClick:l,onInit:c,onMove:u,onMoveStart:d,onMoveEnd:f,onConnect:p,onConnectStart:v,onConnectEnd:m,onClickConnectStart:g,onClickConnectEnd:y,onNodeMouseEnter:x,onNodeMouseMove:b,onNodeMouseLeave:C,onNodeContextMenu:w,onNodeDoubleClick:$,onNodeDragStart:S,onNodeDrag:E,onNodeDragStop:_,onNodesDelete:P,onEdgesDelete:A,onDelete:L,onSelectionChange:D,onSelectionDragStart:O,onSelectionDrag:M,onSelectionDragStop:N,onSelectionContextMenu:I,onSelectionStart:j,onSelectionEnd:z,onBeforeDelete:F,connectionMode:R,connectionLineType:W=mr.Bezier,connectionLineStyle:H,connectionLineComponent:V,connectionLineContainerStyle:B,deleteKeyCode:U="Backspace",selectionKeyCode:K="Shift",selectionOnDrag:G=!1,selectionMode:Z=ci.Full,panActivationKeyCode:J="Space",multiSelectionKeyCode:ee=Fa()?"Meta":"Control",zoomActivationKeyCode:q=Fa()?"Meta":"Control",snapToGrid:te,snapGrid:Y,onlyRenderVisibleElements:oe=!1,selectNodesOnDrag:ne,nodesDraggable:ce,autoPanOnNodeFocus:ve,nodesConnectable:pe,nodesFocusable:_e,nodeOrigin:xe=lg,edgesFocusable:Oe,edgesReconnectable:he,elementsSelectable:ue=!0,defaultViewport:Ee=EE,minZoom:Ne=.5,maxZoom:Ue=2,translateExtent:De=li,preventScrolling:Le=!0,nodeExtent:Ge,defaultMarkerColor:Te="#b1b1b7",zoomOnScroll:Ie=!0,zoomOnPinch:Pe=!0,panOnScroll:le=!1,panOnScrollSpeed:me=.5,panOnScrollMode:ie=jr.Free,zoomOnDoubleClick:se=!0,panOnDrag:Se=!0,onPaneClick:Qe,onPaneMouseEnter:Ot,onPaneMouseMove:jt,onPaneMouseLeave:zt,onPaneScroll:sr,onPaneContextMenu:Bt,paneClickDistance:lt=0,nodeClickDistance:ct=0,children:xn,onReconnect:xt,onReconnectStart:Fe,onReconnectEnd:Re,onEdgeContextMenu:It,onEdgeDoubleClick:Sn,onEdgeMouseEnter:Ve,onEdgeMouseMove:lr,onEdgeMouseLeave:cr,reconnectRadius:Xe=10,onNodesChange:Je,onEdgesChange:Mt,noDragClassName:_t="nodrag",noWheelClassName:Jt="nowheel",noPanClassName:Rn="nopan",fitView:Vn,fitViewOptions:Rt,connectOnClick:en,attributionPosition:En,proOptions:tn,defaultEdgeOptions:At,elevateNodesOnSelect:Dt,elevateEdgesOnSelect:ur,disableKeyboardA11y:Zr=!1,autoPanOnConnect:ea,autoPanOnNodeDrag:dr,autoPanSpeed:qo,connectionRadius:ta,isValidConnection:Uo,onError:Go,style:fr,id:kn,nodeDragThreshold:Qr,connectionDragThreshold:pr,viewport:Jr,onViewportChange:Ir,width:nn,height:Hn,colorMode:Bn="light",debug:Wn,onScroll:qn,ariaLabelConfig:na,...Xo},Yo){const Mr=kn||"1",ra=_E(Bn),oa=T.useCallback(eo=>{eo.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),qn==null||qn(eo)},[qn]);return k.jsx("div",{"data-testid":"rf__wrapper",...Xo,onScroll:oa,style:{...fr,...q$},ref:Yo,className:mt(["react-flow",o,ra]),id:kn,role:"application",children:k.jsxs(W$,{nodes:e,edges:t,width:nn,height:Hn,fitView:Vn,fitViewOptions:Rt,minZoom:Ne,maxZoom:Ue,nodeOrigin:xe,nodeExtent:Ge,children:[k.jsx(H$,{onInit:c,onNodeClick:s,onEdgeClick:l,onNodeMouseEnter:x,onNodeMouseMove:b,onNodeMouseLeave:C,onNodeContextMenu:w,onNodeDoubleClick:$,nodeTypes:i,edgeTypes:a,connectionLineType:W,connectionLineStyle:H,connectionLineComponent:V,connectionLineContainerStyle:B,selectionKeyCode:K,selectionOnDrag:G,selectionMode:Z,deleteKeyCode:U,multiSelectionKeyCode:ee,panActivationKeyCode:J,zoomActivationKeyCode:q,onlyRenderVisibleElements:oe,defaultViewport:Ee,translateExtent:De,minZoom:Ne,maxZoom:Ue,preventScrolling:Le,zoomOnScroll:Ie,zoomOnPinch:Pe,zoomOnDoubleClick:se,panOnScroll:le,panOnScrollSpeed:me,panOnScrollMode:ie,panOnDrag:Se,onPaneClick:Qe,onPaneMouseEnter:Ot,onPaneMouseMove:jt,onPaneMouseLeave:zt,onPaneScroll:sr,onPaneContextMenu:Bt,paneClickDistance:lt,nodeClickDistance:ct,onSelectionContextMenu:I,onSelectionStart:j,onSelectionEnd:z,onReconnect:xt,onReconnectStart:Fe,onReconnectEnd:Re,onEdgeContextMenu:It,onEdgeDoubleClick:Sn,onEdgeMouseEnter:Ve,onEdgeMouseMove:lr,onEdgeMouseLeave:cr,reconnectRadius:Xe,defaultMarkerColor:Te,noDragClassName:_t,noWheelClassName:Jt,noPanClassName:Rn,rfId:Mr,disableKeyboardA11y:Zr,nodeExtent:Ge,viewport:Jr,onViewportChange:Ir}),k.jsx(OE,{nodes:e,edges:t,defaultNodes:n,defaultEdges:r,onConnect:p,onConnectStart:v,onConnectEnd:m,onClickConnectStart:g,onClickConnectEnd:y,nodesDraggable:ce,autoPanOnNodeFocus:ve,nodesConnectable:pe,nodesFocusable:_e,edgesFocusable:Oe,edgesReconnectable:he,elementsSelectable:ue,elevateNodesOnSelect:Dt,elevateEdgesOnSelect:ur,minZoom:Ne,maxZoom:Ue,nodeExtent:Ge,onNodesChange:Je,onEdgesChange:Mt,snapToGrid:te,snapGrid:Y,connectionMode:R,translateExtent:De,connectOnClick:en,defaultEdgeOptions:At,fitView:Vn,fitViewOptions:Rt,onNodesDelete:P,onEdgesDelete:A,onDelete:L,onNodeDragStart:S,onNodeDrag:E,onNodeDragStop:_,onSelectionDrag:M,onSelectionDragStart:O,onSelectionDragStop:N,onMove:u,onMoveStart:d,onMoveEnd:f,noPanClassName:Rn,nodeOrigin:xe,rfId:Mr,autoPanOnConnect:ea,autoPanOnNodeDrag:dr,autoPanSpeed:qo,onError:Go,connectionRadius:ta,isValidConnection:Uo,selectNodesOnDrag:ne,nodeDragThreshold:Qr,connectionDragThreshold:pr,onBeforeDelete:F,paneClickDistance:lt,debug:Wn,ariaLabelConfig:na}),k.jsx(SE,{onSelectionChange:D}),xn,k.jsx(yE,{proOptions:tn,position:En}),k.jsx(vE,{rfId:Mr,disableKeyboardA11y:Zr})]})})}var G$=wg(U$);function X$(e){const[t,n]=T.useState(e),r=T.useCallback(o=>n(i=>mg(o,i)),[]);return[t,n,r]}function Y$(e){const[t,n]=T.useState(e),r=T.useCallback(o=>n(i=>vg(o,i)),[]);return[t,n,r]}function K$({dimensions:e,lineWidth:t,variant:n,className:r}){return k.jsx("path",{strokeWidth:t,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`,className:mt(["react-flow__background-pattern",n,r])})}function Z$({radius:e,className:t}){return k.jsx("circle",{cx:e,cy:e,r:e,className:mt(["react-flow__background-pattern","dots",t])})}var br;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(br||(br={}));const Q$={[br.Dots]:1,[br.Lines]:1,[br.Cross]:6},J$=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function oh({id:e,variant:t=br.Dots,gap:n=20,size:r,lineWidth:o=1,offset:i=0,color:a,bgColor:s,style:l,className:c,patternClassName:u}){const d=T.useRef(null),{transform:f,patternId:p}=Ae(J$,it),v=r||Q$[t],m=t===br.Dots,g=t===br.Cross,y=Array.isArray(n)?n:[n,n],x=[y[0]*f[2]||1,y[1]*f[2]||1],b=v*f[2],C=Array.isArray(i)?i:[i,i],w=g?[b,b]:x,$=[C[0]*f[2]||1+w[0]/2,C[1]*f[2]||1+w[1]/2],S=`${p}${e||""}`;return k.jsxs("svg",{className:mt(["react-flow__background",c]),style:{...l,...qa,"--xy-background-color-props":s,"--xy-background-pattern-color-props":a},ref:d,"data-testid":"rf__background",children:[k.jsx("pattern",{id:S,x:f[0]%x[0],y:f[1]%x[1],width:x[0],height:x[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${$[0]},-${$[1]})`,children:m?k.jsx(Z$,{radius:b/2,className:u}):k.jsx(K$,{dimensions:w,lineWidth:o,variant:t,className:u})}),k.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${S})`})]})}oh.displayName="Background";const e2=T.memo(oh);function t2(){return k.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:k.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function n2(){return k.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:k.jsx("path",{d:"M0 0h32v4.2H0z"})})}function r2(){return k.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:k.jsx("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})})}function o2(){return k.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:k.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function i2(){return k.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:k.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}function Xa({children:e,className:t,...n}){return k.jsx("button",{type:"button",className:mt(["react-flow__controls-button",t]),...n,children:e})}const a2=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom,ariaLabelConfig:e.ariaLabelConfig});function ih({style:e,showZoom:t=!0,showFitView:n=!0,showInteractive:r=!0,fitViewOptions:o,onZoomIn:i,onZoomOut:a,onFitView:s,onInteractiveChange:l,className:c,children:u,position:d="bottom-left",orientation:f="vertical","aria-label":p}){const v=nt(),{isInteractive:m,minZoomReached:g,maxZoomReached:y,ariaLabelConfig:x}=Ae(a2,it),{zoomIn:b,zoomOut:C,fitView:w}=Wa(),$=()=>{b(),i==null||i()},S=()=>{C(),a==null||a()},E=()=>{w(o),s==null||s()},_=()=>{v.setState({nodesDraggable:!m,nodesConnectable:!m,elementsSelectable:!m}),l==null||l(!m)},P=f==="horizontal"?"horizontal":"vertical";return k.jsxs(Ha,{className:mt(["react-flow__controls",P,c]),position:d,style:e,"data-testid":"rf__controls","aria-label":p??x["controls.ariaLabel"],children:[t&&k.jsxs(k.Fragment,{children:[k.jsx(Xa,{onClick:$,className:"react-flow__controls-zoomin",title:x["controls.zoomIn.ariaLabel"],"aria-label":x["controls.zoomIn.ariaLabel"],disabled:y,children:k.jsx(t2,{})}),k.jsx(Xa,{onClick:S,className:"react-flow__controls-zoomout",title:x["controls.zoomOut.ariaLabel"],"aria-label":x["controls.zoomOut.ariaLabel"],disabled:g,children:k.jsx(n2,{})})]}),n&&k.jsx(Xa,{className:"react-flow__controls-fitview",onClick:E,title:x["controls.fitView.ariaLabel"],"aria-label":x["controls.fitView.ariaLabel"],children:k.jsx(r2,{})}),r&&k.jsx(Xa,{className:"react-flow__controls-interactive",onClick:_,title:x["controls.interactive.ariaLabel"],"aria-label":x["controls.interactive.ariaLabel"],children:m?k.jsx(i2,{}):k.jsx(o2,{})}),u]})}ih.displayName="Controls";const s2=T.memo(ih);function l2({id:e,x:t,y:n,width:r,height:o,style:i,color:a,strokeColor:s,strokeWidth:l,className:c,borderRadius:u,shapeRendering:d,selected:f,onClick:p}){const{background:v,backgroundColor:m}=i||{},g=a||v||m;return k.jsx("rect",{className:mt(["react-flow__minimap-node",{selected:f},c]),x:t,y:n,rx:u,ry:u,width:r,height:o,style:{fill:g,stroke:s,strokeWidth:l},shapeRendering:d,onClick:p?y=>p(y,e):void 0})}const c2=T.memo(l2),u2=e=>e.nodes.map(t=>t.id),cc=e=>e instanceof Function?e:()=>e;function d2({nodeStrokeColor:e,nodeColor:t,nodeClassName:n="",nodeBorderRadius:r=5,nodeStrokeWidth:o,nodeComponent:i=c2,onClick:a}){const s=Ae(u2,it),l=cc(t),c=cc(e),u=cc(n),d=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return k.jsx(k.Fragment,{children:s.map(f=>k.jsx(p2,{id:f,nodeColorFunc:l,nodeStrokeColorFunc:c,nodeClassNameFunc:u,nodeBorderRadius:r,nodeStrokeWidth:o,NodeComponent:i,onClick:a,shapeRendering:d},f))})}function f2({id:e,nodeColorFunc:t,nodeStrokeColorFunc:n,nodeClassNameFunc:r,nodeBorderRadius:o,nodeStrokeWidth:i,shapeRendering:a,NodeComponent:s,onClick:l}){const{node:c,x:u,y:d,width:f,height:p}=Ae(v=>{const{internals:m}=v.nodeLookup.get(e),g=m.userNode,{x:y,y:x}=m.positionAbsolute,{width:b,height:C}=Kn(g);return{node:g,x:y,y:x,width:b,height:C}},it);return!c||c.hidden||!vp(c)?null:k.jsx(s,{x:u,y:d,width:f,height:p,style:c.style,selected:!!c.selected,className:r(c),color:t(c),borderRadius:o,strokeColor:n(c),strokeWidth:i,shapeRendering:a,onClick:l,id:c.id})}const p2=T.memo(f2);var g2=T.memo(d2);const h2=200,m2=150,v2=e=>!e.hidden,y2=e=>{const t={x:-e.transform[0]/e.transform[2],y:-e.transform[1]/e.transform[2],width:e.width/e.transform[2],height:e.height/e.transform[2]};return{viewBB:t,boundingRect:e.nodeLookup.size>0?gp(di(e.nodeLookup,{filter:v2}),t):t,rfId:e.rfId,panZoom:e.panZoom,translateExtent:e.translateExtent,flowWidth:e.width,flowHeight:e.height,ariaLabelConfig:e.ariaLabelConfig}},b2="react-flow__minimap-desc";function ah({style:e,className:t,nodeStrokeColor:n,nodeColor:r,nodeClassName:o="",nodeBorderRadius:i=5,nodeStrokeWidth:a,nodeComponent:s,bgColor:l,maskColor:c,maskStrokeColor:u,maskStrokeWidth:d,position:f="bottom-right",onClick:p,onNodeClick:v,pannable:m=!1,zoomable:g=!1,ariaLabel:y,inversePan:x,zoomStep:b=10,offsetScale:C=5}){const w=nt(),$=T.useRef(null),{boundingRect:S,viewBB:E,rfId:_,panZoom:P,translateExtent:A,flowWidth:L,flowHeight:D,ariaLabelConfig:O}=Ae(y2,it),M=(e==null?void 0:e.width)??h2,N=(e==null?void 0:e.height)??m2,I=S.width/M,j=S.height/N,z=Math.max(I,j),F=z*M,R=z*N,W=C*z,H=S.x-(F-S.width)/2-W,V=S.y-(R-S.height)/2-W,B=F+W*2,U=R+W*2,K=`${b2}-${_}`,G=T.useRef(0),Z=T.useRef();G.current=z,T.useEffect(()=>{if($.current&&P)return Z.current=FS({domNode:$.current,panZoom:P,getTransform:()=>w.getState().transform,getViewScale:()=>G.current}),()=>{var te;(te=Z.current)==null||te.destroy()}},[P]),T.useEffect(()=>{var te;(te=Z.current)==null||te.update({translateExtent:A,width:L,height:D,inversePan:x,pannable:m,zoomStep:b,zoomable:g})},[m,g,x,b,A,L,D]);const J=p?te=>{var ne;const[Y,oe]=((ne=Z.current)==null?void 0:ne.pointer(te))||[0,0];p(te,{x:Y,y:oe})}:void 0,ee=v?T.useCallback((te,Y)=>{const oe=w.getState().nodeLookup.get(Y).internals.userNode;v(te,oe)},[]):void 0,q=y??O["minimap.ariaLabel"];return k.jsx(Ha,{position:f,style:{...e,"--xy-minimap-background-color-props":typeof l=="string"?l:void 0,"--xy-minimap-mask-background-color-props":typeof c=="string"?c:void 0,"--xy-minimap-mask-stroke-color-props":typeof u=="string"?u:void 0,"--xy-minimap-mask-stroke-width-props":typeof d=="number"?d*z:void 0,"--xy-minimap-node-background-color-props":typeof r=="string"?r:void 0,"--xy-minimap-node-stroke-color-props":typeof n=="string"?n:void 0,"--xy-minimap-node-stroke-width-props":typeof a=="number"?a:void 0},className:mt(["react-flow__minimap",t]),"data-testid":"rf__minimap",children:k.jsxs("svg",{width:M,height:N,viewBox:`${H} ${V} ${B} ${U}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":K,ref:$,onClick:J,children:[q&&k.jsx("title",{id:K,children:q}),k.jsx(g2,{onClick:ee,nodeColor:r,nodeStrokeColor:n,nodeBorderRadius:i,nodeClassName:o,nodeStrokeWidth:a,nodeComponent:s}),k.jsx("path",{className:"react-flow__minimap-mask",d:`M${H-W},${V-W}h${B+W*2}v${U+W*2}h${-B-W*2}z
|
|
39
|
-
M${
|
|
38
|
+
`)),f=d.reduce((g,p)=>g.concat(...p),[]);return[d,f]}return[[],[]]},[e]);return M.useEffect(()=>{const u=(t==null?void 0:t.target)??ly,d=(t==null?void 0:t.actInsideInputWithModifier)??!0;if(e!==null){const f=m=>{var y,x;if(o.current=m.ctrlKey||m.metaKey||m.shiftKey||m.altKey,(!o.current||o.current&&!d)&&v0(m))return!1;const C=uy(m.code,l);if(i.current.add(m[C]),cy(a,i.current,!1)){const $=((x=(y=m.composedPath)==null?void 0:y.call(m))==null?void 0:x[0])||m.target,w=($==null?void 0:$.nodeName)==="BUTTON"||($==null?void 0:$.nodeName)==="A";t.preventDefault!==!1&&(o.current||!w)&&m.preventDefault(),r(!0)}},g=m=>{const b=uy(m.code,l);cy(a,i.current,!0)?(r(!1),i.current.clear()):i.current.delete(m[b]),m.key==="Meta"&&i.current.clear(),o.current=!1},p=()=>{i.current.clear(),r(!1)};return u==null||u.addEventListener("keydown",f),u==null||u.addEventListener("keyup",g),window.addEventListener("blur",p),window.addEventListener("contextmenu",p),()=>{u==null||u.removeEventListener("keydown",f),u==null||u.removeEventListener("keyup",g),window.removeEventListener("blur",p),window.removeEventListener("contextmenu",p)}}},[e,r]),n}function cy(e,t,n){return e.filter(r=>n||r.length===t.size).some(r=>r.every(o=>t.has(o)))}function uy(e,t){return t.includes(e)?"code":"key"}const OT=()=>{const e=Bt();return M.useMemo(()=>({zoomIn:t=>{const{panZoom:n}=e.getState();return n?n.scaleBy(1.2,{duration:t==null?void 0:t.duration}):Promise.resolve(!1)},zoomOut:t=>{const{panZoom:n}=e.getState();return n?n.scaleBy(1/1.2,{duration:t==null?void 0:t.duration}):Promise.resolve(!1)},zoomTo:(t,n)=>{const{panZoom:r}=e.getState();return r?r.scaleTo(t,{duration:n==null?void 0:n.duration}):Promise.resolve(!1)},getZoom:()=>e.getState().transform[2],setViewport:async(t,n)=>{const{transform:[r,o,i],panZoom:a}=e.getState();return a?(await a.setViewport({x:t.x??r,y:t.y??o,zoom:t.zoom??i},n),Promise.resolve(!0)):Promise.resolve(!1)},getViewport:()=>{const[t,n,r]=e.getState().transform;return{x:t,y:n,zoom:r}},setCenter:async(t,n,r)=>e.getState().setCenter(t,n,r),fitBounds:async(t,n)=>{const{width:r,height:o,minZoom:i,maxZoom:a,panZoom:l}=e.getState(),u=Df(t,r,o,i,a,(n==null?void 0:n.padding)??.1);return l?(await l.setViewport(u,{duration:n==null?void 0:n.duration,ease:n==null?void 0:n.ease,interpolate:n==null?void 0:n.interpolate}),Promise.resolve(!0)):Promise.resolve(!1)},screenToFlowPosition:(t,n={})=>{const{transform:r,snapGrid:o,snapToGrid:i,domNode:a}=e.getState();if(!a)return t;const{x:l,y:u}=a.getBoundingClientRect(),d={x:t.x-l,y:t.y-u},f=n.snapGrid??o,g=n.snapToGrid??i;return Qs(d,r,g,f)},flowToScreenPosition:t=>{const{transform:n,domNode:r}=e.getState();if(!r)return t;const{x:o,y:i}=r.getBoundingClientRect(),a=Fc(t,n);return{x:a.x+o,y:a.y+i}}}),[])};function dy(e,t){const n=[],r=new Map,o=[];for(const i of e)if(i.type==="add"){o.push(i);continue}else if(i.type==="remove"||i.type==="replace")r.set(i.id,[i]);else{const a=r.get(i.id);a?a.push(i):r.set(i.id,[i])}for(const i of t){const a=r.get(i.id);if(!a){n.push(i);continue}if(a[0].type==="remove")continue;if(a[0].type==="replace"){n.push({...a[0].item});continue}const l={...i};for(const u of a)NT(u,l);n.push(l)}return o.length&&o.forEach(i=>{i.index!==void 0?n.splice(i.index,0,{...i.item}):n.push({...i.item})}),n}function NT(e,t){switch(e.type){case"select":{t.selected=e.selected;break}case"position":{typeof e.position<"u"&&(t.position=e.position),typeof e.dragging<"u"&&(t.dragging=e.dragging);break}case"dimensions":{typeof e.dimensions<"u"&&(t.measured??(t.measured={}),t.measured.width=e.dimensions.width,t.measured.height=e.dimensions.height,e.setAttributes&&((e.setAttributes===!0||e.setAttributes==="width")&&(t.width=e.dimensions.width),(e.setAttributes===!0||e.setAttributes==="height")&&(t.height=e.dimensions.height))),typeof e.resizing=="boolean"&&(t.resizing=e.resizing);break}}}function fy(e,t){return dy(e,t)}function gy(e,t){return dy(e,t)}function Qi(e,t){return{id:e,type:"select",selected:t}}function Fa(e,t=new Set,n=!1){const r=[];for(const[o,i]of e){const a=t.has(o);!(i.selected===void 0&&!a)&&i.selected!==a&&(n&&(i.selected=a),r.push(Qi(i.id,a)))}return r}function py({items:e=[],lookup:t}){var o;const n=[],r=new Map(e.map(i=>[i.id,i]));for(const[i,a]of e.entries()){const l=t.get(a.id),u=((o=l==null?void 0:l.internals)==null?void 0:o.userNode)??l;u!==void 0&&u!==a&&n.push({id:a.id,item:a,type:"replace"}),u===void 0&&n.push({item:a,type:"add",index:i})}for(const[i]of t)r.get(i)===void 0&&n.push({id:i,type:"remove"});return n}function hy(e){return{id:e.id,type:"remove"}}const my=e=>tI(e),PT=e=>i0(e);function vy(e){return M.forwardRef(e)}const IT=typeof window<"u"?M.useLayoutEffect:M.useEffect;function yy(e){const[t,n]=M.useState(BigInt(0)),[r]=M.useState(()=>TT(()=>n(o=>o+BigInt(1))));return IT(()=>{const o=r.get();o.length&&(e(o),r.reset())},[t]),r}function TT(e){let t=[];return{get:()=>t,reset:()=>{t=[]},push:n=>{t.push(n),e()}}}const by=M.createContext(null);function MT({children:e}){const t=Bt(),n=M.useCallback(l=>{const{nodes:u=[],setNodes:d,hasDefaultNodes:f,onNodesChange:g,nodeLookup:p,fitViewQueued:m}=t.getState();let b=u;for(const y of l)b=typeof y=="function"?y(b):y;const C=py({items:b,lookup:p});f&&d(b),C.length>0?g==null||g(C):m&&window.requestAnimationFrame(()=>{const{fitViewQueued:y,nodes:x,setNodes:$}=t.getState();y&&$(x)})},[]),r=yy(n),o=M.useCallback(l=>{const{edges:u=[],setEdges:d,hasDefaultEdges:f,onEdgesChange:g,edgeLookup:p}=t.getState();let m=u;for(const b of l)m=typeof b=="function"?b(m):b;f?d(m):g&&g(py({items:m,lookup:p}))},[]),i=yy(o),a=M.useMemo(()=>({nodeQueue:r,edgeQueue:i}),[]);return X.jsx(by.Provider,{value:a,children:e})}function AT(){const e=M.useContext(by);if(!e)throw new Error("useBatchContext must be used within a BatchProvider");return e}const DT=e=>!!e.panZoom;function bi(){const e=OT(),t=Bt(),n=AT(),r=gt(DT),o=M.useMemo(()=>{const i=g=>t.getState().nodeLookup.get(g),a=g=>{n.nodeQueue.push(g)},l=g=>{n.edgeQueue.push(g)},u=g=>{var x,$;const{nodeLookup:p,nodeOrigin:m}=t.getState(),b=my(g)?g:p.get(g.id),C=b.parentId?p0(b.position,b.measured,b.parentId,p,m):b.position,y={...b,position:C,width:((x=b.measured)==null?void 0:x.width)??b.width,height:(($=b.measured)==null?void 0:$.height)??b.height};return Ia(y)},d=(g,p,m={replace:!1})=>{a(b=>b.map(C=>{if(C.id===g){const y=typeof p=="function"?p(C):p;return m.replace&&my(y)?y:{...C,...y}}return C}))},f=(g,p,m={replace:!1})=>{l(b=>b.map(C=>{if(C.id===g){const y=typeof p=="function"?p(C):p;return m.replace&&PT(y)?y:{...C,...y}}return C}))};return{getNodes:()=>t.getState().nodes.map(g=>({...g})),getNode:g=>{var p;return(p=i(g))==null?void 0:p.internals.userNode},getInternalNode:i,getEdges:()=>{const{edges:g=[]}=t.getState();return g.map(p=>({...p}))},getEdge:g=>t.getState().edgeLookup.get(g),setNodes:a,setEdges:l,addNodes:g=>{const p=Array.isArray(g)?g:[g];n.nodeQueue.push(m=>[...m,...p])},addEdges:g=>{const p=Array.isArray(g)?g:[g];n.edgeQueue.push(m=>[...m,...p])},toObject:()=>{const{nodes:g=[],edges:p=[],transform:m}=t.getState(),[b,C,y]=m;return{nodes:g.map(x=>({...x})),edges:p.map(x=>({...x})),viewport:{x:b,y:C,zoom:y}}},deleteElements:async({nodes:g=[],edges:p=[]})=>{const{nodes:m,edges:b,onNodesDelete:C,onEdgesDelete:y,triggerNodeChanges:x,triggerEdgeChanges:$,onDelete:w,onBeforeDelete:E}=t.getState(),{nodes:S,edges:O}=await aI({nodesToRemove:g,edgesToRemove:p,nodes:m,edges:b,onBeforeDelete:E}),_=O.length>0,P=S.length>0;if(_){const T=O.map(hy);y==null||y(O),$(T)}if(P){const T=S.map(hy);C==null||C(S),x(T)}return(P||_)&&(w==null||w({nodes:S,edges:O})),{deletedNodes:S,deletedEdges:O}},getIntersectingNodes:(g,p=!0,m)=>{const b=d0(g),C=b?g:u(g),y=m!==void 0;return C?(m||t.getState().nodes).filter(x=>{const $=t.getState().nodeLookup.get(x.id);if($&&!b&&(x.id===g.id||!$.internals.positionAbsolute))return!1;const w=Ia(y?x:$),E=Zs(w,C);return p&&E>0||E>=C.width*C.height}):[]},isNodeIntersecting:(g,p,m=!0)=>{const C=d0(g)?g:u(g);if(!C)return!1;const y=Zs(C,p);return m&&y>0||y>=C.width*C.height},updateNode:d,updateNodeData:(g,p,m={replace:!1})=>{d(g,b=>{const C=typeof p=="function"?p(b):p;return m.replace?{...b,data:C}:{...b,data:{...b.data,...C}}},m)},updateEdge:f,updateEdgeData:(g,p,m={replace:!1})=>{f(g,b=>{const C=typeof p=="function"?p(b):p;return m.replace?{...b,data:C}:{...b,data:{...b.data,...C}}},m)},getNodesBounds:g=>{const{nodeLookup:p,nodeOrigin:m}=t.getState();return nI(g,{nodeLookup:p,nodeOrigin:m})},getHandleConnections:({type:g,id:p,nodeId:m})=>{var b;return Array.from(((b=t.getState().connectionLookup.get(`${m}-${g}${p?`-${p}`:""}`))==null?void 0:b.values())??[])},getNodeConnections:({type:g,handleId:p,nodeId:m})=>{var b;return Array.from(((b=t.getState().connectionLookup.get(`${m}${g?p?`-${g}-${p}`:`-${g}`:""}`))==null?void 0:b.values())??[])},fitView:async g=>{const p=t.getState().fitViewResolver??cI();return t.setState({fitViewQueued:!0,fitViewOptions:g,fitViewResolver:p}),n.nodeQueue.push(m=>[...m]),p.promise}}},[]);return M.useMemo(()=>({...o,...e,viewportInitialized:r}),[r])}const Cy=e=>e.selected,FT=typeof window<"u"?window:void 0;function LT({deleteKeyCode:e,multiSelectionKeyCode:t}){const n=Bt(),{deleteElements:r}=bi(),o=nl(e,{actInsideInputWithModifier:!1}),i=nl(t,{target:FT});M.useEffect(()=>{if(o){const{edges:a,nodes:l}=n.getState();r({nodes:l.filter(Cy),edges:a.filter(Cy)}),n.setState({nodesSelectionActive:!1})}},[o]),M.useEffect(()=>{n.setState({multiSelectionActive:i})},[i])}function RT(e){const t=Bt();M.useEffect(()=>{const n=()=>{var o,i;if(!e.current)return!1;const r=Ff(e.current);(r.height===0||r.width===0)&&((i=(o=t.getState()).onError)==null||i.call(o,"004",ar.error004())),t.setState({width:r.width||500,height:r.height||500})};if(e.current){n(),window.addEventListener("resize",n);const r=new ResizeObserver(()=>n());return r.observe(e.current),()=>{window.removeEventListener("resize",n),r&&e.current&&r.unobserve(e.current)}}},[])}const qc={position:"absolute",width:"100%",height:"100%",top:0,left:0},zT=e=>({userSelectionActive:e.userSelectionActive,lib:e.lib});function jT({onPaneContextMenu:e,zoomOnScroll:t=!0,zoomOnPinch:n=!0,panOnScroll:r=!1,panOnScrollSpeed:o=.5,panOnScrollMode:i=Ki.Free,zoomOnDoubleClick:a=!0,panOnDrag:l=!0,defaultViewport:u,translateExtent:d,minZoom:f,maxZoom:g,zoomActivationKeyCode:p,preventScrolling:m=!0,children:b,noWheelClassName:C,noPanClassName:y,onViewportChange:x,isControlledViewport:$,paneClickDistance:w}){const E=Bt(),S=M.useRef(null),{userSelectionActive:O,lib:_}=gt(zT,Gt),P=nl(p),T=M.useRef();RT(S);const L=M.useCallback(z=>{x==null||x({x:z[0],y:z[1],zoom:z[2]}),$||E.setState({transform:z})},[x,$]);return M.useEffect(()=>{if(S.current){T.current=kI({domNode:S.current,minZoom:f,maxZoom:g,translateExtent:d,viewport:u,paneClickDistance:w,onDraggingChange:I=>E.setState({paneDragging:I}),onPanZoomStart:(I,F)=>{const{onViewportChangeStart:A,onMoveStart:D}=E.getState();D==null||D(I,F),A==null||A(F)},onPanZoom:(I,F)=>{const{onViewportChange:A,onMove:D}=E.getState();D==null||D(I,F),A==null||A(F)},onPanZoomEnd:(I,F)=>{const{onViewportChangeEnd:A,onMoveEnd:D}=E.getState();D==null||D(I,F),A==null||A(F)}});const{x:z,y:B,zoom:j}=T.current.getViewport();return E.setState({panZoom:T.current,transform:[z,B,j],domNode:S.current.closest(".react-flow")}),()=>{var I;(I=T.current)==null||I.destroy()}}},[]),M.useEffect(()=>{var z;(z=T.current)==null||z.update({onPaneContextMenu:e,zoomOnScroll:t,zoomOnPinch:n,panOnScroll:r,panOnScrollSpeed:o,panOnScrollMode:i,zoomOnDoubleClick:a,panOnDrag:l,zoomActivationKeyPressed:P,preventScrolling:m,noPanClassName:y,userSelectionActive:O,noWheelClassName:C,lib:_,onTransformChange:L})},[e,t,n,r,o,i,a,l,P,m,y,O,C,_,L]),X.jsx("div",{className:"react-flow__renderer",ref:S,style:qc,children:b})}const BT=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function VT(){const{userSelectionActive:e,userSelectionRect:t}=gt(BT,Gt);return e&&t?X.jsx("div",{className:"react-flow__selection react-flow__container",style:{width:t.width,height:t.height,transform:`translate(${t.x}px, ${t.y}px)`}}):null}const Zf=(e,t)=>n=>{n.target===t.current&&(e==null||e(n))},HT=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,connectionInProgress:e.connection.inProgress,dragging:e.paneDragging});function kT({isSelecting:e,selectionKeyPressed:t,selectionMode:n=Xs.Full,panOnDrag:r,selectionOnDrag:o,onSelectionStart:i,onSelectionEnd:a,onPaneClick:l,onPaneContextMenu:u,onPaneScroll:d,onPaneMouseEnter:f,onPaneMouseMove:g,onPaneMouseLeave:p,children:m}){const b=Bt(),{userSelectionActive:C,elementsSelectable:y,dragging:x,connectionInProgress:$}=gt(HT,Gt),w=y&&(e||C),E=M.useRef(null),S=M.useRef(),O=M.useRef(new Set),_=M.useRef(new Set),P=M.useRef(!1),T=M.useRef(!1),L=D=>{if(P.current||$){P.current=!1;return}l==null||l(D),b.getState().resetSelectedElements(),b.setState({nodesSelectionActive:!1})},z=D=>{if(Array.isArray(r)&&(r!=null&&r.includes(2))){D.preventDefault();return}u==null||u(D)},B=d?D=>d(D):void 0,j=D=>{var Z,Y;const{resetSelectedElements:V,domNode:W}=b.getState();if(S.current=W==null?void 0:W.getBoundingClientRect(),!y||!e||D.button!==0||D.target!==E.current||!S.current)return;(Y=(Z=D.target)==null?void 0:Z.setPointerCapture)==null||Y.call(Z,D.pointerId),T.current=!0,P.current=!1;const{x:H,y:q}=vo(D.nativeEvent,S.current);V(),b.setState({userSelectionRect:{width:0,height:0,startX:H,startY:q,x:H,y:q}}),i==null||i(D)},I=D=>{const{userSelectionRect:V,transform:W,nodeLookup:H,edgeLookup:q,connectionLookup:Z,triggerNodeChanges:Y,triggerEdgeChanges:G,defaultEdgeOptions:K}=b.getState();if(!S.current||!V)return;P.current=!0;const{x:te,y:ie}=vo(D.nativeEvent,S.current),{startX:ee,startY:ae}=V,de={startX:ee,startY:ae,x:te<ee?te:ee,y:ie<ae?ie:ae,width:Math.abs(te-ee),height:Math.abs(ie-ae)},ue=O.current,J=_.current;O.current=new Set(Mf(H,de,W,n===Xs.Partial,!0).map(oe=>oe.id)),_.current=new Set;const fe=(K==null?void 0:K.selectable)??!0;for(const oe of O.current){const he=Z.get(oe);if(he)for(const{edgeId:me}of he.values()){const _e=q.get(me);_e&&(_e.selectable??fe)&&_.current.add(me)}}if(!h0(ue,O.current)){const oe=Fa(H,O.current,!0);Y(oe)}if(!h0(J,_.current)){const oe=Fa(q,_.current);G(oe)}b.setState({userSelectionRect:de,userSelectionActive:!0,nodesSelectionActive:!1})},F=D=>{var W,H;if(D.button!==0||!T.current)return;(H=(W=D.target)==null?void 0:W.releasePointerCapture)==null||H.call(W,D.pointerId);const{userSelectionRect:V}=b.getState();!C&&V&&D.target===E.current&&(L==null||L(D)),b.setState({userSelectionActive:!1,userSelectionRect:null,nodesSelectionActive:O.current.size>0}),a==null||a(D),(t||o)&&(P.current=!1),T.current=!1},A=r===!0||Array.isArray(r)&&r.includes(0);return X.jsxs("div",{className:on(["react-flow__pane",{draggable:A,dragging:x,selection:e}]),onClick:w?void 0:Zf(L,E),onContextMenu:Zf(z,E),onWheel:Zf(B,E),onPointerEnter:w?void 0:f,onPointerDown:w?j:g,onPointerMove:w?I:g,onPointerUp:w?F:void 0,onPointerLeave:p,ref:E,style:qc,children:[m,X.jsx(VT,{})]})}function Qf({id:e,store:t,unselect:n=!1,nodeRef:r}){const{addSelectedNodes:o,unselectNodesAndEdges:i,multiSelectionActive:a,nodeLookup:l,onError:u}=t.getState(),d=l.get(e);if(!d){u==null||u("012",ar.error012(e));return}t.setState({nodesSelectionActive:!1}),d.selected?(n||d.selected&&a)&&(i({nodes:[d],edges:[]}),requestAnimationFrame(()=>{var f;return(f=r==null?void 0:r.current)==null?void 0:f.blur()})):o([e])}function xy({nodeRef:e,disabled:t=!1,noDragClassName:n,handleSelector:r,nodeId:o,isSelectable:i,nodeClickDistance:a}){const l=Bt(),[u,d]=M.useState(!1),f=M.useRef();return M.useEffect(()=>{f.current=NI({getStoreItems:()=>l.getState(),onNodeMouseDown:g=>{Qf({id:g,store:l,nodeRef:e})},onDragStart:()=>{d(!0)},onDragStop:()=>{d(!1)}})},[]),M.useEffect(()=>{var g,p;if(t)(g=f.current)==null||g.destroy();else if(e.current)return(p=f.current)==null||p.update({noDragClassName:n,handleSelector:r,domNode:e.current,isSelectable:i,nodeId:o,nodeClickDistance:a}),()=>{var m;(m=f.current)==null||m.destroy()}},[n,r,t,i,e,o]),u}const WT=e=>t=>t.selected&&(t.draggable||e&&typeof t.draggable>"u");function wy(){const e=Bt();return M.useCallback(n=>{const{nodeExtent:r,snapToGrid:o,snapGrid:i,nodesDraggable:a,onError:l,updateNodePositions:u,nodeLookup:d,nodeOrigin:f}=e.getState(),g=new Map,p=WT(a),m=o?i[0]:5,b=o?i[1]:5,C=n.direction.x*m*n.factor,y=n.direction.y*b*n.factor;for(const[,x]of d){if(!p(x))continue;let $={x:x.internals.positionAbsolute.x+C,y:x.internals.positionAbsolute.y+y};o&&($=Dc($,i));const{position:w,positionAbsolute:E}=a0({nodeId:x.id,nextPosition:$,nodeLookup:d,nodeExtent:r,nodeOrigin:f,onError:l});x.position=w,x.internals.positionAbsolute=E,g.set(x.id,x)}u(g)},[])}const Jf=M.createContext(null),UT=Jf.Provider;Jf.Consumer;const Sy=()=>M.useContext(Jf),qT=e=>({connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName,rfId:e.rfId}),GT=(e,t,n)=>r=>{const{connectionClickStartHandle:o,connectionMode:i,connection:a}=r,{fromHandle:l,toHandle:u,isValid:d}=a,f=(u==null?void 0:u.nodeId)===e&&(u==null?void 0:u.id)===t&&(u==null?void 0:u.type)===n;return{connectingFrom:(l==null?void 0:l.nodeId)===e&&(l==null?void 0:l.id)===t&&(l==null?void 0:l.type)===n,connectingTo:f,clickConnecting:(o==null?void 0:o.nodeId)===e&&(o==null?void 0:o.id)===t&&(o==null?void 0:o.type)===n,isPossibleEndHandle:i===Na.Strict?(l==null?void 0:l.type)!==n:e!==(l==null?void 0:l.nodeId)||t!==(l==null?void 0:l.id),connectionInProcess:!!l,clickConnectionInProcess:!!o,valid:f&&d}};function XT({type:e="source",position:t=Ve.Top,isValidConnection:n,isConnectable:r=!0,isConnectableStart:o=!0,isConnectableEnd:i=!0,id:a,onConnect:l,children:u,className:d,onMouseDown:f,onTouchStart:g,...p},m){var F,A;const b=a||null,C=e==="target",y=Bt(),x=Sy(),{connectOnClick:$,noPanClassName:w,rfId:E}=gt(qT,Gt),{connectingFrom:S,connectingTo:O,clickConnecting:_,isPossibleEndHandle:P,connectionInProcess:T,clickConnectionInProcess:L,valid:z}=gt(GT(x,b,e),Gt);x||(A=(F=y.getState()).onError)==null||A.call(F,"010",ar.error010());const B=D=>{const{defaultEdgeOptions:V,onConnect:W,hasDefaultEdges:H}=y.getState(),q={...V,...D};if(H){const{edges:Z,setEdges:Y}=y.getState();Y(E0(q,Z))}W==null||W(q),l==null||l(q)},j=D=>{if(!x)return;const V=y0(D.nativeEvent);if(o&&(V&&D.button===0||!V)){const W=y.getState();Wf.onPointerDown(D.nativeEvent,{autoPanOnConnect:W.autoPanOnConnect,connectionMode:W.connectionMode,connectionRadius:W.connectionRadius,domNode:W.domNode,nodeLookup:W.nodeLookup,lib:W.lib,isTarget:C,handleId:b,nodeId:x,flowId:W.rfId,panBy:W.panBy,cancelConnection:W.cancelConnection,onConnectStart:W.onConnectStart,onConnectEnd:W.onConnectEnd,updateConnection:W.updateConnection,onConnect:B,isValidConnection:n||W.isValidConnection,getTransform:()=>y.getState().transform,getFromHandle:()=>y.getState().connection.fromHandle,autoPanSpeed:W.autoPanSpeed,dragThreshold:W.connectionDragThreshold})}V?f==null||f(D):g==null||g(D)},I=D=>{const{onClickConnectStart:V,onClickConnectEnd:W,connectionClickStartHandle:H,connectionMode:q,isValidConnection:Z,lib:Y,rfId:G,nodeLookup:K,connection:te}=y.getState();if(!x||!H&&!o)return;if(!H){V==null||V(D.nativeEvent,{nodeId:x,handleId:b,handleType:e}),y.setState({connectionClickStartHandle:{nodeId:x,type:e,id:b}});return}const ie=m0(D.target),ee=n||Z,{connection:ae,isValid:de}=Wf.isValid(D.nativeEvent,{handle:{nodeId:x,id:b,type:e},connectionMode:q,fromNodeId:H.nodeId,fromHandleId:H.id||null,fromType:H.type,isValidConnection:ee,flowId:G,doc:ie,lib:Y,nodeLookup:K});de&&ae&&B(ae);const ue=structuredClone(te);delete ue.inProgress,ue.toPosition=ue.toHandle?ue.toHandle.position:null,W==null||W(D,ue),y.setState({connectionClickStartHandle:null})};return X.jsx("div",{"data-handleid":b,"data-nodeid":x,"data-handlepos":t,"data-id":`${E}-${x}-${b}-${e}`,className:on(["react-flow__handle",`react-flow__handle-${t}`,"nodrag",w,d,{source:!C,target:C,connectable:r,connectablestart:o,connectableend:i,clickconnecting:_,connectingfrom:S,connectingto:O,valid:z,connectionindicator:r&&(!T||P)&&(T||L?i:o)}]),onMouseDown:j,onTouchStart:j,onClick:$?I:void 0,ref:m,...p,children:u})}const Ji=M.memo(vy(XT));function YT({data:e,isConnectable:t,sourcePosition:n=Ve.Bottom}){return X.jsxs(X.Fragment,{children:[e==null?void 0:e.label,X.jsx(Ji,{type:"source",position:n,isConnectable:t})]})}function KT({data:e,isConnectable:t,targetPosition:n=Ve.Top,sourcePosition:r=Ve.Bottom}){return X.jsxs(X.Fragment,{children:[X.jsx(Ji,{type:"target",position:n,isConnectable:t}),e==null?void 0:e.label,X.jsx(Ji,{type:"source",position:r,isConnectable:t})]})}function ZT(){return null}function QT({data:e,isConnectable:t,targetPosition:n=Ve.Top}){return X.jsxs(X.Fragment,{children:[X.jsx(Ji,{type:"target",position:n,isConnectable:t}),e==null?void 0:e.label]})}const Gc={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},Ey={input:YT,default:KT,output:QT,group:ZT};function JT(e){var t,n,r,o;return e.internals.handleBounds===void 0?{width:e.width??e.initialWidth??((t=e.style)==null?void 0:t.width),height:e.height??e.initialHeight??((n=e.style)==null?void 0:n.height)}:{width:e.width??((r=e.style)==null?void 0:r.width),height:e.height??((o=e.style)==null?void 0:o.height)}}const eM=e=>{const{width:t,height:n,x:r,y:o}=Ks(e.nodeLookup,{filter:i=>!!i.selected});return{width:Xr(t)?t:null,height:Xr(n)?n:null,userSelectionActive:e.userSelectionActive,transformString:`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]}) translate(${r}px,${o}px)`}};function tM({onSelectionContextMenu:e,noPanClassName:t,disableKeyboardA11y:n}){const r=Bt(),{width:o,height:i,transformString:a,userSelectionActive:l}=gt(eM,Gt),u=wy(),d=M.useRef(null);if(M.useEffect(()=>{var p;n||(p=d.current)==null||p.focus({preventScroll:!0})},[n]),xy({nodeRef:d}),l||!o||!i)return null;const f=e?p=>{const m=r.getState().nodes.filter(b=>b.selected);e(p,m)}:void 0,g=p=>{Object.prototype.hasOwnProperty.call(Gc,p.key)&&(p.preventDefault(),u({direction:Gc[p.key],factor:p.shiftKey?4:1}))};return X.jsx("div",{className:on(["react-flow__nodesselection","react-flow__container",t]),style:{transform:a},children:X.jsx("div",{ref:d,className:"react-flow__nodesselection-rect",onContextMenu:f,tabIndex:n?void 0:-1,onKeyDown:n?void 0:g,style:{width:o,height:i}})})}const $y=typeof window<"u"?window:void 0,nM=e=>({nodesSelectionActive:e.nodesSelectionActive,userSelectionActive:e.userSelectionActive});function _y({children:e,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:r,onPaneMouseLeave:o,onPaneContextMenu:i,onPaneScroll:a,paneClickDistance:l,deleteKeyCode:u,selectionKeyCode:d,selectionOnDrag:f,selectionMode:g,onSelectionStart:p,onSelectionEnd:m,multiSelectionKeyCode:b,panActivationKeyCode:C,zoomActivationKeyCode:y,elementsSelectable:x,zoomOnScroll:$,zoomOnPinch:w,panOnScroll:E,panOnScrollSpeed:S,panOnScrollMode:O,zoomOnDoubleClick:_,panOnDrag:P,defaultViewport:T,translateExtent:L,minZoom:z,maxZoom:B,preventScrolling:j,onSelectionContextMenu:I,noWheelClassName:F,noPanClassName:A,disableKeyboardA11y:D,onViewportChange:V,isControlledViewport:W}){const{nodesSelectionActive:H,userSelectionActive:q}=gt(nM),Z=nl(d,{target:$y}),Y=nl(C,{target:$y}),G=Y||P,K=Y||E,te=f&&G!==!0,ie=Z||q||te;return LT({deleteKeyCode:u,multiSelectionKeyCode:b}),X.jsx(jT,{onPaneContextMenu:i,elementsSelectable:x,zoomOnScroll:$,zoomOnPinch:w,panOnScroll:K,panOnScrollSpeed:S,panOnScrollMode:O,zoomOnDoubleClick:_,panOnDrag:!Z&&G,defaultViewport:T,translateExtent:L,minZoom:z,maxZoom:B,zoomActivationKeyCode:y,preventScrolling:j,noWheelClassName:F,noPanClassName:A,onViewportChange:V,isControlledViewport:W,paneClickDistance:l,children:X.jsxs(kT,{onSelectionStart:p,onSelectionEnd:m,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:r,onPaneMouseLeave:o,onPaneContextMenu:i,onPaneScroll:a,panOnDrag:G,isSelecting:!!ie,selectionMode:g,selectionKeyPressed:Z,selectionOnDrag:te,children:[e,H&&X.jsx(tM,{onSelectionContextMenu:I,noPanClassName:A,disableKeyboardA11y:D})]})})}_y.displayName="FlowRenderer";const rM=M.memo(_y),oM=e=>t=>e?Mf(t.nodeLookup,{x:0,y:0,width:t.width,height:t.height},t.transform,!0).map(n=>n.id):Array.from(t.nodeLookup.keys());function iM(e){return gt(M.useCallback(oM(e),[e]),Gt)}const aM=e=>e.updateNodeInternals;function sM(){const e=gt(aM),[t]=M.useState(()=>typeof ResizeObserver>"u"?null:new ResizeObserver(n=>{const r=new Map;n.forEach(o=>{const i=o.target.getAttribute("data-id");r.set(i,{id:i,nodeElement:o.target,force:!0})}),e(r)}));return M.useEffect(()=>()=>{t==null||t.disconnect()},[t]),t}function lM({node:e,nodeType:t,hasDimensions:n,resizeObserver:r}){const o=Bt(),i=M.useRef(null),a=M.useRef(null),l=M.useRef(e.sourcePosition),u=M.useRef(e.targetPosition),d=M.useRef(t),f=n&&!!e.internals.handleBounds;return M.useEffect(()=>{i.current&&!e.hidden&&(!f||a.current!==i.current)&&(a.current&&(r==null||r.unobserve(a.current)),r==null||r.observe(i.current),a.current=i.current)},[f,e.hidden]),M.useEffect(()=>()=>{a.current&&(r==null||r.unobserve(a.current),a.current=null)},[]),M.useEffect(()=>{if(i.current){const g=d.current!==t,p=l.current!==e.sourcePosition,m=u.current!==e.targetPosition;(g||p||m)&&(d.current=t,l.current=e.sourcePosition,u.current=e.targetPosition,o.getState().updateNodeInternals(new Map([[e.id,{id:e.id,nodeElement:i.current,force:!0}]])))}},[e.id,t,e.sourcePosition,e.targetPosition]),i}function cM({id:e,onClick:t,onMouseEnter:n,onMouseMove:r,onMouseLeave:o,onContextMenu:i,onDoubleClick:a,nodesDraggable:l,elementsSelectable:u,nodesConnectable:d,nodesFocusable:f,resizeObserver:g,noDragClassName:p,noPanClassName:m,disableKeyboardA11y:b,rfId:C,nodeTypes:y,nodeClickDistance:x,onError:$}){const{node:w,internals:E,isParent:S}=gt(ee=>{const ae=ee.nodeLookup.get(e),de=ee.parentLookup.has(e);return{node:ae,internals:ae.internals,isParent:de}},Gt);let O=w.type||"default",_=(y==null?void 0:y[O])||Ey[O];_===void 0&&($==null||$("003",ar.error003(O)),O="default",_=Ey.default);const P=!!(w.draggable||l&&typeof w.draggable>"u"),T=!!(w.selectable||u&&typeof w.selectable>"u"),L=!!(w.connectable||d&&typeof w.connectable>"u"),z=!!(w.focusable||f&&typeof w.focusable>"u"),B=Bt(),j=g0(w),I=lM({node:w,nodeType:O,hasDimensions:j,resizeObserver:g}),F=xy({nodeRef:I,disabled:w.hidden||!P,noDragClassName:p,handleSelector:w.dragHandle,nodeId:e,isSelectable:T,nodeClickDistance:x}),A=wy();if(w.hidden)return null;const D=Lo(w),V=JT(w),W=T||P||t||n||r||o,H=n?ee=>n(ee,{...E.userNode}):void 0,q=r?ee=>r(ee,{...E.userNode}):void 0,Z=o?ee=>o(ee,{...E.userNode}):void 0,Y=i?ee=>i(ee,{...E.userNode}):void 0,G=a?ee=>a(ee,{...E.userNode}):void 0,K=ee=>{const{selectNodesOnDrag:ae,nodeDragThreshold:de}=B.getState();T&&(!ae||!P||de>0)&&Qf({id:e,store:B,nodeRef:I}),t&&t(ee,{...E.userNode})},te=ee=>{if(!(v0(ee.nativeEvent)||b)){if(e0.includes(ee.key)&&T){const ae=ee.key==="Escape";Qf({id:e,store:B,unselect:ae,nodeRef:I})}else if(P&&w.selected&&Object.prototype.hasOwnProperty.call(Gc,ee.key)){ee.preventDefault();const{ariaLabelConfig:ae}=B.getState();B.setState({ariaLiveMessage:ae["node.a11yDescription.ariaLiveMessage"]({direction:ee.key.replace("Arrow","").toLowerCase(),x:~~E.positionAbsolute.x,y:~~E.positionAbsolute.y})}),A({direction:Gc[ee.key],factor:ee.shiftKey?4:1})}}},ie=()=>{var oe;if(b||!((oe=I.current)!=null&&oe.matches(":focus-visible")))return;const{transform:ee,width:ae,height:de,autoPanOnNodeFocus:ue,setCenter:J}=B.getState();if(!ue)return;Mf(new Map([[e,w]]),{x:0,y:0,width:ae,height:de},ee,!0).length>0||J(w.position.x+D.width/2,w.position.y+D.height/2,{zoom:ee[2]})};return X.jsx("div",{className:on(["react-flow__node",`react-flow__node-${O}`,{[m]:P},w.className,{selected:w.selected,selectable:T,parent:S,draggable:P,dragging:F}]),ref:I,style:{zIndex:E.z,transform:`translate(${E.positionAbsolute.x}px,${E.positionAbsolute.y}px)`,pointerEvents:W?"all":"none",visibility:j?"visible":"hidden",...w.style,...V},"data-id":e,"data-testid":`rf__node-${e}`,onMouseEnter:H,onMouseMove:q,onMouseLeave:Z,onContextMenu:Y,onClick:K,onDoubleClick:G,onKeyDown:z?te:void 0,tabIndex:z?0:void 0,onFocus:z?ie:void 0,role:w.ariaRole??(z?"group":void 0),"aria-roledescription":"node","aria-describedby":b?void 0:`${ny}-${C}`,"aria-label":w.ariaLabel,...w.domAttributes,children:X.jsx(UT,{value:e,children:X.jsx(_,{id:e,data:w.data,type:O,positionAbsoluteX:E.positionAbsolute.x,positionAbsoluteY:E.positionAbsolute.y,selected:w.selected??!1,selectable:T,draggable:P,deletable:w.deletable??!0,isConnectable:L,sourcePosition:w.sourcePosition,targetPosition:w.targetPosition,dragging:F,dragHandle:w.dragHandle,zIndex:E.z,parentId:w.parentId,...D})})})}const uM=e=>({nodesDraggable:e.nodesDraggable,nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,onError:e.onError});function Oy(e){const{nodesDraggable:t,nodesConnectable:n,nodesFocusable:r,elementsSelectable:o,onError:i}=gt(uM,Gt),a=iM(e.onlyRenderVisibleElements),l=sM();return X.jsx("div",{className:"react-flow__nodes",style:qc,children:a.map(u=>X.jsx(cM,{id:u,nodeTypes:e.nodeTypes,nodeExtent:e.nodeExtent,onClick:e.onNodeClick,onMouseEnter:e.onNodeMouseEnter,onMouseMove:e.onNodeMouseMove,onMouseLeave:e.onNodeMouseLeave,onContextMenu:e.onNodeContextMenu,onDoubleClick:e.onNodeDoubleClick,noDragClassName:e.noDragClassName,noPanClassName:e.noPanClassName,rfId:e.rfId,disableKeyboardA11y:e.disableKeyboardA11y,resizeObserver:l,nodesDraggable:t,nodesConnectable:n,nodesFocusable:r,elementsSelectable:o,nodeClickDistance:e.nodeClickDistance,onError:i},u))})}Oy.displayName="NodeRenderer";const dM=M.memo(Oy);function fM(e){return gt(M.useCallback(n=>{if(!e)return n.edges.map(o=>o.id);const r=[];if(n.width&&n.height)for(const o of n.edges){const i=n.nodeLookup.get(o.source),a=n.nodeLookup.get(o.target);i&&a&&gI({sourceNode:i,targetNode:a,width:n.width,height:n.height,transform:n.transform})&&r.push(o.id)}return r},[e]),Gt)}const gM=({color:e="none",strokeWidth:t=1})=>X.jsx("polyline",{style:{stroke:e,strokeWidth:t},strokeLinecap:"round",strokeLinejoin:"round",fill:"none",points:"-5,-4 0,0 -5,4"}),pM=({color:e="none",strokeWidth:t=1})=>X.jsx("polyline",{style:{stroke:e,fill:e,strokeWidth:t},strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"}),Ny={[Ic.Arrow]:gM,[Ic.ArrowClosed]:pM};function hM(e){const t=Bt();return M.useMemo(()=>{var o,i;return Object.prototype.hasOwnProperty.call(Ny,e)?Ny[e]:((i=(o=t.getState()).onError)==null||i.call(o,"009",ar.error009(e)),null)},[e])}const mM=({id:e,type:t,color:n,width:r=12.5,height:o=12.5,markerUnits:i="strokeWidth",strokeWidth:a,orient:l="auto-start-reverse"})=>{const u=hM(t);return u?X.jsx("marker",{className:"react-flow__arrowhead",id:e,markerWidth:`${r}`,markerHeight:`${o}`,viewBox:"-10 -10 20 20",markerUnits:i,orient:l,refX:"0",refY:"0",children:X.jsx(u,{color:n,strokeWidth:a})}):null},Py=({defaultColor:e,rfId:t})=>{const n=gt(i=>i.edges),r=gt(i=>i.defaultEdgeOptions),o=M.useMemo(()=>CI(n,{id:t,defaultColor:e,defaultMarkerStart:r==null?void 0:r.markerStart,defaultMarkerEnd:r==null?void 0:r.markerEnd}),[n,r,t,e]);return o.length?X.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:X.jsx("defs",{children:o.map(i=>X.jsx(mM,{id:i.id,type:i.type,color:i.color,width:i.width,height:i.height,markerUnits:i.markerUnits,strokeWidth:i.strokeWidth,orient:i.orient},i.id))})}):null};Py.displayName="MarkerDefinitions";var vM=M.memo(Py);function Iy({x:e,y:t,label:n,labelStyle:r,labelShowBg:o=!0,labelBgStyle:i,labelBgPadding:a=[2,4],labelBgBorderRadius:l=2,children:u,className:d,...f}){const[g,p]=M.useState({x:1,y:0,width:0,height:0}),m=on(["react-flow__edge-textwrapper",d]),b=M.useRef(null);return M.useEffect(()=>{if(b.current){const C=b.current.getBBox();p({x:C.x,y:C.y,width:C.width,height:C.height})}},[n]),n?X.jsxs("g",{transform:`translate(${e-g.width/2} ${t-g.height/2})`,className:m,visibility:g.width?"visible":"hidden",...f,children:[o&&X.jsx("rect",{width:g.width+2*a[0],x:-a[0],y:-a[1],height:g.height+2*a[1],className:"react-flow__edge-textbg",style:i,rx:l,ry:l}),X.jsx("text",{className:"react-flow__edge-text",y:g.height/2,dy:"0.3em",ref:b,style:r,children:n}),u]}):null}Iy.displayName="EdgeText";const yM=M.memo(Iy);function Xc({path:e,labelX:t,labelY:n,label:r,labelStyle:o,labelShowBg:i,labelBgStyle:a,labelBgPadding:l,labelBgBorderRadius:u,interactionWidth:d=20,...f}){return X.jsxs(X.Fragment,{children:[X.jsx("path",{...f,d:e,fill:"none",className:on(["react-flow__edge-path",f.className])}),d&&X.jsx("path",{d:e,fill:"none",strokeOpacity:0,strokeWidth:d,className:"react-flow__edge-interaction"}),r&&Xr(t)&&Xr(n)?X.jsx(yM,{x:t,y:n,label:r,labelStyle:o,labelShowBg:i,labelBgStyle:a,labelBgPadding:l,labelBgBorderRadius:u}):null]})}function Ty({pos:e,x1:t,y1:n,x2:r,y2:o}){return e===Ve.Left||e===Ve.Right?[.5*(t+r),n]:[t,.5*(n+o)]}function My({sourceX:e,sourceY:t,sourcePosition:n=Ve.Bottom,targetX:r,targetY:o,targetPosition:i=Ve.Top}){const[a,l]=Ty({pos:n,x1:e,y1:t,x2:r,y2:o}),[u,d]=Ty({pos:i,x1:r,y1:o,x2:e,y2:t}),[f,g,p,m]=C0({sourceX:e,sourceY:t,targetX:r,targetY:o,sourceControlX:a,sourceControlY:l,targetControlX:u,targetControlY:d});return[`M${e},${t} C${a},${l} ${u},${d} ${r},${o}`,f,g,p,m]}function Ay(e){return M.memo(({id:t,sourceX:n,sourceY:r,targetX:o,targetY:i,sourcePosition:a,targetPosition:l,label:u,labelStyle:d,labelShowBg:f,labelBgStyle:g,labelBgPadding:p,labelBgBorderRadius:m,style:b,markerEnd:C,markerStart:y,interactionWidth:x})=>{const[$,w,E]=My({sourceX:n,sourceY:r,sourcePosition:a,targetX:o,targetY:i,targetPosition:l}),S=e.isInternal?void 0:t;return X.jsx(Xc,{id:S,path:$,labelX:w,labelY:E,label:u,labelStyle:d,labelShowBg:f,labelBgStyle:g,labelBgPadding:p,labelBgBorderRadius:m,style:b,markerEnd:C,markerStart:y,interactionWidth:x})})}const bM=Ay({isInternal:!1}),Dy=Ay({isInternal:!0});bM.displayName="SimpleBezierEdge",Dy.displayName="SimpleBezierEdgeInternal";function Fy(e){return M.memo(({id:t,sourceX:n,sourceY:r,targetX:o,targetY:i,label:a,labelStyle:l,labelShowBg:u,labelBgStyle:d,labelBgPadding:f,labelBgBorderRadius:g,style:p,sourcePosition:m=Ve.Bottom,targetPosition:b=Ve.Top,markerEnd:C,markerStart:y,pathOptions:x,interactionWidth:$})=>{const[w,E,S]=Lf({sourceX:n,sourceY:r,sourcePosition:m,targetX:o,targetY:i,targetPosition:b,borderRadius:x==null?void 0:x.borderRadius,offset:x==null?void 0:x.offset}),O=e.isInternal?void 0:t;return X.jsx(Xc,{id:O,path:w,labelX:E,labelY:S,label:a,labelStyle:l,labelShowBg:u,labelBgStyle:d,labelBgPadding:f,labelBgBorderRadius:g,style:p,markerEnd:C,markerStart:y,interactionWidth:$})})}const Ly=Fy({isInternal:!1}),Ry=Fy({isInternal:!0});Ly.displayName="SmoothStepEdge",Ry.displayName="SmoothStepEdgeInternal";function zy(e){return M.memo(({id:t,...n})=>{var o;const r=e.isInternal?void 0:t;return X.jsx(Ly,{...n,id:r,pathOptions:M.useMemo(()=>{var i;return{borderRadius:0,offset:(i=n.pathOptions)==null?void 0:i.offset}},[(o=n.pathOptions)==null?void 0:o.offset])})})}const CM=zy({isInternal:!1}),jy=zy({isInternal:!0});CM.displayName="StepEdge",jy.displayName="StepEdgeInternal";function By(e){return M.memo(({id:t,sourceX:n,sourceY:r,targetX:o,targetY:i,label:a,labelStyle:l,labelShowBg:u,labelBgStyle:d,labelBgPadding:f,labelBgBorderRadius:g,style:p,markerEnd:m,markerStart:b,interactionWidth:C})=>{const[y,x,$]=$0({sourceX:n,sourceY:r,targetX:o,targetY:i}),w=e.isInternal?void 0:t;return X.jsx(Xc,{id:w,path:y,labelX:x,labelY:$,label:a,labelStyle:l,labelShowBg:u,labelBgStyle:d,labelBgPadding:f,labelBgBorderRadius:g,style:p,markerEnd:m,markerStart:b,interactionWidth:C})})}const xM=By({isInternal:!1}),Vy=By({isInternal:!0});xM.displayName="StraightEdge",Vy.displayName="StraightEdgeInternal";function Hy(e){return M.memo(({id:t,sourceX:n,sourceY:r,targetX:o,targetY:i,sourcePosition:a=Ve.Bottom,targetPosition:l=Ve.Top,label:u,labelStyle:d,labelShowBg:f,labelBgStyle:g,labelBgPadding:p,labelBgBorderRadius:m,style:b,markerEnd:C,markerStart:y,pathOptions:x,interactionWidth:$})=>{const[w,E,S]=w0({sourceX:n,sourceY:r,sourcePosition:a,targetX:o,targetY:i,targetPosition:l,curvature:x==null?void 0:x.curvature}),O=e.isInternal?void 0:t;return X.jsx(Xc,{id:O,path:w,labelX:E,labelY:S,label:u,labelStyle:d,labelShowBg:f,labelBgStyle:g,labelBgPadding:p,labelBgBorderRadius:m,style:b,markerEnd:C,markerStart:y,interactionWidth:$})})}const wM=Hy({isInternal:!1}),ky=Hy({isInternal:!0});wM.displayName="BezierEdge",ky.displayName="BezierEdgeInternal";const Wy={default:ky,straight:Vy,step:jy,smoothstep:Ry,simplebezier:Dy},Uy={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},SM=(e,t,n)=>n===Ve.Left?e-t:n===Ve.Right?e+t:e,EM=(e,t,n)=>n===Ve.Top?e-t:n===Ve.Bottom?e+t:e,qy="react-flow__edgeupdater";function Gy({position:e,centerX:t,centerY:n,radius:r=10,onMouseDown:o,onMouseEnter:i,onMouseOut:a,type:l}){return X.jsx("circle",{onMouseDown:o,onMouseEnter:i,onMouseOut:a,className:on([qy,`${qy}-${l}`]),cx:SM(t,r,e),cy:EM(n,r,e),r,stroke:"transparent",fill:"transparent"})}function $M({isReconnectable:e,reconnectRadius:t,edge:n,sourceX:r,sourceY:o,targetX:i,targetY:a,sourcePosition:l,targetPosition:u,onReconnect:d,onReconnectStart:f,onReconnectEnd:g,setReconnecting:p,setUpdateHover:m}){const b=Bt(),C=(E,S)=>{if(E.button!==0)return;const{autoPanOnConnect:O,domNode:_,isValidConnection:P,connectionMode:T,connectionRadius:L,lib:z,onConnectStart:B,onConnectEnd:j,cancelConnection:I,nodeLookup:F,rfId:A,panBy:D,updateConnection:V}=b.getState(),W=S.type==="target",H=(Y,G)=>{p(!1),g==null||g(Y,n,S.type,G)},q=Y=>d==null?void 0:d(n,Y),Z=(Y,G)=>{p(!0),f==null||f(E,n,S.type),B==null||B(Y,G)};Wf.onPointerDown(E.nativeEvent,{autoPanOnConnect:O,connectionMode:T,connectionRadius:L,domNode:_,handleId:S.id,nodeId:S.nodeId,nodeLookup:F,isTarget:W,edgeUpdaterType:S.type,lib:z,flowId:A,cancelConnection:I,panBy:D,isValidConnection:P,onConnect:q,onConnectStart:Z,onConnectEnd:j,onReconnectEnd:H,updateConnection:V,getTransform:()=>b.getState().transform,getFromHandle:()=>b.getState().connection.fromHandle,dragThreshold:b.getState().connectionDragThreshold})},y=E=>C(E,{nodeId:n.target,id:n.targetHandle??null,type:"target"}),x=E=>C(E,{nodeId:n.source,id:n.sourceHandle??null,type:"source"}),$=()=>m(!0),w=()=>m(!1);return X.jsxs(X.Fragment,{children:[(e===!0||e==="source")&&X.jsx(Gy,{position:l,centerX:r,centerY:o,radius:t,onMouseDown:y,onMouseEnter:$,onMouseOut:w,type:"source"}),(e===!0||e==="target")&&X.jsx(Gy,{position:u,centerX:i,centerY:a,radius:t,onMouseDown:x,onMouseEnter:$,onMouseOut:w,type:"target"})]})}function _M({id:e,edgesFocusable:t,edgesReconnectable:n,elementsSelectable:r,onClick:o,onDoubleClick:i,onContextMenu:a,onMouseEnter:l,onMouseMove:u,onMouseLeave:d,reconnectRadius:f,onReconnect:g,onReconnectStart:p,onReconnectEnd:m,rfId:b,edgeTypes:C,noPanClassName:y,onError:x,disableKeyboardA11y:$}){let w=gt(J=>J.edgeLookup.get(e));const E=gt(J=>J.defaultEdgeOptions);w=E?{...E,...w}:w;let S=w.type||"default",O=(C==null?void 0:C[S])||Wy[S];O===void 0&&(x==null||x("011",ar.error011(S)),S="default",O=Wy.default);const _=!!(w.focusable||t&&typeof w.focusable>"u"),P=typeof g<"u"&&(w.reconnectable||n&&typeof w.reconnectable>"u"),T=!!(w.selectable||r&&typeof w.selectable>"u"),L=M.useRef(null),[z,B]=M.useState(!1),[j,I]=M.useState(!1),F=Bt(),{zIndex:A,sourceX:D,sourceY:V,targetX:W,targetY:H,sourcePosition:q,targetPosition:Z}=gt(M.useCallback(J=>{const fe=J.nodeLookup.get(w.source),oe=J.nodeLookup.get(w.target);if(!fe||!oe)return{zIndex:w.zIndex,...Uy};const he=bI({id:e,sourceNode:fe,targetNode:oe,sourceHandle:w.sourceHandle||null,targetHandle:w.targetHandle||null,connectionMode:J.connectionMode,onError:x});return{zIndex:fI({selected:w.selected,zIndex:w.zIndex,sourceNode:fe,targetNode:oe,elevateOnSelect:J.elevateEdgesOnSelect}),...he||Uy}},[w.source,w.target,w.sourceHandle,w.targetHandle,w.selected,w.zIndex]),Gt),Y=M.useMemo(()=>w.markerStart?`url('#${Rf(w.markerStart,b)}')`:void 0,[w.markerStart,b]),G=M.useMemo(()=>w.markerEnd?`url('#${Rf(w.markerEnd,b)}')`:void 0,[w.markerEnd,b]);if(w.hidden||D===null||V===null||W===null||H===null)return null;const K=J=>{var me;const{addSelectedEdges:fe,unselectNodesAndEdges:oe,multiSelectionActive:he}=F.getState();T&&(F.setState({nodesSelectionActive:!1}),w.selected&&he?(oe({nodes:[],edges:[w]}),(me=L.current)==null||me.blur()):fe([e])),o&&o(J,w)},te=i?J=>{i(J,{...w})}:void 0,ie=a?J=>{a(J,{...w})}:void 0,ee=l?J=>{l(J,{...w})}:void 0,ae=u?J=>{u(J,{...w})}:void 0,de=d?J=>{d(J,{...w})}:void 0,ue=J=>{var fe;if(!$&&e0.includes(J.key)&&T){const{unselectNodesAndEdges:oe,addSelectedEdges:he}=F.getState();J.key==="Escape"?((fe=L.current)==null||fe.blur(),oe({edges:[w]})):he([e])}};return X.jsx("svg",{style:{zIndex:A},children:X.jsxs("g",{className:on(["react-flow__edge",`react-flow__edge-${S}`,w.className,y,{selected:w.selected,animated:w.animated,inactive:!T&&!o,updating:z,selectable:T}]),onClick:K,onDoubleClick:te,onContextMenu:ie,onMouseEnter:ee,onMouseMove:ae,onMouseLeave:de,onKeyDown:_?ue:void 0,tabIndex:_?0:void 0,role:w.ariaRole??(_?"group":"img"),"aria-roledescription":"edge","data-id":e,"data-testid":`rf__edge-${e}`,"aria-label":w.ariaLabel===null?void 0:w.ariaLabel||`Edge from ${w.source} to ${w.target}`,"aria-describedby":_?`${ry}-${b}`:void 0,ref:L,...w.domAttributes,children:[!j&&X.jsx(O,{id:e,source:w.source,target:w.target,type:w.type,selected:w.selected,animated:w.animated,selectable:T,deletable:w.deletable??!0,label:w.label,labelStyle:w.labelStyle,labelShowBg:w.labelShowBg,labelBgStyle:w.labelBgStyle,labelBgPadding:w.labelBgPadding,labelBgBorderRadius:w.labelBgBorderRadius,sourceX:D,sourceY:V,targetX:W,targetY:H,sourcePosition:q,targetPosition:Z,data:w.data,style:w.style,sourceHandleId:w.sourceHandle,targetHandleId:w.targetHandle,markerStart:Y,markerEnd:G,pathOptions:"pathOptions"in w?w.pathOptions:void 0,interactionWidth:w.interactionWidth}),P&&X.jsx($M,{edge:w,isReconnectable:P,reconnectRadius:f,onReconnect:g,onReconnectStart:p,onReconnectEnd:m,sourceX:D,sourceY:V,targetX:W,targetY:H,sourcePosition:q,targetPosition:Z,setUpdateHover:B,setReconnecting:I})]})})}const OM=e=>({edgesFocusable:e.edgesFocusable,edgesReconnectable:e.edgesReconnectable,elementsSelectable:e.elementsSelectable,connectionMode:e.connectionMode,onError:e.onError});function Xy({defaultMarkerColor:e,onlyRenderVisibleElements:t,rfId:n,edgeTypes:r,noPanClassName:o,onReconnect:i,onEdgeContextMenu:a,onEdgeMouseEnter:l,onEdgeMouseMove:u,onEdgeMouseLeave:d,onEdgeClick:f,reconnectRadius:g,onEdgeDoubleClick:p,onReconnectStart:m,onReconnectEnd:b,disableKeyboardA11y:C}){const{edgesFocusable:y,edgesReconnectable:x,elementsSelectable:$,onError:w}=gt(OM,Gt),E=fM(t);return X.jsxs("div",{className:"react-flow__edges",children:[X.jsx(vM,{defaultColor:e,rfId:n}),E.map(S=>X.jsx(_M,{id:S,edgesFocusable:y,edgesReconnectable:x,elementsSelectable:$,noPanClassName:o,onReconnect:i,onContextMenu:a,onMouseEnter:l,onMouseMove:u,onMouseLeave:d,onClick:f,reconnectRadius:g,onDoubleClick:p,onReconnectStart:m,onReconnectEnd:b,rfId:n,onError:w,edgeTypes:r,disableKeyboardA11y:C},S))]})}Xy.displayName="EdgeRenderer";const NM=M.memo(Xy),PM=e=>`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`;function IM({children:e}){const t=gt(PM);return X.jsx("div",{className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:t},children:e})}function TM(e){const t=bi(),n=M.useRef(!1);M.useEffect(()=>{!n.current&&t.viewportInitialized&&e&&(setTimeout(()=>e(t),1),n.current=!0)},[e,t.viewportInitialized])}const MM=e=>{var t;return(t=e.panZoom)==null?void 0:t.syncViewport};function AM(e){const t=gt(MM),n=Bt();return M.useEffect(()=>{e&&(t==null||t(e),n.setState({transform:[e.x,e.y,e.zoom]}))},[e,t]),null}function DM(e){return e.connection.inProgress?{...e.connection,to:Qs(e.connection.to,e.transform)}:{...e.connection}}function FM(e){return DM}function LM(e){const t=FM();return gt(t,Gt)}const RM=e=>({nodesConnectable:e.nodesConnectable,isValid:e.connection.isValid,inProgress:e.connection.inProgress,width:e.width,height:e.height});function zM({containerStyle:e,style:t,type:n,component:r}){const{nodesConnectable:o,width:i,height:a,isValid:l,inProgress:u}=gt(RM,Gt);return!(i&&o&&u)?null:X.jsx("svg",{style:e,width:i,height:a,className:"react-flow__connectionline react-flow__container",children:X.jsx("g",{className:on(["react-flow__connection",o0(l)]),children:X.jsx(Yy,{style:t,type:n,CustomComponent:r,isValid:l})})})}const Yy=({style:e,type:t=mi.Bezier,CustomComponent:n,isValid:r})=>{const{inProgress:o,from:i,fromNode:a,fromHandle:l,fromPosition:u,to:d,toNode:f,toHandle:g,toPosition:p}=LM();if(!o)return;if(n)return X.jsx(n,{connectionLineType:t,connectionLineStyle:e,fromNode:a,fromHandle:l,fromX:i.x,fromY:i.y,toX:d.x,toY:d.y,fromPosition:u,toPosition:p,connectionStatus:o0(r),toNode:f,toHandle:g});let m="";const b={sourceX:i.x,sourceY:i.y,sourcePosition:u,targetX:d.x,targetY:d.y,targetPosition:p};switch(t){case mi.Bezier:[m]=w0(b);break;case mi.SimpleBezier:[m]=My(b);break;case mi.Step:[m]=Lf({...b,borderRadius:0});break;case mi.SmoothStep:[m]=Lf(b);break;default:[m]=$0(b)}return X.jsx("path",{d:m,fill:"none",className:"react-flow__connection-path",style:e})};Yy.displayName="ConnectionLine";const jM={};function Ky(e=jM){const t=M.useRef(e),n=Bt();M.useEffect(()=>{var r,o;if(process.env.NODE_ENV==="development"){const i=new Set([...Object.keys(t.current),...Object.keys(e)]);for(const a of i)if(t.current[a]!==e[a]){(o=(r=n.getState()).onError)==null||o.call(r,"002",ar.error002());break}t.current=e}},[e])}function BM(){const e=Bt(),t=M.useRef(!1);M.useEffect(()=>{var n,r;if(process.env.NODE_ENV==="development"&&!t.current){const o=document.querySelector(".react-flow__pane");o&&window.getComputedStyle(o).zIndex!=="1"&&((r=(n=e.getState()).onError)==null||r.call(n,"013",ar.error013("react"))),t.current=!0}},[])}function Zy({nodeTypes:e,edgeTypes:t,onInit:n,onNodeClick:r,onEdgeClick:o,onNodeDoubleClick:i,onEdgeDoubleClick:a,onNodeMouseEnter:l,onNodeMouseMove:u,onNodeMouseLeave:d,onNodeContextMenu:f,onSelectionContextMenu:g,onSelectionStart:p,onSelectionEnd:m,connectionLineType:b,connectionLineStyle:C,connectionLineComponent:y,connectionLineContainerStyle:x,selectionKeyCode:$,selectionOnDrag:w,selectionMode:E,multiSelectionKeyCode:S,panActivationKeyCode:O,zoomActivationKeyCode:_,deleteKeyCode:P,onlyRenderVisibleElements:T,elementsSelectable:L,defaultViewport:z,translateExtent:B,minZoom:j,maxZoom:I,preventScrolling:F,defaultMarkerColor:A,zoomOnScroll:D,zoomOnPinch:V,panOnScroll:W,panOnScrollSpeed:H,panOnScrollMode:q,zoomOnDoubleClick:Z,panOnDrag:Y,onPaneClick:G,onPaneMouseEnter:K,onPaneMouseMove:te,onPaneMouseLeave:ie,onPaneScroll:ee,onPaneContextMenu:ae,paneClickDistance:de,nodeClickDistance:ue,onEdgeContextMenu:J,onEdgeMouseEnter:fe,onEdgeMouseMove:oe,onEdgeMouseLeave:he,reconnectRadius:me,onReconnect:_e,onReconnectStart:Re,onReconnectEnd:Ie,noDragClassName:Ge,noWheelClassName:De,noPanClassName:We,disableKeyboardA11y:Te,nodeExtent:Ne,rfId:Be,viewport:Ze,onViewportChange:pt}){return Ky(e),Ky(t),BM(),TM(n),AM(Ze),X.jsx(rM,{onPaneClick:G,onPaneMouseEnter:K,onPaneMouseMove:te,onPaneMouseLeave:ie,onPaneContextMenu:ae,onPaneScroll:ee,paneClickDistance:de,deleteKeyCode:P,selectionKeyCode:$,selectionOnDrag:w,selectionMode:E,onSelectionStart:p,onSelectionEnd:m,multiSelectionKeyCode:S,panActivationKeyCode:O,zoomActivationKeyCode:_,elementsSelectable:L,zoomOnScroll:D,zoomOnPinch:V,zoomOnDoubleClick:Z,panOnScroll:W,panOnScrollSpeed:H,panOnScrollMode:q,panOnDrag:Y,defaultViewport:z,translateExtent:B,minZoom:j,maxZoom:I,onSelectionContextMenu:g,preventScrolling:F,noDragClassName:Ge,noWheelClassName:De,noPanClassName:We,disableKeyboardA11y:Te,onViewportChange:pt,isControlledViewport:!!Ze,children:X.jsxs(IM,{children:[X.jsx(NM,{edgeTypes:t,onEdgeClick:o,onEdgeDoubleClick:a,onReconnect:_e,onReconnectStart:Re,onReconnectEnd:Ie,onlyRenderVisibleElements:T,onEdgeContextMenu:J,onEdgeMouseEnter:fe,onEdgeMouseMove:oe,onEdgeMouseLeave:he,reconnectRadius:me,defaultMarkerColor:A,noPanClassName:We,disableKeyboardA11y:Te,rfId:Be}),X.jsx(zM,{style:C,type:b,component:y,containerStyle:x}),X.jsx("div",{className:"react-flow__edgelabel-renderer"}),X.jsx(dM,{nodeTypes:e,onNodeClick:r,onNodeDoubleClick:i,onNodeMouseEnter:l,onNodeMouseMove:u,onNodeMouseLeave:d,onNodeContextMenu:f,nodeClickDistance:ue,onlyRenderVisibleElements:T,noPanClassName:We,noDragClassName:Ge,disableKeyboardA11y:Te,nodeExtent:Ne,rfId:Be}),X.jsx("div",{className:"react-flow__viewport-portal"})]})})}Zy.displayName="GraphView";const VM=M.memo(Zy),Qy=({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,width:o,height:i,fitView:a,fitViewOptions:l,minZoom:u=.5,maxZoom:d=2,nodeOrigin:f,nodeExtent:g}={})=>{const p=new Map,m=new Map,b=new Map,C=new Map,y=r??t??[],x=n??e??[],$=f??[0,0],w=g??Gs;A0(b,C,y);const E=Bf(x,p,m,{nodeOrigin:$,nodeExtent:w,elevateNodesOnSelect:!1});let S=[0,0,1];if(a&&o&&i){const O=Ks(p,{filter:L=>!!((L.width||L.initialWidth)&&(L.height||L.initialHeight))}),{x:_,y:P,zoom:T}=Df(O,o,i,u,d,(l==null?void 0:l.padding)??.1);S=[_,P,T]}return{rfId:"1",width:0,height:0,transform:S,nodes:x,nodesInitialized:E,nodeLookup:p,parentLookup:m,edges:y,edgeLookup:C,connectionLookup:b,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:n!==void 0,hasDefaultEdges:r!==void 0,panZoom:null,minZoom:u,maxZoom:d,translateExtent:Gs,nodeExtent:w,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:Na.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:$,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!1,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:a??!1,fitViewOptions:l,fitViewResolver:null,connection:{...n0},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:f0,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:t0}},HM=({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,width:o,height:i,fitView:a,fitViewOptions:l,minZoom:u,maxZoom:d,nodeOrigin:f,nodeExtent:g})=>cT((p,m)=>{async function b(){const{nodeLookup:C,panZoom:y,fitViewOptions:x,fitViewResolver:$,width:w,height:E,minZoom:S,maxZoom:O}=m();y&&(await iI({nodes:C,width:w,height:E,panZoom:y,minZoom:S,maxZoom:O},x),$==null||$.resolve(!0),p({fitViewResolver:null}))}return{...Qy({nodes:e,edges:t,width:o,height:i,fitView:a,fitViewOptions:l,minZoom:u,maxZoom:d,nodeOrigin:f,nodeExtent:g,defaultNodes:n,defaultEdges:r}),setNodes:C=>{const{nodeLookup:y,parentLookup:x,nodeOrigin:$,elevateNodesOnSelect:w,fitViewQueued:E}=m(),S=Bf(C,y,x,{nodeOrigin:$,nodeExtent:g,elevateNodesOnSelect:w,checkEquality:!0});E&&S?(b(),p({nodes:C,nodesInitialized:S,fitViewQueued:!1,fitViewOptions:void 0})):p({nodes:C,nodesInitialized:S})},setEdges:C=>{const{connectionLookup:y,edgeLookup:x}=m();A0(y,x,C),p({edges:C})},setDefaultNodesAndEdges:(C,y)=>{if(C){const{setNodes:x}=m();x(C),p({hasDefaultNodes:!0})}if(y){const{setEdges:x}=m();x(y),p({hasDefaultEdges:!0})}},updateNodeInternals:C=>{const{triggerNodeChanges:y,nodeLookup:x,parentLookup:$,domNode:w,nodeOrigin:E,nodeExtent:S,debug:O,fitViewQueued:_}=m(),{changes:P,updatedInternals:T}=$I(C,x,$,w,E,S);T&&(wI(x,$,{nodeOrigin:E,nodeExtent:S}),_?(b(),p({fitViewQueued:!1,fitViewOptions:void 0})):p({}),(P==null?void 0:P.length)>0&&(O&&console.log("React Flow: trigger node changes",P),y==null||y(P)))},updateNodePositions:(C,y=!1)=>{const x=[],$=[],{nodeLookup:w,triggerNodeChanges:E}=m();for(const[S,O]of C){const _=w.get(S),P=!!(_!=null&&_.expandParent&&(_!=null&&_.parentId)&&(O!=null&&O.position)),T={id:S,type:"position",position:P?{x:Math.max(0,O.position.x),y:Math.max(0,O.position.y)}:O.position,dragging:y};P&&_.parentId&&x.push({id:S,parentId:_.parentId,rect:{...O.internals.positionAbsolute,width:O.measured.width??0,height:O.measured.height??0}}),$.push(T)}if(x.length>0){const{parentLookup:S,nodeOrigin:O}=m(),_=Hf(x,w,S,O);$.push(..._)}E($)},triggerNodeChanges:C=>{const{onNodesChange:y,setNodes:x,nodes:$,hasDefaultNodes:w,debug:E}=m();if(C!=null&&C.length){if(w){const S=fy(C,$);x(S)}E&&console.log("React Flow: trigger node changes",C),y==null||y(C)}},triggerEdgeChanges:C=>{const{onEdgesChange:y,setEdges:x,edges:$,hasDefaultEdges:w,debug:E}=m();if(C!=null&&C.length){if(w){const S=gy(C,$);x(S)}E&&console.log("React Flow: trigger edge changes",C),y==null||y(C)}},addSelectedNodes:C=>{const{multiSelectionActive:y,edgeLookup:x,nodeLookup:$,triggerNodeChanges:w,triggerEdgeChanges:E}=m();if(y){const S=C.map(O=>Qi(O,!0));w(S);return}w(Fa($,new Set([...C]),!0)),E(Fa(x))},addSelectedEdges:C=>{const{multiSelectionActive:y,edgeLookup:x,nodeLookup:$,triggerNodeChanges:w,triggerEdgeChanges:E}=m();if(y){const S=C.map(O=>Qi(O,!0));E(S);return}E(Fa(x,new Set([...C]))),w(Fa($,new Set,!0))},unselectNodesAndEdges:({nodes:C,edges:y}={})=>{const{edges:x,nodes:$,nodeLookup:w,triggerNodeChanges:E,triggerEdgeChanges:S}=m(),O=C||$,_=y||x,P=O.map(L=>{const z=w.get(L.id);return z&&(z.selected=!1),Qi(L.id,!1)}),T=_.map(L=>Qi(L.id,!1));E(P),S(T)},setMinZoom:C=>{const{panZoom:y,maxZoom:x}=m();y==null||y.setScaleExtent([C,x]),p({minZoom:C})},setMaxZoom:C=>{const{panZoom:y,minZoom:x}=m();y==null||y.setScaleExtent([x,C]),p({maxZoom:C})},setTranslateExtent:C=>{var y;(y=m().panZoom)==null||y.setTranslateExtent(C),p({translateExtent:C})},setPaneClickDistance:C=>{var y;(y=m().panZoom)==null||y.setClickDistance(C)},resetSelectedElements:()=>{const{edges:C,nodes:y,triggerNodeChanges:x,triggerEdgeChanges:$,elementsSelectable:w}=m();if(!w)return;const E=y.reduce((O,_)=>_.selected?[...O,Qi(_.id,!1)]:O,[]),S=C.reduce((O,_)=>_.selected?[...O,Qi(_.id,!1)]:O,[]);x(E),$(S)},setNodeExtent:C=>{const{nodes:y,nodeLookup:x,parentLookup:$,nodeOrigin:w,elevateNodesOnSelect:E,nodeExtent:S}=m();C[0][0]===S[0][0]&&C[0][1]===S[0][1]&&C[1][0]===S[1][0]&&C[1][1]===S[1][1]||(Bf(y,x,$,{nodeOrigin:w,nodeExtent:C,elevateNodesOnSelect:E,checkEquality:!1}),p({nodeExtent:C}))},panBy:C=>{const{transform:y,width:x,height:$,panZoom:w,translateExtent:E}=m();return _I({delta:C,panZoom:w,transform:y,translateExtent:E,width:x,height:$})},setCenter:async(C,y,x)=>{const{width:$,height:w,maxZoom:E,panZoom:S}=m();if(!S)return Promise.resolve(!1);const O=typeof(x==null?void 0:x.zoom)<"u"?x.zoom:E;return await S.setViewport({x:$/2-C*O,y:w/2-y*O,zoom:O},{duration:x==null?void 0:x.duration,ease:x==null?void 0:x.ease,interpolate:x==null?void 0:x.interpolate}),Promise.resolve(!0)},cancelConnection:()=>{p({connection:{...n0}})},updateConnection:C=>{p({connection:C})},reset:()=>p({...Qy()})}},Object.is);function Jy({initialNodes:e,initialEdges:t,defaultNodes:n,defaultEdges:r,initialWidth:o,initialHeight:i,initialMinZoom:a,initialMaxZoom:l,initialFitViewOptions:u,fitView:d,nodeOrigin:f,nodeExtent:g,children:p}){const[m]=M.useState(()=>HM({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,width:o,height:i,fitView:d,minZoom:a,maxZoom:l,fitViewOptions:u,nodeOrigin:f,nodeExtent:g}));return X.jsx(uT,{value:m,children:X.jsx(MT,{children:p})})}function kM({children:e,nodes:t,edges:n,defaultNodes:r,defaultEdges:o,width:i,height:a,fitView:l,fitViewOptions:u,minZoom:d,maxZoom:f,nodeOrigin:g,nodeExtent:p}){return M.useContext(kc)?X.jsx(X.Fragment,{children:e}):X.jsx(Jy,{initialNodes:t,initialEdges:n,defaultNodes:r,defaultEdges:o,initialWidth:i,initialHeight:a,fitView:l,initialFitViewOptions:u,initialMinZoom:d,initialMaxZoom:f,nodeOrigin:g,nodeExtent:p,children:e})}const WM={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function UM({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,className:o,nodeTypes:i,edgeTypes:a,onNodeClick:l,onEdgeClick:u,onInit:d,onMove:f,onMoveStart:g,onMoveEnd:p,onConnect:m,onConnectStart:b,onConnectEnd:C,onClickConnectStart:y,onClickConnectEnd:x,onNodeMouseEnter:$,onNodeMouseMove:w,onNodeMouseLeave:E,onNodeContextMenu:S,onNodeDoubleClick:O,onNodeDragStart:_,onNodeDrag:P,onNodeDragStop:T,onNodesDelete:L,onEdgesDelete:z,onDelete:B,onSelectionChange:j,onSelectionDragStart:I,onSelectionDrag:F,onSelectionDragStop:A,onSelectionContextMenu:D,onSelectionStart:V,onSelectionEnd:W,onBeforeDelete:H,connectionMode:q,connectionLineType:Z=mi.Bezier,connectionLineStyle:Y,connectionLineComponent:G,connectionLineContainerStyle:K,deleteKeyCode:te="Backspace",selectionKeyCode:ie="Shift",selectionOnDrag:ee=!1,selectionMode:ae=Xs.Full,panActivationKeyCode:de="Space",multiSelectionKeyCode:ue=Lc()?"Meta":"Control",zoomActivationKeyCode:J=Lc()?"Meta":"Control",snapToGrid:fe,snapGrid:oe,onlyRenderVisibleElements:he=!1,selectNodesOnDrag:me,nodesDraggable:_e,autoPanOnNodeFocus:Re,nodesConnectable:Ie,nodesFocusable:Ge,nodeOrigin:De=oy,edgesFocusable:We,edgesReconnectable:Te,elementsSelectable:Ne=!0,defaultViewport:Be=ST,minZoom:Ze=.5,maxZoom:pt=2,translateExtent:tt=Gs,preventScrolling:st=!0,nodeExtent:vt,defaultMarkerColor:nt="#b1b1b7",zoomOnScroll:rt=!0,zoomOnPinch:Ke=!0,panOnScroll:$e=!1,panOnScrollSpeed:Fe=.5,panOnScrollMode:Ce=Ki.Free,zoomOnDoubleClick:Se=!0,panOnDrag:ke=!0,onPaneClick:It,onPaneMouseEnter:pn,onPaneMouseMove:Cn,onPaneMouseLeave:xn,onPaneScroll:to,onPaneContextMenu:Mn,paneClickDistance:kt=0,nodeClickDistance:Wt=0,children:Kn,onReconnect:un,onReconnectStart:ut,onReconnectEnd:mt,onEdgeContextMenu:dn,onEdgeDoubleClick:fr,onEdgeMouseEnter:dt,onEdgeMouseMove:no,onEdgeMouseLeave:ro,reconnectRadius:Ct=10,onNodesChange:Tt,onEdgesChange:wn,noDragClassName:hn="nodrag",noWheelClassName:Bn="nowheel",noPanClassName:Mr="nopan",fitView:gr,fitViewOptions:Nn,connectOnClick:Vn,attributionPosition:pr,proOptions:Hn,defaultEdgeOptions:Sn,elevateNodesOnSelect:En,elevateEdgesOnSelect:Zn,disableKeyboardA11y:Ko=!1,autoPanOnConnect:Oo,autoPanOnNodeDrag:oo,autoPanSpeed:Mi,connectionRadius:da,isValidConnection:Zo,onError:Qo,style:Ar,id:Dr,nodeDragThreshold:Jo,connectionDragThreshold:io,viewport:ei,onViewportChange:ao,width:An,height:hr,colorMode:Qn="light",debug:Fr,onScroll:mr,ariaLabelConfig:No,...ti},Ai){const so=Dr||"1",Di=_T(Qn),ni=M.useCallback(ri=>{ri.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),mr==null||mr(ri)},[mr]);return X.jsx("div",{"data-testid":"rf__wrapper",...ti,onScroll:ni,style:{...Ar,...WM},ref:Ai,className:on(["react-flow",o,Di]),id:Dr,role:"application",children:X.jsxs(kM,{nodes:e,edges:t,width:An,height:hr,fitView:gr,fitViewOptions:Nn,minZoom:Ze,maxZoom:pt,nodeOrigin:De,nodeExtent:vt,children:[X.jsx(VM,{onInit:d,onNodeClick:l,onEdgeClick:u,onNodeMouseEnter:$,onNodeMouseMove:w,onNodeMouseLeave:E,onNodeContextMenu:S,onNodeDoubleClick:O,nodeTypes:i,edgeTypes:a,connectionLineType:Z,connectionLineStyle:Y,connectionLineComponent:G,connectionLineContainerStyle:K,selectionKeyCode:ie,selectionOnDrag:ee,selectionMode:ae,deleteKeyCode:te,multiSelectionKeyCode:ue,panActivationKeyCode:de,zoomActivationKeyCode:J,onlyRenderVisibleElements:he,defaultViewport:Be,translateExtent:tt,minZoom:Ze,maxZoom:pt,preventScrolling:st,zoomOnScroll:rt,zoomOnPinch:Ke,zoomOnDoubleClick:Se,panOnScroll:$e,panOnScrollSpeed:Fe,panOnScrollMode:Ce,panOnDrag:ke,onPaneClick:It,onPaneMouseEnter:pn,onPaneMouseMove:Cn,onPaneMouseLeave:xn,onPaneScroll:to,onPaneContextMenu:Mn,paneClickDistance:kt,nodeClickDistance:Wt,onSelectionContextMenu:D,onSelectionStart:V,onSelectionEnd:W,onReconnect:un,onReconnectStart:ut,onReconnectEnd:mt,onEdgeContextMenu:dn,onEdgeDoubleClick:fr,onEdgeMouseEnter:dt,onEdgeMouseMove:no,onEdgeMouseLeave:ro,reconnectRadius:Ct,defaultMarkerColor:nt,noDragClassName:hn,noWheelClassName:Bn,noPanClassName:Mr,rfId:so,disableKeyboardA11y:Ko,nodeExtent:vt,viewport:ei,onViewportChange:ao}),X.jsx($T,{nodes:e,edges:t,defaultNodes:n,defaultEdges:r,onConnect:m,onConnectStart:b,onConnectEnd:C,onClickConnectStart:y,onClickConnectEnd:x,nodesDraggable:_e,autoPanOnNodeFocus:Re,nodesConnectable:Ie,nodesFocusable:Ge,edgesFocusable:We,edgesReconnectable:Te,elementsSelectable:Ne,elevateNodesOnSelect:En,elevateEdgesOnSelect:Zn,minZoom:Ze,maxZoom:pt,nodeExtent:vt,onNodesChange:Tt,onEdgesChange:wn,snapToGrid:fe,snapGrid:oe,connectionMode:q,translateExtent:tt,connectOnClick:Vn,defaultEdgeOptions:Sn,fitView:gr,fitViewOptions:Nn,onNodesDelete:L,onEdgesDelete:z,onDelete:B,onNodeDragStart:_,onNodeDrag:P,onNodeDragStop:T,onSelectionDrag:F,onSelectionDragStart:I,onSelectionDragStop:A,onMove:f,onMoveStart:g,onMoveEnd:p,noPanClassName:Mr,nodeOrigin:De,rfId:so,autoPanOnConnect:Oo,autoPanOnNodeDrag:oo,autoPanSpeed:Mi,onError:Qo,connectionRadius:da,isValidConnection:Zo,selectNodesOnDrag:me,nodeDragThreshold:Jo,connectionDragThreshold:io,onBeforeDelete:H,paneClickDistance:kt,debug:Fr,ariaLabelConfig:No}),X.jsx(wT,{onSelectionChange:j}),Kn,X.jsx(vT,{proOptions:Hn,position:pr}),X.jsx(mT,{rfId:so,disableKeyboardA11y:Ko})]})})}var qM=vy(UM);function GM(e){const[t,n]=M.useState(e),r=M.useCallback(o=>n(i=>fy(o,i)),[]);return[t,n,r]}function XM(e){const[t,n]=M.useState(e),r=M.useCallback(o=>n(i=>gy(o,i)),[]);return[t,n,r]}function YM({dimensions:e,lineWidth:t,variant:n,className:r}){return X.jsx("path",{strokeWidth:t,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`,className:on(["react-flow__background-pattern",n,r])})}function KM({radius:e,className:t}){return X.jsx("circle",{cx:e,cy:e,r:e,className:on(["react-flow__background-pattern","dots",t])})}var Ci;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(Ci||(Ci={}));const ZM={[Ci.Dots]:1,[Ci.Lines]:1,[Ci.Cross]:6},QM=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function eb({id:e,variant:t=Ci.Dots,gap:n=20,size:r,lineWidth:o=1,offset:i=0,color:a,bgColor:l,style:u,className:d,patternClassName:f}){const g=M.useRef(null),{transform:p,patternId:m}=gt(QM,Gt),b=r||ZM[t],C=t===Ci.Dots,y=t===Ci.Cross,x=Array.isArray(n)?n:[n,n],$=[x[0]*p[2]||1,x[1]*p[2]||1],w=b*p[2],E=Array.isArray(i)?i:[i,i],S=y?[w,w]:$,O=[E[0]*p[2]||1+S[0]/2,E[1]*p[2]||1+S[1]/2],_=`${m}${e||""}`;return X.jsxs("svg",{className:on(["react-flow__background",d]),style:{...u,...qc,"--xy-background-color-props":l,"--xy-background-pattern-color-props":a},ref:g,"data-testid":"rf__background",children:[X.jsx("pattern",{id:_,x:p[0]%$[0],y:p[1]%$[1],width:$[0],height:$[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${O[0]},-${O[1]})`,children:C?X.jsx(KM,{radius:w/2,className:f}):X.jsx(YM,{dimensions:S,lineWidth:o,variant:t,className:f})}),X.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${_})`})]})}eb.displayName="Background";const JM=M.memo(eb);function eA(){return X.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:X.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function tA(){return X.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:X.jsx("path",{d:"M0 0h32v4.2H0z"})})}function nA(){return X.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:X.jsx("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})})}function rA(){return X.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:X.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function oA(){return X.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:X.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}function Yc({children:e,className:t,...n}){return X.jsx("button",{type:"button",className:on(["react-flow__controls-button",t]),...n,children:e})}const iA=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom,ariaLabelConfig:e.ariaLabelConfig});function tb({style:e,showZoom:t=!0,showFitView:n=!0,showInteractive:r=!0,fitViewOptions:o,onZoomIn:i,onZoomOut:a,onFitView:l,onInteractiveChange:u,className:d,children:f,position:g="bottom-left",orientation:p="vertical","aria-label":m}){const b=Bt(),{isInteractive:C,minZoomReached:y,maxZoomReached:x,ariaLabelConfig:$}=gt(iA,Gt),{zoomIn:w,zoomOut:E,fitView:S}=bi(),O=()=>{w(),i==null||i()},_=()=>{E(),a==null||a()},P=()=>{S(o),l==null||l()},T=()=>{b.setState({nodesDraggable:!C,nodesConnectable:!C,elementsSelectable:!C}),u==null||u(!C)},L=p==="horizontal"?"horizontal":"vertical";return X.jsxs(Wc,{className:on(["react-flow__controls",L,d]),position:g,style:e,"data-testid":"rf__controls","aria-label":m??$["controls.ariaLabel"],children:[t&&X.jsxs(X.Fragment,{children:[X.jsx(Yc,{onClick:O,className:"react-flow__controls-zoomin",title:$["controls.zoomIn.ariaLabel"],"aria-label":$["controls.zoomIn.ariaLabel"],disabled:x,children:X.jsx(eA,{})}),X.jsx(Yc,{onClick:_,className:"react-flow__controls-zoomout",title:$["controls.zoomOut.ariaLabel"],"aria-label":$["controls.zoomOut.ariaLabel"],disabled:y,children:X.jsx(tA,{})})]}),n&&X.jsx(Yc,{className:"react-flow__controls-fitview",onClick:P,title:$["controls.fitView.ariaLabel"],"aria-label":$["controls.fitView.ariaLabel"],children:X.jsx(nA,{})}),r&&X.jsx(Yc,{className:"react-flow__controls-interactive",onClick:T,title:$["controls.interactive.ariaLabel"],"aria-label":$["controls.interactive.ariaLabel"],children:C?X.jsx(oA,{}):X.jsx(rA,{})}),f]})}tb.displayName="Controls";const aA=M.memo(tb);function sA({id:e,x:t,y:n,width:r,height:o,style:i,color:a,strokeColor:l,strokeWidth:u,className:d,borderRadius:f,shapeRendering:g,selected:p,onClick:m}){const{background:b,backgroundColor:C}=i||{},y=a||b||C;return X.jsx("rect",{className:on(["react-flow__minimap-node",{selected:p},d]),x:t,y:n,rx:f,ry:f,width:r,height:o,style:{fill:y,stroke:l,strokeWidth:u},shapeRendering:g,onClick:m?x=>m(x,e):void 0})}const lA=M.memo(sA),cA=e=>e.nodes.map(t=>t.id),eg=e=>e instanceof Function?e:()=>e;function uA({nodeStrokeColor:e,nodeColor:t,nodeClassName:n="",nodeBorderRadius:r=5,nodeStrokeWidth:o,nodeComponent:i=lA,onClick:a}){const l=gt(cA,Gt),u=eg(t),d=eg(e),f=eg(n),g=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return X.jsx(X.Fragment,{children:l.map(p=>X.jsx(fA,{id:p,nodeColorFunc:u,nodeStrokeColorFunc:d,nodeClassNameFunc:f,nodeBorderRadius:r,nodeStrokeWidth:o,NodeComponent:i,onClick:a,shapeRendering:g},p))})}function dA({id:e,nodeColorFunc:t,nodeStrokeColorFunc:n,nodeClassNameFunc:r,nodeBorderRadius:o,nodeStrokeWidth:i,shapeRendering:a,NodeComponent:l,onClick:u}){const{node:d,x:f,y:g,width:p,height:m}=gt(b=>{const{internals:C}=b.nodeLookup.get(e),y=C.userNode,{x,y:$}=C.positionAbsolute,{width:w,height:E}=Lo(y);return{node:y,x,y:$,width:w,height:E}},Gt);return!d||d.hidden||!g0(d)?null:X.jsx(l,{x:f,y:g,width:p,height:m,style:d.style,selected:!!d.selected,className:r(d),color:t(d),borderRadius:o,strokeColor:n(d),strokeWidth:i,shapeRendering:a,onClick:u,id:d.id})}const fA=M.memo(dA);var gA=M.memo(uA);const pA=200,hA=150,mA=e=>!e.hidden,vA=e=>{const t={x:-e.transform[0]/e.transform[2],y:-e.transform[1]/e.transform[2],width:e.width/e.transform[2],height:e.height/e.transform[2]};return{viewBB:t,boundingRect:e.nodeLookup.size>0?u0(Ks(e.nodeLookup,{filter:mA}),t):t,rfId:e.rfId,panZoom:e.panZoom,translateExtent:e.translateExtent,flowWidth:e.width,flowHeight:e.height,ariaLabelConfig:e.ariaLabelConfig}},yA="react-flow__minimap-desc";function nb({style:e,className:t,nodeStrokeColor:n,nodeColor:r,nodeClassName:o="",nodeBorderRadius:i=5,nodeStrokeWidth:a,nodeComponent:l,bgColor:u,maskColor:d,maskStrokeColor:f,maskStrokeWidth:g,position:p="bottom-right",onClick:m,onNodeClick:b,pannable:C=!1,zoomable:y=!1,ariaLabel:x,inversePan:$,zoomStep:w=10,offsetScale:E=5}){const S=Bt(),O=M.useRef(null),{boundingRect:_,viewBB:P,rfId:T,panZoom:L,translateExtent:z,flowWidth:B,flowHeight:j,ariaLabelConfig:I}=gt(vA,Gt),F=(e==null?void 0:e.width)??pA,A=(e==null?void 0:e.height)??hA,D=_.width/F,V=_.height/A,W=Math.max(D,V),H=W*F,q=W*A,Z=E*W,Y=_.x-(H-_.width)/2-Z,G=_.y-(q-_.height)/2-Z,K=H+Z*2,te=q+Z*2,ie=`${yA}-${T}`,ee=M.useRef(0),ae=M.useRef();ee.current=W,M.useEffect(()=>{if(O.current&&L)return ae.current=DI({domNode:O.current,panZoom:L,getTransform:()=>S.getState().transform,getViewScale:()=>ee.current}),()=>{var fe;(fe=ae.current)==null||fe.destroy()}},[L]),M.useEffect(()=>{var fe;(fe=ae.current)==null||fe.update({translateExtent:z,width:B,height:j,inversePan:$,pannable:C,zoomStep:w,zoomable:y})},[C,y,$,w,z,B,j]);const de=m?fe=>{var me;const[oe,he]=((me=ae.current)==null?void 0:me.pointer(fe))||[0,0];m(fe,{x:oe,y:he})}:void 0,ue=b?M.useCallback((fe,oe)=>{const he=S.getState().nodeLookup.get(oe).internals.userNode;b(fe,he)},[]):void 0,J=x??I["minimap.ariaLabel"];return X.jsx(Wc,{position:p,style:{...e,"--xy-minimap-background-color-props":typeof u=="string"?u:void 0,"--xy-minimap-mask-background-color-props":typeof d=="string"?d:void 0,"--xy-minimap-mask-stroke-color-props":typeof f=="string"?f:void 0,"--xy-minimap-mask-stroke-width-props":typeof g=="number"?g*W:void 0,"--xy-minimap-node-background-color-props":typeof r=="string"?r:void 0,"--xy-minimap-node-stroke-color-props":typeof n=="string"?n:void 0,"--xy-minimap-node-stroke-width-props":typeof a=="number"?a:void 0},className:on(["react-flow__minimap",t]),"data-testid":"rf__minimap",children:X.jsxs("svg",{width:F,height:A,viewBox:`${Y} ${G} ${K} ${te}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":ie,ref:O,onClick:de,children:[J&&X.jsx("title",{id:ie,children:J}),X.jsx(gA,{onClick:ue,nodeColor:r,nodeStrokeColor:n,nodeBorderRadius:i,nodeClassName:o,nodeStrokeWidth:a,nodeComponent:l}),X.jsx("path",{className:"react-flow__minimap-mask",d:`M${Y-Z},${G-Z}h${K+Z*2}v${te+Z*2}h${-K-Z*2}z
|
|
39
|
+
M${P.x},${P.y}h${P.width}v${P.height}h${-P.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}nb.displayName="MiniMap",M.memo(nb);const bA=e=>t=>e?`${Math.max(1/t.transform[2],1)}`:void 0,CA={[Da.Line]:"right",[Da.Handle]:"bottom-right"};function xA({nodeId:e,position:t,variant:n=Da.Handle,className:r,style:o=void 0,children:i,color:a,minWidth:l=10,minHeight:u=10,maxWidth:d=Number.MAX_VALUE,maxHeight:f=Number.MAX_VALUE,keepAspectRatio:g=!1,resizeDirection:p,autoScale:m=!0,shouldResize:b,onResizeStart:C,onResize:y,onResizeEnd:x}){const $=Sy(),w=typeof e=="string"?e:$,E=Bt(),S=M.useRef(null),O=n===Da.Handle,_=gt(M.useCallback(bA(O&&m),[O,m]),Gt),P=M.useRef(null),T=t??CA[n];M.useEffect(()=>{if(!(!S.current||!w))return P.current||(P.current=KI({domNode:S.current,nodeId:w,getStoreItems:()=>{const{nodeLookup:z,transform:B,snapGrid:j,snapToGrid:I,nodeOrigin:F,domNode:A}=E.getState();return{nodeLookup:z,transform:B,snapGrid:j,snapToGrid:I,nodeOrigin:F,paneDomNode:A}},onChange:(z,B)=>{const{triggerNodeChanges:j,nodeLookup:I,parentLookup:F,nodeOrigin:A}=E.getState(),D=[],V={x:z.x,y:z.y},W=I.get(w);if(W&&W.expandParent&&W.parentId){const H=W.origin??A,q=z.width??W.measured.width??0,Z=z.height??W.measured.height??0,Y={id:W.id,parentId:W.parentId,rect:{width:q,height:Z,...p0({x:z.x??W.position.x,y:z.y??W.position.y},{width:q,height:Z},W.parentId,I,H)}},G=Hf([Y],I,F,A);D.push(...G),V.x=z.x?Math.max(H[0]*q,z.x):void 0,V.y=z.y?Math.max(H[1]*Z,z.y):void 0}if(V.x!==void 0&&V.y!==void 0){const H={id:w,type:"position",position:{...V}};D.push(H)}if(z.width!==void 0&&z.height!==void 0){const q={id:w,type:"dimensions",resizing:!0,setAttributes:p?p==="horizontal"?"width":"height":!0,dimensions:{width:z.width,height:z.height}};D.push(q)}for(const H of B){const q={...H,type:"position"};D.push(q)}j(D)},onEnd:({width:z,height:B})=>{const j={id:w,type:"dimensions",resizing:!1,dimensions:{width:z,height:B}};E.getState().triggerNodeChanges([j])}})),P.current.update({controlPosition:T,boundaries:{minWidth:l,minHeight:u,maxWidth:d,maxHeight:f},keepAspectRatio:g,resizeDirection:p,onResizeStart:C,onResize:y,onResizeEnd:x,shouldResize:b}),()=>{var z;(z=P.current)==null||z.destroy()}},[T,l,u,d,f,g,C,y,x,b]);const L=T.split("-");return X.jsx("div",{className:on(["react-flow__resize-control","nodrag",...L,n,r]),ref:S,style:{...o,scale:_,...a&&{[O?"backgroundColor":"borderColor"]:a}},children:i})}M.memo(xA);const _n=[];for(let e=0;e<256;++e)_n.push((e+256).toString(16).slice(1));function wA(e,t=0){return(_n[e[t+0]]+_n[e[t+1]]+_n[e[t+2]]+_n[e[t+3]]+"-"+_n[e[t+4]]+_n[e[t+5]]+"-"+_n[e[t+6]]+_n[e[t+7]]+"-"+_n[e[t+8]]+_n[e[t+9]]+"-"+_n[e[t+10]]+_n[e[t+11]]+_n[e[t+12]]+_n[e[t+13]]+_n[e[t+14]]+_n[e[t+15]]).toLowerCase()}let tg;const SA=new Uint8Array(16);function EA(){if(!tg){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");tg=crypto.getRandomValues.bind(crypto)}return tg(SA)}const rb={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function $A(e,t,n){var o;if(rb.randomUUID&&!e)return rb.randomUUID();e=e||{};const r=e.random??((o=e.rng)==null?void 0:o.call(e))??EA();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,wA(r)}var Pt=(e=>(e.START="START",e.SPEAK="SPEAK",e.LISTEN="LISTEN",e.TRANSFER_CALL="TRANSFER_CALL",e.GET_DATA="GET_DATA",e.UPDATE_DATA="UPDATE_DATA",e.ADD_DATA="ADD_DATA",e.HTTP_REQUEST="HTTP_REQUEST",e.CONDITION="CONDITION",e.NOTE="NOTE",e))(Pt||{}),an=(e=>(e.RECORD="RECORD",e.MACHINE="MACHINE",e.PROMPT="PROMPT",e))(an||{});const ob={[Pt.SPEAK]:"Bot nói",[Pt.START]:"Bắt đầu"},_A={[Pt.START]:{},[Pt.SPEAK]:{type:an.MACHINE,record:{default_record:void 0,transcript_with_timestamp:void 0,detect_gender:!1,male_record:void 0,female_record:void 0,transcript_original:void 0,transcript_personalize:void 0},machine:{},prompt:{}}},OA=[{id:"start",type:Pt.START,position:{x:0,y:0},data:{title:ob[Pt.START]},deletable:!1}],NA=[];var ng=M.createContext({});function Le(){return Le=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Le.apply(null,arguments)}function ib(e){if(Array.isArray(e))return e}function PA(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,l=[],u=!0,d=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(f){d=!0,o=f}finally{try{if(!u&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw o}}return l}}function rg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function og(e,t){if(e){if(typeof e=="string")return rg(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rg(e,t):void 0}}function ab(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
40
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ee(e,t){return ib(e)||PA(e,t)||og(e,t)||ab()}function je(e){"@babel/helpers - typeof";return je=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},je(e)}function IA(e,t){if(je(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(je(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sb(e){var t=IA(e,"string");return je(t)=="symbol"?t:t+""}function re(e,t,n){return(t=sb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TA(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function sn(e,t){if(e==null)return{};var n,r,o=TA(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ig={exports:{}};/*!
|
|
40
41
|
Copyright (c) 2018 Jed Watson.
|
|
41
42
|
Licensed under the MIT License (MIT), see
|
|
42
43
|
http://jedwatson.github.io/classnames
|
|
43
|
-
*/var sh;function S2(){return sh||(sh=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(i=o(i,r(s)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return n.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var a="";for(var s in i)t.call(i,s)&&i[s]&&(a=o(a,s));return a}function o(i,a){return a?i?i+" "+a:i+a:i}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(uc)),uc.exports}var E2=S2();const re=mi(E2);function Ce(){return Ce=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ce.apply(null,arguments)}function ye(e){"@babel/helpers - typeof";return ye=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},ye(e)}var $2=Symbol.for("react.element"),O2=Symbol.for("react.transitional.element"),_2=Symbol.for("react.fragment");function lh(e){return e&&ye(e)==="object"&&(e.$$typeof===$2||e.$$typeof===O2)&&e.type===_2}function Zn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return T.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Zn(r)):lh(r)&&r.props?n=n.concat(Zn(r.props.children,t)):n.push(r))}),n}var dc={},fc=[],N2=function(t){fc.push(t)};function ho(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=fc.reduce(function(r,o){return o(r??"","warning")},t);n&&console.error("Warning: ".concat(n))}}function P2(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=fc.reduce(function(r,o){return o(r??"","note")},t);n&&console.warn("Note: ".concat(n))}}function ch(){dc={}}function uh(e,t,n){!t&&!dc[n]&&(e(!1,n),dc[n]=!0)}function et(e,t){uh(ho,e,t)}function T2(e,t){uh(P2,e,t)}et.preMessage=N2,et.resetWarned=ch,et.noteOnce=T2;function I2(e,t){if(ye(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ye(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dh(e){var t=I2(e,"string");return ye(t)=="symbol"?t:t+""}function X(e,t,n){return(t=dh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Q(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fh(Object(n),!0).forEach(function(r){X(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yi(e){return e instanceof HTMLElement||e instanceof SVGElement}function ph(e){return e&&ye(e)==="object"&&yi(e.nativeElement)?e.nativeElement:yi(e)?e:null}function Ya(e){var t=ph(e);if(t)return t;if(e instanceof T.Component){var n;return(n=hr.findDOMNode)===null||n===void 0?void 0:n.call(hr,e)}return null}var Ka={exports:{}},ke={};/**
|
|
44
|
-
* @license React
|
|
45
|
-
* react-is.production.min.js
|
|
46
|
-
*
|
|
47
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
48
|
-
*
|
|
49
|
-
* This source code is licensed under the MIT license found in the
|
|
50
|
-
* LICENSE file in the root directory of this source tree.
|
|
51
|
-
*/var gh;function M2(){if(gh)return ke;gh=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),v;v=Symbol.for("react.module.reference");function m(g){if(typeof g=="object"&&g!==null){var y=g.$$typeof;switch(y){case e:switch(g=g.type,g){case n:case o:case r:case c:case u:return g;default:switch(g=g&&g.$$typeof,g){case s:case a:case l:case f:case d:case i:return g;default:return y}}case t:return y}}}return ke.ContextConsumer=a,ke.ContextProvider=i,ke.Element=e,ke.ForwardRef=l,ke.Fragment=n,ke.Lazy=f,ke.Memo=d,ke.Portal=t,ke.Profiler=o,ke.StrictMode=r,ke.Suspense=c,ke.SuspenseList=u,ke.isAsyncMode=function(){return!1},ke.isConcurrentMode=function(){return!1},ke.isContextConsumer=function(g){return m(g)===a},ke.isContextProvider=function(g){return m(g)===i},ke.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},ke.isForwardRef=function(g){return m(g)===l},ke.isFragment=function(g){return m(g)===n},ke.isLazy=function(g){return m(g)===f},ke.isMemo=function(g){return m(g)===d},ke.isPortal=function(g){return m(g)===t},ke.isProfiler=function(g){return m(g)===o},ke.isStrictMode=function(g){return m(g)===r},ke.isSuspense=function(g){return m(g)===c},ke.isSuspenseList=function(g){return m(g)===u},ke.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===o||g===r||g===c||g===u||g===p||typeof g=="object"&&g!==null&&(g.$$typeof===f||g.$$typeof===d||g.$$typeof===i||g.$$typeof===a||g.$$typeof===l||g.$$typeof===v||g.getModuleId!==void 0)},ke.typeOf=m,ke}var He={};/**
|
|
52
|
-
* @license React
|
|
53
|
-
* react-is.development.js
|
|
54
|
-
*
|
|
55
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
56
|
-
*
|
|
57
|
-
* This source code is licensed under the MIT license found in the
|
|
58
|
-
* LICENSE file in the root directory of this source tree.
|
|
59
|
-
*/var hh;function A2(){return hh||(hh=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),v=!1,m=!1,g=!1,y=!1,x=!1,b;b=Symbol.for("react.module.reference");function C(Y){return!!(typeof Y=="string"||typeof Y=="function"||Y===n||Y===o||x||Y===r||Y===c||Y===u||y||Y===p||v||m||g||typeof Y=="object"&&Y!==null&&(Y.$$typeof===f||Y.$$typeof===d||Y.$$typeof===i||Y.$$typeof===a||Y.$$typeof===l||Y.$$typeof===b||Y.getModuleId!==void 0))}function w(Y){if(typeof Y=="object"&&Y!==null){var oe=Y.$$typeof;switch(oe){case e:var ne=Y.type;switch(ne){case n:case o:case r:case c:case u:return ne;default:var ce=ne&&ne.$$typeof;switch(ce){case s:case a:case l:case f:case d:case i:return ce;default:return oe}}case t:return oe}}}var $=a,S=i,E=e,_=l,P=n,A=f,L=d,D=t,O=o,M=r,N=c,I=u,j=!1,z=!1;function F(Y){return j||(j=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function R(Y){return z||(z=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function W(Y){return w(Y)===a}function H(Y){return w(Y)===i}function V(Y){return typeof Y=="object"&&Y!==null&&Y.$$typeof===e}function B(Y){return w(Y)===l}function U(Y){return w(Y)===n}function K(Y){return w(Y)===f}function G(Y){return w(Y)===d}function Z(Y){return w(Y)===t}function J(Y){return w(Y)===o}function ee(Y){return w(Y)===r}function q(Y){return w(Y)===c}function te(Y){return w(Y)===u}He.ContextConsumer=$,He.ContextProvider=S,He.Element=E,He.ForwardRef=_,He.Fragment=P,He.Lazy=A,He.Memo=L,He.Portal=D,He.Profiler=O,He.StrictMode=M,He.Suspense=N,He.SuspenseList=I,He.isAsyncMode=F,He.isConcurrentMode=R,He.isContextConsumer=W,He.isContextProvider=H,He.isElement=V,He.isForwardRef=B,He.isFragment=U,He.isLazy=K,He.isMemo=G,He.isPortal=Z,He.isProfiler=J,He.isStrictMode=ee,He.isSuspense=q,He.isSuspenseList=te,He.isValidElementType=C,He.typeOf=w}()),He}var mh;function D2(){return mh||(mh=1,process.env.NODE_ENV==="production"?Ka.exports=M2():Ka.exports=A2()),Ka.exports}var pc=D2();function gc(e,t,n){var r=h.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var F2=Number(T.version.split(".")[0]),hc=function(t,n){typeof t=="function"?t(n):ye(t)==="object"&&t&&"current"in t&&(t.current=n)},kt=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n.filter(Boolean);return o.length<=1?o[0]:function(i){n.forEach(function(a){hc(a,i)})}},Za=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return gc(function(){return kt.apply(void 0,n)},n,function(o,i){return o.length!==i.length||o.every(function(a,s){return a!==i[s]})})},mo=function(t){var n,r;if(!t)return!1;if(vh(t)&&F2>=19)return!0;var o=pc.isMemo(t)?t.type.type:t.type;return!(typeof o=="function"&&!((n=o.prototype)!==null&&n!==void 0&&n.render)&&o.$$typeof!==pc.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==pc.ForwardRef)};function vh(e){return T.isValidElement(e)&&!lh(e)}var bi=function(t){if(t&&vh(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},mc=h.createContext(null);function L2(e){var t=e.children,n=e.onBatchResize,r=h.useRef(0),o=h.useRef([]),i=h.useContext(mc),a=h.useCallback(function(s,l,c){r.current+=1;var u=r.current;o.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===r.current&&(n==null||n(o.current),o.current=[])}),i==null||i(s,l,c)},[n,i]);return h.createElement(mc.Provider,{value:a},t)}var yh=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(o,i){return o[0]===n?(r=i,!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),o=this.__entries__[r];return o&&o[1]},t.prototype.set=function(n,r){var o=e(this.__entries__,n);~o?this.__entries__[o][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,o=e(r,n);~o&&r.splice(o,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 o=0,i=this.__entries__;o<i.length;o++){var a=i[o];n.call(r,a[1],a[0])}},t}()}(),vc=typeof window<"u"&&typeof document<"u"&&window.document===document,Qa=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),j2=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Qa):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),z2=2;function R2(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&s()}function a(){j2(i)}function s(){var l=Date.now();if(n){if(l-o<z2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=l}return s}var V2=20,k2=["top","right","bottom","left","width","height","size","weight"],H2=typeof MutationObserver<"u",B2=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=R2(this.refresh.bind(this),V2)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!vc||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),H2?(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(){!vc||!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,o=k2.some(function(i){return!!~r.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),bh=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},vo=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Qa},Ch=es(0,0,0,0);function Ja(e){return parseFloat(e)||0}function wh(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,o){var i=e["border-"+o+"-width"];return r+Ja(i)},0)}function W2(e){for(var t=["top","right","bottom","left"],n={},r=0,o=t;r<o.length;r++){var i=o[r],a=e["padding-"+i];n[i]=Ja(a)}return n}function q2(e){var t=e.getBBox();return es(0,0,t.width,t.height)}function U2(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Ch;var r=vo(e).getComputedStyle(e),o=W2(r),i=o.left+o.right,a=o.top+o.bottom,s=Ja(r.width),l=Ja(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+i)!==t&&(s-=wh(r,"left","right")+i),Math.round(l+a)!==n&&(l-=wh(r,"top","bottom")+a)),!X2(e)){var c=Math.round(s+i)-t,u=Math.round(l+a)-n;Math.abs(c)!==1&&(s-=c),Math.abs(u)!==1&&(l-=u)}return es(o.left,o.top,s,l)}var G2=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof vo(e).SVGGraphicsElement}:function(e){return e instanceof vo(e).SVGElement&&typeof e.getBBox=="function"}}();function X2(e){return e===vo(e).document.documentElement}function Y2(e){return vc?G2(e)?q2(e):U2(e):Ch}function K2(e){var t=e.x,n=e.y,r=e.width,o=e.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(i.prototype);return bh(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}function es(e,t,n,r){return{x:e,y:t,width:n,height:r}}var Z2=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=es(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=Y2(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),Q2=function(){function e(t,n){var r=K2(n);bh(this,{target:t,contentRect:r})}return e}(),J2=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new yh,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=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 vo(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new Z2(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 vo(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 Q2(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}(),xh=typeof WeakMap<"u"?new WeakMap:new yh,Sh=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=B2.getInstance(),r=new J2(t,n,this);xh.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Sh.prototype[e]=function(){var t;return(t=xh.get(this))[e].apply(t,arguments)}});var eO=function(){return typeof Qa.ResizeObserver<"u"?Qa.ResizeObserver:Sh}(),Qn=new Map;function Eh(e){e.forEach(function(t){var n,r=t.target;(n=Qn.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var $h=new eO(Eh);process.env.NODE_ENV,process.env.NODE_ENV;function tO(e,t){Qn.has(e)||(Qn.set(e,new Set),$h.observe(e)),Qn.get(e).add(t)}function nO(e,t){Qn.has(e)&&(Qn.get(e).delete(t),Qn.get(e).size||($h.unobserve(e),Qn.delete(e)))}function dt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Oh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,dh(r.key),r)}}function ft(e,t,n){return t&&Oh(e.prototype,t),n&&Oh(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ci(e,t){return Ci=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Ci(e,t)}function hn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ci(e,t)}function kr(e){return kr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},kr(e)}function ts(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ts=function(){return!!e})()}function we(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _h(e,t){if(t&&(ye(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return we(e)}function Pn(e){var t=ts();return function(){var n,r=kr(e);if(t){var o=kr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _h(this,n)}}var rO=function(e){hn(n,e);var t=Pn(n);function n(){return dt(this,n),t.apply(this,arguments)}return ft(n,[{key:"render",value:function(){return this.props.children}}]),n}(h.Component);function oO(e,t){var n=e.children,r=e.disabled,o=h.useRef(null),i=h.useRef(null),a=h.useContext(mc),s=typeof n=="function",l=s?n(o):n,c=h.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&h.isValidElement(l)&&mo(l),d=u?bi(l):null,f=Za(d,o),p=function(){var y;return Ya(o.current)||(o.current&&ye(o.current)==="object"?Ya((y=o.current)===null||y===void 0?void 0:y.nativeElement):null)||Ya(i.current)};h.useImperativeHandle(t,function(){return p()});var v=h.useRef(e);v.current=e;var m=h.useCallback(function(g){var y=v.current,x=y.onResize,b=y.data,C=g.getBoundingClientRect(),w=C.width,$=C.height,S=g.offsetWidth,E=g.offsetHeight,_=Math.floor(w),P=Math.floor($);if(c.current.width!==_||c.current.height!==P||c.current.offsetWidth!==S||c.current.offsetHeight!==E){var A={width:_,height:P,offsetWidth:S,offsetHeight:E};c.current=A;var L=S===Math.round(w)?w:S,D=E===Math.round($)?$:E,O=Q(Q({},A),{},{offsetWidth:L,offsetHeight:D});a==null||a(O,g,b),x&&Promise.resolve().then(function(){x(O,g)})}},[]);return h.useEffect(function(){var g=p();return g&&!r&&tO(g,m),function(){return nO(g,m)}},[o.current,r]),h.createElement(rO,{ref:i},u?h.cloneElement(l,{ref:f}):l)}var Nh=h.forwardRef(oO);process.env.NODE_ENV!=="production"&&(Nh.displayName="SingleObserver");var iO="rc-observer-key";function aO(e,t){var n=e.children,r=typeof n=="function"?[n]:Zn(n);return process.env.NODE_ENV!=="production"&&(r.length>1?ho(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):r.length===0&&ho(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),r.map(function(o,i){var a=(o==null?void 0:o.key)||"".concat(iO,"-").concat(i);return h.createElement(Nh,Ce({},e,{key:a,ref:i===0?t:void 0}),o)})}var yo=h.forwardRef(aO);process.env.NODE_ENV!=="production"&&(yo.displayName="ResizeObserver"),yo.Collection=L2;function yc(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function sO(e){if(Array.isArray(e))return yc(e)}function Ph(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bc(e,t){if(e){if(typeof e=="string")return yc(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yc(e,t):void 0}}function lO(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
60
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function de(e){return sO(e)||Ph(e)||bc(e)||lO()}var Th=function(t){return+setTimeout(t,16)},Ih=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(Th=function(t){return window.requestAnimationFrame(t)},Ih=function(t){return window.cancelAnimationFrame(t)});var Mh=0,ns=new Map;function Ah(e){ns.delete(e)}var Ft=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Mh+=1;var r=Mh;function o(i){if(i===0)Ah(r),t();else{var a=Th(function(){o(i-1)});ns.set(r,a)}}return o(n),r};Ft.cancel=function(e){var t=ns.get(e);return Ah(e),Ih(t)},process.env.NODE_ENV!=="production"&&(Ft.ids=function(){return ns});function Dh(e){if(Array.isArray(e))return e}function cO(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function Fh(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
61
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ae(e,t){return Dh(e)||cO(e,t)||bc(e,t)||Fh()}function wi(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=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(o){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 Nt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function uO(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 Lh="data-rc-order",jh="data-rc-priority",dO="rc-util-key",Cc=new Map;function zh(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):dO}function rs(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function fO(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function wc(e){return Array.from((Cc.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Rh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Nt())return null;var n=t.csp,r=t.prepend,o=t.priority,i=o===void 0?0:o,a=fO(r),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(Lh,a),s&&i&&l.setAttribute(jh,"".concat(i)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=rs(t),u=c.firstChild;if(r){if(s){var d=(t.styles||wc(c)).filter(function(f){if(!["prepend","prependQueue"].includes(f.getAttribute(Lh)))return!1;var p=Number(f.getAttribute(jh)||0);return i>=p});if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function Vh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=rs(t);return(t.styles||wc(n)).find(function(r){return r.getAttribute(zh(t))===e})}function xi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Vh(e,t);if(n){var r=rs(t);r.removeChild(n)}}function pO(e,t){var n=Cc.get(e);if(!n||!uO(document,n)){var r=Rh("",t),o=r.parentNode;Cc.set(e,o),e.removeChild(r)}}function Jn(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=rs(n),o=wc(r),i=Q(Q({},n),{},{styles:o});pO(r,i);var a=Vh(t,i);if(a){var s,l;if((s=i.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((l=i.csp)===null||l===void 0?void 0:l.nonce)){var c;a.nonce=(c=i.csp)===null||c===void 0?void 0:c.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var u=Rh(e,i);return u.setAttribute(zh(i),t),u}function gO(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function vt(e,t){if(e==null)return{};var n,r,o=gO(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function xc(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(i,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(i);if(et(!l,"Warning: There may be circular references"),l)return!1;if(i===a)return!0;if(n&&s>1)return!1;r.add(i);var c=s+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var u=0;u<i.length;u++)if(!o(i[u],a[u],c))return!1;return!0}if(i&&a&&ye(i)==="object"&&ye(a)==="object"){var d=Object.keys(i);return d.length!==Object.keys(a).length?!1:d.every(function(f){return o(i[f],a[f],c)})}return!1}return o(e,t)}var hO="%";function Sc(e){return e.join(hO)}var mO=function(){function e(t){dt(this,e),X(this,"instanceId",void 0),X(this,"cache",new Map),this.instanceId=t}return ft(e,[{key:"get",value:function(n){return this.opGet(Sc(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(Sc(n),r)}},{key:"opUpdate",value:function(n,r){var o=this.cache.get(n),i=r(o);i===null?this.cache.delete(n):this.cache.set(n,i)}}]),e}(),bo="data-token-hash",mn="data-css-hash",vO="data-cache-path",Cr="__cssinjs_instance__";function yO(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(mn,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[Cr]=o[Cr]||e,o[Cr]===e&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat(mn,"]"))).forEach(function(o){var i=o.getAttribute(mn);if(r[i]){if(o[Cr]===e){var a;(a=o.parentNode)===null||a===void 0||a.removeChild(o)}}else r[i]=!0})}return new mO(e)}var Si=h.createContext({hashPriority:"low",cache:yO(),defaultCache:!0});function bO(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var Ec=function(){function e(){dt(this,e),X(this,"cache",void 0),X(this,"keys",void 0),X(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return ft(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,o,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return n.forEach(function(s){if(!a)a=void 0;else{var l;a=(l=a)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(r=a)!==null&&r!==void 0&&r.value&&i&&(a.value[1]=this.cacheCallTimes++),(o=a)===null||o===void 0?void 0:o.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 o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(c,u){var d=ae(c,2),f=d[1];return o.internalGet(u)[1]<f?[u,o.internalGet(u)[1]]:c},[this.keys[0],this.cacheCallTimes]),a=ae(i,1),s=a[0];this.delete(s)}this.keys.push(n)}var l=this.cache;n.forEach(function(c,u){if(u===n.length-1)l.set(c,{value:[r,o.cacheCallTimes++]});else{var d=l.get(c);d?d.map||(d.map=new Map):l.set(c,{map:new Map}),l=l.get(c).map}})}},{key:"deleteByPath",value:function(n,r){var o=n.get(r[0]);if(r.length===1){var i;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(i=o.value)===null||i===void 0?void 0:i[0]}var a=this.deleteByPath(o.map,r.slice(1));return(!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),a}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!bO(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();X(Ec,"MAX_CACHE_SIZE",20),X(Ec,"MAX_CACHE_OFFSET",5);var kh=0,Hh=function(){function e(t){dt(this,e),X(this,"derivatives",void 0),X(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=kh,t.length===0&&ho(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),kh+=1}return ft(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),$c=new Ec;function Oc(e){var t=Array.isArray(e)?e:[e];return $c.has(t)||$c.set(t,new Hh(t)),$c.get(t)}var CO=new WeakMap,_c={};function wO(e,t){for(var n=CO,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(_c)||n.set(_c,e()),n.get(_c)}var Bh=new WeakMap;function Ei(e){var t=Bh.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof Hh?t+=r.id:r&&ye(r)==="object"?t+=Ei(r):t+=r}),t=wi(t),Bh.set(e,t)),t}function Wh(e,t){return wi("".concat(t,"_").concat(Ei(e)))}var Nc=Nt();function fe(e){return typeof e=="number"?"".concat(e,"px"):e}function os(e,t,n){var r,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(i)return e;var a=Q(Q({},o),{},(r={},X(r,bo,t),X(r,mn,n),r)),s=Object.keys(a).map(function(l){var c=a[l];return c?"".concat(l,'="').concat(c,'"'):null}).filter(function(l){return l}).join(" ");return"<style ".concat(s,">").concat(e,"</style>")}var is=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()},xO=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(o){var i=ae(o,2),a=i[0],s=i[1];return"".concat(a,":").concat(s,";")}).join(""),"}"):""},qh=function(t,n,r){var o={},i={};return Object.entries(t).forEach(function(a){var s,l,c=ae(a,2),u=c[0],d=c[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[u])i[u]=d;else if((typeof d=="string"||typeof d=="number")&&!(r!=null&&(l=r.ignore)!==null&&l!==void 0&&l[u])){var f,p=is(u,r==null?void 0:r.prefix);o[p]=typeof d=="number"&&!(r!=null&&(f=r.unitless)!==null&&f!==void 0&&f[u])?"".concat(d,"px"):String(d),i[u]="var(".concat(p,")")}}),[i,xO(o,n,{scope:r==null?void 0:r.scope})]},Uh=process.env.NODE_ENV!=="test"&&Nt()?h.useLayoutEffect:h.useEffect,Ke=function(t,n){var r=h.useRef(!0);Uh(function(){return t(r.current)},n),Uh(function(){return r.current=!1,function(){r.current=!0}},[])},Gh=function(t,n){Ke(function(r){if(!r)return t()},n)},SO=Q({},h),Xh=SO.useInsertionEffect,EO=function(t,n,r){h.useMemo(t,r),Ke(function(){return n(!0)},r)},$O=Xh?function(e,t,n){return Xh(function(){return e(),t()},n)}:EO,OO=Q({},h),_O=OO.useInsertionEffect,NO=function(t){var n=[],r=!1;function o(i){if(r){process.env.NODE_ENV!=="production"&&ho(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}n.push(i)}return h.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(i){return i()})}},t),o},PO=function(){return function(t){t()}},TO=typeof _O<"u"?NO:PO;function IO(){return!1}var Pc=!1;function MO(){return Pc}const AO=process.env.NODE_ENV==="production"?IO:MO;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var as=typeof globalThis<"u"?globalThis:typeof window<"u"?window:null;if(as&&typeof as.webpackHotUpdate=="function"){var DO=as.webpackHotUpdate;as.webpackHotUpdate=function(){return Pc=!0,setTimeout(function(){Pc=!1},0),DO.apply(void 0,arguments)}}}function Tc(e,t,n,r,o){var i=h.useContext(Si),a=i.cache,s=[e].concat(de(t)),l=Sc(s),c=TO([l]),u=AO(),d=function(m){a.opUpdate(l,function(g){var y=g||[void 0,void 0],x=ae(y,2),b=x[0],C=b===void 0?0:b,w=x[1],$=w;process.env.NODE_ENV!=="production"&&w&&u&&(r==null||r($,u),$=null);var S=$||n(),E=[C,S];return m?m(E):E})};h.useMemo(function(){d()},[l]);var f=a.opGet(l);process.env.NODE_ENV!=="production"&&!f&&(d(),f=a.opGet(l));var p=f[1];return $O(function(){o==null||o(p)},function(v){return d(function(m){var g=ae(m,2),y=g[0],x=g[1];return v&&y===0&&(o==null||o(p)),[y+1,x]}),function(){a.opUpdate(l,function(m){var g=m||[],y=ae(g,2),x=y[0],b=x===void 0?0:x,C=y[1],w=b-1;return w===0?(c(function(){(v||!a.opGet(l))&&(r==null||r(C,!1))}),null):[b-1,C]})}},[l]),p}var FO={},LO=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",Hr=new Map;function jO(e){Hr.set(e,(Hr.get(e)||0)+1)}function zO(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(bo,'="').concat(e,'"]'));n.forEach(function(r){if(r[Cr]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var RO=0;function VO(e,t){Hr.set(e,(Hr.get(e)||0)-1);var n=Array.from(Hr.keys()),r=n.filter(function(o){var i=Hr.get(o)||0;return i<=0});n.length-r.length>RO&&r.forEach(function(o){zO(o,t),Hr.delete(o)})}var kO=function(t,n,r,o){var i=r.getDerivativeToken(t),a=Q(Q({},i),n);return o&&(a=o(a)),a},Yh="token";function HO(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=T.useContext(Si),o=r.cache.instanceId,i=r.container,a=n.salt,s=a===void 0?"":a,l=n.override,c=l===void 0?FO:l,u=n.formatToken,d=n.getComputedToken,f=n.cssVar,p=wO(function(){return Object.assign.apply(Object,[{}].concat(de(t)))},t),v=Ei(p),m=Ei(c),g=f?Ei(f):"",y=Tc(Yh,[s,e.id,v,m,g],function(){var x,b=d?d(p,c,e):kO(p,c,e,u),C=Q({},b),w="";if(f){var $=qh(b,f.key,{prefix:f.prefix,ignore:f.ignore,unitless:f.unitless,preserve:f.preserve}),S=ae($,2);b=S[0],w=S[1]}var E=Wh(b,s);b._tokenKey=E,C._tokenKey=Wh(C,s);var _=(x=f==null?void 0:f.key)!==null&&x!==void 0?x:E;b._themeKey=_,jO(_);var P="".concat(LO,"-").concat(wi(E));return b._hashId=P,[b,P,C,w,(f==null?void 0:f.key)||""]},function(x){VO(x[0]._themeKey,o)},function(x){var b=ae(x,4),C=b[0],w=b[3];if(f&&w){var $=Jn(w,wi("css-variables-".concat(C._themeKey)),{mark:mn,prepend:"queue",attachTo:i,priority:-999});$[Cr]=o,$.setAttribute(bo,C._themeKey)}});return y}var BO=function(t,n,r){var o=ae(t,5),i=o[2],a=o[3],s=o[4],l=r||{},c=l.plain;if(!a)return null;var u=i._tokenKey,d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},p=os(a,s,u,f,c);return[d,u,p]},WO={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},Kh="comm",Zh="rule",Qh="decl",qO="@import",UO="@namespace",GO="@keyframes",XO="@layer",Jh=Math.abs,Ic=String.fromCharCode;function em(e){return e.trim()}function ss(e,t,n){return e.replace(t,n)}function YO(e,t,n){return e.indexOf(t,n)}function Co(e,t){return e.charCodeAt(t)|0}function wo(e,t,n){return e.slice(t,n)}function Tn(e){return e.length}function KO(e){return e.length}function ls(e,t){return t.push(e),e}var cs=1,xo=1,tm=0,rn=0,yt=0,So="";function Mc(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:cs,column:xo,length:a,return:"",siblings:s}}function ZO(){return yt}function QO(){return yt=rn>0?Co(So,--rn):0,xo--,yt===10&&(xo=1,cs--),yt}function vn(){return yt=rn<tm?Co(So,rn++):0,xo++,yt===10&&(xo=1,cs++),yt}function wr(){return Co(So,rn)}function us(){return rn}function ds(e,t){return wo(So,e,t)}function $i(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function JO(e){return cs=xo=1,tm=Tn(So=e),rn=0,[]}function e_(e){return So="",e}function Ac(e){return em(ds(rn-1,Dc(e===91?e+2:e===40?e+1:e)))}function t_(e){for(;(yt=wr())&&yt<33;)vn();return $i(e)>2||$i(yt)>3?"":" "}function n_(e,t){for(;--t&&vn()&&!(yt<48||yt>102||yt>57&&yt<65||yt>70&&yt<97););return ds(e,us()+(t<6&&wr()==32&&vn()==32))}function Dc(e){for(;vn();)switch(yt){case e:return rn;case 34:case 39:e!==34&&e!==39&&Dc(yt);break;case 40:e===41&&Dc(e);break;case 92:vn();break}return rn}function r_(e,t){for(;vn()&&e+yt!==57;)if(e+yt===84&&wr()===47)break;return"/*"+ds(t,rn-1)+"*"+Ic(e===47?e:vn())}function o_(e){for(;!$i(wr());)vn();return ds(e,rn)}function i_(e){return e_(fs("",null,null,null,[""],e=JO(e),0,[0],e))}function fs(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,p=0,v=0,m=1,g=1,y=1,x=0,b="",C=o,w=i,$=r,S=b;g;)switch(v=x,x=vn()){case 40:if(v!=108&&Co(S,d-1)==58){YO(S+=ss(Ac(x),"&","&\f"),"&\f",Jh(c?s[c-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:S+=Ac(x);break;case 9:case 10:case 13:case 32:S+=t_(v);break;case 92:S+=n_(us()-1,7);continue;case 47:switch(wr()){case 42:case 47:ls(a_(r_(vn(),us()),t,n,l),l),($i(v||1)==5||$i(wr()||1)==5)&&Tn(S)&&wo(S,-1,void 0)!==" "&&(S+=" ");break;default:S+="/"}break;case 123*m:s[c++]=Tn(S)*y;case 125*m:case 59:case 0:switch(x){case 0:case 125:g=0;case 59+u:y==-1&&(S=ss(S,/\f/g,"")),p>0&&(Tn(S)-d||m===0&&v===47)&&ls(p>32?rm(S+";",r,n,d-1,l):rm(ss(S," ","")+";",r,n,d-2,l),l);break;case 59:S+=";";default:if(ls($=nm(S,t,n,c,u,o,s,b,C=[],w=[],d,i),i),x===123)if(u===0)fs(S,t,$,$,C,i,d,s,w);else{switch(f){case 99:if(Co(S,3)===110)break;case 108:if(Co(S,2)===97)break;default:u=0;case 100:case 109:case 115:}u?fs(e,$,$,r&&ls(nm(e,$,$,0,0,o,s,b,o,C=[],d,w),w),o,w,d,s,r?C:w):fs(S,$,$,$,[""],w,0,s,w)}}c=u=p=0,m=y=1,b=S="",d=a;break;case 58:d=1+Tn(S),p=v;default:if(m<1){if(x==123)--m;else if(x==125&&m++==0&&QO()==125)continue}switch(S+=Ic(x),x*m){case 38:y=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(Tn(S)-1)*y,y=1;break;case 64:wr()===45&&(S+=Ac(vn())),f=wr(),u=d=Tn(b=S+=o_(us())),x++;break;case 45:v===45&&Tn(S)==2&&(m=0)}}return i}function nm(e,t,n,r,o,i,a,s,l,c,u,d){for(var f=o-1,p=o===0?i:[""],v=KO(p),m=0,g=0,y=0;m<r;++m)for(var x=0,b=wo(e,f+1,f=Jh(g=a[m])),C=e;x<v;++x)(C=em(g>0?p[x]+" "+b:ss(b,/&\f/g,p[x])))&&(l[y++]=C);return Mc(e,t,n,o===0?Zh:s,l,c,u,d)}function a_(e,t,n,r){return Mc(e,t,n,Kh,Ic(ZO()),wo(e,2,-2),0,r)}function rm(e,t,n,r,o){return Mc(e,t,n,Qh,wo(e,0,r),wo(e,r+1,-1),r,o)}function Fc(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function s_(e,t,n,r){switch(e.type){case XO:if(e.children.length)break;case qO:case UO:case Qh:return e.return=e.return||e.value;case Kh:return"";case GO:return e.return=e.value+"{"+Fc(e.children,r)+"}";case Zh:if(!Tn(e.value=e.props.join(",")))return""}return Tn(n=Fc(e.children,r))?e.return=e.value+"{"+n+"}":""}function om(e,t){var n=t.path,r=t.parentSelectors;et(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}var l_=function(t,n,r){if(t==="content"){var o=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,i=["normal","none","initial","inherit","unset"];(typeof n!="string"||i.indexOf(n)===-1&&!o.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'"))&&om("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(n,"\"'`."),r)}},c_=function(t,n,r){t==="animation"&&r.hashId&&n!=="none"&&om("You seem to be using hashed animation '".concat(n,"', in which case 'animationName' with Keyframe as value is recommended."),r)},im="data-ant-cssinjs-cache-path",am="_FILE_STYLE__",Br,sm=!0;function u_(){if(!Br&&(Br={},Nt())){var e=document.createElement("div");e.className=im,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(o){var i=o.split(":"),a=ae(i,2),s=a[0],l=a[1];Br[s]=l});var n=document.querySelector("style[".concat(im,"]"));if(n){var r;sm=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function d_(e){return u_(),!!Br[e]}function f_(e){var t=Br[e],n=null;if(t&&Nt())if(sm)n=am;else{var r=document.querySelector("style[".concat(mn,'="').concat(Br[e],'"]'));r?n=r.innerHTML:delete Br[e]}return[n,t]}var lm="_skip_check_",cm="_multi_value_";function ps(e){var t=Fc(i_(e),s_);return t.replace(/\{%%%\:[^;];}/g,";")}function p_(e){return ye(e)==="object"&&e&&(lm in e||cm in e)}function um(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,i=e.split(",").map(function(a){var s,l=a.trim().split(/\s+/),c=l[0]||"",u=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(u).concat(o).concat(c.slice(u.length)),[c].concat(de(l.slice(1))).join(" ")});return i.join(",")}var g_=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,s=n.hashId,l=n.layer,c=n.path,u=n.hashPriority,d=n.transformers,f=d===void 0?[]:d,p=n.linters,v=p===void 0?[]:p,m="",g={};function y(C){var w=C.getName(s);if(!g[w]){var $=e(C.style,n,{root:!1,parentSelectors:a}),S=ae($,1),E=S[0];g[w]="@keyframes ".concat(C.getName(s)).concat(E)}}function x(C){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return C.forEach(function($){Array.isArray($)?x($,w):$&&w.push($)}),w}var b=x(Array.isArray(t)?t:[t]);return b.forEach(function(C){var w=typeof C=="string"&&!o?{}:C;if(typeof w=="string")m+="".concat(w,`
|
|
62
|
-
`);else if(w._keyframe)y(w);else{var $=f.reduce(function(S,E){var _;return(E==null||(_=E.visit)===null||_===void 0?void 0:_.call(E,S))||S},w);Object.keys($).forEach(function(S){var E=$[S];if(ye(E)==="object"&&E&&(S!=="animationName"||!E._keyframe)&&!p_(E)){var _=!1,P=S.trim(),A=!1;(o||i)&&s?P.startsWith("@")?_=!0:P==="&"?P=um("",s,u):P=um(S,s,u):o&&!s&&(P==="&"||P==="")&&(P="",A=!0);var L=e(E,n,{root:A,injectHash:_,parentSelectors:[].concat(de(a),[P])}),D=ae(L,2),O=D[0],M=D[1];g=Q(Q({},g),M),m+="".concat(P).concat(O)}else{let j=function(z,F){process.env.NODE_ENV!=="production"&&(ye(E)!=="object"||!(E!=null&&E[lm]))&&[l_,c_].concat(de(v)).forEach(function(H){return H(z,F,{path:c,hashId:s,parentSelectors:a})});var R=z.replace(/[A-Z]/g,function(H){return"-".concat(H.toLowerCase())}),W=F;!WO[z]&&typeof W=="number"&&W!==0&&(W="".concat(W,"px")),z==="animationName"&&F!==null&&F!==void 0&&F._keyframe&&(y(F),W=F.getName(s)),m+="".concat(R,":").concat(W,";")};var N,I=(N=E==null?void 0:E.value)!==null&&N!==void 0?N:E;ye(E)==="object"&&E!==null&&E!==void 0&&E[cm]&&Array.isArray(I)?I.forEach(function(z){j(S,z)}):j(S,I)}})}}),o?l&&(m&&(m="@layer ".concat(l.name," {").concat(m,"}")),l.dependencies&&(g["@layer ".concat(l.name)]=l.dependencies.map(function(C){return"@layer ".concat(C,", ").concat(l.name,";")}).join(`
|
|
63
|
-
`))):m="{".concat(m,"}"),[m,g]};function dm(e,t){return wi("".concat(e.join("%")).concat(t))}function h_(){return null}var fm="style";function Lc(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=h.useContext(Si),d=u.autoClear,f=u.mock,p=u.defaultCache,v=u.hashPriority,m=u.container,g=u.ssrInline,y=u.transformers,x=u.linters,b=u.cache,C=u.layer,w=n._tokenKey,$=[w];C&&$.push("layer"),$.push.apply($,de(r));var S=Nc;process.env.NODE_ENV!=="production"&&f!==void 0&&(S=f==="client");var E=Tc(fm,$,function(){var D=$.join("|");if(d_(D)){var O=f_(D),M=ae(O,2),N=M[0],I=M[1];if(N)return[N,w,I,{},s,c]}var j=t(),z=g_(j,{hashId:o,hashPriority:v,layer:C?i:void 0,path:r.join("-"),transformers:y,linters:x}),F=ae(z,2),R=F[0],W=F[1],H=ps(R),V=dm($,H);return[H,w,V,W,s,c]},function(D,O){var M=ae(D,3),N=M[2];(O||d)&&Nc&&xi(N,{mark:mn})},function(D){var O=ae(D,4),M=O[0];O[1];var N=O[2],I=O[3];if(S&&M!==am){var j={mark:mn,prepend:C?!1:"queue",attachTo:m,priority:c},z=typeof a=="function"?a():a;z&&(j.csp={nonce:z});var F=[],R=[];Object.keys(I).forEach(function(H){H.startsWith("@layer")?F.push(H):R.push(H)}),F.forEach(function(H){Jn(ps(I[H]),"_layer-".concat(H),Q(Q({},j),{},{prepend:!0}))});var W=Jn(M,N,j);W[Cr]=b.instanceId,W.setAttribute(bo,w),process.env.NODE_ENV!=="production"&&W.setAttribute(vO,$.join("|")),R.forEach(function(H){Jn(ps(I[H]),"_effect-".concat(H),j)})}}),_=ae(E,3),P=_[0],A=_[1],L=_[2];return function(D){var O;if(!g||S||!p)O=h.createElement(h_,null);else{var M;O=h.createElement("style",Ce({},(M={},X(M,bo,A),X(M,mn,L),M),{dangerouslySetInnerHTML:{__html:P}}))}return h.createElement(h.Fragment,null,O,D)}}var m_=function(t,n,r){var o=ae(t,6),i=o[0],a=o[1],s=o[2],l=o[3],c=o[4],u=o[5],d=r||{},f=d.plain;if(c)return null;var p=i,v={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return p=os(i,a,s,v,f),l&&Object.keys(l).forEach(function(m){if(!n[m]){n[m]=!0;var g=ps(l[m]),y=os(g,a,"_effect-".concat(m),v,f);m.startsWith("@layer")?p=y+p:p+=y}}),[u,s,p]},pm="cssVar",v_=function(t,n){var r=t.key,o=t.prefix,i=t.unitless,a=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,u=T.useContext(Si),d=u.cache.instanceId,f=u.container,p=s._tokenKey,v=[].concat(de(t.path),[r,c,p]),m=Tc(pm,v,function(){var g=n(),y=qh(g,r,{prefix:o,unitless:i,ignore:a,scope:c}),x=ae(y,2),b=x[0],C=x[1],w=dm(v,C);return[b,C,w,r]},function(g){var y=ae(g,3),x=y[2];Nc&&xi(x,{mark:mn})},function(g){var y=ae(g,3),x=y[1],b=y[2];if(x){var C=Jn(x,b,{mark:mn,prepend:"queue",attachTo:f,priority:-999});C[Cr]=d,C.setAttribute(bo,r)}});return m},y_=function(t,n,r){var o=ae(t,4),i=o[1],a=o[2],s=o[3],l=r||{},c=l.plain;if(!i)return null;var u=-999,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},f=os(i,s,a,d,c);return[u,a,f]},Oi;Oi={},X(Oi,fm,m_),X(Oi,Yh,BO),X(Oi,pm,y_);var St=function(){function e(t,n){dt(this,e),X(this,"name",void 0),X(this,"style",void 0),X(this,"_keyframe",!0),this.name=t,this.style=n}return ft(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 Eo(e){return e.notSplit=!0,e}Eo(["borderTop","borderBottom"]),Eo(["borderTop"]),Eo(["borderBottom"]),Eo(["borderLeft","borderRight"]),Eo(["borderLeft"]),Eo(["borderRight"]);var jc=T.createContext({});function b_(e){return Dh(e)||Ph(e)||bc(e)||Fh()}function on(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function gm(e,t,n,r){if(!t.length)return n;var o=b_(t),i=o[0],a=o.slice(1),s;return!e&&typeof i=="number"?s=[]:Array.isArray(e)?s=de(e):s=Q({},e),r&&n===void 0&&a.length===1?delete s[i][a[0]]:s[i]=gm(s[i],a,n,r),s}function an(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!on(e,t.slice(0,-1))?e:gm(e,t,n,r)}function C_(e){return ye(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function hm(e){return Array.isArray(e)?[]:{}}var w_=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function $o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=hm(t[0]);return t.forEach(function(o){function i(a,s){var l=new Set(s),c=on(o,a),u=Array.isArray(c);if(u||C_(c)){if(!l.has(c)){l.add(c);var d=on(r,a);u?r=an(r,a,[]):(!d||ye(d)!=="object")&&(r=an(r,a,hm(c))),w_(c).forEach(function(f){i([].concat(de(a),[f]),l)})}}else r=an(r,a,c)}i([])}),r}function mm(){}let er=null;function x_(){er=null,ch()}let vm=mm;process.env.NODE_ENV!=="production"&&(vm=(e,t,n)=>{et(e,`[antd: ${t}] ${n}`),process.env.NODE_ENV==="test"&&x_()});const Wr=vm,ym=h.createContext({}),Ze=process.env.NODE_ENV!=="production"?e=>{const{strict:t}=h.useContext(ym),n=(r,o,i)=>{if(!r)if(t===!1&&o==="deprecated"){const a=er;er||(er={}),er[e]=er[e]||[],er[e].includes(i||"")||er[e].push(i||""),a||console.warn("[antd] There exists deprecated usage in your code:",er)}else process.env.NODE_ENV!=="production"&&Wr(r,e,i)};return n.deprecated=(r,o,i,a)=>{n(r,"deprecated",`\`${o}\` is deprecated. Please use \`${i}\` instead.${a?` ${a}`:""}`)},n}:()=>{const e=()=>{};return e.deprecated=mm,e},bm=T.createContext(void 0);var S_={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"},E_={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},$_=Q(Q({},E_),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",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 Cm={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},wm={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"]},$_),timePickerLocale:Object.assign({},Cm)},Xt="${label} is not a valid ${type}",xr={locale:"en",Pagination:S_,DatePicker:wm,TimePicker:Cm,Calendar:wm,global:{placeholder:"Please select",close:"Close"},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:Xt,method:Xt,array:Xt,object:Xt,number:Xt,date:Xt,boolean:Xt,integer:Xt,float:Xt,regexp:Xt,email:Xt,url:Xt,hex:Xt},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"}};Object.assign({},xr.Modal);let gs=[];const xm=()=>gs.reduce((e,t)=>Object.assign(Object.assign({},e),t),xr.Modal);function O_(e){if(e){const t=Object.assign({},e);return gs.push(t),xm(),()=>{gs=gs.filter(n=>n!==t),xm()}}Object.assign({},xr.Modal)}const zc=T.createContext(void 0),Rc=(e,t)=>{const n=h.useContext(zc),r=h.useMemo(()=>{var i;const a=t||xr[e],s=(i=n==null?void 0:n[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,t,n]),o=h.useMemo(()=>{const i=n==null?void 0:n.locale;return n!=null&&n.exist&&!i?xr.locale:i},[n]);return[r,o]},Sm="internalMark",Em=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;if(process.env.NODE_ENV!=="production"){const i=Ze("LocaleProvider");process.env.NODE_ENV!=="production"&&i(r===Sm,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}h.useEffect(()=>O_(t==null?void 0:t.Modal),[t]);const o=h.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return h.createElement(zc.Provider,{value:o},n)};process.env.NODE_ENV!=="production"&&(Em.displayName="LocaleProvider");const $m={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"},_i=Object.assign(Object.assign({},$m),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
64
|
-
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
65
|
-
'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}),Ct=Math.round;function Vc(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)r[o]=t(r[o]||0,n[o]||"",o);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const Om=(e,t,n)=>n===0?e:e/100;function Ni(e,t){const n=t||255;return e>n?n:e<0?0:e}class rt{constructor(t){X(this,"isValid",!0),X(this,"r",0),X(this,"g",0),X(this,"b",0),X(this,"a",1),X(this,"_h",void 0),X(this,"_s",void 0),X(this,"_l",void 0),X(this,"_v",void 0),X(this,"_max",void 0),X(this,"_min",void 0),X(this,"_brightness",void 0);function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let o=function(i){return r.startsWith(i)};const r=t.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):o("rgb")?this.fromRgbString(r):o("hsl")?this.fromHslString(r):(o("hsv")||o("hsb"))&&this.fromHsvString(r)}else if(t instanceof rt)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=Ni(t.r),this.g=Ni(t.g),this.b=Ni(t.b),this.a=typeof t.a=="number"?Ni(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(i){const a=i/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),o=t(this.b);return .2126*n+.7152*r+.0722*o}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Ct(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:n,s:r,l:o,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:n,s:r,l:o,a:this.a})}mix(t,n=50){const r=this._c(t),o=n/100,i=s=>(r[s]-this[s])*o+this[s],a={r:Ct(i("r")),g:Ct(i("g")),b:Ct(i("b")),a:Ct(i("a")*100)/100};return this._c(a)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),o=i=>Ct((this[i]*this.a+n[i]*n.a*(1-this.a))/r);return this._c({r:o("r"),g:o("g"),b:o("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){const i=Ct(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=Ct(this.getSaturation()*100),r=Ct(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const o=this.clone();return o[t]=Ni(n,r),o}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(o,i){return parseInt(n[o]+n[i||o],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a:o}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof o=="number"?o:1,n<=0){const f=Ct(r*255);this.r=f,this.g=f,this.b=f}let i=0,a=0,s=0;const l=t/60,c=(1-Math.abs(2*r-1))*n,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(i=c,a=u):l>=1&&l<2?(i=u,a=c):l>=2&&l<3?(a=c,s=u):l>=3&&l<4?(a=u,s=c):l>=4&&l<5?(i=u,s=c):l>=5&&l<6&&(i=c,s=u);const d=r-c/2;this.r=Ct((i+d)*255),this.g=Ct((a+d)*255),this.b=Ct((s+d)*255)}fromHsv({h:t,s:n,v:r,a:o}){this._h=t%360,this._s=n,this._v=r,this.a=typeof o=="number"?o:1;const i=Ct(r*255);if(this.r=i,this.g=i,this.b=i,n<=0)return;const a=t/60,s=Math.floor(a),l=a-s,c=Ct(r*(1-n)*255),u=Ct(r*(1-n*l)*255),d=Ct(r*(1-n*(1-l))*255);switch(s){case 0:this.g=d,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=d;break;case 3:this.r=c,this.g=u;break;case 4:this.r=d,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){const n=Vc(t,Om);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=Vc(t,Om);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=Vc(t,(r,o)=>o.includes("%")?Ct(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var hs=2,_m=.16,__=.05,N_=.05,P_=.15,Nm=5,Pm=4,T_=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function Tm(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-hs*t:Math.round(e.h)+hs*t:r=n?Math.round(e.h)+hs*t:Math.round(e.h)-hs*t,r<0?r+=360:r>=360&&(r-=360),r}function Im(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-_m*t:t===Pm?r=e.s+_m:r=e.s+__*t,r>1&&(r=1),n&&t===Nm&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function Mm(e,t,n){var r;return n?r=e.v+N_*t:r=e.v-P_*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function Pi(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new rt(e),o=r.toHsv(),i=Nm;i>0;i-=1){var a=new rt({h:Tm(o,i,!0),s:Im(o,i,!0),v:Mm(o,i,!0)});n.push(a)}n.push(r);for(var s=1;s<=Pm;s+=1){var l=new rt({h:Tm(o,s),s:Im(o,s),v:Mm(o,s)});n.push(l)}return t.theme==="dark"?T_.map(function(c){var u=c.index,d=c.amount;return new rt(t.backgroundColor||"#141414").mix(n[u],d).toHexString()}):n.map(function(c){return c.toHexString()})}var Oo={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"},kc=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];kc.primary=kc[5];var Hc=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Hc.primary=Hc[5];var Bc=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Bc.primary=Bc[5];var ms=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];ms.primary=ms[5];var Wc=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Wc.primary=Wc[5];var qc=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];qc.primary=qc[5];var Uc=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Uc.primary=Uc[5];var Gc=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Gc.primary=Gc[5];var _o=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];_o.primary=_o[5];var Xc=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Xc.primary=Xc[5];var Yc=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Yc.primary=Yc[5];var Kc=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Kc.primary=Kc[5];var Zc=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Zc.primary=Zc[5];var Qc={red:kc,volcano:Hc,orange:Bc,gold:ms,yellow:Wc,lime:qc,green:Uc,cyan:Gc,blue:_o,geekblue:Xc,purple:Yc,magenta:Kc,grey:Zc};function I_(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:o,colorError:i,colorInfo:a,colorPrimary:s,colorBgBase:l,colorTextBase:c}=e,u=t(s),d=t(r),f=t(o),p=t(i),v=t(a),m=n(l,c),g=e.colorLink||e.colorInfo,y=t(g),x=new rt(p[1]).mix(new rt(p[3]),50).toHexString();return Object.assign(Object.assign({},m),{colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:p[1],colorErrorBgHover:p[2],colorErrorBgFilledHover:x,colorErrorBgActive:p[3],colorErrorBorder:p[3],colorErrorBorderHover:p[4],colorErrorHover:p[5],colorError:p[6],colorErrorActive:p[7],colorErrorTextHover:p[8],colorErrorText:p[9],colorErrorTextActive:p[10],colorWarningBg:f[1],colorWarningBgHover:f[2],colorWarningBorder:f[3],colorWarningBorderHover:f[4],colorWarningHover:f[4],colorWarning:f[6],colorWarningActive:f[7],colorWarningTextHover:f[8],colorWarningText:f[9],colorWarningTextActive:f[10],colorInfoBg:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorLinkHover:y[4],colorLink:y[6],colorLinkActive:y[7],colorBgMask:new rt("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const M_=e=>{let t=e,n=e,r=e,o=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?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};function A_(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=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:o+1},M_(r))}const D_=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function vs(e){return(e+8)/e}function F_(e){const t=Array.from({length:10}).map((n,r)=>{const o=r-1,i=e*Math.pow(Math.E,o/5),a=r>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:vs(n)}))}const L_=e=>{const t=F_(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),o=n[1],i=n[0],a=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*o),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function j_(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 sn=(e,t)=>new rt(e).setA(t).toRgbString(),Ti=(e,t)=>new rt(e).darken(t).toHexString(),z_=e=>{const t=Pi(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]}},R_=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:sn(r,.88),colorTextSecondary:sn(r,.65),colorTextTertiary:sn(r,.45),colorTextQuaternary:sn(r,.25),colorFill:sn(r,.15),colorFillSecondary:sn(r,.06),colorFillTertiary:sn(r,.04),colorFillQuaternary:sn(r,.02),colorBgSolid:sn(r,1),colorBgSolidHover:sn(r,.75),colorBgSolidActive:sn(r,.95),colorBgLayout:Ti(n,4),colorBgContainer:Ti(n,0),colorBgElevated:Ti(n,0),colorBgSpotlight:sn(r,.85),colorBgBlur:"transparent",colorBorder:Ti(n,15),colorBorderSecondary:Ti(n,6)}};function V_(e){Oo.pink=Oo.magenta,Qc.pink=Qc.magenta;const t=Object.keys($m).map(n=>{const r=e[n]===Oo[n]?Qc[n]:Pi(e[n]);return Array.from({length:10},()=>1).reduce((o,i,a)=>(o[`${n}-${a+1}`]=r[a],o[`${n}${a+1}`]=r[a],o),{})}).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),I_(e,{generateColorPalettes:z_,generateNeutralColorPalettes:R_})),L_(e.fontSize)),j_(e)),D_(e)),A_(e))}const Am=Oc(V_),Jc={token:_i,override:{override:_i},hashed:!0},Dm=T.createContext(Jc),Ii="ant",eu="anticon",k_=["outlined","borderless","filled","underlined"],H_=(e,t)=>t||(e?`${Ii}-${e}`:Ii),Be=h.createContext({getPrefixCls:H_,iconPrefixCls:eu}),{Consumer:b8}=Be,Fm={};function In(e){const t=h.useContext(Be),{getPrefixCls:n,direction:r,getPopupContainer:o}=t,i=t[e];return Object.assign(Object.assign({classNames:Fm,styles:Fm},i),{getPrefixCls:n,direction:r,getPopupContainer:o})}const B_=`-ant-${Date.now()}-${Math.random()}`;function W_(e,t){const n={},r=(a,s)=>{let l=a.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},o=(a,s)=>{const l=new rt(a),c=Pi(l.toRgbString());n[`${s}-color`]=r(l),n[`${s}-color-disabled`]=c[1],n[`${s}-color-hover`]=c[4],n[`${s}-color-active`]=c[6],n[`${s}-color-outline`]=l.clone().setA(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=c[0],n[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){o(t.primaryColor,"primary");const a=new rt(t.primaryColor),s=Pi(a.toRgbString());s.forEach((c,u)=>{n[`primary-${u+1}`]=c}),n["primary-color-deprecated-l-35"]=r(a,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(a,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(a,c=>c.setA(c.a*.12));const l=new rt(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,c=>c.setA(c.a*.3)),n["primary-color-active-deprecated-d-02"]=r(l,c=>c.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`
|
|
66
|
-
:root {
|
|
67
|
-
${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(`
|
|
68
|
-
`)}
|
|
69
|
-
}
|
|
70
|
-
`.trim()}function q_(e,t){const n=W_(e,t);Nt()?Jn(n,`${B_}-dynamic-theme`):process.env.NODE_ENV!=="production"&&Wr(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const Mn=h.createContext(!1),Lm=({children:e,disabled:t})=>{const n=h.useContext(Mn);return h.createElement(Mn.Provider,{value:t??n},e)},qr=h.createContext(void 0),U_=({children:e,size:t})=>{const n=h.useContext(qr);return h.createElement(qr.Provider,{value:t||n},e)};function G_(){const e=T.useContext(Mn),t=T.useContext(qr);return{componentDisabled:e,componentSize:t}}var jm=ft(function e(){dt(this,e)}),zm="CALC_UNIT",X_=new RegExp(zm,"g");function tu(e){return typeof e=="number"?"".concat(e).concat(zm):e}var Y_=function(e){hn(n,e);var t=Pn(n);function n(r,o){var i;dt(this,n),i=t.call(this),X(we(i),"result",""),X(we(i),"unitlessCssVar",void 0),X(we(i),"lowPriority",void 0);var a=ye(r);return i.unitlessCssVar=o,r instanceof n?i.result="(".concat(r.result,")"):a==="number"?i.result=tu(r):a==="string"&&(i.result=r),i}return ft(n,[{key:"add",value:function(o){return o instanceof n?this.result="".concat(this.result," + ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," + ").concat(tu(o))),this.lowPriority=!0,this}},{key:"sub",value:function(o){return o instanceof n?this.result="".concat(this.result," - ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," - ").concat(tu(o))),this.lowPriority=!0,this}},{key:"mul",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof n?this.result="".concat(this.result," * ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," * ").concat(o)),this.lowPriority=!1,this}},{key:"div",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof n?this.result="".concat(this.result," / ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," / ").concat(o)),this.lowPriority=!1,this}},{key:"getResult",value:function(o){return this.lowPriority||o?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(o){var i=this,a=o||{},s=a.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(c){return i.result.includes(c)})&&(l=!1),this.result=this.result.replace(X_,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(jm),K_=function(e){hn(n,e);var t=Pn(n);function n(r){var o;return dt(this,n),o=t.call(this),X(we(o),"result",0),r instanceof n?o.result=r.result:typeof r=="number"&&(o.result=r),o}return ft(n,[{key:"add",value:function(o){return o instanceof n?this.result+=o.result:typeof o=="number"&&(this.result+=o),this}},{key:"sub",value:function(o){return o instanceof n?this.result-=o.result:typeof o=="number"&&(this.result-=o),this}},{key:"mul",value:function(o){return o instanceof n?this.result*=o.result:typeof o=="number"&&(this.result*=o),this}},{key:"div",value:function(o){return o instanceof n?this.result/=o.result:typeof o=="number"&&(this.result/=o),this}},{key:"equal",value:function(){return this.result}}]),n}(jm),Z_=function(t,n){var r=t==="css"?Y_:K_;return function(o){return new r(o,n)}},Rm=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=h.useRef();t.current=e;var n=h.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return n}function No(e){var t=h.useRef(!1),n=h.useState(e),r=ae(n,2),o=r[0],i=r[1];h.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(s,l){l&&t.current||i(s)}return[o,a]}function nu(e){return e!==void 0}function An(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,s=No(function(){return nu(o)?o:nu(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),l=ae(s,2),c=l[0],u=l[1],d=o!==void 0?o:c,f=a?a(d):d,p=wt(i),v=No([d]),m=ae(v,2),g=m[0],y=m[1];Gh(function(){var b=g[0];c!==b&&p(c,b)},[g]),Gh(function(){nu(o)||u(o)},[o]);var x=wt(function(b,C){u(b,C),y([d],C)});return[f,x]}function Vm(e,t,n,r){var o=Q({},t[e]);if(r!=null&&r.deprecatedTokens){var i=r.deprecatedTokens;i.forEach(function(s){var l=ae(s,2),c=l[0],u=l[1];if(process.env.NODE_ENV!=="production"&&et(!(o!=null&&o[c]),"Component Token `".concat(String(c),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(u),"` instead.")),o!=null&&o[c]||o!=null&&o[u]){var d;(d=o[u])!==null&&d!==void 0||(o[u]=o==null?void 0:o[c])}})}var a=Q(Q({},n),o);return Object.keys(a).forEach(function(s){a[s]===t[s]&&delete a[s]}),a}var km=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u",ru=!0;function st(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!km)return Object.assign.apply(Object,[{}].concat(t));ru=!1;var r={};return t.forEach(function(o){if(ye(o)==="object"){var i=Object.keys(o);i.forEach(function(a){Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:function(){return o[a]}})})}}),ru=!0,r}var Hm={};function Q_(){}var J_=function(t){var n,r=t,o=Q_;return km&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(a,s){if(ru){var l;(l=n)===null||l===void 0||l.add(s)}return a[s]}}),o=function(a,s){var l;Hm[a]={global:Array.from(n),component:Q(Q({},(l=Hm[a])===null||l===void 0?void 0:l.component),s)}}),{token:r,keys:n,flush:o}};function Bm(e,t,n){if(typeof n=="function"){var r;return n(st(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function eN(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return"max(".concat(r.map(function(i){return fe(i)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return"min(".concat(r.map(function(i){return fe(i)}).join(","),")")}}}var tN=1e3*60*10,nN=function(){function e(){dt(this,e),X(this,"map",new Map),X(this,"objectIDMap",new WeakMap),X(this,"nextID",0),X(this,"lastAccessBeat",new Map),X(this,"accessBeat",0)}return ft(e,[{key:"set",value:function(n,r){this.clear();var o=this.getCompositeKey(n);this.map.set(o,r),this.lastAccessBeat.set(o,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),o=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,o}},{key:"getCompositeKey",value:function(n){var r=this,o=n.map(function(i){return i&&ye(i)==="object"?"obj_".concat(r.getObjectID(i)):"".concat(ye(i),"_").concat(i)});return o.join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);var r=this.nextID;return this.objectIDMap.set(n,r),this.nextID+=1,r}},{key:"clear",value:function(){var n=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(o,i){r-o>tN&&(n.map.delete(i),n.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),e}(),Wm=new nN;function rN(e,t){return T.useMemo(function(){var n=Wm.get(t);if(n)return n;var r=e();return Wm.set(t,r),r},t)}var oN=function(){return{}};function iN(e){var t=e.useCSP,n=t===void 0?oN:t,r=e.useToken,o=e.usePrefix,i=e.getResetStyles,a=e.getCommonStyle,s=e.getCompUnitless;function l(f,p,v,m){var g=Array.isArray(f)?f[0]:f;function y(E){return"".concat(String(g)).concat(E.slice(0,1).toUpperCase()).concat(E.slice(1))}var x=(m==null?void 0:m.unitless)||{},b=typeof s=="function"?s(f):{},C=Q(Q({},b),{},X({},y("zIndexPopup"),!0));Object.keys(x).forEach(function(E){C[y(E)]=x[E]});var w=Q(Q({},m),{},{unitless:C,prefixToken:y}),$=u(f,p,v,w),S=c(g,v,w);return function(E){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:E,P=$(E,_),A=ae(P,2),L=A[1],D=S(_),O=ae(D,2),M=O[0],N=O[1];return[M,L,N]}}function c(f,p,v){var m=v.unitless,g=v.injectStyle,y=g===void 0?!0:g,x=v.prefixToken,b=v.ignore,C=function(S){var E=S.rootCls,_=S.cssVar,P=_===void 0?{}:_,A=r(),L=A.realToken;return v_({path:[f],prefix:P.prefix,key:P.key,unitless:m,ignore:b,token:L,scope:E},function(){var D=Bm(f,L,p),O=Vm(f,L,D,{deprecatedTokens:v==null?void 0:v.deprecatedTokens});return Object.keys(D).forEach(function(M){O[x(M)]=O[M],delete O[M]}),O}),null},w=function(S){var E=r(),_=E.cssVar;return[function(P){return y&&_?T.createElement(T.Fragment,null,T.createElement(C,{rootCls:S,cssVar:_,component:f}),P):P},_==null?void 0:_.key]};return w}function u(f,p,v){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=Array.isArray(f)?f:[f,f],y=ae(g,1),x=y[0],b=g.join("-"),C=e.layer||{name:"antd"};return function(w){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w,S=r(),E=S.theme,_=S.realToken,P=S.hashId,A=S.token,L=S.cssVar,D=o(),O=D.rootPrefixCls,M=D.iconPrefixCls,N=n(),I=L?"css":"js",j=rN(function(){var V=new Set;return L&&Object.keys(m.unitless||{}).forEach(function(B){V.add(is(B,L.prefix)),V.add(is(B,Rm(x,L.prefix)))}),Z_(I,V)},[I,x,L==null?void 0:L.prefix]),z=eN(I),F=z.max,R=z.min,W={theme:E,token:A,hashId:P,nonce:function(){return N.nonce},clientOnly:m.clientOnly,layer:C,order:m.order||-999};typeof i=="function"&&Lc(Q(Q({},W),{},{clientOnly:!1,path:["Shared",O]}),function(){return i(A,{prefix:{rootPrefixCls:O,iconPrefixCls:M},csp:N})});var H=Lc(Q(Q({},W),{},{path:[b,w,M]}),function(){if(m.injectStyle===!1)return[];var V=J_(A),B=V.token,U=V.flush,K=Bm(x,_,v),G=".".concat(w),Z=Vm(x,_,K,{deprecatedTokens:m.deprecatedTokens});L&&K&&ye(K)==="object"&&Object.keys(K).forEach(function(te){K[te]="var(".concat(is(te,Rm(x,L.prefix)),")")});var J=st(B,{componentCls:G,prefixCls:w,iconCls:".".concat(M),antCls:".".concat(O),calc:j,max:F,min:R},L?K:Z),ee=p(J,{hashId:P,prefixCls:w,rootPrefixCls:O,iconPrefixCls:M});U(x,Z);var q=typeof a=="function"?a(J,w,$,m.resetFont):null;return[m.resetStyle===!1?null:q,ee]});return[H,P]}}function d(f,p,v){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=u(f,p,v,Q({resetStyle:!1,order:-998},m)),y=function(b){var C=b.prefixCls,w=b.rootCls,$=w===void 0?C:w;return g(C,$),null};return process.env.NODE_ENV!=="production"&&(y.displayName="SubStyle_".concat(String(Array.isArray(f)?f.join("."):f))),y}return{genStyleHooks:l,genSubStyleComponent:d,genComponentStyleHook:u}}const Ur=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],aN="5.26.4";function ou(e){return e>=0&&e<=255}function Mi(e,t){const{r:n,g:r,b:o,a:i}=new rt(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new rt(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-a*(1-c))/c),d=Math.round((r-s*(1-c))/c),f=Math.round((o-l*(1-c))/c);if(ou(u)&&ou(d)&&ou(f))return new rt({r:u,g:d,b:f,a:Math.round(c*100)/100}).toRgbString()}return new rt({r:n,g:r,b:o,a:1}).toRgbString()}var sN=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function qm(e){const{override:t}=e,n=sN(e,["override"]),r=Object.assign({},t);Object.keys(_i).forEach(f=>{delete r[f]});const o=Object.assign(Object.assign({},n),r),i=480,a=576,s=768,l=992,c=1200,u=1600;if(o.motion===!1){const f="0s";o.motionDurationFast=f,o.motionDurationMid=f,o.motionDurationSlow=f}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Mi(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:Mi(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Mi(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:Mi(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
|
|
71
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
72
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
73
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
74
|
-
`,boxShadowSecondary:`
|
|
75
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
76
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
77
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
78
|
-
`,boxShadowTertiary:`
|
|
79
|
-
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
80
|
-
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
81
|
-
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
82
|
-
`,screenXS:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
83
|
-
0 1px 2px -2px ${new rt("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
84
|
-
0 3px 6px 0 ${new rt("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
85
|
-
0 5px 12px 4px ${new rt("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
86
|
-
`,boxShadowDrawerRight:`
|
|
87
|
-
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
88
|
-
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
89
|
-
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
90
|
-
`,boxShadowDrawerLeft:`
|
|
91
|
-
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
92
|
-
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
93
|
-
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
94
|
-
`,boxShadowDrawerUp:`
|
|
95
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
96
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
97
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
98
|
-
`,boxShadowDrawerDown:`
|
|
99
|
-
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
100
|
-
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
101
|
-
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
102
|
-
`,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 Um=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Gm={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},lN={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},cN={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},Xm=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=Um(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=qm(a),i&&Object.entries(i).forEach(([s,l])=>{const{theme:c}=l,u=Um(l,["theme"]);let d=u;c&&(d=Xm(Object.assign(Object.assign({},a),u),{override:u},c)),a[s]=d}),a};function tr(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=T.useContext(Dm),i=`${aN}-${t||""}`,a=n||Am,[s,l,c]=HO(a,[_i,e],{salt:i,override:r,getComputedToken:Xm,formatToken:qm,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:Gm,ignore:lN,preserve:cN}});return[a,c,t?l:"",s,o]}const iu={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Yt=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),Ym=()=>({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"}}),au=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),uN=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"}}}),dN=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},s),a),{[o]:a})}},su=(e,t)=>({outline:`${fe(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),lu=(e,t)=>({"&:focus-visible":Object.assign({},su(e,t))}),Km=e=>({[`.${e}`]:Object.assign(Object.assign({},Ym()),{[`.${e} .${e}-icon`]:{display:"block"}})}),Zm=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},lu(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),{genStyleHooks:Et,genComponentStyleHook:fN,genSubStyleComponent:Qm}=iN({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=T.useContext(Be);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=tr();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e}=T.useContext(Be);return e??{}},getResetStyles:(e,t)=>{var n;const r=uN(e);return[r,{"&":r},Km((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:eu)]},getCommonStyle:dN,getCompUnitless:()=>Gm});function pN(e,t){return Ur.reduce((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:s}))},{})}const gN=(e,t)=>{const[n,r]=tr();return Lc({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[Km(e)])},hN=Object.assign({},h),{useId:Jm}=hN,mN=typeof Jm>"u"?()=>"":Jm;function vN(e,t,n){var r,o;const i=Ze("ConfigProvider"),a=e||{},s=a.inherit===!1||!t?Object.assign(Object.assign({},Jc),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Jc.hashed,cssVar:t==null?void 0:t.cssVar}):t,l=mN();if(process.env.NODE_ENV!=="production"){const c=a.cssVar||s.cssVar,u=!!(typeof a.cssVar=="object"&&(!((o=a.cssVar)===null||o===void 0)&&o.key)||l);process.env.NODE_ENV!=="production"&&i(!c||u,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return gc(()=>{var c,u;if(!e)return t;const d=Object.assign({},s.components);Object.keys(e.components||{}).forEach(v=>{d[v]=Object.assign(Object.assign({},d[v]),e.components[v])});const f=`css-var-${l.replace(/:/g,"")}`,p=((c=a.cssVar)!==null&&c!==void 0?c:s.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof s.cssVar=="object"?s.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((u=a.cssVar)===null||u===void 0?void 0:u.key)||f});return Object.assign(Object.assign(Object.assign({},s),a),{token:Object.assign(Object.assign({},s.token),a.token),components:d,cssVar:p})},[a,s],(c,u)=>c.some((d,f)=>{const p=u[f];return!xc(d,p,!0)}))}var yN=["children"],ev=h.createContext({});function bN(e){var t=e.children,n=vt(e,yN);return h.createElement(ev.Provider,{value:n},t)}var CN=function(e){hn(n,e);var t=Pn(n);function n(){return dt(this,n),t.apply(this,arguments)}return ft(n,[{key:"render",value:function(){return this.props.children}}]),n}(h.Component);function wN(e){var t=h.useReducer(function(s){return s+1},0),n=ae(t,2),r=n[1],o=h.useRef(e),i=wt(function(){return o.current}),a=wt(function(s){o.current=typeof s=="function"?s(o.current):s,r()});return[i,a]}var Sr="none",ys="appear",bs="enter",Cs="leave",tv="none",yn="prepare",Po="start",To="active",cu="end",nv="prepared";function rv(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 xN(e,t){var n={animationend:rv("Animation","AnimationEnd"),transitionend:rv("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var SN=xN(Nt(),typeof window<"u"?window:{}),ov={};if(Nt()){var EN=document.createElement("div");ov=EN.style}var ws={};function iv(e){if(ws[e])return ws[e];var t=SN[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in ov)return ws[e]=t[i],ws[e]}return""}var av=iv("animationend"),sv=iv("transitionend"),lv=!!(av&&sv),cv=av||"animationend",uv=sv||"transitionend";function dv(e,t){if(!e)return null;if(ye(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const $N=function(e){var t=T.useRef();function n(o){o&&(o.removeEventListener(uv,e),o.removeEventListener(cv,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(uv,e),o.addEventListener(cv,e),t.current=o)}return h.useEffect(function(){return function(){n(t.current)}},[]),[r,n]};var fv=Nt()?T.useLayoutEffect:T.useEffect;const ON=function(){var e=h.useRef(null);function t(){Ft.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=Ft(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)});e.current=i}return h.useEffect(function(){return function(){t()}},[]),[n,t]};var _N=[yn,Po,To,cu],NN=[yn,nv],pv=!1,PN=!0;function gv(e){return e===To||e===cu}const TN=function(e,t,n){var r=No(tv),o=ae(r,2),i=o[0],a=o[1],s=ON(),l=ae(s,2),c=l[0],u=l[1];function d(){a(yn,!0)}var f=t?NN:_N;return fv(function(){if(i!==tv&&i!==cu){var p=f.indexOf(i),v=f[p+1],m=n(i);m===pv?a(v,!0):v&&c(function(g){function y(){g.isCanceled()||a(v,!0)}m===!0?y():Promise.resolve(m).then(y)})}},[e,i]),h.useEffect(function(){return function(){u()}},[]),[d,i]};function IN(e,t,n,r){var o=r.motionEnter,i=o===void 0?!0:o,a=r.motionAppear,s=a===void 0?!0:a,l=r.motionLeave,c=l===void 0?!0:l,u=r.motionDeadline,d=r.motionLeaveImmediately,f=r.onAppearPrepare,p=r.onEnterPrepare,v=r.onLeavePrepare,m=r.onAppearStart,g=r.onEnterStart,y=r.onLeaveStart,x=r.onAppearActive,b=r.onEnterActive,C=r.onLeaveActive,w=r.onAppearEnd,$=r.onEnterEnd,S=r.onLeaveEnd,E=r.onVisibleChanged,_=No(),P=ae(_,2),A=P[0],L=P[1],D=wN(Sr),O=ae(D,2),M=O[0],N=O[1],I=No(null),j=ae(I,2),z=j[0],F=j[1],R=M(),W=T.useRef(!1),H=T.useRef(null);function V(){return n()}var B=T.useRef(!1);function U(){N(Sr),F(null,!0)}var K=wt(function(xe){var Oe=M();if(Oe!==Sr){var he=V();if(!(xe&&!xe.deadline&&xe.target!==he)){var ue=B.current,Ee;Oe===ys&&ue?Ee=w==null?void 0:w(he,xe):Oe===bs&&ue?Ee=$==null?void 0:$(he,xe):Oe===Cs&&ue&&(Ee=S==null?void 0:S(he,xe)),ue&&Ee!==!1&&U()}}}),G=$N(K),Z=ae(G,1),J=Z[0],ee=function(Oe){switch(Oe){case ys:return X(X(X({},yn,f),Po,m),To,x);case bs:return X(X(X({},yn,p),Po,g),To,b);case Cs:return X(X(X({},yn,v),Po,y),To,C);default:return{}}},q=h.useMemo(function(){return ee(R)},[R]),te=TN(R,!e,function(xe){if(xe===yn){var Oe=q[yn];return Oe?Oe(V()):pv}if(ne in q){var he;F(((he=q[ne])===null||he===void 0?void 0:he.call(q,V(),null))||null)}return ne===To&&R!==Sr&&(J(V()),u>0&&(clearTimeout(H.current),H.current=setTimeout(function(){K({deadline:!0})},u))),ne===nv&&U(),PN}),Y=ae(te,2),oe=Y[0],ne=Y[1],ce=gv(ne);B.current=ce;var ve=T.useRef(null);fv(function(){if(!(W.current&&ve.current===t)){L(t);var xe=W.current;W.current=!0;var Oe;!xe&&t&&s&&(Oe=ys),xe&&t&&i&&(Oe=bs),(xe&&!t&&c||!xe&&d&&!t&&c)&&(Oe=Cs);var he=ee(Oe);Oe&&(e||he[yn])?(N(Oe),oe()):N(Sr),ve.current=t}},[t]),T.useEffect(function(){(R===ys&&!s||R===bs&&!i||R===Cs&&!c)&&N(Sr)},[s,i,c]),T.useEffect(function(){return function(){W.current=!1,clearTimeout(H.current)}},[]);var pe=h.useRef(!1);T.useEffect(function(){A&&(pe.current=!0),A!==void 0&&R===Sr&&((pe.current||A)&&(E==null||E(A)),pe.current=!0)},[A,R]);var _e=z;return q[yn]&&ne===Po&&(_e=Q({transition:"none"},_e)),[R,ne,_e,A??t]}function MN(e){var t=e;ye(e)==="object"&&(t=e.transitionSupport);function n(o,i){return!!(o.motionName&&t&&i!==!1)}var r=h.forwardRef(function(o,i){var a=o.visible,s=a===void 0?!0:a,l=o.removeOnLeave,c=l===void 0?!0:l,u=o.forceRender,d=o.children,f=o.motionName,p=o.leavedClassName,v=o.eventProps,m=h.useContext(ev),g=m.motion,y=n(o,g),x=T.useRef(),b=T.useRef();function C(){try{return x.current instanceof HTMLElement?x.current:Ya(b.current)}catch{return null}}var w=IN(y,s,C,o),$=ae(w,4),S=$[0],E=$[1],_=$[2],P=$[3],A=h.useRef(P);P&&(A.current=!0);var L=h.useCallback(function(j){x.current=j,hc(i,j)},[i]),D,O=Q(Q({},v),{},{visible:s});if(!d)D=null;else if(S===Sr)P?D=d(Q({},O),L):!c&&A.current&&p?D=d(Q(Q({},O),{},{className:p}),L):u||!c&&!p?D=d(Q(Q({},O),{},{style:{display:"none"}}),L):D=null;else{var M;E===yn?M="prepare":gv(E)?M="active":E===Po&&(M="start");var N=dv(f,"".concat(S,"-").concat(M));D=d(Q(Q({},O),{},{className:re(dv(f,S),X(X({},N,N&&M),f,typeof f=="string")),style:_}),L)}if(h.isValidElement(D)&&mo(D)){var I=bi(D);I||(D=h.cloneElement(D,{ref:L}))}return h.createElement(CN,{ref:b},D)});return r.displayName="CSSMotion",r}const Dn=MN(lv);var uu="add",du="keep",fu="remove",pu="removed";function AN(e){var t;return e&&ye(e)==="object"&&"key"in e?t=e:t={key:e},Q(Q({},t),{},{key:String(t.key)})}function gu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(AN)}function DN(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,i=gu(e),a=gu(t);i.forEach(function(c){for(var u=!1,d=r;d<o;d+=1){var f=a[d];if(f.key===c.key){r<d&&(n=n.concat(a.slice(r,d).map(function(p){return Q(Q({},p),{},{status:uu})})),r=d),n.push(Q(Q({},f),{},{status:du})),r+=1,u=!0;break}}u||n.push(Q(Q({},c),{},{status:fu}))}),r<o&&(n=n.concat(a.slice(r).map(function(c){return Q(Q({},c),{},{status:uu})})));var s={};n.forEach(function(c){var u=c.key;s[u]=(s[u]||0)+1});var l=Object.keys(s).filter(function(c){return s[c]>1});return l.forEach(function(c){n=n.filter(function(u){var d=u.key,f=u.status;return d!==c||f!==fu}),n.forEach(function(u){u.key===c&&(u.status=du)})}),n}var FN=["component","children","onVisibleChanged","onAllRemoved"],LN=["status"],jN=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function zN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Dn,n=function(r){hn(i,r);var o=Pn(i);function i(){var a;dt(this,i);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return a=o.call.apply(o,[this].concat(l)),X(we(a),"state",{keyEntities:[]}),X(we(a),"removeKey",function(u){a.setState(function(d){var f=d.keyEntities.map(function(p){return p.key!==u?p:Q(Q({},p),{},{status:pu})});return{keyEntities:f}},function(){var d=a.state.keyEntities,f=d.filter(function(p){var v=p.status;return v!==pu}).length;f===0&&a.props.onAllRemoved&&a.props.onAllRemoved()})}),a}return ft(i,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,c=this.props,u=c.component,d=c.children,f=c.onVisibleChanged;c.onAllRemoved;var p=vt(c,FN),v=u||h.Fragment,m={};return jN.forEach(function(g){m[g]=p[g],delete p[g]}),delete p.keys,h.createElement(v,p,l.map(function(g,y){var x=g.status,b=vt(g,LN),C=x===uu||x===du;return h.createElement(t,Ce({},m,{key:b.key,visible:C,eventProps:b,onVisibleChanged:function($){f==null||f($,{key:b.key}),$||s.removeKey(b.key)}}),function(w,$){return d(Q(Q({},w),{},{index:y}),$)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,u=l.keyEntities,d=gu(c),f=DN(u,d);return{keyEntities:f.filter(function(p){var v=u.find(function(m){var g=m.key;return p.key===g});return!(v&&v.status===pu&&p.status===fu)})}}}]),i}(h.Component);return X(n,"defaultProps",{component:"div"}),n}const hv=zN(lv),hu=h.createContext(!0);process.env.NODE_ENV!=="production"&&(hu.displayName="MotionCacheContext");function RN(e){const t=h.useContext(hu),{children:n}=e,[,r]=tr(),{motion:o}=r,i=h.useRef(!1);return i.current||(i.current=t!==o),i.current?h.createElement(hu.Provider,{value:o},h.createElement(bN,{motion:o},n)):n}const mv=h.memo(({dropdownMatchSelectWidth:e})=>(Ze("ConfigProvider").deprecated(e===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));process.env.NODE_ENV!=="production"&&(mv.displayName="PropWarning");const VN=process.env.NODE_ENV!=="production"?mv:()=>null;var kN=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let mu=!1;process.env.NODE_ENV;const HN=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let vv;function BN(){return vv||Ii}function WN(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const qN=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(vv=t),r&&WN(r)&&(process.env.NODE_ENV!=="production"&&Wr(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),q_(BN(),r))},UN=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:s,componentSize:l,direction:c,space:u,splitter:d,virtual:f,dropdownMatchSelectWidth:p,popupMatchSelectWidth:v,popupOverflow:m,legacyLocale:g,parentContext:y,iconPrefixCls:x,theme:b,componentDisabled:C,segmented:w,statistic:$,spin:S,calendar:E,carousel:_,cascader:P,collapse:A,typography:L,checkbox:D,descriptions:O,divider:M,drawer:N,skeleton:I,steps:j,image:z,layout:F,list:R,mentions:W,modal:H,progress:V,result:B,slider:U,breadcrumb:K,menu:G,pagination:Z,input:J,textArea:ee,empty:q,badge:te,radio:Y,rate:oe,switch:ne,transfer:ce,avatar:ve,message:pe,tag:_e,table:xe,card:Oe,tabs:he,timeline:ue,timePicker:Ee,upload:Ne,notification:Ue,tree:De,colorPicker:Le,datePicker:Ge,rangePicker:Te,flex:Ie,wave:Pe,dropdown:le,warning:me,tour:ie,tooltip:se,popover:Se,popconfirm:Qe,floatButtonGroup:Ot,variant:jt,inputNumber:zt,treeSelect:sr}=e,Bt=h.useCallback((Xe,Je)=>{const{prefixCls:Mt}=e;if(Je)return Je;const _t=Mt||y.getPrefixCls("");return Xe?`${_t}-${Xe}`:_t},[y.getPrefixCls,e.prefixCls]),lt=x||y.iconPrefixCls||eu,ct=n||y.csp;gN(lt,ct);const xn=vN(b,y.theme,{prefixCls:Bt("")});process.env.NODE_ENV!=="production"&&(mu=mu||!!xn);const xt={csp:ct,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:s||g,direction:c,space:u,splitter:d,virtual:f,popupMatchSelectWidth:v??p,popupOverflow:m,getPrefixCls:Bt,iconPrefixCls:lt,theme:xn,segmented:w,statistic:$,spin:S,calendar:E,carousel:_,cascader:P,collapse:A,typography:L,checkbox:D,descriptions:O,divider:M,drawer:N,skeleton:I,steps:j,image:z,input:J,textArea:ee,layout:F,list:R,mentions:W,modal:H,progress:V,result:B,slider:U,breadcrumb:K,menu:G,pagination:Z,empty:q,badge:te,radio:Y,rate:oe,switch:ne,transfer:ce,avatar:ve,message:pe,tag:_e,table:xe,card:Oe,tabs:he,timeline:ue,timePicker:Ee,upload:Ne,notification:Ue,tree:De,colorPicker:Le,datePicker:Ge,rangePicker:Te,flex:Ie,wave:Pe,dropdown:le,warning:me,tour:ie,tooltip:se,popover:Se,popconfirm:Qe,floatButtonGroup:Ot,variant:jt,inputNumber:zt,treeSelect:sr};process.env.NODE_ENV!=="production"&&Ze("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const Fe=Object.assign({},y);Object.keys(xt).forEach(Xe=>{xt[Xe]!==void 0&&(Fe[Xe]=xt[Xe])}),HN.forEach(Xe=>{const Je=e[Xe];Je&&(Fe[Xe]=Je)}),typeof r<"u"&&(Fe.button=Object.assign({autoInsertSpace:r},Fe.button));const Re=gc(()=>Fe,Fe,(Xe,Je)=>{const Mt=Object.keys(Xe),_t=Object.keys(Je);return Mt.length!==_t.length||Mt.some(Jt=>Xe[Jt]!==Je[Jt])}),{layer:It}=h.useContext(Si),Sn=h.useMemo(()=>({prefixCls:lt,csp:ct,layer:It?"antd":void 0}),[lt,ct,It]);let Ve=h.createElement(h.Fragment,null,h.createElement(VN,{dropdownMatchSelectWidth:p}),t);const lr=h.useMemo(()=>{var Xe,Je,Mt,_t;return $o(((Xe=xr.Form)===null||Xe===void 0?void 0:Xe.defaultValidateMessages)||{},((Mt=(Je=Re.locale)===null||Je===void 0?void 0:Je.Form)===null||Mt===void 0?void 0:Mt.defaultValidateMessages)||{},((_t=Re.form)===null||_t===void 0?void 0:_t.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[Re,a==null?void 0:a.validateMessages]);Object.keys(lr).length>0&&(Ve=h.createElement(bm.Provider,{value:lr},Ve)),s&&(Ve=h.createElement(Em,{locale:s,_ANT_MARK__:Sm},Ve)),Ve=h.createElement(jc.Provider,{value:Sn},Ve),l&&(Ve=h.createElement(U_,{size:l},Ve)),Ve=h.createElement(RN,null,Ve);const cr=h.useMemo(()=>{const Xe=xn||{},{algorithm:Je,token:Mt,components:_t,cssVar:Jt}=Xe,Rn=kN(Xe,["algorithm","token","components","cssVar"]),Vn=Je&&(!Array.isArray(Je)||Je.length>0)?Oc(Je):Am,Rt={};Object.entries(_t||{}).forEach(([En,tn])=>{const At=Object.assign({},tn);"algorithm"in At&&(At.algorithm===!0?At.theme=Vn:(Array.isArray(At.algorithm)||typeof At.algorithm=="function")&&(At.theme=Oc(At.algorithm)),delete At.algorithm),Rt[En]=At});const en=Object.assign(Object.assign({},_i),Mt);return Object.assign(Object.assign({},Rn),{theme:Vn,token:en,components:Rt,override:Object.assign({override:en},Rt),cssVar:Jt})},[xn]);return b&&(Ve=h.createElement(Dm.Provider,{value:cr},Ve)),Re.warning&&(Ve=h.createElement(ym.Provider,{value:Re.warning},Ve)),C!==void 0&&(Ve=h.createElement(Lm,{disabled:C},Ve)),h.createElement(Be.Provider,{value:Re},Ve)},Io=e=>{const t=h.useContext(Be),n=h.useContext(zc);return h.createElement(UN,Object.assign({parentContext:t,legacyLocale:n},e))};Io.ConfigContext=Be,Io.SizeContext=qr,Io.config=qN,Io.useConfig=G_,Object.defineProperty(Io,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&Wr(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),qr)}),process.env.NODE_ENV!=="production"&&(Io.displayName="ConfigProvider");var GN={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 yv(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function XN(e){return yv(e)instanceof ShadowRoot}function xs(e){return XN(e)?yv(e):null}function YN(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function KN(e,t){et(e,"[@ant-design/icons] ".concat(t))}function bv(e){return ye(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(ye(e.icon)==="object"||typeof e.icon=="function")}function Cv(){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[YN(n)]=r}return t},{})}function vu(e,t,n){return n?T.createElement(e.tag,Q(Q({key:t},Cv(e.attrs)),n),(e.children||[]).map(function(r,o){return vu(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):T.createElement(e.tag,Q({key:t},Cv(e.attrs)),(e.children||[]).map(function(r,o){return vu(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function wv(e){return Pi(e)[0]}function xv(e){return e?Array.isArray(e)?e:[e]:[]}var ZN=`
|
|
44
|
+
*/var lb;function MA(){return lb||(lb=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",a=0;a<arguments.length;a++){var l=arguments[a];l&&(i=o(i,r(l)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return n.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var a="";for(var l in i)t.call(i,l)&&i[l]&&(a=o(a,l));return a}function o(i,a){return a?i?i+" "+a:i+a:i}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(ig)),ig.exports}var AA=MA();const ge=tl(AA),yn=Math.round;function ag(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)r[o]=t(r[o]||0,n[o]||"",o);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const cb=(e,t,n)=>n===0?e:e/100;function rl(e,t){const n=t||255;return e>n?n:e<0?0:e}class Vt{constructor(t){re(this,"isValid",!0),re(this,"r",0),re(this,"g",0),re(this,"b",0),re(this,"a",1),re(this,"_h",void 0),re(this,"_s",void 0),re(this,"_l",void 0),re(this,"_v",void 0),re(this,"_max",void 0),re(this,"_min",void 0),re(this,"_brightness",void 0);function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let o=function(i){return r.startsWith(i)};const r=t.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):o("rgb")?this.fromRgbString(r):o("hsl")?this.fromHslString(r):(o("hsv")||o("hsb"))&&this.fromHsvString(r)}else if(t instanceof Vt)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=rl(t.r),this.g=rl(t.g),this.b=rl(t.b),this.a=typeof t.a=="number"?rl(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(i){const a=i/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),o=t(this.b);return .2126*n+.7152*r+.0722*o}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=yn(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:n,s:r,l:o,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:n,s:r,l:o,a:this.a})}mix(t,n=50){const r=this._c(t),o=n/100,i=l=>(r[l]-this[l])*o+this[l],a={r:yn(i("r")),g:yn(i("g")),b:yn(i("b")),a:yn(i("a")*100)/100};return this._c(a)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),o=i=>yn((this[i]*this.a+n[i]*n.a*(1-this.a))/r);return this._c({r:o("r"),g:o("g"),b:o("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){const i=yn(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=yn(this.getSaturation()*100),r=yn(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const o=this.clone();return o[t]=rl(n,r),o}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(o,i){return parseInt(n[o]+n[i||o],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a:o}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof o=="number"?o:1,n<=0){const p=yn(r*255);this.r=p,this.g=p,this.b=p}let i=0,a=0,l=0;const u=t/60,d=(1-Math.abs(2*r-1))*n,f=d*(1-Math.abs(u%2-1));u>=0&&u<1?(i=d,a=f):u>=1&&u<2?(i=f,a=d):u>=2&&u<3?(a=d,l=f):u>=3&&u<4?(a=f,l=d):u>=4&&u<5?(i=f,l=d):u>=5&&u<6&&(i=d,l=f);const g=r-d/2;this.r=yn((i+g)*255),this.g=yn((a+g)*255),this.b=yn((l+g)*255)}fromHsv({h:t,s:n,v:r,a:o}){this._h=t%360,this._s=n,this._v=r,this.a=typeof o=="number"?o:1;const i=yn(r*255);if(this.r=i,this.g=i,this.b=i,n<=0)return;const a=t/60,l=Math.floor(a),u=a-l,d=yn(r*(1-n)*255),f=yn(r*(1-n*u)*255),g=yn(r*(1-n*(1-u))*255);switch(l){case 0:this.g=g,this.b=d;break;case 1:this.r=f,this.b=d;break;case 2:this.r=d,this.b=g;break;case 3:this.r=d,this.g=f;break;case 4:this.r=g,this.g=d;break;case 5:default:this.g=d,this.b=f;break}}fromHsvString(t){const n=ag(t,cb);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=ag(t,cb);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=ag(t,(r,o)=>o.includes("%")?yn(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var Kc=2,ub=.16,DA=.05,FA=.05,LA=.15,db=5,fb=4,RA=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function gb(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Kc*t:Math.round(e.h)+Kc*t:r=n?Math.round(e.h)+Kc*t:Math.round(e.h)-Kc*t,r<0?r+=360:r>=360&&(r-=360),r}function pb(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-ub*t:t===fb?r=e.s+ub:r=e.s+DA*t,r>1&&(r=1),n&&t===db&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function hb(e,t,n){var r;return n?r=e.v+FA*t:r=e.v-LA*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function ol(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new Vt(e),o=r.toHsv(),i=db;i>0;i-=1){var a=new Vt({h:gb(o,i,!0),s:pb(o,i,!0),v:hb(o,i,!0)});n.push(a)}n.push(r);for(var l=1;l<=fb;l+=1){var u=new Vt({h:gb(o,l),s:pb(o,l),v:hb(o,l)});n.push(u)}return t.theme==="dark"?RA.map(function(d){var f=d.index,g=d.amount;return new Vt(t.backgroundColor||"#141414").mix(n[f],g).toHexString()}):n.map(function(d){return d.toHexString()})}var La={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"},sg=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];sg.primary=sg[5];var lg=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];lg.primary=lg[5];var cg=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];cg.primary=cg[5];var Zc=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Zc.primary=Zc[5];var ug=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];ug.primary=ug[5];var dg=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];dg.primary=dg[5];var fg=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];fg.primary=fg[5];var gg=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];gg.primary=gg[5];var Ra=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Ra.primary=Ra[5];var pg=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];pg.primary=pg[5];var hg=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];hg.primary=hg[5];var mg=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];mg.primary=mg[5];var vg=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];vg.primary=vg[5];var yg={red:sg,volcano:lg,orange:cg,gold:Zc,yellow:ug,lime:dg,green:fg,cyan:gg,blue:Ra,geekblue:pg,purple:hg,magenta:mg,grey:vg};function mb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function le(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mb(Object(n),!0).forEach(function(r){re(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function On(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function bg(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 vb="data-rc-order",yb="data-rc-priority",zA="rc-util-key",Cg=new Map;function bb(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):zA}function Qc(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function jA(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function xg(e){return Array.from((Cg.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Cb(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!On())return null;var n=t.csp,r=t.prepend,o=t.priority,i=o===void 0?0:o,a=jA(r),l=a==="prependQueue",u=document.createElement("style");u.setAttribute(vb,a),l&&i&&u.setAttribute(yb,"".concat(i)),n!=null&&n.nonce&&(u.nonce=n==null?void 0:n.nonce),u.innerHTML=e;var d=Qc(t),f=d.firstChild;if(r){if(l){var g=(t.styles||xg(d)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(vb)))return!1;var m=Number(p.getAttribute(yb)||0);return i>=m});if(g.length)return d.insertBefore(u,g[g.length-1].nextSibling),u}d.insertBefore(u,f)}else d.appendChild(u);return u}function xb(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Qc(t);return(t.styles||xg(n)).find(function(r){return r.getAttribute(bb(t))===e})}function il(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=xb(e,t);if(n){var r=Qc(t);r.removeChild(n)}}function BA(e,t){var n=Cg.get(e);if(!n||!bg(document,n)){var r=Cb("",t),o=r.parentNode;Cg.set(e,o),e.removeChild(r)}}function Ro(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Qc(n),o=xg(r),i=le(le({},n),{},{styles:o});BA(r,i);var a=xb(t,i);if(a){var l,u;if((l=i.csp)!==null&&l!==void 0&&l.nonce&&a.nonce!==((u=i.csp)===null||u===void 0?void 0:u.nonce)){var d;a.nonce=(d=i.csp)===null||d===void 0?void 0:d.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var f=Cb(e,i);return f.setAttribute(bb(i),t),f}function wb(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function VA(e){return wb(e)instanceof ShadowRoot}function Jc(e){return VA(e)?wb(e):null}var wg={},Sg=[],HA=function(t){Sg.push(t)};function xi(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=Sg.reduce(function(r,o){return o(r??"","warning")},t);n&&console.error("Warning: ".concat(n))}}function kA(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=Sg.reduce(function(r,o){return o(r??"","note")},t);n&&console.warn("Note: ".concat(n))}}function Sb(){wg={}}function Eb(e,t,n){!t&&!wg[n]&&(e(!1,n),wg[n]=!0)}function zt(e,t){Eb(xi,e,t)}function WA(e,t){Eb(kA,e,t)}zt.preMessage=HA,zt.resetWarned=Sb,zt.noteOnce=WA;function UA(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function qA(e,t){zt(e,"[@ant-design/icons] ".concat(t))}function $b(e){return je(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(je(e.icon)==="object"||typeof e.icon=="function")}function _b(){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[UA(n)]=r}return t},{})}function Eg(e,t,n){return n?M.createElement(e.tag,le(le({key:t},_b(e.attrs)),n),(e.children||[]).map(function(r,o){return Eg(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):M.createElement(e.tag,le({key:t},_b(e.attrs)),(e.children||[]).map(function(r,o){return Eg(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function Ob(e){return ol(e)[0]}function Nb(e){return e?Array.isArray(e)?e:[e]:[]}var GA=`
|
|
103
45
|
.anticon {
|
|
104
46
|
display: inline-flex;
|
|
105
47
|
align-items: center;
|
|
@@ -154,9 +96,67 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
154
96
|
transform: rotate(360deg);
|
|
155
97
|
}
|
|
156
98
|
}
|
|
157
|
-
`,
|
|
99
|
+
`,XA=function(t){var n=M.useContext(ng),r=n.csp,o=n.prefixCls,i=n.layer,a=GA;o&&(a=a.replace(/anticon/g,o)),i&&(a="@layer ".concat(i,` {
|
|
158
100
|
`).concat(a,`
|
|
159
|
-
}`)),T.useEffect(function(){var s=t.current,l=xs(s);Jn(a,"@ant-design-icons",{prepend:!i,csp:r,attachTo:l})},[])},JN=["icon","className","onClick","style","primaryColor","secondaryColor"],Ai={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function eP(e){var t=e.primaryColor,n=e.secondaryColor;Ai.primaryColor=t,Ai.secondaryColor=n||wv(t),Ai.calculated=!!n}function tP(){return Q({},Ai)}var Mo=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,s=t.secondaryColor,l=vt(t,JN),c=h.useRef(),u=Ai;if(a&&(u={primaryColor:a,secondaryColor:s||wv(a)}),QN(c),KN(bv(n),"icon should be icon definiton, but got ".concat(n)),!bv(n))return null;var d=n;return d&&typeof d.icon=="function"&&(d=Q(Q({},d),{},{icon:d.icon(u.primaryColor,u.secondaryColor)})),vu(d.icon,"svg-".concat(d.name),Q(Q({className:r,onClick:o,style:i,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};Mo.displayName="IconReact",Mo.getTwoToneColors=tP,Mo.setTwoToneColors=eP;function Sv(e){var t=xv(e),n=ae(t,2),r=n[0],o=n[1];return Mo.setTwoToneColors({primaryColor:r,secondaryColor:o})}function nP(){var e=Mo.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var rP=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Sv(_o.primary);var je=h.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,i=e.rotate,a=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=vt(e,rP),u=h.useContext(jc),d=u.prefixCls,f=d===void 0?"anticon":d,p=u.rootClassName,v=re(p,f,X(X({},"".concat(f,"-").concat(r.name),!!r.name),"".concat(f,"-spin"),!!o||r.name==="loading"),n),m=a;m===void 0&&s&&(m=-1);var g=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,y=xv(l),x=ae(y,2),b=x[0],C=x[1];return h.createElement("span",Ce({role:"img","aria-label":r.name},c,{ref:t,tabIndex:m,onClick:s,className:v}),h.createElement(Mo,{icon:r,primaryColor:b,secondaryColor:C,style:g}))});je.displayName="AntdIcon",je.getTwoToneColor=nP,je.setTwoToneColor=Sv;var oP=function(t,n){return h.createElement(je,Ce({},t,{ref:n,icon:GN}))},Ss=h.forwardRef(oP);process.env.NODE_ENV!=="production"&&(Ss.displayName="CheckCircleFilled");var iP={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"},aP=function(t,n){return h.createElement(je,Ce({},t,{ref:n,icon:iP}))},Di=h.forwardRef(aP);process.env.NODE_ENV!=="production"&&(Di.displayName="CloseCircleFilled");var sP={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"},lP=function(t,n){return h.createElement(je,Ce({},t,{ref:n,icon:sP}))},Es=h.forwardRef(lP);process.env.NODE_ENV!=="production"&&(Es.displayName="CloseOutlined");var cP={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"},uP=function(t,n){return h.createElement(je,Ce({},t,{ref:n,icon:cP}))},yu=h.forwardRef(uP);process.env.NODE_ENV!=="production"&&(yu.displayName="ExclamationCircleFilled");var dP={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"},fP=function(t,n){return h.createElement(je,Ce({},t,{ref:n,icon:dP}))},Ev=h.forwardRef(fP);process.env.NODE_ENV!=="production"&&(Ev.displayName="InfoCircleFilled");var pP=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
101
|
+
}`)),M.useEffect(function(){var l=t.current,u=Jc(l);Ro(a,"@ant-design-icons",{prepend:!i,csp:r,attachTo:u})},[])},YA=["icon","className","onClick","style","primaryColor","secondaryColor"],al={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function KA(e){var t=e.primaryColor,n=e.secondaryColor;al.primaryColor=t,al.secondaryColor=n||Ob(t),al.calculated=!!n}function ZA(){return le({},al)}var za=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,l=t.secondaryColor,u=sn(t,YA),d=h.useRef(),f=al;if(a&&(f={primaryColor:a,secondaryColor:l||Ob(a)}),XA(d),qA($b(n),"icon should be icon definiton, but got ".concat(n)),!$b(n))return null;var g=n;return g&&typeof g.icon=="function"&&(g=le(le({},g),{},{icon:g.icon(f.primaryColor,f.secondaryColor)})),Eg(g.icon,"svg-".concat(g.name),le(le({className:r,onClick:o,style:i,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},u),{},{ref:d}))};za.displayName="IconReact",za.getTwoToneColors=ZA,za.setTwoToneColors=KA;function Pb(e){var t=Nb(e),n=Ee(t,2),r=n[0],o=n[1];return za.setTwoToneColors({primaryColor:r,secondaryColor:o})}function QA(){var e=za.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var JA=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Pb(Ra.primary);var yt=h.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,i=e.rotate,a=e.tabIndex,l=e.onClick,u=e.twoToneColor,d=sn(e,JA),f=h.useContext(ng),g=f.prefixCls,p=g===void 0?"anticon":g,m=f.rootClassName,b=ge(m,p,re(re({},"".concat(p,"-").concat(r.name),!!r.name),"".concat(p,"-spin"),!!o||r.name==="loading"),n),C=a;C===void 0&&l&&(C=-1);var y=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,x=Nb(u),$=Ee(x,2),w=$[0],E=$[1];return h.createElement("span",Le({role:"img","aria-label":r.name},d,{ref:t,tabIndex:C,onClick:l,className:b}),h.createElement(za,{icon:r,primaryColor:w,secondaryColor:E,style:y}))});yt.displayName="AntdIcon",yt.getTwoToneColor=QA,yt.setTwoToneColor=Pb;var e4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M917.7 148.8l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 00-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 000 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM578.9 546.7a8.03 8.03 0 00-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 00-11.3 0L363 475.3l-43-43a7.85 7.85 0 00-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2c-68.9 68.9-77 175.7-24.3 253.5l-76.1 76.1a8.03 8.03 0 000 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2z"}}]},name:"api",theme:"filled"},t4=function(t,n){return h.createElement(yt,Le({},t,{ref:n,icon:e4}))},Ib=h.forwardRef(t4);process.env.NODE_ENV!=="production"&&(Ib.displayName="ApiFilled");var n4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm330-170c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1z"}}]},name:"audio",theme:"filled"},r4=function(t,n){return h.createElement(yt,Le({},t,{ref:n,icon:n4}))},Tb=h.forwardRef(r4);process.env.NODE_ENV!=="production"&&(Tb.displayName="AudioFilled");var o4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M842 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1zM512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm-94-392c0-50.6 41.9-92 94-92s94 41.4 94 92v224c0 50.6-41.9 92-94 92s-94-41.4-94-92V232z"}}]},name:"audio",theme:"outlined"},i4=function(t,n){return h.createElement(yt,Le({},t,{ref:n,icon:o4}))},eu=h.forwardRef(i4);process.env.NODE_ENV!=="production"&&(eu.displayName="AudioOutlined");var a4={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"},s4=function(t,n){return h.createElement(yt,Le({},t,{ref:n,icon:a4}))},Mb=h.forwardRef(s4);process.env.NODE_ENV!=="production"&&(Mb.displayName="BranchesOutlined");var l4={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"},c4=function(t,n){return h.createElement(yt,Le({},t,{ref:n,icon:l4}))},sl=h.forwardRef(c4);process.env.NODE_ENV!=="production"&&(sl.displayName="CheckCircleFilled");var u4={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"},d4=function(t,n){return h.createElement(yt,Le({},t,{ref:n,icon:u4}))},$g=h.forwardRef(d4);process.env.NODE_ENV!=="production"&&($g.displayName="CheckOutlined");var f4={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"},g4=function(t,n){return h.createElement(yt,Le({},t,{ref:n,icon:f4}))},ja=h.forwardRef(g4);process.env.NODE_ENV!=="production"&&(ja.displayName="CloseCircleFilled");var p4={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"},h4=function(t,n){return h.createElement(yt,Le({},t,{ref:n,icon:p4}))},ea=h.forwardRef(h4);process.env.NODE_ENV!=="production"&&(ea.displayName="CloseOutlined");var m4={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"},v4=function(t,n){return h.createElement(yt,Le({},t,{ref:n,icon:m4}))},Ab=h.forwardRef(v4);process.env.NODE_ENV!=="production"&&(Ab.displayName="CopyOutlined");var y4={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 32v224h704V96c0-17.7-14.3-32-32-32zM288 232c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zM160 928c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V704H160v224zm128-136c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zM160 640h704V384H160v256zm128-168c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40z"}}]},name:"database",theme:"filled"},b4=function(t,n){return h.createElement(yt,Le({},t,{ref:n,icon:y4}))},tu=h.forwardRef(b4);process.env.NODE_ENV!=="production"&&(tu.displayName="DatabaseFilled");var C4={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"},x4=function(t,n){return h.createElement(yt,Le({},t,{ref:n,icon:C4}))},_g=h.forwardRef(x4);process.env.NODE_ENV!=="production"&&(_g.displayName="DeleteOutlined");var w4={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"},S4=function(t,n){return h.createElement(yt,Le({},t,{ref:n,icon:w4}))},Db=h.forwardRef(S4);process.env.NODE_ENV!=="production"&&(Db.displayName="DownloadOutlined");var E4={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"},$4=function(t,n){return h.createElement(yt,Le({},t,{ref:n,icon:E4}))},Og=h.forwardRef($4);process.env.NODE_ENV!=="production"&&(Og.displayName="EditOutlined");var _4={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"},O4=function(t,n){return h.createElement(yt,Le({},t,{ref:n,icon:_4}))},Fb=h.forwardRef(O4);process.env.NODE_ENV!=="production"&&(Fb.displayName="EnterOutlined");var N4={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"},P4=function(t,n){return h.createElement(yt,Le({},t,{ref:n,icon:N4}))},Ba=h.forwardRef(P4);process.env.NODE_ENV!=="production"&&(Ba.displayName="ExclamationCircleFilled");var I4={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"},T4=function(t,n){return h.createElement(yt,Le({},t,{ref:n,icon:I4}))},Lb=h.forwardRef(T4);process.env.NODE_ENV!=="production"&&(Lb.displayName="EyeInvisibleOutlined");var M4={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"},A4=function(t,n){return h.createElement(yt,Le({},t,{ref:n,icon:M4}))},Ng=h.forwardRef(A4);process.env.NODE_ENV!=="production"&&(Ng.displayName="EyeOutlined");var D4={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"},F4=function(t,n){return h.createElement(yt,Le({},t,{ref:n,icon:D4}))},Rb=h.forwardRef(F4);process.env.NODE_ENV!=="production"&&(Rb.displayName="FileTwoTone");var L4={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"},R4=function(t,n){return h.createElement(yt,Le({},t,{ref:n,icon:L4}))},Pg=h.forwardRef(R4);process.env.NODE_ENV!=="production"&&(Pg.displayName="InfoCircleFilled");var z4={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"},j4=function(t,n){return h.createElement(yt,Le({},t,{ref:n,icon:z4}))},Va=h.forwardRef(j4);process.env.NODE_ENV!=="production"&&(Va.displayName="LoadingOutlined");var B4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.3 338.4a447.57 447.57 0 00-96.1-143.3 443.09 443.09 0 00-143-96.3A443.91 443.91 0 00512 64h-2c-60.5.3-119 12.3-174.1 35.9a444.08 444.08 0 00-141.7 96.5 445 445 0 00-95 142.8A449.89 449.89 0 0065 514.1c.3 69.4 16.9 138.3 47.9 199.9v152c0 25.4 20.6 46 45.9 46h151.8a447.72 447.72 0 00199.5 48h2.1c59.8 0 117.7-11.6 172.3-34.3A443.2 443.2 0 00827 830.5c41.2-40.9 73.6-88.7 96.3-142 23.5-55.2 35.5-113.9 35.8-174.5.2-60.9-11.6-120-34.8-175.6zM312.4 560c-26.4 0-47.9-21.5-47.9-48s21.5-48 47.9-48 47.9 21.5 47.9 48-21.4 48-47.9 48zm199.6 0c-26.4 0-47.9-21.5-47.9-48s21.5-48 47.9-48 47.9 21.5 47.9 48-21.5 48-47.9 48zm199.6 0c-26.4 0-47.9-21.5-47.9-48s21.5-48 47.9-48 47.9 21.5 47.9 48-21.5 48-47.9 48z"}}]},name:"message",theme:"filled"},V4=function(t,n){return h.createElement(yt,Le({},t,{ref:n,icon:B4}))},zb=h.forwardRef(V4);process.env.NODE_ENV!=="production"&&(zb.displayName="MessageFilled");var H4={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"},k4=function(t,n){return h.createElement(yt,Le({},t,{ref:n,icon:H4}))},jb=h.forwardRef(k4);process.env.NODE_ENV!=="production"&&(jb.displayName="PaperClipOutlined");var W4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.6 230.2L779.1 123.8a80.83 80.83 0 00-57.3-23.8c-21.7 0-42.1 8.5-57.4 23.8L549.8 238.4a80.83 80.83 0 00-23.8 57.3c0 21.7 8.5 42.1 23.8 57.4l83.8 83.8A393.82 393.82 0 01553.1 553 395.34 395.34 0 01437 633.8L353.2 550a80.83 80.83 0 00-57.3-23.8c-21.7 0-42.1 8.5-57.4 23.8L123.8 664.5a80.89 80.89 0 00-23.8 57.4c0 21.7 8.5 42.1 23.8 57.4l106.3 106.3c24.4 24.5 58.1 38.4 92.7 38.4 7.3 0 14.3-.6 21.2-1.8 134.8-22.2 268.5-93.9 376.4-201.7C828.2 612.8 899.8 479.2 922.3 344c6.8-41.3-6.9-83.8-36.7-113.8z"}}]},name:"phone",theme:"filled"},U4=function(t,n){return h.createElement(yt,Le({},t,{ref:n,icon:W4}))},Bb=h.forwardRef(U4);process.env.NODE_ENV!=="production"&&(Bb.displayName="PhoneFilled");var q4={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"},G4=function(t,n){return h.createElement(yt,Le({},t,{ref:n,icon:q4}))},Vb=h.forwardRef(G4);process.env.NODE_ENV!=="production"&&(Vb.displayName="PictureTwoTone");var X4={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"},Y4=function(t,n){return h.createElement(yt,Le({},t,{ref:n,icon:X4}))},Hb=h.forwardRef(Y4);process.env.NODE_ENV!=="production"&&(Hb.displayName="QuestionCircleOutlined");var K4={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"},Z4=function(t,n){return h.createElement(yt,Le({},t,{ref:n,icon:K4}))},kb=h.forwardRef(Z4);process.env.NODE_ENV!=="production"&&(kb.displayName="SearchOutlined");var Q4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M892.1 737.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 344zm174 132H806c-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-16zM625.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.1z"}}]},name:"sound",theme:"filled"},J4=function(t,n){return h.createElement(yt,Le({},t,{ref:n,icon:Q4}))},Wb=h.forwardRef(J4);process.env.NODE_ENV!=="production"&&(Wb.displayName="SoundFilled");var e3={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"},t3=function(t,n){return h.createElement(yt,Le({},t,{ref:n,icon:e3}))},Ub=h.forwardRef(t3);process.env.NODE_ENV!=="production"&&(Ub.displayName="SoundOutlined");var n3={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"},r3=function(t,n){return h.createElement(yt,Le({},t,{ref:n,icon:n3}))},nu=h.forwardRef(r3);process.env.NODE_ENV!=="production"&&(nu.displayName="UploadOutlined");var ru={exports:{}},St={};/**
|
|
102
|
+
* @license React
|
|
103
|
+
* react-is.production.min.js
|
|
104
|
+
*
|
|
105
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
106
|
+
*
|
|
107
|
+
* This source code is licensed under the MIT license found in the
|
|
108
|
+
* LICENSE file in the root directory of this source tree.
|
|
109
|
+
*/var qb;function o3(){if(qb)return St;qb=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function C(y){if(typeof y=="object"&&y!==null){var x=y.$$typeof;switch(x){case e:switch(y=y.type,y){case n:case o:case r:case d:case f:return y;default:switch(y=y&&y.$$typeof,y){case l:case a:case u:case p:case g:case i:return y;default:return x}}case t:return x}}}return St.ContextConsumer=a,St.ContextProvider=i,St.Element=e,St.ForwardRef=u,St.Fragment=n,St.Lazy=p,St.Memo=g,St.Portal=t,St.Profiler=o,St.StrictMode=r,St.Suspense=d,St.SuspenseList=f,St.isAsyncMode=function(){return!1},St.isConcurrentMode=function(){return!1},St.isContextConsumer=function(y){return C(y)===a},St.isContextProvider=function(y){return C(y)===i},St.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},St.isForwardRef=function(y){return C(y)===u},St.isFragment=function(y){return C(y)===n},St.isLazy=function(y){return C(y)===p},St.isMemo=function(y){return C(y)===g},St.isPortal=function(y){return C(y)===t},St.isProfiler=function(y){return C(y)===o},St.isStrictMode=function(y){return C(y)===r},St.isSuspense=function(y){return C(y)===d},St.isSuspenseList=function(y){return C(y)===f},St.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===n||y===o||y===r||y===d||y===f||y===m||typeof y=="object"&&y!==null&&(y.$$typeof===p||y.$$typeof===g||y.$$typeof===i||y.$$typeof===a||y.$$typeof===u||y.$$typeof===b||y.getModuleId!==void 0)},St.typeOf=C,St}var Et={};/**
|
|
110
|
+
* @license React
|
|
111
|
+
* react-is.development.js
|
|
112
|
+
*
|
|
113
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
114
|
+
*
|
|
115
|
+
* This source code is licensed under the MIT license found in the
|
|
116
|
+
* LICENSE file in the root directory of this source tree.
|
|
117
|
+
*/var Gb;function i3(){return Gb||(Gb=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),b=!1,C=!1,y=!1,x=!1,$=!1,w;w=Symbol.for("react.module.reference");function E(oe){return!!(typeof oe=="string"||typeof oe=="function"||oe===n||oe===o||$||oe===r||oe===d||oe===f||x||oe===m||b||C||y||typeof oe=="object"&&oe!==null&&(oe.$$typeof===p||oe.$$typeof===g||oe.$$typeof===i||oe.$$typeof===a||oe.$$typeof===u||oe.$$typeof===w||oe.getModuleId!==void 0))}function S(oe){if(typeof oe=="object"&&oe!==null){var he=oe.$$typeof;switch(he){case e:var me=oe.type;switch(me){case n:case o:case r:case d:case f:return me;default:var _e=me&&me.$$typeof;switch(_e){case l:case a:case u:case p:case g:case i:return _e;default:return he}}case t:return he}}}var O=a,_=i,P=e,T=u,L=n,z=p,B=g,j=t,I=o,F=r,A=d,D=f,V=!1,W=!1;function H(oe){return V||(V=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function q(oe){return W||(W=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Z(oe){return S(oe)===a}function Y(oe){return S(oe)===i}function G(oe){return typeof oe=="object"&&oe!==null&&oe.$$typeof===e}function K(oe){return S(oe)===u}function te(oe){return S(oe)===n}function ie(oe){return S(oe)===p}function ee(oe){return S(oe)===g}function ae(oe){return S(oe)===t}function de(oe){return S(oe)===o}function ue(oe){return S(oe)===r}function J(oe){return S(oe)===d}function fe(oe){return S(oe)===f}Et.ContextConsumer=O,Et.ContextProvider=_,Et.Element=P,Et.ForwardRef=T,Et.Fragment=L,Et.Lazy=z,Et.Memo=B,Et.Portal=j,Et.Profiler=I,Et.StrictMode=F,Et.Suspense=A,Et.SuspenseList=D,Et.isAsyncMode=H,Et.isConcurrentMode=q,Et.isContextConsumer=Z,Et.isContextProvider=Y,Et.isElement=G,Et.isForwardRef=K,Et.isFragment=te,Et.isLazy=ie,Et.isMemo=ee,Et.isPortal=ae,Et.isProfiler=de,Et.isStrictMode=ue,Et.isSuspense=J,Et.isSuspenseList=fe,Et.isValidElementType=E,Et.typeOf=S}()),Et}var Xb;function a3(){return Xb||(Xb=1,process.env.NODE_ENV==="production"?ru.exports=o3():ru.exports=i3()),ru.exports}var Ig=a3();function Tg(e,t,n){var r=h.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var s3=Symbol.for("react.element"),l3=Symbol.for("react.transitional.element"),c3=Symbol.for("react.fragment");function Yb(e){return e&&je(e)==="object"&&(e.$$typeof===s3||e.$$typeof===l3)&&e.type===c3}var u3=Number(M.version.split(".")[0]),Mg=function(t,n){typeof t=="function"?t(n):je(t)==="object"&&t&&"current"in t&&(t.current=n)},Xn=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n.filter(Boolean);return o.length<=1?o[0]:function(i){n.forEach(function(a){Mg(a,i)})}},ll=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Tg(function(){return Xn.apply(void 0,n)},n,function(o,i){return o.length!==i.length||o.every(function(a,l){return a!==i[l]})})},Ha=function(t){var n,r;if(!t)return!1;if(Kb(t)&&u3>=19)return!0;var o=Ig.isMemo(t)?t.type.type:t.type;return!(typeof o=="function"&&!((n=o.prototype)!==null&&n!==void 0&&n.render)&&o.$$typeof!==Ig.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==Ig.ForwardRef)};function Kb(e){return M.isValidElement(e)&&!Yb(e)}var cl=function(t){if(t&&Kb(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null};const Zb="collapsed",Ag="collapsing",ou="expanding",iu="expanded",d3="collapse-css-transition",f3="div",g3="0px";function Qb(e){requestAnimationFrame(function(){requestAnimationFrame(e)})}const ka=({children:e,transition:t,style:n,render:r,elementType:o=f3,isOpen:i,collapseHeight:a=g3,onInit:l,onChange:u,className:d=d3,addState:f,noAnim:g,overflowOnExpanded:p,...m})=>{const b=()=>a==="0px"?"hidden":void 0,[C,y]=M.useReducer(D=>D+1,0),x=M.useRef(),[$,w]=M.useState(0),E=M.useRef({collapse:i?iu:Zb,style:{height:i?void 0:a,visibility:i?void 0:b()}}).current;M.useEffect(()=>{$&&S(u)},[$]);const S=(D,V={})=>{D&&D({state:E.collapse,style:E.style,...V})};function O(){x.current&&(E.collapse=Zb,E.style={height:a,visibility:b()},y(),setTimeout(()=>w(Date.now),0))}function _(){if(x.current){if(g)return O();E.collapse=Ag,E.style={height:L(),visibility:void 0},y(),Qb(()=>{x.current&&E.collapse===Ag&&(E.style={height:a,visibility:void 0},w(Date.now))})}}function P(){if(x.current){if(g)return T();E.collapse=ou,Qb(()=>{x.current&&E.collapse===ou&&(E.style={height:L(),visibility:void 0},w(Date.now))})}}function T(){x.current&&(E.collapse=iu,E.style={height:void 0,visibility:void 0},y(),setTimeout(()=>w(Date.now),0))}function L(){return`${x.current.scrollHeight}px`}function z({target:D,propertyName:V}){if(D===x.current&&V==="height"){const W=D.style.height;switch(E.collapse){case ou:W===void 0||W===a||T();break;case Ag:W===void 0||W!==a||O();break}}}const B=E.collapse===iu||E.collapse===ou;!B&&i&&P(),B&&!i&&_();const j={overflow:E.collapse===iu&&p?void 0:"hidden",transition:t,...n,...E.style},I=o,F=M.useCallback(D=>{D&&(x.current=D,S(l,{node:D}))},[o]),A=f?`${d} --c-${E.collapse}`:d;return X.jsx(I,{ref:F,style:j,onTransitionEnd:z,className:A,...m,children:typeof e=="function"?e(E.collapse):typeof r=="function"?r(E.collapse):e})};function zo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return M.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(zo(r)):Yb(r)&&r.props?n=n.concat(zo(r.props.children,t)):n.push(r))}),n}function ul(e){return e instanceof HTMLElement||e instanceof SVGElement}function Jb(e){return e&&je(e)==="object"&&ul(e.nativeElement)?e.nativeElement:ul(e)?e:null}function au(e){var t=Jb(e);if(t)return t;if(e instanceof M.Component){var n;return(n=hi.findDOMNode)===null||n===void 0?void 0:n.call(hi,e)}return null}var Dg=h.createContext(null);function p3(e){var t=e.children,n=e.onBatchResize,r=h.useRef(0),o=h.useRef([]),i=h.useContext(Dg),a=h.useCallback(function(l,u,d){r.current+=1;var f=r.current;o.current.push({size:l,element:u,data:d}),Promise.resolve().then(function(){f===r.current&&(n==null||n(o.current),o.current=[])}),i==null||i(l,u,d)},[n,i]);return h.createElement(Dg.Provider,{value:a},t)}var e1=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(o,i){return o[0]===n?(r=i,!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),o=this.__entries__[r];return o&&o[1]},t.prototype.set=function(n,r){var o=e(this.__entries__,n);~o?this.__entries__[o][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,o=e(r,n);~o&&r.splice(o,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 o=0,i=this.__entries__;o<i.length;o++){var a=i[o];n.call(r,a[1],a[0])}},t}()}(),Fg=typeof window<"u"&&typeof document<"u"&&window.document===document,su=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),h3=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(su):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),m3=2;function v3(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&l()}function a(){h3(i)}function l(){var u=Date.now();if(n){if(u-o<m3)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=u}return l}var y3=20,b3=["top","right","bottom","left","width","height","size","weight"],C3=typeof MutationObserver<"u",x3=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=v3(this.refresh.bind(this),y3)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Fg||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),C3?(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(){!Fg||!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,o=b3.some(function(i){return!!~r.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),t1=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},Wa=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||su},n1=cu(0,0,0,0);function lu(e){return parseFloat(e)||0}function r1(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,o){var i=e["border-"+o+"-width"];return r+lu(i)},0)}function w3(e){for(var t=["top","right","bottom","left"],n={},r=0,o=t;r<o.length;r++){var i=o[r],a=e["padding-"+i];n[i]=lu(a)}return n}function S3(e){var t=e.getBBox();return cu(0,0,t.width,t.height)}function E3(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return n1;var r=Wa(e).getComputedStyle(e),o=w3(r),i=o.left+o.right,a=o.top+o.bottom,l=lu(r.width),u=lu(r.height);if(r.boxSizing==="border-box"&&(Math.round(l+i)!==t&&(l-=r1(r,"left","right")+i),Math.round(u+a)!==n&&(u-=r1(r,"top","bottom")+a)),!_3(e)){var d=Math.round(l+i)-t,f=Math.round(u+a)-n;Math.abs(d)!==1&&(l-=d),Math.abs(f)!==1&&(u-=f)}return cu(o.left,o.top,l,u)}var $3=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Wa(e).SVGGraphicsElement}:function(e){return e instanceof Wa(e).SVGElement&&typeof e.getBBox=="function"}}();function _3(e){return e===Wa(e).document.documentElement}function O3(e){return Fg?$3(e)?S3(e):E3(e):n1}function N3(e){var t=e.x,n=e.y,r=e.width,o=e.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(i.prototype);return t1(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}function cu(e,t,n,r){return{x:e,y:t,width:n,height:r}}var P3=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=cu(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=O3(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),I3=function(){function e(t,n){var r=N3(n);t1(this,{target:t,contentRect:r})}return e}(),T3=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new e1,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=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 Wa(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new P3(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 Wa(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 I3(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}(),o1=typeof WeakMap<"u"?new WeakMap:new e1,i1=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=x3.getInstance(),r=new T3(t,n,this);o1.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){i1.prototype[e]=function(){var t;return(t=o1.get(this))[e].apply(t,arguments)}});var M3=function(){return typeof su.ResizeObserver<"u"?su.ResizeObserver:i1}(),jo=new Map;function a1(e){e.forEach(function(t){var n,r=t.target;(n=jo.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var s1=new M3(a1);process.env.NODE_ENV,process.env.NODE_ENV;function A3(e,t){jo.has(e)||(jo.set(e,new Set),s1.observe(e)),jo.get(e).add(t)}function D3(e,t){jo.has(e)&&(jo.get(e).delete(t),jo.get(e).size||(s1.unobserve(e),jo.delete(e)))}function Zt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l1(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sb(r.key),r)}}function Qt(e,t,n){return t&&l1(e.prototype,t),n&&l1(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function dl(e,t){return dl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},dl(e,t)}function Yr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dl(e,t)}function ta(e){return ta=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ta(e)}function uu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(uu=function(){return!!e})()}function He(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c1(e,t){if(t&&(je(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return He(e)}function yo(e){var t=uu();return function(){var n,r=ta(e);if(t){var o=ta(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c1(this,n)}}var F3=function(e){Yr(n,e);var t=yo(n);function n(){return Zt(this,n),t.apply(this,arguments)}return Qt(n,[{key:"render",value:function(){return this.props.children}}]),n}(h.Component);function L3(e,t){var n=e.children,r=e.disabled,o=h.useRef(null),i=h.useRef(null),a=h.useContext(Dg),l=typeof n=="function",u=l?n(o):n,d=h.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),f=!l&&h.isValidElement(u)&&Ha(u),g=f?cl(u):null,p=ll(g,o),m=function(){var x;return au(o.current)||(o.current&&je(o.current)==="object"?au((x=o.current)===null||x===void 0?void 0:x.nativeElement):null)||au(i.current)};h.useImperativeHandle(t,function(){return m()});var b=h.useRef(e);b.current=e;var C=h.useCallback(function(y){var x=b.current,$=x.onResize,w=x.data,E=y.getBoundingClientRect(),S=E.width,O=E.height,_=y.offsetWidth,P=y.offsetHeight,T=Math.floor(S),L=Math.floor(O);if(d.current.width!==T||d.current.height!==L||d.current.offsetWidth!==_||d.current.offsetHeight!==P){var z={width:T,height:L,offsetWidth:_,offsetHeight:P};d.current=z;var B=_===Math.round(S)?S:_,j=P===Math.round(O)?O:P,I=le(le({},z),{},{offsetWidth:B,offsetHeight:j});a==null||a(I,y,w),$&&Promise.resolve().then(function(){$(I,y)})}},[]);return h.useEffect(function(){var y=m();return y&&!r&&A3(y,C),function(){return D3(y,C)}},[o.current,r]),h.createElement(F3,{ref:i},f?h.cloneElement(u,{ref:p}):u)}var u1=h.forwardRef(L3);process.env.NODE_ENV!=="production"&&(u1.displayName="SingleObserver");var R3="rc-observer-key";function z3(e,t){var n=e.children,r=typeof n=="function"?[n]:zo(n);return process.env.NODE_ENV!=="production"&&(r.length>1?xi(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):r.length===0&&xi(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),r.map(function(o,i){var a=(o==null?void 0:o.key)||"".concat(R3,"-").concat(i);return h.createElement(u1,Le({},e,{key:a,ref:i===0?t:void 0}),o)})}var Ua=h.forwardRef(z3);process.env.NODE_ENV!=="production"&&(Ua.displayName="ResizeObserver"),Ua.Collection=p3;function j3(e){if(Array.isArray(e))return rg(e)}function d1(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function B3(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
118
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Oe(e){return j3(e)||d1(e)||og(e)||B3()}var f1=function(t){return+setTimeout(t,16)},g1=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(f1=function(t){return window.requestAnimationFrame(t)},g1=function(t){return window.cancelAnimationFrame(t)});var p1=0,du=new Map;function h1(e){du.delete(e)}var Ln=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;p1+=1;var r=p1;function o(i){if(i===0)h1(r),t();else{var a=f1(function(){o(i-1)});du.set(r,a)}}return o(n),r};Ln.cancel=function(e){var t=du.get(e);return h1(e),g1(t)},process.env.NODE_ENV!=="production"&&(Ln.ids=function(){return du});function fl(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=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(o){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 Lg(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(i,a){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,u=r.has(i);if(zt(!u,"Warning: There may be circular references"),u)return!1;if(i===a)return!0;if(n&&l>1)return!1;r.add(i);var d=l+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var f=0;f<i.length;f++)if(!o(i[f],a[f],d))return!1;return!0}if(i&&a&&je(i)==="object"&&je(a)==="object"){var g=Object.keys(i);return g.length!==Object.keys(a).length?!1:g.every(function(p){return o(i[p],a[p],d)})}return!1}return o(e,t)}var V3="%";function Rg(e){return e.join(V3)}var H3=function(){function e(t){Zt(this,e),re(this,"instanceId",void 0),re(this,"cache",new Map),this.instanceId=t}return Qt(e,[{key:"get",value:function(n){return this.opGet(Rg(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(Rg(n),r)}},{key:"opUpdate",value:function(n,r){var o=this.cache.get(n),i=r(o);i===null?this.cache.delete(n):this.cache.set(n,i)}}]),e}(),qa="data-token-hash",Kr="data-css-hash",k3="data-cache-path",wi="__cssinjs_instance__";function W3(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Kr,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[wi]=o[wi]||e,o[wi]===e&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat(Kr,"]"))).forEach(function(o){var i=o.getAttribute(Kr);if(r[i]){if(o[wi]===e){var a;(a=o.parentNode)===null||a===void 0||a.removeChild(o)}}else r[i]=!0})}return new H3(e)}var gl=h.createContext({hashPriority:"low",cache:W3(),defaultCache:!0});function U3(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var zg=function(){function e(){Zt(this,e),re(this,"cache",void 0),re(this,"keys",void 0),re(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Qt(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,o,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return n.forEach(function(l){if(!a)a=void 0;else{var u;a=(u=a)===null||u===void 0||(u=u.map)===null||u===void 0?void 0:u.get(l)}}),(r=a)!==null&&r!==void 0&&r.value&&i&&(a.value[1]=this.cacheCallTimes++),(o=a)===null||o===void 0?void 0:o.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 o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(d,f){var g=Ee(d,2),p=g[1];return o.internalGet(f)[1]<p?[f,o.internalGet(f)[1]]:d},[this.keys[0],this.cacheCallTimes]),a=Ee(i,1),l=a[0];this.delete(l)}this.keys.push(n)}var u=this.cache;n.forEach(function(d,f){if(f===n.length-1)u.set(d,{value:[r,o.cacheCallTimes++]});else{var g=u.get(d);g?g.map||(g.map=new Map):u.set(d,{map:new Map}),u=u.get(d).map}})}},{key:"deleteByPath",value:function(n,r){var o=n.get(r[0]);if(r.length===1){var i;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(i=o.value)===null||i===void 0?void 0:i[0]}var a=this.deleteByPath(o.map,r.slice(1));return(!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),a}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!U3(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();re(zg,"MAX_CACHE_SIZE",20),re(zg,"MAX_CACHE_OFFSET",5);var m1=0,v1=function(){function e(t){Zt(this,e),re(this,"derivatives",void 0),re(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=m1,t.length===0&&xi(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),m1+=1}return Qt(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),jg=new zg;function Bg(e){var t=Array.isArray(e)?e:[e];return jg.has(t)||jg.set(t,new v1(t)),jg.get(t)}var q3=new WeakMap,Vg={};function G3(e,t){for(var n=q3,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(Vg)||n.set(Vg,e()),n.get(Vg)}var y1=new WeakMap;function pl(e){var t=y1.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof v1?t+=r.id:r&&je(r)==="object"?t+=pl(r):t+=r}),t=fl(t),y1.set(e,t)),t}function b1(e,t){return fl("".concat(t,"_").concat(pl(e)))}var Hg=On();function we(e){return typeof e=="number"?"".concat(e,"px"):e}function fu(e,t,n){var r,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(i)return e;var a=le(le({},o),{},(r={},re(r,qa,t),re(r,Kr,n),r)),l=Object.keys(a).map(function(u){var d=a[u];return d?"".concat(u,'="').concat(d,'"'):null}).filter(function(u){return u}).join(" ");return"<style ".concat(l,">").concat(e,"</style>")}var gu=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()},X3=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(o){var i=Ee(o,2),a=i[0],l=i[1];return"".concat(a,":").concat(l,";")}).join(""),"}"):""},C1=function(t,n,r){var o={},i={};return Object.entries(t).forEach(function(a){var l,u,d=Ee(a,2),f=d[0],g=d[1];if(r!=null&&(l=r.preserve)!==null&&l!==void 0&&l[f])i[f]=g;else if((typeof g=="string"||typeof g=="number")&&!(r!=null&&(u=r.ignore)!==null&&u!==void 0&&u[f])){var p,m=gu(f,r==null?void 0:r.prefix);o[m]=typeof g=="number"&&!(r!=null&&(p=r.unitless)!==null&&p!==void 0&&p[f])?"".concat(g,"px"):String(g),i[f]="var(".concat(m,")")}}),[i,X3(o,n,{scope:r==null?void 0:r.scope})]},x1=process.env.NODE_ENV!=="test"&&On()?h.useLayoutEffect:h.useEffect,Ft=function(t,n){var r=h.useRef(!0);x1(function(){return t(r.current)},n),x1(function(){return r.current=!1,function(){r.current=!0}},[])},w1=function(t,n){Ft(function(r){if(!r)return t()},n)},Y3=le({},h),S1=Y3.useInsertionEffect,K3=function(t,n,r){h.useMemo(t,r),Ft(function(){return n(!0)},r)},Z3=S1?function(e,t,n){return S1(function(){return e(),t()},n)}:K3,Q3=le({},h),J3=Q3.useInsertionEffect,eD=function(t){var n=[],r=!1;function o(i){if(r){process.env.NODE_ENV!=="production"&&xi(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}n.push(i)}return h.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(i){return i()})}},t),o},tD=function(){return function(t){t()}},nD=typeof J3<"u"?eD:tD;function rD(){return!1}var kg=!1;function oD(){return kg}const iD=process.env.NODE_ENV==="production"?rD:oD;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var pu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:null;if(pu&&typeof pu.webpackHotUpdate=="function"){var aD=pu.webpackHotUpdate;pu.webpackHotUpdate=function(){return kg=!0,setTimeout(function(){kg=!1},0),aD.apply(void 0,arguments)}}}function Wg(e,t,n,r,o){var i=h.useContext(gl),a=i.cache,l=[e].concat(Oe(t)),u=Rg(l),d=nD([u]),f=iD(),g=function(C){a.opUpdate(u,function(y){var x=y||[void 0,void 0],$=Ee(x,2),w=$[0],E=w===void 0?0:w,S=$[1],O=S;process.env.NODE_ENV!=="production"&&S&&f&&(r==null||r(O,f),O=null);var _=O||n(),P=[E,_];return C?C(P):P})};h.useMemo(function(){g()},[u]);var p=a.opGet(u);process.env.NODE_ENV!=="production"&&!p&&(g(),p=a.opGet(u));var m=p[1];return Z3(function(){o==null||o(m)},function(b){return g(function(C){var y=Ee(C,2),x=y[0],$=y[1];return b&&x===0&&(o==null||o(m)),[x+1,$]}),function(){a.opUpdate(u,function(C){var y=C||[],x=Ee(y,2),$=x[0],w=$===void 0?0:$,E=x[1],S=w-1;return S===0?(d(function(){(b||!a.opGet(u))&&(r==null||r(E,!1))}),null):[w-1,E]})}},[u]),m}var sD={},lD=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",na=new Map;function cD(e){na.set(e,(na.get(e)||0)+1)}function uD(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(qa,'="').concat(e,'"]'));n.forEach(function(r){if(r[wi]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var dD=0;function fD(e,t){na.set(e,(na.get(e)||0)-1);var n=Array.from(na.keys()),r=n.filter(function(o){var i=na.get(o)||0;return i<=0});n.length-r.length>dD&&r.forEach(function(o){uD(o,t),na.delete(o)})}var gD=function(t,n,r,o){var i=r.getDerivativeToken(t),a=le(le({},i),n);return o&&(a=o(a)),a},E1="token";function pD(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=M.useContext(gl),o=r.cache.instanceId,i=r.container,a=n.salt,l=a===void 0?"":a,u=n.override,d=u===void 0?sD:u,f=n.formatToken,g=n.getComputedToken,p=n.cssVar,m=G3(function(){return Object.assign.apply(Object,[{}].concat(Oe(t)))},t),b=pl(m),C=pl(d),y=p?pl(p):"",x=Wg(E1,[l,e.id,b,C,y],function(){var $,w=g?g(m,d,e):gD(m,d,e,f),E=le({},w),S="";if(p){var O=C1(w,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),_=Ee(O,2);w=_[0],S=_[1]}var P=b1(w,l);w._tokenKey=P,E._tokenKey=b1(E,l);var T=($=p==null?void 0:p.key)!==null&&$!==void 0?$:P;w._themeKey=T,cD(T);var L="".concat(lD,"-").concat(fl(P));return w._hashId=L,[w,L,E,S,(p==null?void 0:p.key)||""]},function($){fD($[0]._themeKey,o)},function($){var w=Ee($,4),E=w[0],S=w[3];if(p&&S){var O=Ro(S,fl("css-variables-".concat(E._themeKey)),{mark:Kr,prepend:"queue",attachTo:i,priority:-999});O[wi]=o,O.setAttribute(qa,E._themeKey)}});return x}var hD=function(t,n,r){var o=Ee(t,5),i=o[2],a=o[3],l=o[4],u=r||{},d=u.plain;if(!a)return null;var f=i._tokenKey,g=-999,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(g)},m=fu(a,l,f,p,d);return[g,f,m]},mD={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},$1="comm",_1="rule",O1="decl",vD="@import",yD="@namespace",bD="@keyframes",CD="@layer",N1=Math.abs,Ug=String.fromCharCode;function P1(e){return e.trim()}function hu(e,t,n){return e.replace(t,n)}function xD(e,t,n){return e.indexOf(t,n)}function Ga(e,t){return e.charCodeAt(t)|0}function Xa(e,t,n){return e.slice(t,n)}function bo(e){return e.length}function wD(e){return e.length}function mu(e,t){return t.push(e),e}var vu=1,Ya=1,I1=0,Sr=0,ln=0,Ka="";function qg(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:vu,column:Ya,length:a,return:"",siblings:l}}function SD(){return ln}function ED(){return ln=Sr>0?Ga(Ka,--Sr):0,Ya--,ln===10&&(Ya=1,vu--),ln}function Zr(){return ln=Sr<I1?Ga(Ka,Sr++):0,Ya++,ln===10&&(Ya=1,vu++),ln}function Si(){return Ga(Ka,Sr)}function yu(){return Sr}function bu(e,t){return Xa(Ka,e,t)}function hl(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function $D(e){return vu=Ya=1,I1=bo(Ka=e),Sr=0,[]}function _D(e){return Ka="",e}function Gg(e){return P1(bu(Sr-1,Xg(e===91?e+2:e===40?e+1:e)))}function OD(e){for(;(ln=Si())&&ln<33;)Zr();return hl(e)>2||hl(ln)>3?"":" "}function ND(e,t){for(;--t&&Zr()&&!(ln<48||ln>102||ln>57&&ln<65||ln>70&&ln<97););return bu(e,yu()+(t<6&&Si()==32&&Zr()==32))}function Xg(e){for(;Zr();)switch(ln){case e:return Sr;case 34:case 39:e!==34&&e!==39&&Xg(ln);break;case 40:e===41&&Xg(e);break;case 92:Zr();break}return Sr}function PD(e,t){for(;Zr()&&e+ln!==57;)if(e+ln===84&&Si()===47)break;return"/*"+bu(t,Sr-1)+"*"+Ug(e===47?e:Zr())}function ID(e){for(;!hl(Si());)Zr();return bu(e,Sr)}function TD(e){return _D(Cu("",null,null,null,[""],e=$D(e),0,[0],e))}function Cu(e,t,n,r,o,i,a,l,u){for(var d=0,f=0,g=a,p=0,m=0,b=0,C=1,y=1,x=1,$=0,w="",E=o,S=i,O=r,_=w;y;)switch(b=$,$=Zr()){case 40:if(b!=108&&Ga(_,g-1)==58){xD(_+=hu(Gg($),"&","&\f"),"&\f",N1(d?l[d-1]:0))!=-1&&(x=-1);break}case 34:case 39:case 91:_+=Gg($);break;case 9:case 10:case 13:case 32:_+=OD(b);break;case 92:_+=ND(yu()-1,7);continue;case 47:switch(Si()){case 42:case 47:mu(MD(PD(Zr(),yu()),t,n,u),u),(hl(b||1)==5||hl(Si()||1)==5)&&bo(_)&&Xa(_,-1,void 0)!==" "&&(_+=" ");break;default:_+="/"}break;case 123*C:l[d++]=bo(_)*x;case 125*C:case 59:case 0:switch($){case 0:case 125:y=0;case 59+f:x==-1&&(_=hu(_,/\f/g,"")),m>0&&(bo(_)-g||C===0&&b===47)&&mu(m>32?M1(_+";",r,n,g-1,u):M1(hu(_," ","")+";",r,n,g-2,u),u);break;case 59:_+=";";default:if(mu(O=T1(_,t,n,d,f,o,l,w,E=[],S=[],g,i),i),$===123)if(f===0)Cu(_,t,O,O,E,i,g,l,S);else{switch(p){case 99:if(Ga(_,3)===110)break;case 108:if(Ga(_,2)===97)break;default:f=0;case 100:case 109:case 115:}f?Cu(e,O,O,r&&mu(T1(e,O,O,0,0,o,l,w,o,E=[],g,S),S),o,S,g,l,r?E:S):Cu(_,O,O,O,[""],S,0,l,S)}}d=f=m=0,C=x=1,w=_="",g=a;break;case 58:g=1+bo(_),m=b;default:if(C<1){if($==123)--C;else if($==125&&C++==0&&ED()==125)continue}switch(_+=Ug($),$*C){case 38:x=f>0?1:(_+="\f",-1);break;case 44:l[d++]=(bo(_)-1)*x,x=1;break;case 64:Si()===45&&(_+=Gg(Zr())),p=Si(),f=g=bo(w=_+=ID(yu())),$++;break;case 45:b===45&&bo(_)==2&&(C=0)}}return i}function T1(e,t,n,r,o,i,a,l,u,d,f,g){for(var p=o-1,m=o===0?i:[""],b=wD(m),C=0,y=0,x=0;C<r;++C)for(var $=0,w=Xa(e,p+1,p=N1(y=a[C])),E=e;$<b;++$)(E=P1(y>0?m[$]+" "+w:hu(w,/&\f/g,m[$])))&&(u[x++]=E);return qg(e,t,n,o===0?_1:l,u,d,f,g)}function MD(e,t,n,r){return qg(e,t,n,$1,Ug(SD()),Xa(e,2,-2),0,r)}function M1(e,t,n,r,o){return qg(e,t,n,O1,Xa(e,0,r),Xa(e,r+1,-1),r,o)}function Yg(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function AD(e,t,n,r){switch(e.type){case CD:if(e.children.length)break;case vD:case yD:case O1:return e.return=e.return||e.value;case $1:return"";case bD:return e.return=e.value+"{"+Yg(e.children,r)+"}";case _1:if(!bo(e.value=e.props.join(",")))return""}return bo(n=Yg(e.children,r))?e.return=e.value+"{"+n+"}":""}function A1(e,t){var n=t.path,r=t.parentSelectors;zt(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}var DD=function(t,n,r){if(t==="content"){var o=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,i=["normal","none","initial","inherit","unset"];(typeof n!="string"||i.indexOf(n)===-1&&!o.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'"))&&A1("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(n,"\"'`."),r)}},FD=function(t,n,r){t==="animation"&&r.hashId&&n!=="none"&&A1("You seem to be using hashed animation '".concat(n,"', in which case 'animationName' with Keyframe as value is recommended."),r)},D1="data-ant-cssinjs-cache-path",F1="_FILE_STYLE__",ra,L1=!0;function LD(){if(!ra&&(ra={},On())){var e=document.createElement("div");e.className=D1,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(o){var i=o.split(":"),a=Ee(i,2),l=a[0],u=a[1];ra[l]=u});var n=document.querySelector("style[".concat(D1,"]"));if(n){var r;L1=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function RD(e){return LD(),!!ra[e]}function zD(e){var t=ra[e],n=null;if(t&&On())if(L1)n=F1;else{var r=document.querySelector("style[".concat(Kr,'="').concat(ra[e],'"]'));r?n=r.innerHTML:delete ra[e]}return[n,t]}var R1="_skip_check_",z1="_multi_value_";function xu(e){var t=Yg(TD(e),AD);return t.replace(/\{%%%\:[^;];}/g,";")}function jD(e){return je(e)==="object"&&e&&(R1 in e||z1 in e)}function j1(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,i=e.split(",").map(function(a){var l,u=a.trim().split(/\s+/),d=u[0]||"",f=((l=d.match(/^\w+/))===null||l===void 0?void 0:l[0])||"";return d="".concat(f).concat(o).concat(d.slice(f.length)),[d].concat(Oe(u.slice(1))).join(" ")});return i.join(",")}var BD=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,l=n.hashId,u=n.layer,d=n.path,f=n.hashPriority,g=n.transformers,p=g===void 0?[]:g,m=n.linters,b=m===void 0?[]:m,C="",y={};function x(E){var S=E.getName(l);if(!y[S]){var O=e(E.style,n,{root:!1,parentSelectors:a}),_=Ee(O,1),P=_[0];y[S]="@keyframes ".concat(E.getName(l)).concat(P)}}function $(E){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return E.forEach(function(O){Array.isArray(O)?$(O,S):O&&S.push(O)}),S}var w=$(Array.isArray(t)?t:[t]);return w.forEach(function(E){var S=typeof E=="string"&&!o?{}:E;if(typeof S=="string")C+="".concat(S,`
|
|
119
|
+
`);else if(S._keyframe)x(S);else{var O=p.reduce(function(_,P){var T;return(P==null||(T=P.visit)===null||T===void 0?void 0:T.call(P,_))||_},S);Object.keys(O).forEach(function(_){var P=O[_];if(je(P)==="object"&&P&&(_!=="animationName"||!P._keyframe)&&!jD(P)){var T=!1,L=_.trim(),z=!1;(o||i)&&l?L.startsWith("@")?T=!0:L==="&"?L=j1("",l,f):L=j1(_,l,f):o&&!l&&(L==="&"||L==="")&&(L="",z=!0);var B=e(P,n,{root:z,injectHash:T,parentSelectors:[].concat(Oe(a),[L])}),j=Ee(B,2),I=j[0],F=j[1];y=le(le({},y),F),C+="".concat(L).concat(I)}else{let V=function(W,H){process.env.NODE_ENV!=="production"&&(je(P)!=="object"||!(P!=null&&P[R1]))&&[DD,FD].concat(Oe(b)).forEach(function(Y){return Y(W,H,{path:d,hashId:l,parentSelectors:a})});var q=W.replace(/[A-Z]/g,function(Y){return"-".concat(Y.toLowerCase())}),Z=H;!mD[W]&&typeof Z=="number"&&Z!==0&&(Z="".concat(Z,"px")),W==="animationName"&&H!==null&&H!==void 0&&H._keyframe&&(x(H),Z=H.getName(l)),C+="".concat(q,":").concat(Z,";")};var A,D=(A=P==null?void 0:P.value)!==null&&A!==void 0?A:P;je(P)==="object"&&P!==null&&P!==void 0&&P[z1]&&Array.isArray(D)?D.forEach(function(W){V(_,W)}):V(_,D)}})}}),o?u&&(C&&(C="@layer ".concat(u.name," {").concat(C,"}")),u.dependencies&&(y["@layer ".concat(u.name)]=u.dependencies.map(function(E){return"@layer ".concat(E,", ").concat(u.name,";")}).join(`
|
|
120
|
+
`))):C="{".concat(C,"}"),[C,y]};function B1(e,t){return fl("".concat(e.join("%")).concat(t))}function VD(){return null}var V1="style";function Kg(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,l=e.clientOnly,u=e.order,d=u===void 0?0:u,f=h.useContext(gl),g=f.autoClear,p=f.mock,m=f.defaultCache,b=f.hashPriority,C=f.container,y=f.ssrInline,x=f.transformers,$=f.linters,w=f.cache,E=f.layer,S=n._tokenKey,O=[S];E&&O.push("layer"),O.push.apply(O,Oe(r));var _=Hg;process.env.NODE_ENV!=="production"&&p!==void 0&&(_=p==="client");var P=Wg(V1,O,function(){var j=O.join("|");if(RD(j)){var I=zD(j),F=Ee(I,2),A=F[0],D=F[1];if(A)return[A,S,D,{},l,d]}var V=t(),W=BD(V,{hashId:o,hashPriority:b,layer:E?i:void 0,path:r.join("-"),transformers:x,linters:$}),H=Ee(W,2),q=H[0],Z=H[1],Y=xu(q),G=B1(O,Y);return[Y,S,G,Z,l,d]},function(j,I){var F=Ee(j,3),A=F[2];(I||g)&&Hg&&il(A,{mark:Kr})},function(j){var I=Ee(j,4),F=I[0];I[1];var A=I[2],D=I[3];if(_&&F!==F1){var V={mark:Kr,prepend:E?!1:"queue",attachTo:C,priority:d},W=typeof a=="function"?a():a;W&&(V.csp={nonce:W});var H=[],q=[];Object.keys(D).forEach(function(Y){Y.startsWith("@layer")?H.push(Y):q.push(Y)}),H.forEach(function(Y){Ro(xu(D[Y]),"_layer-".concat(Y),le(le({},V),{},{prepend:!0}))});var Z=Ro(F,A,V);Z[wi]=w.instanceId,Z.setAttribute(qa,S),process.env.NODE_ENV!=="production"&&Z.setAttribute(k3,O.join("|")),q.forEach(function(Y){Ro(xu(D[Y]),"_effect-".concat(Y),V)})}}),T=Ee(P,3),L=T[0],z=T[1],B=T[2];return function(j){var I;if(!y||_||!m)I=h.createElement(VD,null);else{var F;I=h.createElement("style",Le({},(F={},re(F,qa,z),re(F,Kr,B),F),{dangerouslySetInnerHTML:{__html:L}}))}return h.createElement(h.Fragment,null,I,j)}}var HD=function(t,n,r){var o=Ee(t,6),i=o[0],a=o[1],l=o[2],u=o[3],d=o[4],f=o[5],g=r||{},p=g.plain;if(d)return null;var m=i,b={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)};return m=fu(i,a,l,b,p),u&&Object.keys(u).forEach(function(C){if(!n[C]){n[C]=!0;var y=xu(u[C]),x=fu(y,a,"_effect-".concat(C),b,p);C.startsWith("@layer")?m=x+m:m+=x}}),[f,l,m]},H1="cssVar",kD=function(t,n){var r=t.key,o=t.prefix,i=t.unitless,a=t.ignore,l=t.token,u=t.scope,d=u===void 0?"":u,f=M.useContext(gl),g=f.cache.instanceId,p=f.container,m=l._tokenKey,b=[].concat(Oe(t.path),[r,d,m]),C=Wg(H1,b,function(){var y=n(),x=C1(y,r,{prefix:o,unitless:i,ignore:a,scope:d}),$=Ee(x,2),w=$[0],E=$[1],S=B1(b,E);return[w,E,S,r]},function(y){var x=Ee(y,3),$=x[2];Hg&&il($,{mark:Kr})},function(y){var x=Ee(y,3),$=x[1],w=x[2];if($){var E=Ro($,w,{mark:Kr,prepend:"queue",attachTo:p,priority:-999});E[wi]=g,E.setAttribute(qa,r)}});return C},WD=function(t,n,r){var o=Ee(t,4),i=o[1],a=o[2],l=o[3],u=r||{},d=u.plain;if(!i)return null;var f=-999,g={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},p=fu(i,l,a,g,d);return[f,a,p]},ml;ml={},re(ml,V1,HD),re(ml,E1,hD),re(ml,H1,WD);var bn=function(){function e(t,n){Zt(this,e),re(this,"name",void 0),re(this,"style",void 0),re(this,"_keyframe",!0),this.name=t,this.style=n}return Qt(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 Za(e){return e.notSplit=!0,e}Za(["borderTop","borderBottom"]),Za(["borderTop"]),Za(["borderBottom"]),Za(["borderLeft","borderRight"]),Za(["borderLeft"]),Za(["borderRight"]);function UD(e){return ib(e)||d1(e)||og(e)||ab()}function Er(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function k1(e,t,n,r){if(!t.length)return n;var o=UD(t),i=o[0],a=o.slice(1),l;return!e&&typeof i=="number"?l=[]:Array.isArray(e)?l=Oe(e):l=le({},e),r&&n===void 0&&a.length===1?delete l[i][a[0]]:l[i]=k1(l[i],a,n,r),l}function $r(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Er(e,t.slice(0,-1))?e:k1(e,t,n,r)}function qD(e){return je(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function W1(e){return Array.isArray(e)?[]:{}}var GD=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Qa(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=W1(t[0]);return t.forEach(function(o){function i(a,l){var u=new Set(l),d=Er(o,a),f=Array.isArray(d);if(f||qD(d)){if(!u.has(d)){u.add(d);var g=Er(r,a);f?r=$r(r,a,[]):(!g||je(g)!=="object")&&(r=$r(r,a,W1(d))),GD(d).forEach(function(p){i([].concat(Oe(a),[p]),u)})}}else r=$r(r,a,d)}i([])}),r}function U1(){}let Bo=null;function XD(){Bo=null,Sb()}let q1=U1;process.env.NODE_ENV!=="production"&&(q1=(e,t,n)=>{zt(e,`[antd: ${t}] ${n}`),process.env.NODE_ENV==="test"&&XD()});const Vo=q1,G1=h.createContext({}),$t=process.env.NODE_ENV!=="production"?e=>{const{strict:t}=h.useContext(G1),n=(r,o,i)=>{if(!r)if(t===!1&&o==="deprecated"){const a=Bo;Bo||(Bo={}),Bo[e]=Bo[e]||[],Bo[e].includes(i||"")||Bo[e].push(i||""),a||console.warn("[antd] There exists deprecated usage in your code:",Bo)}else process.env.NODE_ENV!=="production"&&Vo(r,e,i)};return n.deprecated=(r,o,i,a)=>{n(r,"deprecated",`\`${o}\` is deprecated. Please use \`${i}\` instead.${a?` ${a}`:""}`)},n}:()=>{const e=()=>{};return e.deprecated=U1,e},X1=M.createContext(void 0);var YD={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"},KD={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},ZD=le(le({},KD),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",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 Y1={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},K1={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"]},ZD),timePickerLocale:Object.assign({},Y1)},sr="${label} is not a valid ${type}",Qr={locale:"en",Pagination:YD,DatePicker:K1,TimePicker:Y1,Calendar:K1,global:{placeholder:"Please select",close:"Close"},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:sr,method:sr,array:sr,object:sr,number:sr,date:sr,boolean:sr,integer:sr,float:sr,regexp:sr,email:sr,url:sr,hex:sr},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 wu=Object.assign({},Qr.Modal),Su=[];const Z1=()=>Su.reduce((e,t)=>Object.assign(Object.assign({},e),t),Qr.Modal);function QD(e){if(e){const t=Object.assign({},e);return Su.push(t),wu=Z1(),()=>{Su=Su.filter(n=>n!==t),wu=Z1()}}wu=Object.assign({},Qr.Modal)}function Q1(){return wu}const Zg=M.createContext(void 0),Ei=(e,t)=>{const n=h.useContext(Zg),r=h.useMemo(()=>{var i;const a=t||Qr[e],l=(i=n==null?void 0:n[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),l||{})},[e,t,n]),o=h.useMemo(()=>{const i=n==null?void 0:n.locale;return n!=null&&n.exist&&!i?Qr.locale:i},[n]);return[r,o]},J1="internalMark",eC=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;if(process.env.NODE_ENV!=="production"){const i=$t("LocaleProvider");process.env.NODE_ENV!=="production"&&i(r===J1,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}h.useEffect(()=>QD(t==null?void 0:t.Modal),[t]);const o=h.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return h.createElement(Zg.Provider,{value:o},n)};process.env.NODE_ENV!=="production"&&(eC.displayName="LocaleProvider");const tC={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"},vl=Object.assign(Object.assign({},tC),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
121
|
+
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
122
|
+
'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 JD(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:o,colorError:i,colorInfo:a,colorPrimary:l,colorBgBase:u,colorTextBase:d}=e,f=t(l),g=t(r),p=t(o),m=t(i),b=t(a),C=n(u,d),y=e.colorLink||e.colorInfo,x=t(y),$=new Vt(m[1]).mix(new Vt(m[3]),50).toHexString();return Object.assign(Object.assign({},C),{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:g[1],colorSuccessBgHover:g[2],colorSuccessBorder:g[3],colorSuccessBorderHover:g[4],colorSuccessHover:g[4],colorSuccess:g[6],colorSuccessActive:g[7],colorSuccessTextHover:g[8],colorSuccessText:g[9],colorSuccessTextActive:g[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgFilledHover:$,colorErrorBgActive:m[3],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[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:x[4],colorLink:x[6],colorLinkActive:x[7],colorBgMask:new Vt("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const e6=e=>{let t=e,n=e,r=e,o=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?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};function t6(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=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:o+1},e6(r))}const n6=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function Eu(e){return(e+8)/e}function r6(e){const t=Array.from({length:10}).map((n,r)=>{const o=r-1,i=e*Math.pow(Math.E,o/5),a=r>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:Eu(n)}))}const o6=e=>{const t=r6(e),n=t.map(f=>f.size),r=t.map(f=>f.lineHeight),o=n[1],i=n[0],a=n[2],l=r[1],u=r[0],d=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:d,lineHeightSM:u,fontHeight:Math.round(l*o),fontHeightLG:Math.round(d*a),fontHeightSM:Math.round(u*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function i6(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 _r=(e,t)=>new Vt(e).setA(t).toRgbString(),yl=(e,t)=>new Vt(e).darken(t).toHexString(),a6=e=>{const t=ol(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]}},s6=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:_r(r,.88),colorTextSecondary:_r(r,.65),colorTextTertiary:_r(r,.45),colorTextQuaternary:_r(r,.25),colorFill:_r(r,.15),colorFillSecondary:_r(r,.06),colorFillTertiary:_r(r,.04),colorFillQuaternary:_r(r,.02),colorBgSolid:_r(r,1),colorBgSolidHover:_r(r,.75),colorBgSolidActive:_r(r,.95),colorBgLayout:yl(n,4),colorBgContainer:yl(n,0),colorBgElevated:yl(n,0),colorBgSpotlight:_r(r,.85),colorBgBlur:"transparent",colorBorder:yl(n,15),colorBorderSecondary:yl(n,6)}};function l6(e){La.pink=La.magenta,yg.pink=yg.magenta;const t=Object.keys(tC).map(n=>{const r=e[n]===La[n]?yg[n]:ol(e[n]);return Array.from({length:10},()=>1).reduce((o,i,a)=>(o[`${n}-${a+1}`]=r[a],o[`${n}${a+1}`]=r[a],o),{})}).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),JD(e,{generateColorPalettes:a6,generateNeutralColorPalettes:s6})),o6(e.fontSize)),i6(e)),n6(e)),t6(e))}const nC=Bg(l6),Qg={token:vl,override:{override:vl},hashed:!0},rC=M.createContext(Qg),bl="ant",$u="anticon",c6=["outlined","borderless","filled","underlined"],u6=(e,t)=>t||(e?`${bl}-${e}`:bl),et=h.createContext({getPrefixCls:u6,iconPrefixCls:$u}),{Consumer:KG}=et,oC={};function lr(e){const t=h.useContext(et),{getPrefixCls:n,direction:r,getPopupContainer:o}=t,i=t[e];return Object.assign(Object.assign({classNames:oC,styles:oC},i),{getPrefixCls:n,direction:r,getPopupContainer:o})}const d6=`-ant-${Date.now()}-${Math.random()}`;function f6(e,t){const n={},r=(a,l)=>{let u=a.clone();return u=(l==null?void 0:l(u))||u,u.toRgbString()},o=(a,l)=>{const u=new Vt(a),d=ol(u.toRgbString());n[`${l}-color`]=r(u),n[`${l}-color-disabled`]=d[1],n[`${l}-color-hover`]=d[4],n[`${l}-color-active`]=d[6],n[`${l}-color-outline`]=u.clone().setA(.2).toRgbString(),n[`${l}-color-deprecated-bg`]=d[0],n[`${l}-color-deprecated-border`]=d[2]};if(t.primaryColor){o(t.primaryColor,"primary");const a=new Vt(t.primaryColor),l=ol(a.toRgbString());l.forEach((d,f)=>{n[`primary-${f+1}`]=d}),n["primary-color-deprecated-l-35"]=r(a,d=>d.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,d=>d.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,d=>d.tint(20)),n["primary-color-deprecated-t-50"]=r(a,d=>d.tint(50)),n["primary-color-deprecated-f-12"]=r(a,d=>d.setA(d.a*.12));const u=new Vt(l[0]);n["primary-color-active-deprecated-f-30"]=r(u,d=>d.setA(d.a*.3)),n["primary-color-active-deprecated-d-02"]=r(u,d=>d.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`
|
|
123
|
+
:root {
|
|
124
|
+
${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(`
|
|
125
|
+
`)}
|
|
126
|
+
}
|
|
127
|
+
`.trim()}function g6(e,t){const n=f6(e,t);On()?Ro(n,`${d6}-dynamic-theme`):process.env.NODE_ENV!=="production"&&Vo(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const Co=h.createContext(!1),Jg=({children:e,disabled:t})=>{const n=h.useContext(Co);return h.createElement(Co.Provider,{value:t??n},e)},oa=h.createContext(void 0),p6=({children:e,size:t})=>{const n=h.useContext(oa);return h.createElement(oa.Provider,{value:t||n},e)};function h6(){const e=M.useContext(Co),t=M.useContext(oa);return{componentDisabled:e,componentSize:t}}var iC=Qt(function e(){Zt(this,e)}),aC="CALC_UNIT",m6=new RegExp(aC,"g");function ep(e){return typeof e=="number"?"".concat(e).concat(aC):e}var v6=function(e){Yr(n,e);var t=yo(n);function n(r,o){var i;Zt(this,n),i=t.call(this),re(He(i),"result",""),re(He(i),"unitlessCssVar",void 0),re(He(i),"lowPriority",void 0);var a=je(r);return i.unitlessCssVar=o,r instanceof n?i.result="(".concat(r.result,")"):a==="number"?i.result=ep(r):a==="string"&&(i.result=r),i}return Qt(n,[{key:"add",value:function(o){return o instanceof n?this.result="".concat(this.result," + ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," + ").concat(ep(o))),this.lowPriority=!0,this}},{key:"sub",value:function(o){return o instanceof n?this.result="".concat(this.result," - ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," - ").concat(ep(o))),this.lowPriority=!0,this}},{key:"mul",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof n?this.result="".concat(this.result," * ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," * ").concat(o)),this.lowPriority=!1,this}},{key:"div",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof n?this.result="".concat(this.result," / ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," / ").concat(o)),this.lowPriority=!1,this}},{key:"getResult",value:function(o){return this.lowPriority||o?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(o){var i=this,a=o||{},l=a.unit,u=!0;return typeof l=="boolean"?u=l:Array.from(this.unitlessCssVar).some(function(d){return i.result.includes(d)})&&(u=!1),this.result=this.result.replace(m6,u?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(iC),y6=function(e){Yr(n,e);var t=yo(n);function n(r){var o;return Zt(this,n),o=t.call(this),re(He(o),"result",0),r instanceof n?o.result=r.result:typeof r=="number"&&(o.result=r),o}return Qt(n,[{key:"add",value:function(o){return o instanceof n?this.result+=o.result:typeof o=="number"&&(this.result+=o),this}},{key:"sub",value:function(o){return o instanceof n?this.result-=o.result:typeof o=="number"&&(this.result-=o),this}},{key:"mul",value:function(o){return o instanceof n?this.result*=o.result:typeof o=="number"&&(this.result*=o),this}},{key:"div",value:function(o){return o instanceof n?this.result/=o.result:typeof o=="number"&&(this.result/=o),this}},{key:"equal",value:function(){return this.result}}]),n}(iC),b6=function(t,n){var r=t==="css"?v6:y6;return function(o){return new r(o,n)}},sC=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 fn(e){var t=h.useRef();t.current=e;var n=h.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return n}function ia(e){var t=h.useRef(!1),n=h.useState(e),r=Ee(n,2),o=r[0],i=r[1];h.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(l,u){u&&t.current||i(l)}return[o,a]}function tp(e){return e!==void 0}function Or(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,l=ia(function(){return tp(o)?o:tp(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),u=Ee(l,2),d=u[0],f=u[1],g=o!==void 0?o:d,p=a?a(g):g,m=fn(i),b=ia([g]),C=Ee(b,2),y=C[0],x=C[1];w1(function(){var w=y[0];d!==w&&m(d,w)},[y]),w1(function(){tp(o)||f(o)},[o]);var $=fn(function(w,E){f(w,E),x([g],E)});return[p,$]}function lC(e,t,n,r){var o=le({},t[e]);if(r!=null&&r.deprecatedTokens){var i=r.deprecatedTokens;i.forEach(function(l){var u=Ee(l,2),d=u[0],f=u[1];if(process.env.NODE_ENV!=="production"&&zt(!(o!=null&&o[d]),"Component Token `".concat(String(d),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(f),"` instead.")),o!=null&&o[d]||o!=null&&o[f]){var g;(g=o[f])!==null&&g!==void 0||(o[f]=o==null?void 0:o[d])}})}var a=le(le({},n),o);return Object.keys(a).forEach(function(l){a[l]===t[l]&&delete a[l]}),a}var cC=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u",np=!0;function jt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!cC)return Object.assign.apply(Object,[{}].concat(t));np=!1;var r={};return t.forEach(function(o){if(je(o)==="object"){var i=Object.keys(o);i.forEach(function(a){Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:function(){return o[a]}})})}}),np=!0,r}var uC={};function C6(){}var x6=function(t){var n,r=t,o=C6;return cC&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(a,l){if(np){var u;(u=n)===null||u===void 0||u.add(l)}return a[l]}}),o=function(a,l){var u;uC[a]={global:Array.from(n),component:le(le({},(u=uC[a])===null||u===void 0?void 0:u.component),l)}}),{token:r,keys:n,flush:o}};function dC(e,t,n){if(typeof n=="function"){var r;return n(jt(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function w6(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return"max(".concat(r.map(function(i){return we(i)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return"min(".concat(r.map(function(i){return we(i)}).join(","),")")}}}var S6=1e3*60*10,E6=function(){function e(){Zt(this,e),re(this,"map",new Map),re(this,"objectIDMap",new WeakMap),re(this,"nextID",0),re(this,"lastAccessBeat",new Map),re(this,"accessBeat",0)}return Qt(e,[{key:"set",value:function(n,r){this.clear();var o=this.getCompositeKey(n);this.map.set(o,r),this.lastAccessBeat.set(o,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),o=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,o}},{key:"getCompositeKey",value:function(n){var r=this,o=n.map(function(i){return i&&je(i)==="object"?"obj_".concat(r.getObjectID(i)):"".concat(je(i),"_").concat(i)});return o.join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);var r=this.nextID;return this.objectIDMap.set(n,r),this.nextID+=1,r}},{key:"clear",value:function(){var n=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(o,i){r-o>S6&&(n.map.delete(i),n.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),e}(),fC=new E6;function $6(e,t){return M.useMemo(function(){var n=fC.get(t);if(n)return n;var r=e();return fC.set(t,r),r},t)}var _6=function(){return{}};function O6(e){var t=e.useCSP,n=t===void 0?_6:t,r=e.useToken,o=e.usePrefix,i=e.getResetStyles,a=e.getCommonStyle,l=e.getCompUnitless;function u(p,m,b,C){var y=Array.isArray(p)?p[0]:p;function x(P){return"".concat(String(y)).concat(P.slice(0,1).toUpperCase()).concat(P.slice(1))}var $=(C==null?void 0:C.unitless)||{},w=typeof l=="function"?l(p):{},E=le(le({},w),{},re({},x("zIndexPopup"),!0));Object.keys($).forEach(function(P){E[x(P)]=$[P]});var S=le(le({},C),{},{unitless:E,prefixToken:x}),O=f(p,m,b,S),_=d(y,b,S);return function(P){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:P,L=O(P,T),z=Ee(L,2),B=z[1],j=_(T),I=Ee(j,2),F=I[0],A=I[1];return[F,B,A]}}function d(p,m,b){var C=b.unitless,y=b.injectStyle,x=y===void 0?!0:y,$=b.prefixToken,w=b.ignore,E=function(_){var P=_.rootCls,T=_.cssVar,L=T===void 0?{}:T,z=r(),B=z.realToken;return kD({path:[p],prefix:L.prefix,key:L.key,unitless:C,ignore:w,token:B,scope:P},function(){var j=dC(p,B,m),I=lC(p,B,j,{deprecatedTokens:b==null?void 0:b.deprecatedTokens});return Object.keys(j).forEach(function(F){I[$(F)]=I[F],delete I[F]}),I}),null},S=function(_){var P=r(),T=P.cssVar;return[function(L){return x&&T?M.createElement(M.Fragment,null,M.createElement(E,{rootCls:_,cssVar:T,component:p}),L):L},T==null?void 0:T.key]};return S}function f(p,m,b){var C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=Array.isArray(p)?p:[p,p],x=Ee(y,1),$=x[0],w=y.join("-"),E=e.layer||{name:"antd"};return function(S){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:S,_=r(),P=_.theme,T=_.realToken,L=_.hashId,z=_.token,B=_.cssVar,j=o(),I=j.rootPrefixCls,F=j.iconPrefixCls,A=n(),D=B?"css":"js",V=$6(function(){var G=new Set;return B&&Object.keys(C.unitless||{}).forEach(function(K){G.add(gu(K,B.prefix)),G.add(gu(K,sC($,B.prefix)))}),b6(D,G)},[D,$,B==null?void 0:B.prefix]),W=w6(D),H=W.max,q=W.min,Z={theme:P,token:z,hashId:L,nonce:function(){return A.nonce},clientOnly:C.clientOnly,layer:E,order:C.order||-999};typeof i=="function"&&Kg(le(le({},Z),{},{clientOnly:!1,path:["Shared",I]}),function(){return i(z,{prefix:{rootPrefixCls:I,iconPrefixCls:F},csp:A})});var Y=Kg(le(le({},Z),{},{path:[w,S,F]}),function(){if(C.injectStyle===!1)return[];var G=x6(z),K=G.token,te=G.flush,ie=dC($,T,b),ee=".".concat(S),ae=lC($,T,ie,{deprecatedTokens:C.deprecatedTokens});B&&ie&&je(ie)==="object"&&Object.keys(ie).forEach(function(fe){ie[fe]="var(".concat(gu(fe,sC($,B.prefix)),")")});var de=jt(K,{componentCls:ee,prefixCls:S,iconCls:".".concat(F),antCls:".".concat(I),calc:V,max:H,min:q},B?ie:ae),ue=m(de,{hashId:L,prefixCls:S,rootPrefixCls:I,iconPrefixCls:F});te($,ae);var J=typeof a=="function"?a(de,S,O,C.resetFont):null;return[C.resetStyle===!1?null:J,ue]});return[Y,L]}}function g(p,m,b){var C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=f(p,m,b,le({resetStyle:!1,order:-998},C)),x=function(w){var E=w.prefixCls,S=w.rootCls,O=S===void 0?E:S;return y(E,O),null};return process.env.NODE_ENV!=="production"&&(x.displayName="SubStyle_".concat(String(Array.isArray(p)?p.join("."):p))),x}return{genStyleHooks:u,genSubStyleComponent:g,genComponentStyleHook:f}}const $i=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],N6="5.26.4";function rp(e){return e>=0&&e<=255}function Cl(e,t){const{r:n,g:r,b:o,a:i}=new Vt(e).toRgb();if(i<1)return e;const{r:a,g:l,b:u}=new Vt(t).toRgb();for(let d=.01;d<=1;d+=.01){const f=Math.round((n-a*(1-d))/d),g=Math.round((r-l*(1-d))/d),p=Math.round((o-u*(1-d))/d);if(rp(f)&&rp(g)&&rp(p))return new Vt({r:f,g,b:p,a:Math.round(d*100)/100}).toRgbString()}return new Vt({r:n,g:r,b:o,a:1}).toRgbString()}var P6=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function gC(e){const{override:t}=e,n=P6(e,["override"]),r=Object.assign({},t);Object.keys(vl).forEach(p=>{delete r[p]});const o=Object.assign(Object.assign({},n),r),i=480,a=576,l=768,u=992,d=1200,f=1600;if(o.motion===!1){const p="0s";o.motionDurationFast=p,o.motionDurationMid=p,o.motionDurationSlow=p}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Cl(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:Cl(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Cl(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:Cl(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
|
|
128
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
129
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
130
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
131
|
+
`,boxShadowSecondary:`
|
|
132
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
133
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
134
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
135
|
+
`,boxShadowTertiary:`
|
|
136
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
137
|
+
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
138
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
139
|
+
`,screenXS:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:u-1,screenLG:u,screenLGMin:u,screenLGMax:d-1,screenXL:d,screenXLMin:d,screenXLMax:f-1,screenXXL:f,screenXXLMin:f,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
140
|
+
0 1px 2px -2px ${new Vt("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
141
|
+
0 3px 6px 0 ${new Vt("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
142
|
+
0 5px 12px 4px ${new Vt("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
143
|
+
`,boxShadowDrawerRight:`
|
|
144
|
+
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
145
|
+
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
146
|
+
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
147
|
+
`,boxShadowDrawerLeft:`
|
|
148
|
+
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
149
|
+
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
150
|
+
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
151
|
+
`,boxShadowDrawerUp:`
|
|
152
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
153
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
154
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
155
|
+
`,boxShadowDrawerDown:`
|
|
156
|
+
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
157
|
+
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
158
|
+
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
159
|
+
`,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 pC=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const hC={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},I6={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},T6={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},mC=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=pC(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=gC(a),i&&Object.entries(i).forEach(([l,u])=>{const{theme:d}=u,f=pC(u,["theme"]);let g=f;d&&(g=mC(Object.assign(Object.assign({},a),f),{override:f},d)),a[l]=g}),a};function xo(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=M.useContext(rC),i=`${N6}-${t||""}`,a=n||nC,[l,u,d]=pD(a,[vl,e],{salt:i,override:r,getComputedToken:mC,formatToken:gC,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:hC,ignore:I6,preserve:T6}});return[a,d,t?u:"",l,o]}const op={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Rn=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),vC=()=>({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"}}),_u=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),M6=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"}}}),A6=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return r!==!1&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},l),a),{[o]:a})}},ip=(e,t)=>({outline:`${we(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),Ou=(e,t)=>({"&:focus-visible":Object.assign({},ip(e,t))}),yC=e=>({[`.${e}`]:Object.assign(Object.assign({},vC()),{[`.${e} .${e}-icon`]:{display:"block"}})}),bC=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},Ou(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),{genStyleHooks:Jt,genComponentStyleHook:D6,genSubStyleComponent:ap}=O6({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=M.useContext(et);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=xo();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e}=M.useContext(et);return e??{}},getResetStyles:(e,t)=>{var n;const r=M6(e);return[r,{"&":r},yC((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:$u)]},getCommonStyle:A6,getCompUnitless:()=>hC});function F6(e,t){return $i.reduce((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:l}))},{})}const L6=(e,t)=>{const[n,r]=xo();return Kg({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[yC(e)])},R6=Object.assign({},h),{useId:CC}=R6,z6=typeof CC>"u"?()=>"":CC;function j6(e,t,n){var r,o;const i=$t("ConfigProvider"),a=e||{},l=a.inherit===!1||!t?Object.assign(Object.assign({},Qg),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Qg.hashed,cssVar:t==null?void 0:t.cssVar}):t,u=z6();if(process.env.NODE_ENV!=="production"){const d=a.cssVar||l.cssVar,f=!!(typeof a.cssVar=="object"&&(!((o=a.cssVar)===null||o===void 0)&&o.key)||u);process.env.NODE_ENV!=="production"&&i(!d||f,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return Tg(()=>{var d,f;if(!e)return t;const g=Object.assign({},l.components);Object.keys(e.components||{}).forEach(b=>{g[b]=Object.assign(Object.assign({},g[b]),e.components[b])});const p=`css-var-${u.replace(/:/g,"")}`,m=((d=a.cssVar)!==null&&d!==void 0?d:l.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof l.cssVar=="object"?l.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((f=a.cssVar)===null||f===void 0?void 0:f.key)||p});return Object.assign(Object.assign(Object.assign({},l),a),{token:Object.assign(Object.assign({},l.token),a.token),components:g,cssVar:m})},[a,l],(d,f)=>d.some((g,p)=>{const m=f[p];return!Lg(g,m,!0)}))}var B6=["children"],xC=h.createContext({});function V6(e){var t=e.children,n=sn(e,B6);return h.createElement(xC.Provider,{value:n},t)}var H6=function(e){Yr(n,e);var t=yo(n);function n(){return Zt(this,n),t.apply(this,arguments)}return Qt(n,[{key:"render",value:function(){return this.props.children}}]),n}(h.Component);function k6(e){var t=h.useReducer(function(l){return l+1},0),n=Ee(t,2),r=n[1],o=h.useRef(e),i=fn(function(){return o.current}),a=fn(function(l){o.current=typeof l=="function"?l(o.current):l,r()});return[i,a]}var _i="none",Nu="appear",Pu="enter",Iu="leave",wC="none",Jr="prepare",Ja="start",es="active",sp="end",SC="prepared";function EC(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 W6(e,t){var n={animationend:EC("Animation","AnimationEnd"),transitionend:EC("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var U6=W6(On(),typeof window<"u"?window:{}),$C={};if(On()){var q6=document.createElement("div");$C=q6.style}var Tu={};function _C(e){if(Tu[e])return Tu[e];var t=U6[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in $C)return Tu[e]=t[i],Tu[e]}return""}var OC=_C("animationend"),NC=_C("transitionend"),PC=!!(OC&&NC),IC=OC||"animationend",TC=NC||"transitionend";function MC(e,t){if(!e)return null;if(je(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const G6=function(e){var t=M.useRef();function n(o){o&&(o.removeEventListener(TC,e),o.removeEventListener(IC,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(TC,e),o.addEventListener(IC,e),t.current=o)}return h.useEffect(function(){return function(){n(t.current)}},[]),[r,n]};var AC=On()?M.useLayoutEffect:M.useEffect;const X6=function(){var e=h.useRef(null);function t(){Ln.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=Ln(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)});e.current=i}return h.useEffect(function(){return function(){t()}},[]),[n,t]};var Y6=[Jr,Ja,es,sp],K6=[Jr,SC],DC=!1,Z6=!0;function FC(e){return e===es||e===sp}const Q6=function(e,t,n){var r=ia(wC),o=Ee(r,2),i=o[0],a=o[1],l=X6(),u=Ee(l,2),d=u[0],f=u[1];function g(){a(Jr,!0)}var p=t?K6:Y6;return AC(function(){if(i!==wC&&i!==sp){var m=p.indexOf(i),b=p[m+1],C=n(i);C===DC?a(b,!0):b&&d(function(y){function x(){y.isCanceled()||a(b,!0)}C===!0?x():Promise.resolve(C).then(x)})}},[e,i]),h.useEffect(function(){return function(){f()}},[]),[g,i]};function J6(e,t,n,r){var o=r.motionEnter,i=o===void 0?!0:o,a=r.motionAppear,l=a===void 0?!0:a,u=r.motionLeave,d=u===void 0?!0:u,f=r.motionDeadline,g=r.motionLeaveImmediately,p=r.onAppearPrepare,m=r.onEnterPrepare,b=r.onLeavePrepare,C=r.onAppearStart,y=r.onEnterStart,x=r.onLeaveStart,$=r.onAppearActive,w=r.onEnterActive,E=r.onLeaveActive,S=r.onAppearEnd,O=r.onEnterEnd,_=r.onLeaveEnd,P=r.onVisibleChanged,T=ia(),L=Ee(T,2),z=L[0],B=L[1],j=k6(_i),I=Ee(j,2),F=I[0],A=I[1],D=ia(null),V=Ee(D,2),W=V[0],H=V[1],q=F(),Z=M.useRef(!1),Y=M.useRef(null);function G(){return n()}var K=M.useRef(!1);function te(){A(_i),H(null,!0)}var ie=fn(function(De){var We=F();if(We!==_i){var Te=G();if(!(De&&!De.deadline&&De.target!==Te)){var Ne=K.current,Be;We===Nu&&Ne?Be=S==null?void 0:S(Te,De):We===Pu&&Ne?Be=O==null?void 0:O(Te,De):We===Iu&&Ne&&(Be=_==null?void 0:_(Te,De)),Ne&&Be!==!1&&te()}}}),ee=G6(ie),ae=Ee(ee,1),de=ae[0],ue=function(We){switch(We){case Nu:return re(re(re({},Jr,p),Ja,C),es,$);case Pu:return re(re(re({},Jr,m),Ja,y),es,w);case Iu:return re(re(re({},Jr,b),Ja,x),es,E);default:return{}}},J=h.useMemo(function(){return ue(q)},[q]),fe=Q6(q,!e,function(De){if(De===Jr){var We=J[Jr];return We?We(G()):DC}if(me in J){var Te;H(((Te=J[me])===null||Te===void 0?void 0:Te.call(J,G(),null))||null)}return me===es&&q!==_i&&(de(G()),f>0&&(clearTimeout(Y.current),Y.current=setTimeout(function(){ie({deadline:!0})},f))),me===SC&&te(),Z6}),oe=Ee(fe,2),he=oe[0],me=oe[1],_e=FC(me);K.current=_e;var Re=M.useRef(null);AC(function(){if(!(Z.current&&Re.current===t)){B(t);var De=Z.current;Z.current=!0;var We;!De&&t&&l&&(We=Nu),De&&t&&i&&(We=Pu),(De&&!t&&d||!De&&g&&!t&&d)&&(We=Iu);var Te=ue(We);We&&(e||Te[Jr])?(A(We),he()):A(_i),Re.current=t}},[t]),M.useEffect(function(){(q===Nu&&!l||q===Pu&&!i||q===Iu&&!d)&&A(_i)},[l,i,d]),M.useEffect(function(){return function(){Z.current=!1,clearTimeout(Y.current)}},[]);var Ie=h.useRef(!1);M.useEffect(function(){z&&(Ie.current=!0),z!==void 0&&q===_i&&((Ie.current||z)&&(P==null||P(z)),Ie.current=!0)},[z,q]);var Ge=W;return J[Jr]&&me===Ja&&(Ge=le({transition:"none"},Ge)),[q,me,Ge,z??t]}function e5(e){var t=e;je(e)==="object"&&(t=e.transitionSupport);function n(o,i){return!!(o.motionName&&t&&i!==!1)}var r=h.forwardRef(function(o,i){var a=o.visible,l=a===void 0?!0:a,u=o.removeOnLeave,d=u===void 0?!0:u,f=o.forceRender,g=o.children,p=o.motionName,m=o.leavedClassName,b=o.eventProps,C=h.useContext(xC),y=C.motion,x=n(o,y),$=M.useRef(),w=M.useRef();function E(){try{return $.current instanceof HTMLElement?$.current:au(w.current)}catch{return null}}var S=J6(x,l,E,o),O=Ee(S,4),_=O[0],P=O[1],T=O[2],L=O[3],z=h.useRef(L);L&&(z.current=!0);var B=h.useCallback(function(V){$.current=V,Mg(i,V)},[i]),j,I=le(le({},b),{},{visible:l});if(!g)j=null;else if(_===_i)L?j=g(le({},I),B):!d&&z.current&&m?j=g(le(le({},I),{},{className:m}),B):f||!d&&!m?j=g(le(le({},I),{},{style:{display:"none"}}),B):j=null;else{var F;P===Jr?F="prepare":FC(P)?F="active":P===Ja&&(F="start");var A=MC(p,"".concat(_,"-").concat(F));j=g(le(le({},I),{},{className:ge(MC(p,_),re(re({},A,A&&F),p,typeof p=="string")),style:T}),B)}if(h.isValidElement(j)&&Ha(j)){var D=cl(j);D||(j=h.cloneElement(j,{ref:B}))}return h.createElement(H6,{ref:w},j)});return r.displayName="CSSMotion",r}const Nr=e5(PC);var lp="add",cp="keep",up="remove",dp="removed";function t5(e){var t;return e&&je(e)==="object"&&"key"in e?t=e:t={key:e},le(le({},t),{},{key:String(t.key)})}function fp(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(t5)}function n5(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,i=fp(e),a=fp(t);i.forEach(function(d){for(var f=!1,g=r;g<o;g+=1){var p=a[g];if(p.key===d.key){r<g&&(n=n.concat(a.slice(r,g).map(function(m){return le(le({},m),{},{status:lp})})),r=g),n.push(le(le({},p),{},{status:cp})),r+=1,f=!0;break}}f||n.push(le(le({},d),{},{status:up}))}),r<o&&(n=n.concat(a.slice(r).map(function(d){return le(le({},d),{},{status:lp})})));var l={};n.forEach(function(d){var f=d.key;l[f]=(l[f]||0)+1});var u=Object.keys(l).filter(function(d){return l[d]>1});return u.forEach(function(d){n=n.filter(function(f){var g=f.key,p=f.status;return g!==d||p!==up}),n.forEach(function(f){f.key===d&&(f.status=cp)})}),n}var r5=["component","children","onVisibleChanged","onAllRemoved"],o5=["status"],i5=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function a5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Nr,n=function(r){Yr(i,r);var o=yo(i);function i(){var a;Zt(this,i);for(var l=arguments.length,u=new Array(l),d=0;d<l;d++)u[d]=arguments[d];return a=o.call.apply(o,[this].concat(u)),re(He(a),"state",{keyEntities:[]}),re(He(a),"removeKey",function(f){a.setState(function(g){var p=g.keyEntities.map(function(m){return m.key!==f?m:le(le({},m),{},{status:dp})});return{keyEntities:p}},function(){var g=a.state.keyEntities,p=g.filter(function(m){var b=m.status;return b!==dp}).length;p===0&&a.props.onAllRemoved&&a.props.onAllRemoved()})}),a}return Qt(i,[{key:"render",value:function(){var l=this,u=this.state.keyEntities,d=this.props,f=d.component,g=d.children,p=d.onVisibleChanged;d.onAllRemoved;var m=sn(d,r5),b=f||h.Fragment,C={};return i5.forEach(function(y){C[y]=m[y],delete m[y]}),delete m.keys,h.createElement(b,m,u.map(function(y,x){var $=y.status,w=sn(y,o5),E=$===lp||$===cp;return h.createElement(t,Le({},C,{key:w.key,visible:E,eventProps:w,onVisibleChanged:function(O){p==null||p(O,{key:w.key}),O||l.removeKey(w.key)}}),function(S,O){return g(le(le({},S),{},{index:x}),O)})}))}}],[{key:"getDerivedStateFromProps",value:function(l,u){var d=l.keys,f=u.keyEntities,g=fp(d),p=n5(f,g);return{keyEntities:p.filter(function(m){var b=f.find(function(C){var y=C.key;return m.key===y});return!(b&&b.status===dp&&m.status===up)})}}}]),i}(h.Component);return re(n,"defaultProps",{component:"div"}),n}const LC=a5(PC),gp=h.createContext(!0);process.env.NODE_ENV!=="production"&&(gp.displayName="MotionCacheContext");function s5(e){const t=h.useContext(gp),{children:n}=e,[,r]=xo(),{motion:o}=r,i=h.useRef(!1);return i.current||(i.current=t!==o),i.current?h.createElement(gp.Provider,{value:o},h.createElement(V6,{motion:o},n)):n}const RC=h.memo(({dropdownMatchSelectWidth:e})=>($t("ConfigProvider").deprecated(e===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));process.env.NODE_ENV!=="production"&&(RC.displayName="PropWarning");const l5=process.env.NODE_ENV!=="production"?RC:()=>null;var c5=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let pp=!1;const u5=process.env.NODE_ENV!=="production"?e=>{process.env.NODE_ENV!=="production"&&Vo(!pp,e,"Static function can not consume context like dynamic theme. Please use 'App' component instead.")}:null,d5=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Mu,zC,jC,BC;function Au(){return Mu||bl}function f5(){return zC||$u}function g5(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const p5=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(Mu=t),n!==void 0&&(zC=n),"holderRender"in e&&(BC=o),r&&(g5(r)?(process.env.NODE_ENV!=="production"&&Vo(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),g6(Au(),r)):jC=r)},h5=()=>({getPrefixCls:(e,t)=>t||(e?`${Au()}-${e}`:Au()),getIconPrefixCls:f5,getRootPrefixCls:()=>Mu||Au(),getTheme:()=>jC,holderRender:BC}),m5=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:l,componentSize:u,direction:d,space:f,splitter:g,virtual:p,dropdownMatchSelectWidth:m,popupMatchSelectWidth:b,popupOverflow:C,legacyLocale:y,parentContext:x,iconPrefixCls:$,theme:w,componentDisabled:E,segmented:S,statistic:O,spin:_,calendar:P,carousel:T,cascader:L,collapse:z,typography:B,checkbox:j,descriptions:I,divider:F,drawer:A,skeleton:D,steps:V,image:W,layout:H,list:q,mentions:Z,modal:Y,progress:G,result:K,slider:te,breadcrumb:ie,menu:ee,pagination:ae,input:de,textArea:ue,empty:J,badge:fe,radio:oe,rate:he,switch:me,transfer:_e,avatar:Re,message:Ie,tag:Ge,table:De,card:We,tabs:Te,timeline:Ne,timePicker:Be,upload:Ze,notification:pt,tree:tt,colorPicker:st,datePicker:vt,rangePicker:nt,flex:rt,wave:Ke,dropdown:$e,warning:Fe,tour:Ce,tooltip:Se,popover:ke,popconfirm:It,floatButtonGroup:pn,variant:Cn,inputNumber:xn,treeSelect:to}=e,Mn=h.useCallback((Ct,Tt)=>{const{prefixCls:wn}=e;if(Tt)return Tt;const hn=wn||x.getPrefixCls("");return Ct?`${hn}-${Ct}`:hn},[x.getPrefixCls,e.prefixCls]),kt=$||x.iconPrefixCls||$u,Wt=n||x.csp;L6(kt,Wt);const Kn=j6(w,x.theme,{prefixCls:Mn("")});process.env.NODE_ENV!=="production"&&(pp=pp||!!Kn);const un={csp:Wt,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:l||y,direction:d,space:f,splitter:g,virtual:p,popupMatchSelectWidth:b??m,popupOverflow:C,getPrefixCls:Mn,iconPrefixCls:kt,theme:Kn,segmented:S,statistic:O,spin:_,calendar:P,carousel:T,cascader:L,collapse:z,typography:B,checkbox:j,descriptions:I,divider:F,drawer:A,skeleton:D,steps:V,image:W,input:de,textArea:ue,layout:H,list:q,mentions:Z,modal:Y,progress:G,result:K,slider:te,breadcrumb:ie,menu:ee,pagination:ae,empty:J,badge:fe,radio:oe,rate:he,switch:me,transfer:_e,avatar:Re,message:Ie,tag:Ge,table:De,card:We,tabs:Te,timeline:Ne,timePicker:Be,upload:Ze,notification:pt,tree:tt,colorPicker:st,datePicker:vt,rangePicker:nt,flex:rt,wave:Ke,dropdown:$e,warning:Fe,tour:Ce,tooltip:Se,popover:ke,popconfirm:It,floatButtonGroup:pn,variant:Cn,inputNumber:xn,treeSelect:to};process.env.NODE_ENV!=="production"&&$t("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const ut=Object.assign({},x);Object.keys(un).forEach(Ct=>{un[Ct]!==void 0&&(ut[Ct]=un[Ct])}),d5.forEach(Ct=>{const Tt=e[Ct];Tt&&(ut[Ct]=Tt)}),typeof r<"u"&&(ut.button=Object.assign({autoInsertSpace:r},ut.button));const mt=Tg(()=>ut,ut,(Ct,Tt)=>{const wn=Object.keys(Ct),hn=Object.keys(Tt);return wn.length!==hn.length||wn.some(Bn=>Ct[Bn]!==Tt[Bn])}),{layer:dn}=h.useContext(gl),fr=h.useMemo(()=>({prefixCls:kt,csp:Wt,layer:dn?"antd":void 0}),[kt,Wt,dn]);let dt=h.createElement(h.Fragment,null,h.createElement(l5,{dropdownMatchSelectWidth:m}),t);const no=h.useMemo(()=>{var Ct,Tt,wn,hn;return Qa(((Ct=Qr.Form)===null||Ct===void 0?void 0:Ct.defaultValidateMessages)||{},((wn=(Tt=mt.locale)===null||Tt===void 0?void 0:Tt.Form)===null||wn===void 0?void 0:wn.defaultValidateMessages)||{},((hn=mt.form)===null||hn===void 0?void 0:hn.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[mt,a==null?void 0:a.validateMessages]);Object.keys(no).length>0&&(dt=h.createElement(X1.Provider,{value:no},dt)),l&&(dt=h.createElement(eC,{locale:l,_ANT_MARK__:J1},dt)),dt=h.createElement(ng.Provider,{value:fr},dt),u&&(dt=h.createElement(p6,{size:u},dt)),dt=h.createElement(s5,null,dt);const ro=h.useMemo(()=>{const Ct=Kn||{},{algorithm:Tt,token:wn,components:hn,cssVar:Bn}=Ct,Mr=c5(Ct,["algorithm","token","components","cssVar"]),gr=Tt&&(!Array.isArray(Tt)||Tt.length>0)?Bg(Tt):nC,Nn={};Object.entries(hn||{}).forEach(([pr,Hn])=>{const Sn=Object.assign({},Hn);"algorithm"in Sn&&(Sn.algorithm===!0?Sn.theme=gr:(Array.isArray(Sn.algorithm)||typeof Sn.algorithm=="function")&&(Sn.theme=Bg(Sn.algorithm)),delete Sn.algorithm),Nn[pr]=Sn});const Vn=Object.assign(Object.assign({},vl),wn);return Object.assign(Object.assign({},Mr),{theme:gr,token:Vn,components:Nn,override:Object.assign({override:Vn},Nn),cssVar:Bn})},[Kn]);return w&&(dt=h.createElement(rC.Provider,{value:ro},dt)),mt.warning&&(dt=h.createElement(G1.Provider,{value:mt.warning},dt)),E!==void 0&&(dt=h.createElement(Jg,{disabled:E},dt)),h.createElement(et.Provider,{value:mt},dt)},Ho=e=>{const t=h.useContext(et),n=h.useContext(Zg);return h.createElement(m5,Object.assign({parentContext:t,legacyLocale:n},e))};Ho.ConfigContext=et,Ho.SizeContext=oa,Ho.config=p5,Ho.useConfig=h6,Object.defineProperty(Ho,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&Vo(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),oa)}),process.env.NODE_ENV!=="production"&&(Ho.displayName="ConfigProvider");var v5=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
160
160
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
161
161
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
162
162
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
@@ -167,37 +167,47 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
167
167
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
168
168
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
169
169
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
170
|
-
summary tabIndex target title type useMap value width wmode wrap`,
|
|
170
|
+
summary tabIndex target title type useMap value width wmode wrap`,y5=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
171
171
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
172
172
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
173
173
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
174
174
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
175
175
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
176
|
-
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,
|
|
177
|
-
padding-top ${n} ${
|
|
178
|
-
margin-bottom ${n} ${c}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:p,[`${t}-icon`]:{marginInlineEnd:o,fontSize:u,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:f,fontSize:a},[`${t}-description`]:{display:"block",color:d}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},bP=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:o,colorWarning:i,colorWarningBorder:a,colorWarningBg:s,colorError:l,colorErrorBorder:c,colorErrorBg:u,colorInfo:d,colorInfoBorder:f,colorInfoBg:p}=e;return{[t]:{"&-success":$s(o,r,n,e,t),"&-info":$s(p,f,d,e,t),"&-warning":$s(s,a,i,e,t),"&-error":Object.assign(Object.assign({},$s(u,c,l,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},CP=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:o,fontSizeIcon:i,colorIcon:a,colorIconHover:s}=e;return{[t]:{"&-action":{marginInlineStart:o},[`${t}-close-icon`]:{marginInlineStart:o,padding:0,overflow:"hidden",fontSize:i,lineHeight:fe(i),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:a,transition:`color ${r}`,"&:hover":{color:s}}},"&-close-text":{color:a,transition:`color ${r}`,"&:hover":{color:s}}}}},wP=Et("Alert",e=>[yP(e),bP(e),CP(e)],e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}));var Nv=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const xP={success:Ss,info:Ev,error:Di,warning:yu},SP=e=>{const{icon:t,prefixCls:n,type:r}=e,o=xP[r]||null;return t?_v(t,h.createElement("span",{className:`${n}-icon`},t),()=>({className:re(`${n}-icon`,t.props.className)})):h.createElement(o,{className:`${n}-icon`})},EP=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:o,ariaProps:i}=e,a=r===!0||r===void 0?h.createElement(Es,null):r;return t?h.createElement("button",Object.assign({type:"button",onClick:o,className:`${n}-close-icon`,tabIndex:0},i),a):null},Cu=h.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:o,banner:i,className:a,rootClassName:s,style:l,onMouseEnter:c,onMouseLeave:u,onClick:d,afterClose:f,showIcon:p,closable:v,closeText:m,closeIcon:g,action:y,id:x}=e,b=Nv(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[C,w]=h.useState(!1);process.env.NODE_ENV!=="production"&&Ze("Alert").deprecated(!m,"closeText","closable.closeIcon");const $=h.useRef(null);h.useImperativeHandle(t,()=>({nativeElement:$.current}));const{getPrefixCls:S,direction:E,closable:_,closeIcon:P,className:A,style:L}=In("alert"),D=S("alert",r),[O,M,N]=wP(D),I=B=>{var U;w(!0),(U=e.onClose)===null||U===void 0||U.call(e,B)},j=h.useMemo(()=>e.type!==void 0?e.type:i?"warning":"info",[e.type,i]),z=h.useMemo(()=>typeof v=="object"&&v.closeIcon||m?!0:typeof v=="boolean"?v:g!==!1&&g!==null&&g!==void 0?!0:!!_,[m,g,v,_]),F=i&&p===void 0?!0:p,R=re(D,`${D}-${j}`,{[`${D}-with-description`]:!!n,[`${D}-no-icon`]:!F,[`${D}-banner`]:!!i,[`${D}-rtl`]:E==="rtl"},A,a,s,N,M),W=bu(b,{aria:!0,data:!0}),H=h.useMemo(()=>typeof v=="object"&&v.closeIcon?v.closeIcon:m||(g!==void 0?g:typeof _=="object"&&_.closeIcon?_.closeIcon:P),[g,v,m,P]),V=h.useMemo(()=>{const B=v??_;if(typeof B=="object"){const{closeIcon:U}=B;return Nv(B,["closeIcon"])}return{}},[v,_]);return O(h.createElement(Dn,{visible:!C,motionName:`${D}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:B=>({maxHeight:B.offsetHeight}),onLeaveEnd:f},({className:B,style:U},K)=>h.createElement("div",Object.assign({id:x,ref:kt($,K),"data-show":!C,className:re(R,B),style:Object.assign(Object.assign(Object.assign({},L),l),U),onMouseEnter:c,onMouseLeave:u,onClick:d,role:"alert"},W),F?h.createElement(SP,{description:n,icon:e.icon,prefixCls:D,type:j}):null,h.createElement("div",{className:`${D}-content`},o?h.createElement("div",{className:`${D}-message`},o):null,n?h.createElement("div",{className:`${D}-description`},n):null),y?h.createElement("div",{className:`${D}-action`},y):null,h.createElement(EP,{isClosable:z,prefixCls:D,closeIcon:H,handleClose:I,ariaProps:V}))))});process.env.NODE_ENV!=="production"&&(Cu.displayName="Alert");function $P(e,t,n){return t=kr(t),_h(e,ts()?Reflect.construct(t,n||[],kr(e).constructor):t.apply(e,n))}let OP=function(e){function t(){var n;return dt(this,t),n=$P(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return hn(t,e),ft(t,[{key:"componentDidCatch",value:function(r,o){this.setState({error:r,info:o})}},{key:"render",value:function(){const{message:r,description:o,id:i,children:a}=this.props,{error:s,info:l}=this.state,c=(l==null?void 0:l.componentStack)||null,u=typeof r>"u"?(s||"").toString():r,d=typeof o>"u"?c:o;return s?h.createElement(Cu,{id:i,type:"error",message:u,description:h.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},d)}):a}}])}(h.Component);const Os=Cu;Os.ErrorBoundary=OP;const Pv=e=>typeof e=="object"&&e!=null&&e.nodeType===1,Tv=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",_s=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return Tv(n.overflowY,t)||Tv(n.overflowX,t)||(r=>{const o=(i=>{if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)})(e)}return!1},Ns=(e,t,n,r,o,i,a,s)=>i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-r:a>t&&s<n||i<e&&s>n?a-t+o:0,_P=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},Iv=(e,t)=>{var n,r,o,i;if(typeof document>"u")return[];const{scrollMode:a,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,d=typeof c=="function"?c:N=>N!==c;if(!Pv(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,p=[];let v=e;for(;Pv(v)&&d(v);){if(v=_P(v),v===f){p.push(v);break}v!=null&&v===document.body&&_s(v)&&!_s(document.documentElement)||v!=null&&_s(v,u)&&p.push(v)}const m=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,g=(i=(o=window.visualViewport)==null?void 0:o.height)!=null?i:innerHeight,{scrollX:y,scrollY:x}=window,{height:b,width:C,top:w,right:$,bottom:S,left:E}=e.getBoundingClientRect(),{top:_,right:P,bottom:A,left:L}=(N=>{const I=window.getComputedStyle(N);return{top:parseFloat(I.scrollMarginTop)||0,right:parseFloat(I.scrollMarginRight)||0,bottom:parseFloat(I.scrollMarginBottom)||0,left:parseFloat(I.scrollMarginLeft)||0}})(e);let D=s==="start"||s==="nearest"?w-_:s==="end"?S+A:w+b/2-_+A,O=l==="center"?E+C/2-L+P:l==="end"?$+P:E-L;const M=[];for(let N=0;N<p.length;N++){const I=p[N],{height:j,width:z,top:F,right:R,bottom:W,left:H}=I.getBoundingClientRect();if(a==="if-needed"&&w>=0&&E>=0&&S<=g&&$<=m&&(I===f&&!_s(I)||w>=F&&S<=W&&E>=H&&$<=R))return M;const V=getComputedStyle(I),B=parseInt(V.borderLeftWidth,10),U=parseInt(V.borderTopWidth,10),K=parseInt(V.borderRightWidth,10),G=parseInt(V.borderBottomWidth,10);let Z=0,J=0;const ee="offsetWidth"in I?I.offsetWidth-I.clientWidth-B-K:0,q="offsetHeight"in I?I.offsetHeight-I.clientHeight-U-G:0,te="offsetWidth"in I?I.offsetWidth===0?0:z/I.offsetWidth:0,Y="offsetHeight"in I?I.offsetHeight===0?0:j/I.offsetHeight:0;if(f===I)Z=s==="start"?D:s==="end"?D-g:s==="nearest"?Ns(x,x+g,g,U,G,x+D,x+D+b,b):D-g/2,J=l==="start"?O:l==="center"?O-m/2:l==="end"?O-m:Ns(y,y+m,m,B,K,y+O,y+O+C,C),Z=Math.max(0,Z+x),J=Math.max(0,J+y);else{Z=s==="start"?D-F-U:s==="end"?D-W+G+q:s==="nearest"?Ns(F,W,j,U,G+q,D,D+b,b):D-(F+j/2)+q/2,J=l==="start"?O-H-B:l==="center"?O-(H+z/2)+ee/2:l==="end"?O-R+K+ee:Ns(H,R,z,B,K+ee,O,O+C,C);const{scrollLeft:oe,scrollTop:ne}=I;Z=Y===0?0:Math.max(0,Math.min(ne+Z/Y,I.scrollHeight-j/Y+q)),J=te===0?0:Math.max(0,Math.min(oe+J/te,I.scrollWidth-z/te+ee)),D+=ne-Z,O+=oe-J}M.push({el:I,top:Z,left:J})}return M},NP=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function PP(e,t){if(!e.isConnected||!(o=>{let i=o;for(;i&&i.parentNode;){if(i.parentNode===document)return!0;i=i.parentNode instanceof ShadowRoot?i.parentNode.host:i.parentNode}return!1})(e))return;const n=(o=>{const i=window.getComputedStyle(o);return{top:parseFloat(i.scrollMarginTop)||0,right:parseFloat(i.scrollMarginRight)||0,bottom:parseFloat(i.scrollMarginBottom)||0,left:parseFloat(i.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(Iv(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:i,left:a}of Iv(e,NP(t))){const s=i-n.top+n.bottom,l=a-n.left+n.right;o.scroll({top:s,left:l,behavior:r})}}const Gr=e=>{const[,,,,t]=tr();return t?`${e}-css-var`:""};var Mv={ENTER:13,ESC:27},TP={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"},IP=function(t,n){return h.createElement(je,Ce({},t,{ref:n,icon:TP}))},Ao=h.forwardRef(IP);process.env.NODE_ENV!=="production"&&(Ao.displayName="LoadingOutlined");const wu=T.createContext(void 0);process.env.NODE_ENV!=="production"&&(wu.displayName="zIndexContext");const rr=100,MP=rr*10+rr,Av={Modal:rr,Drawer:rr,Popover:rr,Popconfirm:rr,Tooltip:rr,Tour:rr,FloatButton:rr},AP={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function DP(e){return e in Av}const FP=(e,t)=>{const[,n]=tr(),r=T.useContext(wu),o=DP(e);let i;if(t!==void 0)i=[t,t];else{let a=r??0;o?a+=(r?0:n.zIndexPopupBase)+Av[e]:a+=AP[e],i=[r===void 0?t:a,a]}if(process.env.NODE_ENV!=="production"){const a=Ze(e),s=n.zIndexPopupBase+MP,l=i[0]||0;process.env.NODE_ENV!=="production"&&a(t!==void 0||l<=s,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return i};function Dv(e,t){this.v=e,this.k=t}function Pt(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}Pt=function(a,s,l,c){if(s)o?o(a,s,{value:l,enumerable:!c,configurable:!c,writable:!c}):a[s]=l;else{var u=function(f,p){Pt(a,f,function(v){return this._invoke(f,p,v)})};u("next",0),u("throw",1),u("return",2)}},Pt(e,t,n,r)}function xu(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(p,v,m,g){var y=v&&v.prototype instanceof s?v:s,x=Object.create(y.prototype);return Pt(x,"_invoke",function(b,C,w){var $,S,E,_=0,P=w||[],A=!1,L={p:0,n:0,v:e,a:D,f:D.bind(e,4),d:function(M,N){return $=M,S=0,E=e,L.n=N,a}};function D(O,M){for(S=O,E=M,t=0;!A&&_&&!N&&t<P.length;t++){var N,I=P[t],j=L.p,z=I[2];O>3?(N=z===M)&&(E=I[(S=I[4])?5:(S=3,3)],I[4]=I[5]=e):I[0]<=j&&((N=O<2&&j<I[1])?(S=0,L.v=M,L.n=I[1]):j<z&&(N=O<3||I[0]>M||M>z)&&(I[4]=O,I[5]=M,L.n=z,S=0))}if(N||O>1)return a;throw A=!0,M}return function(O,M,N){if(_>1)throw TypeError("Generator is already running");for(A&&M===1&&D(M,N),S=M,E=N;(t=S<2?e:E)||!A;){$||(S?S<3?(S>1&&(L.n=-1),D(S,E)):L.n=E:L.v=E);try{if(_=2,$){if(S||(O="next"),t=$[O]){if(!(t=t.call($,E)))throw TypeError("iterator result is not an object");if(!t.done)return t;E=t.value,S<2&&(S=0)}else S===1&&(t=$.return)&&t.call($),S<2&&(E=TypeError("The iterator does not provide a '"+O+"' method"),S=1);$=e}else if((t=(A=L.n<0)?E:b.call(C,L))!==a)break}catch(I){$=e,S=1,E=I}finally{_=1}}return{value:t,done:A}}}(p,m,g),!0),x}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Pt(t={},r,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,c):(p.__proto__=c,Pt(p,o,"GeneratorFunction")),p.prototype=Object.create(d),p}return l.prototype=c,Pt(d,"constructor",c),Pt(c,"constructor",l),l.displayName="GeneratorFunction",Pt(c,o,"GeneratorFunction"),Pt(d),Pt(d,o,"Generator"),Pt(d,r,function(){return this}),Pt(d,"toString",function(){return"[object Generator]"}),(xu=function(){return{w:i,m:f}})()}function Ps(e,t){function n(o,i,a,s){try{var l=e[o](i),c=l.value;return c instanceof Dv?t.resolve(c.v).then(function(u){n("next",u,a,s)},function(u){n("throw",u,a,s)}):t.resolve(c).then(function(u){l.value=u,a(l)},function(u){return n("throw",u,a,s)})}catch(u){s(u)}}var r;this.next||(Pt(Ps.prototype),Pt(Ps.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),Pt(this,"_invoke",function(o,i,a){function s(){return new t(function(l,c){n(o,a,l,c)})}return r=r?r.then(s,s):s()},!0)}function Fv(e,t,n,r,o){return new Ps(xu().w(e,t,n,r),o||Promise)}function LP(e,t,n,r,o){var i=Fv(e,t,n,r,o);return i.next().then(function(a){return a.done?a.value:i.next()})}function jP(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function o(){for(;n.length;)if((r=n.pop())in t)return o.value=r,o.done=!1,o;return o.done=!0,o}}function Lv(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(ye(e)+" is not iterable")}function ze(){var e=xu(),t=e.m(ze),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(a){var s=typeof a=="function"&&a.constructor;return!!s&&(s===n||(s.displayName||s.name)==="GeneratorFunction")}var o={throw:1,return:2,break:3,continue:3};function i(a){var s,l;return function(c){s||(s={stop:function(){return l(c.a,2)},catch:function(){return c.v},abrupt:function(d,f){return l(c.a,o[d],f)},delegateYield:function(d,f,p){return s.resultName=f,l(c.d,Lv(d),p)},finish:function(d){return l(c.f,d)}},l=function(d,f,p){c.p=s.prev,c.n=s.next;try{return d(f,p)}finally{s.next=c.n}}),s.resultName&&(s[s.resultName]=c.v,s.resultName=void 0),s.sent=c.v,s.next=c.n;try{return a.call(this,s)}finally{c.p=s.prev,c.n=s.next}}}return(ze=function(){return{wrap:function(l,c,u,d){return e.w(i(l),c,u,d&&d.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(l,c){return new Dv(l,c)},AsyncIterator:Ps,async:function(l,c,u,d,f){return(r(c)?Fv:LP)(i(l),c,u,d,f)},keys:jP,values:Lv}})()}function jv(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,o)}function Lt(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(l){jv(i,r,o,a,s,"next",l)}function s(l){jv(i,r,o,a,s,"throw",l)}a(void 0)})}}var Fi=Q({},uf),zP=Fi.version,Su=Fi.render,RP=Fi.unmountComponentAtNode,Ts;try{var VP=Number((zP||"").split(".")[0]);VP>=18&&(Ts=Fi.createRoot)}catch{}function zv(e){var t=Fi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&ye(t)==="object"&&(t.usingClientEntryPoint=e)}var Is="__rc_react_root__";function kP(e,t){zv(!0);var n=t[Is]||Ts(t);zv(!1),n.render(e),t[Is]=n}function HP(e,t){Su==null||Su(e,t)}function BP(e,t){if(Ts){kP(e,t);return}HP(e,t)}function WP(e){return Eu.apply(this,arguments)}function Eu(){return Eu=Lt(ze().mark(function e(t){return ze().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[Is])===null||o===void 0||o.unmount(),delete t[Is]}));case 1:case"end":return r.stop()}},e)})),Eu.apply(this,arguments)}function qP(e){RP(e)}function UP(e){return $u.apply(this,arguments)}function $u(){return $u=Lt(ze().mark(function e(t){return ze().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Ts===void 0){r.next=2;break}return r.abrupt("return",WP(t));case 2:qP(t);case 3:case"end":return r.stop()}},e)})),$u.apply(this,arguments)}let GP=(e,t)=>{if(process.env.NODE_ENV!=="production"){const n=parseInt(h.version.split(".")[0],10),r=Object.keys(uf);process.env.NODE_ENV!=="production"&&Wr(n<19||r.includes("createRoot"),"compatible","antd v5 support React is 16 ~ 18. see https://u.ant.design/v5-for-19 for compatible.")}return BP(e,t),()=>UP(t)};function XP(e){return GP}const Ou=()=>({height:0,opacity:0}),Rv=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},YP=e=>({height:e?e.offsetHeight:0}),_u=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",Nu=(e=Ii)=>({motionName:`${e}-motion-collapse`,onAppearStart:Ou,onEnterStart:Ou,onAppearActive:Rv,onEnterActive:Rv,onLeaveStart:YP,onLeaveActive:Ou,onAppearEnd:_u,onEnterEnd:_u,onLeaveEnd:_u,motionDeadline:500}),KP=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function bn(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}const Pu=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 o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1},ZP=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(",")}}}}},QP=fN("Wave",e=>[ZP(e)]),Tu=`${Ii}-wave-target`;function Iu(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function JP(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Iu(t)?t:Iu(n)?n:Iu(r)?r:null}function Mu(e){return Number.isNaN(e)?0:e}const eT=e=>{const{className:t,target:n,component:r,registerUnmount:o}=e,i=h.useRef(null),a=h.useRef(null);h.useEffect(()=>{a.current=o()},[]);const[s,l]=h.useState(null),[c,u]=h.useState([]),[d,f]=h.useState(0),[p,v]=h.useState(0),[m,g]=h.useState(0),[y,x]=h.useState(0),[b,C]=h.useState(!1),w={left:d,top:p,width:m,height:y,borderRadius:c.map(E=>`${E}px`).join(" ")};s&&(w["--wave-color"]=s);function $(){const E=getComputedStyle(n);l(JP(n));const _=E.position==="static",{borderLeftWidth:P,borderTopWidth:A}=E;f(_?n.offsetLeft:Mu(-parseFloat(P))),v(_?n.offsetTop:Mu(-parseFloat(A))),g(n.offsetWidth),x(n.offsetHeight);const{borderTopLeftRadius:L,borderTopRightRadius:D,borderBottomLeftRadius:O,borderBottomRightRadius:M}=E;u([L,D,M,O].map(N=>Mu(parseFloat(N))))}if(h.useEffect(()=>{if(n){const E=Ft(()=>{$(),C(!0)});let _;return typeof ResizeObserver<"u"&&(_=new ResizeObserver($),_.observe(n)),()=>{Ft.cancel(E),_==null||_.disconnect()}}},[]),!b)return null;const S=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(Tu));return h.createElement(Dn,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(E,_)=>{var P,A;if(_.deadline||_.propertyName==="opacity"){const L=(P=i.current)===null||P===void 0?void 0:P.parentElement;(A=a.current)===null||A===void 0||A.call(a).then(()=>{L==null||L.remove()})}return!1}},({className:E},_)=>h.createElement("div",{ref:kt(i,_),className:re(t,E,{"wave-quick":S}),style:w}))},tT=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e==null||e.insertBefore(o,e==null?void 0:e.firstChild);const i=XP();let a=null;function s(){return a}a=i(h.createElement(eT,Object.assign({},t,{target:e,registerUnmount:s})),o)},nT=(e,t,n)=>{const{wave:r}=h.useContext(Be),[,o,i]=tr(),a=wt(c=>{const u=e.current;if(r!=null&&r.disabled||!u)return;const d=u.querySelector(`.${Tu}`)||u,{showEffect:f}=r||{};(f||tT)(d,{className:t,token:o,component:n,event:c,hashId:i})}),s=h.useRef(null);return c=>{Ft.cancel(s.current),s.current=Ft(()=>{a(c)})}},Au=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=T.useContext(Be),i=T.useRef(null),a=o("wave"),[,s]=QP(a),l=nT(i,re(a,s),r);if(T.useEffect(()=>{const u=i.current;if(!u||u.nodeType!==1||n)return;const d=f=>{!Pu(f.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||l(f)};return u.addEventListener("click",d,!0),()=>{u.removeEventListener("click",d,!0)}},[n]),!T.isValidElement(t))return t??null;const c=mo(t)?kt(bi(t),i):i;return nr(t,{ref:c})};process.env.NODE_ENV!=="production"&&(Au.displayName="Wave");const or=e=>{const t=T.useContext(qr);return T.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},rT=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},oT=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"}}}},iT=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}}}},Vv=Et("Space",e=>{const t=st(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[oT(t),iT(t),rT(t)]},()=>({}),{resetStyle:!1});var kv=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Ms=h.createContext(null),As=(e,t)=>{const n=h.useContext(Ms),r=h.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:i,isLastItem:a}=n,s=o==="vertical"?"-vertical-":"-";return re(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:i,[`${e}-compact${s}last-item`]:a,[`${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}},aT=e=>{const{children:t}=e;return h.createElement(Ms.Provider,{value:null},t)},sT=e=>{const{children:t}=e,n=kv(e,["children"]);return h.createElement(Ms.Provider,{value:h.useMemo(()=>n,[n])},t)},lT=e=>{const{getPrefixCls:t,direction:n}=h.useContext(Be),{size:r,direction:o,block:i,prefixCls:a,className:s,rootClassName:l,children:c}=e,u=kv(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=or(b=>r??b),f=t("space-compact",a),[p,v]=Vv(f),m=re(f,v,{[`${f}-rtl`]:n==="rtl",[`${f}-block`]:i,[`${f}-vertical`]:o==="vertical"},s,l),g=h.useContext(Ms),y=Zn(c),x=h.useMemo(()=>y.map((b,C)=>{const w=(b==null?void 0:b.key)||`${f}-item-${C}`;return h.createElement(sT,{key:w,compactSize:d,compactDirection:o,isFirstItem:C===0&&(!g||(g==null?void 0:g.isFirstItem)),isLastItem:C===y.length-1&&(!g||(g==null?void 0:g.isLastItem))},b)}),[r,y,g]);return y.length===0?null:p(h.createElement("div",Object.assign({className:m},u),x))};var cT=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Hv=h.createContext(void 0),uT=e=>{const{getPrefixCls:t,direction:n}=h.useContext(Be),{prefixCls:r,size:o,className:i}=e,a=cT(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=tr(),c=h.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]);if(process.env.NODE_ENV!=="production"){const d=Ze("Button.Group");d.deprecated(!1,"Button.Group","Space.Compact"),process.env.NODE_ENV!=="production"&&d(!o||["large","small","middle"].includes(o),"usage","Invalid prop `size`.")}const u=re(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:n==="rtl"},i,l);return h.createElement(Hv.Provider,{value:o},h.createElement("div",Object.assign({},a,{className:u})))},Bv=/^[\u4E00-\u9FA5]{2}$/,Du=Bv.test.bind(Bv);function Wv(e){return typeof e=="string"}function Ds(e){return e==="text"||e==="link"}function dT(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&Wv(e.type)&&Du(e.props.children)?nr(e,{children:e.props.children.split("").join(n)}):Wv(e)?Du(e)?T.createElement("span",null,e.split("").join(n)):T.createElement("span",null,e):Ov(e)?T.createElement("span",null,e):e}function fT(e,t){let n=!1;const r=[];return T.Children.forEach(e,o=>{const i=typeof o,a=i==="string"||i==="number";if(n&&a){const s=r.length-1,l=r[s];r[s]=`${l}${o}`}else r.push(o);n=a}),T.Children.map(r,o=>dT(o,t))}["default","primary","danger"].concat(de(Ur));const Fu=T.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=re(`${i}-icon`,n);return T.createElement("span",{ref:t,className:a,style:r},o)}),qv=T.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:i}=e,a=re(`${n}-loading-icon`,r);return T.createElement(Fu,{prefixCls:n,className:a,style:o,ref:t},T.createElement(Ao,{className:i}))}),Lu=()=>({width:0,opacity:0,transform:"scale(0)"}),ju=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),pT=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i,mount:a}=e,s=!!n;return r?T.createElement(qv,{prefixCls:t,className:o,style:i}):T.createElement(Dn,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:!0,onAppearStart:Lu,onAppearActive:ju,onEnterStart:Lu,onEnterActive:ju,onLeaveStart:ju,onLeaveActive:Lu},({className:l,style:c},u)=>{const d=Object.assign(Object.assign({},i),c);return T.createElement(qv,{prefixCls:t,className:re(o,l),style:d,ref:u})})},Uv=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),gT=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=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}},Uv(`${t}-primary`,o),Uv(`${t}-danger`,i)]}};var hT=["b"],mT=["v"],zu=function(t){return Math.round(Number(t||0))},vT=function(t){if(t instanceof rt)return t;if(t&&ye(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,o=vt(n,hT);return Q(Q({},o),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},ir=function(e){hn(n,e);var t=Pn(n);function n(r){return dt(this,n),t.call(this,vT(r))}return ft(n,[{key:"toHsbString",value:function(){var o=this.toHsb(),i=zu(o.s*100),a=zu(o.b*100),s=zu(o.h),l=o.a,c="hsb(".concat(s,", ").concat(i,"%, ").concat(a,"%)"),u="hsba(".concat(s,", ").concat(i,"%, ").concat(a,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:u}},{key:"toHsb",value:function(){var o=this.toHsv(),i=o.v,a=vt(o,mT);return Q(Q({},a),{},{b:i,a:this.a})}}]),n}(rt),yT="rc-color-picker",Do=function(t){return t instanceof ir?t:new ir(t)},bT=Do("#1677ff"),Gv=function(t){var n=t.offset,r=t.targetRef,o=t.containerRef,i=t.color,a=t.type,s=o.current.getBoundingClientRect(),l=s.width,c=s.height,u=r.current.getBoundingClientRect(),d=u.width,f=u.height,p=d/2,v=f/2,m=(n.x+p)/l,g=1-(n.y+v)/c,y=i.toHsb(),x=m,b=(n.x+p)/l*360;if(a)switch(a){case"hue":return Do(Q(Q({},y),{},{h:b<=0?0:b}));case"alpha":return Do(Q(Q({},y),{},{a:x<=0?0:x}))}return Do({h:y.h,s:m<=0?0:m,b:g>=1?1:g,a:y.a})},Xv=function(t,n){var r=t.toHsb();switch(n){case"hue":return{x:r.h/360*100,y:50};case"alpha":return{x:t.a*100,y:50};default:return{x:r.s*100,y:(1-r.b)*100}}},CT=function(t){var n=t.color,r=t.prefixCls,o=t.className,i=t.style,a=t.onClick,s="".concat(r,"-color-block");return T.createElement("div",{className:re(s,o),style:i,onClick:a},T.createElement("div",{className:"".concat(s,"-inner"),style:{background:n}}))};function wT(e){var t="touches"in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-n,pageY:t.pageY-r}}function Yv(e){var t=e.targetRef,n=e.containerRef,r=e.direction,o=e.onDragChange,i=e.onDragChangeComplete,a=e.calculate,s=e.color,l=e.disabledDrag,c=T.useState({x:0,y:0}),u=ae(c,2),d=u[0],f=u[1],p=T.useRef(null),v=T.useRef(null);T.useEffect(function(){f(a())},[s]),T.useEffect(function(){return function(){document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",v.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",v.current),p.current=null,v.current=null}},[]);var m=function(C){var w=wT(C),$=w.pageX,S=w.pageY,E=n.current.getBoundingClientRect(),_=E.x,P=E.y,A=E.width,L=E.height,D=t.current.getBoundingClientRect(),O=D.width,M=D.height,N=O/2,I=M/2,j=Math.max(0,Math.min($-_,A))-N,z=Math.max(0,Math.min(S-P,L))-I,F={x:j,y:r==="x"?d.y:z};if(O===0&&M===0||O!==M)return!1;o==null||o(F)},g=function(C){C.preventDefault(),m(C)},y=function(C){C.preventDefault(),document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",v.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",v.current),p.current=null,v.current=null,i==null||i()},x=function(C){document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",v.current),!l&&(m(C),document.addEventListener("mousemove",g),document.addEventListener("mouseup",y),document.addEventListener("touchmove",g),document.addEventListener("touchend",y),p.current=g,v.current=y)};return[d,x]}var Kv=function(t){var n=t.size,r=n===void 0?"default":n,o=t.color,i=t.prefixCls;return T.createElement("div",{className:re("".concat(i,"-handler"),X({},"".concat(i,"-handler-sm"),r==="small")),style:{backgroundColor:o}})},Zv=function(t){var n=t.children,r=t.style,o=t.prefixCls;return T.createElement("div",{className:"".concat(o,"-palette"),style:Q({position:"relative"},r)},n)},Qv=T.forwardRef(function(e,t){var n=e.children,r=e.x,o=e.y;return T.createElement("div",{ref:t,style:{position:"absolute",left:"".concat(r,"%"),top:"".concat(o,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},n)}),xT=function(t){var n=t.color,r=t.onChange,o=t.prefixCls,i=t.onChangeComplete,a=t.disabled,s=T.useRef(),l=T.useRef(),c=T.useRef(n),u=wt(function(m){var g=Gv({offset:m,targetRef:l,containerRef:s,color:n});c.current=g,r(g)}),d=Yv({color:n,containerRef:s,targetRef:l,calculate:function(){return Xv(n)},onDragChange:u,onDragChangeComplete:function(){return i==null?void 0:i(c.current)},disabledDrag:a}),f=ae(d,2),p=f[0],v=f[1];return T.createElement("div",{ref:s,className:"".concat(o,"-select"),onMouseDown:v,onTouchStart:v},T.createElement(Zv,{prefixCls:o},T.createElement(Qv,{x:p.x,y:p.y,ref:l},T.createElement(Kv,{color:n.toRgbString(),prefixCls:o})),T.createElement("div",{className:"".concat(o,"-saturation"),style:{backgroundColor:"hsl(".concat(n.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},ST=function(t,n){var r=An(t,{value:n}),o=ae(r,2),i=o[0],a=o[1],s=T.useMemo(function(){return Do(i)},[i]);return[s,a]},ET=function(t){var n=t.colors,r=t.children,o=t.direction,i=o===void 0?"to right":o,a=t.type,s=t.prefixCls,l=T.useMemo(function(){return n.map(function(c,u){var d=Do(c);return a==="alpha"&&u===n.length-1&&(d=new ir(d.setA(1))),d.toRgbString()}).join(",")},[n,a]);return T.createElement("div",{className:"".concat(s,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(i,", ").concat(l,")")}},r)},$T=function(t){var n=t.prefixCls,r=t.colors,o=t.disabled,i=t.onChange,a=t.onChangeComplete,s=t.color,l=t.type,c=T.useRef(),u=T.useRef(),d=T.useRef(s),f=function(w){return l==="hue"?w.getHue():w.a*100},p=wt(function(C){var w=Gv({offset:C,targetRef:u,containerRef:c,color:s,type:l});d.current=w,i(f(w))}),v=Yv({color:s,targetRef:u,containerRef:c,calculate:function(){return Xv(s,l)},onDragChange:p,onDragChangeComplete:function(){a(f(d.current))},direction:"x",disabledDrag:o}),m=ae(v,2),g=m[0],y=m[1],x=T.useMemo(function(){if(l==="hue"){var C=s.toHsb();C.s=1,C.b=1,C.a=1;var w=new ir(C);return w}return s},[s,l]),b=T.useMemo(function(){return r.map(function(C){return"".concat(C.color," ").concat(C.percent,"%")})},[r]);return T.createElement("div",{ref:c,className:re("".concat(n,"-slider"),"".concat(n,"-slider-").concat(l)),onMouseDown:y,onTouchStart:y},T.createElement(Zv,{prefixCls:n},T.createElement(Qv,{x:g.x,y:g.y,ref:u},T.createElement(Kv,{size:"small",color:x.toHexString(),prefixCls:n})),T.createElement(ET,{colors:b,type:l,prefixCls:n})))};function OT(e){return h.useMemo(function(){var t=e||{},n=t.slider;return[n||$T]},[e])}var _T=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],NT=T.forwardRef(function(e,t){var n=e.value,r=e.defaultValue,o=e.prefixCls,i=o===void 0?yT:o,a=e.onChange,s=e.onChangeComplete,l=e.className,c=e.style,u=e.panelRender,d=e.disabledAlpha,f=d===void 0?!1:d,p=e.disabled,v=p===void 0?!1:p,m=e.components,g=OT(m),y=ae(g,1),x=y[0],b=ST(r||bT,n),C=ae(b,2),w=C[0],$=C[1],S=T.useMemo(function(){return w.setA(1).toRgbString()},[w]),E=function(z,F){n||$(z),a==null||a(z,F)},_=function(z){return new ir(w.setHue(z))},P=function(z){return new ir(w.setA(z/100))},A=function(z){E(_(z),{type:"hue",value:z})},L=function(z){E(P(z),{type:"alpha",value:z})},D=function(z){s&&s(_(z))},O=function(z){s&&s(P(z))},M=re("".concat(i,"-panel"),l,X({},"".concat(i,"-panel-disabled"),v)),N={prefixCls:i,disabled:v,color:w},I=T.createElement(T.Fragment,null,T.createElement(xT,Ce({onChange:E},N,{onChangeComplete:s})),T.createElement("div",{className:"".concat(i,"-slider-container")},T.createElement("div",{className:re("".concat(i,"-slider-group"),X({},"".concat(i,"-slider-group-disabled-alpha"),f))},T.createElement(x,Ce({},N,{type:"hue",colors:_T,min:0,max:359,value:w.getHue(),onChange:A,onChangeComplete:D})),!f&&T.createElement(x,Ce({},N,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:S}],min:0,max:100,value:w.a*100,onChange:L,onChangeComplete:O}))),T.createElement(CT,{color:w.toRgbString(),prefixCls:i})));return T.createElement("div",{className:M,style:c,ref:t},typeof u=="function"?u(I):I)});process.env.NODE_ENV!=="production"&&(NT.displayName="ColorPicker");const PT=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",TT=(e,t)=>e?PT(e,t):"";let IT=function(){function e(t){dt(this,e);var n;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(n=t.colors)===null||n===void 0?void 0:n.map(o=>({color:new e(o.color),percent:o.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(({color:o,percent:i})=>({color:new e(o),percent:i})),this.metaColor=new ir(this.colors[0].color.metaColor)):this.metaColor=new ir(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return ft(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return TT(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:n}=this;return n?`linear-gradient(90deg, ${n.map(o=>`${o.color.toRgbString()} ${o.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return!n||this.isGradient()!==n.isGradient()?!1:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((r,o)=>{const i=n.colors[o];return r.percent===i.percent&&r.color.equals(i.color)}):this.toHexString()===n.toHexString()}}])}();const Jv=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
176
|
+
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,b5="".concat(v5," ").concat(y5).split(/[\s\n]+/),C5="aria-",x5="data-";function VC(e,t){return e.indexOf(t)===0}function ts(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=le({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||VC(o,C5))||n.data&&VC(o,x5)||n.attr&&b5.includes(o))&&(r[o]=e[o])}),r}function HC(e){return e&&M.isValidElement(e)&&e.type===M.Fragment}const kC=(e,t,n)=>M.isValidElement(e)?M.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function wo(e,t){return kC(e,e,t)}const Du=(e,t,n,r,o)=>({background:e,border:`${we(r.lineWidth)} ${r.lineType} ${t}`,[`${o}-icon`]:{color:n}}),w5=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:o,fontSize:i,fontSizeLG:a,lineHeight:l,borderRadiusLG:u,motionEaseInOutCirc:d,withDescriptionIconSize:f,colorText:g,colorTextHeading:p,withDescriptionPadding:m,defaultPadding:b}=e;return{[t]:Object.assign(Object.assign({},Rn(e)),{position:"relative",display:"flex",alignItems:"center",padding:b,wordWrap:"break-word",borderRadius:u,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:i,lineHeight:l},"&-message":{color:p},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${d}, opacity ${n} ${d},
|
|
177
|
+
padding-top ${n} ${d}, padding-bottom ${n} ${d},
|
|
178
|
+
margin-bottom ${n} ${d}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:m,[`${t}-icon`]:{marginInlineEnd:o,fontSize:f,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:p,fontSize:a},[`${t}-description`]:{display:"block",color:g}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},S5=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:o,colorWarning:i,colorWarningBorder:a,colorWarningBg:l,colorError:u,colorErrorBorder:d,colorErrorBg:f,colorInfo:g,colorInfoBorder:p,colorInfoBg:m}=e;return{[t]:{"&-success":Du(o,r,n,e,t),"&-info":Du(m,p,g,e,t),"&-warning":Du(l,a,i,e,t),"&-error":Object.assign(Object.assign({},Du(f,d,u,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},E5=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:o,fontSizeIcon:i,colorIcon:a,colorIconHover:l}=e;return{[t]:{"&-action":{marginInlineStart:o},[`${t}-close-icon`]:{marginInlineStart:o,padding:0,overflow:"hidden",fontSize:i,lineHeight:we(i),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:a,transition:`color ${r}`,"&:hover":{color:l}}},"&-close-text":{color:a,transition:`color ${r}`,"&:hover":{color:l}}}}},$5=Jt("Alert",e=>[w5(e),S5(e),E5(e)],e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}));var WC=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const _5={success:sl,info:Pg,error:ja,warning:Ba},O5=e=>{const{icon:t,prefixCls:n,type:r}=e,o=_5[r]||null;return t?kC(t,h.createElement("span",{className:`${n}-icon`},t),()=>({className:ge(`${n}-icon`,t.props.className)})):h.createElement(o,{className:`${n}-icon`})},N5=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:o,ariaProps:i}=e,a=r===!0||r===void 0?h.createElement(ea,null):r;return t?h.createElement("button",Object.assign({type:"button",onClick:o,className:`${n}-close-icon`,tabIndex:0},i),a):null},hp=h.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:o,banner:i,className:a,rootClassName:l,style:u,onMouseEnter:d,onMouseLeave:f,onClick:g,afterClose:p,showIcon:m,closable:b,closeText:C,closeIcon:y,action:x,id:$}=e,w=WC(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[E,S]=h.useState(!1);process.env.NODE_ENV!=="production"&&$t("Alert").deprecated(!C,"closeText","closable.closeIcon");const O=h.useRef(null);h.useImperativeHandle(t,()=>({nativeElement:O.current}));const{getPrefixCls:_,direction:P,closable:T,closeIcon:L,className:z,style:B}=lr("alert"),j=_("alert",r),[I,F,A]=$5(j),D=K=>{var te;S(!0),(te=e.onClose)===null||te===void 0||te.call(e,K)},V=h.useMemo(()=>e.type!==void 0?e.type:i?"warning":"info",[e.type,i]),W=h.useMemo(()=>typeof b=="object"&&b.closeIcon||C?!0:typeof b=="boolean"?b:y!==!1&&y!==null&&y!==void 0?!0:!!T,[C,y,b,T]),H=i&&m===void 0?!0:m,q=ge(j,`${j}-${V}`,{[`${j}-with-description`]:!!n,[`${j}-no-icon`]:!H,[`${j}-banner`]:!!i,[`${j}-rtl`]:P==="rtl"},z,a,l,A,F),Z=ts(w,{aria:!0,data:!0}),Y=h.useMemo(()=>typeof b=="object"&&b.closeIcon?b.closeIcon:C||(y!==void 0?y:typeof T=="object"&&T.closeIcon?T.closeIcon:L),[y,b,C,L]),G=h.useMemo(()=>{const K=b??T;if(typeof K=="object"){const{closeIcon:te}=K;return WC(K,["closeIcon"])}return{}},[b,T]);return I(h.createElement(Nr,{visible:!E,motionName:`${j}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:K=>({maxHeight:K.offsetHeight}),onLeaveEnd:p},({className:K,style:te},ie)=>h.createElement("div",Object.assign({id:$,ref:Xn(O,ie),"data-show":!E,className:ge(q,K),style:Object.assign(Object.assign(Object.assign({},B),u),te),onMouseEnter:d,onMouseLeave:f,onClick:g,role:"alert"},Z),H?h.createElement(O5,{description:n,icon:e.icon,prefixCls:j,type:V}):null,h.createElement("div",{className:`${j}-content`},o?h.createElement("div",{className:`${j}-message`},o):null,n?h.createElement("div",{className:`${j}-description`},n):null),x?h.createElement("div",{className:`${j}-action`},x):null,h.createElement(N5,{isClosable:W,prefixCls:j,closeIcon:Y,handleClose:D,ariaProps:G}))))});process.env.NODE_ENV!=="production"&&(hp.displayName="Alert");function P5(e,t,n){return t=ta(t),c1(e,uu()?Reflect.construct(t,n||[],ta(e).constructor):t.apply(e,n))}let I5=function(e){function t(){var n;return Zt(this,t),n=P5(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return Yr(t,e),Qt(t,[{key:"componentDidCatch",value:function(r,o){this.setState({error:r,info:o})}},{key:"render",value:function(){const{message:r,description:o,id:i,children:a}=this.props,{error:l,info:u}=this.state,d=(u==null?void 0:u.componentStack)||null,f=typeof r>"u"?(l||"").toString():r,g=typeof o>"u"?d:o;return l?h.createElement(hp,{id:i,type:"error",message:f,description:h.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},g)}):a}}])}(h.Component);const Fu=hp;Fu.ErrorBoundary=I5;const UC=e=>typeof e=="object"&&e!=null&&e.nodeType===1,qC=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Lu=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return qC(n.overflowY,t)||qC(n.overflowX,t)||(r=>{const o=(i=>{if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)})(e)}return!1},Ru=(e,t,n,r,o,i,a,l)=>i<e&&a>t||i>e&&a<t?0:i<=e&&l<=n||a>=t&&l>=n?i-e-r:a>t&&l<n||i<e&&l>n?a-t+o:0,T5=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},GC=(e,t)=>{var n,r,o,i;if(typeof document>"u")return[];const{scrollMode:a,block:l,inline:u,boundary:d,skipOverflowHiddenElements:f}=t,g=typeof d=="function"?d:A=>A!==d;if(!UC(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,m=[];let b=e;for(;UC(b)&&g(b);){if(b=T5(b),b===p){m.push(b);break}b!=null&&b===document.body&&Lu(b)&&!Lu(document.documentElement)||b!=null&&Lu(b,f)&&m.push(b)}const C=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,y=(i=(o=window.visualViewport)==null?void 0:o.height)!=null?i:innerHeight,{scrollX:x,scrollY:$}=window,{height:w,width:E,top:S,right:O,bottom:_,left:P}=e.getBoundingClientRect(),{top:T,right:L,bottom:z,left:B}=(A=>{const D=window.getComputedStyle(A);return{top:parseFloat(D.scrollMarginTop)||0,right:parseFloat(D.scrollMarginRight)||0,bottom:parseFloat(D.scrollMarginBottom)||0,left:parseFloat(D.scrollMarginLeft)||0}})(e);let j=l==="start"||l==="nearest"?S-T:l==="end"?_+z:S+w/2-T+z,I=u==="center"?P+E/2-B+L:u==="end"?O+L:P-B;const F=[];for(let A=0;A<m.length;A++){const D=m[A],{height:V,width:W,top:H,right:q,bottom:Z,left:Y}=D.getBoundingClientRect();if(a==="if-needed"&&S>=0&&P>=0&&_<=y&&O<=C&&(D===p&&!Lu(D)||S>=H&&_<=Z&&P>=Y&&O<=q))return F;const G=getComputedStyle(D),K=parseInt(G.borderLeftWidth,10),te=parseInt(G.borderTopWidth,10),ie=parseInt(G.borderRightWidth,10),ee=parseInt(G.borderBottomWidth,10);let ae=0,de=0;const ue="offsetWidth"in D?D.offsetWidth-D.clientWidth-K-ie:0,J="offsetHeight"in D?D.offsetHeight-D.clientHeight-te-ee:0,fe="offsetWidth"in D?D.offsetWidth===0?0:W/D.offsetWidth:0,oe="offsetHeight"in D?D.offsetHeight===0?0:V/D.offsetHeight:0;if(p===D)ae=l==="start"?j:l==="end"?j-y:l==="nearest"?Ru($,$+y,y,te,ee,$+j,$+j+w,w):j-y/2,de=u==="start"?I:u==="center"?I-C/2:u==="end"?I-C:Ru(x,x+C,C,K,ie,x+I,x+I+E,E),ae=Math.max(0,ae+$),de=Math.max(0,de+x);else{ae=l==="start"?j-H-te:l==="end"?j-Z+ee+J:l==="nearest"?Ru(H,Z,V,te,ee+J,j,j+w,w):j-(H+V/2)+J/2,de=u==="start"?I-Y-K:u==="center"?I-(Y+W/2)+ue/2:u==="end"?I-q+ie+ue:Ru(Y,q,W,K,ie+ue,I,I+E,E);const{scrollLeft:he,scrollTop:me}=D;ae=oe===0?0:Math.max(0,Math.min(me+ae/oe,D.scrollHeight-V/oe+J)),de=fe===0?0:Math.max(0,Math.min(he+de/fe,D.scrollWidth-W/fe+ue)),j+=me-ae,I+=he-de}F.push({el:D,top:ae,left:de})}return F},M5=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function A5(e,t){if(!e.isConnected||!(o=>{let i=o;for(;i&&i.parentNode;){if(i.parentNode===document)return!0;i=i.parentNode instanceof ShadowRoot?i.parentNode.host:i.parentNode}return!1})(e))return;const n=(o=>{const i=window.getComputedStyle(o);return{top:parseFloat(i.scrollMarginTop)||0,right:parseFloat(i.scrollMarginRight)||0,bottom:parseFloat(i.scrollMarginBottom)||0,left:parseFloat(i.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(GC(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:i,left:a}of GC(e,M5(t))){const l=i-n.top+n.bottom,u=a-n.left+n.right;o.scroll({top:l,left:u,behavior:r})}}const ko=e=>{const[,,,,t]=xo();return t?`${e}-css-var`:""};var xl={TAB:9,ENTER:13,ESC:27};const zu=M.createContext(void 0);process.env.NODE_ENV!=="production"&&(zu.displayName="zIndexContext");const Wo=100,XC=Wo*10,D5=XC+Wo,YC={Modal:Wo,Drawer:Wo,Popover:Wo,Popconfirm:Wo,Tooltip:Wo,Tour:Wo,FloatButton:Wo},F5={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function L5(e){return e in YC}const KC=(e,t)=>{const[,n]=xo(),r=M.useContext(zu),o=L5(e);let i;if(t!==void 0)i=[t,t];else{let a=r??0;o?a+=(r?0:n.zIndexPopupBase)+YC[e]:a+=F5[e],i=[r===void 0?t:a,a]}if(process.env.NODE_ENV!=="production"){const a=$t(e),l=n.zIndexPopupBase+D5,u=i[0]||0;process.env.NODE_ENV!=="production"&&a(t!==void 0||u<=l,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return i};function R5(){const[e,t]=h.useState([]),n=h.useCallback(r=>(t(o=>[].concat(Oe(o),[r])),()=>{t(o=>o.filter(i=>i!==r))}),[]);return[e,n]}function ZC(e,t){this.v=e,this.k=t}function Tn(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}Tn=function(a,l,u,d){if(l)o?o(a,l,{value:u,enumerable:!d,configurable:!d,writable:!d}):a[l]=u;else{var f=function(p,m){Tn(a,p,function(b){return this._invoke(p,m,b)})};f("next",0),f("throw",1),f("return",2)}},Tn(e,t,n,r)}function mp(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(m,b,C,y){var x=b&&b.prototype instanceof l?b:l,$=Object.create(x.prototype);return Tn($,"_invoke",function(w,E,S){var O,_,P,T=0,L=S||[],z=!1,B={p:0,n:0,v:e,a:j,f:j.bind(e,4),d:function(F,A){return O=F,_=0,P=e,B.n=A,a}};function j(I,F){for(_=I,P=F,t=0;!z&&T&&!A&&t<L.length;t++){var A,D=L[t],V=B.p,W=D[2];I>3?(A=W===F)&&(P=D[(_=D[4])?5:(_=3,3)],D[4]=D[5]=e):D[0]<=V&&((A=I<2&&V<D[1])?(_=0,B.v=F,B.n=D[1]):V<W&&(A=I<3||D[0]>F||F>W)&&(D[4]=I,D[5]=F,B.n=W,_=0))}if(A||I>1)return a;throw z=!0,F}return function(I,F,A){if(T>1)throw TypeError("Generator is already running");for(z&&F===1&&j(F,A),_=F,P=A;(t=_<2?e:P)||!z;){O||(_?_<3?(_>1&&(B.n=-1),j(_,P)):B.n=P:B.v=P);try{if(T=2,O){if(_||(I="next"),t=O[I]){if(!(t=t.call(O,P)))throw TypeError("iterator result is not an object");if(!t.done)return t;P=t.value,_<2&&(_=0)}else _===1&&(t=O.return)&&t.call(O),_<2&&(P=TypeError("The iterator does not provide a '"+I+"' method"),_=1);O=e}else if((t=(z=B.n<0)?P:w.call(E,B))!==a)break}catch(D){O=e,_=1,P=D}finally{T=1}}return{value:t,done:z}}}(m,C,y),!0),$}var a={};function l(){}function u(){}function d(){}t=Object.getPrototypeOf;var f=[][r]?t(t([][r]())):(Tn(t={},r,function(){return this}),t),g=d.prototype=l.prototype=Object.create(f);function p(m){return Object.setPrototypeOf?Object.setPrototypeOf(m,d):(m.__proto__=d,Tn(m,o,"GeneratorFunction")),m.prototype=Object.create(g),m}return u.prototype=d,Tn(g,"constructor",d),Tn(d,"constructor",u),u.displayName="GeneratorFunction",Tn(d,o,"GeneratorFunction"),Tn(g),Tn(g,o,"Generator"),Tn(g,r,function(){return this}),Tn(g,"toString",function(){return"[object Generator]"}),(mp=function(){return{w:i,m:p}})()}function ju(e,t){function n(o,i,a,l){try{var u=e[o](i),d=u.value;return d instanceof ZC?t.resolve(d.v).then(function(f){n("next",f,a,l)},function(f){n("throw",f,a,l)}):t.resolve(d).then(function(f){u.value=f,a(u)},function(f){return n("throw",f,a,l)})}catch(f){l(f)}}var r;this.next||(Tn(ju.prototype),Tn(ju.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),Tn(this,"_invoke",function(o,i,a){function l(){return new t(function(u,d){n(o,a,u,d)})}return r=r?r.then(l,l):l()},!0)}function QC(e,t,n,r,o){return new ju(mp().w(e,t,n,r),o||Promise)}function z5(e,t,n,r,o){var i=QC(e,t,n,r,o);return i.next().then(function(a){return a.done?a.value:i.next()})}function j5(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function o(){for(;n.length;)if((r=n.pop())in t)return o.value=r,o.done=!1,o;return o.done=!0,o}}function JC(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(je(e)+" is not iterable")}function bt(){var e=mp(),t=e.m(bt),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(a){var l=typeof a=="function"&&a.constructor;return!!l&&(l===n||(l.displayName||l.name)==="GeneratorFunction")}var o={throw:1,return:2,break:3,continue:3};function i(a){var l,u;return function(d){l||(l={stop:function(){return u(d.a,2)},catch:function(){return d.v},abrupt:function(g,p){return u(d.a,o[g],p)},delegateYield:function(g,p,m){return l.resultName=p,u(d.d,JC(g),m)},finish:function(g){return u(d.f,g)}},u=function(g,p,m){d.p=l.prev,d.n=l.next;try{return g(p,m)}finally{l.next=d.n}}),l.resultName&&(l[l.resultName]=d.v,l.resultName=void 0),l.sent=d.v,l.next=d.n;try{return a.call(this,l)}finally{d.p=l.prev,d.n=l.next}}}return(bt=function(){return{wrap:function(u,d,f,g){return e.w(i(u),d,f,g&&g.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(u,d){return new ZC(u,d)},AsyncIterator:ju,async:function(u,d,f,g,p){return(r(d)?QC:z5)(i(u),d,f,g,p)},keys:j5,values:JC}})()}function ex(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(d){return void n(d)}l.done?t(u):Promise.resolve(u).then(r,o)}function zn(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(u){ex(i,r,o,a,l,"next",u)}function l(u){ex(i,r,o,a,l,"throw",u)}a(void 0)})}}var wl=le({},av),B5=wl.version,vp=wl.render,V5=wl.unmountComponentAtNode,Bu;try{var H5=Number((B5||"").split(".")[0]);H5>=18&&(Bu=wl.createRoot)}catch{}function tx(e){var t=wl.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&je(t)==="object"&&(t.usingClientEntryPoint=e)}var Vu="__rc_react_root__";function k5(e,t){tx(!0);var n=t[Vu]||Bu(t);tx(!1),n.render(e),t[Vu]=n}function W5(e,t){vp==null||vp(e,t)}function U5(e,t){if(Bu){k5(e,t);return}W5(e,t)}function q5(e){return yp.apply(this,arguments)}function yp(){return yp=zn(bt().mark(function e(t){return bt().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[Vu])===null||o===void 0||o.unmount(),delete t[Vu]}));case 1:case"end":return r.stop()}},e)})),yp.apply(this,arguments)}function G5(e){V5(e)}function X5(e){return bp.apply(this,arguments)}function bp(){return bp=zn(bt().mark(function e(t){return bt().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Bu===void 0){r.next=2;break}return r.abrupt("return",q5(t));case 2:G5(t);case 3:case"end":return r.stop()}},e)})),bp.apply(this,arguments)}let Y5=(e,t)=>{if(process.env.NODE_ENV!=="production"){const n=parseInt(h.version.split(".")[0],10),r=Object.keys(av);process.env.NODE_ENV!=="production"&&Vo(n<19||r.includes("createRoot"),"compatible","antd v5 support React is 16 ~ 18. see https://u.ant.design/v5-for-19 for compatible.")}return U5(e,t),()=>X5(t)};function nx(e){return Y5}const Cp=()=>({height:0,opacity:0}),rx=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},K5=e=>({height:e?e.offsetHeight:0}),xp=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",wp=(e=bl)=>({motionName:`${e}-motion-collapse`,onAppearStart:Cp,onEnterStart:Cp,onAppearActive:rx,onEnterActive:rx,onLeaveStart:K5,onLeaveActive:Cp,onAppearEnd:xp,onEnterEnd:xp,onLeaveEnd:xp,motionDeadline:500}),ns=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function jn(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}const Sp=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 o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1},Z5=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(",")}}}}},Q5=D6("Wave",e=>[Z5(e)]),Ep=`${bl}-wave-target`;function $p(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function J5(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return $p(t)?t:$p(n)?n:$p(r)?r:null}function _p(e){return Number.isNaN(e)?0:e}const e8=e=>{const{className:t,target:n,component:r,registerUnmount:o}=e,i=h.useRef(null),a=h.useRef(null);h.useEffect(()=>{a.current=o()},[]);const[l,u]=h.useState(null),[d,f]=h.useState([]),[g,p]=h.useState(0),[m,b]=h.useState(0),[C,y]=h.useState(0),[x,$]=h.useState(0),[w,E]=h.useState(!1),S={left:g,top:m,width:C,height:x,borderRadius:d.map(P=>`${P}px`).join(" ")};l&&(S["--wave-color"]=l);function O(){const P=getComputedStyle(n);u(J5(n));const T=P.position==="static",{borderLeftWidth:L,borderTopWidth:z}=P;p(T?n.offsetLeft:_p(-parseFloat(L))),b(T?n.offsetTop:_p(-parseFloat(z))),y(n.offsetWidth),$(n.offsetHeight);const{borderTopLeftRadius:B,borderTopRightRadius:j,borderBottomLeftRadius:I,borderBottomRightRadius:F}=P;f([B,j,F,I].map(A=>_p(parseFloat(A))))}if(h.useEffect(()=>{if(n){const P=Ln(()=>{O(),E(!0)});let T;return typeof ResizeObserver<"u"&&(T=new ResizeObserver(O),T.observe(n)),()=>{Ln.cancel(P),T==null||T.disconnect()}}},[]),!w)return null;const _=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(Ep));return h.createElement(Nr,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(P,T)=>{var L,z;if(T.deadline||T.propertyName==="opacity"){const B=(L=i.current)===null||L===void 0?void 0:L.parentElement;(z=a.current)===null||z===void 0||z.call(a).then(()=>{B==null||B.remove()})}return!1}},({className:P},T)=>h.createElement("div",{ref:Xn(i,T),className:ge(t,P,{"wave-quick":_}),style:S}))},t8=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e==null||e.insertBefore(o,e==null?void 0:e.firstChild);const i=nx();let a=null;function l(){return a}a=i(h.createElement(e8,Object.assign({},t,{target:e,registerUnmount:l})),o)},n8=(e,t,n)=>{const{wave:r}=h.useContext(et),[,o,i]=xo(),a=fn(d=>{const f=e.current;if(r!=null&&r.disabled||!f)return;const g=f.querySelector(`.${Ep}`)||f,{showEffect:p}=r||{};(p||t8)(g,{className:t,token:o,component:n,event:d,hashId:i})}),l=h.useRef(null);return d=>{Ln.cancel(l.current),l.current=Ln(()=>{a(d)})}},Op=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=M.useContext(et),i=M.useRef(null),a=o("wave"),[,l]=Q5(a),u=n8(i,ge(a,l),r);if(M.useEffect(()=>{const f=i.current;if(!f||f.nodeType!==1||n)return;const g=p=>{!Sp(p.target)||!f.getAttribute||f.getAttribute("disabled")||f.disabled||f.className.includes("disabled")||f.className.includes("-leave")||u(p)};return f.addEventListener("click",g,!0),()=>{f.removeEventListener("click",g,!0)}},[n]),!M.isValidElement(t))return t??null;const d=Ha(t)?Xn(cl(t),i):i;return wo(t,{ref:d})};process.env.NODE_ENV!=="production"&&(Op.displayName="Wave");const Uo=e=>{const t=M.useContext(oa);return M.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},r8=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},o8=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"}}}},i8=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}}}},ox=Jt("Space",e=>{const t=jt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[o8(t),i8(t),r8(t)]},()=>({}),{resetStyle:!1});var ix=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Hu=h.createContext(null),ku=(e,t)=>{const n=h.useContext(Hu),r=h.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:i,isLastItem:a}=n,l=o==="vertical"?"-vertical-":"-";return ge(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:i,[`${e}-compact${l}last-item`]:a,[`${e}-compact${l}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},a8=e=>{const{children:t}=e;return h.createElement(Hu.Provider,{value:null},t)},s8=e=>{const{children:t}=e,n=ix(e,["children"]);return h.createElement(Hu.Provider,{value:h.useMemo(()=>n,[n])},t)},l8=e=>{const{getPrefixCls:t,direction:n}=h.useContext(et),{size:r,direction:o,block:i,prefixCls:a,className:l,rootClassName:u,children:d}=e,f=ix(e,["size","direction","block","prefixCls","className","rootClassName","children"]),g=Uo(w=>r??w),p=t("space-compact",a),[m,b]=ox(p),C=ge(p,b,{[`${p}-rtl`]:n==="rtl",[`${p}-block`]:i,[`${p}-vertical`]:o==="vertical"},l,u),y=h.useContext(Hu),x=zo(d),$=h.useMemo(()=>x.map((w,E)=>{const S=(w==null?void 0:w.key)||`${p}-item-${E}`;return h.createElement(s8,{key:S,compactSize:g,compactDirection:o,isFirstItem:E===0&&(!y||(y==null?void 0:y.isFirstItem)),isLastItem:E===x.length-1&&(!y||(y==null?void 0:y.isLastItem))},w)}),[r,x,y]);return x.length===0?null:m(h.createElement("div",Object.assign({className:C},f),$))};var c8=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const ax=h.createContext(void 0),u8=e=>{const{getPrefixCls:t,direction:n}=h.useContext(et),{prefixCls:r,size:o,className:i}=e,a=c8(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,u]=xo(),d=h.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]);if(process.env.NODE_ENV!=="production"){const g=$t("Button.Group");g.deprecated(!1,"Button.Group","Space.Compact"),process.env.NODE_ENV!=="production"&&g(!o||["large","small","middle"].includes(o),"usage","Invalid prop `size`.")}const f=ge(l,{[`${l}-${d}`]:d,[`${l}-rtl`]:n==="rtl"},i,u);return h.createElement(ax.Provider,{value:o},h.createElement("div",Object.assign({},a,{className:f})))},sx=/^[\u4E00-\u9FA5]{2}$/,Np=sx.test.bind(sx);function Pp(e){return e==="danger"?{danger:!0}:{type:e}}function lx(e){return typeof e=="string"}function Wu(e){return e==="text"||e==="link"}function d8(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&lx(e.type)&&Np(e.props.children)?wo(e,{children:e.props.children.split("").join(n)}):lx(e)?Np(e)?M.createElement("span",null,e.split("").join(n)):M.createElement("span",null,e):HC(e)?M.createElement("span",null,e):e}function f8(e,t){let n=!1;const r=[];return M.Children.forEach(e,o=>{const i=typeof o,a=i==="string"||i==="number";if(n&&a){const l=r.length-1,u=r[l];r[l]=`${u}${o}`}else r.push(o);n=a}),M.Children.map(r,o=>d8(o,t))}["default","primary","danger"].concat(Oe($i));const Ip=M.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=ge(`${i}-icon`,n);return M.createElement("span",{ref:t,className:a,style:r},o)}),cx=M.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:i}=e,a=ge(`${n}-loading-icon`,r);return M.createElement(Ip,{prefixCls:n,className:a,style:o,ref:t},M.createElement(Va,{className:i}))}),Tp=()=>({width:0,opacity:0,transform:"scale(0)"}),Mp=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),g8=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i,mount:a}=e,l=!!n;return r?M.createElement(cx,{prefixCls:t,className:o,style:i}):M.createElement(Nr,{visible:l,motionName:`${t}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:!0,onAppearStart:Tp,onAppearActive:Mp,onEnterStart:Tp,onEnterActive:Mp,onLeaveStart:Mp,onLeaveActive:Tp},({className:u,style:d},f)=>{const g=Object.assign(Object.assign({},i),d);return M.createElement(cx,{prefixCls:t,className:ge(o,u),style:g,ref:f})})},ux=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),p8=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=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}},ux(`${t}-primary`,o),ux(`${t}-danger`,i)]}};var h8=["b"],m8=["v"],Ap=function(t){return Math.round(Number(t||0))},v8=function(t){if(t instanceof Vt)return t;if(t&&je(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,o=sn(n,h8);return le(le({},o),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},qo=function(e){Yr(n,e);var t=yo(n);function n(r){return Zt(this,n),t.call(this,v8(r))}return Qt(n,[{key:"toHsbString",value:function(){var o=this.toHsb(),i=Ap(o.s*100),a=Ap(o.b*100),l=Ap(o.h),u=o.a,d="hsb(".concat(l,", ").concat(i,"%, ").concat(a,"%)"),f="hsba(".concat(l,", ").concat(i,"%, ").concat(a,"%, ").concat(u.toFixed(u===0?0:2),")");return u===1?d:f}},{key:"toHsb",value:function(){var o=this.toHsv(),i=o.v,a=sn(o,m8);return le(le({},a),{},{b:i,a:this.a})}}]),n}(Vt),y8="rc-color-picker",rs=function(t){return t instanceof qo?t:new qo(t)},b8=rs("#1677ff"),dx=function(t){var n=t.offset,r=t.targetRef,o=t.containerRef,i=t.color,a=t.type,l=o.current.getBoundingClientRect(),u=l.width,d=l.height,f=r.current.getBoundingClientRect(),g=f.width,p=f.height,m=g/2,b=p/2,C=(n.x+m)/u,y=1-(n.y+b)/d,x=i.toHsb(),$=C,w=(n.x+m)/u*360;if(a)switch(a){case"hue":return rs(le(le({},x),{},{h:w<=0?0:w}));case"alpha":return rs(le(le({},x),{},{a:$<=0?0:$}))}return rs({h:x.h,s:C<=0?0:C,b:y>=1?1:y,a:x.a})},fx=function(t,n){var r=t.toHsb();switch(n){case"hue":return{x:r.h/360*100,y:50};case"alpha":return{x:t.a*100,y:50};default:return{x:r.s*100,y:(1-r.b)*100}}},C8=function(t){var n=t.color,r=t.prefixCls,o=t.className,i=t.style,a=t.onClick,l="".concat(r,"-color-block");return M.createElement("div",{className:ge(l,o),style:i,onClick:a},M.createElement("div",{className:"".concat(l,"-inner"),style:{background:n}}))};function x8(e){var t="touches"in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-n,pageY:t.pageY-r}}function gx(e){var t=e.targetRef,n=e.containerRef,r=e.direction,o=e.onDragChange,i=e.onDragChangeComplete,a=e.calculate,l=e.color,u=e.disabledDrag,d=M.useState({x:0,y:0}),f=Ee(d,2),g=f[0],p=f[1],m=M.useRef(null),b=M.useRef(null);M.useEffect(function(){p(a())},[l]),M.useEffect(function(){return function(){document.removeEventListener("mousemove",m.current),document.removeEventListener("mouseup",b.current),document.removeEventListener("touchmove",m.current),document.removeEventListener("touchend",b.current),m.current=null,b.current=null}},[]);var C=function(E){var S=x8(E),O=S.pageX,_=S.pageY,P=n.current.getBoundingClientRect(),T=P.x,L=P.y,z=P.width,B=P.height,j=t.current.getBoundingClientRect(),I=j.width,F=j.height,A=I/2,D=F/2,V=Math.max(0,Math.min(O-T,z))-A,W=Math.max(0,Math.min(_-L,B))-D,H={x:V,y:r==="x"?g.y:W};if(I===0&&F===0||I!==F)return!1;o==null||o(H)},y=function(E){E.preventDefault(),C(E)},x=function(E){E.preventDefault(),document.removeEventListener("mousemove",m.current),document.removeEventListener("mouseup",b.current),document.removeEventListener("touchmove",m.current),document.removeEventListener("touchend",b.current),m.current=null,b.current=null,i==null||i()},$=function(E){document.removeEventListener("mousemove",m.current),document.removeEventListener("mouseup",b.current),!u&&(C(E),document.addEventListener("mousemove",y),document.addEventListener("mouseup",x),document.addEventListener("touchmove",y),document.addEventListener("touchend",x),m.current=y,b.current=x)};return[g,$]}var px=function(t){var n=t.size,r=n===void 0?"default":n,o=t.color,i=t.prefixCls;return M.createElement("div",{className:ge("".concat(i,"-handler"),re({},"".concat(i,"-handler-sm"),r==="small")),style:{backgroundColor:o}})},hx=function(t){var n=t.children,r=t.style,o=t.prefixCls;return M.createElement("div",{className:"".concat(o,"-palette"),style:le({position:"relative"},r)},n)},mx=M.forwardRef(function(e,t){var n=e.children,r=e.x,o=e.y;return M.createElement("div",{ref:t,style:{position:"absolute",left:"".concat(r,"%"),top:"".concat(o,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},n)}),w8=function(t){var n=t.color,r=t.onChange,o=t.prefixCls,i=t.onChangeComplete,a=t.disabled,l=M.useRef(),u=M.useRef(),d=M.useRef(n),f=fn(function(C){var y=dx({offset:C,targetRef:u,containerRef:l,color:n});d.current=y,r(y)}),g=gx({color:n,containerRef:l,targetRef:u,calculate:function(){return fx(n)},onDragChange:f,onDragChangeComplete:function(){return i==null?void 0:i(d.current)},disabledDrag:a}),p=Ee(g,2),m=p[0],b=p[1];return M.createElement("div",{ref:l,className:"".concat(o,"-select"),onMouseDown:b,onTouchStart:b},M.createElement(hx,{prefixCls:o},M.createElement(mx,{x:m.x,y:m.y,ref:u},M.createElement(px,{color:n.toRgbString(),prefixCls:o})),M.createElement("div",{className:"".concat(o,"-saturation"),style:{backgroundColor:"hsl(".concat(n.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},S8=function(t,n){var r=Or(t,{value:n}),o=Ee(r,2),i=o[0],a=o[1],l=M.useMemo(function(){return rs(i)},[i]);return[l,a]},E8=function(t){var n=t.colors,r=t.children,o=t.direction,i=o===void 0?"to right":o,a=t.type,l=t.prefixCls,u=M.useMemo(function(){return n.map(function(d,f){var g=rs(d);return a==="alpha"&&f===n.length-1&&(g=new qo(g.setA(1))),g.toRgbString()}).join(",")},[n,a]);return M.createElement("div",{className:"".concat(l,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(i,", ").concat(u,")")}},r)},$8=function(t){var n=t.prefixCls,r=t.colors,o=t.disabled,i=t.onChange,a=t.onChangeComplete,l=t.color,u=t.type,d=M.useRef(),f=M.useRef(),g=M.useRef(l),p=function(S){return u==="hue"?S.getHue():S.a*100},m=fn(function(E){var S=dx({offset:E,targetRef:f,containerRef:d,color:l,type:u});g.current=S,i(p(S))}),b=gx({color:l,targetRef:f,containerRef:d,calculate:function(){return fx(l,u)},onDragChange:m,onDragChangeComplete:function(){a(p(g.current))},direction:"x",disabledDrag:o}),C=Ee(b,2),y=C[0],x=C[1],$=M.useMemo(function(){if(u==="hue"){var E=l.toHsb();E.s=1,E.b=1,E.a=1;var S=new qo(E);return S}return l},[l,u]),w=M.useMemo(function(){return r.map(function(E){return"".concat(E.color," ").concat(E.percent,"%")})},[r]);return M.createElement("div",{ref:d,className:ge("".concat(n,"-slider"),"".concat(n,"-slider-").concat(u)),onMouseDown:x,onTouchStart:x},M.createElement(hx,{prefixCls:n},M.createElement(mx,{x:y.x,y:y.y,ref:f},M.createElement(px,{size:"small",color:$.toHexString(),prefixCls:n})),M.createElement(E8,{colors:w,type:u,prefixCls:n})))};function _8(e){return h.useMemo(function(){var t=e||{},n=t.slider;return[n||$8]},[e])}var O8=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],N8=M.forwardRef(function(e,t){var n=e.value,r=e.defaultValue,o=e.prefixCls,i=o===void 0?y8:o,a=e.onChange,l=e.onChangeComplete,u=e.className,d=e.style,f=e.panelRender,g=e.disabledAlpha,p=g===void 0?!1:g,m=e.disabled,b=m===void 0?!1:m,C=e.components,y=_8(C),x=Ee(y,1),$=x[0],w=S8(r||b8,n),E=Ee(w,2),S=E[0],O=E[1],_=M.useMemo(function(){return S.setA(1).toRgbString()},[S]),P=function(W,H){n||O(W),a==null||a(W,H)},T=function(W){return new qo(S.setHue(W))},L=function(W){return new qo(S.setA(W/100))},z=function(W){P(T(W),{type:"hue",value:W})},B=function(W){P(L(W),{type:"alpha",value:W})},j=function(W){l&&l(T(W))},I=function(W){l&&l(L(W))},F=ge("".concat(i,"-panel"),u,re({},"".concat(i,"-panel-disabled"),b)),A={prefixCls:i,disabled:b,color:S},D=M.createElement(M.Fragment,null,M.createElement(w8,Le({onChange:P},A,{onChangeComplete:l})),M.createElement("div",{className:"".concat(i,"-slider-container")},M.createElement("div",{className:ge("".concat(i,"-slider-group"),re({},"".concat(i,"-slider-group-disabled-alpha"),p))},M.createElement($,Le({},A,{type:"hue",colors:O8,min:0,max:359,value:S.getHue(),onChange:z,onChangeComplete:j})),!p&&M.createElement($,Le({},A,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:_}],min:0,max:100,value:S.a*100,onChange:B,onChangeComplete:I}))),M.createElement(C8,{color:S.toRgbString(),prefixCls:i})));return M.createElement("div",{className:F,style:d,ref:t},typeof f=="function"?f(D):D)});process.env.NODE_ENV!=="production"&&(N8.displayName="ColorPicker");const P8=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",I8=(e,t)=>e?P8(e,t):"";let T8=function(){function e(t){Zt(this,e);var n;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(n=t.colors)===null||n===void 0?void 0:n.map(o=>({color:new e(o.color),percent:o.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(({color:o,percent:i})=>({color:new e(o),percent:i})),this.metaColor=new qo(this.colors[0].color.metaColor)):this.metaColor=new qo(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Qt(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return I8(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:n}=this;return n?`linear-gradient(90deg, ${n.map(o=>`${o.color.toRgbString()} ${o.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return!n||this.isGradient()!==n.isGradient()?!1:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((r,o)=>{const i=n.colors[o];return r.percent===i.percent&&r.color.equals(i.color)}):this.toHexString()===n.toHexString()}}])}();const vx=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
179
179
|
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
180
|
-
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),
|
|
180
|
+
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),M8=e=>({animationDuration:e,animationFillMode:"both"}),A8=e=>({animationDuration:e,animationFillMode:"both"}),yx=(e,t,n,r,o=!1)=>{const i=o?"&":"";return{[`
|
|
181
181
|
${i}${e}-enter,
|
|
182
182
|
${i}${e}-appear
|
|
183
|
-
`]:Object.assign(Object.assign({},
|
|
183
|
+
`]:Object.assign(Object.assign({},M8(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},A8(r)),{animationPlayState:"paused"}),[`
|
|
184
184
|
${i}${e}-enter${e}-enter-active,
|
|
185
185
|
${i}${e}-appear${e}-appear-active
|
|
186
|
-
`]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},
|
|
186
|
+
`]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},D8=new bn("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),F8=new bn("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),bx=(e,t=!1)=>{const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[yx(r,D8,F8,e.motionDurationMid,t),{[`
|
|
187
187
|
${o}${r}-enter,
|
|
188
188
|
${o}${r}-appear
|
|
189
|
-
`]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},
|
|
189
|
+
`]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},Dp=new bn("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),L8=new bn("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Cx=new bn("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),xx=new bn("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),R8=new bn("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),z8=new bn("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),j8=new bn("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),B8=new bn("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),V8=new bn("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),H8=new bn("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),k8=new bn("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),W8=new bn("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),U8={zoom:{inKeyframes:Dp,outKeyframes:L8},"zoom-big":{inKeyframes:Cx,outKeyframes:xx},"zoom-big-fast":{inKeyframes:Cx,outKeyframes:xx},"zoom-left":{inKeyframes:j8,outKeyframes:B8},"zoom-right":{inKeyframes:V8,outKeyframes:H8},"zoom-up":{inKeyframes:R8,outKeyframes:z8},"zoom-down":{inKeyframes:k8,outKeyframes:W8}},Fp=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=U8[t];return[yx(r,o,i,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
|
|
190
190
|
${r}-enter,
|
|
191
191
|
${r}-appear
|
|
192
|
-
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},XT=(e,t)=>{const{r:n,g:r,b:o,a:i}=e.toRgb(),a=new ir(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:n*.299+r*.587+o*.114>192},r0=e=>{const{paddingInline:t,onlyIconSize:n}=e;return st(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},o0=e=>{var t,n,r,o,i,a;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,c=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,u=(o=e.contentLineHeight)!==null&&o!==void 0?o:vs(s),d=(i=e.contentLineHeightSM)!==null&&i!==void 0?i:vs(l),f=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:vs(c),p=XT(new IT(e.colorBgSolid),"#fff")?"#000":"#fff",v=Ur.reduce((m,g)=>Object.assign(Object.assign({},m),{[`${g}ShadowColor`]:`0 ${fe(e.controlOutlineWidth)} 0 ${Mi(e[`${g}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},v),{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:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,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,solidTextColor:p,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*f)/2-e.lineWidth,0)})},YT=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:i,motionEaseInOut:a,marginXS:s,calc:l}=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:`${fe(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:Ym(),"> a":{color:"currentColor"},"&:not(:disabled)":lu(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"},[`&${t}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(c=>`${c} ${i} ${a}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(s).mul(-1).equal()}}}}}},i0=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),KT=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),ZT=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),QT=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Fs=(e,t,n,r,o,i,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},i0(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),JT=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},QT(e))}),eI=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Ls=(e,t,n,r)=>{const i=r&&["link","text"].includes(r)?eI:JT;return Object.assign(Object.assign({},i(e)),i0(e.componentCls,t,n))},js=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},Ls(e,r,o))}),zs=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},Ls(e,r,o))}),Rs=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),Vs=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},Ls(e,n,r))}),Fn=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},Ls(e,r,o,n))}),tI=e=>{const{componentCls:t}=e;return Ur.reduce((n,r)=>{const o=e[`${r}6`],i=e[`${r}1`],a=e[`${r}5`],s=e[`${r}2`],l=e[`${r}3`],c=e[`${r}7`];return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:o,boxShadow:e[`${r}ShadowColor`]},js(e,e.colorTextLightSolid,o,{background:a},{background:c})),zs(e,o,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),Rs(e)),Vs(e,i,{background:s},{background:l})),Fn(e,o,"link",{color:a},{color:c})),Fn(e,o,"text",{color:a,background:i},{color:c,background:l}))})},{})},nI=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},js(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),Rs(e)),Vs(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),Fs(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),Fn(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),rI=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},zs(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),Rs(e)),Vs(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),Fn(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),Fn(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),Fs(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),oI=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},js(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),zs(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Rs(e)),Vs(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),Fn(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Fn(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),Fs(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),iI=e=>Object.assign(Object.assign({},Fn(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),Fs(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),aI=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:nI(e),[`${t}-color-primary`]:rI(e),[`${t}-color-dangerous`]:oI(e),[`${t}-color-link`]:iI(e)},tI(e))},sI=e=>Object.assign(Object.assign(Object.assign(Object.assign({},zs(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Fn(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),js(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Fn(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Vu=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:i,buttonPaddingHorizontal:a,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:o,height:r,padding:`${fe(l)} ${fe(a)}`,borderRadius:i,[`&${n}-icon-only`]:{width:r,[s]:{fontSize:c}}}},{[`${n}${n}-circle${t}`]:KT(e)},{[`${n}${n}-round${t}`]:ZT(e)}]},lI=e=>{const t=st(e,{fontSize:e.contentFontSize});return Vu(t,e.componentCls)},cI=e=>{const t=st(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Vu(t,`${e.componentCls}-sm`)},uI=e=>{const t=st(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Vu(t,`${e.componentCls}-lg`)},dI=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},fI=Et("Button",e=>{const t=r0(e);return[YT(t),lI(t),cI(t),uI(t),dI(t),aI(t),sI(t),gT(t)]},o0,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function pI(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",s=["hover",o?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${a}`).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] ${a}`]:{zIndex:0}})}}function gI(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function a0(e,t={focus:!0}){const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},pI(e,r,t)),gI(n,r,t))}}function hI(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 mI(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 vI(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},hI(e,t)),mI(e.componentCls,t))}}const yI=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:o}=e,i=o(r).mul(-1).equal(),a=s=>{const l=`${t}-compact${s?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${l} + ${l}::before`]:{position:"absolute",top:s?i:0,insetInlineStart:s?0:i,backgroundColor:n,content:'""',width:s?"100%":r,height:s?r:"100%"}}};return Object.assign(Object.assign({},a()),a(!0))},bI=Qm(["Button","compact"],e=>{const t=r0(e);return[a0(t),vI(t),yI(t)]},o0);var CI=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function wI(e){if(typeof e=="object"&&e){let t=e==null?void 0:e.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const xI={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},Tt=T.forwardRef((e,t)=>{var n,r;const{loading:o=!1,prefixCls:i,color:a,variant:s,type:l,danger:c=!1,shape:u="default",size:d,styles:f,disabled:p,className:v,rootClassName:m,children:g,icon:y,iconPosition:x="start",ghost:b=!1,block:C=!1,htmlType:w="button",classNames:$,style:S={},autoInsertSpace:E,autoFocus:_}=e,P=CI(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),A=l||"default",{button:L}=T.useContext(Be),[D,O]=T.useMemo(()=>{if(a&&s)return[a,s];if(l||c){const ie=xI[A]||[];return c?["danger",ie[1]]:ie}return L!=null&&L.color&&(L!=null&&L.variant)?[L.color,L.variant]:["default","outlined"]},[l,a,s,c,L==null?void 0:L.variant,L==null?void 0:L.color]),N=D==="danger"?"dangerous":D,{getPrefixCls:I,direction:j,autoInsertSpace:z,className:F,style:R,classNames:W,styles:H}=In("button"),V=(n=E??z)!==null&&n!==void 0?n:!0,B=I("btn",i),[U,K,G]=fI(B),Z=T.useContext(Mn),J=p??Z,ee=T.useContext(Hv),q=T.useMemo(()=>wI(o),[o]),[te,Y]=T.useState(q.loading),[oe,ne]=T.useState(!1),ce=T.useRef(null),ve=Za(t,ce),pe=T.Children.count(g)===1&&!y&&!Ds(O),_e=T.useRef(!0);T.useEffect(()=>(_e.current=!1,()=>{_e.current=!0}),[]),T.useLayoutEffect(()=>{let ie=null;q.delay>0?ie=setTimeout(()=>{ie=null,Y(!0)},q.delay):Y(q.loading);function se(){ie&&(clearTimeout(ie),ie=null)}return se},[q.delay,q.loading]),T.useEffect(()=>{if(!ce.current||!V)return;const ie=ce.current.textContent||"";pe&&Du(ie)?oe||ne(!0):oe&&ne(!1)}),T.useEffect(()=>{_&&ce.current&&ce.current.focus()},[]);const xe=T.useCallback(ie=>{var se;if(te||J){ie.preventDefault();return}(se=e.onClick)===null||se===void 0||se.call(e,("href"in e,ie))},[e.onClick,te,J]);if(process.env.NODE_ENV!=="production"){const ie=Ze("Button");process.env.NODE_ENV!=="production"&&ie(!(typeof y=="string"&&y.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${y}\` at https://ant.design/components/icon`),process.env.NODE_ENV!=="production"&&ie(!(b&&Ds(O)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:Oe,compactItemClassnames:he}=As(B,j),ue={large:"lg",small:"sm",middle:void 0},Ee=or(ie=>{var se,Se;return(Se=(se=d??Oe)!==null&&se!==void 0?se:ee)!==null&&Se!==void 0?Se:ie}),Ne=Ee&&(r=ue[Ee])!==null&&r!==void 0?r:"",Ue=te?"loading":y,De=bn(P,["navigate"]),Le=re(B,K,G,{[`${B}-${u}`]:u!=="default"&&u,[`${B}-${A}`]:A,[`${B}-dangerous`]:c,[`${B}-color-${N}`]:N,[`${B}-variant-${O}`]:O,[`${B}-${Ne}`]:Ne,[`${B}-icon-only`]:!g&&g!==0&&!!Ue,[`${B}-background-ghost`]:b&&!Ds(O),[`${B}-loading`]:te,[`${B}-two-chinese-chars`]:oe&&V&&!te,[`${B}-block`]:C,[`${B}-rtl`]:j==="rtl",[`${B}-icon-end`]:x==="end"},he,v,m,F),Ge=Object.assign(Object.assign({},R),S),Te=re($==null?void 0:$.icon,W.icon),Ie=Object.assign(Object.assign({},(f==null?void 0:f.icon)||{}),H.icon||{}),Pe=y&&!te?T.createElement(Fu,{prefixCls:B,className:Te,style:Ie},y):o&&typeof o=="object"&&o.icon?T.createElement(Fu,{prefixCls:B,className:Te,style:Ie},o.icon):T.createElement(pT,{existIcon:!!y,prefixCls:B,loading:te,mount:_e.current}),le=g||g===0?fT(g,pe&&V):null;if(De.href!==void 0)return U(T.createElement("a",Object.assign({},De,{className:re(Le,{[`${B}-disabled`]:J}),href:J?void 0:De.href,style:Ge,onClick:xe,ref:ve,tabIndex:J?-1:0}),Pe,le));let me=T.createElement("button",Object.assign({},P,{type:w,className:Le,style:Ge,onClick:xe,disabled:J,ref:ve}),Pe,le,he&&T.createElement(bI,{prefixCls:B}));return Ds(O)||(me=T.createElement(Au,{component:"Button",disabled:te},me)),U(me)});Tt.Group=uT,Tt.__ANT_BUTTON=!0,process.env.NODE_ENV!=="production"&&(Tt.displayName="Button");var s0=h.createContext(null),l0=[];function SI(e,t){var n=h.useState(function(){if(!Nt())return null;var v=document.createElement("div");return process.env.NODE_ENV!=="production"&&t&&v.setAttribute("data-debug",t),v}),r=ae(n,1),o=r[0],i=h.useRef(!1),a=h.useContext(s0),s=h.useState(l0),l=ae(s,2),c=l[0],u=l[1],d=a||(i.current?void 0:function(v){u(function(m){var g=[v].concat(de(m));return g})});function f(){o.parentElement||document.body.appendChild(o),i.current=!0}function p(){var v;(v=o.parentElement)===null||v===void 0||v.removeChild(o),i.current=!1}return Ke(function(){return e?a?a(f):f():p(),p},[e]),Ke(function(){c.length&&(c.forEach(function(v){return v()}),u(l0))},[c]),[o,d]}function EI(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 o,i;if(e){var a=getComputedStyle(e);r.scrollbarColor=a.scrollbarColor,r.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",d=c?"height: ".concat(s.height,";"):"";Jn(`
|
|
192
|
+
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},q8=(e,t)=>{const{r:n,g:r,b:o,a:i}=e.toRgb(),a=new qo(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:n*.299+r*.587+o*.114>192},wx=e=>{const{paddingInline:t,onlyIconSize:n}=e;return jt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},Sx=e=>{var t,n,r,o,i,a;const l=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,u=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,d=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,f=(o=e.contentLineHeight)!==null&&o!==void 0?o:Eu(l),g=(i=e.contentLineHeightSM)!==null&&i!==void 0?i:Eu(u),p=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:Eu(d),m=q8(new T8(e.colorBgSolid),"#fff")?"#000":"#fff",b=$i.reduce((C,y)=>Object.assign(Object.assign({},C),{[`${y}ShadowColor`]:`0 ${we(e.controlOutlineWidth)} 0 ${Cl(e[`${y}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},b),{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:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,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,solidTextColor:m,contentFontSize:l,contentFontSizeSM:u,contentFontSizeLG:d,contentLineHeight:f,contentLineHeightSM:g,contentLineHeightLG:p,paddingBlock:Math.max((e.controlHeight-l*f)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-u*g)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-d*p)/2-e.lineWidth,0)})},G8=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:i,motionEaseInOut:a,marginXS:l,calc:u}=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:`${we(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:vC(),"> a":{color:"currentColor"},"&:not(:disabled)":Ou(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"},[`&${t}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(d=>`${d} ${i} ${a}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:u(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:u(l).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:u(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:u(l).mul(-1).equal()}}}}}},Ex=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),X8=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),Y8=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),K8=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Uu=(e,t,n,r,o,i,a,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},Ex(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),Z8=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},K8(e))}),Q8=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),qu=(e,t,n,r)=>{const i=r&&["link","text"].includes(r)?Q8:Z8;return Object.assign(Object.assign({},i(e)),Ex(e.componentCls,t,n))},Gu=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},qu(e,r,o))}),Xu=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},qu(e,r,o))}),Yu=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),Ku=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},qu(e,n,r))}),So=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},qu(e,r,o,n))}),J8=e=>{const{componentCls:t}=e;return $i.reduce((n,r)=>{const o=e[`${r}6`],i=e[`${r}1`],a=e[`${r}5`],l=e[`${r}2`],u=e[`${r}3`],d=e[`${r}7`];return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:o,boxShadow:e[`${r}ShadowColor`]},Gu(e,e.colorTextLightSolid,o,{background:a},{background:d})),Xu(e,o,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:d,borderColor:d,background:e.colorBgContainer})),Yu(e)),Ku(e,i,{background:l},{background:u})),So(e,o,"link",{color:a},{color:d})),So(e,o,"text",{color:a,background:i},{color:d,background:u}))})},{})},eF=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},Gu(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),Yu(e)),Ku(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),Uu(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),So(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),tF=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},Xu(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),Yu(e)),Ku(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),So(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),So(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),Uu(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),nF=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},Gu(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),Xu(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Yu(e)),Ku(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),So(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),So(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),Uu(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),rF=e=>Object.assign(Object.assign({},So(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),Uu(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),oF=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:eF(e),[`${t}-color-primary`]:tF(e),[`${t}-color-dangerous`]:nF(e),[`${t}-color-link`]:rF(e)},J8(e))},iF=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Xu(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),So(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),Gu(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),So(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Lp=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:i,buttonPaddingHorizontal:a,iconCls:l,buttonPaddingVertical:u,buttonIconOnlyFontSize:d}=e;return[{[t]:{fontSize:o,height:r,padding:`${we(u)} ${we(a)}`,borderRadius:i,[`&${n}-icon-only`]:{width:r,[l]:{fontSize:d}}}},{[`${n}${n}-circle${t}`]:X8(e)},{[`${n}${n}-round${t}`]:Y8(e)}]},aF=e=>{const t=jt(e,{fontSize:e.contentFontSize});return Lp(t,e.componentCls)},sF=e=>{const t=jt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Lp(t,`${e.componentCls}-sm`)},lF=e=>{const t=jt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Lp(t,`${e.componentCls}-lg`)},cF=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},uF=Jt("Button",e=>{const t=wx(e);return[G8(t),aF(t),sF(t),lF(t),cF(t),oF(t),iF(t),p8(t)]},Sx,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function dF(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map(u=>`&:${u} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function fF(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function $x(e,t={focus:!0}){const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},dF(e,r,t)),fF(n,r,t))}}function gF(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 pF(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 hF(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},gF(e,t)),pF(e.componentCls,t))}}const mF=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:o}=e,i=o(r).mul(-1).equal(),a=l=>{const u=`${t}-compact${l?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${u} + ${u}::before`]:{position:"absolute",top:l?i:0,insetInlineStart:l?0:i,backgroundColor:n,content:'""',width:l?"100%":r,height:l?r:"100%"}}};return Object.assign(Object.assign({},a()),a(!0))},vF=ap(["Button","compact"],e=>{const t=wx(e);return[$x(t),hF(t),mF(t)]},Sx);var yF=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function bF(e){if(typeof e=="object"&&e){let t=e==null?void 0:e.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const CF={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},cn=M.forwardRef((e,t)=>{var n,r;const{loading:o=!1,prefixCls:i,color:a,variant:l,type:u,danger:d=!1,shape:f="default",size:g,styles:p,disabled:m,className:b,rootClassName:C,children:y,icon:x,iconPosition:$="start",ghost:w=!1,block:E=!1,htmlType:S="button",classNames:O,style:_={},autoInsertSpace:P,autoFocus:T}=e,L=yF(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),z=u||"default",{button:B}=M.useContext(et),[j,I]=M.useMemo(()=>{if(a&&l)return[a,l];if(u||d){const Ce=CF[z]||[];return d?["danger",Ce[1]]:Ce}return B!=null&&B.color&&(B!=null&&B.variant)?[B.color,B.variant]:["default","outlined"]},[u,a,l,d,B==null?void 0:B.variant,B==null?void 0:B.color]),A=j==="danger"?"dangerous":j,{getPrefixCls:D,direction:V,autoInsertSpace:W,className:H,style:q,classNames:Z,styles:Y}=lr("button"),G=(n=P??W)!==null&&n!==void 0?n:!0,K=D("btn",i),[te,ie,ee]=uF(K),ae=M.useContext(Co),de=m??ae,ue=M.useContext(ax),J=M.useMemo(()=>bF(o),[o]),[fe,oe]=M.useState(J.loading),[he,me]=M.useState(!1),_e=M.useRef(null),Re=ll(t,_e),Ie=M.Children.count(y)===1&&!x&&!Wu(I),Ge=M.useRef(!0);M.useEffect(()=>(Ge.current=!1,()=>{Ge.current=!0}),[]),M.useLayoutEffect(()=>{let Ce=null;J.delay>0?Ce=setTimeout(()=>{Ce=null,oe(!0)},J.delay):oe(J.loading);function Se(){Ce&&(clearTimeout(Ce),Ce=null)}return Se},[J.delay,J.loading]),M.useEffect(()=>{if(!_e.current||!G)return;const Ce=_e.current.textContent||"";Ie&&Np(Ce)?he||me(!0):he&&me(!1)}),M.useEffect(()=>{T&&_e.current&&_e.current.focus()},[]);const De=M.useCallback(Ce=>{var Se;if(fe||de){Ce.preventDefault();return}(Se=e.onClick)===null||Se===void 0||Se.call(e,("href"in e,Ce))},[e.onClick,fe,de]);if(process.env.NODE_ENV!=="production"){const Ce=$t("Button");process.env.NODE_ENV!=="production"&&Ce(!(typeof x=="string"&&x.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${x}\` at https://ant.design/components/icon`),process.env.NODE_ENV!=="production"&&Ce(!(w&&Wu(I)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:We,compactItemClassnames:Te}=ku(K,V),Ne={large:"lg",small:"sm",middle:void 0},Be=Uo(Ce=>{var Se,ke;return(ke=(Se=g??We)!==null&&Se!==void 0?Se:ue)!==null&&ke!==void 0?ke:Ce}),Ze=Be&&(r=Ne[Be])!==null&&r!==void 0?r:"",pt=fe?"loading":x,tt=jn(L,["navigate"]),st=ge(K,ie,ee,{[`${K}-${f}`]:f!=="default"&&f,[`${K}-${z}`]:z,[`${K}-dangerous`]:d,[`${K}-color-${A}`]:A,[`${K}-variant-${I}`]:I,[`${K}-${Ze}`]:Ze,[`${K}-icon-only`]:!y&&y!==0&&!!pt,[`${K}-background-ghost`]:w&&!Wu(I),[`${K}-loading`]:fe,[`${K}-two-chinese-chars`]:he&&G&&!fe,[`${K}-block`]:E,[`${K}-rtl`]:V==="rtl",[`${K}-icon-end`]:$==="end"},Te,b,C,H),vt=Object.assign(Object.assign({},q),_),nt=ge(O==null?void 0:O.icon,Z.icon),rt=Object.assign(Object.assign({},(p==null?void 0:p.icon)||{}),Y.icon||{}),Ke=x&&!fe?M.createElement(Ip,{prefixCls:K,className:nt,style:rt},x):o&&typeof o=="object"&&o.icon?M.createElement(Ip,{prefixCls:K,className:nt,style:rt},o.icon):M.createElement(g8,{existIcon:!!x,prefixCls:K,loading:fe,mount:Ge.current}),$e=y||y===0?f8(y,Ie&&G):null;if(tt.href!==void 0)return te(M.createElement("a",Object.assign({},tt,{className:ge(st,{[`${K}-disabled`]:de}),href:de?void 0:tt.href,style:vt,onClick:De,ref:Re,tabIndex:de?-1:0}),Ke,$e));let Fe=M.createElement("button",Object.assign({},L,{type:S,className:st,style:vt,onClick:De,disabled:de,ref:Re}),Ke,$e,Te&&M.createElement(vF,{prefixCls:K}));return Wu(I)||(Fe=M.createElement(Op,{component:"Button",disabled:fe},Fe)),te(Fe)});cn.Group=u8,cn.__ANT_BUTTON=!0,process.env.NODE_ENV!=="production"&&(cn.displayName="Button");function Rp(e){return!!(e!=null&&e.then)}const zp=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:a,emitEvent:l,isSilent:u,quitOnNullishReturnValue:d,actionFn:f}=e,g=h.useRef(!1),p=h.useRef(null),[m,b]=ia(!1),C=(...$)=>{i==null||i.apply(void 0,$)};h.useEffect(()=>{let $=null;return a&&($=setTimeout(()=>{var w;(w=p.current)===null||w===void 0||w.focus({preventScroll:!0})})),()=>{$&&clearTimeout($)}},[]);const y=$=>{Rp($)&&(b(!0),$.then((...w)=>{b(!1,!0),C.apply(void 0,w),g.current=!1},w=>{if(b(!1,!0),g.current=!1,!(u!=null&&u()))return Promise.reject(w)}))},x=$=>{if(g.current)return;if(g.current=!0,!f){C();return}let w;if(l){if(w=f($),d&&!Rp(w)){g.current=!1,C($);return}}else if(f.length)w=f(i),g.current=!1;else if(w=f(),!Rp(w)){C();return}y(w)};return h.createElement(cn,Object.assign({},Pp(t),{onClick:x,loading:m,prefixCls:r},o,{ref:p}),n)},Sl=M.createContext({}),{Provider:_x}=Sl,Ox=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:i,close:a,onCancel:l,onConfirm:u}=M.useContext(Sl);return o?M.createElement(zp,{isSilent:r,actionFn:l,close:(...d)=>{a==null||a.apply(void 0,d),u==null||u(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${i}-btn`},n):null},Nx=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:i,okType:a,onConfirm:l,onOk:u}=M.useContext(Sl);return M.createElement(zp,{isSilent:n,type:a||"primary",actionFn:u,close:(...d)=>{t==null||t.apply(void 0,d),l==null||l(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${o}-btn`},i)};var Px=h.createContext(null),Ix=[];function xF(e,t){var n=h.useState(function(){if(!On())return null;var b=document.createElement("div");return process.env.NODE_ENV!=="production"&&t&&b.setAttribute("data-debug",t),b}),r=Ee(n,1),o=r[0],i=h.useRef(!1),a=h.useContext(Px),l=h.useState(Ix),u=Ee(l,2),d=u[0],f=u[1],g=a||(i.current?void 0:function(b){f(function(C){var y=[b].concat(Oe(C));return y})});function p(){o.parentElement||document.body.appendChild(o),i.current=!0}function m(){var b;(b=o.parentElement)===null||b===void 0||b.removeChild(o),i.current=!1}return Ft(function(){return e?a?a(p):p():m(),m},[e]),Ft(function(){d.length&&(d.forEach(function(b){return b()}),f(Ix))},[d]),[o,g]}function wF(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 o,i;if(e){var a=getComputedStyle(e);r.scrollbarColor=a.scrollbarColor,r.scrollbarWidth=a.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),u=parseInt(l.width,10),d=parseInt(l.height,10);try{var f=u?"width: ".concat(l.width,";"):"",g=d?"height: ".concat(l.height,";"):"";Ro(`
|
|
193
193
|
#`.concat(t,`::-webkit-scrollbar {
|
|
194
|
-
`).concat(
|
|
195
|
-
`).concat(
|
|
196
|
-
}`),t)}catch(
|
|
194
|
+
`).concat(f,`
|
|
195
|
+
`).concat(g,`
|
|
196
|
+
}`),t)}catch(b){console.error(b),o=u,i=d}}document.body.appendChild(n);var p=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,m=e&&i&&!isNaN(i)?i:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),il(t),{width:p,height:m}}function SF(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:wF(e)}function EF(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var $F="rc-util-locker-".concat(Date.now()),Tx=0;function _F(e){var t=!!e,n=h.useState(function(){return Tx+=1,"".concat($F,"_").concat(Tx)}),r=Ee(n,1),o=r[0];Ft(function(){if(t){var i=SF(document.body).width,a=EF();Ro(`
|
|
197
197
|
html body {
|
|
198
198
|
overflow-y: hidden;
|
|
199
199
|
`.concat(a?"width: calc(100% - ".concat(i,"px);"):"",`
|
|
200
|
-
}`),o)}else xi(o);return function(){xi(o)}},[t,o])}var PI=!1;function TI(e){return PI}var u0=function(t){return t===!1?!1:!Nt()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},ku=h.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer,i=e.debug,a=e.autoDestroy,s=a===void 0?!0:a,l=e.children,c=h.useState(n),u=ae(c,2),d=u[0],f=u[1],p=d||n;process.env.NODE_ENV!=="production"&&et(Nt()||!n,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),h.useEffect(function(){(s||n)&&f(n)},[n,s]);var v=h.useState(function(){return u0(o)}),m=ae(v,2),g=m[0],y=m[1];h.useEffect(function(){var L=u0(o);y(L??null)});var x=SI(p&&!g,i),b=ae(x,2),C=b[0],w=b[1],$=g??C;NI(r&&n&&Nt()&&($===C||$===document.body));var S=null;if(l&&mo(l)&&t){var E=l;S=E.ref}var _=Za(S,t);if(!p||!Nt()||g===void 0)return null;var P=$===!1||TI(),A=l;return t&&(A=h.cloneElement(l,{ref:_})),h.createElement(s0.Provider,{value:w},P?A:hr.createPortal(A,$))});process.env.NODE_ENV!=="production"&&(ku.displayName="Portal");function II(){var e=Q({},h);return e.useId}var d0=0,f0=II();const Hu=f0?function(t){var n=f0();return t||(process.env.NODE_ENV==="test"?"test-id":n)}:function(t){var n=h.useState("ssr-id"),r=ae(n,2),o=r[0],i=r[1];return h.useEffect(function(){var a=d0;d0+=1,i("rc_unique_".concat(a))},[]),t||(process.env.NODE_ENV==="test"?"test-id":o)};var Xr="RC_FORM_INTERNAL_HOOKS",Ye=function(){et(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Yr=h.createContext({getFieldValue:Ye,getFieldsValue:Ye,getFieldError:Ye,getFieldWarning:Ye,getFieldsError:Ye,isFieldsTouched:Ye,isFieldTouched:Ye,isFieldValidating:Ye,isFieldsValidating:Ye,resetFields:Ye,setFields:Ye,setFieldValue:Ye,setFieldsValue:Ye,validateFields:Ye,submit:Ye,getInternalHooks:function(){return Ye(),{dispatch:Ye,initEntityValue:Ye,registerField:Ye,useSubscribe:Ye,setInitialValues:Ye,destroyForm:Ye,setCallbacks:Ye,registerWatch:Ye,getFields:Ye,setValidateMessages:Ye,setPreserve:Ye,getInitialValue:Ye}}}),Li=h.createContext(null);function Bu(e){return e==null?[]:Array.isArray(e)?e:[e]}function MI(e){return e&&!!e._init}function Wu(){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 qu=Wu();function AI(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function DI(e,t,n){if(ts())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&Ci(o,n.prototype),o}function Uu(e){var t=typeof Map=="function"?new Map:void 0;return Uu=function(r){if(r===null||!AI(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,o)}function o(){return DI(r,arguments,kr(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Ci(o,r)},Uu(e)}var FI=/%[sdj%]/g,p0=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(p0=function(t,n){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&n.every(function(r){return typeof r=="string"})&&console.warn(t,n)});function Gu(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 Kt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var a=e.replace(FI,function(s){if(s==="%%")return"%";if(o>=i)return s;switch(s){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return s}});return a}return e}function LI(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function bt(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||LI(t)&&typeof e=="string"&&!e)}function jI(e,t,n){var r=[],o=0,i=e.length;function a(s){r.push.apply(r,de(s||[])),o++,o===i&&n(r)}e.forEach(function(s){t(s,a)})}function g0(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var s=r;r=r+1,s<o?t(e[s],i):n([])}i([])}function zI(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,de(e[n]||[]))}),t}var h0=function(e){hn(n,e);var t=Pn(n);function n(r,o){var i;return dt(this,n),i=t.call(this,"Async Validation Error"),X(we(i),"errors",void 0),X(we(i),"fields",void 0),i.errors=r,i.fields=o,i}return ft(n)}(Uu(Error));function RI(e,t,n,r,o){if(t.first){var i=new Promise(function(f,p){var v=function(y){return r(y),y.length?p(new h0(y,Gu(y))):f(o)},m=zI(e);g0(m,n,v)});return i.catch(function(f){return f}),i}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],d=new Promise(function(f,p){var v=function(g){if(u.push.apply(u,g),c++,c===l)return r(u),u.length?p(new h0(u,Gu(u))):f(o)};s.length||(r(u),f(o)),s.forEach(function(m){var g=e[m];a.indexOf(m)!==-1?g0(g,n,v):jI(g,n,v)})});return d.catch(function(f){return f}),d}function VI(e){return!!(e&&e.message!==void 0)}function kI(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function m0(e,t){return function(n){var r;return e.fullFields?r=kI(t,e.fullFields):r=t[n.field||e.fullField],VI(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function v0(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];ye(r)==="object"&&ye(e[n])==="object"?e[n]=Q(Q({},e[n]),r):e[n]=r}}return e}var Fo="enum",HI=function(t,n,r,o,i){t[Fo]=Array.isArray(t[Fo])?t[Fo]:[],t[Fo].indexOf(n)===-1&&o.push(Kt(i.messages[Fo],t.fullField,t[Fo].join(", ")))},BI=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(Kt(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||o.push(Kt(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},WI=function(t,n,r,o,i){var a=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=n,d=null,f=typeof n=="number",p=typeof n=="string",v=Array.isArray(n);if(f?d="number":p?d="string":v&&(d="array"),!d)return!1;v&&(u=n.length),p&&(u=n.replace(c,"_").length),a?u!==t.len&&o.push(Kt(i.messages[d].len,t.fullField,t.len)):s&&!l&&u<t.min?o.push(Kt(i.messages[d].min,t.fullField,t.min)):l&&!s&&u>t.max?o.push(Kt(i.messages[d].max,t.fullField,t.max)):s&&l&&(u<t.min||u>t.max)&&o.push(Kt(i.messages[d].range,t.fullField,t.min,t.max))},y0=function(t,n,r,o,i,a){t.required&&(!r.hasOwnProperty(t.field)||bt(n,a||t.type))&&o.push(Kt(i.messages.required,t.fullField))},ks;const qI=function(){if(ks)return ks;var e="[a-fA-F\\d:]",t=function($){return $&&$.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}",o=["(?:".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}|:))")],i="(?:%[0-9a-zA-Z]{1,})?",a="(?:".concat(o.join("|"),")").concat(i),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(a,"$)")),l=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(a,"$")),u=function($){return $&&$.exact?s:new RegExp("(?:".concat(t($)).concat(n).concat(t($),")|(?:").concat(t($)).concat(a).concat(t($),")"),"g")};u.v4=function(w){return w&&w.exact?l:new RegExp("".concat(t(w)).concat(n).concat(t(w)),"g")},u.v6=function(w){return w&&w.exact?c:new RegExp("".concat(t(w)).concat(a).concat(t(w)),"g")};var d="(?:(?:[a-z]+:)?//)",f="(?:\\S+(?::\\S*)?@)?",p=u.v4().source,v=u.v6().source,m="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",g="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",y="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",x="(?::\\d{2,5})?",b='(?:[/?#][^\\s"]*)?',C="(?:".concat(d,"|www\\.)").concat(f,"(?:localhost|").concat(p,"|").concat(v,"|").concat(m).concat(g).concat(y,")").concat(x).concat(b);return ks=new RegExp("(?:^".concat(C,"$)"),"i"),ks};var b0={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},ji={integer:function(t){return ji.number(t)&&parseInt(t,10)===t},float:function(t){return ji.number(t)&&!ji.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 ye(t)==="object"&&!ji.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(b0.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(qI())},hex:function(t){return typeof t=="string"&&!!t.match(b0.hex)}},UI=function(t,n,r,o,i){if(t.required&&n===void 0){y0(t,n,r,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?ji[s](n)||o.push(Kt(i.messages.types[s],t.fullField,t.type)):s&&ye(n)!==t.type&&o.push(Kt(i.messages.types[s],t.fullField,t.type))},GI=function(t,n,r,o,i){(/^\s+$/.test(n)||n==="")&&o.push(Kt(i.messages.whitespace,t.fullField))};const Me={required:y0,whitespace:GI,type:UI,range:WI,enum:HI,pattern:BI};var XI=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(bt(n)&&!t.required)return r();Me.required(t,n,o,a,i)}r(a)},YI=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();Me.required(t,n,o,a,i,"array"),n!=null&&(Me.type(t,n,o,a,i),Me.range(t,n,o,a,i))}r(a)},KI=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(bt(n)&&!t.required)return r();Me.required(t,n,o,a,i),n!==void 0&&Me.type(t,n,o,a,i)}r(a)},ZI=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(bt(n,"date")&&!t.required)return r();if(Me.required(t,n,o,a,i),!bt(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),Me.type(t,l,o,a,i),l&&Me.range(t,l.getTime(),o,a,i)}}r(a)},QI="enum",JI=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(bt(n)&&!t.required)return r();Me.required(t,n,o,a,i),n!==void 0&&Me[QI](t,n,o,a,i)}r(a)},eM=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(bt(n)&&!t.required)return r();Me.required(t,n,o,a,i),n!==void 0&&(Me.type(t,n,o,a,i),Me.range(t,n,o,a,i))}r(a)},tM=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(bt(n)&&!t.required)return r();Me.required(t,n,o,a,i),n!==void 0&&(Me.type(t,n,o,a,i),Me.range(t,n,o,a,i))}r(a)},nM=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(bt(n)&&!t.required)return r();Me.required(t,n,o,a,i),n!==void 0&&Me.type(t,n,o,a,i)}r(a)},rM=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),bt(n)&&!t.required)return r();Me.required(t,n,o,a,i),n!==void 0&&(Me.type(t,n,o,a,i),Me.range(t,n,o,a,i))}r(a)},oM=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(bt(n)&&!t.required)return r();Me.required(t,n,o,a,i),n!==void 0&&Me.type(t,n,o,a,i)}r(a)},iM=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(bt(n,"string")&&!t.required)return r();Me.required(t,n,o,a,i),bt(n,"string")||Me.pattern(t,n,o,a,i)}r(a)},aM=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(bt(n)&&!t.required)return r();Me.required(t,n,o,a,i),bt(n)||Me.type(t,n,o,a,i)}r(a)},sM=function(t,n,r,o,i){var a=[],s=Array.isArray(n)?"array":ye(n);Me.required(t,n,o,a,i,s),r(a)},lM=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(bt(n,"string")&&!t.required)return r();Me.required(t,n,o,a,i,"string"),bt(n,"string")||(Me.type(t,n,o,a,i),Me.range(t,n,o,a,i),Me.pattern(t,n,o,a,i),t.whitespace===!0&&Me.whitespace(t,n,o,a,i))}r(a)},Xu=function(t,n,r,o,i){var a=t.type,s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(bt(n,a)&&!t.required)return r();Me.required(t,n,o,s,i,a),bt(n,a)||Me.type(t,n,o,s,i)}r(s)};const zi={string:lM,method:nM,number:rM,boolean:KI,regexp:aM,integer:tM,float:eM,array:YI,object:oM,enum:JI,pattern:iM,date:ZI,url:Xu,hex:Xu,email:Xu,required:sM,any:XI};var Ri=function(){function e(t){dt(this,e),X(this,"rules",null),X(this,"_messages",qu),this.define(t)}return ft(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(ye(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(o){var i=n[o];r.rules[o]=Array.isArray(i)?i:[i]})}},{key:"messages",value:function(n){return n&&(this._messages=v0(Wu(),n)),this._messages}},{key:"validate",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=n,s=o,l=i;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,a),Promise.resolve(a);function c(v){var m=[],g={};function y(b){if(Array.isArray(b)){var C;m=(C=m).concat.apply(C,de(b))}else m.push(b)}for(var x=0;x<v.length;x++)y(v[x]);m.length?(g=Gu(m),l(m,g)):l(null,a)}if(s.messages){var u=this.messages();u===qu&&(u=Wu()),v0(u,s.messages),s.messages=u}else s.messages=this.messages();var d={},f=s.keys||Object.keys(this.rules);f.forEach(function(v){var m=r.rules[v],g=a[v];m.forEach(function(y){var x=y;typeof x.transform=="function"&&(a===n&&(a=Q({},a)),g=a[v]=x.transform(g),g!=null&&(x.type=x.type||(Array.isArray(g)?"array":ye(g)))),typeof x=="function"?x={validator:x}:x=Q({},x),x.validator=r.getValidationMethod(x),x.validator&&(x.field=v,x.fullField=x.fullField||v,x.type=r.getType(x),d[v]=d[v]||[],d[v].push({rule:x,value:g,source:a,field:v}))})});var p={};return RI(d,s,function(v,m){var g=v.rule,y=(g.type==="object"||g.type==="array")&&(ye(g.fields)==="object"||ye(g.defaultField)==="object");y=y&&(g.required||!g.required&&v.value),g.field=v.field;function x(S,E){return Q(Q({},E),{},{fullField:"".concat(g.fullField,".").concat(S),fullFields:g.fullFields?[].concat(de(g.fullFields),[S]):[S]})}function b(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],E=Array.isArray(S)?S:[S];!s.suppressWarning&&E.length&&e.warning("async-validator:",E),E.length&&g.message!==void 0&&(E=[].concat(g.message));var _=E.map(m0(g,a));if(s.first&&_.length)return p[g.field]=1,m(_);if(!y)m(_);else{if(g.required&&!v.value)return g.message!==void 0?_=[].concat(g.message).map(m0(g,a)):s.error&&(_=[s.error(g,Kt(s.messages.required,g.field))]),m(_);var P={};g.defaultField&&Object.keys(v.value).map(function(D){P[D]=g.defaultField}),P=Q(Q({},P),v.rule.fields);var A={};Object.keys(P).forEach(function(D){var O=P[D],M=Array.isArray(O)?O:[O];A[D]=M.map(x.bind(null,D))});var L=new e(A);L.messages(s.messages),v.rule.options&&(v.rule.options.messages=s.messages,v.rule.options.error=s.error),L.validate(v.value,v.rule.options||s,function(D){var O=[];_&&_.length&&O.push.apply(O,de(_)),D&&D.length&&O.push.apply(O,de(D)),m(O.length?O:null)})}}var C;if(g.asyncValidator)C=g.asyncValidator(g,v.value,b,v.source,s);else if(g.validator){try{C=g.validator(g,v.value,b,v.source,s)}catch(S){var w,$;(w=($=console).error)===null||w===void 0||w.call($,S),s.suppressValidatorError||setTimeout(function(){throw S},0),b(S.message)}C===!0?b():C===!1?b(typeof g.message=="function"?g.message(g.fullField||g.field):g.message||"".concat(g.fullField||g.field," fails")):C instanceof Array?b(C):C instanceof Error&&b(C.message)}C&&C.then&&C.then(function(){return b()},function(S){return b(S)})},function(v){c(v)},a)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!zi.hasOwnProperty(n.type))throw new Error(Kt("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),o=r.indexOf("message");return o!==-1&&r.splice(o,1),r.length===1&&r[0]==="required"?zi.required:zi[this.getType(n)]||void 0}}]),e}();X(Ri,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");zi[t]=n}),X(Ri,"warning",p0),X(Ri,"messages",qu),X(Ri,"validators",zi);var Zt="'${name}' is not a valid ${type}",C0={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:Zt,method:Zt,array:Zt,object:Zt,number:Zt,date:Zt,boolean:Zt,integer:Zt,float:Zt,regexp:Zt,email:Zt,url:Zt,hex:Zt},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}"}},w0=Ri;function cM(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 x0="CODE_LOGIC_ERROR";function Yu(e,t,n,r,o){return Ku.apply(this,arguments)}function Ku(){return Ku=Lt(ze().mark(function e(t,n,r,o,i){var a,s,l,c,u,d,f,p,v;return ze().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return a=Q({},r),delete a.ruleIndex,w0.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(y){return console.error(y),Promise.reject(x0)}}),l=null,a&&a.type==="array"&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new w0(X({},t,[a])),u=$o(C0,o.validateMessages),c.messages(u),d=[],g.prev=10,g.next=13,Promise.resolve(c.validate(X({},t,n),Q({},o)));case 13:g.next=18;break;case 15:g.prev=15,g.t0=g.catch(10),g.t0.errors&&(d=g.t0.errors.map(function(y,x){var b=y.message,C=b===x0?u.default:b;return h.isValidElement(C)?h.cloneElement(C,{key:"error_".concat(x)}):C}));case 18:if(!(!d.length&&l)){g.next=23;break}return g.next=21,Promise.all(n.map(function(y,x){return Yu("".concat(t,".").concat(x),y,l,o,i)}));case 21:return f=g.sent,g.abrupt("return",f.reduce(function(y,x){return[].concat(de(y),de(x))},[]));case 23:return p=Q(Q({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),v=d.map(function(y){return typeof y=="string"?cM(y,p):y}),g.abrupt("return",v);case 26:case"end":return g.stop()}},e,null,[[10,15]])})),Ku.apply(this,arguments)}function uM(e,t,n,r,o,i){var a=e.join("."),s=n.map(function(u,d){var f=u.validator,p=Q(Q({},u),{},{ruleIndex:d});return f&&(p.validator=function(v,m,g){var y=!1,x=function(){for(var w=arguments.length,$=new Array(w),S=0;S<w;S++)$[S]=arguments[S];Promise.resolve().then(function(){et(!y,"Your validator function has already return a promise. `callback` will be ignored."),y||g.apply(void 0,$)})},b=f(v,m,x);y=b&&typeof b.then=="function"&&typeof b.catch=="function",et(y,"`callback` is deprecated. Please return a promise instead."),y&&b.then(function(){g()}).catch(function(C){g(C||" ")})}),p}).sort(function(u,d){var f=u.warningOnly,p=u.ruleIndex,v=d.warningOnly,m=d.ruleIndex;return!!f==!!v?p-m:f?1:-1}),l;if(o===!0)l=new Promise(function(){var u=Lt(ze().mark(function d(f,p){var v,m,g;return ze().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:v=0;case 1:if(!(v<s.length)){x.next=12;break}return m=s[v],x.next=5,Yu(a,t,m,r,i);case 5:if(g=x.sent,!g.length){x.next=9;break}return p([{errors:g,rule:m}]),x.abrupt("return");case 9:v+=1,x.next=1;break;case 12:f([]);case 13:case"end":return x.stop()}},d)}));return function(d,f){return u.apply(this,arguments)}}());else{var c=s.map(function(u){return Yu(a,t,u,r,i).then(function(d){return{errors:d,rule:u}})});l=(o?fM(c):dM(c)).then(function(u){return Promise.reject(u)})}return l.catch(function(u){return u}),l}function dM(e){return Zu.apply(this,arguments)}function Zu(){return Zu=Lt(ze().mark(function e(t){return ze().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(o){var i,a=(i=[]).concat.apply(i,de(o));return a}));case 1:case"end":return r.stop()}},e)})),Zu.apply(this,arguments)}function fM(e){return Qu.apply(this,arguments)}function Qu(){return Qu=Lt(ze().mark(function e(t){var n;return ze().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return n=0,o.abrupt("return",new Promise(function(i){t.forEach(function(a){a.then(function(s){s.errors.length&&i([s]),n+=1,n===t.length&&i([])})})}));case 2:case"end":return o.stop()}},e)})),Qu.apply(this,arguments)}function pt(e){return Bu(e)}function S0(e,t){var n={};return t.forEach(function(r){var o=on(e,r);n=an(n,r,o)}),n}function Lo(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return E0(t,r,n)})}function E0(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,o){return e[o]===r})}function pM(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||ye(e)!=="object"||ye(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return de(o).every(function(i){var a=e[i],s=t[i];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function gM(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&ye(t.target)==="object"&&e in t.target?t.target[e]:t}function $0(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(de(e.slice(0,n)),[o],de(e.slice(n,t)),de(e.slice(t+1,r))):i<0?[].concat(de(e.slice(0,t)),de(e.slice(t+1,n+1)),[o],de(e.slice(n+1,r))):e}var hM=["name"],ln=[];function Ju(e,t,n,r,o,i){return typeof e=="function"?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var ed=function(e){hn(n,e);var t=Pn(n);function n(r){var o;if(dt(this,n),o=t.call(this,r),X(we(o),"state",{resetCount:0}),X(we(o),"cancelRegisterFunc",null),X(we(o),"mounted",!1),X(we(o),"touched",!1),X(we(o),"dirty",!1),X(we(o),"validatePromise",void 0),X(we(o),"prevValidating",void 0),X(we(o),"errors",ln),X(we(o),"warnings",ln),X(we(o),"cancelRegister",function(){var l=o.props,c=l.preserve,u=l.isListField,d=l.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(u,c,pt(d)),o.cancelRegisterFunc=null}),X(we(o),"getNamePath",function(){var l=o.props,c=l.name,u=l.fieldContext,d=u.prefixName,f=d===void 0?[]:d;return c!==void 0?[].concat(de(f),de(c)):[]}),X(we(o),"getRules",function(){var l=o.props,c=l.rules,u=c===void 0?[]:c,d=l.fieldContext;return u.map(function(f){return typeof f=="function"?f(d):f})}),X(we(o),"refresh",function(){o.mounted&&o.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),X(we(o),"metaCache",null),X(we(o),"triggerMetaEvent",function(l){var c=o.props.onMetaChange;if(c){var u=Q(Q({},o.getMeta()),{},{destroy:l});xc(o.metaCache,u)||c(u),o.metaCache=u}else o.metaCache=null}),X(we(o),"onStoreChange",function(l,c,u){var d=o.props,f=d.shouldUpdate,p=d.dependencies,v=p===void 0?[]:p,m=d.onReset,g=u.store,y=o.getNamePath(),x=o.getValue(l),b=o.getValue(g),C=c&&Lo(c,y);switch(u.type==="valueUpdate"&&u.source==="external"&&!xc(x,b)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=ln,o.warnings=ln,o.triggerMetaEvent()),u.type){case"reset":if(!c||C){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=ln,o.warnings=ln,o.triggerMetaEvent(),m==null||m(),o.refresh();return}break;case"remove":{if(f&&Ju(f,l,g,x,b,u)){o.reRender();return}break}case"setField":{var w=u.data;if(C){"touched"in w&&(o.touched=w.touched),"validating"in w&&!("originRCField"in w)&&(o.validatePromise=w.validating?Promise.resolve([]):null),"errors"in w&&(o.errors=w.errors||ln),"warnings"in w&&(o.warnings=w.warnings||ln),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in w&&Lo(c,y,!0)){o.reRender();return}if(f&&!y.length&&Ju(f,l,g,x,b,u)){o.reRender();return}break}case"dependenciesUpdate":{var $=v.map(pt);if($.some(function(S){return Lo(u.relatedFields,S)})){o.reRender();return}break}default:if(C||(!v.length||y.length||f)&&Ju(f,l,g,x,b,u)){o.reRender();return}break}f===!0&&o.reRender()}),X(we(o),"validateRules",function(l){var c=o.getNamePath(),u=o.getValue(),d=l||{},f=d.triggerName,p=d.validateOnly,v=p===void 0?!1:p,m=Promise.resolve().then(Lt(ze().mark(function g(){var y,x,b,C,w,$,S;return ze().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(o.mounted){_.next=2;break}return _.abrupt("return",[]);case 2:if(y=o.props,x=y.validateFirst,b=x===void 0?!1:x,C=y.messageVariables,w=y.validateDebounce,$=o.getRules(),f&&($=$.filter(function(P){return P}).filter(function(P){var A=P.validateTrigger;if(!A)return!0;var L=Bu(A);return L.includes(f)})),!(w&&f)){_.next=10;break}return _.next=8,new Promise(function(P){setTimeout(P,w)});case 8:if(o.validatePromise===m){_.next=10;break}return _.abrupt("return",[]);case 10:return S=uM(c,u,$,l,b,C),S.catch(function(P){return P}).then(function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ln;if(o.validatePromise===m){var A;o.validatePromise=null;var L=[],D=[];(A=P.forEach)===null||A===void 0||A.call(P,function(O){var M=O.rule.warningOnly,N=O.errors,I=N===void 0?ln:N;M?D.push.apply(D,de(I)):L.push.apply(L,de(I))}),o.errors=L,o.warnings=D,o.triggerMetaEvent(),o.reRender()}}),_.abrupt("return",S);case 13:case"end":return _.stop()}},g)})));return v||(o.validatePromise=m,o.dirty=!0,o.errors=ln,o.warnings=ln,o.triggerMetaEvent(),o.reRender()),m}),X(we(o),"isFieldValidating",function(){return!!o.validatePromise}),X(we(o),"isFieldTouched",function(){return o.touched}),X(we(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var l=o.props.fieldContext,c=l.getInternalHooks(Xr),u=c.getInitialValue;return u(o.getNamePath())!==void 0}),X(we(o),"getErrors",function(){return o.errors}),X(we(o),"getWarnings",function(){return o.warnings}),X(we(o),"isListField",function(){return o.props.isListField}),X(we(o),"isList",function(){return o.props.isList}),X(we(o),"isPreserve",function(){return o.props.preserve}),X(we(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var l={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return l}),X(we(o),"getOnlyChild",function(l){if(typeof l=="function"){var c=o.getMeta();return Q(Q({},o.getOnlyChild(l(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var u=Zn(l);return u.length!==1||!h.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),X(we(o),"getValue",function(l){var c=o.props.fieldContext.getFieldsValue,u=o.getNamePath();return on(l||c(!0),u)}),X(we(o),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,u=c.name,d=c.trigger,f=c.validateTrigger,p=c.getValueFromEvent,v=c.normalize,m=c.valuePropName,g=c.getValueProps,y=c.fieldContext,x=f!==void 0?f:y.validateTrigger,b=o.getNamePath(),C=y.getInternalHooks,w=y.getFieldsValue,$=C(Xr),S=$.dispatch,E=o.getValue(),_=g||function(O){return X({},m,O)},P=l[d],A=u!==void 0?_(E):{};process.env.NODE_ENV!=="production"&&A&&Object.keys(A).forEach(function(O){et(typeof A[O]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(O,")"))});var L=Q(Q({},l),A);L[d]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var O,M=arguments.length,N=new Array(M),I=0;I<M;I++)N[I]=arguments[I];p?O=p.apply(void 0,N):O=gM.apply(void 0,[m].concat(N)),v&&(O=v(O,E,w(!0))),O!==E&&S({type:"updateValue",namePath:b,value:O}),P&&P.apply(void 0,N)};var D=Bu(x||[]);return D.forEach(function(O){var M=L[O];L[O]=function(){M&&M.apply(void 0,arguments);var N=o.props.rules;N&&N.length&&S({type:"validateField",namePath:b,triggerName:O})}}),L}),r.fieldContext){var i=r.fieldContext.getInternalHooks,a=i(Xr),s=a.initEntityValue;s(we(o))}return o}return ft(n,[{key:"componentDidMount",value:function(){var o=this.props,i=o.shouldUpdate,a=o.fieldContext;if(this.mounted=!0,a){var s=a.getInternalHooks,l=s(Xr),c=l.registerField;this.cancelRegisterFunc=c(this)}i===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var o=this.state.resetCount,i=this.props.children,a=this.getOnlyChild(i),s=a.child,l=a.isFunction,c;return l?c=s:h.isValidElement(s)?c=h.cloneElement(s,this.getControlled(s.props)):(et(!s,"`children` of Field is not validate ReactElement."),c=s),h.createElement(h.Fragment,{key:o},c)}}]),n}(h.Component);X(ed,"contextType",Yr),X(ed,"defaultProps",{trigger:"onChange",valuePropName:"value"});function td(e){var t,n=e.name,r=vt(e,hM),o=h.useContext(Yr),i=h.useContext(Li),a=n!==void 0?pt(n):void 0,s=(t=r.isListField)!==null&&t!==void 0?t:!!i,l="keep";return s||(l="_".concat((a||[]).join("_"))),process.env.NODE_ENV!=="production"&&r.preserve===!1&&s&&a.length<=1&&et(!1,"`preserve` should not apply on Form.List fields."),h.createElement(ed,Ce({key:l,name:a,isListField:s},r,{fieldContext:o}))}function O0(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,i=e.validateTrigger,a=e.isListField,s=h.useContext(Yr),l=h.useContext(Li),c=h.useRef({keys:[],id:0}),u=c.current,d=h.useMemo(function(){var m=pt(s.prefixName)||[];return[].concat(de(m),de(pt(t)))},[s.prefixName,t]),f=h.useMemo(function(){return Q(Q({},s),{},{prefixName:d})},[s,d]),p=h.useMemo(function(){return{getKey:function(g){var y=d.length,x=g[y];return[u.keys[x],g.slice(y+1)]}}},[d]);if(typeof r!="function")return et(!1,"Form.List only accepts function as children."),null;var v=function(g,y,x){var b=x.source;return b==="internal"?!1:g!==y};return h.createElement(Li.Provider,{value:p},h.createElement(Yr.Provider,{value:f},h.createElement(td,{name:[],shouldUpdate:v,rules:o,validateTrigger:i,initialValue:n,isList:!0,isListField:a??!!l},function(m,g){var y=m.value,x=y===void 0?[]:y,b=m.onChange,C=s.getFieldValue,w=function(){var _=C(d||[]);return _||[]},$={add:function(_,P){var A=w();P>=0&&P<=A.length?(u.keys=[].concat(de(u.keys.slice(0,P)),[u.id],de(u.keys.slice(P))),b([].concat(de(A.slice(0,P)),[_],de(A.slice(P))))):(process.env.NODE_ENV!=="production"&&(P<0||P>A.length)&&et(!1,"The second parameter of the add function should be a valid positive number."),u.keys=[].concat(de(u.keys),[u.id]),b([].concat(de(A),[_]))),u.id+=1},remove:function(_){var P=w(),A=new Set(Array.isArray(_)?_:[_]);A.size<=0||(u.keys=u.keys.filter(function(L,D){return!A.has(D)}),b(P.filter(function(L,D){return!A.has(D)})))},move:function(_,P){if(_!==P){var A=w();_<0||_>=A.length||P<0||P>=A.length||(u.keys=$0(u.keys,_,P),b($0(A,_,P)))}}},S=x||[];return Array.isArray(S)||(S=[],process.env.NODE_ENV!=="production"&&et(!1,"Current value of '".concat(d.join(" > "),"' is not an array type."))),r(S.map(function(E,_){var P=u.keys[_];return P===void 0&&(u.keys[_]=u.id,P=u.keys[_],u.id+=1),{name:_,key:P,isListField:!0}}),$,g)})))}function mM(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,i){e.forEach(function(a,s){a.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&i(r),o(r))})})}):Promise.resolve([])}var _0="__@field_split__";function nd(e){return e.map(function(t){return"".concat(ye(t),":").concat(t)}).join(_0)}var jo=function(){function e(){dt(this,e),X(this,"kvs",new Map)}return ft(e,[{key:"set",value:function(n,r){this.kvs.set(nd(n),r)}},{key:"get",value:function(n){return this.kvs.get(nd(n))}},{key:"update",value:function(n,r){var o=this.get(n),i=r(o);i?this.set(n,i):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(nd(n))}},{key:"map",value:function(n){return de(this.kvs.entries()).map(function(r){var o=ae(r,2),i=o[0],a=o[1],s=i.split(_0);return n({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=ae(c,3),d=u[1],f=u[2];return d==="number"?Number(f):f}),value:a})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,i=r.value;return n[o.join(".")]=i,null}),n}}]),e}(),vM=["name"],yM=ft(function e(t){var n=this;dt(this,e),X(this,"formHooked",!1),X(this,"forceRootUpdate",void 0),X(this,"subscribable",!0),X(this,"store",{}),X(this,"fieldEntities",[]),X(this,"initialValues",{}),X(this,"callbacks",{}),X(this,"validateMessages",null),X(this,"preserve",null),X(this,"lastValidatePromise",null),X(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}}),X(this,"getInternalHooks",function(r){return r===Xr?(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}):(et(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),X(this,"useSubscribe",function(r){n.subscribable=r}),X(this,"prevWithoutPreserves",null),X(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var i,a=$o(r,n.store);(i=n.prevWithoutPreserves)===null||i===void 0||i.map(function(s){var l=s.key;a=an(a,l,on(r,l))}),n.prevWithoutPreserves=null,n.updateStore(a)}}),X(this,"destroyForm",function(r){if(r)n.updateStore({});else{var o=new jo;n.getFieldEntities(!0).forEach(function(i){n.isMergedPreserve(i.isPreserve())||o.set(i.getNamePath(),!0)}),n.prevWithoutPreserves=o}}),X(this,"getInitialValue",function(r){var o=on(n.initialValues,r);return r.length?$o(o):o}),X(this,"setCallbacks",function(r){n.callbacks=r}),X(this,"setValidateMessages",function(r){n.validateMessages=r}),X(this,"setPreserve",function(r){n.preserve=r}),X(this,"watchList",[]),X(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),X(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),i=n.getFieldsValue(!0);n.watchList.forEach(function(a){a(o,i,r)})}}),X(this,"timeoutId",null),X(this,"warningUnhooked",function(){process.env.NODE_ENV!=="production"&&!n.timeoutId&&typeof window<"u"&&(n.timeoutId=setTimeout(function(){n.timeoutId=null,n.formHooked||et(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),X(this,"updateStore",function(r){n.store=r}),X(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(o){return o.getNamePath().length}):n.fieldEntities}),X(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new jo;return n.getFieldEntities(r).forEach(function(i){var a=i.getNamePath();o.set(a,i)}),o}),X(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(i){var a=pt(i);return o.get(a)||{INVALIDATE_NAME_PATH:pt(i)}})}),X(this,"getFieldsValue",function(r,o){n.warningUnhooked();var i,a,s;if(r===!0||Array.isArray(r)?(i=r,a=o):r&&ye(r)==="object"&&(s=r.strict,a=r.filter),i===!0&&!a)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),c=[];return l.forEach(function(u){var d,f,p="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var v,m;if((v=(m=u).isList)!==null&&v!==void 0&&v.call(m))return}else if(!i&&(d=(f=u).isListField)!==null&&d!==void 0&&d.call(f))return;if(!a)c.push(p);else{var g="getMeta"in u?u.getMeta():null;a(g)&&c.push(p)}}),S0(n.store,c.map(pt))}),X(this,"getFieldValue",function(r){n.warningUnhooked();var o=pt(r);return on(n.store,o)}),X(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(i,a){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:pt(r[a]),errors:[],warnings:[]}})}),X(this,"getFieldError",function(r){n.warningUnhooked();var o=pt(r),i=n.getFieldsError([o])[0];return i.errors}),X(this,"getFieldWarning",function(r){n.warningUnhooked();var o=pt(r),i=n.getFieldsError([o])[0];return i.warnings}),X(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o[0],s=o[1],l,c=!1;o.length===0?l=null:o.length===1?Array.isArray(a)?(l=a.map(pt),c=!1):(l=null,c=a):(l=a.map(pt),c=s);var u=n.getFieldEntities(!0),d=function(g){return g.isFieldTouched()};if(!l)return c?u.every(function(m){return d(m)||m.isList()}):u.some(d);var f=new jo;l.forEach(function(m){f.set(m,[])}),u.forEach(function(m){var g=m.getNamePath();l.forEach(function(y){y.every(function(x,b){return g[b]===x})&&f.update(y,function(x){return[].concat(de(x),[m])})})});var p=function(g){return g.some(d)},v=f.map(function(m){var g=m.value;return g});return c?v.every(p):v.some(p)}),X(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),X(this,"isFieldsValidating",function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(a){return a.isFieldValidating()});var i=r.map(pt);return o.some(function(a){var s=a.getNamePath();return Lo(i,s)&&a.isFieldValidating()})}),X(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),X(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new jo,i=n.getFieldEntities(!0);i.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var d=o.get(u)||new Set;d.add({entity:l,value:c}),o.set(u,d)}});var a=function(c){c.forEach(function(u){var d=u.props.initialValue;if(d!==void 0){var f=u.getNamePath(),p=n.getInitialValue(f);if(p!==void 0)et(!1,"Form already set 'initialValues' with path '".concat(f.join("."),"'. Field can not overwrite it."));else{var v=o.get(f);if(v&&v.size>1)et(!1,"Multiple Field with path '".concat(f.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(v){var m=n.getFieldValue(f),g=u.isListField();!g&&(!r.skipExist||m===void 0)&&n.updateStore(an(n.store,f,de(v)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(l){var c=o.get(l);if(c){var u;(u=s).push.apply(u,de(de(c).map(function(d){return d.entity})))}})):s=i,a(s)}),X(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore($o(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var i=r.map(pt);i.forEach(function(a){var s=n.getInitialValue(a);n.updateStore(an(n.store,a,s))}),n.resetWithFieldInitialValue({namePathList:i}),n.notifyObservers(o,i,{type:"reset"}),n.notifyWatch(i)}),X(this,"setFields",function(r){n.warningUnhooked();var o=n.store,i=[];r.forEach(function(a){var s=a.name,l=vt(a,vM),c=pt(s);i.push(c),"value"in l&&n.updateStore(an(n.store,c,l.value)),n.notifyObservers(o,[c],{type:"setField",data:a})}),n.notifyWatch(i)}),X(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(i){var a=i.getNamePath(),s=i.getMeta(),l=Q(Q({},s),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return o}),X(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var i=r.getNamePath(),a=on(n.store,i);a===void 0&&n.updateStore(an(n.store,i,o))}}),X(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),X(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var i=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(i,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(d){return d!==r}),!n.isMergedPreserve(s)&&(!a||l.length>1)){var c=a?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==c&&n.fieldEntities.every(function(d){return!E0(d.getNamePath(),o)})){var u=n.store;n.updateStore(an(u,o,c,!0)),n.notifyObservers(u,[o],{type:"remove"}),n.triggerDependenciesUpdate(u,o)}}n.notifyWatch([o])}}),X(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,i=r.value;n.updateValue(o,i);break}case"validateField":{var a=r.namePath,s=r.triggerName;n.validateFields([a],{triggerName:s});break}}}),X(this,"notifyObservers",function(r,o,i){if(n.subscribable){var a=Q(Q({},i),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,o,a)})}else n.forceRootUpdate()}),X(this,"triggerDependenciesUpdate",function(r,o){var i=n.getDependencyChildrenFields(o);return i.length&&n.validateFields(i),n.notifyObservers(r,i,{type:"dependenciesUpdate",relatedFields:[o].concat(de(i))}),i}),X(this,"updateValue",function(r,o){var i=pt(r),a=n.store;n.updateStore(an(n.store,i,o)),n.notifyObservers(a,[i],{type:"valueUpdate",source:"internal"}),n.notifyWatch([i]);var s=n.triggerDependenciesUpdate(a,i),l=n.callbacks.onValuesChange;if(l){var c=S0(n.store,[i]);l(c,n.getFieldsValue())}n.triggerOnFieldsChange([i].concat(de(s)))}),X(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var i=$o(n.store,r);n.updateStore(i)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),X(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o,errors:[],warnings:[]}])}),X(this,"getDependencyChildrenFields",function(r){var o=new Set,i=[],a=new jo;n.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var d=pt(u);a.update(d,function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return f.add(l),f})})});var s=function l(c){var u=a.get(c)||new Set;u.forEach(function(d){if(!o.has(d)){o.add(d);var f=d.getNamePath();d.isFieldDirty()&&f.length&&(i.push(f),l(f))}})};return s(r),i}),X(this,"triggerOnFieldsChange",function(r,o){var i=n.callbacks.onFieldsChange;if(i){var a=n.getFields();if(o){var s=new jo;o.forEach(function(c){var u=c.name,d=c.errors;s.set(u,d)}),a.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=a.filter(function(c){var u=c.name;return Lo(r,u)});l.length&&i(l,a)}}),X(this,"validateFields",function(r,o){n.warningUnhooked();var i,a;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(i=r,a=o):a=r;var s=!!i,l=s?i.map(pt):[],c=[],u=String(Date.now()),d=new Set,f=a||{},p=f.recursive,v=f.dirty;n.getFieldEntities(!0).forEach(function(x){if(s||l.push(x.getNamePath()),!(!x.props.rules||!x.props.rules.length)&&!(v&&!x.isFieldDirty())){var b=x.getNamePath();if(d.add(b.join(u)),!s||Lo(l,b,p)){var C=x.validateRules(Q({validateMessages:Q(Q({},C0),n.validateMessages)},a));c.push(C.then(function(){return{name:b,errors:[],warnings:[]}}).catch(function(w){var $,S=[],E=[];return($=w.forEach)===null||$===void 0||$.call(w,function(_){var P=_.rule.warningOnly,A=_.errors;P?E.push.apply(E,de(A)):S.push.apply(S,de(A))}),S.length?Promise.reject({name:b,errors:S,warnings:E}):{name:b,errors:S,warnings:E}}))}}});var m=mM(c);n.lastValidatePromise=m,m.catch(function(x){return x}).then(function(x){var b=x.map(function(C){var w=C.name;return w});n.notifyObservers(n.store,b,{type:"validateFinish"}),n.triggerOnFieldsChange(b,x)});var g=m.then(function(){return n.lastValidatePromise===m?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(x){var b=x.filter(function(C){return C&&C.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:b,outOfDate:n.lastValidatePromise!==m})});g.catch(function(x){return x});var y=l.filter(function(x){return d.has(x.join(u))});return n.triggerOnFieldsChange(y),g}),X(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch(i){console.error(i)}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})}),this.forceRootUpdate=t});function rd(e){var t=h.useRef(),n=h.useState({}),r=ae(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var i=function(){o({})},a=new yM(i);t.current=a.getForm()}return[t.current]}var od=h.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),N0=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,i=t.children,a=h.useContext(od),s=h.useRef({});return h.createElement(od.Provider,{value:Q(Q({},a),{},{validateMessages:Q(Q({},a.validateMessages),n),triggerFormChange:function(c,u){r&&r(c,{changedFields:u,forms:s.current}),a.triggerFormChange(c,u)},triggerFormFinish:function(c,u){o&&o(c,{values:u,forms:s.current}),a.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(s.current=Q(Q({},s.current),{},X({},c,u))),a.registerForm(c,u)},unregisterForm:function(c){var u=Q({},s.current);delete u[c],s.current=u,a.unregisterForm(c)}})},i)},bM=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],CM=function(t,n){var r=t.name,o=t.initialValues,i=t.fields,a=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,d=t.validateMessages,f=t.validateTrigger,p=f===void 0?"onChange":f,v=t.onValuesChange,m=t.onFieldsChange,g=t.onFinish,y=t.onFinishFailed,x=t.clearOnDestroy,b=vt(t,bM),C=h.useRef(null),w=h.useContext(od),$=rd(a),S=ae($,1),E=S[0],_=E.getInternalHooks(Xr),P=_.useSubscribe,A=_.setInitialValues,L=_.setCallbacks,D=_.setValidateMessages,O=_.setPreserve,M=_.destroyForm;h.useImperativeHandle(n,function(){return Q(Q({},E),{},{nativeElement:C.current})}),h.useEffect(function(){return w.registerForm(r,E),function(){w.unregisterForm(r)}},[w,E,r]),D(Q(Q({},w.validateMessages),d)),L({onValuesChange:v,onFieldsChange:function(V){if(w.triggerFormChange(r,V),m){for(var B=arguments.length,U=new Array(B>1?B-1:0),K=1;K<B;K++)U[K-1]=arguments[K];m.apply(void 0,[V].concat(U))}},onFinish:function(V){w.triggerFormFinish(r,V),g&&g(V)},onFinishFailed:y}),O(s);var N=h.useRef(null);A(o,!N.current),N.current||(N.current=!0),h.useEffect(function(){return function(){return M(x)}},[]);var I,j=typeof l=="function";if(j){var z=E.getFieldsValue(!0);I=l(z,E)}else I=l;P(!j);var F=h.useRef();h.useEffect(function(){pM(F.current||[],i||[])||E.setFields(i||[]),F.current=i},[i,E]);var R=h.useMemo(function(){return Q(Q({},E),{},{validateTrigger:p})},[E,p]),W=h.createElement(Li.Provider,{value:null},h.createElement(Yr.Provider,{value:R},I));return u===!1?W:h.createElement(u,Ce({},b,{ref:C,onSubmit:function(V){V.preventDefault(),V.stopPropagation(),E.submit()},onReset:function(V){var B;V.preventDefault(),E.resetFields(),(B=b.onReset)===null||B===void 0||B.call(b,V)}}),W)};function P0(e){try{return JSON.stringify(e)}catch{return Math.random()}}var wM=process.env.NODE_ENV!=="production"?function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__"),n=T.useRef(t);et(n.current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function T0(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=o===void 0?{}:o,a=MI(i)?{form:i}:i,s=a.form,l=T.useState(),c=ae(l,2),u=c[0],d=c[1],f=T.useMemo(function(){return P0(u)},[u]),p=T.useRef(f);p.current=f;var v=T.useContext(Yr),m=s||v,g=m&&m._init;process.env.NODE_ENV!=="production"&&et(t.length===2?s?g:!0:g,"useWatch requires a form instance since it can not auto detect from context.");var y=pt(r),x=T.useRef(y);return x.current=y,wM(y),T.useEffect(function(){if(g){var b=m.getFieldsValue,C=m.getInternalHooks,w=C(Xr),$=w.registerWatch,S=function(A,L){var D=a.preserve?L:A;return typeof r=="function"?r(D):on(D,x.current)},E=$(function(P,A){var L=S(P,A),D=P0(L);p.current!==D&&(p.current=D,d(L))}),_=S(b(),b(!0));return u!==_&&d(_),E}},[g]),u}var xM=h.forwardRef(CM),zo=xM;zo.FormProvider=N0,zo.Field=td,zo.List=O0,zo.useForm=rd,zo.useWatch=T0;const ar=h.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),I0=h.createContext(null),M0=e=>{const t=bn(e,["prefixCls"]);return h.createElement(N0,Object.assign({},t))},id=h.createContext({prefixCls:""}),Ht=h.createContext({});process.env.NODE_ENV!=="production"&&(Ht.displayName="FormItemInputContext");const SM=({children:e,status:t,override:n})=>{const r=h.useContext(Ht),o=h.useMemo(()=>{const i=Object.assign({},r);return n&&delete i.isFormItemInput,t&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[t,n,r]);return h.createElement(Ht.Provider,{value:o},e)},A0=h.createContext(void 0),ad=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let o=r;return n&&(o=T.createElement(SM,{override:!0,status:!0},o)),t&&(o=T.createElement(aT,null,o)),o};var EM=function(t){if(Nt()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(o){return o in r.style})}return!1};function D0(e,t){return EM(e)}const $M=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"}}}},OM=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},_M=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,i={};for(let a=o;a>=0;a--)a===0?(i[`${r}${t}-${a}`]={display:"none"},i[`${r}-push-${a}`]={insetInlineStart:"auto"},i[`${r}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-push-${a}`]={insetInlineStart:"auto"},i[`${r}${t}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-offset-${a}`]={marginInlineStart:0},i[`${r}${t}-order-${a}`]={order:0}):(i[`${r}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/o*100}%`,maxWidth:`${a/o*100}%`}],i[`${r}${t}-push-${a}`]={insetInlineStart:`${a/o*100}%`},i[`${r}${t}-pull-${a}`]={insetInlineEnd:`${a/o*100}%`},i[`${r}${t}-offset-${a}`]={marginInlineStart:`${a/o*100}%`},i[`${r}${t}-order-${a}`]={order:a});return i[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},i},sd=(e,t)=>_M(e,t),NM=(e,t,n)=>({[`@media (min-width: ${fe(t)})`]:Object.assign({},sd(e,n))}),PM=()=>({}),TM=()=>({}),IM=Et("Grid",$M,PM),MM=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),AM=Et("Grid",e=>{const t=st(e,{gridColumns:24}),n=MM(t);return delete n.xs,[OM(t),sd(t,""),sd(t,"-xs"),Object.keys(n).map(r=>NM(t,n[r],`-${r}`)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]},TM),DM=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))};function FM(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,s=i.content,l=o.x,c=l===void 0?0:l,u=o.y,d=u===void 0?0:u,f=h.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(n.autoArrow!==!1){var v=n.points[0],m=n.points[1],g=v[0],y=v[1],x=m[0],b=m[1];g===x||!["t","b"].includes(g)?p.top=d:g==="t"?p.top=0:p.bottom=0,y===b||!["l","r"].includes(y)?p.left=c:y==="l"?p.left=0:p.right=0}return h.createElement("div",{ref:f,className:re("".concat(t,"-arrow"),a),style:p},s)}function LM(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?h.createElement(Dn,Ce({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var s=a.className;return h.createElement("div",{style:{zIndex:r},className:re("".concat(t,"-mask"),s)})}):null}var F0=h.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});process.env.NODE_ENV!=="production"&&(F0.displayName="PopupContent");var L0=h.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,a=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,d=e.onClick,f=e.mask,p=e.arrow,v=e.arrowPos,m=e.align,g=e.motion,y=e.maskMotion,x=e.forceRender,b=e.getPopupContainer,C=e.autoDestroy,w=e.portal,$=e.zIndex,S=e.onMouseEnter,E=e.onMouseLeave,_=e.onPointerEnter,P=e.onPointerDownCapture,A=e.ready,L=e.offsetX,D=e.offsetY,O=e.offsetR,M=e.offsetB,N=e.onAlign,I=e.onPrepare,j=e.stretch,z=e.targetWidth,F=e.targetHeight,R=typeof n=="function"?n():n,W=l||c,H=(b==null?void 0:b.length)>0,V=h.useState(!b||!H),B=ae(V,2),U=B[0],K=B[1];if(Ke(function(){!U&&H&&a&&K(!0)},[U,H,a]),!U)return null;var G="auto",Z={left:"-1000vw",top:"-1000vh",right:G,bottom:G};if(A||!l){var J,ee=m.points,q=m.dynamicInset||((J=m._experimental)===null||J===void 0?void 0:J.dynamicInset),te=q&&ee[0][1]==="r",Y=q&&ee[0][0]==="b";te?(Z.right=O,Z.left=G):(Z.left=L,Z.right=G),Y?(Z.bottom=M,Z.top=G):(Z.top=D,Z.bottom=G)}var oe={};return j&&(j.includes("height")&&F?oe.height=F:j.includes("minHeight")&&F&&(oe.minHeight=F),j.includes("width")&&z?oe.width=z:j.includes("minWidth")&&z&&(oe.minWidth=z)),l||(oe.pointerEvents="none"),h.createElement(w,{open:x||W,getContainer:b&&function(){return b(a)},autoDestroy:C},h.createElement(LM,{prefixCls:o,open:l,zIndex:$,mask:f,motion:y}),h.createElement(yo,{onResize:N,disabled:!l},function(ne){return h.createElement(Dn,Ce({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:x,leavedClassName:"".concat(o,"-hidden")},g,{onAppearPrepare:I,onEnterPrepare:I,visible:l,onVisibleChanged:function(ve){var pe;g==null||(pe=g.onVisibleChanged)===null||pe===void 0||pe.call(g,ve),s(ve)}}),function(ce,ve){var pe=ce.className,_e=ce.style,xe=re(o,pe,r);return h.createElement("div",{ref:kt(ne,t,ve),className:xe,style:Q(Q(Q(Q({"--arrow-x":"".concat(v.x||0,"px"),"--arrow-y":"".concat(v.y||0,"px")},Z),oe),_e),{},{boxSizing:"border-box",zIndex:$},i),onMouseEnter:S,onMouseLeave:E,onPointerEnter:_,onClick:d,onPointerDownCapture:P},p&&h.createElement(FM,{prefixCls:o,arrow:p,arrowPos:v,align:m}),h.createElement(F0,{cache:!l&&!u},R))})}))});process.env.NODE_ENV!=="production"&&(L0.displayName="Popup");var j0=h.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=mo(n),i=h.useCallback(function(s){hc(t,r?r(s):s)},[r]),a=Za(i,bi(n));return o?h.cloneElement(n,{ref:a}):n});process.env.NODE_ENV!=="production"&&(j0.displayName="TriggerWrapper");var z0=h.createContext(null);function R0(e){return e?Array.isArray(e)?e:[e]:[]}function jM(e,t,n,r){return h.useMemo(function(){var o=R0(n??t),i=R0(r??t),a=new Set(o),s=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,t,n,r])}function zM(){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 RM(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s,l=i[a];if(zM((s=e[l])===null||s===void 0?void 0:s.points,o,r))return"".concat(t,"-placement-").concat(l)}return""}function V0(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Vi(e){return e.ownerDocument.defaultView}function ld(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=Vi(n).getComputedStyle(n),i=o.overflowX,a=o.overflowY,s=o.overflow;[i,a,s].some(function(l){return r.includes(l)})&&t.push(n),n=n.parentElement}return t}function ki(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Hi(e){return ki(parseFloat(e),0)}function k0(e,t){var n=Q({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=Vi(r).getComputedStyle(r),i=o.overflow,a=o.overflowClipMargin,s=o.borderTopWidth,l=o.borderBottomWidth,c=o.borderLeftWidth,u=o.borderRightWidth,d=r.getBoundingClientRect(),f=r.offsetHeight,p=r.clientHeight,v=r.offsetWidth,m=r.clientWidth,g=Hi(s),y=Hi(l),x=Hi(c),b=Hi(u),C=ki(Math.round(d.width/v*1e3)/1e3),w=ki(Math.round(d.height/f*1e3)/1e3),$=(v-m-x-b)*C,S=(f-p-g-y)*w,E=g*w,_=y*w,P=x*C,A=b*C,L=0,D=0;if(i==="clip"){var O=Hi(a);L=O*C,D=O*w}var M=d.x+P-L,N=d.y+E-D,I=M+d.width+2*L-P-A-$,j=N+d.height+2*D-E-_-S;n.left=Math.max(n.left,M),n.top=Math.max(n.top,N),n.right=Math.min(n.right,I),n.bottom=Math.min(n.bottom,j)}}),n}function H0(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 B0(e,t){var n=t||[],r=ae(n,2),o=r[0],i=r[1];return[H0(e.width,o),H0(e.height,i)]}function W0(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Ro(e,t){var n=t[0],r=t[1],o,i;return n==="t"?i=e.y:n==="b"?i=e.y+e.height:i=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:i}}function Er(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,o){return o===t?n[r]||"c":r}).join("")}function VM(e,t,n,r,o,i,a){var s=h.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),l=ae(s,2),c=l[0],u=l[1],d=h.useRef(0),f=h.useMemo(function(){return t?ld(t):[]},[t]),p=h.useRef({}),v=function(){p.current={}};e||v();var m=wt(function(){if(t&&n&&e){let un=function(aa,gr){var to=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ee,vl=W.x+aa,yl=W.y+gr,af=vl+Y,sf=yl+te,ge=Math.max(vl,to.left),$e=Math.max(yl,to.top),ot=Math.min(af,to.right),ht=Math.min(sf,to.bottom);return Math.max(0,(ot-ge)*(ht-$e))},Ko=function(){Rt=W.y+Re,en=Rt+te,En=W.x+Fe,tn=En+Y};var x,b,C,w,$=t,S=$.ownerDocument,E=Vi($),_=E.getComputedStyle($),P=_.position,A=$.style.left,L=$.style.top,D=$.style.right,O=$.style.bottom,M=$.style.overflow,N=Q(Q({},o[r]),i),I=S.createElement("div");(x=$.parentElement)===null||x===void 0||x.appendChild(I),I.style.left="".concat($.offsetLeft,"px"),I.style.top="".concat($.offsetTop,"px"),I.style.position=P,I.style.height="".concat($.offsetHeight,"px"),I.style.width="".concat($.offsetWidth,"px"),$.style.left="0",$.style.top="0",$.style.right="auto",$.style.bottom="auto",$.style.overflow="hidden";var j;if(Array.isArray(n))j={x:n[0],y:n[1],width:0,height:0};else{var z,F,R=n.getBoundingClientRect();R.x=(z=R.x)!==null&&z!==void 0?z:R.left,R.y=(F=R.y)!==null&&F!==void 0?F:R.top,j={x:R.x,y:R.y,width:R.width,height:R.height}}var W=$.getBoundingClientRect(),H=E.getComputedStyle($),V=H.height,B=H.width;W.x=(b=W.x)!==null&&b!==void 0?b:W.left,W.y=(C=W.y)!==null&&C!==void 0?C:W.top;var U=S.documentElement,K=U.clientWidth,G=U.clientHeight,Z=U.scrollWidth,J=U.scrollHeight,ee=U.scrollTop,q=U.scrollLeft,te=W.height,Y=W.width,oe=j.height,ne=j.width,ce={left:0,top:0,right:K,bottom:G},ve={left:-q,top:-ee,right:Z-q,bottom:J-ee},pe=N.htmlRegion,_e="visible",xe="visibleFirst";pe!=="scroll"&&pe!==xe&&(pe=_e);var Oe=pe===xe,he=k0(ve,f),ue=k0(ce,f),Ee=pe===_e?ue:he,Ne=Oe?ue:Ee;$.style.left="auto",$.style.top="auto",$.style.right="0",$.style.bottom="0";var Ue=$.getBoundingClientRect();$.style.left=A,$.style.top=L,$.style.right=D,$.style.bottom=O,$.style.overflow=M,(w=$.parentElement)===null||w===void 0||w.removeChild(I);var De=ki(Math.round(Y/parseFloat(B)*1e3)/1e3),Le=ki(Math.round(te/parseFloat(V)*1e3)/1e3);if(De===0||Le===0||yi(n)&&!Pu(n))return;var Ge=N.offset,Te=N.targetOffset,Ie=B0(W,Ge),Pe=ae(Ie,2),le=Pe[0],me=Pe[1],ie=B0(j,Te),se=ae(ie,2),Se=se[0],Qe=se[1];j.x-=Se,j.y-=Qe;var Ot=N.points||[],jt=ae(Ot,2),zt=jt[0],sr=jt[1],Bt=W0(sr),lt=W0(zt),ct=Ro(j,Bt),xn=Ro(W,lt),xt=Q({},N),Fe=ct.x-xn.x+le,Re=ct.y-xn.y+me,It=un(Fe,Re),Sn=un(Fe,Re,ue),Ve=Ro(j,["t","l"]),lr=Ro(W,["t","l"]),cr=Ro(j,["b","r"]),Xe=Ro(W,["b","r"]),Je=N.overflow||{},Mt=Je.adjustX,_t=Je.adjustY,Jt=Je.shiftX,Rn=Je.shiftY,Vn=function(gr){return typeof gr=="boolean"?gr:gr>=0},Rt,en,En,tn;Ko();var At=Vn(_t),Dt=lt[0]===Bt[0];if(At&<[0]==="t"&&(en>Ne.bottom||p.current.bt)){var ur=Re;Dt?ur-=te-oe:ur=Ve.y-Xe.y-me;var Zr=un(Fe,ur),ea=un(Fe,ur,ue);Zr>It||Zr===It&&(!Oe||ea>=Sn)?(p.current.bt=!0,Re=ur,me=-me,xt.points=[Er(lt,0),Er(Bt,0)]):p.current.bt=!1}if(At&<[0]==="b"&&(Rt<Ne.top||p.current.tb)){var dr=Re;Dt?dr+=te-oe:dr=cr.y-lr.y-me;var qo=un(Fe,dr),ta=un(Fe,dr,ue);qo>It||qo===It&&(!Oe||ta>=Sn)?(p.current.tb=!0,Re=dr,me=-me,xt.points=[Er(lt,0),Er(Bt,0)]):p.current.tb=!1}var Uo=Vn(Mt),Go=lt[1]===Bt[1];if(Uo&<[1]==="l"&&(tn>Ne.right||p.current.rl)){var fr=Fe;Go?fr-=Y-ne:fr=Ve.x-Xe.x-le;var kn=un(fr,Re),Qr=un(fr,Re,ue);kn>It||kn===It&&(!Oe||Qr>=Sn)?(p.current.rl=!0,Fe=fr,le=-le,xt.points=[Er(lt,1),Er(Bt,1)]):p.current.rl=!1}if(Uo&<[1]==="r"&&(En<Ne.left||p.current.lr)){var pr=Fe;Go?pr+=Y-ne:pr=cr.x-lr.x-le;var Jr=un(pr,Re),Ir=un(pr,Re,ue);Jr>It||Jr===It&&(!Oe||Ir>=Sn)?(p.current.lr=!0,Fe=pr,le=-le,xt.points=[Er(lt,1),Er(Bt,1)]):p.current.lr=!1}Ko();var nn=Jt===!0?0:Jt;typeof nn=="number"&&(En<ue.left&&(Fe-=En-ue.left-le,j.x+ne<ue.left+nn&&(Fe+=j.x-ue.left+ne-nn)),tn>ue.right&&(Fe-=tn-ue.right-le,j.x>ue.right-nn&&(Fe+=j.x-ue.right+nn)));var Hn=Rn===!0?0:Rn;typeof Hn=="number"&&(Rt<ue.top&&(Re-=Rt-ue.top-me,j.y+oe<ue.top+Hn&&(Re+=j.y-ue.top+oe-Hn)),en>ue.bottom&&(Re-=en-ue.bottom-me,j.y>ue.bottom-Hn&&(Re+=j.y-ue.bottom+Hn)));var Bn=W.x+Fe,Wn=Bn+Y,qn=W.y+Re,na=qn+te,Xo=j.x,Yo=Xo+ne,Mr=j.y,ra=Mr+oe,oa=Math.max(Bn,Xo),eo=Math.min(Wn,Yo),Jd=(oa+eo)/2,ef=Jd-Bn,ml=Math.max(qn,Mr),tf=Math.min(na,ra),nf=(ml+tf)/2,rf=nf-qn;a==null||a(t,xt);var Un=Ue.right-W.x-(Fe+W.width),ia=Ue.bottom-W.y-(Re+W.height);De===1&&(Fe=Math.round(Fe),Un=Math.round(Un)),Le===1&&(Re=Math.round(Re),ia=Math.round(ia));var of={ready:!0,offsetX:Fe/De,offsetY:Re/Le,offsetR:Un/De,offsetB:ia/Le,arrowX:ef/De,arrowY:rf/Le,scaleX:De,scaleY:Le,align:xt};u(of)}}),g=function(){d.current+=1;var b=d.current;Promise.resolve().then(function(){d.current===b&&m()})},y=function(){u(function(b){return Q(Q({},b),{},{ready:!1})})};return Ke(y,[r]),Ke(function(){e||y()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,g]}function kM(e,t,n,r,o){Ke(function(){if(e&&t&&n){let d=function(){r(),o()};var i=t,a=n,s=ld(i),l=ld(a),c=Vi(a),u=new Set([c].concat(de(s),de(l)));return u.forEach(function(f){f.addEventListener("scroll",d,{passive:!0})}),c.addEventListener("resize",d,{passive:!0}),r(),function(){u.forEach(function(f){f.removeEventListener("scroll",d),c.removeEventListener("resize",d)})}}},[e,t,n])}function HM(e,t,n,r,o,i,a,s){var l=h.useRef(e);l.current=e;var c=h.useRef(!1);h.useEffect(function(){if(t&&r&&(!o||i)){var d=function(){c.current=!1},f=function(C){var w;l.current&&!a(((w=C.composedPath)===null||w===void 0||(w=w.call(C))===null||w===void 0?void 0:w[0])||C.target)&&!c.current&&s(!1)},p=Vi(r);p.addEventListener("pointerdown",d,!0),p.addEventListener("mousedown",f,!0),p.addEventListener("contextmenu",f,!0);var v=xs(n);if(v&&(v.addEventListener("mousedown",f,!0),v.addEventListener("contextmenu",f,!0)),process.env.NODE_ENV!=="production"){var m,g,y=n==null||(m=n.getRootNode)===null||m===void 0?void 0:m.call(n),x=(g=r.getRootNode)===null||g===void 0?void 0:g.call(r);ho(y===x,"trigger element and popup element should in same shadow root.")}return function(){p.removeEventListener("pointerdown",d,!0),p.removeEventListener("mousedown",f,!0),p.removeEventListener("contextmenu",f,!0),v&&(v.removeEventListener("mousedown",f,!0),v.removeEventListener("contextmenu",f,!0))}}},[t,n,r,o,i]);function u(){c.current=!0}return u}var BM=["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 WM(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ku,t=h.forwardRef(function(n,r){var o=n.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=n.children,s=n.action,l=s===void 0?"hover":s,c=n.showAction,u=n.hideAction,d=n.popupVisible,f=n.defaultPopupVisible,p=n.onPopupVisibleChange,v=n.afterPopupVisibleChange,m=n.mouseEnterDelay,g=n.mouseLeaveDelay,y=g===void 0?.1:g,x=n.focusDelay,b=n.blurDelay,C=n.mask,w=n.maskClosable,$=w===void 0?!0:w,S=n.getPopupContainer,E=n.forceRender,_=n.autoDestroy,P=n.destroyPopupOnHide,A=n.popup,L=n.popupClassName,D=n.popupStyle,O=n.popupPlacement,M=n.builtinPlacements,N=M===void 0?{}:M,I=n.popupAlign,j=n.zIndex,z=n.stretch,F=n.getPopupClassNameFromAlign,R=n.fresh,W=n.alignPoint,H=n.onPopupClick,V=n.onPopupAlign,B=n.arrow,U=n.popupMotion,K=n.maskMotion,G=n.popupTransitionName,Z=n.popupAnimation,J=n.maskTransitionName,ee=n.maskAnimation,q=n.className,te=n.getTriggerDOMNode,Y=vt(n,BM),oe=_||P||!1,ne=h.useState(!1),ce=ae(ne,2),ve=ce[0],pe=ce[1];Ke(function(){pe(DM())},[]);var _e=h.useRef({}),xe=h.useContext(z0),Oe=h.useMemo(function(){return{registerSubPopup:function($e,ot){_e.current[$e]=ot,xe==null||xe.registerSubPopup($e,ot)}}},[xe]),he=Hu(),ue=h.useState(null),Ee=ae(ue,2),Ne=Ee[0],Ue=Ee[1],De=h.useRef(null),Le=wt(function(ge){De.current=ge,yi(ge)&&Ne!==ge&&Ue(ge),xe==null||xe.registerSubPopup(he,ge)}),Ge=h.useState(null),Te=ae(Ge,2),Ie=Te[0],Pe=Te[1],le=h.useRef(null),me=wt(function(ge){yi(ge)&&Ie!==ge&&(Pe(ge),le.current=ge)}),ie=h.Children.only(a),se=(ie==null?void 0:ie.props)||{},Se={},Qe=wt(function(ge){var $e,ot,ht=Ie;return(ht==null?void 0:ht.contains(ge))||(($e=xs(ht))===null||$e===void 0?void 0:$e.host)===ge||ge===ht||(Ne==null?void 0:Ne.contains(ge))||((ot=xs(Ne))===null||ot===void 0?void 0:ot.host)===ge||ge===Ne||Object.values(_e.current).some(function(ut){return(ut==null?void 0:ut.contains(ge))||ge===ut})}),Ot=V0(i,U,Z,G),jt=V0(i,K,ee,J),zt=h.useState(f||!1),sr=ae(zt,2),Bt=sr[0],lt=sr[1],ct=d??Bt,xn=wt(function(ge){d===void 0&<(ge)});Ke(function(){lt(d||!1)},[d]);var xt=h.useRef(ct);xt.current=ct;var Fe=h.useRef([]);Fe.current=[];var Re=wt(function(ge){var $e;xn(ge),(($e=Fe.current[Fe.current.length-1])!==null&&$e!==void 0?$e:ct)!==ge&&(Fe.current.push(ge),p==null||p(ge))}),It=h.useRef(),Sn=function(){clearTimeout(It.current)},Ve=function($e){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Sn(),ot===0?Re($e):It.current=setTimeout(function(){Re($e)},ot*1e3)};h.useEffect(function(){return Sn},[]);var lr=h.useState(!1),cr=ae(lr,2),Xe=cr[0],Je=cr[1];Ke(function(ge){(!ge||ct)&&Je(!0)},[ct]);var Mt=h.useState(null),_t=ae(Mt,2),Jt=_t[0],Rn=_t[1],Vn=h.useState(null),Rt=ae(Vn,2),en=Rt[0],En=Rt[1],tn=function($e){En([$e.clientX,$e.clientY])},At=VM(ct,Ne,W&&en!==null?en:Ie,O,N,I,V),Dt=ae(At,11),ur=Dt[0],Zr=Dt[1],ea=Dt[2],dr=Dt[3],qo=Dt[4],ta=Dt[5],Uo=Dt[6],Go=Dt[7],fr=Dt[8],kn=Dt[9],Qr=Dt[10],pr=jM(ve,l,c,u),Jr=ae(pr,2),Ir=Jr[0],nn=Jr[1],Hn=Ir.has("click"),Bn=nn.has("click")||nn.has("contextMenu"),Wn=wt(function(){Xe||Qr()}),qn=function(){xt.current&&W&&Bn&&Ve(!1)};kM(ct,Ie,Ne,Wn,qn),Ke(function(){Wn()},[en,O]),Ke(function(){ct&&!(N!=null&&N[O])&&Wn()},[JSON.stringify(I)]);var na=h.useMemo(function(){var ge=RM(N,i,kn,W);return re(ge,F==null?void 0:F(kn))},[kn,F,N,i,W]);h.useImperativeHandle(r,function(){return{nativeElement:le.current,popupElement:De.current,forceAlign:Wn}});var Xo=h.useState(0),Yo=ae(Xo,2),Mr=Yo[0],ra=Yo[1],oa=h.useState(0),eo=ae(oa,2),Jd=eo[0],ef=eo[1],ml=function(){if(z&&Ie){var $e=Ie.getBoundingClientRect();ra($e.width),ef($e.height)}},tf=function(){ml(),Wn()},nf=function($e){Je(!1),Qr(),v==null||v($e)},rf=function(){return new Promise(function($e){ml(),Rn(function(){return $e})})};Ke(function(){Jt&&(Qr(),Jt(),Rn(null))},[Jt]);function Un(ge,$e,ot,ht){Se[ge]=function(ut){var bl;ht==null||ht(ut),Ve($e,ot);for(var lf=arguments.length,x1=new Array(lf>1?lf-1:0),Cl=1;Cl<lf;Cl++)x1[Cl-1]=arguments[Cl];(bl=se[ge])===null||bl===void 0||bl.call.apply(bl,[se,ut].concat(x1))}}(Hn||Bn)&&(Se.onClick=function(ge){var $e;xt.current&&Bn?Ve(!1):!xt.current&&Hn&&(tn(ge),Ve(!0));for(var ot=arguments.length,ht=new Array(ot>1?ot-1:0),ut=1;ut<ot;ut++)ht[ut-1]=arguments[ut];($e=se.onClick)===null||$e===void 0||$e.call.apply($e,[se,ge].concat(ht))});var ia=HM(ct,Bn,Ie,Ne,C,$,Qe,Ve),of=Ir.has("hover"),un=nn.has("hover"),Ko,aa;of&&(Un("onMouseEnter",!0,m,function(ge){tn(ge)}),Un("onPointerEnter",!0,m,function(ge){tn(ge)}),Ko=function($e){(ct||Xe)&&Ne!==null&&Ne!==void 0&&Ne.contains($e.target)&&Ve(!0,m)},W&&(Se.onMouseMove=function(ge){var $e;($e=se.onMouseMove)===null||$e===void 0||$e.call(se,ge)})),un&&(Un("onMouseLeave",!1,y),Un("onPointerLeave",!1,y),aa=function(){Ve(!1,y)}),Ir.has("focus")&&Un("onFocus",!0,x),nn.has("focus")&&Un("onBlur",!1,b),Ir.has("contextMenu")&&(Se.onContextMenu=function(ge){var $e;xt.current&&nn.has("contextMenu")?Ve(!1):(tn(ge),Ve(!0)),ge.preventDefault();for(var ot=arguments.length,ht=new Array(ot>1?ot-1:0),ut=1;ut<ot;ut++)ht[ut-1]=arguments[ut];($e=se.onContextMenu)===null||$e===void 0||$e.call.apply($e,[se,ge].concat(ht))}),q&&(Se.className=re(se.className,q));var gr=Q(Q({},se),Se),to={},vl=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];vl.forEach(function(ge){Y[ge]&&(to[ge]=function(){for(var $e,ot=arguments.length,ht=new Array(ot),ut=0;ut<ot;ut++)ht[ut]=arguments[ut];($e=gr[ge])===null||$e===void 0||$e.call.apply($e,[gr].concat(ht)),Y[ge].apply(Y,ht)})});var yl=h.cloneElement(ie,Q(Q({},gr),to)),af={x:ta,y:Uo},sf=B?Q({},B!==!0?B:{}):null;return h.createElement(h.Fragment,null,h.createElement(yo,{disabled:!ct,ref:me,onResize:tf},h.createElement(j0,{getTriggerDOMNode:te},yl)),h.createElement(z0.Provider,{value:Oe},h.createElement(L0,{portal:e,ref:Le,prefixCls:i,popup:A,className:re(L,na),style:D,target:Ie,onMouseEnter:Ko,onMouseLeave:aa,onPointerEnter:Ko,zIndex:j,open:ct,keepDom:Xe,fresh:R,onClick:H,onPointerDownCapture:ia,mask:C,motion:Ot,maskMotion:jt,onVisibleChanged:nf,onPrepare:rf,forceRender:E,autoDestroy:oe,getPopupContainer:S,align:kn,arrow:sf,arrowPos:af,ready:ur,offsetX:Zr,offsetY:ea,offsetR:dr,offsetB:qo,onAlign:Wn,stretch:z,targetWidth:Mr/Go,targetHeight:Jd/fr})))});return process.env.NODE_ENV!=="production"&&(t.displayName="Trigger"),t}const qM=WM(ku);function cd(e,t,n){return re({[`${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 ud=(e,t)=>t||e,q0=(e,t,n=void 0)=>{var r,o;const{variant:i,[e]:a}=h.useContext(Be),s=h.useContext(A0),l=a==null?void 0:a.variant;let c;typeof t<"u"?c=t:n===!1?c="borderless":c=(o=(r=s??l)!==null&&r!==void 0?r:i)!==null&&o!==void 0?o:"outlined";const u=k_.includes(c);return[c,u]};var UM={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"},GM=function(t,n){return h.createElement(je,Ce({},t,{ref:n,icon:UM}))},dd=h.forwardRef(GM);process.env.NODE_ENV!=="production"&&(dd.displayName="CheckOutlined");var XM={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"},YM=function(t,n){return h.createElement(je,Ce({},t,{ref:n,icon:XM}))},U0=h.forwardRef(YM);process.env.NODE_ENV!=="production"&&(U0.displayName="SearchOutlined");const KM=(e,t)=>{typeof(e==null?void 0:e.addEventListener)<"u"?e.addEventListener("change",t):typeof(e==null?void 0:e.addListener)<"u"&&e.addListener(t)},ZM=(e,t)=>{typeof(e==null?void 0:e.removeEventListener)<"u"?e.removeEventListener("change",t):typeof(e==null?void 0:e.removeListener)<"u"&&e.removeListener(t)},Bi=["xxl","xl","lg","md","sm","xs"],QM=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)`}),JM=e=>{const t=e,n=[].concat(Bi).reverse();return n.forEach((r,o)=>{const i=r.toUpperCase(),a=`screen${i}Min`,s=`screen${i}`;if(!(t[a]<=t[s]))throw new Error(`${a}<=${s} fails : !(${t[a]}<=${t[s]})`);if(o<n.length-1){const l=`screen${i}Max`;if(!(t[s]<=t[l]))throw new Error(`${s}<=${l} fails : !(${t[s]}<=${t[l]})`);const u=`screen${n[o+1].toUpperCase()}Min`;if(!(t[l]<=t[u]))throw new Error(`${l}<=${u} fails : !(${t[l]}<=${t[u]})`)}}),e},e4=()=>{const[,e]=tr(),t=QM(JM(e));return T.useMemo(()=>{const n=new Map;let r=-1,o={};return{responsiveMap:t,matchHandlers:{},dispatch(i){return o=i,n.forEach(a=>a(o)),n.size>=1},subscribe(i){return n.size||this.register(),r+=1,n.set(r,i),i(o),r},unsubscribe(i){n.delete(i),n.size||this.unregister()},register(){Object.entries(t).forEach(([i,a])=>{const s=({matches:c})=>{this.dispatch(Object.assign(Object.assign({},o),{[i]:c}))},l=window.matchMedia(a);KM(l,s),this.matchHandlers[a]={mql:l,listener:s},s(l)})},unregister(){Object.values(t).forEach(i=>{const a=this.matchHandlers[i];ZM(a==null?void 0:a.mql,a==null?void 0:a.listener)}),n.clear()}}},[e])};function G0(){const[,e]=h.useReducer(t=>t+1,0);return e}function t4(e=!0,t={}){const n=T.useRef(t),r=G0(),o=e4();return Ke(()=>{const i=o.subscribe(a=>{n.current=a,e&&r()});return()=>o.unsubscribe(i)},[]),n.current}function X0(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.bodyClassName,a=e.className,s=e.style;return h.createElement("div",{className:re("".concat(n,"-content"),a),style:s},h.createElement("div",{className:re("".concat(n,"-inner"),i),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var Vo={shiftX:64,adjustY:1},ko={adjustX:1,shiftY:!0},cn=[0,0],n4={left:{points:["cr","cl"],overflow:ko,offset:[-4,0],targetOffset:cn},right:{points:["cl","cr"],overflow:ko,offset:[4,0],targetOffset:cn},top:{points:["bc","tc"],overflow:Vo,offset:[0,-4],targetOffset:cn},bottom:{points:["tc","bc"],overflow:Vo,offset:[0,4],targetOffset:cn},topLeft:{points:["bl","tl"],overflow:Vo,offset:[0,-4],targetOffset:cn},leftTop:{points:["tr","tl"],overflow:ko,offset:[-4,0],targetOffset:cn},topRight:{points:["br","tr"],overflow:Vo,offset:[0,-4],targetOffset:cn},rightTop:{points:["tl","tr"],overflow:ko,offset:[4,0],targetOffset:cn},bottomRight:{points:["tr","br"],overflow:Vo,offset:[0,4],targetOffset:cn},rightBottom:{points:["bl","br"],overflow:ko,offset:[4,0],targetOffset:cn},bottomLeft:{points:["tl","bl"],overflow:Vo,offset:[0,4],targetOffset:cn},leftBottom:{points:["br","bl"],overflow:ko,offset:[-4,0],targetOffset:cn}},r4=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],o4=function(t,n){var r=t.overlayClassName,o=t.trigger,i=o===void 0?["hover"]:o,a=t.mouseEnterDelay,s=a===void 0?0:a,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,d=t.prefixCls,f=d===void 0?"rc-tooltip":d,p=t.children,v=t.onVisibleChange,m=t.afterVisibleChange,g=t.transitionName,y=t.animation,x=t.motion,b=t.placement,C=b===void 0?"right":b,w=t.align,$=w===void 0?{}:w,S=t.destroyTooltipOnHide,E=S===void 0?!1:S,_=t.defaultVisible,P=t.getTooltipContainer,A=t.overlayInnerStyle;t.arrowContent;var L=t.overlay,D=t.id,O=t.showArrow,M=O===void 0?!0:O,N=t.classNames,I=t.styles,j=vt(t,r4),z=Hu(D),F=T.useRef(null);T.useImperativeHandle(n,function(){return F.current});var R=Q({},j);"visible"in t&&(R.popupVisible=t.visible);var W=function(){return h.createElement(X0,{key:"content",prefixCls:f,id:z,bodyClassName:N==null?void 0:N.body,overlayInnerStyle:Q(Q({},A),I==null?void 0:I.body)},L)},H=function(){var B=h.Children.only(p),U=(B==null?void 0:B.props)||{},K=Q(Q({},U),{},{"aria-describedby":L?z:null});return h.cloneElement(p,K)};return h.createElement(qM,Ce({popupClassName:re(r,N==null?void 0:N.root),prefixCls:f,popup:W,action:i,builtinPlacements:n4,popupPlacement:C,ref:F,popupAlign:$,getPopupContainer:P,onPopupVisibleChange:v,afterPopupVisibleChange:m,popupTransitionName:g,popupAnimation:y,popupMotion:x,defaultPopupVisible:_,autoDestroy:E,mouseLeaveDelay:c,popupStyle:Q(Q({},u),I==null?void 0:I.root),mouseEnterDelay:s,arrow:M},R),H())};const i4=T.forwardRef(o4);function a4(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=0,a=o,s=r*1/Math.sqrt(2),l=o-r*(1-1/Math.sqrt(2)),c=o-n*(1/Math.sqrt(2)),u=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),d=2*o-c,f=u,p=2*o-s,v=l,m=2*o-i,g=a,y=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),x=r*(Math.sqrt(2)-1),b=`polygon(${x}px 100%, 50% ${x}px, ${2*o-x}px 100%, ${x}px 100%)`,C=`path('M ${i} ${a} A ${r} ${r} 0 0 0 ${s} ${l} L ${c} ${u} A ${n} ${n} 0 0 1 ${d} ${f} L ${p} ${v} A ${r} ${r} 0 0 0 ${m} ${g} Z')`;return{arrowShadowWidth:y,arrowPath:C,arrowPolygon:b}}const s4=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:l(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${fe(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},Y0=8;function K0(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?Y0:r}}function Hs(e,t){return e?t:{}}function l4(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}={};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},s4(e,t,o)),{"&:before":{background:t}})]},Hs(!!l.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":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${fe(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Hs(!!l.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":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${fe(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Hs(!!l.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:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),Hs(!!l.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:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}function c4(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.arrowOffsetHorizontal*2+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=t.arrowOffsetVertical*2+n,i.shiftX=!0,i.adjustX=!0;break}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const Z0={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"]}},u4={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"]}},d4=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function f4(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i}=e,a=t/2,s={};return Object.keys(Z0).forEach(l=>{const c=r&&u4[l]||Z0[l],u=Object.assign(Object.assign({},c),{offset:[0,0],dynamicInset:!0});switch(s[l]=u,d4.has(l)&&(u.autoArrow=!1),l){case"top":case"topLeft":case"topRight":u.offset[1]=-a-o;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=a+o;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-a-o;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=a+o;break}const d=K0({contentRadius:i,limitVerticalRadius:!0});if(r)switch(l){case"topLeft":case"bottomLeft":u.offset[0]=-d.arrowOffsetHorizontal-a;break;case"topRight":case"bottomRight":u.offset[0]=d.arrowOffsetHorizontal+a;break;case"leftTop":case"rightTop":u.offset[1]=-d.arrowOffsetHorizontal*2+a;break;case"leftBottom":case"rightBottom":u.offset[1]=d.arrowOffsetHorizontal*2-a;break}u.overflow=c4(l,d,t,n),u.htmlRegion="visibleFirst"}),s}const p4=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:o,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:s,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:d,arrowOffsetHorizontal:f,sizePopupArrow:p}=e,v=t(a).add(p).add(f).equal(),m=t(a).mul(2).add(p).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},Yt(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:r,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":i,[`${n}-inner`]:{minWidth:m,minHeight:l,padding:`${fe(e.calc(u).div(2).equal())} ${fe(d)}`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:v},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(a,Y0)}},[`${n}-content`]:{position:"relative"}}),pN(e,(g,{darkColor:y})=>({[`&${n}-${g}`]:{[`${n}-inner`]:{backgroundColor:y},[`${n}-arrow`]:{"--antd-arrow-background-color":y}}}))),{"&-rtl":{direction:"rtl"}})},l4(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},g4=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},K0({contentRadius:e.borderRadius,limitVerticalRadius:!0})),a4(st(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Q0=(e,t=!0)=>Et("Tooltip",r=>{const{borderRadius:o,colorTextLightSolid:i,colorBgSpotlight:a}=r,s=st(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a});return[p4(s),GT(r,"zoom-big-fast")]},g4,{resetStyle:!1,injectStyle:t})(e),h4=Ur.map(e=>`${e}-inverse`);function m4(e,t=!0){return t?[].concat(de(h4),de(Ur)).includes(e):Ur.includes(e)}function J0(e,t){const n=m4(t),r=re({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}const v4=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:s}=h.useContext(Be),l=s("tooltip",t),[c,u,d]=Q0(l),f=J0(l,i),p=f.arrowStyle,v=Object.assign(Object.assign({},a),f.overlayStyle),m=re(u,d,l,`${l}-pure`,`${l}-placement-${r}`,n,f.className);return c(h.createElement("div",{className:m,style:p},h.createElement("div",{className:`${l}-arrow`}),h.createElement(X0,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:v}),o)))};var y4=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const $r=h.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,color:s,overlayInnerStyle:l,children:c,afterOpenChange:u,afterVisibleChange:d,destroyTooltipOnHide:f,destroyOnHidden:p,arrow:v=!0,title:m,overlay:g,builtinPlacements:y,arrowPointAtCenter:x=!1,autoAdjustOverflow:b=!0,motion:C,getPopupContainer:w,placement:$="top",mouseEnterDelay:S=.1,mouseLeaveDelay:E=.1,overlayStyle:_,rootClassName:P,overlayClassName:A,styles:L,classNames:D}=e,O=y4(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),M=!!v,[,N]=tr(),{getPopupContainer:I,getPrefixCls:j,direction:z,className:F,style:R,classNames:W,styles:H}=In("tooltip"),V=Ze("Tooltip"),B=h.useRef(null),U=()=>{var Te;(Te=B.current)===null||Te===void 0||Te.forceAlign()};h.useImperativeHandle(t,()=>{var Te,Ie;return{forceAlign:U,forcePopupAlign:()=>{V.deprecated(!1,"forcePopupAlign","forceAlign"),U()},nativeElement:(Te=B.current)===null||Te===void 0?void 0:Te.nativeElement,popupElement:(Ie=B.current)===null||Ie===void 0?void 0:Ie.popupElement}}),process.env.NODE_ENV!=="production"&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["destroyTooltipOnHide","destroyOnHidden"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"],["overlayStyle","styles={{ root: {} }}"],["overlayInnerStyle","styles={{ body: {} }}"],["overlayClassName",'classNames={{ root: "" }}']].forEach(([Te,Ie])=>{V.deprecated(!(Te in e),Te,Ie)}),process.env.NODE_ENV!=="production"&&V(!f||typeof f=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),process.env.NODE_ENV!=="production"&&V(!v||typeof v=="boolean"||!("arrowPointAtCenter"in v),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[K,G]=An(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),Z=!m&&!g&&m!==0,J=Te=>{var Ie,Pe;G(Z?!1:Te),Z||((Ie=e.onOpenChange)===null||Ie===void 0||Ie.call(e,Te),(Pe=e.onVisibleChange)===null||Pe===void 0||Pe.call(e,Te))},ee=h.useMemo(()=>{var Te,Ie;let Pe=x;return typeof v=="object"&&(Pe=(Ie=(Te=v.pointAtCenter)!==null&&Te!==void 0?Te:v.arrowPointAtCenter)!==null&&Ie!==void 0?Ie:x),y||f4({arrowPointAtCenter:Pe,autoAdjustOverflow:b,arrowWidth:M?N.sizePopupArrow:0,borderRadius:N.borderRadius,offset:N.marginXXS})},[x,v,y,N]),q=h.useMemo(()=>m===0?m:g||m||"",[g,m]),te=h.createElement(ad,{space:!0},typeof q=="function"?q():q),Y=j("tooltip",o),oe=j(),ne=e["data-popover-inject"];let ce=K;!("open"in e)&&!("visible"in e)&&Z&&(ce=!1);const ve=h.isValidElement(c)&&!Ov(c)?c:h.createElement("span",null,c),pe=ve.props,_e=!pe.className||typeof pe.className=="string"?re(pe.className,i||`${Y}-open`):pe.className,[xe,Oe,he]=Q0(Y,!ne),ue=J0(Y,s),Ee=ue.arrowStyle,Ne=re(A,{[`${Y}-rtl`]:z==="rtl"},ue.className,P,Oe,he,F,W.root,D==null?void 0:D.root),Ue=re(W.body,D==null?void 0:D.body),[De,Le]=FP("Tooltip",O.zIndex),Ge=h.createElement(i4,Object.assign({},O,{zIndex:De,showArrow:M,placement:$,mouseEnterDelay:S,mouseLeaveDelay:E,prefixCls:Y,classNames:{root:Ne,body:Ue},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ee),H.root),R),_),L==null?void 0:L.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},H.body),l),L==null?void 0:L.body),ue.overlayStyle)},getTooltipContainer:w||a||I,ref:B,builtinPlacements:ee,overlay:te,visible:ce,onVisibleChange:J,afterVisibleChange:u??d,arrowContent:h.createElement("span",{className:`${Y}-arrow-content`}),motion:{motionName:KP(oe,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:p??!!f}),ce?nr(ve,{className:_e}):ve);return xe(h.createElement(wu.Provider,{value:Le},Ge))});process.env.NODE_ENV!=="production"&&($r.displayName="Tooltip"),$r._InternalPanelDoNotUseOrYouWillBeFired=v4;var b4=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],C4=T.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,o=e.className,i=e.style,a=e.checked,s=e.disabled,l=e.defaultChecked,c=l===void 0?!1:l,u=e.type,d=u===void 0?"checkbox":u,f=e.title,p=e.onChange,v=vt(e,b4),m=T.useRef(null),g=T.useRef(null),y=An(c,{value:a}),x=ae(y,2),b=x[0],C=x[1];T.useImperativeHandle(t,function(){return{focus:function(E){var _;(_=m.current)===null||_===void 0||_.focus(E)},blur:function(){var E;(E=m.current)===null||E===void 0||E.blur()},input:m.current,nativeElement:g.current}});var w=re(r,o,X(X({},"".concat(r,"-checked"),b),"".concat(r,"-disabled"),s)),$=function(E){s||("checked"in e||C(E.target.checked),p==null||p({target:Q(Q({},e),{},{type:d,checked:E.target.checked}),stopPropagation:function(){E.stopPropagation()},preventDefault:function(){E.preventDefault()},nativeEvent:E.nativeEvent}))};return h.createElement("span",{className:w,title:f,style:i,ref:g},h.createElement("input",Ce({},v,{className:"".concat(r,"-input"),ref:m,onChange:$,disabled:s,checked:!!b,type:d})),h.createElement("span",{className:"".concat(r,"-inner")}))});function w4(e){const t=T.useRef(null),n=()=>{Ft.cancel(t.current),t.current=null};return[()=>{n(),t.current=Ft(()=>{t.current=null})},i=>{t.current&&(i.stopPropagation(),n()),e==null||e(i)}]}const x4=["parentNode"],S4="form_item";function Wi(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function ey(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:x4.includes(n)?`${S4}_${n}`:n}function ty(e,t,n,r,o,i){let a=r;return i!==void 0?a=i:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||o&&n.validated)&&(a="success"),a}var E4=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function ny(e){return Wi(e).join("_")}function ry(e,t){const n=t.getFieldInstance(e),r=ph(n);if(r)return r;const o=ey(Wi(e),t.__INTERNAL__.name);if(o)return document.getElementById(o)}function oy(e){const[t]=rd(),n=h.useRef({}),r=h.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>i=>{const a=ny(o);i?n.current[a]=i:delete n.current[a]}},scrollToField:(o,i={})=>{const{focus:a}=i,s=E4(i,["focus"]),l=ry(o,r);l&&(PP(l,Object.assign({scrollMode:"if-needed",block:"nearest"},s)),a&&r.focusField(o))},focusField:o=>{var i,a;const s=r.getFieldInstance(o);typeof(s==null?void 0:s.focus)=="function"?s.focus():(a=(i=ry(o,r))===null||i===void 0?void 0:i.focus)===null||a===void 0||a.call(i)},getFieldInstance:o=>{const i=ny(o);return n.current[i]}}),[e,t]);return[r]}function Bs(e){return st(e,{inputAffixPadding:e.paddingXXS})}const Ws=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:v,controlOutlineWidth:m,controlOutline:g,colorErrorOutline:y,colorWarningOutline:x,colorBgContainer:b,inputFontSize:C,inputFontSizeLG:w,inputFontSizeSM:$}=e,S=C||n,E=$||S,_=w||s,P=Math.round((t-S*r)/2*10)/10-o,A=Math.round((i-E*r)/2*10)/10-o,L=Math.ceil((a-_*l)/2*10)/10-o;return{paddingBlock:Math.max(P,0),paddingBlockSM:Math.max(A,0),paddingBlockLG:Math.max(L,0),paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:f,activeBorderColor:v,hoverBorderColor:p,activeShadow:`0 0 0 ${m}px ${g}`,errorActiveShadow:`0 0 0 ${m}px ${y}`,warningActiveShadow:`0 0 0 ${m}px ${x}`,hoverBg:b,activeBg:b,inputFontSize:S,inputFontSizeLG:_,inputFontSizeSM:E}},$4=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),fd=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({},$4(st(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),iy=(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}}),ay=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},iy(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),O4=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},iy(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},fd(e))}),ay(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),ay(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),sy=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),_4=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},sy(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),sy(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},fd(e))}})}),N4=(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,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},ly=(e,t)=>{var n;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(n=t==null?void 0:t.inputColor)!==null&&n!==void 0?n:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},cy=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},ly(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),P4=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ly(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},fd(e))}),cy(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),cy(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),uy=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),T4=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},uy(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),uy(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:`${fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),dy=(e,t)=>({background:e.colorBgContainer,borderWidth:`${fe(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.borderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.borderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),fy=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},dy(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),I4=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},dy(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),fy(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),fy(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),M4=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),py=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${fe(t)} ${fe(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},gy=e=>({padding:`${fe(e.paddingBlockSM)} ${fe(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),hy=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${fe(e.paddingBlock)} ${fe(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},M4(e.colorTextPlaceholder)),{"&-lg":Object.assign({},py(e)),"&-sm":Object.assign({},gy(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),A4=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({},py(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},gy(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 ${fe(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${fe(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${fe(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:`${fe(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${fe(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"},au()),{[`${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},[`
|
|
200
|
+
}`),o)}else il(o);return function(){il(o)}},[t,o])}var OF=!1;function NF(e){return OF}var Mx=function(t){return t===!1?!1:!On()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Zu=h.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer,i=e.debug,a=e.autoDestroy,l=a===void 0?!0:a,u=e.children,d=h.useState(n),f=Ee(d,2),g=f[0],p=f[1],m=g||n;process.env.NODE_ENV!=="production"&&zt(On()||!n,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),h.useEffect(function(){(l||n)&&p(n)},[n,l]);var b=h.useState(function(){return Mx(o)}),C=Ee(b,2),y=C[0],x=C[1];h.useEffect(function(){var B=Mx(o);x(B??null)});var $=xF(m&&!y,i),w=Ee($,2),E=w[0],S=w[1],O=y??E;_F(r&&n&&On()&&(O===E||O===document.body));var _=null;if(u&&Ha(u)&&t){var P=u;_=P.ref}var T=ll(_,t);if(!m||!On()||y===void 0)return null;var L=O===!1||NF(),z=u;return t&&(z=h.cloneElement(u,{ref:T})),h.createElement(Px.Provider,{value:S},L?z:hi.createPortal(z,O))});process.env.NODE_ENV!=="production"&&(Zu.displayName="Portal");var Ax=h.createContext({});function PF(){var e=le({},h);return e.useId}var Dx=0,Fx=PF();const Qu=Fx?function(t){var n=Fx();return t||(process.env.NODE_ENV==="test"?"test-id":n)}:function(t){var n=h.useState("ssr-id"),r=Ee(n,2),o=r[0],i=r[1];return h.useEffect(function(){var a=Dx;Dx+=1,i("rc_unique_".concat(a))},[]),t||(process.env.NODE_ENV==="test"?"test-id":o)};function Lx(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function Rx(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var o=e.document;n=o.documentElement[r],typeof n!="number"&&(n=o.body[r])}return n}function IF(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=Rx(o),n.top+=Rx(o,!0),n}const TF=h.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var MF={width:0,height:0,overflow:"hidden",outline:"none"},AF={outline:"none"},jp=M.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.title,a=e.ariaId,l=e.footer,u=e.closable,d=e.closeIcon,f=e.onClose,g=e.children,p=e.bodyStyle,m=e.bodyProps,b=e.modalRender,C=e.onMouseDown,y=e.onMouseUp,x=e.holderRef,$=e.visible,w=e.forceRender,E=e.width,S=e.height,O=e.classNames,_=e.styles,P=M.useContext(Ax),T=P.panel,L=ll(x,T),z=M.useRef(),B=M.useRef();M.useImperativeHandle(t,function(){return{focus:function(){var Z;(Z=z.current)===null||Z===void 0||Z.focus({preventScroll:!0})},changeActive:function(Z){var Y=document,G=Y.activeElement;Z&&G===B.current?z.current.focus({preventScroll:!0}):!Z&&G===z.current&&B.current.focus({preventScroll:!0})}}});var j={};E!==void 0&&(j.width=E),S!==void 0&&(j.height=S);var I=l?M.createElement("div",{className:ge("".concat(n,"-footer"),O==null?void 0:O.footer),style:le({},_==null?void 0:_.footer)},l):null,F=i?M.createElement("div",{className:ge("".concat(n,"-header"),O==null?void 0:O.header),style:le({},_==null?void 0:_.header)},M.createElement("div",{className:"".concat(n,"-title"),id:a},i)):null,A=M.useMemo(function(){return je(u)==="object"&&u!==null?u:u?{closeIcon:d??M.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[u,d,n]),D=ts(A,!0),V=je(u)==="object"&&u.disabled,W=u?M.createElement("button",Le({type:"button",onClick:f,"aria-label":"Close"},D,{className:"".concat(n,"-close"),disabled:V}),A.closeIcon):null,H=M.createElement("div",{className:ge("".concat(n,"-content"),O==null?void 0:O.content),style:_==null?void 0:_.content},W,F,M.createElement("div",Le({className:ge("".concat(n,"-body"),O==null?void 0:O.body),style:le(le({},p),_==null?void 0:_.body)},m),g),I);return M.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?a:null,"aria-modal":"true",ref:L,style:le(le({},o),j),className:ge(n,r),onMouseDown:C,onMouseUp:y},M.createElement("div",{ref:z,tabIndex:0,style:AF},M.createElement(TF,{shouldUpdate:$||w},b?b(H):H)),M.createElement("div",{tabIndex:0,ref:B,style:MF}))});process.env.NODE_ENV!=="production"&&(jp.displayName="Panel");var zx=h.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,o=e.style,i=e.className,a=e.visible,l=e.forceRender,u=e.destroyOnClose,d=e.motionName,f=e.ariaId,g=e.onVisibleChanged,p=e.mousePosition,m=M.useRef(),b=h.useState(),C=Ee(b,2),y=C[0],x=C[1],$={};y&&($.transformOrigin=y);function w(){var E=IF(m.current);x(p&&(p.x||p.y)?"".concat(p.x-E.left,"px ").concat(p.y-E.top,"px"):"")}return h.createElement(Nr,{visible:a,onVisibleChanged:g,onAppearPrepare:w,onEnterPrepare:w,forceRender:l,motionName:d,removeOnLeave:u,ref:m},function(E,S){var O=E.className,_=E.style;return h.createElement(jp,Le({},e,{ref:t,title:r,ariaId:f,prefixCls:n,holderRef:S,style:le(le(le({},_),o),$),className:ge(i,O)}))})});zx.displayName="Content";var DF=function(t){var n=t.prefixCls,r=t.style,o=t.visible,i=t.maskProps,a=t.motionName,l=t.className;return h.createElement(Nr,{key:"mask",visible:o,motionName:a,leavedClassName:"".concat(n,"-mask-hidden")},function(u,d){var f=u.className,g=u.style;return h.createElement("div",Le({ref:d,style:le(le({},g),r),className:ge("".concat(n,"-mask"),f,l)},i))})},FF=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,o=t.zIndex,i=t.visible,a=i===void 0?!1:i,l=t.keyboard,u=l===void 0?!0:l,d=t.focusTriggerAfterClose,f=d===void 0?!0:d,g=t.wrapStyle,p=t.wrapClassName,m=t.wrapProps,b=t.onClose,C=t.afterOpenChange,y=t.afterClose,x=t.transitionName,$=t.animation,w=t.closable,E=w===void 0?!0:w,S=t.mask,O=S===void 0?!0:S,_=t.maskTransitionName,P=t.maskAnimation,T=t.maskClosable,L=T===void 0?!0:T,z=t.maskStyle,B=t.maskProps,j=t.rootClassName,I=t.classNames,F=t.styles;process.env.NODE_ENV!=="production"&&(["wrapStyle","bodyStyle","maskStyle"].forEach(function(he){xi(!(he in t),"".concat(he," is deprecated, please use styles instead."))}),"wrapClassName"in t&&xi(!1,"wrapClassName is deprecated, please use classNames instead."));var A=M.useRef(),D=M.useRef(),V=M.useRef(),W=h.useState(a),H=Ee(W,2),q=H[0],Z=H[1],Y=Qu();function G(){bg(D.current,document.activeElement)||(A.current=document.activeElement)}function K(){if(!bg(D.current,document.activeElement)){var he;(he=V.current)===null||he===void 0||he.focus()}}function te(he){if(he)K();else{if(Z(!1),O&&A.current&&f){try{A.current.focus({preventScroll:!0})}catch{}A.current=null}q&&(y==null||y())}C==null||C(he)}function ie(he){b==null||b(he)}var ee=M.useRef(!1),ae=M.useRef(),de=function(){clearTimeout(ae.current),ee.current=!0},ue=function(){ae.current=setTimeout(function(){ee.current=!1})},J=null;L&&(J=function(me){ee.current?ee.current=!1:D.current===me.target&&ie(me)});function fe(he){if(u&&he.keyCode===xl.ESC){he.stopPropagation(),ie(he);return}a&&he.keyCode===xl.TAB&&V.current.changeActive(!he.shiftKey)}M.useEffect(function(){a&&(Z(!0),G())},[a]),M.useEffect(function(){return function(){clearTimeout(ae.current)}},[]);var oe=le(le(le({zIndex:o},g),F==null?void 0:F.wrapper),{},{display:q?null:"none"});return h.createElement("div",Le({className:ge("".concat(r,"-root"),j)},ts(t,{data:!0})),h.createElement(DF,{prefixCls:r,visible:O&&a,motionName:Lx(r,_,P),style:le(le({zIndex:o},z),F==null?void 0:F.mask),maskProps:B,className:I==null?void 0:I.mask}),h.createElement("div",Le({tabIndex:-1,onKeyDown:fe,className:ge("".concat(r,"-wrap"),p,I==null?void 0:I.wrapper),ref:D,onClick:J,style:oe},m),h.createElement(zx,Le({},t,{onMouseDown:de,onMouseUp:ue,ref:V,closable:E,ariaId:Y,prefixCls:r,visible:a&&q,onClose:ie,onVisibleChanged:te,motionName:Lx(r,x,$)}))))},jx=function(t){var n=t.visible,r=t.getContainer,o=t.forceRender,i=t.destroyOnClose,a=i===void 0?!1:i,l=t.afterClose,u=t.panelRef,d=h.useState(n),f=Ee(d,2),g=f[0],p=f[1],m=h.useMemo(function(){return{panel:u}},[u]);return h.useEffect(function(){n&&p(!0)},[n]),!o&&a&&!g?null:h.createElement(Ax.Provider,{value:m},h.createElement(Zu,{open:n||o||g,autoDestroy:!1,getContainer:r,autoLock:n||g},h.createElement(FF,Le({},t,{destroyOnClose:a,afterClose:function(){l==null||l(),p(!1)}}))))};jx.displayName="Dialog";var aa="RC_FORM_INTERNAL_HOOKS",At=function(){zt(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},sa=h.createContext({getFieldValue:At,getFieldsValue:At,getFieldError:At,getFieldWarning:At,getFieldsError:At,isFieldsTouched:At,isFieldTouched:At,isFieldValidating:At,isFieldsValidating:At,resetFields:At,setFields:At,setFieldValue:At,setFieldsValue:At,validateFields:At,submit:At,getInternalHooks:function(){return At(),{dispatch:At,initEntityValue:At,registerField:At,useSubscribe:At,setInitialValues:At,destroyForm:At,setCallbacks:At,registerWatch:At,getFields:At,setValidateMessages:At,setPreserve:At,getInitialValue:At}}}),El=h.createContext(null);function Bp(e){return e==null?[]:Array.isArray(e)?e:[e]}function LF(e){return e&&!!e._init}function Vp(){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 Hp=Vp();function RF(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function zF(e,t,n){if(uu())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&dl(o,n.prototype),o}function kp(e){var t=typeof Map=="function"?new Map:void 0;return kp=function(r){if(r===null||!RF(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,o)}function o(){return zF(r,arguments,ta(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),dl(o,r)},kp(e)}var jF=/%[sdj%]/g,Bx=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(Bx=function(t,n){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&n.every(function(r){return typeof r=="string"})&&console.warn(t,n)});function Wp(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 cr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var a=e.replace(jF,function(l){if(l==="%%")return"%";if(o>=i)return l;switch(l){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return l}});return a}return e}function BF(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function gn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||BF(t)&&typeof e=="string"&&!e)}function VF(e,t,n){var r=[],o=0,i=e.length;function a(l){r.push.apply(r,Oe(l||[])),o++,o===i&&n(r)}e.forEach(function(l){t(l,a)})}function Vx(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var l=r;r=r+1,l<o?t(e[l],i):n([])}i([])}function HF(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,Oe(e[n]||[]))}),t}var Hx=function(e){Yr(n,e);var t=yo(n);function n(r,o){var i;return Zt(this,n),i=t.call(this,"Async Validation Error"),re(He(i),"errors",void 0),re(He(i),"fields",void 0),i.errors=r,i.fields=o,i}return Qt(n)}(kp(Error));function kF(e,t,n,r,o){if(t.first){var i=new Promise(function(p,m){var b=function(x){return r(x),x.length?m(new Hx(x,Wp(x))):p(o)},C=HF(e);Vx(C,n,b)});return i.catch(function(p){return p}),i}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],l=Object.keys(e),u=l.length,d=0,f=[],g=new Promise(function(p,m){var b=function(y){if(f.push.apply(f,y),d++,d===u)return r(f),f.length?m(new Hx(f,Wp(f))):p(o)};l.length||(r(f),p(o)),l.forEach(function(C){var y=e[C];a.indexOf(C)!==-1?Vx(y,n,b):VF(y,n,b)})});return g.catch(function(p){return p}),g}function WF(e){return!!(e&&e.message!==void 0)}function UF(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function kx(e,t){return function(n){var r;return e.fullFields?r=UF(t,e.fullFields):r=t[n.field||e.fullField],WF(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function Wx(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];je(r)==="object"&&je(e[n])==="object"?e[n]=le(le({},e[n]),r):e[n]=r}}return e}var os="enum",qF=function(t,n,r,o,i){t[os]=Array.isArray(t[os])?t[os]:[],t[os].indexOf(n)===-1&&o.push(cr(i.messages[os],t.fullField,t[os].join(", ")))},GF=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(cr(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||o.push(cr(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},XF=function(t,n,r,o,i){var a=typeof t.len=="number",l=typeof t.min=="number",u=typeof t.max=="number",d=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,f=n,g=null,p=typeof n=="number",m=typeof n=="string",b=Array.isArray(n);if(p?g="number":m?g="string":b&&(g="array"),!g)return!1;b&&(f=n.length),m&&(f=n.replace(d,"_").length),a?f!==t.len&&o.push(cr(i.messages[g].len,t.fullField,t.len)):l&&!u&&f<t.min?o.push(cr(i.messages[g].min,t.fullField,t.min)):u&&!l&&f>t.max?o.push(cr(i.messages[g].max,t.fullField,t.max)):l&&u&&(f<t.min||f>t.max)&&o.push(cr(i.messages[g].range,t.fullField,t.min,t.max))},Ux=function(t,n,r,o,i,a){t.required&&(!r.hasOwnProperty(t.field)||gn(n,a||t.type))&&o.push(cr(i.messages.required,t.fullField))},Ju;const YF=function(){if(Ju)return Ju;var e="[a-fA-F\\d:]",t=function(O){return O&&O.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}",o=["(?:".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}|:))")],i="(?:%[0-9a-zA-Z]{1,})?",a="(?:".concat(o.join("|"),")").concat(i),l=new RegExp("(?:^".concat(n,"$)|(?:^").concat(a,"$)")),u=new RegExp("^".concat(n,"$")),d=new RegExp("^".concat(a,"$")),f=function(O){return O&&O.exact?l:new RegExp("(?:".concat(t(O)).concat(n).concat(t(O),")|(?:").concat(t(O)).concat(a).concat(t(O),")"),"g")};f.v4=function(S){return S&&S.exact?u:new RegExp("".concat(t(S)).concat(n).concat(t(S)),"g")},f.v6=function(S){return S&&S.exact?d:new RegExp("".concat(t(S)).concat(a).concat(t(S)),"g")};var g="(?:(?:[a-z]+:)?//)",p="(?:\\S+(?::\\S*)?@)?",m=f.v4().source,b=f.v6().source,C="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",y="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",x="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",$="(?::\\d{2,5})?",w='(?:[/?#][^\\s"]*)?',E="(?:".concat(g,"|www\\.)").concat(p,"(?:localhost|").concat(m,"|").concat(b,"|").concat(C).concat(y).concat(x,")").concat($).concat(w);return Ju=new RegExp("(?:^".concat(E,"$)"),"i"),Ju};var qx={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},$l={integer:function(t){return $l.number(t)&&parseInt(t,10)===t},float:function(t){return $l.number(t)&&!$l.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 je(t)==="object"&&!$l.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(qx.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(YF())},hex:function(t){return typeof t=="string"&&!!t.match(qx.hex)}},KF=function(t,n,r,o,i){if(t.required&&n===void 0){Ux(t,n,r,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;a.indexOf(l)>-1?$l[l](n)||o.push(cr(i.messages.types[l],t.fullField,t.type)):l&&je(n)!==t.type&&o.push(cr(i.messages.types[l],t.fullField,t.type))},ZF=function(t,n,r,o,i){(/^\s+$/.test(n)||n==="")&&o.push(cr(i.messages.whitespace,t.fullField))};const ct={required:Ux,whitespace:ZF,type:KF,range:XF,enum:qF,pattern:GF};var QF=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(gn(n)&&!t.required)return r();ct.required(t,n,o,a,i)}r(a)},JF=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();ct.required(t,n,o,a,i,"array"),n!=null&&(ct.type(t,n,o,a,i),ct.range(t,n,o,a,i))}r(a)},eL=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(gn(n)&&!t.required)return r();ct.required(t,n,o,a,i),n!==void 0&&ct.type(t,n,o,a,i)}r(a)},tL=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(gn(n,"date")&&!t.required)return r();if(ct.required(t,n,o,a,i),!gn(n,"date")){var u;n instanceof Date?u=n:u=new Date(n),ct.type(t,u,o,a,i),u&&ct.range(t,u.getTime(),o,a,i)}}r(a)},nL="enum",rL=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(gn(n)&&!t.required)return r();ct.required(t,n,o,a,i),n!==void 0&&ct[nL](t,n,o,a,i)}r(a)},oL=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(gn(n)&&!t.required)return r();ct.required(t,n,o,a,i),n!==void 0&&(ct.type(t,n,o,a,i),ct.range(t,n,o,a,i))}r(a)},iL=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(gn(n)&&!t.required)return r();ct.required(t,n,o,a,i),n!==void 0&&(ct.type(t,n,o,a,i),ct.range(t,n,o,a,i))}r(a)},aL=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(gn(n)&&!t.required)return r();ct.required(t,n,o,a,i),n!==void 0&&ct.type(t,n,o,a,i)}r(a)},sL=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),gn(n)&&!t.required)return r();ct.required(t,n,o,a,i),n!==void 0&&(ct.type(t,n,o,a,i),ct.range(t,n,o,a,i))}r(a)},lL=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(gn(n)&&!t.required)return r();ct.required(t,n,o,a,i),n!==void 0&&ct.type(t,n,o,a,i)}r(a)},cL=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(gn(n,"string")&&!t.required)return r();ct.required(t,n,o,a,i),gn(n,"string")||ct.pattern(t,n,o,a,i)}r(a)},uL=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(gn(n)&&!t.required)return r();ct.required(t,n,o,a,i),gn(n)||ct.type(t,n,o,a,i)}r(a)},dL=function(t,n,r,o,i){var a=[],l=Array.isArray(n)?"array":je(n);ct.required(t,n,o,a,i,l),r(a)},fL=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(gn(n,"string")&&!t.required)return r();ct.required(t,n,o,a,i,"string"),gn(n,"string")||(ct.type(t,n,o,a,i),ct.range(t,n,o,a,i),ct.pattern(t,n,o,a,i),t.whitespace===!0&&ct.whitespace(t,n,o,a,i))}r(a)},Up=function(t,n,r,o,i){var a=t.type,l=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(gn(n,a)&&!t.required)return r();ct.required(t,n,o,l,i,a),gn(n,a)||ct.type(t,n,o,l,i)}r(l)};const _l={string:fL,method:aL,number:sL,boolean:eL,regexp:uL,integer:iL,float:oL,array:JF,object:lL,enum:rL,pattern:cL,date:tL,url:Up,hex:Up,email:Up,required:dL,any:QF};var Ol=function(){function e(t){Zt(this,e),re(this,"rules",null),re(this,"_messages",Hp),this.define(t)}return Qt(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(je(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(o){var i=n[o];r.rules[o]=Array.isArray(i)?i:[i]})}},{key:"messages",value:function(n){return n&&(this._messages=Wx(Vp(),n)),this._messages}},{key:"validate",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=n,l=o,u=i;if(typeof l=="function"&&(u=l,l={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,a),Promise.resolve(a);function d(b){var C=[],y={};function x(w){if(Array.isArray(w)){var E;C=(E=C).concat.apply(E,Oe(w))}else C.push(w)}for(var $=0;$<b.length;$++)x(b[$]);C.length?(y=Wp(C),u(C,y)):u(null,a)}if(l.messages){var f=this.messages();f===Hp&&(f=Vp()),Wx(f,l.messages),l.messages=f}else l.messages=this.messages();var g={},p=l.keys||Object.keys(this.rules);p.forEach(function(b){var C=r.rules[b],y=a[b];C.forEach(function(x){var $=x;typeof $.transform=="function"&&(a===n&&(a=le({},a)),y=a[b]=$.transform(y),y!=null&&($.type=$.type||(Array.isArray(y)?"array":je(y)))),typeof $=="function"?$={validator:$}:$=le({},$),$.validator=r.getValidationMethod($),$.validator&&($.field=b,$.fullField=$.fullField||b,$.type=r.getType($),g[b]=g[b]||[],g[b].push({rule:$,value:y,source:a,field:b}))})});var m={};return kF(g,l,function(b,C){var y=b.rule,x=(y.type==="object"||y.type==="array")&&(je(y.fields)==="object"||je(y.defaultField)==="object");x=x&&(y.required||!y.required&&b.value),y.field=b.field;function $(_,P){return le(le({},P),{},{fullField:"".concat(y.fullField,".").concat(_),fullFields:y.fullFields?[].concat(Oe(y.fullFields),[_]):[_]})}function w(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],P=Array.isArray(_)?_:[_];!l.suppressWarning&&P.length&&e.warning("async-validator:",P),P.length&&y.message!==void 0&&(P=[].concat(y.message));var T=P.map(kx(y,a));if(l.first&&T.length)return m[y.field]=1,C(T);if(!x)C(T);else{if(y.required&&!b.value)return y.message!==void 0?T=[].concat(y.message).map(kx(y,a)):l.error&&(T=[l.error(y,cr(l.messages.required,y.field))]),C(T);var L={};y.defaultField&&Object.keys(b.value).map(function(j){L[j]=y.defaultField}),L=le(le({},L),b.rule.fields);var z={};Object.keys(L).forEach(function(j){var I=L[j],F=Array.isArray(I)?I:[I];z[j]=F.map($.bind(null,j))});var B=new e(z);B.messages(l.messages),b.rule.options&&(b.rule.options.messages=l.messages,b.rule.options.error=l.error),B.validate(b.value,b.rule.options||l,function(j){var I=[];T&&T.length&&I.push.apply(I,Oe(T)),j&&j.length&&I.push.apply(I,Oe(j)),C(I.length?I:null)})}}var E;if(y.asyncValidator)E=y.asyncValidator(y,b.value,w,b.source,l);else if(y.validator){try{E=y.validator(y,b.value,w,b.source,l)}catch(_){var S,O;(S=(O=console).error)===null||S===void 0||S.call(O,_),l.suppressValidatorError||setTimeout(function(){throw _},0),w(_.message)}E===!0?w():E===!1?w(typeof y.message=="function"?y.message(y.fullField||y.field):y.message||"".concat(y.fullField||y.field," fails")):E instanceof Array?w(E):E instanceof Error&&w(E.message)}E&&E.then&&E.then(function(){return w()},function(_){return w(_)})},function(b){d(b)},a)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!_l.hasOwnProperty(n.type))throw new Error(cr("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),o=r.indexOf("message");return o!==-1&&r.splice(o,1),r.length===1&&r[0]==="required"?_l.required:_l[this.getType(n)]||void 0}}]),e}();re(Ol,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");_l[t]=n}),re(Ol,"warning",Bx),re(Ol,"messages",Hp),re(Ol,"validators",_l);var ur="'${name}' is not a valid ${type}",Gx={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:ur,method:ur,array:ur,object:ur,number:ur,date:ur,boolean:ur,integer:ur,float:ur,regexp:ur,email:ur,url:ur,hex:ur},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}"}},Xx=Ol;function gL(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 Yx="CODE_LOGIC_ERROR";function qp(e,t,n,r,o){return Gp.apply(this,arguments)}function Gp(){return Gp=zn(bt().mark(function e(t,n,r,o,i){var a,l,u,d,f,g,p,m,b;return bt().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return a=le({},r),delete a.ruleIndex,Xx.warning=function(){},a.validator&&(l=a.validator,a.validator=function(){try{return l.apply(void 0,arguments)}catch(x){return console.error(x),Promise.reject(Yx)}}),u=null,a&&a.type==="array"&&a.defaultField&&(u=a.defaultField,delete a.defaultField),d=new Xx(re({},t,[a])),f=Qa(Gx,o.validateMessages),d.messages(f),g=[],y.prev=10,y.next=13,Promise.resolve(d.validate(re({},t,n),le({},o)));case 13:y.next=18;break;case 15:y.prev=15,y.t0=y.catch(10),y.t0.errors&&(g=y.t0.errors.map(function(x,$){var w=x.message,E=w===Yx?f.default:w;return h.isValidElement(E)?h.cloneElement(E,{key:"error_".concat($)}):E}));case 18:if(!(!g.length&&u)){y.next=23;break}return y.next=21,Promise.all(n.map(function(x,$){return qp("".concat(t,".").concat($),x,u,o,i)}));case 21:return p=y.sent,y.abrupt("return",p.reduce(function(x,$){return[].concat(Oe(x),Oe($))},[]));case 23:return m=le(le({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),b=g.map(function(x){return typeof x=="string"?gL(x,m):x}),y.abrupt("return",b);case 26:case"end":return y.stop()}},e,null,[[10,15]])})),Gp.apply(this,arguments)}function pL(e,t,n,r,o,i){var a=e.join("."),l=n.map(function(f,g){var p=f.validator,m=le(le({},f),{},{ruleIndex:g});return p&&(m.validator=function(b,C,y){var x=!1,$=function(){for(var S=arguments.length,O=new Array(S),_=0;_<S;_++)O[_]=arguments[_];Promise.resolve().then(function(){zt(!x,"Your validator function has already return a promise. `callback` will be ignored."),x||y.apply(void 0,O)})},w=p(b,C,$);x=w&&typeof w.then=="function"&&typeof w.catch=="function",zt(x,"`callback` is deprecated. Please return a promise instead."),x&&w.then(function(){y()}).catch(function(E){y(E||" ")})}),m}).sort(function(f,g){var p=f.warningOnly,m=f.ruleIndex,b=g.warningOnly,C=g.ruleIndex;return!!p==!!b?m-C:p?1:-1}),u;if(o===!0)u=new Promise(function(){var f=zn(bt().mark(function g(p,m){var b,C,y;return bt().wrap(function($){for(;;)switch($.prev=$.next){case 0:b=0;case 1:if(!(b<l.length)){$.next=12;break}return C=l[b],$.next=5,qp(a,t,C,r,i);case 5:if(y=$.sent,!y.length){$.next=9;break}return m([{errors:y,rule:C}]),$.abrupt("return");case 9:b+=1,$.next=1;break;case 12:p([]);case 13:case"end":return $.stop()}},g)}));return function(g,p){return f.apply(this,arguments)}}());else{var d=l.map(function(f){return qp(a,t,f,r,i).then(function(g){return{errors:g,rule:f}})});u=(o?mL(d):hL(d)).then(function(f){return Promise.reject(f)})}return u.catch(function(f){return f}),u}function hL(e){return Xp.apply(this,arguments)}function Xp(){return Xp=zn(bt().mark(function e(t){return bt().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(o){var i,a=(i=[]).concat.apply(i,Oe(o));return a}));case 1:case"end":return r.stop()}},e)})),Xp.apply(this,arguments)}function mL(e){return Yp.apply(this,arguments)}function Yp(){return Yp=zn(bt().mark(function e(t){var n;return bt().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return n=0,o.abrupt("return",new Promise(function(i){t.forEach(function(a){a.then(function(l){l.errors.length&&i([l]),n+=1,n===t.length&&i([])})})}));case 2:case"end":return o.stop()}},e)})),Yp.apply(this,arguments)}function en(e){return Bp(e)}function Kx(e,t){var n={};return t.forEach(function(r){var o=Er(e,r);n=$r(n,r,o)}),n}function is(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return Zx(t,r,n)})}function Zx(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,o){return e[o]===r})}function vL(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||je(e)!=="object"||je(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return Oe(o).every(function(i){var a=e[i],l=t[i];return typeof a=="function"&&typeof l=="function"?!0:a===l})}function yL(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&je(t.target)==="object"&&e in t.target?t.target[e]:t}function Qx(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(Oe(e.slice(0,n)),[o],Oe(e.slice(n,t)),Oe(e.slice(t+1,r))):i<0?[].concat(Oe(e.slice(0,t)),Oe(e.slice(t+1,n+1)),[o],Oe(e.slice(n+1,r))):e}var bL=["name"],Pr=[];function Kp(e,t,n,r,o,i){return typeof e=="function"?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var Zp=function(e){Yr(n,e);var t=yo(n);function n(r){var o;if(Zt(this,n),o=t.call(this,r),re(He(o),"state",{resetCount:0}),re(He(o),"cancelRegisterFunc",null),re(He(o),"mounted",!1),re(He(o),"touched",!1),re(He(o),"dirty",!1),re(He(o),"validatePromise",void 0),re(He(o),"prevValidating",void 0),re(He(o),"errors",Pr),re(He(o),"warnings",Pr),re(He(o),"cancelRegister",function(){var u=o.props,d=u.preserve,f=u.isListField,g=u.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(f,d,en(g)),o.cancelRegisterFunc=null}),re(He(o),"getNamePath",function(){var u=o.props,d=u.name,f=u.fieldContext,g=f.prefixName,p=g===void 0?[]:g;return d!==void 0?[].concat(Oe(p),Oe(d)):[]}),re(He(o),"getRules",function(){var u=o.props,d=u.rules,f=d===void 0?[]:d,g=u.fieldContext;return f.map(function(p){return typeof p=="function"?p(g):p})}),re(He(o),"refresh",function(){o.mounted&&o.setState(function(u){var d=u.resetCount;return{resetCount:d+1}})}),re(He(o),"metaCache",null),re(He(o),"triggerMetaEvent",function(u){var d=o.props.onMetaChange;if(d){var f=le(le({},o.getMeta()),{},{destroy:u});Lg(o.metaCache,f)||d(f),o.metaCache=f}else o.metaCache=null}),re(He(o),"onStoreChange",function(u,d,f){var g=o.props,p=g.shouldUpdate,m=g.dependencies,b=m===void 0?[]:m,C=g.onReset,y=f.store,x=o.getNamePath(),$=o.getValue(u),w=o.getValue(y),E=d&&is(d,x);switch(f.type==="valueUpdate"&&f.source==="external"&&!Lg($,w)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Pr,o.warnings=Pr,o.triggerMetaEvent()),f.type){case"reset":if(!d||E){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Pr,o.warnings=Pr,o.triggerMetaEvent(),C==null||C(),o.refresh();return}break;case"remove":{if(p&&Kp(p,u,y,$,w,f)){o.reRender();return}break}case"setField":{var S=f.data;if(E){"touched"in S&&(o.touched=S.touched),"validating"in S&&!("originRCField"in S)&&(o.validatePromise=S.validating?Promise.resolve([]):null),"errors"in S&&(o.errors=S.errors||Pr),"warnings"in S&&(o.warnings=S.warnings||Pr),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in S&&is(d,x,!0)){o.reRender();return}if(p&&!x.length&&Kp(p,u,y,$,w,f)){o.reRender();return}break}case"dependenciesUpdate":{var O=b.map(en);if(O.some(function(_){return is(f.relatedFields,_)})){o.reRender();return}break}default:if(E||(!b.length||x.length||p)&&Kp(p,u,y,$,w,f)){o.reRender();return}break}p===!0&&o.reRender()}),re(He(o),"validateRules",function(u){var d=o.getNamePath(),f=o.getValue(),g=u||{},p=g.triggerName,m=g.validateOnly,b=m===void 0?!1:m,C=Promise.resolve().then(zn(bt().mark(function y(){var x,$,w,E,S,O,_;return bt().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(o.mounted){T.next=2;break}return T.abrupt("return",[]);case 2:if(x=o.props,$=x.validateFirst,w=$===void 0?!1:$,E=x.messageVariables,S=x.validateDebounce,O=o.getRules(),p&&(O=O.filter(function(L){return L}).filter(function(L){var z=L.validateTrigger;if(!z)return!0;var B=Bp(z);return B.includes(p)})),!(S&&p)){T.next=10;break}return T.next=8,new Promise(function(L){setTimeout(L,S)});case 8:if(o.validatePromise===C){T.next=10;break}return T.abrupt("return",[]);case 10:return _=pL(d,f,O,u,w,E),_.catch(function(L){return L}).then(function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Pr;if(o.validatePromise===C){var z;o.validatePromise=null;var B=[],j=[];(z=L.forEach)===null||z===void 0||z.call(L,function(I){var F=I.rule.warningOnly,A=I.errors,D=A===void 0?Pr:A;F?j.push.apply(j,Oe(D)):B.push.apply(B,Oe(D))}),o.errors=B,o.warnings=j,o.triggerMetaEvent(),o.reRender()}}),T.abrupt("return",_);case 13:case"end":return T.stop()}},y)})));return b||(o.validatePromise=C,o.dirty=!0,o.errors=Pr,o.warnings=Pr,o.triggerMetaEvent(),o.reRender()),C}),re(He(o),"isFieldValidating",function(){return!!o.validatePromise}),re(He(o),"isFieldTouched",function(){return o.touched}),re(He(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var u=o.props.fieldContext,d=u.getInternalHooks(aa),f=d.getInitialValue;return f(o.getNamePath())!==void 0}),re(He(o),"getErrors",function(){return o.errors}),re(He(o),"getWarnings",function(){return o.warnings}),re(He(o),"isListField",function(){return o.props.isListField}),re(He(o),"isList",function(){return o.props.isList}),re(He(o),"isPreserve",function(){return o.props.preserve}),re(He(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var u={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return u}),re(He(o),"getOnlyChild",function(u){if(typeof u=="function"){var d=o.getMeta();return le(le({},o.getOnlyChild(u(o.getControlled(),d,o.props.fieldContext))),{},{isFunction:!0})}var f=zo(u);return f.length!==1||!h.isValidElement(f[0])?{child:f,isFunction:!1}:{child:f[0],isFunction:!1}}),re(He(o),"getValue",function(u){var d=o.props.fieldContext.getFieldsValue,f=o.getNamePath();return Er(u||d(!0),f)}),re(He(o),"getControlled",function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=o.props,f=d.name,g=d.trigger,p=d.validateTrigger,m=d.getValueFromEvent,b=d.normalize,C=d.valuePropName,y=d.getValueProps,x=d.fieldContext,$=p!==void 0?p:x.validateTrigger,w=o.getNamePath(),E=x.getInternalHooks,S=x.getFieldsValue,O=E(aa),_=O.dispatch,P=o.getValue(),T=y||function(I){return re({},C,I)},L=u[g],z=f!==void 0?T(P):{};process.env.NODE_ENV!=="production"&&z&&Object.keys(z).forEach(function(I){zt(typeof z[I]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(I,")"))});var B=le(le({},u),z);B[g]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var I,F=arguments.length,A=new Array(F),D=0;D<F;D++)A[D]=arguments[D];m?I=m.apply(void 0,A):I=yL.apply(void 0,[C].concat(A)),b&&(I=b(I,P,S(!0))),I!==P&&_({type:"updateValue",namePath:w,value:I}),L&&L.apply(void 0,A)};var j=Bp($||[]);return j.forEach(function(I){var F=B[I];B[I]=function(){F&&F.apply(void 0,arguments);var A=o.props.rules;A&&A.length&&_({type:"validateField",namePath:w,triggerName:I})}}),B}),r.fieldContext){var i=r.fieldContext.getInternalHooks,a=i(aa),l=a.initEntityValue;l(He(o))}return o}return Qt(n,[{key:"componentDidMount",value:function(){var o=this.props,i=o.shouldUpdate,a=o.fieldContext;if(this.mounted=!0,a){var l=a.getInternalHooks,u=l(aa),d=u.registerField;this.cancelRegisterFunc=d(this)}i===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var o=this.state.resetCount,i=this.props.children,a=this.getOnlyChild(i),l=a.child,u=a.isFunction,d;return u?d=l:h.isValidElement(l)?d=h.cloneElement(l,this.getControlled(l.props)):(zt(!l,"`children` of Field is not validate ReactElement."),d=l),h.createElement(h.Fragment,{key:o},d)}}]),n}(h.Component);re(Zp,"contextType",sa),re(Zp,"defaultProps",{trigger:"onChange",valuePropName:"value"});function Qp(e){var t,n=e.name,r=sn(e,bL),o=h.useContext(sa),i=h.useContext(El),a=n!==void 0?en(n):void 0,l=(t=r.isListField)!==null&&t!==void 0?t:!!i,u="keep";return l||(u="_".concat((a||[]).join("_"))),process.env.NODE_ENV!=="production"&&r.preserve===!1&&l&&a.length<=1&&zt(!1,"`preserve` should not apply on Form.List fields."),h.createElement(Zp,Le({key:u,name:a,isListField:l},r,{fieldContext:o}))}function Jx(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,i=e.validateTrigger,a=e.isListField,l=h.useContext(sa),u=h.useContext(El),d=h.useRef({keys:[],id:0}),f=d.current,g=h.useMemo(function(){var C=en(l.prefixName)||[];return[].concat(Oe(C),Oe(en(t)))},[l.prefixName,t]),p=h.useMemo(function(){return le(le({},l),{},{prefixName:g})},[l,g]),m=h.useMemo(function(){return{getKey:function(y){var x=g.length,$=y[x];return[f.keys[$],y.slice(x+1)]}}},[g]);if(typeof r!="function")return zt(!1,"Form.List only accepts function as children."),null;var b=function(y,x,$){var w=$.source;return w==="internal"?!1:y!==x};return h.createElement(El.Provider,{value:m},h.createElement(sa.Provider,{value:p},h.createElement(Qp,{name:[],shouldUpdate:b,rules:o,validateTrigger:i,initialValue:n,isList:!0,isListField:a??!!u},function(C,y){var x=C.value,$=x===void 0?[]:x,w=C.onChange,E=l.getFieldValue,S=function(){var T=E(g||[]);return T||[]},O={add:function(T,L){var z=S();L>=0&&L<=z.length?(f.keys=[].concat(Oe(f.keys.slice(0,L)),[f.id],Oe(f.keys.slice(L))),w([].concat(Oe(z.slice(0,L)),[T],Oe(z.slice(L))))):(process.env.NODE_ENV!=="production"&&(L<0||L>z.length)&&zt(!1,"The second parameter of the add function should be a valid positive number."),f.keys=[].concat(Oe(f.keys),[f.id]),w([].concat(Oe(z),[T]))),f.id+=1},remove:function(T){var L=S(),z=new Set(Array.isArray(T)?T:[T]);z.size<=0||(f.keys=f.keys.filter(function(B,j){return!z.has(j)}),w(L.filter(function(B,j){return!z.has(j)})))},move:function(T,L){if(T!==L){var z=S();T<0||T>=z.length||L<0||L>=z.length||(f.keys=Qx(f.keys,T,L),w(Qx(z,T,L)))}}},_=$||[];return Array.isArray(_)||(_=[],process.env.NODE_ENV!=="production"&&zt(!1,"Current value of '".concat(g.join(" > "),"' is not an array type."))),r(_.map(function(P,T){var L=f.keys[T];return L===void 0&&(f.keys[T]=f.id,L=f.keys[T],f.id+=1),{name:T,key:L,isListField:!0}}),O,y)})))}function CL(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,i){e.forEach(function(a,l){a.catch(function(u){return t=!0,u}).then(function(u){n-=1,r[l]=u,!(n>0)&&(t&&i(r),o(r))})})}):Promise.resolve([])}var ew="__@field_split__";function Jp(e){return e.map(function(t){return"".concat(je(t),":").concat(t)}).join(ew)}var as=function(){function e(){Zt(this,e),re(this,"kvs",new Map)}return Qt(e,[{key:"set",value:function(n,r){this.kvs.set(Jp(n),r)}},{key:"get",value:function(n){return this.kvs.get(Jp(n))}},{key:"update",value:function(n,r){var o=this.get(n),i=r(o);i?this.set(n,i):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(Jp(n))}},{key:"map",value:function(n){return Oe(this.kvs.entries()).map(function(r){var o=Ee(r,2),i=o[0],a=o[1],l=i.split(ew);return n({key:l.map(function(u){var d=u.match(/^([^:]*):(.*)$/),f=Ee(d,3),g=f[1],p=f[2];return g==="number"?Number(p):p}),value:a})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,i=r.value;return n[o.join(".")]=i,null}),n}}]),e}(),xL=["name"],wL=Qt(function e(t){var n=this;Zt(this,e),re(this,"formHooked",!1),re(this,"forceRootUpdate",void 0),re(this,"subscribable",!0),re(this,"store",{}),re(this,"fieldEntities",[]),re(this,"initialValues",{}),re(this,"callbacks",{}),re(this,"validateMessages",null),re(this,"preserve",null),re(this,"lastValidatePromise",null),re(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}}),re(this,"getInternalHooks",function(r){return r===aa?(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}):(zt(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),re(this,"useSubscribe",function(r){n.subscribable=r}),re(this,"prevWithoutPreserves",null),re(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var i,a=Qa(r,n.store);(i=n.prevWithoutPreserves)===null||i===void 0||i.map(function(l){var u=l.key;a=$r(a,u,Er(r,u))}),n.prevWithoutPreserves=null,n.updateStore(a)}}),re(this,"destroyForm",function(r){if(r)n.updateStore({});else{var o=new as;n.getFieldEntities(!0).forEach(function(i){n.isMergedPreserve(i.isPreserve())||o.set(i.getNamePath(),!0)}),n.prevWithoutPreserves=o}}),re(this,"getInitialValue",function(r){var o=Er(n.initialValues,r);return r.length?Qa(o):o}),re(this,"setCallbacks",function(r){n.callbacks=r}),re(this,"setValidateMessages",function(r){n.validateMessages=r}),re(this,"setPreserve",function(r){n.preserve=r}),re(this,"watchList",[]),re(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),re(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),i=n.getFieldsValue(!0);n.watchList.forEach(function(a){a(o,i,r)})}}),re(this,"timeoutId",null),re(this,"warningUnhooked",function(){process.env.NODE_ENV!=="production"&&!n.timeoutId&&typeof window<"u"&&(n.timeoutId=setTimeout(function(){n.timeoutId=null,n.formHooked||zt(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),re(this,"updateStore",function(r){n.store=r}),re(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(o){return o.getNamePath().length}):n.fieldEntities}),re(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new as;return n.getFieldEntities(r).forEach(function(i){var a=i.getNamePath();o.set(a,i)}),o}),re(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(i){var a=en(i);return o.get(a)||{INVALIDATE_NAME_PATH:en(i)}})}),re(this,"getFieldsValue",function(r,o){n.warningUnhooked();var i,a,l;if(r===!0||Array.isArray(r)?(i=r,a=o):r&&je(r)==="object"&&(l=r.strict,a=r.filter),i===!0&&!a)return n.store;var u=n.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),d=[];return u.forEach(function(f){var g,p,m="INVALIDATE_NAME_PATH"in f?f.INVALIDATE_NAME_PATH:f.getNamePath();if(l){var b,C;if((b=(C=f).isList)!==null&&b!==void 0&&b.call(C))return}else if(!i&&(g=(p=f).isListField)!==null&&g!==void 0&&g.call(p))return;if(!a)d.push(m);else{var y="getMeta"in f?f.getMeta():null;a(y)&&d.push(m)}}),Kx(n.store,d.map(en))}),re(this,"getFieldValue",function(r){n.warningUnhooked();var o=en(r);return Er(n.store,o)}),re(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(i,a){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:en(r[a]),errors:[],warnings:[]}})}),re(this,"getFieldError",function(r){n.warningUnhooked();var o=en(r),i=n.getFieldsError([o])[0];return i.errors}),re(this,"getFieldWarning",function(r){n.warningUnhooked();var o=en(r),i=n.getFieldsError([o])[0];return i.warnings}),re(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o[0],l=o[1],u,d=!1;o.length===0?u=null:o.length===1?Array.isArray(a)?(u=a.map(en),d=!1):(u=null,d=a):(u=a.map(en),d=l);var f=n.getFieldEntities(!0),g=function(y){return y.isFieldTouched()};if(!u)return d?f.every(function(C){return g(C)||C.isList()}):f.some(g);var p=new as;u.forEach(function(C){p.set(C,[])}),f.forEach(function(C){var y=C.getNamePath();u.forEach(function(x){x.every(function($,w){return y[w]===$})&&p.update(x,function($){return[].concat(Oe($),[C])})})});var m=function(y){return y.some(g)},b=p.map(function(C){var y=C.value;return y});return d?b.every(m):b.some(m)}),re(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),re(this,"isFieldsValidating",function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(a){return a.isFieldValidating()});var i=r.map(en);return o.some(function(a){var l=a.getNamePath();return is(i,l)&&a.isFieldValidating()})}),re(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),re(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new as,i=n.getFieldEntities(!0);i.forEach(function(u){var d=u.props.initialValue,f=u.getNamePath();if(d!==void 0){var g=o.get(f)||new Set;g.add({entity:u,value:d}),o.set(f,g)}});var a=function(d){d.forEach(function(f){var g=f.props.initialValue;if(g!==void 0){var p=f.getNamePath(),m=n.getInitialValue(p);if(m!==void 0)zt(!1,"Form already set 'initialValues' with path '".concat(p.join("."),"'. Field can not overwrite it."));else{var b=o.get(p);if(b&&b.size>1)zt(!1,"Multiple Field with path '".concat(p.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(b){var C=n.getFieldValue(p),y=f.isListField();!y&&(!r.skipExist||C===void 0)&&n.updateStore($r(n.store,p,Oe(b)[0].value))}}}})},l;r.entities?l=r.entities:r.namePathList?(l=[],r.namePathList.forEach(function(u){var d=o.get(u);if(d){var f;(f=l).push.apply(f,Oe(Oe(d).map(function(g){return g.entity})))}})):l=i,a(l)}),re(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(Qa(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var i=r.map(en);i.forEach(function(a){var l=n.getInitialValue(a);n.updateStore($r(n.store,a,l))}),n.resetWithFieldInitialValue({namePathList:i}),n.notifyObservers(o,i,{type:"reset"}),n.notifyWatch(i)}),re(this,"setFields",function(r){n.warningUnhooked();var o=n.store,i=[];r.forEach(function(a){var l=a.name,u=sn(a,xL),d=en(l);i.push(d),"value"in u&&n.updateStore($r(n.store,d,u.value)),n.notifyObservers(o,[d],{type:"setField",data:a})}),n.notifyWatch(i)}),re(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(i){var a=i.getNamePath(),l=i.getMeta(),u=le(le({},l),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(u,"originRCField",{value:!0}),u});return o}),re(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var i=r.getNamePath(),a=Er(n.store,i);a===void 0&&n.updateStore($r(n.store,i,o))}}),re(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),re(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var i=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(i,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,l){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(g){return g!==r}),!n.isMergedPreserve(l)&&(!a||u.length>1)){var d=a?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==d&&n.fieldEntities.every(function(g){return!Zx(g.getNamePath(),o)})){var f=n.store;n.updateStore($r(f,o,d,!0)),n.notifyObservers(f,[o],{type:"remove"}),n.triggerDependenciesUpdate(f,o)}}n.notifyWatch([o])}}),re(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,i=r.value;n.updateValue(o,i);break}case"validateField":{var a=r.namePath,l=r.triggerName;n.validateFields([a],{triggerName:l});break}}}),re(this,"notifyObservers",function(r,o,i){if(n.subscribable){var a=le(le({},i),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(l){var u=l.onStoreChange;u(r,o,a)})}else n.forceRootUpdate()}),re(this,"triggerDependenciesUpdate",function(r,o){var i=n.getDependencyChildrenFields(o);return i.length&&n.validateFields(i),n.notifyObservers(r,i,{type:"dependenciesUpdate",relatedFields:[o].concat(Oe(i))}),i}),re(this,"updateValue",function(r,o){var i=en(r),a=n.store;n.updateStore($r(n.store,i,o)),n.notifyObservers(a,[i],{type:"valueUpdate",source:"internal"}),n.notifyWatch([i]);var l=n.triggerDependenciesUpdate(a,i),u=n.callbacks.onValuesChange;if(u){var d=Kx(n.store,[i]);u(d,n.getFieldsValue())}n.triggerOnFieldsChange([i].concat(Oe(l)))}),re(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var i=Qa(n.store,r);n.updateStore(i)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),re(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o,errors:[],warnings:[]}])}),re(this,"getDependencyChildrenFields",function(r){var o=new Set,i=[],a=new as;n.getFieldEntities().forEach(function(u){var d=u.props.dependencies;(d||[]).forEach(function(f){var g=en(f);a.update(g,function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return p.add(u),p})})});var l=function u(d){var f=a.get(d)||new Set;f.forEach(function(g){if(!o.has(g)){o.add(g);var p=g.getNamePath();g.isFieldDirty()&&p.length&&(i.push(p),u(p))}})};return l(r),i}),re(this,"triggerOnFieldsChange",function(r,o){var i=n.callbacks.onFieldsChange;if(i){var a=n.getFields();if(o){var l=new as;o.forEach(function(d){var f=d.name,g=d.errors;l.set(f,g)}),a.forEach(function(d){d.errors=l.get(d.name)||d.errors})}var u=a.filter(function(d){var f=d.name;return is(r,f)});u.length&&i(u,a)}}),re(this,"validateFields",function(r,o){n.warningUnhooked();var i,a;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(i=r,a=o):a=r;var l=!!i,u=l?i.map(en):[],d=[],f=String(Date.now()),g=new Set,p=a||{},m=p.recursive,b=p.dirty;n.getFieldEntities(!0).forEach(function($){if(l||u.push($.getNamePath()),!(!$.props.rules||!$.props.rules.length)&&!(b&&!$.isFieldDirty())){var w=$.getNamePath();if(g.add(w.join(f)),!l||is(u,w,m)){var E=$.validateRules(le({validateMessages:le(le({},Gx),n.validateMessages)},a));d.push(E.then(function(){return{name:w,errors:[],warnings:[]}}).catch(function(S){var O,_=[],P=[];return(O=S.forEach)===null||O===void 0||O.call(S,function(T){var L=T.rule.warningOnly,z=T.errors;L?P.push.apply(P,Oe(z)):_.push.apply(_,Oe(z))}),_.length?Promise.reject({name:w,errors:_,warnings:P}):{name:w,errors:_,warnings:P}}))}}});var C=CL(d);n.lastValidatePromise=C,C.catch(function($){return $}).then(function($){var w=$.map(function(E){var S=E.name;return S});n.notifyObservers(n.store,w,{type:"validateFinish"}),n.triggerOnFieldsChange(w,$)});var y=C.then(function(){return n.lastValidatePromise===C?Promise.resolve(n.getFieldsValue(u)):Promise.reject([])}).catch(function($){var w=$.filter(function(E){return E&&E.errors.length});return Promise.reject({values:n.getFieldsValue(u),errorFields:w,outOfDate:n.lastValidatePromise!==C})});y.catch(function($){return $});var x=u.filter(function($){return g.has($.join(f))});return n.triggerOnFieldsChange(x),y}),re(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch(i){console.error(i)}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})}),this.forceRootUpdate=t});function eh(e){var t=h.useRef(),n=h.useState({}),r=Ee(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var i=function(){o({})},a=new wL(i);t.current=a.getForm()}return[t.current]}var th=h.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),tw=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,i=t.children,a=h.useContext(th),l=h.useRef({});return h.createElement(th.Provider,{value:le(le({},a),{},{validateMessages:le(le({},a.validateMessages),n),triggerFormChange:function(d,f){r&&r(d,{changedFields:f,forms:l.current}),a.triggerFormChange(d,f)},triggerFormFinish:function(d,f){o&&o(d,{values:f,forms:l.current}),a.triggerFormFinish(d,f)},registerForm:function(d,f){d&&(l.current=le(le({},l.current),{},re({},d,f))),a.registerForm(d,f)},unregisterForm:function(d){var f=le({},l.current);delete f[d],l.current=f,a.unregisterForm(d)}})},i)},SL=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],EL=function(t,n){var r=t.name,o=t.initialValues,i=t.fields,a=t.form,l=t.preserve,u=t.children,d=t.component,f=d===void 0?"form":d,g=t.validateMessages,p=t.validateTrigger,m=p===void 0?"onChange":p,b=t.onValuesChange,C=t.onFieldsChange,y=t.onFinish,x=t.onFinishFailed,$=t.clearOnDestroy,w=sn(t,SL),E=h.useRef(null),S=h.useContext(th),O=eh(a),_=Ee(O,1),P=_[0],T=P.getInternalHooks(aa),L=T.useSubscribe,z=T.setInitialValues,B=T.setCallbacks,j=T.setValidateMessages,I=T.setPreserve,F=T.destroyForm;h.useImperativeHandle(n,function(){return le(le({},P),{},{nativeElement:E.current})}),h.useEffect(function(){return S.registerForm(r,P),function(){S.unregisterForm(r)}},[S,P,r]),j(le(le({},S.validateMessages),g)),B({onValuesChange:b,onFieldsChange:function(G){if(S.triggerFormChange(r,G),C){for(var K=arguments.length,te=new Array(K>1?K-1:0),ie=1;ie<K;ie++)te[ie-1]=arguments[ie];C.apply(void 0,[G].concat(te))}},onFinish:function(G){S.triggerFormFinish(r,G),y&&y(G)},onFinishFailed:x}),I(l);var A=h.useRef(null);z(o,!A.current),A.current||(A.current=!0),h.useEffect(function(){return function(){return F($)}},[]);var D,V=typeof u=="function";if(V){var W=P.getFieldsValue(!0);D=u(W,P)}else D=u;L(!V);var H=h.useRef();h.useEffect(function(){vL(H.current||[],i||[])||P.setFields(i||[]),H.current=i},[i,P]);var q=h.useMemo(function(){return le(le({},P),{},{validateTrigger:m})},[P,m]),Z=h.createElement(El.Provider,{value:null},h.createElement(sa.Provider,{value:q},D));return f===!1?Z:h.createElement(f,Le({},w,{ref:E,onSubmit:function(G){G.preventDefault(),G.stopPropagation(),P.submit()},onReset:function(G){var K;G.preventDefault(),P.resetFields(),(K=w.onReset)===null||K===void 0||K.call(w,G)}}),Z)};function nw(e){try{return JSON.stringify(e)}catch{return Math.random()}}var $L=process.env.NODE_ENV!=="production"?function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__"),n=M.useRef(t);zt(n.current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function rw(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=o===void 0?{}:o,a=LF(i)?{form:i}:i,l=a.form,u=M.useState(),d=Ee(u,2),f=d[0],g=d[1],p=M.useMemo(function(){return nw(f)},[f]),m=M.useRef(p);m.current=p;var b=M.useContext(sa),C=l||b,y=C&&C._init;process.env.NODE_ENV!=="production"&&zt(t.length===2?l?y:!0:y,"useWatch requires a form instance since it can not auto detect from context.");var x=en(r),$=M.useRef(x);return $.current=x,$L(x),M.useEffect(function(){if(y){var w=C.getFieldsValue,E=C.getInternalHooks,S=E(aa),O=S.registerWatch,_=function(z,B){var j=a.preserve?B:z;return typeof r=="function"?r(j):Er(j,$.current)},P=O(function(L,z){var B=_(L,z),j=nw(B);m.current!==j&&(m.current=j,g(B))}),T=_(w(),w(!0));return f!==T&&g(T),P}},[y]),f}var _L=h.forwardRef(EL),ss=_L;ss.FormProvider=tw,ss.Field=Qp,ss.List=Jx,ss.useForm=eh,ss.useWatch=rw;const Go=h.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),ow=h.createContext(null),iw=e=>{const t=jn(e,["prefixCls"]);return h.createElement(tw,Object.assign({},t))},nh=h.createContext({prefixCls:""}),Yn=h.createContext({});process.env.NODE_ENV!=="production"&&(Yn.displayName="FormItemInputContext");const OL=({children:e,status:t,override:n})=>{const r=h.useContext(Yn),o=h.useMemo(()=>{const i=Object.assign({},r);return n&&delete i.isFormItemInput,t&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[t,n,r]);return h.createElement(Yn.Provider,{value:o},e)},aw=h.createContext(void 0),ed=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let o=r;return n&&(o=M.createElement(OL,{override:!0,status:!0},o)),t&&(o=M.createElement(a8,null,o)),o};function sw(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(t[r]=n[r])})}),t}function lw(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function cw(e){const{closable:t,closeIcon:n}=e||{};return M.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])}const NL={};function PL(e,t,n=NL){const r=cw(e),o=cw(t),[i]=Ei("global",Qr.global),a=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,l=M.useMemo(()=>Object.assign({closeIcon:M.createElement(ea,null)},n),[n]),u=M.useMemo(()=>r===!1?!1:r?sw(l,o,r):o===!1?!1:o?sw(l,o):l.closable?l:!1,[r,o,l]);return M.useMemo(()=>{if(u===!1)return[!1,null,a,{}];const{closeIconRender:d}=l,{closeIcon:f}=u;let g=f;const p=ts(u,!0);return g!=null&&(d&&(g=d(f)),g=M.isValidElement(g)?M.cloneElement(g,Object.assign({"aria-label":i.close},p)):M.createElement("span",Object.assign({"aria-label":i.close},p),g)),[!0,g,a,p]},[u,l])}var IL=function(t){if(On()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(o){return o in r.style})}return!1};function uw(e,t){return IL(e)}const TL=()=>On()&&window.document.documentElement,td=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:i}=e,a=ge({[`${t}-lg`]:o==="large",[`${t}-sm`]:o==="small"}),l=ge({[`${t}-circle`]:i==="circle",[`${t}-square`]:i==="square",[`${t}-round`]:i==="round"}),u=h.useMemo(()=>typeof o=="number"?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return h.createElement("span",{className:ge(t,a,l,n),style:Object.assign(Object.assign({},u),r)})},ML=new bn("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),nd=e=>({height:e,lineHeight:we(e)}),ls=e=>Object.assign({width:e},nd(e)),AL=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:ML,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),rh=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},nd(e)),DL=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},ls(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},ls(o)),[`${t}${t}-sm`]:Object.assign({},ls(i))}},FL=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},rh(t,l)),[`${r}-lg`]:Object.assign({},rh(o,l)),[`${r}-sm`]:Object.assign({},rh(i,l))}},dw=e=>Object.assign({width:e},nd(e)),LL=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:i}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:o},dw(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},dw(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},oh=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},ih=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},nd(e)),RL=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal()},ih(r,l))},oh(e,r,n)),{[`${n}-lg`]:Object.assign({},ih(o,l))}),oh(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},ih(i,l))}),oh(e,i,`${n}-sm`))},zL=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:l,controlHeight:u,controlHeightLG:d,controlHeightSM:f,gradientFromColor:g,padding:p,marginSM:m,borderRadius:b,titleHeight:C,blockRadius:y,paragraphLiHeight:x,controlHeightXS:$,paragraphMarginTop:w}=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:g},ls(u)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},ls(d)),[`${n}-sm`]:Object.assign({},ls(f))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:C,background:g,borderRadius:y,[`+ ${o}`]:{marginBlockStart:f}},[o]:{padding:0,"> li":{width:"100%",height:x,listStyle:"none",background:g,borderRadius:y,"+ li":{marginBlockStart:$}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:b}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:m,[`+ ${o}`]:{marginBlockStart:w}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},RL(e)),DL(e)),FL(e)),LL(e)),[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`
|
|
201
|
+
${r},
|
|
202
|
+
${o} > li,
|
|
203
|
+
${n},
|
|
204
|
+
${i},
|
|
205
|
+
${a},
|
|
206
|
+
${l}
|
|
207
|
+
`]:Object.assign({},AL(e))}}},cs=Jt("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=jt(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[zL(r)]},e=>{const{colorFillContent:t,colorFill:n}=e,r=t,o=n;return{color:r,colorGradientEnd:o,gradientFromColor:r,gradientToColor:o,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),jL=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:i="circle",size:a="default"}=e,{getPrefixCls:l}=h.useContext(et),u=l("skeleton",t),[d,f,g]=cs(u),p=jn(e,["prefixCls","className"]),m=ge(u,`${u}-element`,{[`${u}-active`]:o},n,r,f,g);return d(h.createElement("div",{className:m},h.createElement(td,Object.assign({prefixCls:`${u}-avatar`,shape:i,size:a},p))))},BL=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i=!1,size:a="default"}=e,{getPrefixCls:l}=h.useContext(et),u=l("skeleton",t),[d,f,g]=cs(u),p=jn(e,["prefixCls"]),m=ge(u,`${u}-element`,{[`${u}-active`]:o,[`${u}-block`]:i},n,r,f,g);return d(h.createElement("div",{className:m},h.createElement(td,Object.assign({prefixCls:`${u}-button`,size:a},p))))},VL="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",HL=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i}=e,{getPrefixCls:a}=h.useContext(et),l=a("skeleton",t),[u,d,f]=cs(l),g=ge(l,`${l}-element`,{[`${l}-active`]:i},n,r,d,f);return u(h.createElement("div",{className:g},h.createElement("div",{className:ge(`${l}-image`,n),style:o},h.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},h.createElement("title",null,"Image placeholder"),h.createElement("path",{d:VL,className:`${l}-image-path`})))))},kL=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i,size:a="default"}=e,{getPrefixCls:l}=h.useContext(et),u=l("skeleton",t),[d,f,g]=cs(u),p=jn(e,["prefixCls"]),m=ge(u,`${u}-element`,{[`${u}-active`]:o,[`${u}-block`]:i},n,r,f,g);return d(h.createElement("div",{className:m},h.createElement(td,Object.assign({prefixCls:`${u}-input`,size:a},p))))},WL=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i,children:a}=e,{getPrefixCls:l}=h.useContext(et),u=l("skeleton",t),[d,f,g]=cs(u),p=ge(u,`${u}-element`,{[`${u}-active`]:i},f,n,r,g);return d(h.createElement("div",{className:p},h.createElement("div",{className:ge(`${u}-image`,n),style:o},a)))},UL=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},qL=e=>{const{prefixCls:t,className:n,style:r,rows:o=0}=e,i=Array.from({length:o}).map((a,l)=>h.createElement("li",{key:l,style:{width:UL(l,e)}}));return h.createElement("ul",{className:ge(t,n),style:r},i)},GL=({prefixCls:e,className:t,width:n,style:r})=>h.createElement("h3",{className:ge(e,t),style:Object.assign({width:n},r)});function ah(e){return e&&typeof e=="object"?e:{}}function XL(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function YL(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function KL(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const la=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:i,children:a,avatar:l=!1,title:u=!0,paragraph:d=!0,active:f,round:g}=e,{getPrefixCls:p,direction:m,className:b,style:C}=lr("skeleton"),y=p("skeleton",t),[x,$,w]=cs(y);if(n||!("loading"in e)){const E=!!l,S=!!u,O=!!d;let _;if(E){const L=Object.assign(Object.assign({prefixCls:`${y}-avatar`},XL(S,O)),ah(l));_=h.createElement("div",{className:`${y}-header`},h.createElement(td,Object.assign({},L)))}let P;if(S||O){let L;if(S){const B=Object.assign(Object.assign({prefixCls:`${y}-title`},YL(E,O)),ah(u));L=h.createElement(GL,Object.assign({},B))}let z;if(O){const B=Object.assign(Object.assign({prefixCls:`${y}-paragraph`},KL(E,S)),ah(d));z=h.createElement(qL,Object.assign({},B))}P=h.createElement("div",{className:`${y}-content`},L,z)}const T=ge(y,{[`${y}-with-avatar`]:E,[`${y}-active`]:f,[`${y}-rtl`]:m==="rtl",[`${y}-round`]:g},b,r,o,$,w);return x(h.createElement("div",{className:T,style:Object.assign(Object.assign({},C),i)},_,P))}return a??null};la.Button=BL,la.Avatar=jL,la.Input=kL,la.Image=HL,la.Node=WL,process.env.NODE_ENV!=="production"&&(la.displayName="Skeleton");function fw(){}const ZL=h.createContext({add:fw,remove:fw});function QL(e){const t=h.useContext(ZL),n=h.useRef(null);return fn(o=>{if(o){const i=e?o.querySelector(e):o;t.add(i),n.current=i}else t.remove(n.current)})}const gw=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=M.useContext(Sl);return M.createElement(cn,Object.assign({onClick:n},e),t)},pw=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=M.useContext(Sl);return M.createElement(cn,Object.assign({},Pp(n),{loading:e,onClick:o},t),r)};function hw(e,t){return M.createElement("span",{className:`${e}-close-x`},t||M.createElement(ea,{className:`${e}-close-icon`}))}const mw=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:i,onCancel:a,okButtonProps:l,cancelButtonProps:u,footer:d}=e,[f]=Ei("Modal",Q1()),g=t||(f==null?void 0:f.okText),p=r||(f==null?void 0:f.cancelText),m={confirmLoading:o,okButtonProps:l,cancelButtonProps:u,okTextLocale:g,cancelTextLocale:p,okType:n,onOk:i,onCancel:a},b=M.useMemo(()=>m,Oe(Object.values(m)));let C;return typeof d=="function"||typeof d>"u"?(C=M.createElement(M.Fragment,null,M.createElement(gw,null),M.createElement(pw,null)),typeof d=="function"&&(C=d(C,{OkBtn:pw,CancelBtn:gw})),C=M.createElement(_x,{value:b},C)):C=d,M.createElement(Jg,{disabled:!1},C)},JL=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"}}}},eR=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},tR=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,i={};for(let a=o;a>=0;a--)a===0?(i[`${r}${t}-${a}`]={display:"none"},i[`${r}-push-${a}`]={insetInlineStart:"auto"},i[`${r}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-push-${a}`]={insetInlineStart:"auto"},i[`${r}${t}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-offset-${a}`]={marginInlineStart:0},i[`${r}${t}-order-${a}`]={order:0}):(i[`${r}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/o*100}%`,maxWidth:`${a/o*100}%`}],i[`${r}${t}-push-${a}`]={insetInlineStart:`${a/o*100}%`},i[`${r}${t}-pull-${a}`]={insetInlineEnd:`${a/o*100}%`},i[`${r}${t}-offset-${a}`]={marginInlineStart:`${a/o*100}%`},i[`${r}${t}-order-${a}`]={order:a});return i[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},i},sh=(e,t)=>tR(e,t),nR=(e,t,n)=>({[`@media (min-width: ${we(t)})`]:Object.assign({},sh(e,n))}),rR=()=>({}),oR=()=>({}),iR=Jt("Grid",JL,rR),vw=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),aR=Jt("Grid",e=>{const t=jt(e,{gridColumns:24}),n=vw(t);return delete n.xs,[eR(t),sh(t,""),sh(t,"-xs"),Object.keys(n).map(r=>nR(t,n[r],`-${r}`)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]},oR);function yw(e){return{position:e,inset:0}}const sR=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({},yw("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},yw("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:bx(e)}]},lR=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:`${we(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},Rn(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${we(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:we(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Ou(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${we(e.borderRadiusLG)} ${we(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:`${we(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,
|
|
208
|
+
${t}-body,
|
|
209
|
+
${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},cR=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},uR=e=>{const{componentCls:t}=e,n=vw(e);delete n.xs;const r=Object.keys(n).map(o=>({[`@media (min-width: ${we(n[o])})`]:{width:`var(--${t.replace(".","")}-${o}-width)`}}));return{[`${t}-root`]:{[t]:[{width:`var(--${t.replace(".","")}-xs-width)`}].concat(Oe(r))}}},bw=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return jt(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()})},Cw=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${we(e.paddingMD)} ${we(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${we(e.padding)} ${we(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${we(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${we(e.paddingXS)} ${we(e.padding)}`:0,footerBorderTop:e.wireframe?`${we(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${we(e.borderRadiusLG)} ${we(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${we(e.padding*2)} ${we(e.padding*2)} ${we(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),xw=Jt("Modal",e=>{const t=bw(e);return[lR(t),cR(t),sR(t),Fp(t,"zoom"),uR(t)]},Cw,{unitless:{titleLineHeight:!0}});var dR=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let lh;const fR=e=>{lh={x:e.pageX,y:e.pageY},setTimeout(()=>{lh=null},100)};TL()&&document.documentElement.addEventListener("click",fR,!0);const ww=e=>{const{prefixCls:t,className:n,rootClassName:r,open:o,wrapClassName:i,centered:a,getContainer:l,focusTriggerAfterClose:u=!0,style:d,visible:f,width:g=520,footer:p,classNames:m,styles:b,children:C,loading:y,confirmLoading:x,zIndex:$,mousePosition:w,onOk:E,onCancel:S,destroyOnHidden:O,destroyOnClose:_}=e,P=dR(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading","confirmLoading","zIndex","mousePosition","onOk","onCancel","destroyOnHidden","destroyOnClose"]),{getPopupContainer:T,getPrefixCls:L,direction:z,modal:B}=h.useContext(et),j=fe=>{x||S==null||S(fe)},I=fe=>{E==null||E(fe)};if(process.env.NODE_ENV!=="production"){const fe=$t("Modal");[["visible","open"],["bodyStyle","styles.body"],["maskStyle","styles.mask"],["destroyOnClose","destroyOnHidden"]].forEach(([oe,he])=>{fe.deprecated(!(oe in e),oe,he)})}const F=L("modal",t),A=L(),D=ko(F),[V,W,H]=xw(F,D),q=ge(i,{[`${F}-centered`]:a??(B==null?void 0:B.centered),[`${F}-wrap-rtl`]:z==="rtl"}),Z=p!==null&&!y?h.createElement(mw,Object.assign({},e,{onOk:I,onCancel:j})):null,[Y,G,K,te]=PL(lw(e),lw(B),{closable:!0,closeIcon:h.createElement(ea,{className:`${F}-close-icon`}),closeIconRender:fe=>hw(F,fe)}),ie=QL(`.${F}-content`),[ee,ae]=KC("Modal",$),[de,ue]=h.useMemo(()=>g&&typeof g=="object"?[void 0,g]:[g,void 0],[g]),J=h.useMemo(()=>{const fe={};return ue&&Object.keys(ue).forEach(oe=>{const he=ue[oe];he!==void 0&&(fe[`--${F}-${oe}-width`]=typeof he=="number"?`${he}px`:he)}),fe},[ue]);return V(h.createElement(ed,{form:!0,space:!0},h.createElement(zu.Provider,{value:ae},h.createElement(jx,Object.assign({width:de},P,{zIndex:ee,getContainer:l===void 0?T:l,prefixCls:F,rootClassName:ge(W,r,H,D),footer:Z,visible:o??f,mousePosition:w??lh,onClose:j,closable:Y&&Object.assign({disabled:K,closeIcon:G},te),closeIcon:G,focusTriggerAfterClose:u,transitionName:ns(A,"zoom",e.transitionName),maskTransitionName:ns(A,"fade",e.maskTransitionName),className:ge(W,n,B==null?void 0:B.className),style:Object.assign(Object.assign(Object.assign({},B==null?void 0:B.style),d),J),classNames:Object.assign(Object.assign(Object.assign({},B==null?void 0:B.classNames),m),{wrapper:ge(q,m==null?void 0:m.wrapper)}),styles:Object.assign(Object.assign({},B==null?void 0:B.styles),b),panelRef:ie,destroyOnClose:O??_}),y?h.createElement(la,{active:!0,title:!1,paragraph:{rows:4},className:`${F}-body-skeleton`}):C))))},gR=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:i,lineHeight:a,modalTitleHeight:l,fontHeight:u,confirmBodyPadding:d}=e,f=`${t}-confirm`;return{[f]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${f}-body-wrapper`]:Object.assign({},_u()),[`&${t} ${t}-body`]:{padding:d},[`${f}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(u).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()}},[`${f}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${we(e.marginSM)})`},[`${e.iconCls} + ${f}-paragraph`]:{maxWidth:`calc(100% - ${we(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${f}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${f}-content`]:{color:e.colorText,fontSize:i,lineHeight:a},[`${f}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${f}-error ${f}-body > ${e.iconCls}`]:{color:e.colorError},[`${f}-warning ${f}-body > ${e.iconCls},
|
|
210
|
+
${f}-confirm ${f}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${f}-info ${f}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${f}-success ${f}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},pR=ap(["Modal","confirm"],e=>{const t=bw(e);return[gR(t)]},Cw,{order:-1e3});var hR=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Sw(e){const{prefixCls:t,icon:n,okText:r,cancelText:o,confirmPrefixCls:i,type:a,okCancel:l,footer:u,locale:d}=e,f=hR(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);if(process.env.NODE_ENV!=="production"){const _=$t("Modal");process.env.NODE_ENV!=="production"&&_(!(typeof n=="string"&&n.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${n}\` at https://ant.design/components/icon`)}let g=n;if(!n&&n!==null)switch(a){case"info":g=h.createElement(Pg,null);break;case"success":g=h.createElement(sl,null);break;case"error":g=h.createElement(ja,null);break;default:g=h.createElement(Ba,null)}const p=l??a==="confirm",m=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[b]=Ei("Modal"),C=d||b,y=r||(p?C==null?void 0:C.okText:C==null?void 0:C.justOkText),x=o||(C==null?void 0:C.cancelText),$=Object.assign({autoFocusButton:m,cancelTextLocale:x,okTextLocale:y,mergedOkCancel:p},f),w=h.useMemo(()=>$,Oe(Object.values($))),E=h.createElement(h.Fragment,null,h.createElement(Ox,null),h.createElement(Nx,null)),S=e.title!==void 0&&e.title!==null,O=`${i}-body`;return h.createElement("div",{className:`${i}-body-wrapper`},h.createElement("div",{className:ge(O,{[`${O}-has-title`]:S})},g,h.createElement("div",{className:`${i}-paragraph`},S&&h.createElement("span",{className:`${i}-title`},e.title),h.createElement("div",{className:`${i}-content`},e.content))),u===void 0||typeof u=="function"?h.createElement(_x,{value:w},h.createElement("div",{className:`${i}-btns`},typeof u=="function"?u(E,{OkBtn:Nx,CancelBtn:Ox}):E)):u,h.createElement(pR,{prefixCls:t}))}const Ew=e=>{const{close:t,zIndex:n,maskStyle:r,direction:o,prefixCls:i,wrapClassName:a,rootPrefixCls:l,bodyStyle:u,closable:d=!1,onConfirm:f,styles:g}=e;if(process.env.NODE_ENV!=="production"){const E=$t("Modal");[["visible","open"],["bodyStyle","styles.body"],["maskStyle","styles.mask"]].forEach(([S,O])=>{E.deprecated(!(S in e),S,O)})}const p=`${i}-confirm`,m=e.width||416,b=e.style||{},C=e.mask===void 0?!0:e.mask,y=e.maskClosable===void 0?!1:e.maskClosable,x=ge(p,`${p}-${e.type}`,{[`${p}-rtl`]:o==="rtl"},e.className),[,$]=xo(),w=h.useMemo(()=>n!==void 0?n:$.zIndexPopupBase+XC,[n,$]);return h.createElement(ww,Object.assign({},e,{className:x,wrapClassName:ge({[`${p}-centered`]:!!e.centered},a),onCancel:()=>{t==null||t({triggerCancel:!0}),f==null||f(!1)},title:"",footer:null,transitionName:ns(l||"","zoom",e.transitionName),maskTransitionName:ns(l||"","fade",e.maskTransitionName),mask:C,maskClosable:y,style:b,styles:Object.assign({body:u,mask:r},g),width:m,zIndex:w,closable:d}),h.createElement(Sw,Object.assign({},e,{confirmPrefixCls:p})))},ch=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return h.createElement(Ho,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},h.createElement(Ew,Object.assign({},e)))};process.env.NODE_ENV!=="production"&&(Ew.displayName="ConfirmDialog",ch.displayName="ConfirmDialogWrapper");const ca=[];let $w="";function _w(){return $w}const mR=e=>{var t,n;const{prefixCls:r,getContainer:o,direction:i}=e,a=Q1(),l=M.useContext(et),u=_w()||l.getPrefixCls(),d=r||`${u}-modal`;let f=o;return f===!1&&(f=void 0,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&Vo(!1,"Modal","Static method not support `getContainer` to be `false` since it do not have context env.")),M.createElement(ch,Object.assign({},e,{rootPrefixCls:u,prefixCls:d,iconPrefixCls:l.iconPrefixCls,theme:l.theme,direction:i??l.direction,locale:(n=(t=l.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:a,getContainer:f}))};function Nl(e){const t=h5();process.env.NODE_ENV!=="production"&&!t.holderRender&&u5("Modal");const n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:u,open:!0}),o,i;function a(...f){var g;if(f.some(b=>b==null?void 0:b.triggerCancel)){var m;(g=e.onCancel)===null||g===void 0||(m=g).call.apply(m,[e,()=>{}].concat(Oe(f.slice(1))))}for(let b=0;b<ca.length;b++)if(ca[b]===u){ca.splice(b,1);break}i()}function l(f){clearTimeout(o),o=setTimeout(()=>{const g=t.getPrefixCls(void 0,_w()),p=t.getIconPrefixCls(),m=t.getTheme(),b=M.createElement(mR,Object.assign({},f));i=nx()(M.createElement(Ho,{prefixCls:g,iconPrefixCls:p,theme:m},t.holderRender?t.holderRender(b):b),n)})}function u(...f){r=Object.assign(Object.assign({},r),{open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),a.apply(this,f)}}),r.visible&&delete r.visible,l(r)}function d(f){typeof f=="function"?r=f(r):r=Object.assign(Object.assign({},r),f),l(r)}return l(r),ca.push(u),{destroy:u,update:d}}function Ow(e){return Object.assign(Object.assign({},e),{type:"warning"})}function Nw(e){return Object.assign(Object.assign({},e),{type:"info"})}function Pw(e){return Object.assign(Object.assign({},e),{type:"success"})}function Iw(e){return Object.assign(Object.assign({},e),{type:"error"})}function Tw(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function vR({rootPrefixCls:e}){process.env.NODE_ENV!=="production"&&Vo(!1,"Modal","Modal.config is deprecated. Please use ConfigProvider.config instead."),$w=e}var yR=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const bR=(e,t)=>{var n,{afterClose:r,config:o}=e,i=yR(e,["afterClose","config"]);const[a,l]=h.useState(!0),[u,d]=h.useState(o),{direction:f,getPrefixCls:g}=h.useContext(et),p=g("modal"),m=g(),b=()=>{var $;r(),($=u.afterClose)===null||$===void 0||$.call(u)},C=(...$)=>{var w;if(l(!1),$.some(O=>O==null?void 0:O.triggerCancel)){var S;(w=u.onCancel)===null||w===void 0||(S=w).call.apply(S,[u,()=>{}].concat(Oe($.slice(1))))}};h.useImperativeHandle(t,()=>({destroy:C,update:$=>{d(w=>{const E=typeof $=="function"?$(w):$;return Object.assign(Object.assign({},w),E)})}}));const y=(n=u.okCancel)!==null&&n!==void 0?n:u.type==="confirm",[x]=Ei("Modal",Qr.Modal);return h.createElement(ch,Object.assign({prefixCls:p,rootPrefixCls:m},u,{close:C,open:a,afterClose:b,okText:u.okText||(y?x==null?void 0:x.okText:x==null?void 0:x.justOkText),direction:u.direction||f,cancelText:u.cancelText||(x==null?void 0:x.cancelText)},i))},CR=h.forwardRef(bR);let Mw=0;const xR=h.memo(h.forwardRef((e,t)=>{const[n,r]=R5();return h.useImperativeHandle(t,()=>({patchElement:r}),[]),h.createElement(h.Fragment,null,n)}));function wR(){const e=h.useRef(null),[t,n]=h.useState([]);h.useEffect(()=>{t.length&&(Oe(t).forEach(a=>{a()}),n([]))},[t]);const r=h.useCallback(i=>function(l){var u;Mw+=1;const d=h.createRef();let f;const g=new Promise(y=>{f=y});let p=!1,m;const b=h.createElement(CR,{key:`modal-${Mw}`,config:i(l),ref:d,afterClose:()=>{m==null||m()},isSilent:()=>p,onConfirm:y=>{f(y)}});return m=(u=e.current)===null||u===void 0?void 0:u.patchElement(b),m&&ca.push(m),{destroy:()=>{function y(){var x;(x=d.current)===null||x===void 0||x.destroy()}d.current?y():n(x=>[].concat(Oe(x),[y]))},update:y=>{function x(){var $;($=d.current)===null||$===void 0||$.update(y)}d.current?x():n($=>[].concat(Oe($),[x]))},then:y=>(p=!0,g.then(y))}},[]);return[h.useMemo(()=>({info:r(Nw),success:r(Pw),error:r(Iw),warning:r(Ow),confirm:r(Tw)}),[]),h.createElement(xR,{key:"modal-holder",ref:e})]}function SR(e){return t=>h.createElement(Ho,{theme:{token:{motion:!1,zIndexPopupBase:0}}},h.createElement(e,Object.assign({},t)))}const ER=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))};function $R(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,l=i.content,u=o.x,d=u===void 0?0:u,f=o.y,g=f===void 0?0:f,p=h.useRef();if(!n||!n.points)return null;var m={position:"absolute"};if(n.autoArrow!==!1){var b=n.points[0],C=n.points[1],y=b[0],x=b[1],$=C[0],w=C[1];y===$||!["t","b"].includes(y)?m.top=g:y==="t"?m.top=0:m.bottom=0,x===w||!["l","r"].includes(x)?m.left=d:x==="l"?m.left=0:m.right=0}return h.createElement("div",{ref:p,className:ge("".concat(t,"-arrow"),a),style:m},l)}function _R(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?h.createElement(Nr,Le({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var l=a.className;return h.createElement("div",{style:{zIndex:r},className:ge("".concat(t,"-mask"),l)})}):null}var Aw=h.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});process.env.NODE_ENV!=="production"&&(Aw.displayName="PopupContent");var Dw=h.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,a=e.target,l=e.onVisibleChanged,u=e.open,d=e.keepDom,f=e.fresh,g=e.onClick,p=e.mask,m=e.arrow,b=e.arrowPos,C=e.align,y=e.motion,x=e.maskMotion,$=e.forceRender,w=e.getPopupContainer,E=e.autoDestroy,S=e.portal,O=e.zIndex,_=e.onMouseEnter,P=e.onMouseLeave,T=e.onPointerEnter,L=e.onPointerDownCapture,z=e.ready,B=e.offsetX,j=e.offsetY,I=e.offsetR,F=e.offsetB,A=e.onAlign,D=e.onPrepare,V=e.stretch,W=e.targetWidth,H=e.targetHeight,q=typeof n=="function"?n():n,Z=u||d,Y=(w==null?void 0:w.length)>0,G=h.useState(!w||!Y),K=Ee(G,2),te=K[0],ie=K[1];if(Ft(function(){!te&&Y&&a&&ie(!0)},[te,Y,a]),!te)return null;var ee="auto",ae={left:"-1000vw",top:"-1000vh",right:ee,bottom:ee};if(z||!u){var de,ue=C.points,J=C.dynamicInset||((de=C._experimental)===null||de===void 0?void 0:de.dynamicInset),fe=J&&ue[0][1]==="r",oe=J&&ue[0][0]==="b";fe?(ae.right=I,ae.left=ee):(ae.left=B,ae.right=ee),oe?(ae.bottom=F,ae.top=ee):(ae.top=j,ae.bottom=ee)}var he={};return V&&(V.includes("height")&&H?he.height=H:V.includes("minHeight")&&H&&(he.minHeight=H),V.includes("width")&&W?he.width=W:V.includes("minWidth")&&W&&(he.minWidth=W)),u||(he.pointerEvents="none"),h.createElement(S,{open:$||Z,getContainer:w&&function(){return w(a)},autoDestroy:E},h.createElement(_R,{prefixCls:o,open:u,zIndex:O,mask:p,motion:x}),h.createElement(Ua,{onResize:A,disabled:!u},function(me){return h.createElement(Nr,Le({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:$,leavedClassName:"".concat(o,"-hidden")},y,{onAppearPrepare:D,onEnterPrepare:D,visible:u,onVisibleChanged:function(Re){var Ie;y==null||(Ie=y.onVisibleChanged)===null||Ie===void 0||Ie.call(y,Re),l(Re)}}),function(_e,Re){var Ie=_e.className,Ge=_e.style,De=ge(o,Ie,r);return h.createElement("div",{ref:Xn(me,t,Re),className:De,style:le(le(le(le({"--arrow-x":"".concat(b.x||0,"px"),"--arrow-y":"".concat(b.y||0,"px")},ae),he),Ge),{},{boxSizing:"border-box",zIndex:O},i),onMouseEnter:_,onMouseLeave:P,onPointerEnter:T,onClick:g,onPointerDownCapture:L},m&&h.createElement($R,{prefixCls:o,arrow:m,arrowPos:b,align:C}),h.createElement(Aw,{cache:!u&&!f},q))})}))});process.env.NODE_ENV!=="production"&&(Dw.displayName="Popup");var Fw=h.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Ha(n),i=h.useCallback(function(l){Mg(t,r?r(l):l)},[r]),a=ll(i,cl(n));return o?h.cloneElement(n,{ref:a}):n});process.env.NODE_ENV!=="production"&&(Fw.displayName="TriggerWrapper");var Lw=h.createContext(null);function Rw(e){return e?Array.isArray(e)?e:[e]:[]}function OR(e,t,n,r){return h.useMemo(function(){var o=Rw(n??t),i=Rw(r??t),a=new Set(o),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]},[e,t,n,r])}function NR(){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 PR(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var l,u=i[a];if(NR((l=e[u])===null||l===void 0?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(u)}return""}function zw(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Pl(e){return e.ownerDocument.defaultView}function uh(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=Pl(n).getComputedStyle(n),i=o.overflowX,a=o.overflowY,l=o.overflow;[i,a,l].some(function(u){return r.includes(u)})&&t.push(n),n=n.parentElement}return t}function Il(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Tl(e){return Il(parseFloat(e),0)}function jw(e,t){var n=le({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=Pl(r).getComputedStyle(r),i=o.overflow,a=o.overflowClipMargin,l=o.borderTopWidth,u=o.borderBottomWidth,d=o.borderLeftWidth,f=o.borderRightWidth,g=r.getBoundingClientRect(),p=r.offsetHeight,m=r.clientHeight,b=r.offsetWidth,C=r.clientWidth,y=Tl(l),x=Tl(u),$=Tl(d),w=Tl(f),E=Il(Math.round(g.width/b*1e3)/1e3),S=Il(Math.round(g.height/p*1e3)/1e3),O=(b-C-$-w)*E,_=(p-m-y-x)*S,P=y*S,T=x*S,L=$*E,z=w*E,B=0,j=0;if(i==="clip"){var I=Tl(a);B=I*E,j=I*S}var F=g.x+L-B,A=g.y+P-j,D=F+g.width+2*B-L-z-O,V=A+g.height+2*j-P-T-_;n.left=Math.max(n.left,F),n.top=Math.max(n.top,A),n.right=Math.min(n.right,D),n.bottom=Math.min(n.bottom,V)}}),n}function Bw(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 Vw(e,t){var n=t||[],r=Ee(n,2),o=r[0],i=r[1];return[Bw(e.width,o),Bw(e.height,i)]}function Hw(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function us(e,t){var n=t[0],r=t[1],o,i;return n==="t"?i=e.y:n==="b"?i=e.y+e.height:i=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:i}}function Oi(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,o){return o===t?n[r]||"c":r}).join("")}function IR(e,t,n,r,o,i,a){var l=h.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),u=Ee(l,2),d=u[0],f=u[1],g=h.useRef(0),p=h.useMemo(function(){return t?uh(t):[]},[t]),m=h.useRef({}),b=function(){m.current={}};e||b();var C=fn(function(){if(t&&n&&e){let kn=function(ga,lo){var ii=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Be,pa=Z.x+ga,xs=Z.y+lo,Wl=pa+oe,Ul=xs+fe,Ae=Math.max(pa,ii.left),Ue=Math.max(xs,ii.top),Rt=Math.min(Wl,ii.right),Xt=Math.min(Ul,ii.bottom);return Math.max(0,(Rt-Ae)*(Xt-Ue))},oi=function(){Nn=Z.y+mt,Vn=Nn+fe,pr=Z.x+ut,Hn=pr+oe};var $,w,E,S,O=t,_=O.ownerDocument,P=Pl(O),T=P.getComputedStyle(O),L=T.position,z=O.style.left,B=O.style.top,j=O.style.right,I=O.style.bottom,F=O.style.overflow,A=le(le({},o[r]),i),D=_.createElement("div");($=O.parentElement)===null||$===void 0||$.appendChild(D),D.style.left="".concat(O.offsetLeft,"px"),D.style.top="".concat(O.offsetTop,"px"),D.style.position=L,D.style.height="".concat(O.offsetHeight,"px"),D.style.width="".concat(O.offsetWidth,"px"),O.style.left="0",O.style.top="0",O.style.right="auto",O.style.bottom="auto",O.style.overflow="hidden";var V;if(Array.isArray(n))V={x:n[0],y:n[1],width:0,height:0};else{var W,H,q=n.getBoundingClientRect();q.x=(W=q.x)!==null&&W!==void 0?W:q.left,q.y=(H=q.y)!==null&&H!==void 0?H:q.top,V={x:q.x,y:q.y,width:q.width,height:q.height}}var Z=O.getBoundingClientRect(),Y=P.getComputedStyle(O),G=Y.height,K=Y.width;Z.x=(w=Z.x)!==null&&w!==void 0?w:Z.left,Z.y=(E=Z.y)!==null&&E!==void 0?E:Z.top;var te=_.documentElement,ie=te.clientWidth,ee=te.clientHeight,ae=te.scrollWidth,de=te.scrollHeight,ue=te.scrollTop,J=te.scrollLeft,fe=Z.height,oe=Z.width,he=V.height,me=V.width,_e={left:0,top:0,right:ie,bottom:ee},Re={left:-J,top:-ue,right:ae-J,bottom:de-ue},Ie=A.htmlRegion,Ge="visible",De="visibleFirst";Ie!=="scroll"&&Ie!==De&&(Ie=Ge);var We=Ie===De,Te=jw(Re,p),Ne=jw(_e,p),Be=Ie===Ge?Ne:Te,Ze=We?Ne:Be;O.style.left="auto",O.style.top="auto",O.style.right="0",O.style.bottom="0";var pt=O.getBoundingClientRect();O.style.left=z,O.style.top=B,O.style.right=j,O.style.bottom=I,O.style.overflow=F,(S=O.parentElement)===null||S===void 0||S.removeChild(D);var tt=Il(Math.round(oe/parseFloat(K)*1e3)/1e3),st=Il(Math.round(fe/parseFloat(G)*1e3)/1e3);if(tt===0||st===0||ul(n)&&!Sp(n))return;var vt=A.offset,nt=A.targetOffset,rt=Vw(Z,vt),Ke=Ee(rt,2),$e=Ke[0],Fe=Ke[1],Ce=Vw(V,nt),Se=Ee(Ce,2),ke=Se[0],It=Se[1];V.x-=ke,V.y-=It;var pn=A.points||[],Cn=Ee(pn,2),xn=Cn[0],to=Cn[1],Mn=Hw(to),kt=Hw(xn),Wt=us(V,Mn),Kn=us(Z,kt),un=le({},A),ut=Wt.x-Kn.x+$e,mt=Wt.y-Kn.y+Fe,dn=kn(ut,mt),fr=kn(ut,mt,Ne),dt=us(V,["t","l"]),no=us(Z,["t","l"]),ro=us(V,["b","r"]),Ct=us(Z,["b","r"]),Tt=A.overflow||{},wn=Tt.adjustX,hn=Tt.adjustY,Bn=Tt.shiftX,Mr=Tt.shiftY,gr=function(lo){return typeof lo=="boolean"?lo:lo>=0},Nn,Vn,pr,Hn;oi();var Sn=gr(hn),En=kt[0]===Mn[0];if(Sn&&kt[0]==="t"&&(Vn>Ze.bottom||m.current.bt)){var Zn=mt;En?Zn-=fe-he:Zn=dt.y-Ct.y-Fe;var Ko=kn(ut,Zn),Oo=kn(ut,Zn,Ne);Ko>dn||Ko===dn&&(!We||Oo>=fr)?(m.current.bt=!0,mt=Zn,Fe=-Fe,un.points=[Oi(kt,0),Oi(Mn,0)]):m.current.bt=!1}if(Sn&&kt[0]==="b"&&(Nn<Ze.top||m.current.tb)){var oo=mt;En?oo+=fe-he:oo=ro.y-no.y-Fe;var Mi=kn(ut,oo),da=kn(ut,oo,Ne);Mi>dn||Mi===dn&&(!We||da>=fr)?(m.current.tb=!0,mt=oo,Fe=-Fe,un.points=[Oi(kt,0),Oi(Mn,0)]):m.current.tb=!1}var Zo=gr(wn),Qo=kt[1]===Mn[1];if(Zo&&kt[1]==="l"&&(Hn>Ze.right||m.current.rl)){var Ar=ut;Qo?Ar-=oe-me:Ar=dt.x-Ct.x-$e;var Dr=kn(Ar,mt),Jo=kn(Ar,mt,Ne);Dr>dn||Dr===dn&&(!We||Jo>=fr)?(m.current.rl=!0,ut=Ar,$e=-$e,un.points=[Oi(kt,1),Oi(Mn,1)]):m.current.rl=!1}if(Zo&&kt[1]==="r"&&(pr<Ze.left||m.current.lr)){var io=ut;Qo?io+=oe-me:io=ro.x-no.x-$e;var ei=kn(io,mt),ao=kn(io,mt,Ne);ei>dn||ei===dn&&(!We||ao>=fr)?(m.current.lr=!0,ut=io,$e=-$e,un.points=[Oi(kt,1),Oi(Mn,1)]):m.current.lr=!1}oi();var An=Bn===!0?0:Bn;typeof An=="number"&&(pr<Ne.left&&(ut-=pr-Ne.left-$e,V.x+me<Ne.left+An&&(ut+=V.x-Ne.left+me-An)),Hn>Ne.right&&(ut-=Hn-Ne.right-$e,V.x>Ne.right-An&&(ut+=V.x-Ne.right+An)));var hr=Mr===!0?0:Mr;typeof hr=="number"&&(Nn<Ne.top&&(mt-=Nn-Ne.top-Fe,V.y+he<Ne.top+hr&&(mt+=V.y-Ne.top+he-hr)),Vn>Ne.bottom&&(mt-=Vn-Ne.bottom-Fe,V.y>Ne.bottom-hr&&(mt+=V.y-Ne.bottom+hr)));var Qn=Z.x+ut,Fr=Qn+oe,mr=Z.y+mt,No=mr+fe,ti=V.x,Ai=ti+me,so=V.y,Di=so+he,ni=Math.max(Qn,ti),ri=Math.min(Fr,Ai),vs=(ni+ri)/2,fa=vs-Qn,Fi=Math.max(mr,so),Po=Math.min(No,Di),ys=(Fi+Po)/2,bs=ys-mr;a==null||a(t,un);var Lr=pt.right-Z.x-(ut+Z.width),Li=pt.bottom-Z.y-(mt+Z.height);tt===1&&(ut=Math.round(ut),Lr=Math.round(Lr)),st===1&&(mt=Math.round(mt),Li=Math.round(Li));var Cs={ready:!0,offsetX:ut/tt,offsetY:mt/st,offsetR:Lr/tt,offsetB:Li/st,arrowX:fa/tt,arrowY:bs/st,scaleX:tt,scaleY:st,align:un};f(Cs)}}),y=function(){g.current+=1;var w=g.current;Promise.resolve().then(function(){g.current===w&&C()})},x=function(){f(function(w){return le(le({},w),{},{ready:!1})})};return Ft(x,[r]),Ft(function(){e||x()},[e]),[d.ready,d.offsetX,d.offsetY,d.offsetR,d.offsetB,d.arrowX,d.arrowY,d.scaleX,d.scaleY,d.align,y]}function TR(e,t,n,r,o){Ft(function(){if(e&&t&&n){let g=function(){r(),o()};var i=t,a=n,l=uh(i),u=uh(a),d=Pl(a),f=new Set([d].concat(Oe(l),Oe(u)));return f.forEach(function(p){p.addEventListener("scroll",g,{passive:!0})}),d.addEventListener("resize",g,{passive:!0}),r(),function(){f.forEach(function(p){p.removeEventListener("scroll",g),d.removeEventListener("resize",g)})}}},[e,t,n])}function MR(e,t,n,r,o,i,a,l){var u=h.useRef(e);u.current=e;var d=h.useRef(!1);h.useEffect(function(){if(t&&r&&(!o||i)){var g=function(){d.current=!1},p=function(E){var S;u.current&&!a(((S=E.composedPath)===null||S===void 0||(S=S.call(E))===null||S===void 0?void 0:S[0])||E.target)&&!d.current&&l(!1)},m=Pl(r);m.addEventListener("pointerdown",g,!0),m.addEventListener("mousedown",p,!0),m.addEventListener("contextmenu",p,!0);var b=Jc(n);if(b&&(b.addEventListener("mousedown",p,!0),b.addEventListener("contextmenu",p,!0)),process.env.NODE_ENV!=="production"){var C,y,x=n==null||(C=n.getRootNode)===null||C===void 0?void 0:C.call(n),$=(y=r.getRootNode)===null||y===void 0?void 0:y.call(r);xi(x===$,"trigger element and popup element should in same shadow root.")}return function(){m.removeEventListener("pointerdown",g,!0),m.removeEventListener("mousedown",p,!0),m.removeEventListener("contextmenu",p,!0),b&&(b.removeEventListener("mousedown",p,!0),b.removeEventListener("contextmenu",p,!0))}}},[t,n,r,o,i]);function f(){d.current=!0}return f}var AR=["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 DR(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Zu,t=h.forwardRef(function(n,r){var o=n.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=n.children,l=n.action,u=l===void 0?"hover":l,d=n.showAction,f=n.hideAction,g=n.popupVisible,p=n.defaultPopupVisible,m=n.onPopupVisibleChange,b=n.afterPopupVisibleChange,C=n.mouseEnterDelay,y=n.mouseLeaveDelay,x=y===void 0?.1:y,$=n.focusDelay,w=n.blurDelay,E=n.mask,S=n.maskClosable,O=S===void 0?!0:S,_=n.getPopupContainer,P=n.forceRender,T=n.autoDestroy,L=n.destroyPopupOnHide,z=n.popup,B=n.popupClassName,j=n.popupStyle,I=n.popupPlacement,F=n.builtinPlacements,A=F===void 0?{}:F,D=n.popupAlign,V=n.zIndex,W=n.stretch,H=n.getPopupClassNameFromAlign,q=n.fresh,Z=n.alignPoint,Y=n.onPopupClick,G=n.onPopupAlign,K=n.arrow,te=n.popupMotion,ie=n.maskMotion,ee=n.popupTransitionName,ae=n.popupAnimation,de=n.maskTransitionName,ue=n.maskAnimation,J=n.className,fe=n.getTriggerDOMNode,oe=sn(n,AR),he=T||L||!1,me=h.useState(!1),_e=Ee(me,2),Re=_e[0],Ie=_e[1];Ft(function(){Ie(ER())},[]);var Ge=h.useRef({}),De=h.useContext(Lw),We=h.useMemo(function(){return{registerSubPopup:function(Ue,Rt){Ge.current[Ue]=Rt,De==null||De.registerSubPopup(Ue,Rt)}}},[De]),Te=Qu(),Ne=h.useState(null),Be=Ee(Ne,2),Ze=Be[0],pt=Be[1],tt=h.useRef(null),st=fn(function(Ae){tt.current=Ae,ul(Ae)&&Ze!==Ae&&pt(Ae),De==null||De.registerSubPopup(Te,Ae)}),vt=h.useState(null),nt=Ee(vt,2),rt=nt[0],Ke=nt[1],$e=h.useRef(null),Fe=fn(function(Ae){ul(Ae)&&rt!==Ae&&(Ke(Ae),$e.current=Ae)}),Ce=h.Children.only(a),Se=(Ce==null?void 0:Ce.props)||{},ke={},It=fn(function(Ae){var Ue,Rt,Xt=rt;return(Xt==null?void 0:Xt.contains(Ae))||((Ue=Jc(Xt))===null||Ue===void 0?void 0:Ue.host)===Ae||Ae===Xt||(Ze==null?void 0:Ze.contains(Ae))||((Rt=Jc(Ze))===null||Rt===void 0?void 0:Rt.host)===Ae||Ae===Ze||Object.values(Ge.current).some(function(Ut){return(Ut==null?void 0:Ut.contains(Ae))||Ae===Ut})}),pn=zw(i,te,ae,ee),Cn=zw(i,ie,ue,de),xn=h.useState(p||!1),to=Ee(xn,2),Mn=to[0],kt=to[1],Wt=g??Mn,Kn=fn(function(Ae){g===void 0&&kt(Ae)});Ft(function(){kt(g||!1)},[g]);var un=h.useRef(Wt);un.current=Wt;var ut=h.useRef([]);ut.current=[];var mt=fn(function(Ae){var Ue;Kn(Ae),((Ue=ut.current[ut.current.length-1])!==null&&Ue!==void 0?Ue:Wt)!==Ae&&(ut.current.push(Ae),m==null||m(Ae))}),dn=h.useRef(),fr=function(){clearTimeout(dn.current)},dt=function(Ue){var Rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;fr(),Rt===0?mt(Ue):dn.current=setTimeout(function(){mt(Ue)},Rt*1e3)};h.useEffect(function(){return fr},[]);var no=h.useState(!1),ro=Ee(no,2),Ct=ro[0],Tt=ro[1];Ft(function(Ae){(!Ae||Wt)&&Tt(!0)},[Wt]);var wn=h.useState(null),hn=Ee(wn,2),Bn=hn[0],Mr=hn[1],gr=h.useState(null),Nn=Ee(gr,2),Vn=Nn[0],pr=Nn[1],Hn=function(Ue){pr([Ue.clientX,Ue.clientY])},Sn=IR(Wt,Ze,Z&&Vn!==null?Vn:rt,I,A,D,G),En=Ee(Sn,11),Zn=En[0],Ko=En[1],Oo=En[2],oo=En[3],Mi=En[4],da=En[5],Zo=En[6],Qo=En[7],Ar=En[8],Dr=En[9],Jo=En[10],io=OR(Re,u,d,f),ei=Ee(io,2),ao=ei[0],An=ei[1],hr=ao.has("click"),Qn=An.has("click")||An.has("contextMenu"),Fr=fn(function(){Ct||Jo()}),mr=function(){un.current&&Z&&Qn&&dt(!1)};TR(Wt,rt,Ze,Fr,mr),Ft(function(){Fr()},[Vn,I]),Ft(function(){Wt&&!(A!=null&&A[I])&&Fr()},[JSON.stringify(D)]);var No=h.useMemo(function(){var Ae=PR(A,i,Dr,Z);return ge(Ae,H==null?void 0:H(Dr))},[Dr,H,A,i,Z]);h.useImperativeHandle(r,function(){return{nativeElement:$e.current,popupElement:tt.current,forceAlign:Fr}});var ti=h.useState(0),Ai=Ee(ti,2),so=Ai[0],Di=Ai[1],ni=h.useState(0),ri=Ee(ni,2),vs=ri[0],fa=ri[1],Fi=function(){if(W&&rt){var Ue=rt.getBoundingClientRect();Di(Ue.width),fa(Ue.height)}},Po=function(){Fi(),Fr()},ys=function(Ue){Tt(!1),Jo(),b==null||b(Ue)},bs=function(){return new Promise(function(Ue){Fi(),Mr(function(){return Ue})})};Ft(function(){Bn&&(Jo(),Bn(),Mr(null))},[Bn]);function Lr(Ae,Ue,Rt,Xt){ke[Ae]=function(Ut){var ws;Xt==null||Xt(Ut),dt(Ue,Rt);for(var ql=arguments.length,Dt=new Array(ql>1?ql-1:0),xt=1;xt<ql;xt++)Dt[xt-1]=arguments[xt];(ws=Se[Ae])===null||ws===void 0||ws.call.apply(ws,[Se,Ut].concat(Dt))}}(hr||Qn)&&(ke.onClick=function(Ae){var Ue;un.current&&Qn?dt(!1):!un.current&&hr&&(Hn(Ae),dt(!0));for(var Rt=arguments.length,Xt=new Array(Rt>1?Rt-1:0),Ut=1;Ut<Rt;Ut++)Xt[Ut-1]=arguments[Ut];(Ue=Se.onClick)===null||Ue===void 0||Ue.call.apply(Ue,[Se,Ae].concat(Xt))});var Li=MR(Wt,Qn,rt,Ze,E,O,It,dt),Cs=ao.has("hover"),kn=An.has("hover"),oi,ga;Cs&&(Lr("onMouseEnter",!0,C,function(Ae){Hn(Ae)}),Lr("onPointerEnter",!0,C,function(Ae){Hn(Ae)}),oi=function(Ue){(Wt||Ct)&&Ze!==null&&Ze!==void 0&&Ze.contains(Ue.target)&&dt(!0,C)},Z&&(ke.onMouseMove=function(Ae){var Ue;(Ue=Se.onMouseMove)===null||Ue===void 0||Ue.call(Se,Ae)})),kn&&(Lr("onMouseLeave",!1,x),Lr("onPointerLeave",!1,x),ga=function(){dt(!1,x)}),ao.has("focus")&&Lr("onFocus",!0,$),An.has("focus")&&Lr("onBlur",!1,w),ao.has("contextMenu")&&(ke.onContextMenu=function(Ae){var Ue;un.current&&An.has("contextMenu")?dt(!1):(Hn(Ae),dt(!0)),Ae.preventDefault();for(var Rt=arguments.length,Xt=new Array(Rt>1?Rt-1:0),Ut=1;Ut<Rt;Ut++)Xt[Ut-1]=arguments[Ut];(Ue=Se.onContextMenu)===null||Ue===void 0||Ue.call.apply(Ue,[Se,Ae].concat(Xt))}),J&&(ke.className=ge(Se.className,J));var lo=le(le({},Se),ke),ii={},pa=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];pa.forEach(function(Ae){oe[Ae]&&(ii[Ae]=function(){for(var Ue,Rt=arguments.length,Xt=new Array(Rt),Ut=0;Ut<Rt;Ut++)Xt[Ut]=arguments[Ut];(Ue=lo[Ae])===null||Ue===void 0||Ue.call.apply(Ue,[lo].concat(Xt)),oe[Ae].apply(oe,Xt)})});var xs=h.cloneElement(Ce,le(le({},lo),ii)),Wl={x:da,y:Zo},Ul=K?le({},K!==!0?K:{}):null;return h.createElement(h.Fragment,null,h.createElement(Ua,{disabled:!Wt,ref:Fe,onResize:Po},h.createElement(Fw,{getTriggerDOMNode:fe},xs)),h.createElement(Lw.Provider,{value:We},h.createElement(Dw,{portal:e,ref:st,prefixCls:i,popup:z,className:ge(B,No),style:j,target:rt,onMouseEnter:oi,onMouseLeave:ga,onPointerEnter:oi,zIndex:V,open:Wt,keepDom:Ct,fresh:q,onClick:Y,onPointerDownCapture:Li,mask:E,motion:pn,maskMotion:Cn,onVisibleChanged:ys,onPrepare:bs,forceRender:P,autoDestroy:he,getPopupContainer:_,align:Dr,arrow:Ul,arrowPos:Wl,ready:Zn,offsetX:Ko,offsetY:Oo,offsetR:oo,offsetB:Mi,onAlign:Fr,stretch:W,targetWidth:so/Qo,targetHeight:vs/Ar})))});return process.env.NODE_ENV!=="production"&&(t.displayName="Trigger"),t}const FR=DR(Zu);function dh(e,t,n){return ge({[`${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 fh=(e,t)=>t||e,kw=(e,t,n=void 0)=>{var r,o;const{variant:i,[e]:a}=h.useContext(et),l=h.useContext(aw),u=a==null?void 0:a.variant;let d;typeof t<"u"?d=t:n===!1?d="borderless":d=(o=(r=l??u)!==null&&r!==void 0?r:i)!==null&&o!==void 0?o:"outlined";const f=c6.includes(d);return[d,f]},LR=(e,t)=>{typeof(e==null?void 0:e.addEventListener)<"u"?e.addEventListener("change",t):typeof(e==null?void 0:e.addListener)<"u"&&e.addListener(t)},RR=(e,t)=>{typeof(e==null?void 0:e.removeEventListener)<"u"?e.removeEventListener("change",t):typeof(e==null?void 0:e.removeListener)<"u"&&e.removeListener(t)},Ml=["xxl","xl","lg","md","sm","xs"],zR=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)`}),jR=e=>{const t=e,n=[].concat(Ml).reverse();return n.forEach((r,o)=>{const i=r.toUpperCase(),a=`screen${i}Min`,l=`screen${i}`;if(!(t[a]<=t[l]))throw new Error(`${a}<=${l} fails : !(${t[a]}<=${t[l]})`);if(o<n.length-1){const u=`screen${i}Max`;if(!(t[l]<=t[u]))throw new Error(`${l}<=${u} fails : !(${t[l]}<=${t[u]})`);const f=`screen${n[o+1].toUpperCase()}Min`;if(!(t[u]<=t[f]))throw new Error(`${u}<=${f} fails : !(${t[u]}<=${t[f]})`)}}),e},BR=()=>{const[,e]=xo(),t=zR(jR(e));return M.useMemo(()=>{const n=new Map;let r=-1,o={};return{responsiveMap:t,matchHandlers:{},dispatch(i){return o=i,n.forEach(a=>a(o)),n.size>=1},subscribe(i){return n.size||this.register(),r+=1,n.set(r,i),i(o),r},unsubscribe(i){n.delete(i),n.size||this.unregister()},register(){Object.entries(t).forEach(([i,a])=>{const l=({matches:d})=>{this.dispatch(Object.assign(Object.assign({},o),{[i]:d}))},u=window.matchMedia(a);LR(u,l),this.matchHandlers[a]={mql:u,listener:l},l(u)})},unregister(){Object.values(t).forEach(i=>{const a=this.matchHandlers[i];RR(a==null?void 0:a.mql,a==null?void 0:a.listener)}),n.clear()}}},[e])};function Ww(){const[,e]=h.useReducer(t=>t+1,0);return e}function VR(e=!0,t={}){const n=M.useRef(t),r=Ww(),o=BR();return Ft(()=>{const i=o.subscribe(a=>{n.current=a,e&&r()});return()=>o.unsubscribe(i)},[]),n.current}const ds=e=>e?typeof e=="function"?e():e:null;function gh(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.bodyClassName,a=e.className,l=e.style;return h.createElement("div",{className:ge("".concat(n,"-content"),a),style:l},h.createElement("div",{className:ge("".concat(n,"-inner"),i),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var fs={shiftX:64,adjustY:1},gs={adjustX:1,shiftY:!0},Ir=[0,0],HR={left:{points:["cr","cl"],overflow:gs,offset:[-4,0],targetOffset:Ir},right:{points:["cl","cr"],overflow:gs,offset:[4,0],targetOffset:Ir},top:{points:["bc","tc"],overflow:fs,offset:[0,-4],targetOffset:Ir},bottom:{points:["tc","bc"],overflow:fs,offset:[0,4],targetOffset:Ir},topLeft:{points:["bl","tl"],overflow:fs,offset:[0,-4],targetOffset:Ir},leftTop:{points:["tr","tl"],overflow:gs,offset:[-4,0],targetOffset:Ir},topRight:{points:["br","tr"],overflow:fs,offset:[0,-4],targetOffset:Ir},rightTop:{points:["tl","tr"],overflow:gs,offset:[4,0],targetOffset:Ir},bottomRight:{points:["tr","br"],overflow:fs,offset:[0,4],targetOffset:Ir},rightBottom:{points:["bl","br"],overflow:gs,offset:[4,0],targetOffset:Ir},bottomLeft:{points:["tl","bl"],overflow:fs,offset:[0,4],targetOffset:Ir},leftBottom:{points:["br","bl"],overflow:gs,offset:[-4,0],targetOffset:Ir}},kR=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],WR=function(t,n){var r=t.overlayClassName,o=t.trigger,i=o===void 0?["hover"]:o,a=t.mouseEnterDelay,l=a===void 0?0:a,u=t.mouseLeaveDelay,d=u===void 0?.1:u,f=t.overlayStyle,g=t.prefixCls,p=g===void 0?"rc-tooltip":g,m=t.children,b=t.onVisibleChange,C=t.afterVisibleChange,y=t.transitionName,x=t.animation,$=t.motion,w=t.placement,E=w===void 0?"right":w,S=t.align,O=S===void 0?{}:S,_=t.destroyTooltipOnHide,P=_===void 0?!1:_,T=t.defaultVisible,L=t.getTooltipContainer,z=t.overlayInnerStyle;t.arrowContent;var B=t.overlay,j=t.id,I=t.showArrow,F=I===void 0?!0:I,A=t.classNames,D=t.styles,V=sn(t,kR),W=Qu(j),H=M.useRef(null);M.useImperativeHandle(n,function(){return H.current});var q=le({},V);"visible"in t&&(q.popupVisible=t.visible);var Z=function(){return h.createElement(gh,{key:"content",prefixCls:p,id:W,bodyClassName:A==null?void 0:A.body,overlayInnerStyle:le(le({},z),D==null?void 0:D.body)},B)},Y=function(){var K=h.Children.only(m),te=(K==null?void 0:K.props)||{},ie=le(le({},te),{},{"aria-describedby":B?W:null});return h.cloneElement(m,ie)};return h.createElement(FR,Le({popupClassName:ge(r,A==null?void 0:A.root),prefixCls:p,popup:Z,action:i,builtinPlacements:HR,popupPlacement:E,ref:H,popupAlign:O,getPopupContainer:L,onPopupVisibleChange:b,afterPopupVisibleChange:C,popupTransitionName:y,popupAnimation:x,popupMotion:$,defaultPopupVisible:T,autoDestroy:P,mouseLeaveDelay:d,popupStyle:le(le({},f),D==null?void 0:D.root),mouseEnterDelay:l,arrow:F},q),Y())};const UR=M.forwardRef(WR);function Uw(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=0,a=o,l=r*1/Math.sqrt(2),u=o-r*(1-1/Math.sqrt(2)),d=o-n*(1/Math.sqrt(2)),f=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),g=2*o-d,p=f,m=2*o-l,b=u,C=2*o-i,y=a,x=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),$=r*(Math.sqrt(2)-1),w=`polygon(${$}px 100%, 50% ${$}px, ${2*o-$}px 100%, ${$}px 100%)`,E=`path('M ${i} ${a} A ${r} ${r} 0 0 0 ${l} ${u} L ${d} ${f} A ${n} ${n} 0 0 1 ${g} ${p} L ${m} ${b} A ${r} ${r} 0 0 0 ${C} ${y} Z')`;return{arrowShadowWidth:x,arrowPath:E,arrowPolygon:w}}const qR=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:l,calc:u}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:u(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${we(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},qw=8;function ph(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?qw:r}}function rd(e,t){return e?t:{}}function Gw(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:l=0,arrowPlacement:u={left:!0,right:!0,top:!0,bottom:!0}}={};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},qR(e,t,o)),{"&:before":{background:t}})]},rd(!!u.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:l,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":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${we(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),rd(!!u.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${we(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),rd(!!u.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},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:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),rd(!!u.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},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:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}function GR(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.arrowOffsetHorizontal*2+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=t.arrowOffsetVertical*2+n,i.shiftX=!0,i.adjustX=!0;break}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const Xw={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"]}},XR={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"]}},YR=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function KR(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i}=e,a=t/2,l={};return Object.keys(Xw).forEach(u=>{const d=r&&XR[u]||Xw[u],f=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(l[u]=f,YR.has(u)&&(f.autoArrow=!1),u){case"top":case"topLeft":case"topRight":f.offset[1]=-a-o;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=a+o;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-a-o;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=a+o;break}const g=ph({contentRadius:i,limitVerticalRadius:!0});if(r)switch(u){case"topLeft":case"bottomLeft":f.offset[0]=-g.arrowOffsetHorizontal-a;break;case"topRight":case"bottomRight":f.offset[0]=g.arrowOffsetHorizontal+a;break;case"leftTop":case"rightTop":f.offset[1]=-g.arrowOffsetHorizontal*2+a;break;case"leftBottom":case"rightBottom":f.offset[1]=g.arrowOffsetHorizontal*2-a;break}f.overflow=GR(u,g,t,n),f.htmlRegion="visibleFirst"}),l}const ZR=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:o,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:l,controlHeight:u,boxShadowSecondary:d,paddingSM:f,paddingXS:g,arrowOffsetHorizontal:p,sizePopupArrow:m}=e,b=t(a).add(m).add(p).equal(),C=t(a).mul(2).add(m).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},Rn(e)),{position:"absolute",zIndex:l,display:"block",width:"max-content",maxWidth:r,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":i,[`${n}-inner`]:{minWidth:C,minHeight:u,padding:`${we(e.calc(f).div(2).equal())} ${we(g)}`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxShadow:d,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:b},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(a,qw)}},[`${n}-content`]:{position:"relative"}}),F6(e,(y,{darkColor:x})=>({[`&${n}-${y}`]:{[`${n}-inner`]:{backgroundColor:x},[`${n}-arrow`]:{"--antd-arrow-background-color":x}}}))),{"&-rtl":{direction:"rtl"}})},Gw(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},QR=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},ph({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Uw(jt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Yw=(e,t=!0)=>Jt("Tooltip",r=>{const{borderRadius:o,colorTextLightSolid:i,colorBgSpotlight:a}=r,l=jt(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a});return[ZR(l),Fp(r,"zoom-big-fast")]},QR,{resetStyle:!1,injectStyle:t})(e),JR=$i.map(e=>`${e}-inverse`);function ez(e,t=!0){return t?[].concat(Oe(JR),Oe($i)).includes(e):$i.includes(e)}function Kw(e,t){const n=ez(t),r=ge({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}const tz=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:l}=h.useContext(et),u=l("tooltip",t),[d,f,g]=Yw(u),p=Kw(u,i),m=p.arrowStyle,b=Object.assign(Object.assign({},a),p.overlayStyle),C=ge(f,g,u,`${u}-pure`,`${u}-placement-${r}`,n,p.className);return d(h.createElement("div",{className:C,style:m},h.createElement("div",{className:`${u}-arrow`}),h.createElement(gh,Object.assign({},e,{className:f,prefixCls:u,overlayInnerStyle:b}),o)))};var nz=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Xo=h.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,color:l,overlayInnerStyle:u,children:d,afterOpenChange:f,afterVisibleChange:g,destroyTooltipOnHide:p,destroyOnHidden:m,arrow:b=!0,title:C,overlay:y,builtinPlacements:x,arrowPointAtCenter:$=!1,autoAdjustOverflow:w=!0,motion:E,getPopupContainer:S,placement:O="top",mouseEnterDelay:_=.1,mouseLeaveDelay:P=.1,overlayStyle:T,rootClassName:L,overlayClassName:z,styles:B,classNames:j}=e,I=nz(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),F=!!b,[,A]=xo(),{getPopupContainer:D,getPrefixCls:V,direction:W,className:H,style:q,classNames:Z,styles:Y}=lr("tooltip"),G=$t("Tooltip"),K=h.useRef(null),te=()=>{var nt;(nt=K.current)===null||nt===void 0||nt.forceAlign()};h.useImperativeHandle(t,()=>{var nt,rt;return{forceAlign:te,forcePopupAlign:()=>{G.deprecated(!1,"forcePopupAlign","forceAlign"),te()},nativeElement:(nt=K.current)===null||nt===void 0?void 0:nt.nativeElement,popupElement:(rt=K.current)===null||rt===void 0?void 0:rt.popupElement}}),process.env.NODE_ENV!=="production"&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["destroyTooltipOnHide","destroyOnHidden"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"],["overlayStyle","styles={{ root: {} }}"],["overlayInnerStyle","styles={{ body: {} }}"],["overlayClassName",'classNames={{ root: "" }}']].forEach(([nt,rt])=>{G.deprecated(!(nt in e),nt,rt)}),process.env.NODE_ENV!=="production"&&G(!p||typeof p=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),process.env.NODE_ENV!=="production"&&G(!b||typeof b=="boolean"||!("arrowPointAtCenter"in b),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[ie,ee]=Or(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),ae=!C&&!y&&C!==0,de=nt=>{var rt,Ke;ee(ae?!1:nt),ae||((rt=e.onOpenChange)===null||rt===void 0||rt.call(e,nt),(Ke=e.onVisibleChange)===null||Ke===void 0||Ke.call(e,nt))},ue=h.useMemo(()=>{var nt,rt;let Ke=$;return typeof b=="object"&&(Ke=(rt=(nt=b.pointAtCenter)!==null&&nt!==void 0?nt:b.arrowPointAtCenter)!==null&&rt!==void 0?rt:$),x||KR({arrowPointAtCenter:Ke,autoAdjustOverflow:w,arrowWidth:F?A.sizePopupArrow:0,borderRadius:A.borderRadius,offset:A.marginXXS})},[$,b,x,A]),J=h.useMemo(()=>C===0?C:y||C||"",[y,C]),fe=h.createElement(ed,{space:!0},typeof J=="function"?J():J),oe=V("tooltip",o),he=V(),me=e["data-popover-inject"];let _e=ie;!("open"in e)&&!("visible"in e)&&ae&&(_e=!1);const Re=h.isValidElement(d)&&!HC(d)?d:h.createElement("span",null,d),Ie=Re.props,Ge=!Ie.className||typeof Ie.className=="string"?ge(Ie.className,i||`${oe}-open`):Ie.className,[De,We,Te]=Yw(oe,!me),Ne=Kw(oe,l),Be=Ne.arrowStyle,Ze=ge(z,{[`${oe}-rtl`]:W==="rtl"},Ne.className,L,We,Te,H,Z.root,j==null?void 0:j.root),pt=ge(Z.body,j==null?void 0:j.body),[tt,st]=KC("Tooltip",I.zIndex),vt=h.createElement(UR,Object.assign({},I,{zIndex:tt,showArrow:F,placement:O,mouseEnterDelay:_,mouseLeaveDelay:P,prefixCls:oe,classNames:{root:Ze,body:pt},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Be),Y.root),q),T),B==null?void 0:B.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},Y.body),u),B==null?void 0:B.body),Ne.overlayStyle)},getTooltipContainer:S||a||D,ref:K,builtinPlacements:ue,overlay:fe,visible:_e,onVisibleChange:de,afterVisibleChange:f??g,arrowContent:h.createElement("span",{className:`${oe}-arrow-content`}),motion:{motionName:ns(he,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:m??!!p}),_e?wo(Re,{className:Ge}):Re);return De(h.createElement(zu.Provider,{value:st},vt))});process.env.NODE_ENV!=="production"&&(Xo.displayName="Tooltip"),Xo._InternalPanelDoNotUseOrYouWillBeFired=tz;const rz=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:i,boxShadowSecondary:a,colorTextHeading:l,borderRadiusLG:u,zIndexPopup:d,titleMarginBottom:f,colorBgElevated:g,popoverBg:p,titleBorderBottom:m,innerContentPadding:b,titlePadding:C}=e;return[{[t]:Object.assign(Object.assign({},Rn(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:d,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":g,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:p,backgroundClip:"padding-box",borderRadius:u,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:f,color:l,fontWeight:o,borderBottom:m,padding:C},[`${t}-inner-content`]:{color:n,padding:b}})},Gw(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},oz=e=>{const{componentCls:t}=e;return{[t]:$i.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},Zw=Jt("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=jt(e,{popoverBg:t,popoverColor:n});return[rz(r),oz(r),Fp(r,"zoom-big")]},e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:i,zIndexPopupBase:a,borderRadiusLG:l,marginXS:u,lineType:d,colorSplit:f,paddingSM:g}=e,p=n-r,m=p/2,b=p/2-t,C=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},Uw(e)),ph({contentRadius:l,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:u,titlePadding:i?`${m}px ${C}px ${b}px`:0,titleBorderBottom:i?`${t}px ${d} ${f}`:"none",innerContentPadding:i?`${g}px ${C}px`:0})},{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var iz=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Qw=({title:e,content:t,prefixCls:n})=>!e&&!t?null:h.createElement(h.Fragment,null,e&&h.createElement("div",{className:`${n}-title`},e),t&&h.createElement("div",{className:`${n}-inner-content`},t)),az=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:i="top",title:a,content:l,children:u}=e,d=ds(a),f=ds(l),g=ge(t,n,`${n}-pure`,`${n}-placement-${i}`,r);return h.createElement("div",{className:g,style:o},h.createElement("div",{className:`${n}-arrow`}),h.createElement(gh,Object.assign({},e,{className:t,prefixCls:n}),u||h.createElement(Qw,{prefixCls:n,title:d,content:f})))},Jw=e=>{const{prefixCls:t,className:n}=e,r=iz(e,["prefixCls","className"]),{getPrefixCls:o}=h.useContext(et),i=o("popover",t),[a,l,u]=Zw(i);return a(h.createElement(az,Object.assign({},r,{prefixCls:i,hashId:l,className:ge(n,u)})))};var sz=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const hh=h.forwardRef((e,t)=>{var n,r;const{prefixCls:o,title:i,content:a,overlayClassName:l,placement:u="top",trigger:d="hover",children:f,mouseEnterDelay:g=.1,mouseLeaveDelay:p=.1,onOpenChange:m,overlayStyle:b={},styles:C,classNames:y}=e,x=sz(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:$,className:w,style:E,classNames:S,styles:O}=lr("popover"),_=$("popover",o),[P,T,L]=Zw(_),z=$(),B=ge(l,T,L,w,S.root,y==null?void 0:y.root),j=ge(S.body,y==null?void 0:y.body),[I,F]=Or(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),A=(q,Z)=>{F(q,!0),m==null||m(q,Z)},D=q=>{q.keyCode===xl.ESC&&A(!1,q)},V=q=>{A(q)},W=ds(i),H=ds(a);return P(h.createElement(Xo,Object.assign({placement:u,trigger:d,mouseEnterDelay:g,mouseLeaveDelay:p},x,{prefixCls:_,classNames:{root:B,body:j},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},O.root),E),b),C==null?void 0:C.root),body:Object.assign(Object.assign({},O.body),C==null?void 0:C.body)},ref:t,open:I,onOpenChange:V,overlay:W||H?h.createElement(Qw,{prefixCls:_,title:W,content:H}):null,transitionName:ns(z,"zoom-big",x.transitionName),"data-popover-inject":!0}),wo(f,{onKeyDown:q=>{var Z,Y;M.isValidElement(f)&&((Y=f==null?void 0:(Z=f.props).onKeyDown)===null||Y===void 0||Y.call(Z,q)),D(q)}})))});hh._InternalPanelDoNotUseOrYouWillBeFired=Jw,process.env.NODE_ENV!=="production"&&(hh.displayName="Popover");var lz=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],cz=M.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,o=e.className,i=e.style,a=e.checked,l=e.disabled,u=e.defaultChecked,d=u===void 0?!1:u,f=e.type,g=f===void 0?"checkbox":f,p=e.title,m=e.onChange,b=sn(e,lz),C=M.useRef(null),y=M.useRef(null),x=Or(d,{value:a}),$=Ee(x,2),w=$[0],E=$[1];M.useImperativeHandle(t,function(){return{focus:function(P){var T;(T=C.current)===null||T===void 0||T.focus(P)},blur:function(){var P;(P=C.current)===null||P===void 0||P.blur()},input:C.current,nativeElement:y.current}});var S=ge(r,o,re(re({},"".concat(r,"-checked"),w),"".concat(r,"-disabled"),l)),O=function(P){l||("checked"in e||E(P.target.checked),m==null||m({target:le(le({},e),{},{type:g,checked:P.target.checked}),stopPropagation:function(){P.stopPropagation()},preventDefault:function(){P.preventDefault()},nativeEvent:P.nativeEvent}))};return h.createElement("span",{className:S,title:p,style:i,ref:y},h.createElement("input",Le({},b,{className:"".concat(r,"-input"),ref:C,onChange:O,disabled:l,checked:!!w,type:g})),h.createElement("span",{className:"".concat(r,"-inner")}))});function uz(e){const t=M.useRef(null),n=()=>{Ln.cancel(t.current),t.current=null};return[()=>{n(),t.current=Ln(()=>{t.current=null})},i=>{t.current&&(i.stopPropagation(),n()),e==null||e(i)}]}const dz=["parentNode"],fz="form_item";function Al(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function eS(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:dz.includes(n)?`${fz}_${n}`:n}function tS(e,t,n,r,o,i){let a=r;return i!==void 0?a=i:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||o&&n.validated)&&(a="success"),a}var gz=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function nS(e){return Al(e).join("_")}function rS(e,t){const n=t.getFieldInstance(e),r=Jb(n);if(r)return r;const o=eS(Al(e),t.__INTERNAL__.name);if(o)return document.getElementById(o)}function oS(e){const[t]=eh(),n=h.useRef({}),r=h.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>i=>{const a=nS(o);i?n.current[a]=i:delete n.current[a]}},scrollToField:(o,i={})=>{const{focus:a}=i,l=gz(i,["focus"]),u=rS(o,r);u&&(A5(u,Object.assign({scrollMode:"if-needed",block:"nearest"},l)),a&&r.focusField(o))},focusField:o=>{var i,a;const l=r.getFieldInstance(o);typeof(l==null?void 0:l.focus)=="function"?l.focus():(a=(i=rS(o,r))===null||i===void 0?void 0:i.focus)===null||a===void 0||a.call(i)},getFieldInstance:o=>{const i=nS(o);return n.current[i]}}),[e,t]);return[r]}function od(e){return jt(e,{inputAffixPadding:e.paddingXXS})}const id=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:u,paddingSM:d,controlPaddingHorizontalSM:f,controlPaddingHorizontal:g,colorFillAlter:p,colorPrimaryHover:m,colorPrimary:b,controlOutlineWidth:C,controlOutline:y,colorErrorOutline:x,colorWarningOutline:$,colorBgContainer:w,inputFontSize:E,inputFontSizeLG:S,inputFontSizeSM:O}=e,_=E||n,P=O||_,T=S||l,L=Math.round((t-_*r)/2*10)/10-o,z=Math.round((i-P*r)/2*10)/10-o,B=Math.ceil((a-T*u)/2*10)/10-o;return{paddingBlock:Math.max(L,0),paddingBlockSM:Math.max(z,0),paddingBlockLG:Math.max(B,0),paddingInline:d-o,paddingInlineSM:f-o,paddingInlineLG:g-o,addonBg:p,activeBorderColor:b,hoverBorderColor:m,activeShadow:`0 0 0 ${C}px ${y}`,errorActiveShadow:`0 0 0 ${C}px ${x}`,warningActiveShadow:`0 0 0 ${C}px ${$}`,hoverBg:w,activeBg:w,inputFontSize:_,inputFontSizeLG:T,inputFontSizeSM:P}},pz=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),mh=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({},pz(jt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),iS=(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}}),aS=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},iS(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),hz=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},iS(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},mh(e))}),aS(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),aS(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),sS=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),mz=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${we(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},sS(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),sS(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},mh(e))}})}),vz=(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,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},lS=(e,t)=>{var n;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(n=t==null?void 0:t.inputColor)!==null&&n!==void 0?n:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},cS=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},lS(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),yz=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},lS(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},mh(e))}),cS(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),cS(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),uS=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),bz=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},uS(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),uS(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:`${we(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${we(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${we(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${we(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${we(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${we(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),dS=(e,t)=>({background:e.colorBgContainer,borderWidth:`${we(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.borderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.borderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),fS=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},dS(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),Cz=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},dS(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),fS(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),fS(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),xz=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),gS=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${we(t)} ${we(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},pS=e=>({padding:`${we(e.paddingBlockSM)} ${we(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),hS=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${we(e.paddingBlock)} ${we(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},xz(e.colorTextPlaceholder)),{"&-lg":Object.assign({},gS(e)),"&-sm":Object.assign({},pS(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),wz=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({},gS(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},pS(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 ${we(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${we(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${we(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:`${we(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${we(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"},_u()),{[`${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},[`
|
|
201
211
|
& > ${t}-affix-wrapper,
|
|
202
212
|
& > ${t}-number-affix-wrapper,
|
|
203
213
|
& > ${n}-picker-range
|
|
@@ -210,23 +220,23 @@ html body {
|
|
|
210
220
|
& > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
|
211
221
|
& > ${n}-select:last-child > ${n}-select-selector,
|
|
212
222
|
& > ${n}-cascader-picker:last-child ${t},
|
|
213
|
-
& > ${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}}}})}},
|
|
223
|
+
& > ${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}}}})}},Sz=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,a=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Rn(e)),hS(e)),hz(e)),yz(e)),vz(e)),Cz(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},Ez=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${we(e.inputAffixPadding)}`}}}},$z=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e,u=`${t}-affix-wrapper`,d=`${t}-affix-wrapper-disabled`;return{[u]:Object.assign(Object.assign(Object.assign(Object.assign({},hS(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,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),Ez(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),[`${t}-underlined`]:{borderRadius:0},[d]:{[`${l}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},_z=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Rn(e)),wz(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}}},mz(e)),bz(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}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},Oz=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-color-primary):not(${n}-btn-variant-text)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,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,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-color-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{inset:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${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,
|
|
214
224
|
> ${t},
|
|
215
|
-
${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},
|
|
225
|
+
${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},Nz=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},mS=Jt(["Input","Shared"],e=>{const t=jt(e,od(e));return[Sz(t),$z(t)]},id,{resetFont:!1}),vS=Jt(["Input","Component"],e=>{const t=jt(e,od(e));return[_z(t),Oz(t),Nz(t),$x(t)]},id,{resetFont:!1}),Pz=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},Rn(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},Rn(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({},Rn(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({},ip(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${we(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:`${we(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}})},{[`
|
|
216
226
|
${n}:not(${n}-disabled),
|
|
217
227
|
${t}:not(${t}-disabled)
|
|
218
228
|
`]:{[`&: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}`}}},[`
|
|
219
229
|
${n}-checked:not(${n}-disabled),
|
|
220
230
|
${t}-checked:not(${t}-disabled)
|
|
221
|
-
`]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{"&":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorBorder}`,"&: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}`,borderColor:`${e.colorPrimary}`}}}}},{[`${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 k4(e,t){const n=st(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[V4(n)]}const yy=Et("Checkbox",(e,{prefixCls:t})=>[k4(t,e)]),by=T.createContext(null);var H4=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const B4=(e,t)=>{var n;const{prefixCls:r,className:o,rootClassName:i,children:a,indeterminate:s=!1,style:l,onMouseEnter:c,onMouseLeave:u,skipGroup:d=!1,disabled:f}=e,p=H4(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:v,direction:m,checkbox:g}=h.useContext(Be),y=h.useContext(by),{isFormItemInput:x}=h.useContext(Ht),b=h.useContext(Mn),C=(n=(y==null?void 0:y.disabled)||f)!==null&&n!==void 0?n:b,w=h.useRef(p.value),$=h.useRef(null),S=kt(t,$);if(process.env.NODE_ENV!=="production"){const j=Ze("Checkbox");process.env.NODE_ENV!=="production"&&j("checked"in p||!!y||!("value"in p),"usage","`value` is not a valid prop, do you mean `checked`?")}h.useEffect(()=>{y==null||y.registerValue(p.value)},[]),h.useEffect(()=>{if(!d)return p.value!==w.current&&(y==null||y.cancelValue(w.current),y==null||y.registerValue(p.value),w.current=p.value),()=>y==null?void 0:y.cancelValue(p.value)},[p.value]),h.useEffect(()=>{var j;!((j=$.current)===null||j===void 0)&&j.input&&($.current.input.indeterminate=s)},[s]);const E=v("checkbox",r),_=Gr(E),[P,A,L]=yy(E,_),D=Object.assign({},p);y&&!d&&(D.onChange=(...j)=>{p.onChange&&p.onChange.apply(p,j),y.toggleOption&&y.toggleOption({label:a,value:p.value})},D.name=y.name,D.checked=y.value.includes(p.value));const O=re(`${E}-wrapper`,{[`${E}-rtl`]:m==="rtl",[`${E}-wrapper-checked`]:D.checked,[`${E}-wrapper-disabled`]:C,[`${E}-wrapper-in-form-item`]:x},g==null?void 0:g.className,o,i,L,_,A),M=re({[`${E}-indeterminate`]:s},Tu,A),[N,I]=w4(D.onClick);return P(h.createElement(Au,{component:"Checkbox",disabled:C},h.createElement("label",{className:O,style:Object.assign(Object.assign({},g==null?void 0:g.style),l),onMouseEnter:c,onMouseLeave:u,onClick:N},h.createElement(C4,Object.assign({},D,{onClick:I,prefixCls:E,className:M,disabled:C,ref:S})),a!=null&&h.createElement("span",{className:`${E}-label`},a))))},pd=h.forwardRef(B4);process.env.NODE_ENV!=="production"&&(pd.displayName="Checkbox");var W4=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const q4=h.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:o=[],prefixCls:i,className:a,rootClassName:s,style:l,onChange:c}=e,u=W4(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:d,direction:f}=h.useContext(Be),[p,v]=h.useState(u.value||n||[]),[m,g]=h.useState([]);h.useEffect(()=>{"value"in u&&v(u.value||[])},[u.value]);const y=h.useMemo(()=>o.map(M=>typeof M=="string"||typeof M=="number"?{label:M,value:M}:M),[o]),x=M=>{g(N=>N.filter(I=>I!==M))},b=M=>{g(N=>[].concat(de(N),[M]))},C=M=>{const N=p.indexOf(M.value),I=de(p);N===-1?I.push(M.value):I.splice(N,1),"value"in u||v(I),c==null||c(I.filter(j=>m.includes(j)).sort((j,z)=>{const F=y.findIndex(W=>W.value===j),R=y.findIndex(W=>W.value===z);return F-R}))},w=d("checkbox",i),$=`${w}-group`,S=Gr(w),[E,_,P]=yy(w,S),A=bn(u,["value","disabled"]),L=o.length?y.map(M=>h.createElement(pd,{prefixCls:w,key:M.value.toString(),disabled:"disabled"in M?M.disabled:u.disabled,value:M.value,checked:p.includes(M.value),onChange:M.onChange,className:re(`${$}-item`,M.className),style:M.style,title:M.title,id:M.id,required:M.required},M.label)):r,D=h.useMemo(()=>({toggleOption:C,value:p,disabled:u.disabled,name:u.name,registerValue:b,cancelValue:x}),[C,p,u.disabled,u.name,b,x]),O=re($,{[`${$}-rtl`]:f==="rtl"},a,s,P,S,_);return E(h.createElement("div",Object.assign({className:O,style:l},A,{ref:t}),h.createElement(by.Provider,{value:D},L)))}),qi=pd;qi.Group=q4,qi.__ANT_CHECKBOX=!0,process.env.NODE_ENV!=="production"&&(qi.displayName="Checkbox");const Cy=T.createContext({});var U4=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function wy(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const G4=["xs","sm","md","lg","xl","xxl"],Kr=h.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=h.useContext(Be),{gutter:o,wrap:i}=h.useContext(Cy),{prefixCls:a,span:s,order:l,offset:c,push:u,pull:d,className:f,children:p,flex:v,style:m}=e,g=U4(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),y=n("col",a),[x,b,C]=AM(y),w={};let $={};G4.forEach(_=>{let P={};const A=e[_];typeof A=="number"?P.span=A:typeof A=="object"&&(P=A||{}),delete g[_],$=Object.assign(Object.assign({},$),{[`${y}-${_}-${P.span}`]:P.span!==void 0,[`${y}-${_}-order-${P.order}`]:P.order||P.order===0,[`${y}-${_}-offset-${P.offset}`]:P.offset||P.offset===0,[`${y}-${_}-push-${P.push}`]:P.push||P.push===0,[`${y}-${_}-pull-${P.pull}`]:P.pull||P.pull===0,[`${y}-rtl`]:r==="rtl"}),P.flex&&($[`${y}-${_}-flex`]=!0,w[`--${y}-${_}-flex`]=wy(P.flex))});const S=re(y,{[`${y}-${s}`]:s!==void 0,[`${y}-order-${l}`]:l,[`${y}-offset-${c}`]:c,[`${y}-push-${u}`]:u,[`${y}-pull-${d}`]:d},f,$,b,C),E={};if(o&&o[0]>0){const _=o[0]/2;E.paddingLeft=_,E.paddingRight=_}return v&&(E.flex=wy(v),i===!1&&!E.minWidth&&(E.minWidth=0)),x(h.createElement("div",Object.assign({},g,{style:Object.assign(Object.assign(Object.assign({},E),m),w),className:S,ref:t}),p))});process.env.NODE_ENV!=="production"&&(Kr.displayName="Col");function X4(e,t){const n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],o=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return r.forEach((i,a)=>{if(typeof i=="object"&&i!==null)for(let s=0;s<Bi.length;s++){const l=Bi[s];if(o[l]&&i[l]!==void 0){n[a]=i[l];break}}else n[a]=i}),n}var Y4=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function xy(e,t){const[n,r]=h.useState(typeof e=="string"?e:""),o=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let i=0;i<Bi.length;i++){const a=Bi[i];if(!t||!t[a])continue;const s=e[a];if(s!==void 0){r(s);return}}};return h.useEffect(()=>{o()},[JSON.stringify(e),t]),n}const Ui=h.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:i,style:a,children:s,gutter:l=0,wrap:c}=e,u=Y4(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:d,direction:f}=h.useContext(Be),p=t4(!0,null),v=xy(o,p),m=xy(r,p),g=d("row",n),[y,x,b]=IM(g),C=X4(l,p),w=re(g,{[`${g}-no-wrap`]:c===!1,[`${g}-${m}`]:m,[`${g}-${v}`]:v,[`${g}-rtl`]:f==="rtl"},i,x,b),$={},S=C[0]!=null&&C[0]>0?C[0]/-2:void 0;S&&($.marginLeft=S,$.marginRight=S);const[E,_]=C;$.rowGap=_;const P=h.useMemo(()=>({gutter:[E,_],wrap:c}),[E,_,c]);return y(h.createElement(Cy.Provider,{value:P},h.createElement("div",Object.assign({},u,{className:w,style:Object.assign(Object.assign({},$),a),ref:t}),s)))});process.env.NODE_ENV!=="production"&&(Ui.displayName="Row");const K4=e=>{const{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},Z4=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:i,orientationMargin:a,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},Yt(e)),{borderBlockStart:`${fe(o)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${fe(o)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${fe(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${fe(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:`${fe(o)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-start`]:{"&::before":{width:`calc(${a} * 100%)`},"&::after":{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{"&::before":{width:`calc(100% - ${a} * 100%)`},"&::after":{width:`calc(${a} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${fe(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${fe(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-start${t}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},Q4=Et("Divider",e=>{const t=st(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[Z4(t),K4(t)]},e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),{unitless:{orientationMargin:!0}});var J4=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const eA={small:"sm",middle:"md"},gd=e=>{const{getPrefixCls:t,direction:n,className:r,style:o}=In("divider"),{prefixCls:i,type:a="horizontal",orientation:s="center",orientationMargin:l,className:c,rootClassName:u,children:d,dashed:f,variant:p="solid",plain:v,style:m,size:g}=e,y=J4(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style","size"]),x=t("divider",i),[b,C,w]=Q4(x),$=or(g),S=eA[$],E=!!d,_=h.useMemo(()=>s==="left"?n==="rtl"?"end":"start":s==="right"?n==="rtl"?"start":"end":s,[n,s]),P=_==="start"&&l!=null,A=_==="end"&&l!=null,L=re(x,r,C,w,`${x}-${a}`,{[`${x}-with-text`]:E,[`${x}-with-text-${_}`]:E,[`${x}-dashed`]:!!f,[`${x}-${p}`]:p!=="solid",[`${x}-plain`]:!!v,[`${x}-rtl`]:n==="rtl",[`${x}-no-default-orientation-margin-start`]:P,[`${x}-no-default-orientation-margin-end`]:A,[`${x}-${S}`]:!!S},c,u),D=h.useMemo(()=>typeof l=="number"?l:/^\d+$/.test(l)?Number(l):l,[l]),O={marginInlineStart:P?D:void 0,marginInlineEnd:A?D:void 0};if(process.env.NODE_ENV!=="production"){const M=Ze("Divider");process.env.NODE_ENV!=="production"&&M(!d||a!=="vertical","usage","`children` not working in `vertical` mode.")}return b(h.createElement("div",Object.assign({className:L,style:Object.assign(Object.assign({},o),m)},y,{role:"separator"}),d&&a!=="vertical"&&h.createElement("span",{className:`${x}-inner-text`,style:O},d)))};process.env.NODE_ENV!=="production"&&(gd.displayName="Divider");var Sy=function(t,n){if(!t)return null;var r={left:t.offsetLeft,right:t.parentElement.clientWidth-t.clientWidth-t.offsetLeft,width:t.clientWidth,top:t.offsetTop,bottom:t.parentElement.clientHeight-t.clientHeight-t.offsetTop,height:t.clientHeight};return n?{left:0,right:0,width:0,top:r.top,bottom:r.bottom,height:r.height}:{left:r.left,right:r.right,width:r.width,top:0,bottom:0,height:0}},Ln=function(t){return t!==void 0?"".concat(t,"px"):void 0};function tA(e){var t=e.prefixCls,n=e.containerRef,r=e.value,o=e.getValueIndex,i=e.motionName,a=e.onMotionStart,s=e.onMotionEnd,l=e.direction,c=e.vertical,u=c===void 0?!1:c,d=h.useRef(null),f=h.useState(r),p=ae(f,2),v=p[0],m=p[1],g=function(M){var N,I=o(M),j=(N=n.current)===null||N===void 0?void 0:N.querySelectorAll(".".concat(t,"-item"))[I];return(j==null?void 0:j.offsetParent)&&j},y=h.useState(null),x=ae(y,2),b=x[0],C=x[1],w=h.useState(null),$=ae(w,2),S=$[0],E=$[1];Ke(function(){if(v!==r){var O=g(v),M=g(r),N=Sy(O,u),I=Sy(M,u);m(r),C(N),E(I),O&&M?a():s()}},[r]);var _=h.useMemo(function(){if(u){var O;return Ln((O=b==null?void 0:b.top)!==null&&O!==void 0?O:0)}return Ln(l==="rtl"?-(b==null?void 0:b.right):b==null?void 0:b.left)},[u,l,b]),P=h.useMemo(function(){if(u){var O;return Ln((O=S==null?void 0:S.top)!==null&&O!==void 0?O:0)}return Ln(l==="rtl"?-(S==null?void 0:S.right):S==null?void 0:S.left)},[u,l,S]),A=function(){return u?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},L=function(){return u?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},D=function(){C(null),E(null),s()};return!b||!S?null:h.createElement(Dn,{visible:!0,motionName:i,motionAppear:!0,onAppearStart:A,onAppearActive:L,onVisibleChanged:D},function(O,M){var N=O.className,I=O.style,j=Q(Q({},I),{},{"--thumb-start-left":_,"--thumb-start-width":Ln(b==null?void 0:b.width),"--thumb-active-left":P,"--thumb-active-width":Ln(S==null?void 0:S.width),"--thumb-start-top":_,"--thumb-start-height":Ln(b==null?void 0:b.height),"--thumb-active-top":P,"--thumb-active-height":Ln(S==null?void 0:S.height)}),z={ref:kt(d,M),style:j,className:re("".concat(t,"-thumb"),N)};return process.env.NODE_ENV==="test"&&(z["data-test-style"]=JSON.stringify(j)),h.createElement("div",z)})}var nA=["prefixCls","direction","vertical","options","disabled","defaultValue","value","name","onChange","className","motionName"];function rA(e){if(typeof e.title<"u")return e.title;if(ye(e.label)!=="object"){var t;return(t=e.label)===null||t===void 0?void 0:t.toString()}}function oA(e){return e.map(function(t){if(ye(t)==="object"&&t!==null){var n=rA(t);return Q(Q({},t),{},{title:n})}return{label:t==null?void 0:t.toString(),title:t==null?void 0:t.toString(),value:t}})}var iA=function(t){var n=t.prefixCls,r=t.className,o=t.disabled,i=t.checked,a=t.label,s=t.title,l=t.value,c=t.name,u=t.onChange,d=t.onFocus,f=t.onBlur,p=t.onKeyDown,v=t.onKeyUp,m=t.onMouseDown,g=function(x){o||u(x,l)};return h.createElement("label",{className:re(r,X({},"".concat(n,"-item-disabled"),o)),onMouseDown:m},h.createElement("input",{name:c,className:"".concat(n,"-item-input"),type:"radio",disabled:o,checked:i,onChange:g,onFocus:d,onBlur:f,onKeyDown:p,onKeyUp:v}),h.createElement("div",{className:"".concat(n,"-item-label"),title:s,"aria-selected":i},a))},Ey=h.forwardRef(function(e,t){var n,r,o=e.prefixCls,i=o===void 0?"rc-segmented":o,a=e.direction,s=e.vertical,l=e.options,c=l===void 0?[]:l,u=e.disabled,d=e.defaultValue,f=e.value,p=e.name,v=e.onChange,m=e.className,g=m===void 0?"":m,y=e.motionName,x=y===void 0?"thumb-motion":y,b=vt(e,nA),C=h.useRef(null),w=h.useMemo(function(){return kt(C,t)},[C,t]),$=h.useMemo(function(){return oA(c)},[c]),S=An((n=$[0])===null||n===void 0?void 0:n.value,{value:f,defaultValue:d}),E=ae(S,2),_=E[0],P=E[1],A=h.useState(!1),L=ae(A,2),D=L[0],O=L[1],M=function(q,te){P(te),v==null||v(te)},N=bn(b,["children"]),I=h.useState(!1),j=ae(I,2),z=j[0],F=j[1],R=h.useState(!1),W=ae(R,2),H=W[0],V=W[1],B=function(){V(!0)},U=function(){V(!1)},K=function(){F(!1)},G=function(q){q.key==="Tab"&&F(!0)},Z=function(q){var te=$.findIndex(function(ce){return ce.value===_}),Y=$.length,oe=(te+q+Y)%Y,ne=$[oe];ne&&(P(ne.value),v==null||v(ne.value))},J=function(q){switch(q.key){case"ArrowLeft":case"ArrowUp":Z(-1);break;case"ArrowRight":case"ArrowDown":Z(1);break}};return h.createElement("div",Ce({role:"radiogroup","aria-label":"segmented control",tabIndex:u?void 0:0},N,{className:re(i,(r={},X(r,"".concat(i,"-rtl"),a==="rtl"),X(r,"".concat(i,"-disabled"),u),X(r,"".concat(i,"-vertical"),s),r),g),ref:w}),h.createElement("div",{className:"".concat(i,"-group")},h.createElement(tA,{vertical:s,prefixCls:i,value:_,containerRef:C,motionName:"".concat(i,"-").concat(x),direction:a,getValueIndex:function(q){return $.findIndex(function(te){return te.value===q})},onMotionStart:function(){O(!0)},onMotionEnd:function(){O(!1)}}),$.map(function(ee){var q;return h.createElement(iA,Ce({},ee,{name:p,key:ee.value,prefixCls:i,className:re(ee.className,"".concat(i,"-item"),(q={},X(q,"".concat(i,"-item-selected"),ee.value===_&&!D),X(q,"".concat(i,"-item-focused"),H&&z&&ee.value===_),q)),checked:ee.value===_,onChange:M,onFocus:B,onBlur:U,onKeyDown:J,onKeyUp:G,onMouseDown:K,disabled:!!u||!!ee.disabled}))})))});process.env.NODE_ENV!=="production"&&(Ey.displayName="Segmented");var aA=Ey;function $y(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function Oy(e){return{backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const sA=Object.assign({overflow:"hidden"},iu),lA=e=>{const{componentCls:t}=e,n=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),r=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),o=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Yt(e)),{display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`}),lu(e)),{[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:"column"},[`${t}-thumb`]:{width:"100%",height:0,padding:`0 ${fe(e.paddingXXS)}`}},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},Oy(e)),{color:e.itemSelectedColor}),"&-focused":Object.assign({},su(e)),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",opacity:0,transition:`opacity ${e.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{opacity:1,backgroundColor:e.itemHoverBg}},[`&:active:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{opacity:1,backgroundColor:e.itemActiveBg}},"&-label":Object.assign({minHeight:n,lineHeight:fe(n),padding:`0 ${fe(e.segmentedPaddingHorizontal)}`},sA),"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:Object.assign(Object.assign({},Oy(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${fe(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, height ${e.motionDurationSlow} ${e.motionEaseInOut}`,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:r,lineHeight:fe(r),padding:`0 ${fe(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:o,lineHeight:fe(o),padding:`0 ${fe(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),$y(`&-disabled ${t}-item`,e)),$y(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"},[`&${t}-shape-round`]:{borderRadius:9999,[`${t}-item, ${t}-thumb`]:{borderRadius:9999}}})}},cA=Et("Segmented",e=>{const{lineWidth:t,calc:n}=e,r=st(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return[lA(r)]},e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:o,colorFill:i,lineWidthBold:a,colorBgLayout:s}=e;return{trackPadding:a,trackBg:s,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:o,itemActiveBg:i,itemSelectedColor:n}});var _y=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function uA(e){return typeof e=="object"&&!!(e!=null&&e.icon)}const Ny=h.forwardRef((e,t)=>{const n=Hu(),{prefixCls:r,className:o,rootClassName:i,block:a,options:s=[],size:l="middle",style:c,vertical:u,shape:d="default",name:f=n}=e,p=_y(e,["prefixCls","className","rootClassName","block","options","size","style","vertical","shape","name"]),{getPrefixCls:v,direction:m,className:g,style:y}=In("segmented"),x=v("segmented",r),[b,C,w]=cA(x),$=or(l),S=h.useMemo(()=>s.map(P=>{if(uA(P)){const{icon:A,label:L}=P,D=_y(P,["icon","label"]);return Object.assign(Object.assign({},D),{label:h.createElement(h.Fragment,null,h.createElement("span",{className:`${x}-item-icon`},A),L&&h.createElement("span",null,L))})}return P}),[s,x]),E=re(o,i,g,{[`${x}-block`]:a,[`${x}-sm`]:$==="small",[`${x}-lg`]:$==="large",[`${x}-vertical`]:u,[`${x}-shape-${d}`]:d==="round"},C,w),_=Object.assign(Object.assign({},y),c);return b(h.createElement(aA,Object.assign({},p,{name:f,className:E,style:_,options:S,ref:t,prefixCls:x,direction:m,vertical:u})))});process.env.NODE_ENV!=="production"&&(Ny.displayName="Segmented");function dA(e){return!!(e.addonBefore||e.addonAfter)}function fA(e){return!!(e.prefix||e.suffix||e.allowClear)}function Py(e,t,n){var r=t.cloneNode(!0),o=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)},o}function qs(e,t,n,r){if(n){var o=t;if(t.type==="click"){o=Py(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=Py(t,e,r),n(o);return}n(o)}}function Ty(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var o=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var Iy=T.forwardRef(function(e,t){var n,r,o,i=e.inputElement,a=e.children,s=e.prefixCls,l=e.prefix,c=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,p=e.style,v=e.disabled,m=e.readOnly,g=e.focused,y=e.triggerFocus,x=e.allowClear,b=e.value,C=e.handleReset,w=e.hidden,$=e.classes,S=e.classNames,E=e.dataAttrs,_=e.styles,P=e.components,A=e.onClear,L=a??i,D=(P==null?void 0:P.affixWrapper)||"span",O=(P==null?void 0:P.groupWrapper)||"span",M=(P==null?void 0:P.wrapper)||"span",N=(P==null?void 0:P.groupAddon)||"span",I=T.useRef(null),j=function(oe){var ne;(ne=I.current)!==null&&ne!==void 0&&ne.contains(oe.target)&&(y==null||y())},z=fA(e),F=T.cloneElement(L,{value:b,className:re((n=L.props)===null||n===void 0?void 0:n.className,!z&&(S==null?void 0:S.variant))||null}),R=T.useRef(null);if(T.useImperativeHandle(t,function(){return{nativeElement:R.current||I.current}}),z){var W=null;if(x){var H=!v&&!m&&b,V="".concat(s,"-clear-icon"),B=ye(x)==="object"&&x!==null&&x!==void 0&&x.clearIcon?x.clearIcon:"✖";W=T.createElement("button",{type:"button",tabIndex:-1,onClick:function(oe){C==null||C(oe),A==null||A()},onMouseDown:function(oe){return oe.preventDefault()},className:re(V,X(X({},"".concat(V,"-hidden"),!H),"".concat(V,"-has-suffix"),!!c))},B)}var U="".concat(s,"-affix-wrapper"),K=re(U,X(X(X(X(X({},"".concat(s,"-disabled"),v),"".concat(U,"-disabled"),v),"".concat(U,"-focused"),g),"".concat(U,"-readonly"),m),"".concat(U,"-input-with-clear-btn"),c&&x&&b),$==null?void 0:$.affixWrapper,S==null?void 0:S.affixWrapper,S==null?void 0:S.variant),G=(c||x)&&T.createElement("span",{className:re("".concat(s,"-suffix"),S==null?void 0:S.suffix),style:_==null?void 0:_.suffix},W,c);F=T.createElement(D,Ce({className:K,style:_==null?void 0:_.affixWrapper,onClick:j},E==null?void 0:E.affixWrapper,{ref:I}),l&&T.createElement("span",{className:re("".concat(s,"-prefix"),S==null?void 0:S.prefix),style:_==null?void 0:_.prefix},l),F,G)}if(dA(e)){var Z="".concat(s,"-group"),J="".concat(Z,"-addon"),ee="".concat(Z,"-wrapper"),q=re("".concat(s,"-wrapper"),Z,$==null?void 0:$.wrapper,S==null?void 0:S.wrapper),te=re(ee,X({},"".concat(ee,"-disabled"),v),$==null?void 0:$.group,S==null?void 0:S.groupWrapper);F=T.createElement(O,{className:te,ref:R},T.createElement(M,{className:q},u&&T.createElement(N,{className:J},u),F,d&&T.createElement(N,{className:J},d)))}return T.cloneElement(F,{className:re((r=F.props)===null||r===void 0?void 0:r.className,f)||null,style:Q(Q({},(o=F.props)===null||o===void 0?void 0:o.style),p),hidden:w})}),pA=["show"];function My(e,t){return h.useMemo(function(){var n={};t&&(n.show=ye(t)==="object"&&t.formatter?t.formatter:!!t),n=Q(Q({},n),e);var r=n,o=r.show,i=vt(r,pA);return Q(Q({},i),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:i.strategy||function(a){return a.length}})},[e,t])}var gA=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],hA=T.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,i=e.onBlur,a=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,c=e.prefixCls,u=c===void 0?"rc-input":c,d=e.disabled,f=e.htmlSize,p=e.className,v=e.maxLength,m=e.suffix,g=e.showCount,y=e.count,x=e.type,b=x===void 0?"text":x,C=e.classes,w=e.classNames,$=e.styles,S=e.onCompositionStart,E=e.onCompositionEnd,_=vt(e,gA),P=T.useState(!1),A=ae(P,2),L=A[0],D=A[1],O=T.useRef(!1),M=T.useRef(!1),N=T.useRef(null),I=T.useRef(null),j=function(ue){N.current&&Ty(N.current,ue)},z=An(e.defaultValue,{value:e.value}),F=ae(z,2),R=F[0],W=F[1],H=R==null?"":String(R),V=T.useState(null),B=ae(V,2),U=B[0],K=B[1],G=My(y,g),Z=G.max||v,J=G.strategy(H),ee=!!Z&&J>Z;T.useImperativeHandle(t,function(){var he;return{focus:j,blur:function(){var Ee;(Ee=N.current)===null||Ee===void 0||Ee.blur()},setSelectionRange:function(Ee,Ne,Ue){var De;(De=N.current)===null||De===void 0||De.setSelectionRange(Ee,Ne,Ue)},select:function(){var Ee;(Ee=N.current)===null||Ee===void 0||Ee.select()},input:N.current,nativeElement:((he=I.current)===null||he===void 0?void 0:he.nativeElement)||N.current}}),T.useEffect(function(){M.current&&(M.current=!1),D(function(he){return he&&d?!1:he})},[d]);var q=function(ue,Ee,Ne){var Ue=Ee;if(!O.current&&G.exceedFormatter&&G.max&&G.strategy(Ee)>G.max){if(Ue=G.exceedFormatter(Ee,{max:G.max}),Ee!==Ue){var De,Le;K([((De=N.current)===null||De===void 0?void 0:De.selectionStart)||0,((Le=N.current)===null||Le===void 0?void 0:Le.selectionEnd)||0])}}else if(Ne.source==="compositionEnd")return;W(Ue),N.current&&qs(N.current,ue,r,Ue)};T.useEffect(function(){if(U){var he;(he=N.current)===null||he===void 0||he.setSelectionRange.apply(he,de(U))}},[U]);var te=function(ue){q(ue,ue.target.value,{source:"change"})},Y=function(ue){O.current=!1,q(ue,ue.currentTarget.value,{source:"compositionEnd"}),E==null||E(ue)},oe=function(ue){a&&ue.key==="Enter"&&!M.current&&(M.current=!0,a(ue)),s==null||s(ue)},ne=function(ue){ue.key==="Enter"&&(M.current=!1),l==null||l(ue)},ce=function(ue){D(!0),o==null||o(ue)},ve=function(ue){M.current&&(M.current=!1),D(!1),i==null||i(ue)},pe=function(ue){W(""),j(),N.current&&qs(N.current,ue,r)},_e=ee&&"".concat(u,"-out-of-range"),xe=function(){var ue=bn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return T.createElement("input",Ce({autoComplete:n},ue,{onChange:te,onFocus:ce,onBlur:ve,onKeyDown:oe,onKeyUp:ne,className:re(u,X({},"".concat(u,"-disabled"),d),w==null?void 0:w.input),style:$==null?void 0:$.input,ref:N,size:f,type:b,onCompositionStart:function(Ne){O.current=!0,S==null||S(Ne)},onCompositionEnd:Y}))},Oe=function(){var ue=Number(Z)>0;if(m||G.show){var Ee=G.showFormatter?G.showFormatter({value:H,count:J,maxLength:Z}):"".concat(J).concat(ue?" / ".concat(Z):"");return T.createElement(T.Fragment,null,G.show&&T.createElement("span",{className:re("".concat(u,"-show-count-suffix"),X({},"".concat(u,"-show-count-has-suffix"),!!m),w==null?void 0:w.count),style:Q({},$==null?void 0:$.count)},Ee),m)}return null};return T.createElement(Iy,Ce({},_,{prefixCls:u,className:re(p,_e),handleReset:pe,value:H,focused:L,triggerFocus:j,suffix:Oe(),disabled:d,classes:C,classNames:w,styles:$,ref:I}),xe())});const Ay=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:T.createElement(Di,null)}),t};function Dy(e,t){const n=T.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,i,a,s;!((o=e.current)===null||o===void 0)&&o.input&&((i=e.current)===null||i===void 0?void 0:i.input.getAttribute("type"))==="password"&&(!((a=e.current)===null||a===void 0)&&a.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return T.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function mA(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var vA=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Gi=T.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,status:o,size:i,disabled:a,onBlur:s,onFocus:l,suffix:c,allowClear:u,addonAfter:d,addonBefore:f,className:p,style:v,styles:m,rootClassName:g,onChange:y,classNames:x,variant:b}=e,C=vA(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);if(process.env.NODE_ENV!=="production"){const{deprecated:pe}=Ze("Input");pe(!("bordered"in e),"bordered","variant")}const{getPrefixCls:w,direction:$,allowClear:S,autoComplete:E,className:_,style:P,classNames:A,styles:L}=In("input"),D=w("input",n),O=T.useRef(null),M=Gr(D),[N,I,j]=my(D,g),[z]=vy(D,M),{compactSize:F,compactItemClassnames:R}=As(D,$),W=or(pe=>{var _e;return(_e=i??F)!==null&&_e!==void 0?_e:pe}),H=T.useContext(Mn),V=a??H,{status:B,hasFeedback:U,feedbackIcon:K}=T.useContext(Ht),G=ud(B,o),Z=mA(e)||!!U,J=T.useRef(Z);if(process.env.NODE_ENV!=="production"){const pe=Ze("Input");T.useEffect(()=>{var _e;Z&&!J.current&&process.env.NODE_ENV!=="production"&&pe(document.activeElement===((_e=O.current)===null||_e===void 0?void 0:_e.input),"usage","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),J.current=Z},[Z])}const ee=Dy(O,!0),q=pe=>{ee(),s==null||s(pe)},te=pe=>{ee(),l==null||l(pe)},Y=pe=>{ee(),y==null||y(pe)},oe=(U||c)&&T.createElement(T.Fragment,null,c,U&&K),ne=Ay(u??S),[ce,ve]=q0("input",b,r);return N(z(T.createElement(hA,Object.assign({ref:kt(t,O),prefixCls:D,autoComplete:E},C,{disabled:V,onBlur:q,onFocus:te,style:Object.assign(Object.assign({},P),v),styles:Object.assign(Object.assign({},L),m),suffix:oe,allowClear:ne,className:re(p,g,j,M,R,_),onChange:Y,addonBefore:f&&T.createElement(ad,{form:!0,space:!0},f),addonAfter:d&&T.createElement(ad,{form:!0,space:!0},d),classNames:Object.assign(Object.assign(Object.assign({},x),A),{input:re({[`${D}-sm`]:W==="small",[`${D}-lg`]:W==="large",[`${D}-rtl`]:$==="rtl"},x==null?void 0:x.input,A.input,I),variant:re({[`${D}-${ce}`]:ve},cd(D,G)),affixWrapper:re({[`${D}-affix-wrapper-sm`]:W==="small",[`${D}-affix-wrapper-lg`]:W==="large",[`${D}-affix-wrapper-rtl`]:$==="rtl"},I),wrapper:re({[`${D}-group-rtl`]:$==="rtl"},I),groupWrapper:re({[`${D}-group-wrapper-sm`]:W==="small",[`${D}-group-wrapper-lg`]:W==="large",[`${D}-group-wrapper-rtl`]:$==="rtl",[`${D}-group-wrapper-${ce}`]:ve},cd(`${D}-group-wrapper`,G,U),I)})}))))});process.env.NODE_ENV!=="production"&&(Gi.displayName="Input");function Fy(e){return["small","middle","large"].includes(e)}function Ly(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const jy=T.createContext({latestIndex:0}),yA=jy.Provider,bA=({className:e,index:t,children:n,split:r,style:o})=>{const{latestIndex:i}=h.useContext(jy);return n==null?null:h.createElement(h.Fragment,null,h.createElement("div",{className:e,style:o},n),t<i&&r&&h.createElement("span",{className:`${e}-split`},r))};var CA=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Ho=h.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:o,size:i,className:a,style:s,classNames:l,styles:c}=In("space"),{size:u=i??"small",align:d,className:f,rootClassName:p,children:v,direction:m="horizontal",prefixCls:g,split:y,style:x,wrap:b=!1,classNames:C,styles:w}=e,$=CA(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[S,E]=Array.isArray(u)?u:[u,u],_=Fy(E),P=Fy(S),A=Ly(E),L=Ly(S),D=Zn(v,{keepEmpty:!0}),O=d===void 0&&m==="horizontal"?"center":d,M=r("space",g),[N,I,j]=Vv(M),z=re(M,a,I,`${M}-${m}`,{[`${M}-rtl`]:o==="rtl",[`${M}-align-${O}`]:O,[`${M}-gap-row-${E}`]:_,[`${M}-gap-col-${S}`]:P},f,p,j),F=re(`${M}-item`,(n=C==null?void 0:C.item)!==null&&n!==void 0?n:l.item);let R=0;const W=D.map((B,U)=>{var K;B!=null&&(R=U);const G=(B==null?void 0:B.key)||`${F}-${U}`;return h.createElement(bA,{className:F,key:G,index:U,split:y,style:(K=w==null?void 0:w.item)!==null&&K!==void 0?K:c.item},B)}),H=h.useMemo(()=>({latestIndex:R}),[R]);if(D.length===0)return null;const V={};return b&&(V.flexWrap="wrap"),!P&&L&&(V.columnGap=S),!_&&A&&(V.rowGap=E),N(h.createElement("div",Object.assign({ref:t,className:z,style:Object.assign(Object.assign(Object.assign({},V),s),x)},$),h.createElement(yA,{value:H},W)))});Ho.Compact=lT,process.env.NODE_ENV!=="production"&&(Ho.displayName="Space");function wA(e){return e==null?null:typeof e=="object"&&!T.isValidElement(e)?e:{title:e}}function Us(e){const[t,n]=h.useState(e);return h.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const xA=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut},
|
|
231
|
+
`]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{"&":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorBorder}`,"&: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}`,borderColor:`${e.colorPrimary}`}}}}},{[`${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 Iz(e,t){const n=jt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[Pz(n)]}const yS=Jt("Checkbox",(e,{prefixCls:t})=>[Iz(t,e)]),bS=M.createContext(null);var Tz=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Mz=(e,t)=>{var n;const{prefixCls:r,className:o,rootClassName:i,children:a,indeterminate:l=!1,style:u,onMouseEnter:d,onMouseLeave:f,skipGroup:g=!1,disabled:p}=e,m=Tz(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:b,direction:C,checkbox:y}=h.useContext(et),x=h.useContext(bS),{isFormItemInput:$}=h.useContext(Yn),w=h.useContext(Co),E=(n=(x==null?void 0:x.disabled)||p)!==null&&n!==void 0?n:w,S=h.useRef(m.value),O=h.useRef(null),_=Xn(t,O);if(process.env.NODE_ENV!=="production"){const V=$t("Checkbox");process.env.NODE_ENV!=="production"&&V("checked"in m||!!x||!("value"in m),"usage","`value` is not a valid prop, do you mean `checked`?")}h.useEffect(()=>{x==null||x.registerValue(m.value)},[]),h.useEffect(()=>{if(!g)return m.value!==S.current&&(x==null||x.cancelValue(S.current),x==null||x.registerValue(m.value),S.current=m.value),()=>x==null?void 0:x.cancelValue(m.value)},[m.value]),h.useEffect(()=>{var V;!((V=O.current)===null||V===void 0)&&V.input&&(O.current.input.indeterminate=l)},[l]);const P=b("checkbox",r),T=ko(P),[L,z,B]=yS(P,T),j=Object.assign({},m);x&&!g&&(j.onChange=(...V)=>{m.onChange&&m.onChange.apply(m,V),x.toggleOption&&x.toggleOption({label:a,value:m.value})},j.name=x.name,j.checked=x.value.includes(m.value));const I=ge(`${P}-wrapper`,{[`${P}-rtl`]:C==="rtl",[`${P}-wrapper-checked`]:j.checked,[`${P}-wrapper-disabled`]:E,[`${P}-wrapper-in-form-item`]:$},y==null?void 0:y.className,o,i,B,T,z),F=ge({[`${P}-indeterminate`]:l},Ep,z),[A,D]=uz(j.onClick);return L(h.createElement(Op,{component:"Checkbox",disabled:E},h.createElement("label",{className:I,style:Object.assign(Object.assign({},y==null?void 0:y.style),u),onMouseEnter:d,onMouseLeave:f,onClick:A},h.createElement(cz,Object.assign({},j,{onClick:D,prefixCls:P,className:F,disabled:E,ref:_})),a!=null&&h.createElement("span",{className:`${P}-label`},a))))},vh=h.forwardRef(Mz);process.env.NODE_ENV!=="production"&&(vh.displayName="Checkbox");var Az=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Dz=h.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:o=[],prefixCls:i,className:a,rootClassName:l,style:u,onChange:d}=e,f=Az(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:g,direction:p}=h.useContext(et),[m,b]=h.useState(f.value||n||[]),[C,y]=h.useState([]);h.useEffect(()=>{"value"in f&&b(f.value||[])},[f.value]);const x=h.useMemo(()=>o.map(F=>typeof F=="string"||typeof F=="number"?{label:F,value:F}:F),[o]),$=F=>{y(A=>A.filter(D=>D!==F))},w=F=>{y(A=>[].concat(Oe(A),[F]))},E=F=>{const A=m.indexOf(F.value),D=Oe(m);A===-1?D.push(F.value):D.splice(A,1),"value"in f||b(D),d==null||d(D.filter(V=>C.includes(V)).sort((V,W)=>{const H=x.findIndex(Z=>Z.value===V),q=x.findIndex(Z=>Z.value===W);return H-q}))},S=g("checkbox",i),O=`${S}-group`,_=ko(S),[P,T,L]=yS(S,_),z=jn(f,["value","disabled"]),B=o.length?x.map(F=>h.createElement(vh,{prefixCls:S,key:F.value.toString(),disabled:"disabled"in F?F.disabled:f.disabled,value:F.value,checked:m.includes(F.value),onChange:F.onChange,className:ge(`${O}-item`,F.className),style:F.style,title:F.title,id:F.id,required:F.required},F.label)):r,j=h.useMemo(()=>({toggleOption:E,value:m,disabled:f.disabled,name:f.name,registerValue:w,cancelValue:$}),[E,m,f.disabled,f.name,w,$]),I=ge(O,{[`${O}-rtl`]:p==="rtl"},a,l,L,_,T);return P(h.createElement("div",Object.assign({className:I,style:u},z,{ref:t}),h.createElement(bS.Provider,{value:j},B)))}),Dl=vh;Dl.Group=Dz,Dl.__ANT_CHECKBOX=!0,process.env.NODE_ENV!=="production"&&(Dl.displayName="Checkbox");const CS=M.createContext({});var Fz=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function xS(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const Lz=["xs","sm","md","lg","xl","xxl"],ua=h.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=h.useContext(et),{gutter:o,wrap:i}=h.useContext(CS),{prefixCls:a,span:l,order:u,offset:d,push:f,pull:g,className:p,children:m,flex:b,style:C}=e,y=Fz(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),x=n("col",a),[$,w,E]=aR(x),S={};let O={};Lz.forEach(T=>{let L={};const z=e[T];typeof z=="number"?L.span=z:typeof z=="object"&&(L=z||{}),delete y[T],O=Object.assign(Object.assign({},O),{[`${x}-${T}-${L.span}`]:L.span!==void 0,[`${x}-${T}-order-${L.order}`]:L.order||L.order===0,[`${x}-${T}-offset-${L.offset}`]:L.offset||L.offset===0,[`${x}-${T}-push-${L.push}`]:L.push||L.push===0,[`${x}-${T}-pull-${L.pull}`]:L.pull||L.pull===0,[`${x}-rtl`]:r==="rtl"}),L.flex&&(O[`${x}-${T}-flex`]=!0,S[`--${x}-${T}-flex`]=xS(L.flex))});const _=ge(x,{[`${x}-${l}`]:l!==void 0,[`${x}-order-${u}`]:u,[`${x}-offset-${d}`]:d,[`${x}-push-${f}`]:f,[`${x}-pull-${g}`]:g},p,O,w,E),P={};if(o&&o[0]>0){const T=o[0]/2;P.paddingLeft=T,P.paddingRight=T}return b&&(P.flex=xS(b),i===!1&&!P.minWidth&&(P.minWidth=0)),$(h.createElement("div",Object.assign({},y,{style:Object.assign(Object.assign(Object.assign({},P),C),S),className:_,ref:t}),m))});process.env.NODE_ENV!=="production"&&(ua.displayName="Col");function Rz(e,t){const n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],o=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return r.forEach((i,a)=>{if(typeof i=="object"&&i!==null)for(let l=0;l<Ml.length;l++){const u=Ml[l];if(o[u]&&i[u]!==void 0){n[a]=i[u];break}}else n[a]=i}),n}var zz=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function wS(e,t){const[n,r]=h.useState(typeof e=="string"?e:""),o=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let i=0;i<Ml.length;i++){const a=Ml[i];if(!t||!t[a])continue;const l=e[a];if(l!==void 0){r(l);return}}};return h.useEffect(()=>{o()},[JSON.stringify(e),t]),n}const Fl=h.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:i,style:a,children:l,gutter:u=0,wrap:d}=e,f=zz(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:g,direction:p}=h.useContext(et),m=VR(!0,null),b=wS(o,m),C=wS(r,m),y=g("row",n),[x,$,w]=iR(y),E=Rz(u,m),S=ge(y,{[`${y}-no-wrap`]:d===!1,[`${y}-${C}`]:C,[`${y}-${b}`]:b,[`${y}-rtl`]:p==="rtl"},i,$,w),O={},_=E[0]!=null&&E[0]>0?E[0]/-2:void 0;_&&(O.marginLeft=_,O.marginRight=_);const[P,T]=E;O.rowGap=T;const L=h.useMemo(()=>({gutter:[P,T],wrap:d}),[P,T,d]);return x(h.createElement(CS.Provider,{value:L},h.createElement("div",Object.assign({},f,{className:S,style:Object.assign(Object.assign({},O),a),ref:t}),l)))});process.env.NODE_ENV!=="production"&&(Fl.displayName="Row");const jz=e=>{const{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},Bz=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:i,orientationMargin:a,verticalMarginInline:l}=e;return{[t]:Object.assign(Object.assign({},Rn(e)),{borderBlockStart:`${we(o)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${we(o)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${we(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${we(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:`${we(o)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-start`]:{"&::before":{width:`calc(${a} * 100%)`},"&::after":{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{"&::before":{width:`calc(100% - ${a} * 100%)`},"&::after":{width:`calc(${a} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${we(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${we(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-start${t}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},Vz=Jt("Divider",e=>{const t=jt(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[Bz(t),jz(t)]},e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),{unitless:{orientationMargin:!0}});var Hz=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const kz={small:"sm",middle:"md"},yh=e=>{const{getPrefixCls:t,direction:n,className:r,style:o}=lr("divider"),{prefixCls:i,type:a="horizontal",orientation:l="center",orientationMargin:u,className:d,rootClassName:f,children:g,dashed:p,variant:m="solid",plain:b,style:C,size:y}=e,x=Hz(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style","size"]),$=t("divider",i),[w,E,S]=Vz($),O=Uo(y),_=kz[O],P=!!g,T=h.useMemo(()=>l==="left"?n==="rtl"?"end":"start":l==="right"?n==="rtl"?"start":"end":l,[n,l]),L=T==="start"&&u!=null,z=T==="end"&&u!=null,B=ge($,r,E,S,`${$}-${a}`,{[`${$}-with-text`]:P,[`${$}-with-text-${T}`]:P,[`${$}-dashed`]:!!p,[`${$}-${m}`]:m!=="solid",[`${$}-plain`]:!!b,[`${$}-rtl`]:n==="rtl",[`${$}-no-default-orientation-margin-start`]:L,[`${$}-no-default-orientation-margin-end`]:z,[`${$}-${_}`]:!!_},d,f),j=h.useMemo(()=>typeof u=="number"?u:/^\d+$/.test(u)?Number(u):u,[u]),I={marginInlineStart:L?j:void 0,marginInlineEnd:z?j:void 0};if(process.env.NODE_ENV!=="production"){const F=$t("Divider");process.env.NODE_ENV!=="production"&&F(!g||a!=="vertical","usage","`children` not working in `vertical` mode.")}return w(h.createElement("div",Object.assign({className:B,style:Object.assign(Object.assign({},o),C)},x,{role:"separator"}),g&&a!=="vertical"&&h.createElement("span",{className:`${$}-inner-text`,style:I},g)))};process.env.NODE_ENV!=="production"&&(yh.displayName="Divider");var SS=function(t,n){if(!t)return null;var r={left:t.offsetLeft,right:t.parentElement.clientWidth-t.clientWidth-t.offsetLeft,width:t.clientWidth,top:t.offsetTop,bottom:t.parentElement.clientHeight-t.clientHeight-t.offsetTop,height:t.clientHeight};return n?{left:0,right:0,width:0,top:r.top,bottom:r.bottom,height:r.height}:{left:r.left,right:r.right,width:r.width,top:0,bottom:0,height:0}},Eo=function(t){return t!==void 0?"".concat(t,"px"):void 0};function Wz(e){var t=e.prefixCls,n=e.containerRef,r=e.value,o=e.getValueIndex,i=e.motionName,a=e.onMotionStart,l=e.onMotionEnd,u=e.direction,d=e.vertical,f=d===void 0?!1:d,g=h.useRef(null),p=h.useState(r),m=Ee(p,2),b=m[0],C=m[1],y=function(F){var A,D=o(F),V=(A=n.current)===null||A===void 0?void 0:A.querySelectorAll(".".concat(t,"-item"))[D];return(V==null?void 0:V.offsetParent)&&V},x=h.useState(null),$=Ee(x,2),w=$[0],E=$[1],S=h.useState(null),O=Ee(S,2),_=O[0],P=O[1];Ft(function(){if(b!==r){var I=y(b),F=y(r),A=SS(I,f),D=SS(F,f);C(r),E(A),P(D),I&&F?a():l()}},[r]);var T=h.useMemo(function(){if(f){var I;return Eo((I=w==null?void 0:w.top)!==null&&I!==void 0?I:0)}return Eo(u==="rtl"?-(w==null?void 0:w.right):w==null?void 0:w.left)},[f,u,w]),L=h.useMemo(function(){if(f){var I;return Eo((I=_==null?void 0:_.top)!==null&&I!==void 0?I:0)}return Eo(u==="rtl"?-(_==null?void 0:_.right):_==null?void 0:_.left)},[f,u,_]),z=function(){return f?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},B=function(){return f?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},j=function(){E(null),P(null),l()};return!w||!_?null:h.createElement(Nr,{visible:!0,motionName:i,motionAppear:!0,onAppearStart:z,onAppearActive:B,onVisibleChanged:j},function(I,F){var A=I.className,D=I.style,V=le(le({},D),{},{"--thumb-start-left":T,"--thumb-start-width":Eo(w==null?void 0:w.width),"--thumb-active-left":L,"--thumb-active-width":Eo(_==null?void 0:_.width),"--thumb-start-top":T,"--thumb-start-height":Eo(w==null?void 0:w.height),"--thumb-active-top":L,"--thumb-active-height":Eo(_==null?void 0:_.height)}),W={ref:Xn(g,F),style:V,className:ge("".concat(t,"-thumb"),A)};return process.env.NODE_ENV==="test"&&(W["data-test-style"]=JSON.stringify(V)),h.createElement("div",W)})}var Uz=["prefixCls","direction","vertical","options","disabled","defaultValue","value","name","onChange","className","motionName"];function qz(e){if(typeof e.title<"u")return e.title;if(je(e.label)!=="object"){var t;return(t=e.label)===null||t===void 0?void 0:t.toString()}}function Gz(e){return e.map(function(t){if(je(t)==="object"&&t!==null){var n=qz(t);return le(le({},t),{},{title:n})}return{label:t==null?void 0:t.toString(),title:t==null?void 0:t.toString(),value:t}})}var Xz=function(t){var n=t.prefixCls,r=t.className,o=t.disabled,i=t.checked,a=t.label,l=t.title,u=t.value,d=t.name,f=t.onChange,g=t.onFocus,p=t.onBlur,m=t.onKeyDown,b=t.onKeyUp,C=t.onMouseDown,y=function($){o||f($,u)};return h.createElement("label",{className:ge(r,re({},"".concat(n,"-item-disabled"),o)),onMouseDown:C},h.createElement("input",{name:d,className:"".concat(n,"-item-input"),type:"radio",disabled:o,checked:i,onChange:y,onFocus:g,onBlur:p,onKeyDown:m,onKeyUp:b}),h.createElement("div",{className:"".concat(n,"-item-label"),title:l,"aria-selected":i},a))},ES=h.forwardRef(function(e,t){var n,r,o=e.prefixCls,i=o===void 0?"rc-segmented":o,a=e.direction,l=e.vertical,u=e.options,d=u===void 0?[]:u,f=e.disabled,g=e.defaultValue,p=e.value,m=e.name,b=e.onChange,C=e.className,y=C===void 0?"":C,x=e.motionName,$=x===void 0?"thumb-motion":x,w=sn(e,Uz),E=h.useRef(null),S=h.useMemo(function(){return Xn(E,t)},[E,t]),O=h.useMemo(function(){return Gz(d)},[d]),_=Or((n=O[0])===null||n===void 0?void 0:n.value,{value:p,defaultValue:g}),P=Ee(_,2),T=P[0],L=P[1],z=h.useState(!1),B=Ee(z,2),j=B[0],I=B[1],F=function(J,fe){L(fe),b==null||b(fe)},A=jn(w,["children"]),D=h.useState(!1),V=Ee(D,2),W=V[0],H=V[1],q=h.useState(!1),Z=Ee(q,2),Y=Z[0],G=Z[1],K=function(){G(!0)},te=function(){G(!1)},ie=function(){H(!1)},ee=function(J){J.key==="Tab"&&H(!0)},ae=function(J){var fe=O.findIndex(function(_e){return _e.value===T}),oe=O.length,he=(fe+J+oe)%oe,me=O[he];me&&(L(me.value),b==null||b(me.value))},de=function(J){switch(J.key){case"ArrowLeft":case"ArrowUp":ae(-1);break;case"ArrowRight":case"ArrowDown":ae(1);break}};return h.createElement("div",Le({role:"radiogroup","aria-label":"segmented control",tabIndex:f?void 0:0},A,{className:ge(i,(r={},re(r,"".concat(i,"-rtl"),a==="rtl"),re(r,"".concat(i,"-disabled"),f),re(r,"".concat(i,"-vertical"),l),r),y),ref:S}),h.createElement("div",{className:"".concat(i,"-group")},h.createElement(Wz,{vertical:l,prefixCls:i,value:T,containerRef:E,motionName:"".concat(i,"-").concat($),direction:a,getValueIndex:function(J){return O.findIndex(function(fe){return fe.value===J})},onMotionStart:function(){I(!0)},onMotionEnd:function(){I(!1)}}),O.map(function(ue){var J;return h.createElement(Xz,Le({},ue,{name:m,key:ue.value,prefixCls:i,className:ge(ue.className,"".concat(i,"-item"),(J={},re(J,"".concat(i,"-item-selected"),ue.value===T&&!j),re(J,"".concat(i,"-item-focused"),Y&&W&&ue.value===T),J)),checked:ue.value===T,onChange:F,onFocus:K,onBlur:te,onKeyDown:de,onKeyUp:ee,onMouseDown:ie,disabled:!!f||!!ue.disabled}))})))});process.env.NODE_ENV!=="production"&&(ES.displayName="Segmented");var Yz=ES;function $S(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function _S(e){return{backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const Kz=Object.assign({overflow:"hidden"},op),Zz=e=>{const{componentCls:t}=e,n=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),r=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),o=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Rn(e)),{display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`}),Ou(e)),{[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:"column"},[`${t}-thumb`]:{width:"100%",height:0,padding:`0 ${we(e.paddingXXS)}`}},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},_S(e)),{color:e.itemSelectedColor}),"&-focused":Object.assign({},ip(e)),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",opacity:0,transition:`opacity ${e.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{opacity:1,backgroundColor:e.itemHoverBg}},[`&:active:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{opacity:1,backgroundColor:e.itemActiveBg}},"&-label":Object.assign({minHeight:n,lineHeight:we(n),padding:`0 ${we(e.segmentedPaddingHorizontal)}`},Kz),"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:Object.assign(Object.assign({},_S(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${we(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, height ${e.motionDurationSlow} ${e.motionEaseInOut}`,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:r,lineHeight:we(r),padding:`0 ${we(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:o,lineHeight:we(o),padding:`0 ${we(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),$S(`&-disabled ${t}-item`,e)),$S(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"},[`&${t}-shape-round`]:{borderRadius:9999,[`${t}-item, ${t}-thumb`]:{borderRadius:9999}}})}},Qz=Jt("Segmented",e=>{const{lineWidth:t,calc:n}=e,r=jt(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return[Zz(r)]},e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:o,colorFill:i,lineWidthBold:a,colorBgLayout:l}=e;return{trackPadding:a,trackBg:l,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:o,itemActiveBg:i,itemSelectedColor:n}});var OS=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Jz(e){return typeof e=="object"&&!!(e!=null&&e.icon)}const NS=h.forwardRef((e,t)=>{const n=Qu(),{prefixCls:r,className:o,rootClassName:i,block:a,options:l=[],size:u="middle",style:d,vertical:f,shape:g="default",name:p=n}=e,m=OS(e,["prefixCls","className","rootClassName","block","options","size","style","vertical","shape","name"]),{getPrefixCls:b,direction:C,className:y,style:x}=lr("segmented"),$=b("segmented",r),[w,E,S]=Qz($),O=Uo(u),_=h.useMemo(()=>l.map(L=>{if(Jz(L)){const{icon:z,label:B}=L,j=OS(L,["icon","label"]);return Object.assign(Object.assign({},j),{label:h.createElement(h.Fragment,null,h.createElement("span",{className:`${$}-item-icon`},z),B&&h.createElement("span",null,B))})}return L}),[l,$]),P=ge(o,i,y,{[`${$}-block`]:a,[`${$}-sm`]:O==="small",[`${$}-lg`]:O==="large",[`${$}-vertical`]:f,[`${$}-shape-${g}`]:g==="round"},E,S),T=Object.assign(Object.assign({},x),d);return w(h.createElement(Yz,Object.assign({},m,{name:p,className:P,style:T,options:_,ref:t,prefixCls:$,direction:C,vertical:f})))});process.env.NODE_ENV!=="production"&&(NS.displayName="Segmented");function ej(e){return!!(e.addonBefore||e.addonAfter)}function tj(e){return!!(e.prefix||e.suffix||e.allowClear)}function PS(e,t,n){var r=t.cloneNode(!0),o=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)},o}function ad(e,t,n,r){if(n){var o=t;if(t.type==="click"){o=PS(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=PS(t,e,r),n(o);return}n(o)}}function IS(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var o=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var TS=M.forwardRef(function(e,t){var n,r,o,i=e.inputElement,a=e.children,l=e.prefixCls,u=e.prefix,d=e.suffix,f=e.addonBefore,g=e.addonAfter,p=e.className,m=e.style,b=e.disabled,C=e.readOnly,y=e.focused,x=e.triggerFocus,$=e.allowClear,w=e.value,E=e.handleReset,S=e.hidden,O=e.classes,_=e.classNames,P=e.dataAttrs,T=e.styles,L=e.components,z=e.onClear,B=a??i,j=(L==null?void 0:L.affixWrapper)||"span",I=(L==null?void 0:L.groupWrapper)||"span",F=(L==null?void 0:L.wrapper)||"span",A=(L==null?void 0:L.groupAddon)||"span",D=M.useRef(null),V=function(he){var me;(me=D.current)!==null&&me!==void 0&&me.contains(he.target)&&(x==null||x())},W=tj(e),H=M.cloneElement(B,{value:w,className:ge((n=B.props)===null||n===void 0?void 0:n.className,!W&&(_==null?void 0:_.variant))||null}),q=M.useRef(null);if(M.useImperativeHandle(t,function(){return{nativeElement:q.current||D.current}}),W){var Z=null;if($){var Y=!b&&!C&&w,G="".concat(l,"-clear-icon"),K=je($)==="object"&&$!==null&&$!==void 0&&$.clearIcon?$.clearIcon:"✖";Z=M.createElement("button",{type:"button",tabIndex:-1,onClick:function(he){E==null||E(he),z==null||z()},onMouseDown:function(he){return he.preventDefault()},className:ge(G,re(re({},"".concat(G,"-hidden"),!Y),"".concat(G,"-has-suffix"),!!d))},K)}var te="".concat(l,"-affix-wrapper"),ie=ge(te,re(re(re(re(re({},"".concat(l,"-disabled"),b),"".concat(te,"-disabled"),b),"".concat(te,"-focused"),y),"".concat(te,"-readonly"),C),"".concat(te,"-input-with-clear-btn"),d&&$&&w),O==null?void 0:O.affixWrapper,_==null?void 0:_.affixWrapper,_==null?void 0:_.variant),ee=(d||$)&&M.createElement("span",{className:ge("".concat(l,"-suffix"),_==null?void 0:_.suffix),style:T==null?void 0:T.suffix},Z,d);H=M.createElement(j,Le({className:ie,style:T==null?void 0:T.affixWrapper,onClick:V},P==null?void 0:P.affixWrapper,{ref:D}),u&&M.createElement("span",{className:ge("".concat(l,"-prefix"),_==null?void 0:_.prefix),style:T==null?void 0:T.prefix},u),H,ee)}if(ej(e)){var ae="".concat(l,"-group"),de="".concat(ae,"-addon"),ue="".concat(ae,"-wrapper"),J=ge("".concat(l,"-wrapper"),ae,O==null?void 0:O.wrapper,_==null?void 0:_.wrapper),fe=ge(ue,re({},"".concat(ue,"-disabled"),b),O==null?void 0:O.group,_==null?void 0:_.groupWrapper);H=M.createElement(I,{className:fe,ref:q},M.createElement(F,{className:J},f&&M.createElement(A,{className:de},f),H,g&&M.createElement(A,{className:de},g)))}return M.cloneElement(H,{className:ge((r=H.props)===null||r===void 0?void 0:r.className,p)||null,style:le(le({},(o=H.props)===null||o===void 0?void 0:o.style),m),hidden:S})}),nj=["show"];function MS(e,t){return h.useMemo(function(){var n={};t&&(n.show=je(t)==="object"&&t.formatter?t.formatter:!!t),n=le(le({},n),e);var r=n,o=r.show,i=sn(r,nj);return le(le({},i),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:i.strategy||function(a){return a.length}})},[e,t])}var rj=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],oj=M.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,i=e.onBlur,a=e.onPressEnter,l=e.onKeyDown,u=e.onKeyUp,d=e.prefixCls,f=d===void 0?"rc-input":d,g=e.disabled,p=e.htmlSize,m=e.className,b=e.maxLength,C=e.suffix,y=e.showCount,x=e.count,$=e.type,w=$===void 0?"text":$,E=e.classes,S=e.classNames,O=e.styles,_=e.onCompositionStart,P=e.onCompositionEnd,T=sn(e,rj),L=M.useState(!1),z=Ee(L,2),B=z[0],j=z[1],I=M.useRef(!1),F=M.useRef(!1),A=M.useRef(null),D=M.useRef(null),V=function(Ne){A.current&&IS(A.current,Ne)},W=Or(e.defaultValue,{value:e.value}),H=Ee(W,2),q=H[0],Z=H[1],Y=q==null?"":String(q),G=M.useState(null),K=Ee(G,2),te=K[0],ie=K[1],ee=MS(x,y),ae=ee.max||b,de=ee.strategy(Y),ue=!!ae&&de>ae;M.useImperativeHandle(t,function(){var Te;return{focus:V,blur:function(){var Be;(Be=A.current)===null||Be===void 0||Be.blur()},setSelectionRange:function(Be,Ze,pt){var tt;(tt=A.current)===null||tt===void 0||tt.setSelectionRange(Be,Ze,pt)},select:function(){var Be;(Be=A.current)===null||Be===void 0||Be.select()},input:A.current,nativeElement:((Te=D.current)===null||Te===void 0?void 0:Te.nativeElement)||A.current}}),M.useEffect(function(){F.current&&(F.current=!1),j(function(Te){return Te&&g?!1:Te})},[g]);var J=function(Ne,Be,Ze){var pt=Be;if(!I.current&&ee.exceedFormatter&&ee.max&&ee.strategy(Be)>ee.max){if(pt=ee.exceedFormatter(Be,{max:ee.max}),Be!==pt){var tt,st;ie([((tt=A.current)===null||tt===void 0?void 0:tt.selectionStart)||0,((st=A.current)===null||st===void 0?void 0:st.selectionEnd)||0])}}else if(Ze.source==="compositionEnd")return;Z(pt),A.current&&ad(A.current,Ne,r,pt)};M.useEffect(function(){if(te){var Te;(Te=A.current)===null||Te===void 0||Te.setSelectionRange.apply(Te,Oe(te))}},[te]);var fe=function(Ne){J(Ne,Ne.target.value,{source:"change"})},oe=function(Ne){I.current=!1,J(Ne,Ne.currentTarget.value,{source:"compositionEnd"}),P==null||P(Ne)},he=function(Ne){a&&Ne.key==="Enter"&&!F.current&&(F.current=!0,a(Ne)),l==null||l(Ne)},me=function(Ne){Ne.key==="Enter"&&(F.current=!1),u==null||u(Ne)},_e=function(Ne){j(!0),o==null||o(Ne)},Re=function(Ne){F.current&&(F.current=!1),j(!1),i==null||i(Ne)},Ie=function(Ne){Z(""),V(),A.current&&ad(A.current,Ne,r)},Ge=ue&&"".concat(f,"-out-of-range"),De=function(){var Ne=jn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return M.createElement("input",Le({autoComplete:n},Ne,{onChange:fe,onFocus:_e,onBlur:Re,onKeyDown:he,onKeyUp:me,className:ge(f,re({},"".concat(f,"-disabled"),g),S==null?void 0:S.input),style:O==null?void 0:O.input,ref:A,size:p,type:w,onCompositionStart:function(Ze){I.current=!0,_==null||_(Ze)},onCompositionEnd:oe}))},We=function(){var Ne=Number(ae)>0;if(C||ee.show){var Be=ee.showFormatter?ee.showFormatter({value:Y,count:de,maxLength:ae}):"".concat(de).concat(Ne?" / ".concat(ae):"");return M.createElement(M.Fragment,null,ee.show&&M.createElement("span",{className:ge("".concat(f,"-show-count-suffix"),re({},"".concat(f,"-show-count-has-suffix"),!!C),S==null?void 0:S.count),style:le({},O==null?void 0:O.count)},Be),C)}return null};return M.createElement(TS,Le({},T,{prefixCls:f,className:ge(m,Ge),handleReset:Ie,value:Y,focused:B,triggerFocus:V,suffix:We(),disabled:g,classes:E,classNames:S,styles:O,ref:D}),De())});const AS=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:M.createElement(ja,null)}),t};function DS(e,t){const n=M.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,i,a,l;!((o=e.current)===null||o===void 0)&&o.input&&((i=e.current)===null||i===void 0?void 0:i.input.getAttribute("type"))==="password"&&(!((a=e.current)===null||a===void 0)&&a.input.hasAttribute("value"))&&((l=e.current)===null||l===void 0||l.input.removeAttribute("value"))}))};return M.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function ij(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var aj=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Ll=M.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,status:o,size:i,disabled:a,onBlur:l,onFocus:u,suffix:d,allowClear:f,addonAfter:g,addonBefore:p,className:m,style:b,styles:C,rootClassName:y,onChange:x,classNames:$,variant:w}=e,E=aj(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);if(process.env.NODE_ENV!=="production"){const{deprecated:Ie}=$t("Input");Ie(!("bordered"in e),"bordered","variant")}const{getPrefixCls:S,direction:O,allowClear:_,autoComplete:P,className:T,style:L,classNames:z,styles:B}=lr("input"),j=S("input",n),I=M.useRef(null),F=ko(j),[A,D,V]=mS(j,y),[W]=vS(j,F),{compactSize:H,compactItemClassnames:q}=ku(j,O),Z=Uo(Ie=>{var Ge;return(Ge=i??H)!==null&&Ge!==void 0?Ge:Ie}),Y=M.useContext(Co),G=a??Y,{status:K,hasFeedback:te,feedbackIcon:ie}=M.useContext(Yn),ee=fh(K,o),ae=ij(e)||!!te,de=M.useRef(ae);if(process.env.NODE_ENV!=="production"){const Ie=$t("Input");M.useEffect(()=>{var Ge;ae&&!de.current&&process.env.NODE_ENV!=="production"&&Ie(document.activeElement===((Ge=I.current)===null||Ge===void 0?void 0:Ge.input),"usage","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),de.current=ae},[ae])}const ue=DS(I,!0),J=Ie=>{ue(),l==null||l(Ie)},fe=Ie=>{ue(),u==null||u(Ie)},oe=Ie=>{ue(),x==null||x(Ie)},he=(te||d)&&M.createElement(M.Fragment,null,d,te&&ie),me=AS(f??_),[_e,Re]=kw("input",w,r);return A(W(M.createElement(oj,Object.assign({ref:Xn(t,I),prefixCls:j,autoComplete:P},E,{disabled:G,onBlur:J,onFocus:fe,style:Object.assign(Object.assign({},L),b),styles:Object.assign(Object.assign({},B),C),suffix:he,allowClear:me,className:ge(m,y,V,F,q,T),onChange:oe,addonBefore:p&&M.createElement(ed,{form:!0,space:!0},p),addonAfter:g&&M.createElement(ed,{form:!0,space:!0},g),classNames:Object.assign(Object.assign(Object.assign({},$),z),{input:ge({[`${j}-sm`]:Z==="small",[`${j}-lg`]:Z==="large",[`${j}-rtl`]:O==="rtl"},$==null?void 0:$.input,z.input,D),variant:ge({[`${j}-${_e}`]:Re},dh(j,ee)),affixWrapper:ge({[`${j}-affix-wrapper-sm`]:Z==="small",[`${j}-affix-wrapper-lg`]:Z==="large",[`${j}-affix-wrapper-rtl`]:O==="rtl"},D),wrapper:ge({[`${j}-group-rtl`]:O==="rtl"},D),groupWrapper:ge({[`${j}-group-wrapper-sm`]:Z==="small",[`${j}-group-wrapper-lg`]:Z==="large",[`${j}-group-wrapper-rtl`]:O==="rtl",[`${j}-group-wrapper-${_e}`]:Re},dh(`${j}-group-wrapper`,ee,te),D)})}))))});process.env.NODE_ENV!=="production"&&(Ll.displayName="Input");function FS(e){return["small","middle","large"].includes(e)}function LS(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const RS=M.createContext({latestIndex:0}),sj=RS.Provider,lj=({className:e,index:t,children:n,split:r,style:o})=>{const{latestIndex:i}=h.useContext(RS);return n==null?null:h.createElement(h.Fragment,null,h.createElement("div",{className:e,style:o},n),t<i&&r&&h.createElement("span",{className:`${e}-split`},r))};var cj=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const ps=h.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:o,size:i,className:a,style:l,classNames:u,styles:d}=lr("space"),{size:f=i??"small",align:g,className:p,rootClassName:m,children:b,direction:C="horizontal",prefixCls:y,split:x,style:$,wrap:w=!1,classNames:E,styles:S}=e,O=cj(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[_,P]=Array.isArray(f)?f:[f,f],T=FS(P),L=FS(_),z=LS(P),B=LS(_),j=zo(b,{keepEmpty:!0}),I=g===void 0&&C==="horizontal"?"center":g,F=r("space",y),[A,D,V]=ox(F),W=ge(F,a,D,`${F}-${C}`,{[`${F}-rtl`]:o==="rtl",[`${F}-align-${I}`]:I,[`${F}-gap-row-${P}`]:T,[`${F}-gap-col-${_}`]:L},p,m,V),H=ge(`${F}-item`,(n=E==null?void 0:E.item)!==null&&n!==void 0?n:u.item);let q=0;const Z=j.map((K,te)=>{var ie;K!=null&&(q=te);const ee=(K==null?void 0:K.key)||`${H}-${te}`;return h.createElement(lj,{className:H,key:ee,index:te,split:x,style:(ie=S==null?void 0:S.item)!==null&&ie!==void 0?ie:d.item},K)}),Y=h.useMemo(()=>({latestIndex:q}),[q]);if(j.length===0)return null;const G={};return w&&(G.flexWrap="wrap"),!L&&B&&(G.columnGap=_),!T&&z&&(G.rowGap=P),A(h.createElement("div",Object.assign({ref:t,className:W,style:Object.assign(Object.assign(Object.assign({},G),l),$)},O),h.createElement(sj,{value:Y},Z)))});ps.Compact=l8,process.env.NODE_ENV!=="production"&&(ps.displayName="Space");function uj(e){return e==null?null:typeof e=="object"&&!M.isValidElement(e)?e:{title:e}}function sd(e){const[t,n]=h.useState(e);return h.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const dj=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut},
|
|
222
232
|
opacity ${e.motionDurationFast} ${e.motionEaseInOut},
|
|
223
|
-
transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},
|
|
224
|
-
&-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":{verticalAlign:"middle",textWrap:"balance"}},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:
|
|
225
|
-
> ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},
|
|
233
|
+
transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},fj=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${we(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 ${we(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),zS=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},gj=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},Rn(e)),fj(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},zS(e,e.controlHeightSM)),"&-large":Object.assign({},zS(e,e.controlHeightLG))})}},pj=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:o,labelRequiredMarkColor:i,labelColor:a,labelFontSize:l,labelHeight:u,labelColonMarginInlineStart:d,labelColonMarginInlineEnd:f,itemMarginBottom:g}=e;return{[t]:Object.assign(Object.assign({},Rn(e)),{marginBottom:g,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
234
|
+
&-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":{verticalAlign:"middle",textWrap:"balance"}},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:u,color:a,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:i,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{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^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%",[`&:has(> ${o}-switch:only-child, > ${o}-rate:only-child)`]:{display:"flex",alignItems:"center"}}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-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:Dp,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},jS=(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"}}}}},hj=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,
|
|
235
|
+
> ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},eo=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),BS=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:eo(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},mj=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,
|
|
226
236
|
${r}-col-24${n}-label,
|
|
227
|
-
${r}-col-xl-24${n}-label`]:
|
|
237
|
+
${r}-col-xl-24${n}-label`]:eo(e)}},[`@media (max-width: ${we(e.screenXSMax)})`]:[BS(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:eo(e)}}}],[`@media (max-width: ${we(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:eo(e)}}},[`@media (max-width: ${we(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:eo(e)}}},[`@media (max-width: ${we(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:eo(e)}}}}},vj=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,
|
|
228
238
|
${n}-col-24${t}-label,
|
|
229
|
-
${n}-col-xl-24${t}-label`]:Cn(e),[`@media (max-width: ${fe(e.screenXSMax)})`]:[Vy(e),{[t]:{[`${n}-col-xs-24${t}-label`]:Cn(e)}}],[`@media (max-width: ${fe(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:Cn(e)}},[`@media (max-width: ${fe(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:Cn(e)}},[`@media (max-width: ${fe(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:Cn(e)}}}},PA=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}),ky=(e,t)=>st(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),hd=Et("Form",(e,{rootPrefixCls:t})=>{const n=ky(e,t);return[EA(n),$A(n),xA(n),Ry(n,n.componentCls),Ry(n,n.formItemCls),OA(n),_A(n),NA(n),Jv(n),Ru]},PA,{order:-1e3}),Hy=[];function md(e,t,n,r=0){return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const By=({help:e,helpStatus:t,errors:n=Hy,warnings:r=Hy,className:o,fieldId:i,onVisibleChanged:a})=>{const{prefixCls:s}=h.useContext(id),l=`${s}-item-explain`,c=Gr(s),[u,d,f]=hd(s,c),p=h.useMemo(()=>Nu(s),[s]),v=Us(n),m=Us(r),g=h.useMemo(()=>e!=null?[md(e,"help",t)]:[].concat(de(v.map((b,C)=>md(b,"error","error",C))),de(m.map((b,C)=>md(b,"warning","warning",C)))),[e,t,v,m]),y=h.useMemo(()=>{const b={};return g.forEach(({key:C})=>{b[C]=(b[C]||0)+1}),g.map((C,w)=>Object.assign(Object.assign({},C),{key:b[C.key]>1?`${C.key}-fallback-${w}`:C.key}))},[g]),x={};return i&&(x.id=`${i}_help`),u(h.createElement(Dn,{motionDeadline:p.motionDeadline,motionName:`${s}-show-help`,visible:!!y.length,onVisibleChanged:a},b=>{const{className:C,style:w}=b;return h.createElement("div",Object.assign({},x,{className:re(l,C,f,c,o,d),style:w}),h.createElement(hv,Object.assign({keys:y},Nu(s),{motionName:`${s}-show-help-item`,component:!1}),$=>{const{key:S,error:E,errorStatus:_,className:P,style:A}=$;return h.createElement("div",{key:S,className:re(P,{[`${l}-${_}`]:_}),style:A},E)}))}))},Gs={};function TA({name:e}){const t=Ze("Form");h.useEffect(()=>{if(e)return Gs[e]=(Gs[e]||0)+1,process.env.NODE_ENV!=="production"&&t(Gs[e]<=1,"usage","There exist multiple Form with same `name`."),()=>{Gs[e]-=1}},[e])}var IA=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const MA=(e,t)=>{const n=h.useContext(Mn),{getPrefixCls:r,direction:o,requiredMark:i,colon:a,scrollToFirstError:s,className:l,style:c}=In("form"),{prefixCls:u,className:d,rootClassName:f,size:p,disabled:v=n,form:m,colon:g,labelAlign:y,labelWrap:x,labelCol:b,wrapperCol:C,hideRequiredMark:w,layout:$="horizontal",scrollToFirstError:S,requiredMark:E,onFinishFailed:_,name:P,style:A,feedbackIcons:L,variant:D}=e,O=IA(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),M=or(p),N=h.useContext(bm);process.env.NODE_ENV!=="production"&&TA(e);const I=h.useMemo(()=>E!==void 0?E:w?!1:i!==void 0?i:!0,[w,E,i]),j=g??a,z=r("form",u),F=Gr(z),[R,W,H]=hd(z,F),V=re(z,`${z}-${$}`,{[`${z}-hide-required-mark`]:I===!1,[`${z}-rtl`]:o==="rtl",[`${z}-${M}`]:M},H,F,W,l,d,f),[B]=oy(m),{__INTERNAL__:U}=B;U.name=P;const K=h.useMemo(()=>({name:P,labelAlign:y,labelCol:b,labelWrap:x,wrapperCol:C,vertical:$==="vertical",colon:j,requiredMark:I,itemRef:U.itemRef,form:B,feedbackIcons:L}),[P,y,b,C,$,j,I,B,L]),G=h.useRef(null);h.useImperativeHandle(t,()=>{var ee;return Object.assign(Object.assign({},B),{nativeElement:(ee=G.current)===null||ee===void 0?void 0:ee.nativeElement})});const Z=(ee,q)=>{if(ee){let te={block:"nearest"};typeof ee=="object"&&(te=Object.assign(Object.assign({},te),ee)),B.scrollToField(q,te)}},J=ee=>{if(_==null||_(ee),ee.errorFields.length){const q=ee.errorFields[0].name;if(S!==void 0){Z(S,q);return}s!==void 0&&Z(s,q)}};return R(h.createElement(A0.Provider,{value:D},h.createElement(Lm,{disabled:v},h.createElement(qr.Provider,{value:M},h.createElement(M0,{validateMessages:N},h.createElement(ar.Provider,{value:K},h.createElement(zo,Object.assign({id:P},O,{name:P,onFinishFailed:J,form:B,ref:G,style:Object.assign(Object.assign({},c),A),className:V}))))))))},Wy=h.forwardRef(MA);process.env.NODE_ENV!=="production"&&(Wy.displayName="Form");function AA(e){if(typeof e=="function")return e;const t=Zn(e);return t.length<=1?t[0]:t}const qy=()=>{const{status:e,errors:t=[],warnings:n=[]}=h.useContext(Ht);if(process.env.NODE_ENV!=="production"){const r=Ze("Form.Item");process.env.NODE_ENV!=="production"&&r(e!==void 0,"usage","Form.Item.useStatus should be used under Form.Item component. For more information: https://u.ant.design/form-item-usestatus")}return{status:e,errors:t,warnings:n}};qy.Context=Ht;function DA(e){const[t,n]=h.useState(e),r=h.useRef(null),o=h.useRef([]),i=h.useRef(!1);h.useEffect(()=>(i.current=!1,()=>{i.current=!0,Ft.cancel(r.current),r.current=null}),[]);function a(s){i.current||(r.current===null&&(o.current=[],r.current=Ft(()=>{r.current=null,n(l=>{let c=l;return o.current.forEach(u=>{c=u(c)}),c})})),o.current.push(s))}return[t,a]}function FA(){const{itemRef:e}=h.useContext(ar),t=h.useRef({});function n(r,o){const i=o&&typeof o=="object"&&bi(o),a=r.join("_");return(t.current.name!==a||t.current.originRef!==i)&&(t.current.name=a,t.current.originRef=i,t.current.ref=kt(e(r),i)),t.current.ref}return n}const LA=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},jA=Qm(["Form","item-item"],(e,{rootPrefixCls:t})=>{const n=ky(e,t);return[LA(n)]});var zA=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const RA=24,VA=e=>{const{prefixCls:t,status:n,labelCol:r,wrapperCol:o,children:i,errors:a,warnings:s,_internalItemRender:l,extra:c,help:u,fieldId:d,marginBottom:f,onErrorVisibleChanged:p,label:v}=e,m=`${t}-item`,g=h.useContext(ar),y=h.useMemo(()=>{let O=Object.assign({},o||g.wrapperCol||{});return v===null&&!r&&!o&&g.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(N=>{const I=N?[N]:[],j=on(g.labelCol,I),z=typeof j=="object"?j:{},F=on(O,I),R=typeof F=="object"?F:{};"span"in z&&!("offset"in R)&&z.span<RA&&(O=an(O,[].concat(I,["offset"]),z.span))}),O},[o,g]),x=re(`${m}-control`,y.className),b=h.useMemo(()=>{const{labelCol:O,wrapperCol:M}=g;return zA(g,["labelCol","wrapperCol"])},[g]),C=h.useRef(null),[w,$]=h.useState(0);Ke(()=>{c&&C.current?$(C.current.clientHeight):$(0)},[c]);const S=h.createElement("div",{className:`${m}-control-input`},h.createElement("div",{className:`${m}-control-input-content`},i)),E=h.useMemo(()=>({prefixCls:t,status:n}),[t,n]),_=f!==null||a.length||s.length?h.createElement(id.Provider,{value:E},h.createElement(By,{fieldId:d,errors:a,warnings:s,help:u,helpStatus:n,className:`${m}-explain-connected`,onVisibleChanged:p})):null,P={};d&&(P.id=`${d}_extra`);const A=c?h.createElement("div",Object.assign({},P,{className:`${m}-extra`,ref:C}),c):null,L=_||A?h.createElement("div",{className:`${m}-additional`,style:f?{minHeight:f+w}:{}},_,A):null,D=l&&l.mark==="pro_table_render"&&l.render?l.render(e,{input:S,errorList:_,extra:A}):h.createElement(h.Fragment,null,S,L);return h.createElement(ar.Provider,{value:b},h.createElement(Kr,Object.assign({},y,{className:x}),D),h.createElement(jA,{prefixCls:t}))};var kA={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"},HA=function(t,n){return h.createElement(je,Ce({},t,{ref:n,icon:kA}))},Uy=h.forwardRef(HA);process.env.NODE_ENV!=="production"&&(Uy.displayName="QuestionCircleOutlined");var BA=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const WA=({prefixCls:e,label:t,htmlFor:n,labelCol:r,labelAlign:o,colon:i,required:a,requiredMark:s,tooltip:l,vertical:c})=>{var u;const[d]=Rc("Form"),{labelAlign:f,labelCol:p,labelWrap:v,colon:m}=h.useContext(ar);if(!t)return null;const g=r||p||{},y=o||f,x=`${e}-item-label`,b=re(x,y==="left"&&`${x}-left`,g.className,{[`${x}-wrap`]:!!v});let C=t;const w=i===!0||m!==!1&&i!==!1;w&&!c&&typeof t=="string"&&t.trim()&&(C=t.replace(/[:|:]\s*$/,""));const S=wA(l);if(S){const{icon:D=h.createElement(Uy,null)}=S,O=BA(S,["icon"]),M=h.createElement($r,Object.assign({},O),h.cloneElement(D,{className:`${e}-item-tooltip`,title:"",onClick:N=>{N.preventDefault()},tabIndex:null}));C=h.createElement(h.Fragment,null,C,M)}const E=s==="optional",_=typeof s=="function",P=s===!1;_?C=s(C,{required:!!a}):E&&!a&&(C=h.createElement(h.Fragment,null,C,h.createElement("span",{className:`${e}-item-optional`,title:""},(d==null?void 0:d.optional)||((u=xr.Form)===null||u===void 0?void 0:u.optional))));let A;P?A="hidden":(E||_)&&(A="optional");const L=re({[`${e}-item-required`]:a,[`${e}-item-required-mark-${A}`]:A,[`${e}-item-no-colon`]:!w});return h.createElement(Kr,Object.assign({},g,{className:b}),h.createElement("label",{htmlFor:n,className:L,title:typeof t=="string"?t:""},C))},qA={success:Ss,warning:yu,error:Di,validating:Ao};function Gy({children:e,errors:t,warnings:n,hasFeedback:r,validateStatus:o,prefixCls:i,meta:a,noStyle:s,name:l}){const c=`${i}-item`,{feedbackIcons:u}=h.useContext(ar),d=ty(t,n,a,null,!!r,o),{isFormItemInput:f,status:p,hasFeedback:v,feedbackIcon:m,name:g}=h.useContext(Ht),y=h.useMemo(()=>{var x;let b;if(r){const w=r!==!0&&r.icons||u,$=d&&((x=w==null?void 0:w({status:d,errors:t,warnings:n}))===null||x===void 0?void 0:x[d]),S=d&&qA[d];b=$!==!1&&S?h.createElement("span",{className:re(`${c}-feedback-icon`,`${c}-feedback-icon-${d}`)},$||h.createElement(S,null)):null}const C={status:d||"",errors:t,warnings:n,hasFeedback:!!r,feedbackIcon:b,isFormItemInput:!0,name:l};return s&&(C.status=(d??p)||"",C.isFormItemInput=f,C.hasFeedback=!!(r??v),C.feedbackIcon=r!==void 0?C.feedbackIcon:m,C.name=l??g),C},[d,r,s,f,p]);return h.createElement(Ht.Provider,{value:y},e)}var UA=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function GA(e){const{prefixCls:t,className:n,rootClassName:r,style:o,help:i,errors:a,warnings:s,validateStatus:l,meta:c,hasFeedback:u,hidden:d,children:f,fieldId:p,required:v,isRequired:m,onSubItemMetaChange:g,layout:y,name:x}=e,b=UA(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout","name"]),C=`${t}-item`,{requiredMark:w,vertical:$}=h.useContext(ar),S=$||y==="vertical",E=h.useRef(null),_=Us(a),P=Us(s),A=i!=null,L=!!(A||a.length||s.length),D=!!E.current&&Pu(E.current),[O,M]=h.useState(null);Ke(()=>{if(L&&E.current){const F=getComputedStyle(E.current);M(parseInt(F.marginBottom,10))}},[L,D]);const N=F=>{F||M(null)},j=((F=!1)=>{const R=F?_:c.errors,W=F?P:c.warnings;return ty(R,W,c,"",!!u,l)})(),z=re(C,n,r,{[`${C}-with-help`]:A||_.length||P.length,[`${C}-has-feedback`]:j&&u,[`${C}-has-success`]:j==="success",[`${C}-has-warning`]:j==="warning",[`${C}-has-error`]:j==="error",[`${C}-is-validating`]:j==="validating",[`${C}-hidden`]:d,[`${C}-${y}`]:y});return h.createElement("div",{className:z,style:o,ref:E},h.createElement(Ui,Object.assign({className:`${C}-row`},bn(b,["_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"])),h.createElement(WA,Object.assign({htmlFor:p},e,{requiredMark:w,required:v??m,prefixCls:t,vertical:S})),h.createElement(VA,Object.assign({},e,c,{errors:_,warnings:P,prefixCls:t,status:j,help:i,marginBottom:O,onErrorVisibleChanged:N}),h.createElement(I0.Provider,{value:g},h.createElement(Gy,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:j,name:x},f)))),!!O&&h.createElement("div",{className:`${C}-margin-offset`,style:{marginBottom:-O}}))}const XA="__SPLIT__";function YA(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(o=>{const i=e[o],a=t[o];return i===a||typeof i=="function"||typeof a=="function"})}const KA=h.memo(({children:e})=>e,(e,t)=>YA(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function Xy(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function ZA(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:i,shouldUpdate:a,rules:s,children:l,required:c,label:u,messageVariables:d,trigger:f="onChange",validateTrigger:p,hidden:v,help:m,layout:g}=e,{getPrefixCls:y}=h.useContext(Be),{name:x}=h.useContext(ar),b=AA(l),C=typeof b=="function",w=h.useContext(I0),{validateTrigger:$}=h.useContext(Yr),S=p!==void 0?p:$,E=t!=null,_=y("form",i),P=Gr(_),[A,L,D]=hd(_,P),O=Ze("Form.Item");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&O(t!==null,"usage","`null` is passed as `name` property");const M=h.useContext(Li),N=h.useRef(null),[I,j]=DA({}),[z,F]=No(()=>Xy()),R=G=>{const Z=M==null?void 0:M.getKey(G.name);if(F(G.destroy?Xy():G,!0),n&&m!==!1&&w){let J=G.name;if(G.destroy)J=N.current||J;else if(Z!==void 0){const[ee,q]=Z;J=[ee].concat(de(q)),N.current=J}w(G,J)}},W=(G,Z)=>{j(J=>{const ee=Object.assign({},J),te=[].concat(de(G.name.slice(0,-1)),de(Z)).join(XA);return G.destroy?delete ee[te]:ee[te]=G,ee})},[H,V]=h.useMemo(()=>{const G=de(z.errors),Z=de(z.warnings);return Object.values(I).forEach(J=>{G.push.apply(G,de(J.errors||[])),Z.push.apply(Z,de(J.warnings||[]))}),[G,Z]},[I,z.errors,z.warnings]),B=FA();function U(G,Z,J){return n&&!v?h.createElement(Gy,{prefixCls:_,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:z,errors:H,warnings:V,noStyle:!0,name:t},G):h.createElement(GA,Object.assign({key:"row"},e,{className:re(r,D,P,L),prefixCls:_,fieldId:Z,isRequired:J,errors:H,warnings:V,meta:z,onSubItemMetaChange:W,layout:g,name:t}),G)}if(!E&&!C&&!o)return A(U(b));let K={};return typeof u=="string"?K.label=u:t&&(K.label=String(t)),d&&(K=Object.assign(Object.assign({},K),d)),A(h.createElement(td,Object.assign({},e,{messageVariables:K,trigger:f,validateTrigger:S,onMetaChange:R}),(G,Z,J)=>{const ee=Wi(t).length&&Z?Z.name:[],q=ey(ee,x),te=c!==void 0?c:!!(s!=null&&s.some(ne=>{if(ne&&typeof ne=="object"&&ne.required&&!ne.warningOnly)return!0;if(typeof ne=="function"){const ce=ne(J);return(ce==null?void 0:ce.required)&&!(ce!=null&&ce.warningOnly)}return!1})),Y=Object.assign({},G);let oe=null;if(process.env.NODE_ENV!=="production"&&O(!(a&&o),"usage","`shouldUpdate` and `dependencies` shouldn't be used together. See https://u.ant.design/form-deps."),Array.isArray(b)&&E)process.env.NODE_ENV!=="production"&&O(!1,"usage","A `Form.Item` with a `name` prop must have a single child element. For information on how to render more complex form items, see https://u.ant.design/complex-form-item."),oe=b;else if(C&&(!(a||o)||E))process.env.NODE_ENV!=="production"&&O(!!(a||o),"usage","A `Form.Item` with a render function must have either `shouldUpdate` or `dependencies`."),process.env.NODE_ENV!=="production"&&O(!E,"usage","A `Form.Item` with a render function cannot be a field, and thus cannot have a `name` prop.");else if(o&&!C&&!E)process.env.NODE_ENV!=="production"&&O(!1,"usage","Must set `name` or use a render function when `dependencies` is set.");else if(h.isValidElement(b)){process.env.NODE_ENV!=="production"&&O(b.props.defaultValue===void 0,"usage","`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.");const ne=Object.assign(Object.assign({},b.props),Y);if(ne.id||(ne.id=q),m||H.length>0||V.length>0||e.extra){const pe=[];(m||H.length>0)&&pe.push(`${q}_help`),e.extra&&pe.push(`${q}_extra`),ne["aria-describedby"]=pe.join(" ")}H.length>0&&(ne["aria-invalid"]="true"),te&&(ne["aria-required"]="true"),mo(b)&&(ne.ref=B(ee,b)),new Set([].concat(de(Wi(f)),de(Wi(S)))).forEach(pe=>{ne[pe]=(..._e)=>{var xe,Oe,he,ue,Ee;(he=Y[pe])===null||he===void 0||(xe=he).call.apply(xe,[Y].concat(_e)),(Ee=(ue=b.props)[pe])===null||Ee===void 0||(Oe=Ee).call.apply(Oe,[ue].concat(_e))}});const ve=[ne["aria-required"],ne["aria-invalid"],ne["aria-describedby"]];oe=h.createElement(KA,{control:Y,update:b,childProps:ve},nr(b,ne))}else C&&(a||o)&&!E?oe=b(J):(process.env.NODE_ENV!=="production"&&O(!ee.length||!!n,"usage","`name` is only used for validate React element. If you are using Form.Item as layout display, please remove `name` instead."),oe=b);return U(oe,q,te)}))}const Yy=ZA;Yy.useStatus=qy;var QA=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const JA=e=>{var{prefixCls:t,children:n}=e,r=QA(e,["prefixCls","children"]);if(process.env.NODE_ENV!=="production"){const s=Ze("Form.List");process.env.NODE_ENV!=="production"&&s(typeof r.name=="number"||(Array.isArray(r.name)?!!r.name.length:!!r.name),"usage","Miss `name` prop.")}const{getPrefixCls:o}=h.useContext(Be),i=o("form",t),a=h.useMemo(()=>({prefixCls:i,status:"error"}),[i]);return h.createElement(O0,Object.assign({},r),(s,l,c)=>h.createElement(id.Provider,{value:a},n(s.map(u=>Object.assign(Object.assign({},u),{fieldKey:u.key})),l,{errors:c.errors,warnings:c.warnings})))};function e3(){const{form:e}=h.useContext(ar);return e}const at=Wy;at.Item=Yy,at.List=JA,at.ErrorList=By,at.useForm=oy,at.useFormInstance=e3,at.useWatch=T0,at.Provider=M0,at.create=()=>{process.env.NODE_ENV!=="production"&&Wr(!1,"Form","antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.")};var t3={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"},n3=function(t,n){return h.createElement(je,Ce({},t,{ref:n,icon:t3}))},vd=h.forwardRef(n3);process.env.NODE_ENV!=="production"&&(vd.displayName="EyeOutlined");const r3=e=>{const{getPrefixCls:t,direction:n}=T.useContext(Be),{prefixCls:r,className:o}=e,i=t("input-group",r),a=t("input"),[s,l,c]=vy(a),u=re(i,c,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:n==="rtl"},l,o),d=T.useContext(Ht),f=T.useMemo(()=>Object.assign(Object.assign({},d),{isFormItemInput:!1}),[d]);return process.env.NODE_ENV!=="production"&&Ze("Input.Group").deprecated(!1,"Input.Group","Space.Compact"),s(h.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},h.createElement(Ht.Provider,{value:f},e.children)))},o3=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:"var(--ant-color-text)"},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-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}}}},i3=Et(["Input","OTP"],e=>{const t=st(e,Bs(e));return[o3(t)]},Ws);var a3=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const s3=h.forwardRef((e,t)=>{const{className:n,value:r,onChange:o,onActiveChange:i,index:a,mask:s}=e,l=a3(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:c}=h.useContext(Be),u=c("otp"),d=typeof s=="string"?s:r,f=h.useRef(null);h.useImperativeHandle(t,()=>f.current);const p=y=>{o(a,y.target.value)},v=()=>{Ft(()=>{var y;const x=(y=f.current)===null||y===void 0?void 0:y.input;document.activeElement===x&&x&&x.select()})},m=y=>{const{key:x,ctrlKey:b,metaKey:C}=y;x==="ArrowLeft"?i(a-1):x==="ArrowRight"?i(a+1):x==="z"&&(b||C)&&y.preventDefault(),v()},g=y=>{y.key==="Backspace"&&!r&&i(a-1),v()};return h.createElement("span",{className:`${u}-input-wrapper`,role:"presentation"},s&&r!==""&&r!==void 0&&h.createElement("span",{className:`${u}-mask-icon`,"aria-hidden":"true"},d),h.createElement(Gi,Object.assign({"aria-label":`OTP Input ${a+1}`,type:s===!0?"password":"text"},l,{ref:f,value:r,onInput:p,onFocus:v,onKeyDown:m,onKeyUp:g,onMouseDown:v,onMouseUp:v,className:re(n,{[`${u}-mask-input`]:s})})))});var l3=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Xs(e){return(e||"").split("")}const c3=e=>{const{index:t,prefixCls:n,separator:r}=e,o=typeof r=="function"?r(t):r;return o?h.createElement("span",{className:`${n}-separator`},o):null},u3=h.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:o,defaultValue:i,value:a,onChange:s,formatter:l,separator:c,variant:u,disabled:d,status:f,autoFocus:p,mask:v,type:m,onInput:g,inputMode:y}=e,x=l3(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]);if(process.env.NODE_ENV!=="production"){const V=Ze("Input.OTP");process.env.NODE_ENV!=="production"&&V(!(typeof v=="string"&&v.length>1),"usage","`mask` prop should be a single character.")}const{getPrefixCls:b,direction:C}=h.useContext(Be),w=b("otp",n),$=bu(x,{aria:!0,data:!0,attr:!0}),[S,E,_]=i3(w),P=or(V=>o??V),A=h.useContext(Ht),L=ud(A.status,f),D=h.useMemo(()=>Object.assign(Object.assign({},A),{status:L,hasFeedback:!1,feedbackIcon:null}),[A,L]),O=h.useRef(null),M=h.useRef({});h.useImperativeHandle(t,()=>({focus:()=>{var V;(V=M.current[0])===null||V===void 0||V.focus()},blur:()=>{var V;for(let B=0;B<r;B+=1)(V=M.current[B])===null||V===void 0||V.blur()},nativeElement:O.current}));const N=V=>l?l(V):V,[I,j]=h.useState(()=>Xs(N(i||"")));h.useEffect(()=>{a!==void 0&&j(Xs(a))},[a]);const z=wt(V=>{j(V),g&&g(V),s&&V.length===r&&V.every(B=>B)&&V.some((B,U)=>I[U]!==B)&&s(V.join(""))}),F=wt((V,B)=>{let U=de(I);for(let G=0;G<V;G+=1)U[G]||(U[G]="");B.length<=1?U[V]=B:U=U.slice(0,V).concat(Xs(B)),U=U.slice(0,r);for(let G=U.length-1;G>=0&&!U[G];G-=1)U.pop();const K=N(U.map(G=>G||" ").join(""));return U=Xs(K).map((G,Z)=>G===" "&&!U[Z]?U[Z]:G),U}),R=(V,B)=>{var U;const K=F(V,B),G=Math.min(V+B.length,r-1);G!==V&&K[V]!==void 0&&((U=M.current[G])===null||U===void 0||U.focus()),z(K)},W=V=>{var B;(B=M.current[V])===null||B===void 0||B.focus()},H={variant:u,disabled:d,status:L,mask:v,type:m,inputMode:y};return S(h.createElement("div",Object.assign({},$,{ref:O,className:re(w,{[`${w}-sm`]:P==="small",[`${w}-lg`]:P==="large",[`${w}-rtl`]:C==="rtl"},_,E),role:"group"}),h.createElement(Ht.Provider,{value:D},Array.from({length:r}).map((V,B)=>{const U=`otp-${B}`,K=I[B]||"";return h.createElement(h.Fragment,{key:U},h.createElement(s3,Object.assign({ref:G=>{M.current[B]=G},index:B,size:P,htmlSize:1,className:`${w}-input`,onChange:R,value:K,onActiveChange:W,autoFocus:B===0&&p},H)),B<r-1&&h.createElement(c3,{separator:c,index:B,prefixCls:w}))}))))});var d3={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"},f3=function(t,n){return h.createElement(je,Ce({},t,{ref:n,icon:d3}))},Ky=h.forwardRef(f3);process.env.NODE_ENV!=="production"&&(Ky.displayName="EyeInvisibleOutlined");var p3=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const g3=e=>e?h.createElement(vd,null):h.createElement(Ky,null),h3={click:"onClick",hover:"onMouseOver"},Zy=h.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:o=!0,iconRender:i=g3}=e,a=h.useContext(Mn),s=n??a,l=typeof o=="object"&&o.visible!==void 0,[c,u]=T.useState(()=>l?o.visible:!1),d=T.useRef(null);h.useEffect(()=>{l&&u(o.visible)},[l,o]);const f=Dy(d),p=()=>{var P;if(s)return;c&&f();const A=!c;u(A),typeof o=="object"&&((P=o.onVisibleChange)===null||P===void 0||P.call(o,A))},v=P=>{const A=h3[r]||"",L=i(c),D={[A]:p,className:`${P}-icon`,key:"passwordIcon",onMouseDown:O=>{O.preventDefault()},onMouseUp:O=>{O.preventDefault()}};return h.cloneElement(h.isValidElement(L)?L:h.createElement("span",null,L),D)},{className:m,prefixCls:g,inputPrefixCls:y,size:x}=e,b=p3(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:C}=h.useContext(Be),w=C("input",y),$=C("input-password",g),S=o&&v($),E=re($,m,{[`${$}-${x}`]:!!x}),_=Object.assign(Object.assign({},bn(b,["suffix","iconRender","visibilityToggle"])),{type:c?"text":"password",className:E,prefixCls:w,suffix:S});return x&&(_.size=x),h.createElement(Gi,Object.assign({ref:kt(t,d)},_))});process.env.NODE_ENV!=="production"&&(Zy.displayName="Input.Password");var m3=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Qy=h.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:d,onChange:f,onCompositionStart:p,onCompositionEnd:v,variant:m,onPressEnter:g}=e,y=m3(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:x,direction:b}=h.useContext(Be),C=h.useRef(!1),w=x("input-search",n),$=x("input",r),{compactSize:S}=As(w,b),E=or(H=>{var V;return(V=i??S)!==null&&V!==void 0?V:H}),_=h.useRef(null),P=H=>{H!=null&&H.target&&H.type==="click"&&d&&d(H.target.value,H,{source:"clear"}),f==null||f(H)},A=H=>{var V;document.activeElement===((V=_.current)===null||V===void 0?void 0:V.input)&&H.preventDefault()},L=H=>{var V,B;d&&d((B=(V=_.current)===null||V===void 0?void 0:V.input)===null||B===void 0?void 0:B.value,H,{source:"input"})},D=H=>{C.current||c||(g==null||g(H),L(H))},O=typeof s=="boolean"?h.createElement(U0,null):null,M=`${w}-button`;let N;const I=s||{},j=I.type&&I.type.__ANT_BUTTON===!0;j||I.type==="button"?N=nr(I,Object.assign({onMouseDown:A,onClick:H=>{var V,B;(B=(V=I==null?void 0:I.props)===null||V===void 0?void 0:V.onClick)===null||B===void 0||B.call(V,H),L(H)},key:"enterButton"},j?{className:M,size:E}:{})):N=h.createElement(Tt,{className:M,color:s?"primary":"default",size:E,disabled:u,key:"enterButton",onMouseDown:A,onClick:L,loading:c,icon:O,variant:m==="borderless"||m==="filled"||m==="underlined"?"text":s?"solid":void 0},s),l&&(N=[N,nr(l,{key:"addonAfter"})]);const z=re(w,{[`${w}-rtl`]:b==="rtl",[`${w}-${E}`]:!!E,[`${w}-with-button`]:!!s},o),F=H=>{C.current=!0,p==null||p(H)},R=H=>{C.current=!1,v==null||v(H)},W=Object.assign(Object.assign({},y),{className:z,prefixCls:$,type:"search",size:E,variant:m,onPressEnter:D,onCompositionStart:F,onCompositionEnd:R,addonAfter:N,suffix:a,onChange:P,disabled:u});return h.createElement(Gi,Object.assign({ref:kt(_,t)},W))});process.env.NODE_ENV!=="production"&&(Qy.displayName="Search");var v3=`
|
|
239
|
+
${n}-col-xl-24${t}-label`]:eo(e),[`@media (max-width: ${we(e.screenXSMax)})`]:[BS(e),{[t]:{[`${n}-col-xs-24${t}-label`]:eo(e)}}],[`@media (max-width: ${we(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:eo(e)}},[`@media (max-width: ${we(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:eo(e)}},[`@media (max-width: ${we(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:eo(e)}}}},yj=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}),VS=(e,t)=>jt(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),bh=Jt("Form",(e,{rootPrefixCls:t})=>{const n=VS(e,t);return[gj(n),pj(n),dj(n),jS(n,n.componentCls),jS(n,n.formItemCls),hj(n),mj(n),vj(n),vx(n),Dp]},yj,{order:-1e3}),HS=[];function Ch(e,t,n,r=0){return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const kS=({help:e,helpStatus:t,errors:n=HS,warnings:r=HS,className:o,fieldId:i,onVisibleChanged:a})=>{const{prefixCls:l}=h.useContext(nh),u=`${l}-item-explain`,d=ko(l),[f,g,p]=bh(l,d),m=h.useMemo(()=>wp(l),[l]),b=sd(n),C=sd(r),y=h.useMemo(()=>e!=null?[Ch(e,"help",t)]:[].concat(Oe(b.map((w,E)=>Ch(w,"error","error",E))),Oe(C.map((w,E)=>Ch(w,"warning","warning",E)))),[e,t,b,C]),x=h.useMemo(()=>{const w={};return y.forEach(({key:E})=>{w[E]=(w[E]||0)+1}),y.map((E,S)=>Object.assign(Object.assign({},E),{key:w[E.key]>1?`${E.key}-fallback-${S}`:E.key}))},[y]),$={};return i&&($.id=`${i}_help`),f(h.createElement(Nr,{motionDeadline:m.motionDeadline,motionName:`${l}-show-help`,visible:!!x.length,onVisibleChanged:a},w=>{const{className:E,style:S}=w;return h.createElement("div",Object.assign({},$,{className:ge(u,E,p,d,o,g),style:S}),h.createElement(LC,Object.assign({keys:x},wp(l),{motionName:`${l}-show-help-item`,component:!1}),O=>{const{key:_,error:P,errorStatus:T,className:L,style:z}=O;return h.createElement("div",{key:_,className:ge(L,{[`${u}-${T}`]:T}),style:z},P)}))}))},ld={};function bj({name:e}){const t=$t("Form");h.useEffect(()=>{if(e)return ld[e]=(ld[e]||0)+1,process.env.NODE_ENV!=="production"&&t(ld[e]<=1,"usage","There exist multiple Form with same `name`."),()=>{ld[e]-=1}},[e])}var Cj=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const xj=(e,t)=>{const n=h.useContext(Co),{getPrefixCls:r,direction:o,requiredMark:i,colon:a,scrollToFirstError:l,className:u,style:d}=lr("form"),{prefixCls:f,className:g,rootClassName:p,size:m,disabled:b=n,form:C,colon:y,labelAlign:x,labelWrap:$,labelCol:w,wrapperCol:E,hideRequiredMark:S,layout:O="horizontal",scrollToFirstError:_,requiredMark:P,onFinishFailed:T,name:L,style:z,feedbackIcons:B,variant:j}=e,I=Cj(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),F=Uo(m),A=h.useContext(X1);process.env.NODE_ENV!=="production"&&bj(e);const D=h.useMemo(()=>P!==void 0?P:S?!1:i!==void 0?i:!0,[S,P,i]),V=y??a,W=r("form",f),H=ko(W),[q,Z,Y]=bh(W,H),G=ge(W,`${W}-${O}`,{[`${W}-hide-required-mark`]:D===!1,[`${W}-rtl`]:o==="rtl",[`${W}-${F}`]:F},Y,H,Z,u,g,p),[K]=oS(C),{__INTERNAL__:te}=K;te.name=L;const ie=h.useMemo(()=>({name:L,labelAlign:x,labelCol:w,labelWrap:$,wrapperCol:E,vertical:O==="vertical",colon:V,requiredMark:D,itemRef:te.itemRef,form:K,feedbackIcons:B}),[L,x,w,E,O,V,D,K,B]),ee=h.useRef(null);h.useImperativeHandle(t,()=>{var ue;return Object.assign(Object.assign({},K),{nativeElement:(ue=ee.current)===null||ue===void 0?void 0:ue.nativeElement})});const ae=(ue,J)=>{if(ue){let fe={block:"nearest"};typeof ue=="object"&&(fe=Object.assign(Object.assign({},fe),ue)),K.scrollToField(J,fe)}},de=ue=>{if(T==null||T(ue),ue.errorFields.length){const J=ue.errorFields[0].name;if(_!==void 0){ae(_,J);return}l!==void 0&&ae(l,J)}};return q(h.createElement(aw.Provider,{value:j},h.createElement(Jg,{disabled:b},h.createElement(oa.Provider,{value:F},h.createElement(iw,{validateMessages:A},h.createElement(Go.Provider,{value:ie},h.createElement(ss,Object.assign({id:L},I,{name:L,onFinishFailed:de,form:K,ref:ee,style:Object.assign(Object.assign({},d),z),className:G}))))))))},WS=h.forwardRef(xj);process.env.NODE_ENV!=="production"&&(WS.displayName="Form");function wj(e){if(typeof e=="function")return e;const t=zo(e);return t.length<=1?t[0]:t}const US=()=>{const{status:e,errors:t=[],warnings:n=[]}=h.useContext(Yn);if(process.env.NODE_ENV!=="production"){const r=$t("Form.Item");process.env.NODE_ENV!=="production"&&r(e!==void 0,"usage","Form.Item.useStatus should be used under Form.Item component. For more information: https://u.ant.design/form-item-usestatus")}return{status:e,errors:t,warnings:n}};US.Context=Yn;function Sj(e){const[t,n]=h.useState(e),r=h.useRef(null),o=h.useRef([]),i=h.useRef(!1);h.useEffect(()=>(i.current=!1,()=>{i.current=!0,Ln.cancel(r.current),r.current=null}),[]);function a(l){i.current||(r.current===null&&(o.current=[],r.current=Ln(()=>{r.current=null,n(u=>{let d=u;return o.current.forEach(f=>{d=f(d)}),d})})),o.current.push(l))}return[t,a]}function Ej(){const{itemRef:e}=h.useContext(Go),t=h.useRef({});function n(r,o){const i=o&&typeof o=="object"&&cl(o),a=r.join("_");return(t.current.name!==a||t.current.originRef!==i)&&(t.current.name=a,t.current.originRef=i,t.current.ref=Xn(e(r),i)),t.current.ref}return n}const $j=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},_j=ap(["Form","item-item"],(e,{rootPrefixCls:t})=>{const n=VS(e,t);return[$j(n)]});var Oj=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Nj=24,Pj=e=>{const{prefixCls:t,status:n,labelCol:r,wrapperCol:o,children:i,errors:a,warnings:l,_internalItemRender:u,extra:d,help:f,fieldId:g,marginBottom:p,onErrorVisibleChanged:m,label:b}=e,C=`${t}-item`,y=h.useContext(Go),x=h.useMemo(()=>{let I=Object.assign({},o||y.wrapperCol||{});return b===null&&!r&&!o&&y.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(A=>{const D=A?[A]:[],V=Er(y.labelCol,D),W=typeof V=="object"?V:{},H=Er(I,D),q=typeof H=="object"?H:{};"span"in W&&!("offset"in q)&&W.span<Nj&&(I=$r(I,[].concat(D,["offset"]),W.span))}),I},[o,y]),$=ge(`${C}-control`,x.className),w=h.useMemo(()=>{const{labelCol:I,wrapperCol:F}=y;return Oj(y,["labelCol","wrapperCol"])},[y]),E=h.useRef(null),[S,O]=h.useState(0);Ft(()=>{d&&E.current?O(E.current.clientHeight):O(0)},[d]);const _=h.createElement("div",{className:`${C}-control-input`},h.createElement("div",{className:`${C}-control-input-content`},i)),P=h.useMemo(()=>({prefixCls:t,status:n}),[t,n]),T=p!==null||a.length||l.length?h.createElement(nh.Provider,{value:P},h.createElement(kS,{fieldId:g,errors:a,warnings:l,help:f,helpStatus:n,className:`${C}-explain-connected`,onVisibleChanged:m})):null,L={};g&&(L.id=`${g}_extra`);const z=d?h.createElement("div",Object.assign({},L,{className:`${C}-extra`,ref:E}),d):null,B=T||z?h.createElement("div",{className:`${C}-additional`,style:p?{minHeight:p+S}:{}},T,z):null,j=u&&u.mark==="pro_table_render"&&u.render?u.render(e,{input:_,errorList:T,extra:z}):h.createElement(h.Fragment,null,_,B);return h.createElement(Go.Provider,{value:w},h.createElement(ua,Object.assign({},x,{className:$}),j),h.createElement(_j,{prefixCls:t}))};var Ij=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Tj=({prefixCls:e,label:t,htmlFor:n,labelCol:r,labelAlign:o,colon:i,required:a,requiredMark:l,tooltip:u,vertical:d})=>{var f;const[g]=Ei("Form"),{labelAlign:p,labelCol:m,labelWrap:b,colon:C}=h.useContext(Go);if(!t)return null;const y=r||m||{},x=o||p,$=`${e}-item-label`,w=ge($,x==="left"&&`${$}-left`,y.className,{[`${$}-wrap`]:!!b});let E=t;const S=i===!0||C!==!1&&i!==!1;S&&!d&&typeof t=="string"&&t.trim()&&(E=t.replace(/[:|:]\s*$/,""));const _=uj(u);if(_){const{icon:j=h.createElement(Hb,null)}=_,I=Ij(_,["icon"]),F=h.createElement(Xo,Object.assign({},I),h.cloneElement(j,{className:`${e}-item-tooltip`,title:"",onClick:A=>{A.preventDefault()},tabIndex:null}));E=h.createElement(h.Fragment,null,E,F)}const P=l==="optional",T=typeof l=="function",L=l===!1;T?E=l(E,{required:!!a}):P&&!a&&(E=h.createElement(h.Fragment,null,E,h.createElement("span",{className:`${e}-item-optional`,title:""},(g==null?void 0:g.optional)||((f=Qr.Form)===null||f===void 0?void 0:f.optional))));let z;L?z="hidden":(P||T)&&(z="optional");const B=ge({[`${e}-item-required`]:a,[`${e}-item-required-mark-${z}`]:z,[`${e}-item-no-colon`]:!S});return h.createElement(ua,Object.assign({},y,{className:w}),h.createElement("label",{htmlFor:n,className:B,title:typeof t=="string"?t:""},E))},Mj={success:sl,warning:Ba,error:ja,validating:Va};function qS({children:e,errors:t,warnings:n,hasFeedback:r,validateStatus:o,prefixCls:i,meta:a,noStyle:l,name:u}){const d=`${i}-item`,{feedbackIcons:f}=h.useContext(Go),g=tS(t,n,a,null,!!r,o),{isFormItemInput:p,status:m,hasFeedback:b,feedbackIcon:C,name:y}=h.useContext(Yn),x=h.useMemo(()=>{var $;let w;if(r){const S=r!==!0&&r.icons||f,O=g&&(($=S==null?void 0:S({status:g,errors:t,warnings:n}))===null||$===void 0?void 0:$[g]),_=g&&Mj[g];w=O!==!1&&_?h.createElement("span",{className:ge(`${d}-feedback-icon`,`${d}-feedback-icon-${g}`)},O||h.createElement(_,null)):null}const E={status:g||"",errors:t,warnings:n,hasFeedback:!!r,feedbackIcon:w,isFormItemInput:!0,name:u};return l&&(E.status=(g??m)||"",E.isFormItemInput=p,E.hasFeedback=!!(r??b),E.feedbackIcon=r!==void 0?E.feedbackIcon:C,E.name=u??y),E},[g,r,l,p,m]);return h.createElement(Yn.Provider,{value:x},e)}var Aj=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Dj(e){const{prefixCls:t,className:n,rootClassName:r,style:o,help:i,errors:a,warnings:l,validateStatus:u,meta:d,hasFeedback:f,hidden:g,children:p,fieldId:m,required:b,isRequired:C,onSubItemMetaChange:y,layout:x,name:$}=e,w=Aj(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout","name"]),E=`${t}-item`,{requiredMark:S,vertical:O}=h.useContext(Go),_=O||x==="vertical",P=h.useRef(null),T=sd(a),L=sd(l),z=i!=null,B=!!(z||a.length||l.length),j=!!P.current&&Sp(P.current),[I,F]=h.useState(null);Ft(()=>{if(B&&P.current){const H=getComputedStyle(P.current);F(parseInt(H.marginBottom,10))}},[B,j]);const A=H=>{H||F(null)},V=((H=!1)=>{const q=H?T:d.errors,Z=H?L:d.warnings;return tS(q,Z,d,"",!!f,u)})(),W=ge(E,n,r,{[`${E}-with-help`]:z||T.length||L.length,[`${E}-has-feedback`]:V&&f,[`${E}-has-success`]:V==="success",[`${E}-has-warning`]:V==="warning",[`${E}-has-error`]:V==="error",[`${E}-is-validating`]:V==="validating",[`${E}-hidden`]:g,[`${E}-${x}`]:x});return h.createElement("div",{className:W,style:o,ref:P},h.createElement(Fl,Object.assign({className:`${E}-row`},jn(w,["_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"])),h.createElement(Tj,Object.assign({htmlFor:m},e,{requiredMark:S,required:b??C,prefixCls:t,vertical:_})),h.createElement(Pj,Object.assign({},e,d,{errors:T,warnings:L,prefixCls:t,status:V,help:i,marginBottom:I,onErrorVisibleChanged:A}),h.createElement(ow.Provider,{value:y},h.createElement(qS,{prefixCls:t,meta:d,errors:d.errors,warnings:d.warnings,hasFeedback:f,validateStatus:V,name:$},p)))),!!I&&h.createElement("div",{className:`${E}-margin-offset`,style:{marginBottom:-I}}))}const Fj="__SPLIT__";function Lj(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(o=>{const i=e[o],a=t[o];return i===a||typeof i=="function"||typeof a=="function"})}const Rj=h.memo(({children:e})=>e,(e,t)=>Lj(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function GS(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function zj(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:i,shouldUpdate:a,rules:l,children:u,required:d,label:f,messageVariables:g,trigger:p="onChange",validateTrigger:m,hidden:b,help:C,layout:y}=e,{getPrefixCls:x}=h.useContext(et),{name:$}=h.useContext(Go),w=wj(u),E=typeof w=="function",S=h.useContext(ow),{validateTrigger:O}=h.useContext(sa),_=m!==void 0?m:O,P=t!=null,T=x("form",i),L=ko(T),[z,B,j]=bh(T,L),I=$t("Form.Item");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&I(t!==null,"usage","`null` is passed as `name` property");const F=h.useContext(El),A=h.useRef(null),[D,V]=Sj({}),[W,H]=ia(()=>GS()),q=ee=>{const ae=F==null?void 0:F.getKey(ee.name);if(H(ee.destroy?GS():ee,!0),n&&C!==!1&&S){let de=ee.name;if(ee.destroy)de=A.current||de;else if(ae!==void 0){const[ue,J]=ae;de=[ue].concat(Oe(J)),A.current=de}S(ee,de)}},Z=(ee,ae)=>{V(de=>{const ue=Object.assign({},de),fe=[].concat(Oe(ee.name.slice(0,-1)),Oe(ae)).join(Fj);return ee.destroy?delete ue[fe]:ue[fe]=ee,ue})},[Y,G]=h.useMemo(()=>{const ee=Oe(W.errors),ae=Oe(W.warnings);return Object.values(D).forEach(de=>{ee.push.apply(ee,Oe(de.errors||[])),ae.push.apply(ae,Oe(de.warnings||[]))}),[ee,ae]},[D,W.errors,W.warnings]),K=Ej();function te(ee,ae,de){return n&&!b?h.createElement(qS,{prefixCls:T,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:W,errors:Y,warnings:G,noStyle:!0,name:t},ee):h.createElement(Dj,Object.assign({key:"row"},e,{className:ge(r,j,L,B),prefixCls:T,fieldId:ae,isRequired:de,errors:Y,warnings:G,meta:W,onSubItemMetaChange:Z,layout:y,name:t}),ee)}if(!P&&!E&&!o)return z(te(w));let ie={};return typeof f=="string"?ie.label=f:t&&(ie.label=String(t)),g&&(ie=Object.assign(Object.assign({},ie),g)),z(h.createElement(Qp,Object.assign({},e,{messageVariables:ie,trigger:p,validateTrigger:_,onMetaChange:q}),(ee,ae,de)=>{const ue=Al(t).length&&ae?ae.name:[],J=eS(ue,$),fe=d!==void 0?d:!!(l!=null&&l.some(me=>{if(me&&typeof me=="object"&&me.required&&!me.warningOnly)return!0;if(typeof me=="function"){const _e=me(de);return(_e==null?void 0:_e.required)&&!(_e!=null&&_e.warningOnly)}return!1})),oe=Object.assign({},ee);let he=null;if(process.env.NODE_ENV!=="production"&&I(!(a&&o),"usage","`shouldUpdate` and `dependencies` shouldn't be used together. See https://u.ant.design/form-deps."),Array.isArray(w)&&P)process.env.NODE_ENV!=="production"&&I(!1,"usage","A `Form.Item` with a `name` prop must have a single child element. For information on how to render more complex form items, see https://u.ant.design/complex-form-item."),he=w;else if(E&&(!(a||o)||P))process.env.NODE_ENV!=="production"&&I(!!(a||o),"usage","A `Form.Item` with a render function must have either `shouldUpdate` or `dependencies`."),process.env.NODE_ENV!=="production"&&I(!P,"usage","A `Form.Item` with a render function cannot be a field, and thus cannot have a `name` prop.");else if(o&&!E&&!P)process.env.NODE_ENV!=="production"&&I(!1,"usage","Must set `name` or use a render function when `dependencies` is set.");else if(h.isValidElement(w)){process.env.NODE_ENV!=="production"&&I(w.props.defaultValue===void 0,"usage","`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.");const me=Object.assign(Object.assign({},w.props),oe);if(me.id||(me.id=J),C||Y.length>0||G.length>0||e.extra){const Ie=[];(C||Y.length>0)&&Ie.push(`${J}_help`),e.extra&&Ie.push(`${J}_extra`),me["aria-describedby"]=Ie.join(" ")}Y.length>0&&(me["aria-invalid"]="true"),fe&&(me["aria-required"]="true"),Ha(w)&&(me.ref=K(ue,w)),new Set([].concat(Oe(Al(p)),Oe(Al(_)))).forEach(Ie=>{me[Ie]=(...Ge)=>{var De,We,Te,Ne,Be;(Te=oe[Ie])===null||Te===void 0||(De=Te).call.apply(De,[oe].concat(Ge)),(Be=(Ne=w.props)[Ie])===null||Be===void 0||(We=Be).call.apply(We,[Ne].concat(Ge))}});const Re=[me["aria-required"],me["aria-invalid"],me["aria-describedby"]];he=h.createElement(Rj,{control:oe,update:w,childProps:Re},wo(w,me))}else E&&(a||o)&&!P?he=w(de):(process.env.NODE_ENV!=="production"&&I(!ue.length||!!n,"usage","`name` is only used for validate React element. If you are using Form.Item as layout display, please remove `name` instead."),he=w);return te(he,J,fe)}))}const XS=zj;XS.useStatus=US;var jj=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Bj=e=>{var{prefixCls:t,children:n}=e,r=jj(e,["prefixCls","children"]);if(process.env.NODE_ENV!=="production"){const l=$t("Form.List");process.env.NODE_ENV!=="production"&&l(typeof r.name=="number"||(Array.isArray(r.name)?!!r.name.length:!!r.name),"usage","Miss `name` prop.")}const{getPrefixCls:o}=h.useContext(et),i=o("form",t),a=h.useMemo(()=>({prefixCls:i,status:"error"}),[i]);return h.createElement(Jx,Object.assign({},r),(l,u,d)=>h.createElement(nh.Provider,{value:a},n(l.map(f=>Object.assign(Object.assign({},f),{fieldKey:f.key})),u,{errors:d.errors,warnings:d.warnings})))};function Vj(){const{form:e}=h.useContext(Go);return e}const Ht=WS;Ht.Item=XS,Ht.List=Bj,Ht.ErrorList=kS,Ht.useForm=oS,Ht.useFormInstance=Vj,Ht.useWatch=rw,Ht.Provider=iw,Ht.create=()=>{process.env.NODE_ENV!=="production"&&Vo(!1,"Form","antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.")};const Hj=e=>{const{getPrefixCls:t,direction:n}=M.useContext(et),{prefixCls:r,className:o}=e,i=t("input-group",r),a=t("input"),[l,u,d]=vS(a),f=ge(i,d,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:n==="rtl"},u,o),g=M.useContext(Yn),p=M.useMemo(()=>Object.assign(Object.assign({},g),{isFormItemInput:!1}),[g]);return process.env.NODE_ENV!=="production"&&$t("Input.Group").deprecated(!1,"Input.Group","Space.Compact"),l(h.createElement("span",{className:f,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},h.createElement(Yn.Provider,{value:p},e.children)))},kj=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:"var(--ant-color-text)"},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-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}}}},Wj=Jt(["Input","OTP"],e=>{const t=jt(e,od(e));return[kj(t)]},id);var Uj=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const qj=h.forwardRef((e,t)=>{const{className:n,value:r,onChange:o,onActiveChange:i,index:a,mask:l}=e,u=Uj(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:d}=h.useContext(et),f=d("otp"),g=typeof l=="string"?l:r,p=h.useRef(null);h.useImperativeHandle(t,()=>p.current);const m=x=>{o(a,x.target.value)},b=()=>{Ln(()=>{var x;const $=(x=p.current)===null||x===void 0?void 0:x.input;document.activeElement===$&&$&&$.select()})},C=x=>{const{key:$,ctrlKey:w,metaKey:E}=x;$==="ArrowLeft"?i(a-1):$==="ArrowRight"?i(a+1):$==="z"&&(w||E)&&x.preventDefault(),b()},y=x=>{x.key==="Backspace"&&!r&&i(a-1),b()};return h.createElement("span",{className:`${f}-input-wrapper`,role:"presentation"},l&&r!==""&&r!==void 0&&h.createElement("span",{className:`${f}-mask-icon`,"aria-hidden":"true"},g),h.createElement(Ll,Object.assign({"aria-label":`OTP Input ${a+1}`,type:l===!0?"password":"text"},u,{ref:p,value:r,onInput:m,onFocus:b,onKeyDown:C,onKeyUp:y,onMouseDown:b,onMouseUp:b,className:ge(n,{[`${f}-mask-input`]:l})})))});var Gj=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function cd(e){return(e||"").split("")}const Xj=e=>{const{index:t,prefixCls:n,separator:r}=e,o=typeof r=="function"?r(t):r;return o?h.createElement("span",{className:`${n}-separator`},o):null},Yj=h.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:o,defaultValue:i,value:a,onChange:l,formatter:u,separator:d,variant:f,disabled:g,status:p,autoFocus:m,mask:b,type:C,onInput:y,inputMode:x}=e,$=Gj(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]);if(process.env.NODE_ENV!=="production"){const G=$t("Input.OTP");process.env.NODE_ENV!=="production"&&G(!(typeof b=="string"&&b.length>1),"usage","`mask` prop should be a single character.")}const{getPrefixCls:w,direction:E}=h.useContext(et),S=w("otp",n),O=ts($,{aria:!0,data:!0,attr:!0}),[_,P,T]=Wj(S),L=Uo(G=>o??G),z=h.useContext(Yn),B=fh(z.status,p),j=h.useMemo(()=>Object.assign(Object.assign({},z),{status:B,hasFeedback:!1,feedbackIcon:null}),[z,B]),I=h.useRef(null),F=h.useRef({});h.useImperativeHandle(t,()=>({focus:()=>{var G;(G=F.current[0])===null||G===void 0||G.focus()},blur:()=>{var G;for(let K=0;K<r;K+=1)(G=F.current[K])===null||G===void 0||G.blur()},nativeElement:I.current}));const A=G=>u?u(G):G,[D,V]=h.useState(()=>cd(A(i||"")));h.useEffect(()=>{a!==void 0&&V(cd(a))},[a]);const W=fn(G=>{V(G),y&&y(G),l&&G.length===r&&G.every(K=>K)&&G.some((K,te)=>D[te]!==K)&&l(G.join(""))}),H=fn((G,K)=>{let te=Oe(D);for(let ee=0;ee<G;ee+=1)te[ee]||(te[ee]="");K.length<=1?te[G]=K:te=te.slice(0,G).concat(cd(K)),te=te.slice(0,r);for(let ee=te.length-1;ee>=0&&!te[ee];ee-=1)te.pop();const ie=A(te.map(ee=>ee||" ").join(""));return te=cd(ie).map((ee,ae)=>ee===" "&&!te[ae]?te[ae]:ee),te}),q=(G,K)=>{var te;const ie=H(G,K),ee=Math.min(G+K.length,r-1);ee!==G&&ie[G]!==void 0&&((te=F.current[ee])===null||te===void 0||te.focus()),W(ie)},Z=G=>{var K;(K=F.current[G])===null||K===void 0||K.focus()},Y={variant:f,disabled:g,status:B,mask:b,type:C,inputMode:x};return _(h.createElement("div",Object.assign({},O,{ref:I,className:ge(S,{[`${S}-sm`]:L==="small",[`${S}-lg`]:L==="large",[`${S}-rtl`]:E==="rtl"},T,P),role:"group"}),h.createElement(Yn.Provider,{value:j},Array.from({length:r}).map((G,K)=>{const te=`otp-${K}`,ie=D[K]||"";return h.createElement(h.Fragment,{key:te},h.createElement(qj,Object.assign({ref:ee=>{F.current[K]=ee},index:K,size:L,htmlSize:1,className:`${S}-input`,onChange:q,value:ie,onActiveChange:Z,autoFocus:K===0&&m},Y)),K<r-1&&h.createElement(Xj,{separator:d,index:K,prefixCls:S}))}))))});var Kj=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Zj=e=>e?h.createElement(Ng,null):h.createElement(Lb,null),Qj={click:"onClick",hover:"onMouseOver"},YS=h.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:o=!0,iconRender:i=Zj}=e,a=h.useContext(Co),l=n??a,u=typeof o=="object"&&o.visible!==void 0,[d,f]=M.useState(()=>u?o.visible:!1),g=M.useRef(null);h.useEffect(()=>{u&&f(o.visible)},[u,o]);const p=DS(g),m=()=>{var L;if(l)return;d&&p();const z=!d;f(z),typeof o=="object"&&((L=o.onVisibleChange)===null||L===void 0||L.call(o,z))},b=L=>{const z=Qj[r]||"",B=i(d),j={[z]:m,className:`${L}-icon`,key:"passwordIcon",onMouseDown:I=>{I.preventDefault()},onMouseUp:I=>{I.preventDefault()}};return h.cloneElement(h.isValidElement(B)?B:h.createElement("span",null,B),j)},{className:C,prefixCls:y,inputPrefixCls:x,size:$}=e,w=Kj(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:E}=h.useContext(et),S=E("input",x),O=E("input-password",y),_=o&&b(O),P=ge(O,C,{[`${O}-${$}`]:!!$}),T=Object.assign(Object.assign({},jn(w,["suffix","iconRender","visibilityToggle"])),{type:d?"text":"password",className:P,prefixCls:S,suffix:_});return $&&(T.size=$),h.createElement(Ll,Object.assign({ref:Xn(t,g)},T))});process.env.NODE_ENV!=="production"&&(YS.displayName="Input.Password");var Jj=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const KS=h.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:l=!1,addonAfter:u,loading:d,disabled:f,onSearch:g,onChange:p,onCompositionStart:m,onCompositionEnd:b,variant:C,onPressEnter:y}=e,x=Jj(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:$,direction:w}=h.useContext(et),E=h.useRef(!1),S=$("input-search",n),O=$("input",r),{compactSize:_}=ku(S,w),P=Uo(Y=>{var G;return(G=i??_)!==null&&G!==void 0?G:Y}),T=h.useRef(null),L=Y=>{Y!=null&&Y.target&&Y.type==="click"&&g&&g(Y.target.value,Y,{source:"clear"}),p==null||p(Y)},z=Y=>{var G;document.activeElement===((G=T.current)===null||G===void 0?void 0:G.input)&&Y.preventDefault()},B=Y=>{var G,K;g&&g((K=(G=T.current)===null||G===void 0?void 0:G.input)===null||K===void 0?void 0:K.value,Y,{source:"input"})},j=Y=>{E.current||d||(y==null||y(Y),B(Y))},I=typeof l=="boolean"?h.createElement(kb,null):null,F=`${S}-button`;let A;const D=l||{},V=D.type&&D.type.__ANT_BUTTON===!0;V||D.type==="button"?A=wo(D,Object.assign({onMouseDown:z,onClick:Y=>{var G,K;(K=(G=D==null?void 0:D.props)===null||G===void 0?void 0:G.onClick)===null||K===void 0||K.call(G,Y),B(Y)},key:"enterButton"},V?{className:F,size:P}:{})):A=h.createElement(cn,{className:F,color:l?"primary":"default",size:P,disabled:f,key:"enterButton",onMouseDown:z,onClick:B,loading:d,icon:I,variant:C==="borderless"||C==="filled"||C==="underlined"?"text":l?"solid":void 0},l),u&&(A=[A,wo(u,{key:"addonAfter"})]);const W=ge(S,{[`${S}-rtl`]:w==="rtl",[`${S}-${P}`]:!!P,[`${S}-with-button`]:!!l},o),H=Y=>{E.current=!0,m==null||m(Y)},q=Y=>{E.current=!1,b==null||b(Y)},Z=Object.assign(Object.assign({},x),{className:W,prefixCls:O,type:"search",size:P,variant:C,onPressEnter:j,onCompositionStart:H,onCompositionEnd:q,addonAfter:A,suffix:a,onChange:L,disabled:f});return h.createElement(Ll,Object.assign({ref:Xn(T,t)},Z))});process.env.NODE_ENV!=="production"&&(KS.displayName="Search");var eB=`
|
|
230
240
|
min-height:0 !important;
|
|
231
241
|
max-height:none !important;
|
|
232
242
|
height:0 !important;
|
|
@@ -237,66 +247,92 @@ html body {
|
|
|
237
247
|
top:0 !important;
|
|
238
248
|
right:0 !important;
|
|
239
249
|
pointer-events: none !important;
|
|
240
|
-
`,
|
|
250
|
+
`,tB=["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"],xh={},dr;function nB(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&&xh[n])return xh[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l=tB.map(function(d){return"".concat(d,":").concat(r.getPropertyValue(d))}).join(";"),u={sizingStyle:l,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(xh[n]=u),u}function rB(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;dr||(dr=document.createElement("textarea"),dr.setAttribute("tab-index","-1"),dr.setAttribute("aria-hidden","true"),dr.setAttribute("name","hiddenTextarea"),document.body.appendChild(dr)),e.getAttribute("wrap")?dr.setAttribute("wrap",e.getAttribute("wrap")):dr.removeAttribute("wrap");var o=nB(e,t),i=o.paddingSize,a=o.borderSize,l=o.boxSizing,u=o.sizingStyle;dr.setAttribute("style","".concat(u,";").concat(eB)),dr.value=e.value||e.placeholder||"";var d=void 0,f=void 0,g,p=dr.scrollHeight;if(l==="border-box"?p+=a:l==="content-box"&&(p-=i),n!==null||r!==null){dr.value=" ";var m=dr.scrollHeight-i;n!==null&&(d=m*n,l==="border-box"&&(d=d+i+a),p=Math.max(d,p)),r!==null&&(f=m*r,l==="border-box"&&(f=f+i+a),g=p>f?"":"hidden",p=Math.min(f,p))}var b={height:p,overflowY:g,resize:"none"};return d&&(b.minHeight=d),f&&(b.maxHeight=f),b}var oB=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],wh=0,Sh=1,Eh=2,iB=h.forwardRef(function(e,t){var n=e,r=n.prefixCls,o=n.defaultValue,i=n.value,a=n.autoSize,l=n.onResize,u=n.className,d=n.style,f=n.disabled,g=n.onChange,p=n.onInternalAutoSize,m=sn(n,oB),b=Or(o,{value:i,postState:function(K){return K??""}}),C=Ee(b,2),y=C[0],x=C[1],$=function(K){x(K.target.value),g==null||g(K)},w=h.useRef();h.useImperativeHandle(t,function(){return{textArea:w.current}});var E=h.useMemo(function(){return a&&je(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),S=Ee(E,2),O=S[0],_=S[1],P=!!a,T=function(){try{if(document.activeElement===w.current){var K=w.current,te=K.selectionStart,ie=K.selectionEnd,ee=K.scrollTop;w.current.setSelectionRange(te,ie),w.current.scrollTop=ee}}catch{}},L=h.useState(Eh),z=Ee(L,2),B=z[0],j=z[1],I=h.useState(),F=Ee(I,2),A=F[0],D=F[1],V=function(){j(wh),process.env.NODE_ENV==="test"&&(p==null||p())};Ft(function(){P&&V()},[i,O,_,P]),Ft(function(){if(B===wh)j(Sh);else if(B===Sh){var G=rB(w.current,!1,O,_);j(Eh),D(G)}else T()},[B]);var W=h.useRef(),H=function(){Ln.cancel(W.current)},q=function(K){B===Eh&&(l==null||l(K),a&&(H(),W.current=Ln(function(){V()})))};h.useEffect(function(){return H},[]);var Z=P?A:null,Y=le(le({},d),Z);return(B===wh||B===Sh)&&(Y.overflowY="hidden",Y.overflowX="hidden"),h.createElement(Ua,{onResize:q,disabled:!(a||l)},h.createElement("textarea",Le({},m,{ref:w,style:Y,className:ge(r,u,re({},"".concat(r,"-disabled"),f)),disabled:f,value:y,onChange:$})))}),aB=["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"],sB=M.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,i=e.onFocus,a=e.onBlur,l=e.onChange,u=e.allowClear,d=e.maxLength,f=e.onCompositionStart,g=e.onCompositionEnd,p=e.suffix,m=e.prefixCls,b=m===void 0?"rc-textarea":m,C=e.showCount,y=e.count,x=e.className,$=e.style,w=e.disabled,E=e.hidden,S=e.classNames,O=e.styles,_=e.onResize,P=e.onClear,T=e.onPressEnter,L=e.readOnly,z=e.autoSize,B=e.onKeyDown,j=sn(e,aB),I=Or(r,{value:o,defaultValue:r}),F=Ee(I,2),A=F[0],D=F[1],V=A==null?"":String(A),W=M.useState(!1),H=Ee(W,2),q=H[0],Z=H[1],Y=M.useRef(!1),G=M.useState(null),K=Ee(G,2),te=K[0],ie=K[1],ee=M.useRef(null),ae=M.useRef(null),de=function(){var $e;return($e=ae.current)===null||$e===void 0?void 0:$e.textArea},ue=function(){de().focus()};M.useImperativeHandle(t,function(){var Ke;return{resizableTextArea:ae.current,focus:ue,blur:function(){de().blur()},nativeElement:((Ke=ee.current)===null||Ke===void 0?void 0:Ke.nativeElement)||de()}}),M.useEffect(function(){Z(function(Ke){return!w&&Ke})},[w]);var J=M.useState(null),fe=Ee(J,2),oe=fe[0],he=fe[1];M.useEffect(function(){if(oe){var Ke;(Ke=de()).setSelectionRange.apply(Ke,Oe(oe))}},[oe]);var me=MS(y,C),_e=(n=me.max)!==null&&n!==void 0?n:d,Re=Number(_e)>0,Ie=me.strategy(V),Ge=!!_e&&Ie>_e,De=function($e,Fe){var Ce=Fe;!Y.current&&me.exceedFormatter&&me.max&&me.strategy(Fe)>me.max&&(Ce=me.exceedFormatter(Fe,{max:me.max}),Fe!==Ce&&he([de().selectionStart||0,de().selectionEnd||0])),D(Ce),ad($e.currentTarget,$e,l,Ce)},We=function($e){Y.current=!0,f==null||f($e)},Te=function($e){Y.current=!1,De($e,$e.currentTarget.value),g==null||g($e)},Ne=function($e){De($e,$e.target.value)},Be=function($e){$e.key==="Enter"&&T&&T($e),B==null||B($e)},Ze=function($e){Z(!0),i==null||i($e)},pt=function($e){Z(!1),a==null||a($e)},tt=function($e){D(""),ue(),ad(de(),$e,l)},st=p,vt;me.show&&(me.showFormatter?vt=me.showFormatter({value:V,count:Ie,maxLength:_e}):vt="".concat(Ie).concat(Re?" / ".concat(_e):""),st=M.createElement(M.Fragment,null,st,M.createElement("span",{className:ge("".concat(b,"-data-count"),S==null?void 0:S.count),style:O==null?void 0:O.count},vt)));var nt=function($e){var Fe;_==null||_($e),(Fe=de())!==null&&Fe!==void 0&&Fe.style.height&&ie(!0)},rt=!z&&!C&&!u;return M.createElement(TS,{ref:ee,value:V,allowClear:u,handleReset:tt,suffix:st,prefixCls:b,classNames:le(le({},S),{},{affixWrapper:ge(S==null?void 0:S.affixWrapper,re(re({},"".concat(b,"-show-count"),C),"".concat(b,"-textarea-allow-clear"),u))}),disabled:w,focused:q,className:ge(x,Ge&&"".concat(b,"-out-of-range")),style:le(le({},$),te&&!rt?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof vt=="string"?vt:void 0}},hidden:E,readOnly:L,onClear:P},M.createElement(iB,Le({},j,{autoSize:z,maxLength:d,onKeyDown:Be,onChange:Ne,onFocus:Ze,onBlur:pt,onCompositionStart:We,onCompositionEnd:Te,className:ge(S==null?void 0:S.textarea),style:le(le({},O==null?void 0:O.textarea),{},{resize:$==null?void 0:$.resize}),disabled:w,prefixCls:b,onResize:nt,ref:ae,readOnly:L})))});const lB=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[r]:{position:"relative","&-show-count":{[`${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"}},[`
|
|
241
251
|
&-allow-clear > ${t},
|
|
242
252
|
&-affix-wrapper${r}-has-feedback ${t}
|
|
243
|
-
`]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&: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-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},O3=Et(["Input","TextArea"],e=>{const t=st(e,Bs(e));return[$3(t)]},Ws,{resetFont:!1});var _3=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Jy=T.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,size:i,disabled:a,status:s,allowClear:l,classNames:c,rootClassName:u,className:d,style:f,styles:p,variant:v,showCount:m,onMouseDown:g,onResize:y}=e,x=_3(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]);if(process.env.NODE_ENV!=="production"){const{deprecated:ne}=Ze("TextArea");ne(!("bordered"in e),"bordered","variant")}const{getPrefixCls:b,direction:C,allowClear:w,autoComplete:$,className:S,style:E,classNames:_,styles:P}=In("textArea"),A=h.useContext(Mn),L=a??A,{status:D,hasFeedback:O,feedbackIcon:M}=h.useContext(Ht),N=ud(D,s),I=h.useRef(null);h.useImperativeHandle(t,()=>{var ne;return{resizableTextArea:(ne=I.current)===null||ne===void 0?void 0:ne.resizableTextArea,focus:ce=>{var ve,pe;Ty((pe=(ve=I.current)===null||ve===void 0?void 0:ve.resizableTextArea)===null||pe===void 0?void 0:pe.textArea,ce)},blur:()=>{var ce;return(ce=I.current)===null||ce===void 0?void 0:ce.blur()}}});const j=b("input",r),z=Gr(j),[F,R,W]=my(j,u),[H]=O3(j,z),{compactSize:V,compactItemClassnames:B}=As(j,C),U=or(ne=>{var ce;return(ce=i??V)!==null&&ce!==void 0?ce:ne}),[K,G]=q0("textArea",v,o),Z=Ay(l??w),[J,ee]=h.useState(!1),[q,te]=h.useState(!1),Y=ne=>{ee(!0),g==null||g(ne);const ce=()=>{ee(!1),document.removeEventListener("mouseup",ce)};document.addEventListener("mouseup",ce)},oe=ne=>{var ce,ve;if(y==null||y(ne),J&&typeof getComputedStyle=="function"){const pe=(ve=(ce=I.current)===null||ce===void 0?void 0:ce.nativeElement)===null||ve===void 0?void 0:ve.querySelector("textarea");pe&&getComputedStyle(pe).resize==="both"&&te(!0)}};return F(H(h.createElement(E3,Object.assign({autoComplete:$},x,{style:Object.assign(Object.assign({},E),f),styles:Object.assign(Object.assign({},P),p),disabled:L,allowClear:Z,className:re(W,z,d,u,B,S,q&&`${j}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},c),_),{textarea:re({[`${j}-sm`]:U==="small",[`${j}-lg`]:U==="large"},R,c==null?void 0:c.textarea,_.textarea,J&&`${j}-mouse-active`),variant:re({[`${j}-${K}`]:G},cd(j,N)),affixWrapper:re(`${j}-textarea-affix-wrapper`,{[`${j}-affix-wrapper-rtl`]:C==="rtl",[`${j}-affix-wrapper-sm`]:U==="small",[`${j}-affix-wrapper-lg`]:U==="large",[`${j}-textarea-show-count`]:m||((n=e.count)===null||n===void 0?void 0:n.show)},R)}),prefixCls:j,suffix:O&&h.createElement("span",{className:`${j}-textarea-suffix`},M),showCount:m,ref:I,onResize:oe,onMouseDown:Y}))))}),Or=Gi;Or.Group=r3,Or.Search=Qy,Or.TextArea=Jy,Or.Password=Zy,Or.OTP=u3;const N3=(e,t=!1)=>t&&e==null?[]:Array.isArray(e)?e:[e];var P3={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},T3=function(){var t=T.useRef([]),n=T.useRef(null);return T.useEffect(function(){var r=Date.now(),o=!1;t.current.forEach(function(i){if(i){o=!0;var a=i.style;a.transitionDuration=".3s, .3s, .3s, .06s",n.current&&r-n.current<100&&(a.transitionDuration="0s, 0s")}}),o&&(n.current=Date.now())}),t.current};process.env.NODE_ENV;var eb=0,I3=process.env.NODE_ENV!=="test"&&Nt();function M3(){var e;return I3?(e=eb,eb+=1):e="TEST_OR_SSR",e}const A3=function(e){var t=h.useState(),n=ae(t,2),r=n[0],o=n[1];return h.useEffect(function(){o("rc_progress_".concat(M3()))},[]),e||r};var tb=function(t){var n=t.bg,r=t.children;return h.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function nb(e,t){return Object.keys(e).map(function(n){var r=parseFloat(n),o="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(o)})}var rb=h.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,o=e.gradientId,i=e.radius,a=e.style,s=e.ptg,l=e.strokeLinecap,c=e.strokeWidth,u=e.size,d=e.gapDegree,f=r&&ye(r)==="object",p=f?"#FFF":void 0,v=u/2,m=h.createElement("circle",{className:"".concat(n,"-circle-path"),r:i,cx:v,cy:v,stroke:p,strokeLinecap:l,strokeWidth:c,opacity:s===0?0:1,style:a,ref:t});if(!f)return m;var g="".concat(o,"-conic"),y=d?"".concat(180+d/2,"deg"):"0deg",x=nb(r,(360-d)/360),b=nb(r,1),C="conic-gradient(from ".concat(y,", ").concat(x.join(", "),")"),w="linear-gradient(to ".concat(d?"bottom":"top",", ").concat(b.join(", "),")");return h.createElement(h.Fragment,null,h.createElement("mask",{id:g},m),h.createElement("foreignObject",{x:0,y:0,width:u,height:u,mask:"url(#".concat(g,")")},h.createElement(tb,{bg:w},h.createElement(tb,{bg:C}))))});process.env.NODE_ENV!=="production"&&(rb.displayName="PtgCircle");var Xi=100,xd=function(t,n,r,o,i,a,s,l,c,u){var d=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,f=r/100*360*((360-a)/360),p=a===0?0:{bottom:0,top:180,left:90,right:-90}[s],v=(100-o)/100*n;c==="round"&&o!==100&&(v+=u/2,v>=n&&(v=n-.01));var m=Xi/2;return{stroke:typeof l=="string"?l:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:v+d,transform:"rotate(".concat(i+f+p,"deg)"),transformOrigin:"".concat(m,"px ").concat(m,"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}},D3=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function ob(e){var t=e??[];return Array.isArray(t)?t:[t]}var ib=function(t){var n=Q(Q({},P3),t),r=n.id,o=n.prefixCls,i=n.steps,a=n.strokeWidth,s=n.trailWidth,l=n.gapDegree,c=l===void 0?0:l,u=n.gapPosition,d=n.trailColor,f=n.strokeLinecap,p=n.style,v=n.className,m=n.strokeColor,g=n.percent,y=vt(n,D3),x=Xi/2,b=A3(r),C="".concat(b,"-gradient"),w=x-a/2,$=Math.PI*2*w,S=c>0?90+c/2:-90,E=$*((360-c)/360),_=ye(i)==="object"?i:{count:i,gap:2},P=_.count,A=_.gap,L=ob(g),D=ob(m),O=D.find(function(R){return R&&ye(R)==="object"}),M=O&&ye(O)==="object",N=M?"butt":f,I=xd($,E,0,100,S,c,u,d,N,a),j=T3(),z=function(){var W=0;return L.map(function(H,V){var B=D[V]||D[D.length-1],U=xd($,E,W,H,S,c,u,B,N,a);return W+=H,h.createElement(rb,{key:V,color:B,ptg:H,radius:w,prefixCls:o,gradientId:C,style:U,strokeLinecap:N,strokeWidth:a,gapDegree:c,ref:function(G){j[V]=G},size:Xi})}).reverse()},F=function(){var W=Math.round(P*(L[0]/100)),H=100/P,V=0;return new Array(P).fill(null).map(function(B,U){var K=U<=W-1?D[0]:d,G=K&&ye(K)==="object"?"url(#".concat(C,")"):void 0,Z=xd($,E,V,H,S,c,u,K,"butt",a,A);return V+=(E-Z.strokeDashoffset+A)*100/E,h.createElement("circle",{key:U,className:"".concat(o,"-circle-path"),r:w,cx:x,cy:x,stroke:G,strokeWidth:a,opacity:1,style:Z,ref:function(ee){j[U]=ee}})})};return h.createElement("svg",Ce({className:re("".concat(o,"-circle"),v),viewBox:"0 0 ".concat(Xi," ").concat(Xi),style:p,id:r,role:"presentation"},y),!P&&h.createElement("circle",{className:"".concat(o,"-circle-trail"),r:w,cx:x,cy:x,stroke:d,strokeLinecap:N,strokeWidth:s||a,style:I}),P?F():z())};process.env.NODE_ENV!=="production"&&(ib.displayName="Circle");function _r(e){return!e||e<0?0:e>100?100:e}function Ys({success:e,successPercent:t}){let n=t;return e&&"progress"in e&&(n=e.progress),e&&"percent"in e&&(n=e.percent),n}const F3=({percent:e,success:t,successPercent:n})=>{const r=_r(Ys({success:t,successPercent:n}));return[r,_r(_r(e)-r)]},L3=({success:e={},strokeColor:t})=>{const{strokeColor:n}=e;return[n||Oo.green,t||null]},Ks=(e,t,n)=>{var r,o,i,a;let s=-1,l=-1;if(t==="step"){const c=n.steps,u=n.strokeWidth;typeof e=="string"||typeof e>"u"?(s=e==="small"?2:14,l=u??8):typeof e=="number"?[s,l]=[e,e]:[s=14,l=8]=Array.isArray(e)?e:[e.width,e.height],s*=c}else if(t==="line"){const c=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?l=c||(e==="small"?6:8):typeof e=="number"?[s,l]=[e,e]:[s=-1,l=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[s,l]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[s,l]=[e,e]:Array.isArray(e)&&(s=(o=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&o!==void 0?o:120,l=(a=(i=e[0])!==null&&i!==void 0?i:e[1])!==null&&a!==void 0?a:120));return[s,l]},j3=3,z3=e=>j3/e*100,R3=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:o,gapDegree:i,width:a=120,type:s,children:l,success:c,size:u=a,steps:d}=e,[f,p]=Ks(u,"circle");let{strokeWidth:v}=e;v===void 0&&(v=Math.max(z3(f),6));const m={width:f,height:p,fontSize:f*.15+6},g=h.useMemo(()=>{if(i||i===0)return i;if(s==="dashboard")return 75},[i,s]),y=F3(e),x=o||s==="dashboard"&&"bottom"||void 0,b=Object.prototype.toString.call(e.strokeColor)==="[object Object]",C=L3({success:c,strokeColor:e.strokeColor}),w=re(`${t}-inner`,{[`${t}-circle-gradient`]:b}),$=h.createElement(ib,{steps:d,percent:d?y[1]:y,strokeWidth:v,trailWidth:v,strokeColor:d?C[1]:C,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:g,gapPosition:x}),S=f<=20,E=h.createElement("div",{className:w,style:m},$,!S&&l);return S?h.createElement($r,{title:l},E):E},Zs="--progress-line-stroke-color",ab="--progress-percent",sb=e=>{const t=e?"100%":"-100%";return new St(`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}})},V3=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},Yt(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(${Zs})`]},height:"100%",width:`calc(1 / var(${ab}) * 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 ${fe(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:sb(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:sb(!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}}})}},k3=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"}}}},H3=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}}}}}},B3=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},W3=Et("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=st(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[V3(n),k3(n),H3(n),B3(n)]},e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}));var q3=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const U3=e=>{let t=[];return Object.keys(e).forEach(n=>{const r=parseFloat(n.replace(/%/g,""));Number.isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(({key:n,value:r})=>`${r} ${n}%`).join(", ")},G3=(e,t)=>{const{from:n=Oo.blue,to:r=Oo.blue,direction:o=t==="rtl"?"to left":"to right"}=e,i=q3(e,["from","to","direction"]);if(Object.keys(i).length!==0){const s=U3(i),l=`linear-gradient(${o}, ${s})`;return{background:l,[Zs]:l}}const a=`linear-gradient(${o}, ${n}, ${r})`;return{background:a,[Zs]:a}},X3=e=>{const{prefixCls:t,direction:n,percent:r,size:o,strokeWidth:i,strokeColor:a,strokeLinecap:s="round",children:l,trailColor:c=null,percentPosition:u,success:d}=e,{align:f,type:p}=u,v=a&&typeof a!="string"?G3(a,n):{[Zs]:a,background:a},m=s==="square"||s==="butt"?0:void 0,g=o??[-1,i||(o==="small"?6:8)],[y,x]=Ks(g,"line",{strokeWidth:i});process.env.NODE_ENV!=="production"&&Ze("Progress").deprecated(!("strokeWidth"in e),"strokeWidth","size");const b={backgroundColor:c||void 0,borderRadius:m},C=Object.assign(Object.assign({width:`${_r(r)}%`,height:x,borderRadius:m},v),{[ab]:_r(r)/100}),w=Ys(e),$={width:`${_r(w)}%`,height:x,borderRadius:m,backgroundColor:d==null?void 0:d.strokeColor},S={width:y<0?"100%":y},E=h.createElement("div",{className:`${t}-inner`,style:b},h.createElement("div",{className:re(`${t}-bg`,`${t}-bg-${p}`),style:C},p==="inner"&&l),w!==void 0&&h.createElement("div",{className:`${t}-success-bg`,style:$})),_=p==="outer"&&f==="start",P=p==="outer"&&f==="end";return p==="outer"&&f==="center"?h.createElement("div",{className:`${t}-layout-bottom`},E,l):h.createElement("div",{className:`${t}-outer`,style:S},_&&l,E,P&&l)},Y3=e=>{const{size:t,steps:n,rounding:r=Math.round,percent:o=0,strokeWidth:i=8,strokeColor:a,trailColor:s=null,prefixCls:l,children:c}=e,u=r(n*(o/100)),f=t??[t==="small"?2:14,i],[p,v]=Ks(f,"step",{steps:n,strokeWidth:i}),m=p/n,g=Array.from({length:n});for(let y=0;y<n;y++){const x=Array.isArray(a)?a[y]:a;g[y]=h.createElement("div",{key:y,className:re(`${l}-steps-item`,{[`${l}-steps-item-active`]:y<=u-1}),style:{backgroundColor:y<=u-1?x:s,width:m,height:v}})}return h.createElement("div",{className:`${l}-steps-outer`},g,c)};var K3=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Z3=["normal","exception","active","success"],lb=h.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,steps:i,strokeColor:a,percent:s=0,size:l="default",showInfo:c=!0,type:u="line",status:d,format:f,style:p,percentPosition:v={}}=e,m=K3(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:g="end",type:y="outer"}=v,x=Array.isArray(a)?a[0]:a,b=typeof a=="string"||Array.isArray(a)?a:void 0,C=h.useMemo(()=>{if(x){const z=typeof x=="string"?x:Object.values(x)[0];return new rt(z).isLight()}return!1},[a]),w=h.useMemo(()=>{var z,F;const R=Ys(e);return parseInt(R!==void 0?(z=R??0)===null||z===void 0?void 0:z.toString():(F=s??0)===null||F===void 0?void 0:F.toString(),10)},[s,e.success,e.successPercent]),$=h.useMemo(()=>!Z3.includes(d)&&w>=100?"success":d||"normal",[d,w]),{getPrefixCls:S,direction:E,progress:_}=h.useContext(Be),P=S("progress",n),[A,L,D]=W3(P),O=u==="line",M=O&&!i,N=h.useMemo(()=>{if(!c)return null;const z=Ys(e);let F;const R=f||(H=>`${H}%`),W=O&&C&&y==="inner";return y==="inner"||f||$!=="exception"&&$!=="success"?F=R(_r(s),_r(z)):$==="exception"?F=O?h.createElement(Di,null):h.createElement(Es,null):$==="success"&&(F=O?h.createElement(Ss,null):h.createElement(dd,null)),h.createElement("span",{className:re(`${P}-text`,{[`${P}-text-bright`]:W,[`${P}-text-${g}`]:M,[`${P}-text-${y}`]:M}),title:typeof F=="string"?F:void 0},F)},[c,s,w,$,u,P,f]);if(process.env.NODE_ENV!=="production"){const z=Ze("Progress");z.deprecated(!("successPercent"in e),"successPercent","success.percent"),z.deprecated(!("width"in e),"width","size"),(u==="circle"||u==="dashboard")&&(Array.isArray(l)?process.env.NODE_ENV!=="production"&&z(!1,"usage",'Type "circle" and "dashboard" do not accept array as `size`, please use number or preset size instead.'):typeof l=="object"&&process.env.NODE_ENV!=="production"&&z(!1,"usage",'Type "circle" and "dashboard" do not accept object as `size`, please use number or preset size instead.')),e.success&&"progress"in e.success&&z.deprecated(!1,"success.progress","success.percent")}let I;u==="line"?I=i?h.createElement(Y3,Object.assign({},e,{strokeColor:b,prefixCls:P,steps:typeof i=="object"?i.count:i}),N):h.createElement(X3,Object.assign({},e,{strokeColor:x,prefixCls:P,direction:E,percentPosition:{align:g,type:y}}),N):(u==="circle"||u==="dashboard")&&(I=h.createElement(R3,Object.assign({},e,{strokeColor:x,prefixCls:P,progressStatus:$}),N));const j=re(P,`${P}-status-${$}`,{[`${P}-${u==="dashboard"&&"circle"||u}`]:u!=="line",[`${P}-inline-circle`]:u==="circle"&&Ks(l,"circle")[0]<=20,[`${P}-line`]:M,[`${P}-line-align-${g}`]:M,[`${P}-line-position-${y}`]:M,[`${P}-steps`]:i,[`${P}-show-info`]:c,[`${P}-${l}`]:typeof l=="string",[`${P}-rtl`]:E==="rtl"},_==null?void 0:_.className,r,o,L,D);return A(h.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},_==null?void 0:_.style),p),className:j,role:"progressbar","aria-valuenow":w,"aria-valuemin":0,"aria-valuemax":100},bn(m,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),I))});process.env.NODE_ENV!=="production"&&(lb.displayName="Progress");var Q3={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M917.7 148.8l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 00-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 000 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM578.9 546.7a8.03 8.03 0 00-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 00-11.3 0L363 475.3l-43-43a7.85 7.85 0 00-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2c-68.9 68.9-77 175.7-24.3 253.5l-76.1 76.1a8.03 8.03 0 000 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2z"}}]},name:"api",theme:"filled"},J3=function(t,n){return h.createElement(je,Ce({},t,{ref:n,icon:Q3}))},cb=h.forwardRef(J3);process.env.NODE_ENV!=="production"&&(cb.displayName="ApiFilled");var eD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm330-170c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1z"}}]},name:"audio",theme:"filled"},tD=function(t,n){return h.createElement(je,Ce({},t,{ref:n,icon:eD}))},ub=h.forwardRef(tD);process.env.NODE_ENV!=="production"&&(ub.displayName="AudioFilled");var nD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M842 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1zM512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm-94-392c0-50.6 41.9-92 94-92s94 41.4 94 92v224c0 50.6-41.9 92-94 92s-94-41.4-94-92V232z"}}]},name:"audio",theme:"outlined"},rD=function(t,n){return h.createElement(je,Ce({},t,{ref:n,icon:nD}))},Qs=h.forwardRef(rD);process.env.NODE_ENV!=="production"&&(Qs.displayName="AudioOutlined");var oD={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"},iD=function(t,n){return h.createElement(je,Ce({},t,{ref:n,icon:oD}))},db=h.forwardRef(iD);process.env.NODE_ENV!=="production"&&(db.displayName="BranchesOutlined");var aD={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"},sD=function(t,n){return h.createElement(je,Ce({},t,{ref:n,icon:aD}))},fb=h.forwardRef(sD);process.env.NODE_ENV!=="production"&&(fb.displayName="CopyOutlined");var lD={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 32v224h704V96c0-17.7-14.3-32-32-32zM288 232c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zM160 928c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V704H160v224zm128-136c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zM160 640h704V384H160v256zm128-168c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40z"}}]},name:"database",theme:"filled"},cD=function(t,n){return h.createElement(je,Ce({},t,{ref:n,icon:lD}))},Js=h.forwardRef(cD);process.env.NODE_ENV!=="production"&&(Js.displayName="DatabaseFilled");var uD={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"},dD=function(t,n){return h.createElement(je,Ce({},t,{ref:n,icon:uD}))},Sd=h.forwardRef(dD);process.env.NODE_ENV!=="production"&&(Sd.displayName="DeleteOutlined");var fD={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"},pD=function(t,n){return h.createElement(je,Ce({},t,{ref:n,icon:fD}))},pb=h.forwardRef(pD);process.env.NODE_ENV!=="production"&&(pb.displayName="DownloadOutlined");var gD={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"},hD=function(t,n){return h.createElement(je,Ce({},t,{ref:n,icon:gD}))},Ed=h.forwardRef(hD);process.env.NODE_ENV!=="production"&&(Ed.displayName="EditOutlined");var mD={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"},vD=function(t,n){return h.createElement(je,Ce({},t,{ref:n,icon:mD}))},gb=h.forwardRef(vD);process.env.NODE_ENV!=="production"&&(gb.displayName="EnterOutlined");var yD={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"},bD=function(t,n){return h.createElement(je,Ce({},t,{ref:n,icon:yD}))},hb=h.forwardRef(bD);process.env.NODE_ENV!=="production"&&(hb.displayName="FileTwoTone");var CD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.3 338.4a447.57 447.57 0 00-96.1-143.3 443.09 443.09 0 00-143-96.3A443.91 443.91 0 00512 64h-2c-60.5.3-119 12.3-174.1 35.9a444.08 444.08 0 00-141.7 96.5 445 445 0 00-95 142.8A449.89 449.89 0 0065 514.1c.3 69.4 16.9 138.3 47.9 199.9v152c0 25.4 20.6 46 45.9 46h151.8a447.72 447.72 0 00199.5 48h2.1c59.8 0 117.7-11.6 172.3-34.3A443.2 443.2 0 00827 830.5c41.2-40.9 73.6-88.7 96.3-142 23.5-55.2 35.5-113.9 35.8-174.5.2-60.9-11.6-120-34.8-175.6zM312.4 560c-26.4 0-47.9-21.5-47.9-48s21.5-48 47.9-48 47.9 21.5 47.9 48-21.4 48-47.9 48zm199.6 0c-26.4 0-47.9-21.5-47.9-48s21.5-48 47.9-48 47.9 21.5 47.9 48-21.5 48-47.9 48zm199.6 0c-26.4 0-47.9-21.5-47.9-48s21.5-48 47.9-48 47.9 21.5 47.9 48-21.5 48-47.9 48z"}}]},name:"message",theme:"filled"},wD=function(t,n){return h.createElement(je,Ce({},t,{ref:n,icon:CD}))},mb=h.forwardRef(wD);process.env.NODE_ENV!=="production"&&(mb.displayName="MessageFilled");var xD={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"},SD=function(t,n){return h.createElement(je,Ce({},t,{ref:n,icon:xD}))},vb=h.forwardRef(SD);process.env.NODE_ENV!=="production"&&(vb.displayName="PaperClipOutlined");var ED={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.6 230.2L779.1 123.8a80.83 80.83 0 00-57.3-23.8c-21.7 0-42.1 8.5-57.4 23.8L549.8 238.4a80.83 80.83 0 00-23.8 57.3c0 21.7 8.5 42.1 23.8 57.4l83.8 83.8A393.82 393.82 0 01553.1 553 395.34 395.34 0 01437 633.8L353.2 550a80.83 80.83 0 00-57.3-23.8c-21.7 0-42.1 8.5-57.4 23.8L123.8 664.5a80.89 80.89 0 00-23.8 57.4c0 21.7 8.5 42.1 23.8 57.4l106.3 106.3c24.4 24.5 58.1 38.4 92.7 38.4 7.3 0 14.3-.6 21.2-1.8 134.8-22.2 268.5-93.9 376.4-201.7C828.2 612.8 899.8 479.2 922.3 344c6.8-41.3-6.9-83.8-36.7-113.8z"}}]},name:"phone",theme:"filled"},$D=function(t,n){return h.createElement(je,Ce({},t,{ref:n,icon:ED}))},yb=h.forwardRef($D);process.env.NODE_ENV!=="production"&&(yb.displayName="PhoneFilled");var OD={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"},_D=function(t,n){return h.createElement(je,Ce({},t,{ref:n,icon:OD}))},bb=h.forwardRef(_D);process.env.NODE_ENV!=="production"&&(bb.displayName="PictureTwoTone");var ND={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M892.1 737.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 344zm174 132H806c-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-16zM625.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.1z"}}]},name:"sound",theme:"filled"},PD=function(t,n){return h.createElement(je,Ce({},t,{ref:n,icon:ND}))},Cb=h.forwardRef(PD);process.env.NODE_ENV!=="production"&&(Cb.displayName="SoundFilled");var TD={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"},ID=function(t,n){return h.createElement(je,Ce({},t,{ref:n,icon:TD}))},wb=h.forwardRef(ID);process.env.NODE_ENV!=="production"&&(wb.displayName="SoundOutlined");var MD={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"},AD=function(t,n){return h.createElement(je,Ce({},t,{ref:n,icon:MD}))},el=h.forwardRef(AD);process.env.NODE_ENV!=="production"&&(el.displayName="UploadOutlined");const DD=(e,t,n,r)=>{const{titleMarginBottom:o,fontWeightStrong:i}=r;return{marginBottom:o,color:n,fontWeight:i,fontSize:e,lineHeight:t}},FD=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
|
|
253
|
+
`]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&: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-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},cB=Jt(["Input","TextArea"],e=>{const t=jt(e,od(e));return[lB(t)]},id,{resetFont:!1});var uB=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const ZS=M.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,size:i,disabled:a,status:l,allowClear:u,classNames:d,rootClassName:f,className:g,style:p,styles:m,variant:b,showCount:C,onMouseDown:y,onResize:x}=e,$=uB(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]);if(process.env.NODE_ENV!=="production"){const{deprecated:me}=$t("TextArea");me(!("bordered"in e),"bordered","variant")}const{getPrefixCls:w,direction:E,allowClear:S,autoComplete:O,className:_,style:P,classNames:T,styles:L}=lr("textArea"),z=h.useContext(Co),B=a??z,{status:j,hasFeedback:I,feedbackIcon:F}=h.useContext(Yn),A=fh(j,l),D=h.useRef(null);h.useImperativeHandle(t,()=>{var me;return{resizableTextArea:(me=D.current)===null||me===void 0?void 0:me.resizableTextArea,focus:_e=>{var Re,Ie;IS((Ie=(Re=D.current)===null||Re===void 0?void 0:Re.resizableTextArea)===null||Ie===void 0?void 0:Ie.textArea,_e)},blur:()=>{var _e;return(_e=D.current)===null||_e===void 0?void 0:_e.blur()}}});const V=w("input",r),W=ko(V),[H,q,Z]=mS(V,f),[Y]=cB(V,W),{compactSize:G,compactItemClassnames:K}=ku(V,E),te=Uo(me=>{var _e;return(_e=i??G)!==null&&_e!==void 0?_e:me}),[ie,ee]=kw("textArea",b,o),ae=AS(u??S),[de,ue]=h.useState(!1),[J,fe]=h.useState(!1),oe=me=>{ue(!0),y==null||y(me);const _e=()=>{ue(!1),document.removeEventListener("mouseup",_e)};document.addEventListener("mouseup",_e)},he=me=>{var _e,Re;if(x==null||x(me),de&&typeof getComputedStyle=="function"){const Ie=(Re=(_e=D.current)===null||_e===void 0?void 0:_e.nativeElement)===null||Re===void 0?void 0:Re.querySelector("textarea");Ie&&getComputedStyle(Ie).resize==="both"&&fe(!0)}};return H(Y(h.createElement(sB,Object.assign({autoComplete:O},$,{style:Object.assign(Object.assign({},P),p),styles:Object.assign(Object.assign({},L),m),disabled:B,allowClear:ae,className:ge(Z,W,g,f,K,_,J&&`${V}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},d),T),{textarea:ge({[`${V}-sm`]:te==="small",[`${V}-lg`]:te==="large"},q,d==null?void 0:d.textarea,T.textarea,de&&`${V}-mouse-active`),variant:ge({[`${V}-${ie}`]:ee},dh(V,A)),affixWrapper:ge(`${V}-textarea-affix-wrapper`,{[`${V}-affix-wrapper-rtl`]:E==="rtl",[`${V}-affix-wrapper-sm`]:te==="small",[`${V}-affix-wrapper-lg`]:te==="large",[`${V}-textarea-show-count`]:C||((n=e.count)===null||n===void 0?void 0:n.show)},q)}),prefixCls:V,suffix:I&&h.createElement("span",{className:`${V}-textarea-suffix`},F),showCount:C,ref:D,onResize:he,onMouseDown:oe}))))}),Yo=Ll;Yo.Group=Hj,Yo.Search=KS,Yo.TextArea=ZS,Yo.Password=YS,Yo.OTP=Yj;const dB=(e,t=!1)=>t&&e==null?[]:Array.isArray(e)?e:[e];var fB=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const gB=SR(e=>{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:i,title:a,children:l,footer:u}=e,d=fB(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:f}=h.useContext(et),g=f(),p=t||f("modal"),m=ko(g),[b,C,y]=xw(p,m),x=`${p}-confirm`;let $={};return i?$={closable:o??!1,title:"",footer:"",children:h.createElement(Sw,Object.assign({},e,{prefixCls:p,confirmPrefixCls:x,rootPrefixCls:g,content:l}))}:$={closable:o??!0,title:a,footer:u!==null&&h.createElement(mw,Object.assign({},e)),children:l},b(h.createElement(jp,Object.assign({prefixCls:p,className:ge(C,`${p}-pure-panel`,i&&x,i&&`${x}-${i}`,n,y,m)},d,{closeIcon:hw(p,r),closable:o},$)))});function QS(e){return Nl(Ow(e))}const Tr=ww;Tr.useModal=wR,Tr.info=function(t){return Nl(Nw(t))},Tr.success=function(t){return Nl(Pw(t))},Tr.error=function(t){return Nl(Iw(t))},Tr.warning=QS,Tr.warn=QS,Tr.confirm=function(t){return Nl(Tw(t))},Tr.destroyAll=function(){for(;ca.length;){const t=ca.pop();t&&t()}},Tr.config=vR,Tr._InternalPanelDoNotUseOrYouWillBeFired=gB,process.env.NODE_ENV!=="production"&&(Tr.displayName="Modal");const pB=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:o,colorText:i,colorWarning:a,marginXXS:l,marginXS:u,fontSize:d,fontWeightStrong:f,colorTextHeading:g}=e;return{[t]:{zIndex:o,[`&${r}-popover`]:{fontSize:d},[`${t}-message`]:{marginBottom:u,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:a,fontSize:d,lineHeight:1,marginInlineEnd:u},[`${t}-title`]:{fontWeight:f,color:g,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:l,color:i}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:u}}}}},JS=Jt("Popconfirm",e=>pB(e),e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},{resetStyle:!1});var hB=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const eE=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:o,description:i,cancelText:a,okText:l,okType:u="primary",icon:d=h.createElement(Ba,null),showCancel:f=!0,close:g,onConfirm:p,onCancel:m,onPopupClick:b}=e,{getPrefixCls:C}=h.useContext(et),[y]=Ei("Popconfirm",Qr.Popconfirm),x=ds(o),$=ds(i);return h.createElement("div",{className:`${t}-inner-content`,onClick:b},h.createElement("div",{className:`${t}-message`},d&&h.createElement("span",{className:`${t}-message-icon`},d),h.createElement("div",{className:`${t}-message-text`},x&&h.createElement("div",{className:`${t}-title`},x),$&&h.createElement("div",{className:`${t}-description`},$))),h.createElement("div",{className:`${t}-buttons`},f&&h.createElement(cn,Object.assign({onClick:m,size:"small"},r),a||(y==null?void 0:y.cancelText)),h.createElement(zp,{buttonProps:Object.assign(Object.assign({size:"small"},Pp(u)),n),actionFn:p,close:g,prefixCls:C("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},l||(y==null?void 0:y.okText))))},mB=e=>{const{prefixCls:t,placement:n,className:r,style:o}=e,i=hB(e,["prefixCls","placement","className","style"]),{getPrefixCls:a}=h.useContext(et),l=a("popconfirm",t),[u]=JS(l);return u(h.createElement(Jw,{placement:n,className:ge(l,r),style:o,content:h.createElement(eE,Object.assign({prefixCls:l},i))}))};var vB=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const $h=h.forwardRef((e,t)=>{var n,r;const{prefixCls:o,placement:i="top",trigger:a="click",okType:l="primary",icon:u=h.createElement(Ba,null),children:d,overlayClassName:f,onOpenChange:g,onVisibleChange:p,overlayStyle:m,styles:b,classNames:C}=e,y=vB(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:x,className:$,style:w,classNames:E,styles:S}=lr("popconfirm"),[O,_]=Or(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),P=(D,V)=>{_(D,!0),p==null||p(D),g==null||g(D,V)},T=D=>{P(!1,D)},L=D=>{var V;return(V=e.onConfirm)===null||V===void 0?void 0:V.call(void 0,D)},z=D=>{var V;P(!1,D),(V=e.onCancel)===null||V===void 0||V.call(void 0,D)},B=(D,V)=>{const{disabled:W=!1}=e;W||P(D,V)},j=x("popconfirm",o),I=ge(j,$,f,E.root,C==null?void 0:C.root),F=ge(E.body,C==null?void 0:C.body),[A]=JS(j);return A(h.createElement(hh,Object.assign({},jn(y,["title"]),{trigger:a,placement:i,onOpenChange:B,open:O,ref:t,classNames:{root:I,body:F},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},S.root),w),m),b==null?void 0:b.root),body:Object.assign(Object.assign({},S.body),b==null?void 0:b.body)},content:h.createElement(eE,Object.assign({okType:l,icon:u},e,{prefixCls:j,close:T,onConfirm:L,onCancel:z})),"data-popover-inject":!0}),d))});$h._InternalPanelDoNotUseOrYouWillBeFired=mB,process.env.NODE_ENV!=="production"&&($h.displayName="Popconfirm");var yB={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},bB=function(){var t=M.useRef([]),n=M.useRef(null);return M.useEffect(function(){var r=Date.now(),o=!1;t.current.forEach(function(i){if(i){o=!0;var a=i.style;a.transitionDuration=".3s, .3s, .3s, .06s",n.current&&r-n.current<100&&(a.transitionDuration="0s, 0s")}}),o&&(n.current=Date.now())}),t.current};process.env.NODE_ENV;var tE=0,CB=process.env.NODE_ENV!=="test"&&On();function xB(){var e;return CB?(e=tE,tE+=1):e="TEST_OR_SSR",e}const wB=function(e){var t=h.useState(),n=Ee(t,2),r=n[0],o=n[1];return h.useEffect(function(){o("rc_progress_".concat(xB()))},[]),e||r};var nE=function(t){var n=t.bg,r=t.children;return h.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function rE(e,t){return Object.keys(e).map(function(n){var r=parseFloat(n),o="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(o)})}var oE=h.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,o=e.gradientId,i=e.radius,a=e.style,l=e.ptg,u=e.strokeLinecap,d=e.strokeWidth,f=e.size,g=e.gapDegree,p=r&&je(r)==="object",m=p?"#FFF":void 0,b=f/2,C=h.createElement("circle",{className:"".concat(n,"-circle-path"),r:i,cx:b,cy:b,stroke:m,strokeLinecap:u,strokeWidth:d,opacity:l===0?0:1,style:a,ref:t});if(!p)return C;var y="".concat(o,"-conic"),x=g?"".concat(180+g/2,"deg"):"0deg",$=rE(r,(360-g)/360),w=rE(r,1),E="conic-gradient(from ".concat(x,", ").concat($.join(", "),")"),S="linear-gradient(to ".concat(g?"bottom":"top",", ").concat(w.join(", "),")");return h.createElement(h.Fragment,null,h.createElement("mask",{id:y},C),h.createElement("foreignObject",{x:0,y:0,width:f,height:f,mask:"url(#".concat(y,")")},h.createElement(nE,{bg:S},h.createElement(nE,{bg:E}))))});process.env.NODE_ENV!=="production"&&(oE.displayName="PtgCircle");var Rl=100,_h=function(t,n,r,o,i,a,l,u,d,f){var g=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,p=r/100*360*((360-a)/360),m=a===0?0:{bottom:0,top:180,left:90,right:-90}[l],b=(100-o)/100*n;d==="round"&&o!==100&&(b+=f/2,b>=n&&(b=n-.01));var C=Rl/2;return{stroke:typeof u=="string"?u:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:b+g,transform:"rotate(".concat(i+p+m,"deg)"),transformOrigin:"".concat(C,"px ").concat(C,"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}},SB=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function iE(e){var t=e??[];return Array.isArray(t)?t:[t]}var aE=function(t){var n=le(le({},yB),t),r=n.id,o=n.prefixCls,i=n.steps,a=n.strokeWidth,l=n.trailWidth,u=n.gapDegree,d=u===void 0?0:u,f=n.gapPosition,g=n.trailColor,p=n.strokeLinecap,m=n.style,b=n.className,C=n.strokeColor,y=n.percent,x=sn(n,SB),$=Rl/2,w=wB(r),E="".concat(w,"-gradient"),S=$-a/2,O=Math.PI*2*S,_=d>0?90+d/2:-90,P=O*((360-d)/360),T=je(i)==="object"?i:{count:i,gap:2},L=T.count,z=T.gap,B=iE(y),j=iE(C),I=j.find(function(q){return q&&je(q)==="object"}),F=I&&je(I)==="object",A=F?"butt":p,D=_h(O,P,0,100,_,d,f,g,A,a),V=bB(),W=function(){var Z=0;return B.map(function(Y,G){var K=j[G]||j[j.length-1],te=_h(O,P,Z,Y,_,d,f,K,A,a);return Z+=Y,h.createElement(oE,{key:G,color:K,ptg:Y,radius:S,prefixCls:o,gradientId:E,style:te,strokeLinecap:A,strokeWidth:a,gapDegree:d,ref:function(ee){V[G]=ee},size:Rl})}).reverse()},H=function(){var Z=Math.round(L*(B[0]/100)),Y=100/L,G=0;return new Array(L).fill(null).map(function(K,te){var ie=te<=Z-1?j[0]:g,ee=ie&&je(ie)==="object"?"url(#".concat(E,")"):void 0,ae=_h(O,P,G,Y,_,d,f,ie,"butt",a,z);return G+=(P-ae.strokeDashoffset+z)*100/P,h.createElement("circle",{key:te,className:"".concat(o,"-circle-path"),r:S,cx:$,cy:$,stroke:ee,strokeWidth:a,opacity:1,style:ae,ref:function(ue){V[te]=ue}})})};return h.createElement("svg",Le({className:ge("".concat(o,"-circle"),b),viewBox:"0 0 ".concat(Rl," ").concat(Rl),style:m,id:r,role:"presentation"},x),!L&&h.createElement("circle",{className:"".concat(o,"-circle-trail"),r:S,cx:$,cy:$,stroke:g,strokeLinecap:A,strokeWidth:l||a,style:D}),L?H():W())};process.env.NODE_ENV!=="production"&&(aE.displayName="Circle");function Ni(e){return!e||e<0?0:e>100?100:e}function ud({success:e,successPercent:t}){let n=t;return e&&"progress"in e&&(n=e.progress),e&&"percent"in e&&(n=e.percent),n}const EB=({percent:e,success:t,successPercent:n})=>{const r=Ni(ud({success:t,successPercent:n}));return[r,Ni(Ni(e)-r)]},$B=({success:e={},strokeColor:t})=>{const{strokeColor:n}=e;return[n||La.green,t||null]},dd=(e,t,n)=>{var r,o,i,a;let l=-1,u=-1;if(t==="step"){const d=n.steps,f=n.strokeWidth;typeof e=="string"||typeof e>"u"?(l=e==="small"?2:14,u=f??8):typeof e=="number"?[l,u]=[e,e]:[l=14,u=8]=Array.isArray(e)?e:[e.width,e.height],l*=d}else if(t==="line"){const d=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?u=d||(e==="small"?6:8):typeof e=="number"?[l,u]=[e,e]:[l=-1,u=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[l,u]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[l,u]=[e,e]:Array.isArray(e)&&(l=(o=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&o!==void 0?o:120,u=(a=(i=e[0])!==null&&i!==void 0?i:e[1])!==null&&a!==void 0?a:120));return[l,u]},_B=3,OB=e=>_B/e*100,NB=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:o,gapDegree:i,width:a=120,type:l,children:u,success:d,size:f=a,steps:g}=e,[p,m]=dd(f,"circle");let{strokeWidth:b}=e;b===void 0&&(b=Math.max(OB(p),6));const C={width:p,height:m,fontSize:p*.15+6},y=h.useMemo(()=>{if(i||i===0)return i;if(l==="dashboard")return 75},[i,l]),x=EB(e),$=o||l==="dashboard"&&"bottom"||void 0,w=Object.prototype.toString.call(e.strokeColor)==="[object Object]",E=$B({success:d,strokeColor:e.strokeColor}),S=ge(`${t}-inner`,{[`${t}-circle-gradient`]:w}),O=h.createElement(aE,{steps:g,percent:g?x[1]:x,strokeWidth:b,trailWidth:b,strokeColor:g?E[1]:E,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:y,gapPosition:$}),_=p<=20,P=h.createElement("div",{className:S,style:C},O,!_&&u);return _?h.createElement(Xo,{title:u},P):P},fd="--progress-line-stroke-color",sE="--progress-percent",lE=e=>{const t=e?"100%":"-100%";return new bn(`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}})},PB=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},Rn(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(${fd})`]},height:"100%",width:`calc(1 / var(${sE}) * 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 ${we(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:lE(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:lE(!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}}})}},IB=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"}}}},TB=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}}}}}},MB=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},AB=Jt("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=jt(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[PB(n),IB(n),TB(n),MB(n)]},e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}));var DB=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const FB=e=>{let t=[];return Object.keys(e).forEach(n=>{const r=parseFloat(n.replace(/%/g,""));Number.isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(({key:n,value:r})=>`${r} ${n}%`).join(", ")},LB=(e,t)=>{const{from:n=La.blue,to:r=La.blue,direction:o=t==="rtl"?"to left":"to right"}=e,i=DB(e,["from","to","direction"]);if(Object.keys(i).length!==0){const l=FB(i),u=`linear-gradient(${o}, ${l})`;return{background:u,[fd]:u}}const a=`linear-gradient(${o}, ${n}, ${r})`;return{background:a,[fd]:a}},RB=e=>{const{prefixCls:t,direction:n,percent:r,size:o,strokeWidth:i,strokeColor:a,strokeLinecap:l="round",children:u,trailColor:d=null,percentPosition:f,success:g}=e,{align:p,type:m}=f,b=a&&typeof a!="string"?LB(a,n):{[fd]:a,background:a},C=l==="square"||l==="butt"?0:void 0,y=o??[-1,i||(o==="small"?6:8)],[x,$]=dd(y,"line",{strokeWidth:i});process.env.NODE_ENV!=="production"&&$t("Progress").deprecated(!("strokeWidth"in e),"strokeWidth","size");const w={backgroundColor:d||void 0,borderRadius:C},E=Object.assign(Object.assign({width:`${Ni(r)}%`,height:$,borderRadius:C},b),{[sE]:Ni(r)/100}),S=ud(e),O={width:`${Ni(S)}%`,height:$,borderRadius:C,backgroundColor:g==null?void 0:g.strokeColor},_={width:x<0?"100%":x},P=h.createElement("div",{className:`${t}-inner`,style:w},h.createElement("div",{className:ge(`${t}-bg`,`${t}-bg-${m}`),style:E},m==="inner"&&u),S!==void 0&&h.createElement("div",{className:`${t}-success-bg`,style:O})),T=m==="outer"&&p==="start",L=m==="outer"&&p==="end";return m==="outer"&&p==="center"?h.createElement("div",{className:`${t}-layout-bottom`},P,u):h.createElement("div",{className:`${t}-outer`,style:_},T&&u,P,L&&u)},zB=e=>{const{size:t,steps:n,rounding:r=Math.round,percent:o=0,strokeWidth:i=8,strokeColor:a,trailColor:l=null,prefixCls:u,children:d}=e,f=r(n*(o/100)),p=t??[t==="small"?2:14,i],[m,b]=dd(p,"step",{steps:n,strokeWidth:i}),C=m/n,y=Array.from({length:n});for(let x=0;x<n;x++){const $=Array.isArray(a)?a[x]:a;y[x]=h.createElement("div",{key:x,className:ge(`${u}-steps-item`,{[`${u}-steps-item-active`]:x<=f-1}),style:{backgroundColor:x<=f-1?$:l,width:C,height:b}})}return h.createElement("div",{className:`${u}-steps-outer`},y,d)};var jB=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const BB=["normal","exception","active","success"],cE=h.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,steps:i,strokeColor:a,percent:l=0,size:u="default",showInfo:d=!0,type:f="line",status:g,format:p,style:m,percentPosition:b={}}=e,C=jB(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:y="end",type:x="outer"}=b,$=Array.isArray(a)?a[0]:a,w=typeof a=="string"||Array.isArray(a)?a:void 0,E=h.useMemo(()=>{if($){const W=typeof $=="string"?$:Object.values($)[0];return new Vt(W).isLight()}return!1},[a]),S=h.useMemo(()=>{var W,H;const q=ud(e);return parseInt(q!==void 0?(W=q??0)===null||W===void 0?void 0:W.toString():(H=l??0)===null||H===void 0?void 0:H.toString(),10)},[l,e.success,e.successPercent]),O=h.useMemo(()=>!BB.includes(g)&&S>=100?"success":g||"normal",[g,S]),{getPrefixCls:_,direction:P,progress:T}=h.useContext(et),L=_("progress",n),[z,B,j]=AB(L),I=f==="line",F=I&&!i,A=h.useMemo(()=>{if(!d)return null;const W=ud(e);let H;const q=p||(Y=>`${Y}%`),Z=I&&E&&x==="inner";return x==="inner"||p||O!=="exception"&&O!=="success"?H=q(Ni(l),Ni(W)):O==="exception"?H=I?h.createElement(ja,null):h.createElement(ea,null):O==="success"&&(H=I?h.createElement(sl,null):h.createElement($g,null)),h.createElement("span",{className:ge(`${L}-text`,{[`${L}-text-bright`]:Z,[`${L}-text-${y}`]:F,[`${L}-text-${x}`]:F}),title:typeof H=="string"?H:void 0},H)},[d,l,S,O,f,L,p]);if(process.env.NODE_ENV!=="production"){const W=$t("Progress");W.deprecated(!("successPercent"in e),"successPercent","success.percent"),W.deprecated(!("width"in e),"width","size"),(f==="circle"||f==="dashboard")&&(Array.isArray(u)?process.env.NODE_ENV!=="production"&&W(!1,"usage",'Type "circle" and "dashboard" do not accept array as `size`, please use number or preset size instead.'):typeof u=="object"&&process.env.NODE_ENV!=="production"&&W(!1,"usage",'Type "circle" and "dashboard" do not accept object as `size`, please use number or preset size instead.')),e.success&&"progress"in e.success&&W.deprecated(!1,"success.progress","success.percent")}let D;f==="line"?D=i?h.createElement(zB,Object.assign({},e,{strokeColor:w,prefixCls:L,steps:typeof i=="object"?i.count:i}),A):h.createElement(RB,Object.assign({},e,{strokeColor:$,prefixCls:L,direction:P,percentPosition:{align:y,type:x}}),A):(f==="circle"||f==="dashboard")&&(D=h.createElement(NB,Object.assign({},e,{strokeColor:$,prefixCls:L,progressStatus:O}),A));const V=ge(L,`${L}-status-${O}`,{[`${L}-${f==="dashboard"&&"circle"||f}`]:f!=="line",[`${L}-inline-circle`]:f==="circle"&&dd(u,"circle")[0]<=20,[`${L}-line`]:F,[`${L}-line-align-${y}`]:F,[`${L}-line-position-${x}`]:F,[`${L}-steps`]:i,[`${L}-show-info`]:d,[`${L}-${u}`]:typeof u=="string",[`${L}-rtl`]:P==="rtl"},T==null?void 0:T.className,r,o,B,j);return z(h.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},T==null?void 0:T.style),m),className:V,role:"progressbar","aria-valuenow":S,"aria-valuemin":0,"aria-valuemax":100},jn(C,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),D))});process.env.NODE_ENV!=="production"&&(cE.displayName="Progress");const VB=(e,t,n,r)=>{const{titleMarginBottom:o,fontWeightStrong:i}=r;return{marginBottom:o,color:n,fontWeight:i,fontSize:e,lineHeight:t}},HB=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
|
|
244
254
|
h${r}&,
|
|
245
255
|
div&-h${r},
|
|
246
256
|
div&-h${r} > textarea,
|
|
247
257
|
h${r}
|
|
248
|
-
`]=
|
|
258
|
+
`]=VB(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},kB=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},bC(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},WB=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:Zc[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:e.fontWeightStrong},"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}}),UB=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 - ${we(r)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},qB=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),GB=()=>({"\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"}}),XB=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.colorSuccessText},[`&${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger`]:{color:e.colorErrorText,"a&:active, a&:focus":{color:e.colorErrorTextActive},"a&:hover":{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},HB(e)),{[`
|
|
249
259
|
& + h1${t},
|
|
250
260
|
& + h2${t},
|
|
251
261
|
& + h3${t},
|
|
252
262
|
& + h4${t},
|
|
253
263
|
& + h5${t}
|
|
254
|
-
`]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),
|
|
264
|
+
`]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),WB(e)),kB(e)),{[`
|
|
255
265
|
${t}-expand,
|
|
256
266
|
${t}-collapse,
|
|
257
267
|
${t}-edit,
|
|
258
268
|
${t}-copy
|
|
259
|
-
`]:Object.assign(Object.assign({},Zm(e)),{marginInlineStart:e.marginXXS})}),zD(e)),RD(e)),VD()),{"&-rtl":{direction:"rtl"}})}},xb=Et("Typography",e=>[kD(e)],()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})),HD=e=>{const{prefixCls:t,"aria-label":n,className:r,style:o,direction:i,maxLength:a,autoSize:s=!0,value:l,onSave:c,onCancel:u,onEnd:d,component:f,enterIcon:p=h.createElement(gb,null)}=e,v=h.useRef(null),m=h.useRef(!1),g=h.useRef(null),[y,x]=h.useState(l);h.useEffect(()=>{x(l)},[l]),h.useEffect(()=>{var O;if(!((O=v.current)===null||O===void 0)&&O.resizableTextArea){const{textArea:M}=v.current.resizableTextArea;M.focus();const{length:N}=M.value;M.setSelectionRange(N,N)}},[]);const b=({target:O})=>{x(O.value.replace(/[\n\r]/g,""))},C=()=>{m.current=!0},w=()=>{m.current=!1},$=({keyCode:O})=>{m.current||(g.current=O)},S=()=>{c(y.trim())},E=({keyCode:O,ctrlKey:M,altKey:N,metaKey:I,shiftKey:j})=>{g.current!==O||m.current||M||N||I||j||(O===Mv.ENTER?(S(),d==null||d()):O===Mv.ESC&&u())},_=()=>{S()},[P,A,L]=xb(t),D=re(t,`${t}-edit-content`,{[`${t}-rtl`]:i==="rtl",[`${t}-${f}`]:!!f},r,A,L);return P(h.createElement("div",{className:D,style:o},h.createElement(Jy,{ref:v,maxLength:a,value:y,onChange:b,onKeyDown:$,onKeyUp:E,onCompositionStart:C,onCompositionEnd:w,onBlur:_,"aria-label":n,rows:1,autoSize:s}),p!==null?nr(p,{className:`${t}-edit-content-confirm`}):null))};var $d,Sb;function BD(){return Sb||(Sb=1,$d=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(o){e.addRange(o)}),t&&t.focus()}}),$d}var Od,Eb;function WD(){if(Eb)return Od;Eb=1;var e=BD(),t={"text/plain":"Text","text/html":"Url",default:"Text"},n="Copy to clipboard: #{key}, Enter";function r(i){var a=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return i.replace(/#{\s*key\s*}/g,a)}function o(i,a){var s,l,c,u,d,f,p=!1;a||(a={}),s=a.debug||!1;try{c=e(),u=document.createRange(),d=document.getSelection(),f=document.createElement("span"),f.textContent=i,f.ariaHidden="true",f.style.all="unset",f.style.position="fixed",f.style.top=0,f.style.clip="rect(0, 0, 0, 0)",f.style.whiteSpace="pre",f.style.webkitUserSelect="text",f.style.MozUserSelect="text",f.style.msUserSelect="text",f.style.userSelect="text",f.addEventListener("copy",function(m){if(m.stopPropagation(),a.format)if(m.preventDefault(),typeof m.clipboardData>"u"){s&&console.warn("unable to use e.clipboardData"),s&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var g=t[a.format]||t.default;window.clipboardData.setData(g,i)}else m.clipboardData.clearData(),m.clipboardData.setData(a.format,i);a.onCopy&&(m.preventDefault(),a.onCopy(m.clipboardData))}),document.body.appendChild(f),u.selectNodeContents(f),d.addRange(u);var v=document.execCommand("copy");if(!v)throw new Error("copy command was unsuccessful");p=!0}catch(m){s&&console.error("unable to copy using execCommand: ",m),s&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(a.format||"text",i),a.onCopy&&a.onCopy(window.clipboardData),p=!0}catch(g){s&&console.error("unable to copy using clipboardData: ",g),s&&console.error("falling back to prompt"),l=r("message"in a?a.message:n),window.prompt(l,i)}}finally{d&&(typeof d.removeRange=="function"?d.removeRange(u):d.removeAllRanges()),f&&document.body.removeChild(f),c()}return p}return Od=o,Od}var qD=WD();const UD=mi(qD);var GD=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(u){try{c(r.next(u))}catch(d){a(d)}}function l(u){try{c(r.throw(u))}catch(d){a(d)}}function c(u){u.done?i(u.value):o(u.value).then(s,l)}c((r=r.apply(e,t||[])).next())})};const XD=({copyConfig:e,children:t})=>{const[n,r]=h.useState(!1),[o,i]=h.useState(!1),a=h.useRef(null),s=()=>{a.current&&clearTimeout(a.current)},l={};e.format&&(l.format=e.format),h.useEffect(()=>s,[]);const c=wt(u=>GD(void 0,void 0,void 0,function*(){var d;u==null||u.preventDefault(),u==null||u.stopPropagation(),i(!0);try{const f=typeof e.text=="function"?yield e.text():e.text;UD(f||N3(t,!0).join("")||"",l),i(!1),r(!0),s(),a.current=setTimeout(()=>{r(!1)},3e3),(d=e.onCopy)===null||d===void 0||d.call(e,u)}catch(f){throw i(!1),f}}));return{copied:n,copyLoading:o,onClick:c}};function _d(e,t){return h.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const YD=e=>{const t=T.useRef(void 0);return T.useEffect(()=>{t.current=e}),t.current},KD=(e,t,n)=>T.useMemo(()=>e===!0?{title:t??n}:T.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);var ZD=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Nd=h.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:o,rootClassName:i,setContentRef:a,children:s,direction:l,style:c}=e,u=ZD(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:d,direction:f,className:p,style:v}=In("typography"),m=l??f,g=a?kt(t,a):t,y=d("typography",n);process.env.NODE_ENV!=="production"&&Ze("Typography").deprecated(!a,"setContentRef","ref");const[x,b,C]=xb(y),w=re(y,p,{[`${y}-rtl`]:m==="rtl"},o,i,b,C),$=Object.assign(Object.assign({},v),c);return x(h.createElement(r,Object.assign({className:w,style:$,ref:g},u),s))});process.env.NODE_ENV!=="production"&&(Nd.displayName="Typography");function $b(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function Pd(e,t,n){return e===!0||e===void 0?t:e||n&&t}function QD(e){const t=document.createElement("em");e.appendChild(t),process.env.NODE_ENV!=="production"&&(t.className="ant-typography-css-ellipsis-content-measure");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 Td=e=>["string","number"].includes(typeof e),JD=({prefixCls:e,copied:t,locale:n,iconOnly:r,tooltips:o,icon:i,tabIndex:a,onCopy:s,loading:l})=>{const c=$b(o),u=$b(i),{copied:d,copy:f}=n??{},p=t?d:f,v=Pd(c[t?1:0],p),m=typeof v=="string"?v:p;return h.createElement($r,{title:v},h.createElement("button",{type:"button",className:re(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:r}),onClick:s,"aria-label":m,tabIndex:a},t?Pd(u[1],h.createElement(dd,null),!0):Pd(u[0],l?h.createElement(Ao,null):h.createElement(fb,null),!0)))},tl=h.forwardRef(({style:e,children:t},n)=>{const r=h.useRef(null);return h.useImperativeHandle(n,()=>({isExceed:()=>{const o=r.current;return o.scrollHeight>o.clientHeight},getHeight:()=>r.current.clientHeight})),h.createElement("span",{"aria-hidden":!0,ref:r,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},e)},t)}),e6=e=>e.reduce((t,n)=>t+(Td(n)?String(n).length:1),0);function Ob(e,t){let n=0;const r=[];for(let o=0;o<e.length;o+=1){if(n===t)return r;const i=e[o],s=Td(i)?String(i).length:1,l=n+s;if(l>t){const c=t-n;return r.push(String(i).slice(0,c)),r}r.push(i),n=l}return e}const Id=0,Md=1,Ad=2,Dd=3,_b=4,nl={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function t6(e){const{enableMeasure:t,width:n,text:r,children:o,rows:i,expanded:a,miscDeps:s,onEllipsis:l}=e,c=h.useMemo(()=>Zn(r),[r]),u=h.useMemo(()=>e6(c),[r]),d=h.useMemo(()=>o(c,!1),[r]),[f,p]=h.useState(null),v=h.useRef(null),m=h.useRef(null),g=h.useRef(null),y=h.useRef(null),x=h.useRef(null),[b,C]=h.useState(!1),[w,$]=h.useState(Id),[S,E]=h.useState(0),[_,P]=h.useState(null);Ke(()=>{$(t&&n&&u?Md:Id)},[n,r,i,t,c]),Ke(()=>{var O,M,N,I;if(w===Md){$(Ad);const j=m.current&&getComputedStyle(m.current).whiteSpace;P(j)}else if(w===Ad){const j=!!(!((O=g.current)===null||O===void 0)&&O.isExceed());$(j?Dd:_b),p(j?[0,u]:null),C(j);const z=((M=g.current)===null||M===void 0?void 0:M.getHeight())||0,F=i===1?0:((N=y.current)===null||N===void 0?void 0:N.getHeight())||0,R=((I=x.current)===null||I===void 0?void 0:I.getHeight())||0,W=Math.max(z,F+R);E(W+1),l(j)}},[w]);const A=f?Math.ceil((f[0]+f[1])/2):0;Ke(()=>{var O;const[M,N]=f||[0,0];if(M!==N){const j=(((O=v.current)===null||O===void 0?void 0:O.getHeight())||0)>S;let z=A;N-M===1&&(z=j?M:N),p(j?[M,z]:[z,N])}},[f,A]);const L=h.useMemo(()=>{if(!t)return o(c,!1);if(w!==Dd||!f||f[0]!==f[1]){const O=o(c,!1);return[_b,Id].includes(w)?O:h.createElement("span",{style:Object.assign(Object.assign({},nl),{WebkitLineClamp:i})},O)}return o(a?c:Ob(c,f[0]),b)},[a,w,f,c].concat(de(s))),D={width:n,margin:0,padding:0,whiteSpace:_==="nowrap"?"normal":"inherit"};return h.createElement(h.Fragment,null,L,w===Ad&&h.createElement(h.Fragment,null,h.createElement(tl,{style:Object.assign(Object.assign(Object.assign({},D),nl),{WebkitLineClamp:i}),ref:g},d),h.createElement(tl,{style:Object.assign(Object.assign(Object.assign({},D),nl),{WebkitLineClamp:i-1}),ref:y},d),h.createElement(tl,{style:Object.assign(Object.assign(Object.assign({},D),nl),{WebkitLineClamp:1}),ref:x},o([],!0))),w===Dd&&f&&f[0]!==f[1]&&h.createElement(tl,{style:Object.assign(Object.assign({},D),{top:400}),ref:v},o(Ob(c,A),!0)),w===Md&&h.createElement("span",{style:{whiteSpace:"inherit"},ref:m}))}const Nb=({enableEllipsis:e,isEllipsis:t,children:n,tooltipProps:r})=>!(r!=null&&r.title)||!e?n:h.createElement($r,Object.assign({open:t?void 0:!1},r),n);process.env.NODE_ENV!=="production"&&(Nb.displayName="EllipsisTooltip");var n6=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function r6({mark:e,code:t,underline:n,delete:r,strong:o,keyboard:i,italic:a},s){let l=s;function c(u,d){d&&(l=h.createElement(u,{},l))}return c("strong",o),c("u",n),c("del",r),c("code",t),c("mark",e),c("kbd",i),c("i",a),l}const o6="...",Pb=["delete","mark","code","underline","strong","keyboard","italic"],rl=h.forwardRef((e,t)=>{var n;const{prefixCls:r,className:o,style:i,type:a,disabled:s,children:l,ellipsis:c,editable:u,copyable:d,component:f,title:p}=e,v=n6(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:m,direction:g}=h.useContext(Be),[y]=Rc("Text"),x=h.useRef(null),b=h.useRef(null),C=m("typography",r),w=bn(v,Pb),[$,S]=_d(u),[E,_]=An(!1,{value:S.editing}),{triggerType:P=["icon"]}=S,A=ie=>{var se;ie&&((se=S.onStart)===null||se===void 0||se.call(S)),_(ie)},L=YD(E);Ke(()=>{var ie;!E&&L&&((ie=b.current)===null||ie===void 0||ie.focus())},[E]);const D=ie=>{ie==null||ie.preventDefault(),A(!0)},O=ie=>{var se;(se=S.onChange)===null||se===void 0||se.call(S,ie),A(!1)},M=()=>{var ie;(ie=S.onCancel)===null||ie===void 0||ie.call(S),A(!1)},[N,I]=_d(d),{copied:j,copyLoading:z,onClick:F}=XD({copyConfig:I,children:l}),[R,W]=h.useState(!1),[H,V]=h.useState(!1),[B,U]=h.useState(!1),[K,G]=h.useState(!1),[Z,J]=h.useState(!0),[ee,q]=_d(c,{expandable:!1,symbol:ie=>ie?y==null?void 0:y.collapse:y==null?void 0:y.expand}),[te,Y]=An(q.defaultExpanded||!1,{value:q.expanded}),oe=ee&&(!te||q.expandable==="collapsible"),{rows:ne=1}=q,ce=h.useMemo(()=>oe&&(q.suffix!==void 0||q.onEllipsis||q.expandable||$||N),[oe,q,$,N]);Ke(()=>{ee&&!ce&&(W(D0("webkitLineClamp")),V(D0("textOverflow")))},[ce,ee]);const[ve,pe]=h.useState(oe),_e=h.useMemo(()=>ce?!1:ne===1?H:R,[ce,H,R]);Ke(()=>{pe(_e&&oe)},[_e,oe]);const xe=oe&&(ve?K:B),Oe=oe&&ne===1&&ve,he=oe&&ne>1&&ve,ue=(ie,se)=>{var Se;Y(se.expanded),(Se=q.onExpand)===null||Se===void 0||Se.call(q,ie,se)},[Ee,Ne]=h.useState(0),Ue=({offsetWidth:ie})=>{Ne(ie)},De=ie=>{var se;U(ie),B!==ie&&((se=q.onEllipsis)===null||se===void 0||se.call(q,ie))};h.useEffect(()=>{const ie=x.current;if(ee&&ve&&ie){const se=QD(ie);K!==se&&G(se)}},[ee,ve,l,he,Z,Ee]),h.useEffect(()=>{const ie=x.current;if(typeof IntersectionObserver>"u"||!ie||!ve||!oe)return;const se=new IntersectionObserver(()=>{J(!!ie.offsetParent)});return se.observe(ie),()=>{se.disconnect()}},[ve,oe]);const Le=KD(q.tooltip,S.text,l),Ge=h.useMemo(()=>{if(!(!ee||ve))return[S.text,l,p,Le.title].find(Td)},[ee,ve,p,Le.title,xe]);if(E)return h.createElement(HD,{value:(n=S.text)!==null&&n!==void 0?n:typeof l=="string"?l:"",onSave:O,onCancel:M,onEnd:S.onEnd,prefixCls:C,className:o,style:i,direction:g,component:f,maxLength:S.maxLength,autoSize:S.autoSize,enterIcon:S.enterIcon});const Te=()=>{const{expandable:ie,symbol:se}=q;return ie?h.createElement("button",{type:"button",key:"expand",className:`${C}-${te?"collapse":"expand"}`,onClick:Se=>ue(Se,{expanded:!te}),"aria-label":te?y.collapse:y==null?void 0:y.expand},typeof se=="function"?se(te):se):null},Ie=()=>{if(!$)return;const{icon:ie,tooltip:se,tabIndex:Se}=S,Qe=Zn(se)[0]||(y==null?void 0:y.edit),Ot=typeof Qe=="string"?Qe:"";return P.includes("icon")?h.createElement($r,{key:"edit",title:se===!1?"":Qe},h.createElement("button",{type:"button",ref:b,className:`${C}-edit`,onClick:D,"aria-label":Ot,tabIndex:Se},ie||h.createElement(Ed,{role:"button"}))):null},Pe=()=>N?h.createElement(JD,Object.assign({key:"copy"},I,{prefixCls:C,copied:j,locale:y,onCopy:F,loading:z,iconOnly:l==null})):null,le=ie=>[ie&&Te(),Ie(),Pe()],me=ie=>[ie&&!te&&h.createElement("span",{"aria-hidden":!0,key:"ellipsis"},o6),q.suffix,le(ie)];return h.createElement(yo,{onResize:Ue,disabled:!oe},ie=>h.createElement(Nb,{tooltipProps:Le,enableEllipsis:oe,isEllipsis:xe},h.createElement(Nd,Object.assign({className:re({[`${C}-${a}`]:a,[`${C}-disabled`]:s,[`${C}-ellipsis`]:ee,[`${C}-ellipsis-single-line`]:Oe,[`${C}-ellipsis-multiple-line`]:he},o),prefixCls:r,style:Object.assign(Object.assign({},i),{WebkitLineClamp:he?ne:void 0}),component:f,ref:kt(ie,x,t),direction:g,onClick:P.includes("text")?D:void 0,"aria-label":Ge==null?void 0:Ge.toString(),title:p},w),h.createElement(t6,{enableMeasure:oe&&!ve,text:l,rows:ne,width:Ee,onEllipsis:De,expanded:te,miscDeps:[j,te,z,$,N,y].concat(de(Pb.map(se=>e[se])))},(se,Se)=>r6(e,h.createElement(h.Fragment,null,se.length>0&&Se&&!te&&Ge?h.createElement("span",{key:"show-content","aria-hidden":!0},se):se,me(Se)))))))});var i6=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const a6=h.forwardRef((e,t)=>{var{ellipsis:n,rel:r}=e,o=i6(e,["ellipsis","rel"]);if(process.env.NODE_ENV!=="production"){const a=Ze("Typography.Link");process.env.NODE_ENV!=="production"&&a(typeof n!="object","usage","`ellipsis` only supports boolean value.")}const i=Object.assign(Object.assign({},o),{rel:r===void 0&&o.target==="_blank"?"noopener noreferrer":r});return delete i.navigate,h.createElement(rl,Object.assign({},i,{ref:t,ellipsis:!!n,component:"a"}))}),s6=h.forwardRef((e,t)=>h.createElement(rl,Object.assign({ref:t},e,{component:"div"})));var l6=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const c6=(e,t)=>{var{ellipsis:n}=e,r=l6(e,["ellipsis"]);const o=h.useMemo(()=>n&&typeof n=="object"?bn(n,["expandable","rows"]):n,[n]);if(process.env.NODE_ENV!=="production"){const i=Ze("Typography.Text");process.env.NODE_ENV!=="production"&&i(typeof n!="object"||!n||!("expandable"in n)&&!("rows"in n),"usage","`ellipsis` do not support `expandable` or `rows` props.")}return h.createElement(rl,Object.assign({ref:t},r,{ellipsis:o,component:"span"}))},u6=h.forwardRef(c6);var d6=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Tb=[1,2,3,4,5],f6=h.forwardRef((e,t)=>{const{level:n=1}=e,r=d6(e,["level"]);if(process.env.NODE_ENV!=="production"){const i=Ze("Typography.Title");process.env.NODE_ENV!=="production"&&i(Tb.includes(n),"usage","Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version.")}const o=Tb.includes(n)?`h${n}`:"h1";return h.createElement(rl,Object.assign({ref:t},r,{component:o}))}),Bo=Nd;Bo.Text=u6,Bo.Link=a6,Bo.Title=f6,Bo.Paragraph=s6;const Fd=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=e.type||"",i=o.replace(/\/.*$/,"");return n.some(function(a){var s=a.trim();if(/^\*(\/\*)?$/.test(a))return!0;if(s.charAt(0)==="."){var l=r.toLowerCase(),c=s.toLowerCase(),u=[c];return(c===".jpg"||c===".jpeg")&&(u=[".jpg",".jpeg"]),u.some(function(d){return l.endsWith(d)})}return/\/\*$/.test(s)?i===s.replace(/\/.*$/,""):o===s?!0:/^\w+$/.test(s)?(et(!1,"Upload takes an invalidate 'accept' type '".concat(s,"'.Skip for check.")),!0):!1})}return!0};function p6(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 Ib(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function g6(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(i){i.total>0&&(i.percent=i.loaded/i.total*100),e.onProgress(i)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(o){var i=e.data[o];if(Array.isArray(i)){i.forEach(function(a){n.append("".concat(o,"[]"),a)});return}n.append(o,i)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(i){e.onError(i)},t.onload=function(){return t.status<200||t.status>=300?e.onError(p6(e,t),Ib(t)):e.onSuccess(Ib(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(o){r[o]!==null&&t.setRequestHeader(o,r[o])}),t.send(n),{abort:function(){t.abort()}}}var h6=function(){var e=Lt(ze().mark(function t(n,r){var o,i,a,s,l,c,u,d;return ze().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:c=function(){return c=Lt(ze().mark(function m(g){return ze().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.abrupt("return",new Promise(function(b){g.file(function(C){r(C)?(g.fullPath&&!C.webkitRelativePath&&(Object.defineProperties(C,{webkitRelativePath:{writable:!0}}),C.webkitRelativePath=g.fullPath.replace(/^\//,""),Object.defineProperties(C,{webkitRelativePath:{writable:!1}})),b(C)):b(null)})}));case 1:case"end":return x.stop()}},m)})),c.apply(this,arguments)},l=function(m){return c.apply(this,arguments)},s=function(){return s=Lt(ze().mark(function m(g){var y,x,b,C,w;return ze().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:y=g.createReader(),x=[];case 2:return S.next=5,new Promise(function(E){y.readEntries(E,function(){return E([])})});case 5:if(b=S.sent,C=b.length,C){S.next=9;break}return S.abrupt("break",12);case 9:for(w=0;w<C;w++)x.push(b[w]);S.next=2;break;case 12:return S.abrupt("return",x);case 13:case"end":return S.stop()}},m)})),s.apply(this,arguments)},a=function(m){return s.apply(this,arguments)},o=[],i=[],n.forEach(function(v){return i.push(v.webkitGetAsEntry())}),u=function(){var v=Lt(ze().mark(function m(g,y){var x,b;return ze().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(g){w.next=2;break}return w.abrupt("return");case 2:if(g.path=y||"",!g.isFile){w.next=10;break}return w.next=6,l(g);case 6:x=w.sent,x&&o.push(x),w.next=15;break;case 10:if(!g.isDirectory){w.next=15;break}return w.next=13,a(g);case 13:b=w.sent,i.push.apply(i,de(b));case 15:case"end":return w.stop()}},m)}));return function(g,y){return v.apply(this,arguments)}}(),d=0;case 9:if(!(d<i.length)){p.next=15;break}return p.next=12,u(i[d]);case 12:d++,p.next=9;break;case 15:return p.abrupt("return",o);case 16:case"end":return p.stop()}},t)}));return function(n,r){return e.apply(this,arguments)}}(),m6=+new Date,v6=0;function Ld(){return"rc-upload-".concat(m6,"-").concat(++v6)}var y6=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],b6=function(e){hn(n,e);var t=Pn(n);function n(){var r;dt(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),X(we(r),"state",{uid:Ld()}),X(we(r),"reqs",{}),X(we(r),"fileInput",void 0),X(we(r),"_isMounted",void 0),X(we(r),"onChange",function(s){var l=r.props,c=l.accept,u=l.directory,d=s.target.files,f=de(d).filter(function(p){return!u||Fd(p,c)});r.uploadFiles(f),r.reset()}),X(we(r),"onClick",function(s){var l=r.fileInput;if(l){var c=s.target,u=r.props.onClick;if(c&&c.tagName==="BUTTON"){var d=l.parentNode;d.focus(),c.blur()}l.click(),u&&u(s)}}),X(we(r),"onKeyDown",function(s){s.key==="Enter"&&r.onClick(s)}),X(we(r),"onDataTransferFiles",function(){var s=Lt(ze().mark(function l(c,u){var d,f,p,v,m,g,y;return ze().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(d=r.props,f=d.multiple,p=d.accept,v=d.directory,m=de(c.items||[]),g=de(c.files||[]),(g.length>0||m.some(function(C){return C.kind==="file"}))&&(u==null||u()),!v){b.next=11;break}return b.next=7,h6(Array.prototype.slice.call(m),function(C){return Fd(C,r.props.accept)});case 7:g=b.sent,r.uploadFiles(g),b.next=14;break;case 11:y=de(g).filter(function(C){return Fd(C,p)}),f===!1&&(y=g.slice(0,1)),r.uploadFiles(y);case 14:case"end":return b.stop()}},l)}));return function(l,c){return s.apply(this,arguments)}}()),X(we(r),"onFilePaste",function(){var s=Lt(ze().mark(function l(c){var u,d;return ze().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:if(u=r.props.pastable,u){p.next=3;break}return p.abrupt("return");case 3:if(c.type!=="paste"){p.next=6;break}return d=c.clipboardData,p.abrupt("return",r.onDataTransferFiles(d,function(){c.preventDefault()}));case 6:case"end":return p.stop()}},l)}));return function(l){return s.apply(this,arguments)}}()),X(we(r),"onFileDragOver",function(s){s.preventDefault()}),X(we(r),"onFileDrop",function(){var s=Lt(ze().mark(function l(c){var u;return ze().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(c.preventDefault(),c.type!=="drop"){f.next=4;break}return u=c.dataTransfer,f.abrupt("return",r.onDataTransferFiles(u));case 4:case"end":return f.stop()}},l)}));return function(l){return s.apply(this,arguments)}}()),X(we(r),"uploadFiles",function(s){var l=de(s),c=l.map(function(u){return u.uid=Ld(),r.processFile(u,l)});Promise.all(c).then(function(u){var d=r.props.onBatchStart;d==null||d(u.map(function(f){var p=f.origin,v=f.parsedFile;return{file:p,parsedFile:v}})),u.filter(function(f){return f.parsedFile!==null}).forEach(function(f){r.post(f)})})}),X(we(r),"processFile",function(){var s=Lt(ze().mark(function l(c,u){var d,f,p,v,m,g,y,x,b;return ze().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(d=r.props.beforeUpload,f=c,!d){w.next=14;break}return w.prev=3,w.next=6,d(c,u);case 6:f=w.sent,w.next=12;break;case 9:w.prev=9,w.t0=w.catch(3),f=!1;case 12:if(f!==!1){w.next=14;break}return w.abrupt("return",{origin:c,parsedFile:null,action:null,data:null});case 14:if(p=r.props.action,typeof p!="function"){w.next=21;break}return w.next=18,p(c);case 18:v=w.sent,w.next=22;break;case 21:v=p;case 22:if(m=r.props.data,typeof m!="function"){w.next=29;break}return w.next=26,m(c);case 26:g=w.sent,w.next=30;break;case 29:g=m;case 30:return y=(ye(f)==="object"||typeof f=="string")&&f?f:c,y instanceof File?x=y:x=new File([y],c.name,{type:c.type}),b=x,b.uid=c.uid,w.abrupt("return",{origin:c,data:g,parsedFile:b,action:v});case 35:case"end":return w.stop()}},l,null,[[3,9]])}));return function(l,c){return s.apply(this,arguments)}}()),X(we(r),"saveFileInput",function(s){r.fileInput=s}),r}return ft(n,[{key:"componentDidMount",value:function(){this._isMounted=!0;var o=this.props.pastable;o&&document.addEventListener("paste",this.onFilePaste)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort(),document.removeEventListener("paste",this.onFilePaste)}},{key:"componentDidUpdate",value:function(o){var i=this.props.pastable;i&&!o.pastable?document.addEventListener("paste",this.onFilePaste):!i&&o.pastable&&document.removeEventListener("paste",this.onFilePaste)}},{key:"post",value:function(o){var i=this,a=o.data,s=o.origin,l=o.action,c=o.parsedFile;if(this._isMounted){var u=this.props,d=u.onStart,f=u.customRequest,p=u.name,v=u.headers,m=u.withCredentials,g=u.method,y=s.uid,x=f||g6,b={action:l,filename:p,data:a,file:c,headers:v,withCredentials:m,method:g||"post",onProgress:function(w){var $=i.props.onProgress;$==null||$(w,c)},onSuccess:function(w,$){var S=i.props.onSuccess;S==null||S(w,c,$),delete i.reqs[y]},onError:function(w,$){var S=i.props.onError;S==null||S(w,$,c),delete i.reqs[y]}};d(s),this.reqs[y]=x(b)}}},{key:"reset",value:function(){this.setState({uid:Ld()})}},{key:"abort",value:function(o){var i=this.reqs;if(o){var a=o.uid?o.uid:o;i[a]&&i[a].abort&&i[a].abort(),delete i[a]}else Object.keys(i).forEach(function(s){i[s]&&i[s].abort&&i[s].abort(),delete i[s]})}},{key:"render",value:function(){var o=this.props,i=o.component,a=o.prefixCls,s=o.className,l=o.classNames,c=l===void 0?{}:l,u=o.disabled,d=o.id,f=o.name,p=o.style,v=o.styles,m=v===void 0?{}:v,g=o.multiple,y=o.accept,x=o.capture,b=o.children,C=o.directory,w=o.openFileDialogOnClick,$=o.onMouseEnter,S=o.onMouseLeave,E=o.hasControlInside,_=vt(o,y6),P=re(X(X(X({},a,!0),"".concat(a,"-disabled"),u),s,s)),A=C?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},L=u?{}:{onClick:w?this.onClick:function(){},onKeyDown:w?this.onKeyDown:function(){},onMouseEnter:$,onMouseLeave:S,onDrop:this.onFileDrop,onDragOver:this.onFileDragOver,tabIndex:E?void 0:"0"};return T.createElement(i,Ce({},L,{className:P,role:E?void 0:"button",style:p}),T.createElement("input",Ce({},bu(_,{aria:!0,data:!0}),{id:d,name:f,disabled:u,type:"file",ref:this.saveFileInput,onClick:function(O){return O.stopPropagation()},key:this.state.uid,style:Q({display:"none"},m.input),className:c.input,accept:y},A,{multiple:g,onChange:this.onChange},x!=null?{capture:x}:{})),b)}}]),n}(T.Component);function jd(){}var zd=function(e){hn(n,e);var t=Pn(n);function n(){var r;dt(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),X(we(r),"uploader",void 0),X(we(r),"saveUploader",function(s){r.uploader=s}),r}return ft(n,[{key:"abort",value:function(o){this.uploader.abort(o)}},{key:"render",value:function(){return T.createElement(b6,Ce({},this.props,{ref:this.saveUploader}))}}]),n}(T.Component);X(zd,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:jd,onError:jd,onSuccess:jd,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});const C6=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${fe(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:`${fe(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
|
|
269
|
+
`]:Object.assign(Object.assign({},bC(e)),{marginInlineStart:e.marginXXS})}),UB(e)),qB(e)),GB()),{"&-rtl":{direction:"rtl"}})}},uE=Jt("Typography",e=>[XB(e)],()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})),YB=e=>{const{prefixCls:t,"aria-label":n,className:r,style:o,direction:i,maxLength:a,autoSize:l=!0,value:u,onSave:d,onCancel:f,onEnd:g,component:p,enterIcon:m=h.createElement(Fb,null)}=e,b=h.useRef(null),C=h.useRef(!1),y=h.useRef(null),[x,$]=h.useState(u);h.useEffect(()=>{$(u)},[u]),h.useEffect(()=>{var I;if(!((I=b.current)===null||I===void 0)&&I.resizableTextArea){const{textArea:F}=b.current.resizableTextArea;F.focus();const{length:A}=F.value;F.setSelectionRange(A,A)}},[]);const w=({target:I})=>{$(I.value.replace(/[\n\r]/g,""))},E=()=>{C.current=!0},S=()=>{C.current=!1},O=({keyCode:I})=>{C.current||(y.current=I)},_=()=>{d(x.trim())},P=({keyCode:I,ctrlKey:F,altKey:A,metaKey:D,shiftKey:V})=>{y.current!==I||C.current||F||A||D||V||(I===xl.ENTER?(_(),g==null||g()):I===xl.ESC&&f())},T=()=>{_()},[L,z,B]=uE(t),j=ge(t,`${t}-edit-content`,{[`${t}-rtl`]:i==="rtl",[`${t}-${p}`]:!!p},r,z,B);return L(h.createElement("div",{className:j,style:o},h.createElement(ZS,{ref:b,maxLength:a,value:x,onChange:w,onKeyDown:O,onKeyUp:P,onCompositionStart:E,onCompositionEnd:S,onBlur:T,"aria-label":n,rows:1,autoSize:l}),m!==null?wo(m,{className:`${t}-edit-content-confirm`}):null))};var Oh,dE;function KB(){return dE||(dE=1,Oh=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(o){e.addRange(o)}),t&&t.focus()}}),Oh}var Nh,fE;function ZB(){if(fE)return Nh;fE=1;var e=KB(),t={"text/plain":"Text","text/html":"Url",default:"Text"},n="Copy to clipboard: #{key}, Enter";function r(i){var a=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return i.replace(/#{\s*key\s*}/g,a)}function o(i,a){var l,u,d,f,g,p,m=!1;a||(a={}),l=a.debug||!1;try{d=e(),f=document.createRange(),g=document.getSelection(),p=document.createElement("span"),p.textContent=i,p.ariaHidden="true",p.style.all="unset",p.style.position="fixed",p.style.top=0,p.style.clip="rect(0, 0, 0, 0)",p.style.whiteSpace="pre",p.style.webkitUserSelect="text",p.style.MozUserSelect="text",p.style.msUserSelect="text",p.style.userSelect="text",p.addEventListener("copy",function(C){if(C.stopPropagation(),a.format)if(C.preventDefault(),typeof C.clipboardData>"u"){l&&console.warn("unable to use e.clipboardData"),l&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var y=t[a.format]||t.default;window.clipboardData.setData(y,i)}else C.clipboardData.clearData(),C.clipboardData.setData(a.format,i);a.onCopy&&(C.preventDefault(),a.onCopy(C.clipboardData))}),document.body.appendChild(p),f.selectNodeContents(p),g.addRange(f);var b=document.execCommand("copy");if(!b)throw new Error("copy command was unsuccessful");m=!0}catch(C){l&&console.error("unable to copy using execCommand: ",C),l&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(a.format||"text",i),a.onCopy&&a.onCopy(window.clipboardData),m=!0}catch(y){l&&console.error("unable to copy using clipboardData: ",y),l&&console.error("falling back to prompt"),u=r("message"in a?a.message:n),window.prompt(u,i)}}finally{g&&(typeof g.removeRange=="function"?g.removeRange(f):g.removeAllRanges()),p&&document.body.removeChild(p),d()}return m}return Nh=o,Nh}var QB=ZB();const JB=tl(QB);var e7=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(f){try{d(r.next(f))}catch(g){a(g)}}function u(f){try{d(r.throw(f))}catch(g){a(g)}}function d(f){f.done?i(f.value):o(f.value).then(l,u)}d((r=r.apply(e,t||[])).next())})};const t7=({copyConfig:e,children:t})=>{const[n,r]=h.useState(!1),[o,i]=h.useState(!1),a=h.useRef(null),l=()=>{a.current&&clearTimeout(a.current)},u={};e.format&&(u.format=e.format),h.useEffect(()=>l,[]);const d=fn(f=>e7(void 0,void 0,void 0,function*(){var g;f==null||f.preventDefault(),f==null||f.stopPropagation(),i(!0);try{const p=typeof e.text=="function"?yield e.text():e.text;JB(p||dB(t,!0).join("")||"",u),i(!1),r(!0),l(),a.current=setTimeout(()=>{r(!1)},3e3),(g=e.onCopy)===null||g===void 0||g.call(e,f)}catch(p){throw i(!1),p}}));return{copied:n,copyLoading:o,onClick:d}};function Ph(e,t){return h.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const n7=e=>{const t=M.useRef(void 0);return M.useEffect(()=>{t.current=e}),t.current},r7=(e,t,n)=>M.useMemo(()=>e===!0?{title:t??n}:M.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);var o7=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Ih=h.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:o,rootClassName:i,setContentRef:a,children:l,direction:u,style:d}=e,f=o7(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:g,direction:p,className:m,style:b}=lr("typography"),C=u??p,y=a?Xn(t,a):t,x=g("typography",n);process.env.NODE_ENV!=="production"&&$t("Typography").deprecated(!a,"setContentRef","ref");const[$,w,E]=uE(x),S=ge(x,m,{[`${x}-rtl`]:C==="rtl"},o,i,w,E),O=Object.assign(Object.assign({},b),d);return $(h.createElement(r,Object.assign({className:S,style:O,ref:y},f),l))});process.env.NODE_ENV!=="production"&&(Ih.displayName="Typography");function gE(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function Th(e,t,n){return e===!0||e===void 0?t:e||n&&t}function i7(e){const t=document.createElement("em");e.appendChild(t),process.env.NODE_ENV!=="production"&&(t.className="ant-typography-css-ellipsis-content-measure");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 Mh=e=>["string","number"].includes(typeof e),a7=({prefixCls:e,copied:t,locale:n,iconOnly:r,tooltips:o,icon:i,tabIndex:a,onCopy:l,loading:u})=>{const d=gE(o),f=gE(i),{copied:g,copy:p}=n??{},m=t?g:p,b=Th(d[t?1:0],m),C=typeof b=="string"?b:m;return h.createElement(Xo,{title:b},h.createElement("button",{type:"button",className:ge(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:r}),onClick:l,"aria-label":C,tabIndex:a},t?Th(f[1],h.createElement($g,null),!0):Th(f[0],u?h.createElement(Va,null):h.createElement(Ab,null),!0)))},gd=h.forwardRef(({style:e,children:t},n)=>{const r=h.useRef(null);return h.useImperativeHandle(n,()=>({isExceed:()=>{const o=r.current;return o.scrollHeight>o.clientHeight},getHeight:()=>r.current.clientHeight})),h.createElement("span",{"aria-hidden":!0,ref:r,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},e)},t)}),s7=e=>e.reduce((t,n)=>t+(Mh(n)?String(n).length:1),0);function pE(e,t){let n=0;const r=[];for(let o=0;o<e.length;o+=1){if(n===t)return r;const i=e[o],l=Mh(i)?String(i).length:1,u=n+l;if(u>t){const d=t-n;return r.push(String(i).slice(0,d)),r}r.push(i),n=u}return e}const Ah=0,Dh=1,Fh=2,Lh=3,hE=4,pd={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function l7(e){const{enableMeasure:t,width:n,text:r,children:o,rows:i,expanded:a,miscDeps:l,onEllipsis:u}=e,d=h.useMemo(()=>zo(r),[r]),f=h.useMemo(()=>s7(d),[r]),g=h.useMemo(()=>o(d,!1),[r]),[p,m]=h.useState(null),b=h.useRef(null),C=h.useRef(null),y=h.useRef(null),x=h.useRef(null),$=h.useRef(null),[w,E]=h.useState(!1),[S,O]=h.useState(Ah),[_,P]=h.useState(0),[T,L]=h.useState(null);Ft(()=>{O(t&&n&&f?Dh:Ah)},[n,r,i,t,d]),Ft(()=>{var I,F,A,D;if(S===Dh){O(Fh);const V=C.current&&getComputedStyle(C.current).whiteSpace;L(V)}else if(S===Fh){const V=!!(!((I=y.current)===null||I===void 0)&&I.isExceed());O(V?Lh:hE),m(V?[0,f]:null),E(V);const W=((F=y.current)===null||F===void 0?void 0:F.getHeight())||0,H=i===1?0:((A=x.current)===null||A===void 0?void 0:A.getHeight())||0,q=((D=$.current)===null||D===void 0?void 0:D.getHeight())||0,Z=Math.max(W,H+q);P(Z+1),u(V)}},[S]);const z=p?Math.ceil((p[0]+p[1])/2):0;Ft(()=>{var I;const[F,A]=p||[0,0];if(F!==A){const V=(((I=b.current)===null||I===void 0?void 0:I.getHeight())||0)>_;let W=z;A-F===1&&(W=V?F:A),m(V?[F,W]:[W,A])}},[p,z]);const B=h.useMemo(()=>{if(!t)return o(d,!1);if(S!==Lh||!p||p[0]!==p[1]){const I=o(d,!1);return[hE,Ah].includes(S)?I:h.createElement("span",{style:Object.assign(Object.assign({},pd),{WebkitLineClamp:i})},I)}return o(a?d:pE(d,p[0]),w)},[a,S,p,d].concat(Oe(l))),j={width:n,margin:0,padding:0,whiteSpace:T==="nowrap"?"normal":"inherit"};return h.createElement(h.Fragment,null,B,S===Fh&&h.createElement(h.Fragment,null,h.createElement(gd,{style:Object.assign(Object.assign(Object.assign({},j),pd),{WebkitLineClamp:i}),ref:y},g),h.createElement(gd,{style:Object.assign(Object.assign(Object.assign({},j),pd),{WebkitLineClamp:i-1}),ref:x},g),h.createElement(gd,{style:Object.assign(Object.assign(Object.assign({},j),pd),{WebkitLineClamp:1}),ref:$},o([],!0))),S===Lh&&p&&p[0]!==p[1]&&h.createElement(gd,{style:Object.assign(Object.assign({},j),{top:400}),ref:b},o(pE(d,z),!0)),S===Dh&&h.createElement("span",{style:{whiteSpace:"inherit"},ref:C}))}const mE=({enableEllipsis:e,isEllipsis:t,children:n,tooltipProps:r})=>!(r!=null&&r.title)||!e?n:h.createElement(Xo,Object.assign({open:t?void 0:!1},r),n);process.env.NODE_ENV!=="production"&&(mE.displayName="EllipsisTooltip");var c7=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function u7({mark:e,code:t,underline:n,delete:r,strong:o,keyboard:i,italic:a},l){let u=l;function d(f,g){g&&(u=h.createElement(f,{},u))}return d("strong",o),d("u",n),d("del",r),d("code",t),d("mark",e),d("kbd",i),d("i",a),u}const d7="...",vE=["delete","mark","code","underline","strong","keyboard","italic"],hd=h.forwardRef((e,t)=>{var n;const{prefixCls:r,className:o,style:i,type:a,disabled:l,children:u,ellipsis:d,editable:f,copyable:g,component:p,title:m}=e,b=c7(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:C,direction:y}=h.useContext(et),[x]=Ei("Text"),$=h.useRef(null),w=h.useRef(null),E=C("typography",r),S=jn(b,vE),[O,_]=Ph(f),[P,T]=Or(!1,{value:_.editing}),{triggerType:L=["icon"]}=_,z=Ce=>{var Se;Ce&&((Se=_.onStart)===null||Se===void 0||Se.call(_)),T(Ce)},B=n7(P);Ft(()=>{var Ce;!P&&B&&((Ce=w.current)===null||Ce===void 0||Ce.focus())},[P]);const j=Ce=>{Ce==null||Ce.preventDefault(),z(!0)},I=Ce=>{var Se;(Se=_.onChange)===null||Se===void 0||Se.call(_,Ce),z(!1)},F=()=>{var Ce;(Ce=_.onCancel)===null||Ce===void 0||Ce.call(_),z(!1)},[A,D]=Ph(g),{copied:V,copyLoading:W,onClick:H}=t7({copyConfig:D,children:u}),[q,Z]=h.useState(!1),[Y,G]=h.useState(!1),[K,te]=h.useState(!1),[ie,ee]=h.useState(!1),[ae,de]=h.useState(!0),[ue,J]=Ph(d,{expandable:!1,symbol:Ce=>Ce?x==null?void 0:x.collapse:x==null?void 0:x.expand}),[fe,oe]=Or(J.defaultExpanded||!1,{value:J.expanded}),he=ue&&(!fe||J.expandable==="collapsible"),{rows:me=1}=J,_e=h.useMemo(()=>he&&(J.suffix!==void 0||J.onEllipsis||J.expandable||O||A),[he,J,O,A]);Ft(()=>{ue&&!_e&&(Z(uw("webkitLineClamp")),G(uw("textOverflow")))},[_e,ue]);const[Re,Ie]=h.useState(he),Ge=h.useMemo(()=>_e?!1:me===1?Y:q,[_e,Y,q]);Ft(()=>{Ie(Ge&&he)},[Ge,he]);const De=he&&(Re?ie:K),We=he&&me===1&&Re,Te=he&&me>1&&Re,Ne=(Ce,Se)=>{var ke;oe(Se.expanded),(ke=J.onExpand)===null||ke===void 0||ke.call(J,Ce,Se)},[Be,Ze]=h.useState(0),pt=({offsetWidth:Ce})=>{Ze(Ce)},tt=Ce=>{var Se;te(Ce),K!==Ce&&((Se=J.onEllipsis)===null||Se===void 0||Se.call(J,Ce))};h.useEffect(()=>{const Ce=$.current;if(ue&&Re&&Ce){const Se=i7(Ce);ie!==Se&&ee(Se)}},[ue,Re,u,Te,ae,Be]),h.useEffect(()=>{const Ce=$.current;if(typeof IntersectionObserver>"u"||!Ce||!Re||!he)return;const Se=new IntersectionObserver(()=>{de(!!Ce.offsetParent)});return Se.observe(Ce),()=>{Se.disconnect()}},[Re,he]);const st=r7(J.tooltip,_.text,u),vt=h.useMemo(()=>{if(!(!ue||Re))return[_.text,u,m,st.title].find(Mh)},[ue,Re,m,st.title,De]);if(P)return h.createElement(YB,{value:(n=_.text)!==null&&n!==void 0?n:typeof u=="string"?u:"",onSave:I,onCancel:F,onEnd:_.onEnd,prefixCls:E,className:o,style:i,direction:y,component:p,maxLength:_.maxLength,autoSize:_.autoSize,enterIcon:_.enterIcon});const nt=()=>{const{expandable:Ce,symbol:Se}=J;return Ce?h.createElement("button",{type:"button",key:"expand",className:`${E}-${fe?"collapse":"expand"}`,onClick:ke=>Ne(ke,{expanded:!fe}),"aria-label":fe?x.collapse:x==null?void 0:x.expand},typeof Se=="function"?Se(fe):Se):null},rt=()=>{if(!O)return;const{icon:Ce,tooltip:Se,tabIndex:ke}=_,It=zo(Se)[0]||(x==null?void 0:x.edit),pn=typeof It=="string"?It:"";return L.includes("icon")?h.createElement(Xo,{key:"edit",title:Se===!1?"":It},h.createElement("button",{type:"button",ref:w,className:`${E}-edit`,onClick:j,"aria-label":pn,tabIndex:ke},Ce||h.createElement(Og,{role:"button"}))):null},Ke=()=>A?h.createElement(a7,Object.assign({key:"copy"},D,{prefixCls:E,copied:V,locale:x,onCopy:H,loading:W,iconOnly:u==null})):null,$e=Ce=>[Ce&&nt(),rt(),Ke()],Fe=Ce=>[Ce&&!fe&&h.createElement("span",{"aria-hidden":!0,key:"ellipsis"},d7),J.suffix,$e(Ce)];return h.createElement(Ua,{onResize:pt,disabled:!he},Ce=>h.createElement(mE,{tooltipProps:st,enableEllipsis:he,isEllipsis:De},h.createElement(Ih,Object.assign({className:ge({[`${E}-${a}`]:a,[`${E}-disabled`]:l,[`${E}-ellipsis`]:ue,[`${E}-ellipsis-single-line`]:We,[`${E}-ellipsis-multiple-line`]:Te},o),prefixCls:r,style:Object.assign(Object.assign({},i),{WebkitLineClamp:Te?me:void 0}),component:p,ref:Xn(Ce,$,t),direction:y,onClick:L.includes("text")?j:void 0,"aria-label":vt==null?void 0:vt.toString(),title:m},S),h.createElement(l7,{enableMeasure:he&&!Re,text:u,rows:me,width:Be,onEllipsis:tt,expanded:fe,miscDeps:[V,fe,W,O,A,x].concat(Oe(vE.map(Se=>e[Se])))},(Se,ke)=>u7(e,h.createElement(h.Fragment,null,Se.length>0&&ke&&!fe&&vt?h.createElement("span",{key:"show-content","aria-hidden":!0},Se):Se,Fe(ke)))))))});var f7=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const g7=h.forwardRef((e,t)=>{var{ellipsis:n,rel:r}=e,o=f7(e,["ellipsis","rel"]);if(process.env.NODE_ENV!=="production"){const a=$t("Typography.Link");process.env.NODE_ENV!=="production"&&a(typeof n!="object","usage","`ellipsis` only supports boolean value.")}const i=Object.assign(Object.assign({},o),{rel:r===void 0&&o.target==="_blank"?"noopener noreferrer":r});return delete i.navigate,h.createElement(hd,Object.assign({},i,{ref:t,ellipsis:!!n,component:"a"}))}),p7=h.forwardRef((e,t)=>h.createElement(hd,Object.assign({ref:t},e,{component:"div"})));var h7=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const m7=(e,t)=>{var{ellipsis:n}=e,r=h7(e,["ellipsis"]);const o=h.useMemo(()=>n&&typeof n=="object"?jn(n,["expandable","rows"]):n,[n]);if(process.env.NODE_ENV!=="production"){const i=$t("Typography.Text");process.env.NODE_ENV!=="production"&&i(typeof n!="object"||!n||!("expandable"in n)&&!("rows"in n),"usage","`ellipsis` do not support `expandable` or `rows` props.")}return h.createElement(hd,Object.assign({ref:t},r,{ellipsis:o,component:"span"}))},v7=h.forwardRef(m7);var y7=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const yE=[1,2,3,4,5],b7=h.forwardRef((e,t)=>{const{level:n=1}=e,r=y7(e,["level"]);if(process.env.NODE_ENV!=="production"){const i=$t("Typography.Title");process.env.NODE_ENV!=="production"&&i(yE.includes(n),"usage","Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version.")}const o=yE.includes(n)?`h${n}`:"h1";return h.createElement(hd,Object.assign({ref:t},r,{component:o}))}),hs=Ih;hs.Text=v7,hs.Link=g7,hs.Title=b7,hs.Paragraph=p7;const Rh=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=e.type||"",i=o.replace(/\/.*$/,"");return n.some(function(a){var l=a.trim();if(/^\*(\/\*)?$/.test(a))return!0;if(l.charAt(0)==="."){var u=r.toLowerCase(),d=l.toLowerCase(),f=[d];return(d===".jpg"||d===".jpeg")&&(f=[".jpg",".jpeg"]),f.some(function(g){return u.endsWith(g)})}return/\/\*$/.test(l)?i===l.replace(/\/.*$/,""):o===l?!0:/^\w+$/.test(l)?(zt(!1,"Upload takes an invalidate 'accept' type '".concat(l,"'.Skip for check.")),!0):!1})}return!0};function C7(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 bE(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function x7(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(i){i.total>0&&(i.percent=i.loaded/i.total*100),e.onProgress(i)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(o){var i=e.data[o];if(Array.isArray(i)){i.forEach(function(a){n.append("".concat(o,"[]"),a)});return}n.append(o,i)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(i){e.onError(i)},t.onload=function(){return t.status<200||t.status>=300?e.onError(C7(e,t),bE(t)):e.onSuccess(bE(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(o){r[o]!==null&&t.setRequestHeader(o,r[o])}),t.send(n),{abort:function(){t.abort()}}}var w7=function(){var e=zn(bt().mark(function t(n,r){var o,i,a,l,u,d,f,g;return bt().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:d=function(){return d=zn(bt().mark(function C(y){return bt().wrap(function($){for(;;)switch($.prev=$.next){case 0:return $.abrupt("return",new Promise(function(w){y.file(function(E){r(E)?(y.fullPath&&!E.webkitRelativePath&&(Object.defineProperties(E,{webkitRelativePath:{writable:!0}}),E.webkitRelativePath=y.fullPath.replace(/^\//,""),Object.defineProperties(E,{webkitRelativePath:{writable:!1}})),w(E)):w(null)})}));case 1:case"end":return $.stop()}},C)})),d.apply(this,arguments)},u=function(C){return d.apply(this,arguments)},l=function(){return l=zn(bt().mark(function C(y){var x,$,w,E,S;return bt().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:x=y.createReader(),$=[];case 2:return _.next=5,new Promise(function(P){x.readEntries(P,function(){return P([])})});case 5:if(w=_.sent,E=w.length,E){_.next=9;break}return _.abrupt("break",12);case 9:for(S=0;S<E;S++)$.push(w[S]);_.next=2;break;case 12:return _.abrupt("return",$);case 13:case"end":return _.stop()}},C)})),l.apply(this,arguments)},a=function(C){return l.apply(this,arguments)},o=[],i=[],n.forEach(function(b){return i.push(b.webkitGetAsEntry())}),f=function(){var b=zn(bt().mark(function C(y,x){var $,w;return bt().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:if(y){S.next=2;break}return S.abrupt("return");case 2:if(y.path=x||"",!y.isFile){S.next=10;break}return S.next=6,u(y);case 6:$=S.sent,$&&o.push($),S.next=15;break;case 10:if(!y.isDirectory){S.next=15;break}return S.next=13,a(y);case 13:w=S.sent,i.push.apply(i,Oe(w));case 15:case"end":return S.stop()}},C)}));return function(y,x){return b.apply(this,arguments)}}(),g=0;case 9:if(!(g<i.length)){m.next=15;break}return m.next=12,f(i[g]);case 12:g++,m.next=9;break;case 15:return m.abrupt("return",o);case 16:case"end":return m.stop()}},t)}));return function(n,r){return e.apply(this,arguments)}}(),S7=+new Date,E7=0;function zh(){return"rc-upload-".concat(S7,"-").concat(++E7)}var $7=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],_7=function(e){Yr(n,e);var t=yo(n);function n(){var r;Zt(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),re(He(r),"state",{uid:zh()}),re(He(r),"reqs",{}),re(He(r),"fileInput",void 0),re(He(r),"_isMounted",void 0),re(He(r),"onChange",function(l){var u=r.props,d=u.accept,f=u.directory,g=l.target.files,p=Oe(g).filter(function(m){return!f||Rh(m,d)});r.uploadFiles(p),r.reset()}),re(He(r),"onClick",function(l){var u=r.fileInput;if(u){var d=l.target,f=r.props.onClick;if(d&&d.tagName==="BUTTON"){var g=u.parentNode;g.focus(),d.blur()}u.click(),f&&f(l)}}),re(He(r),"onKeyDown",function(l){l.key==="Enter"&&r.onClick(l)}),re(He(r),"onDataTransferFiles",function(){var l=zn(bt().mark(function u(d,f){var g,p,m,b,C,y,x;return bt().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(g=r.props,p=g.multiple,m=g.accept,b=g.directory,C=Oe(d.items||[]),y=Oe(d.files||[]),(y.length>0||C.some(function(E){return E.kind==="file"}))&&(f==null||f()),!b){w.next=11;break}return w.next=7,w7(Array.prototype.slice.call(C),function(E){return Rh(E,r.props.accept)});case 7:y=w.sent,r.uploadFiles(y),w.next=14;break;case 11:x=Oe(y).filter(function(E){return Rh(E,m)}),p===!1&&(x=y.slice(0,1)),r.uploadFiles(x);case 14:case"end":return w.stop()}},u)}));return function(u,d){return l.apply(this,arguments)}}()),re(He(r),"onFilePaste",function(){var l=zn(bt().mark(function u(d){var f,g;return bt().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(f=r.props.pastable,f){m.next=3;break}return m.abrupt("return");case 3:if(d.type!=="paste"){m.next=6;break}return g=d.clipboardData,m.abrupt("return",r.onDataTransferFiles(g,function(){d.preventDefault()}));case 6:case"end":return m.stop()}},u)}));return function(u){return l.apply(this,arguments)}}()),re(He(r),"onFileDragOver",function(l){l.preventDefault()}),re(He(r),"onFileDrop",function(){var l=zn(bt().mark(function u(d){var f;return bt().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:if(d.preventDefault(),d.type!=="drop"){p.next=4;break}return f=d.dataTransfer,p.abrupt("return",r.onDataTransferFiles(f));case 4:case"end":return p.stop()}},u)}));return function(u){return l.apply(this,arguments)}}()),re(He(r),"uploadFiles",function(l){var u=Oe(l),d=u.map(function(f){return f.uid=zh(),r.processFile(f,u)});Promise.all(d).then(function(f){var g=r.props.onBatchStart;g==null||g(f.map(function(p){var m=p.origin,b=p.parsedFile;return{file:m,parsedFile:b}})),f.filter(function(p){return p.parsedFile!==null}).forEach(function(p){r.post(p)})})}),re(He(r),"processFile",function(){var l=zn(bt().mark(function u(d,f){var g,p,m,b,C,y,x,$,w;return bt().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:if(g=r.props.beforeUpload,p=d,!g){S.next=14;break}return S.prev=3,S.next=6,g(d,f);case 6:p=S.sent,S.next=12;break;case 9:S.prev=9,S.t0=S.catch(3),p=!1;case 12:if(p!==!1){S.next=14;break}return S.abrupt("return",{origin:d,parsedFile:null,action:null,data:null});case 14:if(m=r.props.action,typeof m!="function"){S.next=21;break}return S.next=18,m(d);case 18:b=S.sent,S.next=22;break;case 21:b=m;case 22:if(C=r.props.data,typeof C!="function"){S.next=29;break}return S.next=26,C(d);case 26:y=S.sent,S.next=30;break;case 29:y=C;case 30:return x=(je(p)==="object"||typeof p=="string")&&p?p:d,x instanceof File?$=x:$=new File([x],d.name,{type:d.type}),w=$,w.uid=d.uid,S.abrupt("return",{origin:d,data:y,parsedFile:w,action:b});case 35:case"end":return S.stop()}},u,null,[[3,9]])}));return function(u,d){return l.apply(this,arguments)}}()),re(He(r),"saveFileInput",function(l){r.fileInput=l}),r}return Qt(n,[{key:"componentDidMount",value:function(){this._isMounted=!0;var o=this.props.pastable;o&&document.addEventListener("paste",this.onFilePaste)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort(),document.removeEventListener("paste",this.onFilePaste)}},{key:"componentDidUpdate",value:function(o){var i=this.props.pastable;i&&!o.pastable?document.addEventListener("paste",this.onFilePaste):!i&&o.pastable&&document.removeEventListener("paste",this.onFilePaste)}},{key:"post",value:function(o){var i=this,a=o.data,l=o.origin,u=o.action,d=o.parsedFile;if(this._isMounted){var f=this.props,g=f.onStart,p=f.customRequest,m=f.name,b=f.headers,C=f.withCredentials,y=f.method,x=l.uid,$=p||x7,w={action:u,filename:m,data:a,file:d,headers:b,withCredentials:C,method:y||"post",onProgress:function(S){var O=i.props.onProgress;O==null||O(S,d)},onSuccess:function(S,O){var _=i.props.onSuccess;_==null||_(S,d,O),delete i.reqs[x]},onError:function(S,O){var _=i.props.onError;_==null||_(S,O,d),delete i.reqs[x]}};g(l),this.reqs[x]=$(w)}}},{key:"reset",value:function(){this.setState({uid:zh()})}},{key:"abort",value:function(o){var i=this.reqs;if(o){var a=o.uid?o.uid:o;i[a]&&i[a].abort&&i[a].abort(),delete i[a]}else Object.keys(i).forEach(function(l){i[l]&&i[l].abort&&i[l].abort(),delete i[l]})}},{key:"render",value:function(){var o=this.props,i=o.component,a=o.prefixCls,l=o.className,u=o.classNames,d=u===void 0?{}:u,f=o.disabled,g=o.id,p=o.name,m=o.style,b=o.styles,C=b===void 0?{}:b,y=o.multiple,x=o.accept,$=o.capture,w=o.children,E=o.directory,S=o.openFileDialogOnClick,O=o.onMouseEnter,_=o.onMouseLeave,P=o.hasControlInside,T=sn(o,$7),L=ge(re(re(re({},a,!0),"".concat(a,"-disabled"),f),l,l)),z=E?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},B=f?{}:{onClick:S?this.onClick:function(){},onKeyDown:S?this.onKeyDown:function(){},onMouseEnter:O,onMouseLeave:_,onDrop:this.onFileDrop,onDragOver:this.onFileDragOver,tabIndex:P?void 0:"0"};return M.createElement(i,Le({},B,{className:L,role:P?void 0:"button",style:m}),M.createElement("input",Le({},ts(T,{aria:!0,data:!0}),{id:g,name:p,disabled:f,type:"file",ref:this.saveFileInput,onClick:function(I){return I.stopPropagation()},key:this.state.uid,style:le({display:"none"},C.input),className:d.input,accept:x},z,{multiple:y,onChange:this.onChange},$!=null?{capture:$}:{})),w)}}]),n}(M.Component);function jh(){}var Bh=function(e){Yr(n,e);var t=yo(n);function n(){var r;Zt(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),re(He(r),"uploader",void 0),re(He(r),"saveUploader",function(l){r.uploader=l}),r}return Qt(n,[{key:"abort",value:function(o){this.uploader.abort(o)}},{key:"render",value:function(){return M.createElement(_7,Le({},this.props,{ref:this.saveUploader}))}}]),n}(M.Component);re(Bh,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:jh,onError:jh,onSuccess:jh,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});const O7=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${we(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:`${we(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
|
|
260
270
|
&:not(${t}-disabled):hover,
|
|
261
271
|
&-hover:not(${t}-disabled)
|
|
262
|
-
`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${
|
|
272
|
+
`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${we(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n},
|
|
263
273
|
p${t}-text,
|
|
264
274
|
p${t}-hint
|
|
265
|
-
`]:{color:e.colorTextDisabled}}}}}},
|
|
266
|
-
${
|
|
267
|
-
&.picture ${
|
|
268
|
-
`]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorIcon,fontSize:r},[`${a}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:i(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${a}:hover ${
|
|
275
|
+
`]:{color:e.colorTextDisabled}}}}}},N7=e=>{const{componentCls:t,iconCls:n,fontSize:r,lineHeight:o,calc:i}=e,a=`${t}-list-item`,l=`${a}-actions`,u=`${a}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},_u()),{lineHeight:e.lineHeight,[a]:{position:"relative",height:i(e.lineHeight).mul(r).equal(),marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${a}-name`]:Object.assign(Object.assign({},op),{padding:`0 ${we(e.paddingXS)}`,lineHeight:o,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[l]:{whiteSpace:"nowrap",[u]:{opacity:0},[n]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`
|
|
276
|
+
${u}:focus-visible,
|
|
277
|
+
&.picture ${u}
|
|
278
|
+
`]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorIcon,fontSize:r},[`${a}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:i(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${a}:hover ${u}`]:{opacity:1},[`${a}-error`]:{color:e.colorError,[`${a}-name, ${t}-icon ${n}`]:{color:e.colorError},[l]:{[`${n}, ${n}: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:'""'}}})}}},P7=e=>{const{componentCls:t}=e,n=new bn("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new bn("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),o=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${o}-appear, ${o}-enter, ${o}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${o}-appear, ${o}-enter`]:{animationName:n},[`${o}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:bx(e)},n,r]},I7=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:o,calc:i}=e,a=`${t}-list`,l=`${a}-item`;return{[`${t}-wrapper`]:{[`
|
|
269
279
|
${a}${a}-picture,
|
|
270
280
|
${a}${a}-picture-card,
|
|
271
281
|
${a}${a}-picture-circle
|
|
272
|
-
`]:{[
|
|
282
|
+
`]:{[l]:{position:"relative",height:i(r).add(i(e.lineWidth).mul(2)).add(i(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${we(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${l}-thumbnail`]:Object.assign(Object.assign({},op),{width:r,height:r,lineHeight:we(i(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"}}),[`${l}-progress`]:{bottom:o,width:`calc(100% - ${we(i(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:i(r).add(e.paddingXS).equal()}},[`${l}-error`]:{borderColor:e.colorError,[`${l}-thumbnail ${n}`]:{[`svg path[fill='${Ra[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${Ra.primary}']`]:{fill:e.colorError}}},[`${l}-uploading`]:{borderStyle:"dashed",[`${l}-name`]:{marginBottom:o}}},[`${a}${a}-picture-circle ${l}`]:{[`&, &::before, ${l}-thumbnail`]:{borderRadius:"50%"}}}}},T7=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:o,calc:i}=e,a=`${t}-list`,l=`${a}-item`,u=e.uploadPicCardSize;return{[`
|
|
273
283
|
${t}-wrapper${t}-picture-card-wrapper,
|
|
274
284
|
${t}-wrapper${t}-picture-circle-wrapper
|
|
275
|
-
`]:Object.assign(Object.assign({},
|
|
285
|
+
`]:Object.assign(Object.assign({},_u()),{display:"block",[`${t}${t}-select`]:{width:u,height:u,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${we(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}},[`${a}${a}-picture-card, ${a}${a}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${a}-item-container`]:{display:"inline-block",width:u,height:u,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[l]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${we(i(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${we(i(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${l}:hover`]:{[`&::before, ${l}-actions`]:{opacity:1}},[`${l}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`
|
|
276
286
|
${n}-eye,
|
|
277
287
|
${n}-download,
|
|
278
288
|
${n}-delete
|
|
279
|
-
`]:{zIndex:10,width:r,margin:`0 ${fe(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:o,"&:hover":{color:o},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% - ${fe(i(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% - ${fe(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},$6=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},O6=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},Yt(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},_6=Et("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:o,calc:i}=e,a=st(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(n).div(2)).add(r).equal(),uploadPicCardSize:i(o).mul(2.55).equal()});return[O6(a),C6(a),S6(a),E6(a),w6(a),x6(a),$6(a),Jv(a)]},e=>({actionsColor:e.colorIcon}));function ol(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 il(e,t){const n=de(t),r=n.findIndex(({uid:o})=>o===e.uid);return r===-1?n.push(e):n[r]=e,n}function Rd(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function N6(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(o=>o[n]!==e[n]);return r.length===t.length?null:r}const P6=(e="")=>{const t=e.split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},Mb=e=>e.indexOf("image/")===0,T6=e=>{if(e.type&&!e.thumbUrl)return Mb(e.type);const t=e.thumbUrl||e.url||"",n=P6(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)},Nr=200;function I6(e){return new Promise(t=>{if(!e.type||!Mb(e.type)){t("");return}const n=document.createElement("canvas");n.width=Nr,n.height=Nr,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${Nr}px; height: ${Nr}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),o=new Image;if(o.onload=()=>{const{width:i,height:a}=o;let s=Nr,l=Nr,c=0,u=0;i>a?(l=a*(Nr/i),u=-(l-s)/2):(s=i*(Nr/a),c=-(s-l)/2),r.drawImage(o,c,u,s,l);const d=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(o.src),t(d)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const i=new FileReader;i.onload=()=>{i.result&&typeof i.result=="string"&&(o.src=i.result)},i.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const i=new FileReader;i.onload=()=>{i.result&&t(i.result)},i.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)})}const M6=h.forwardRef(({prefixCls:e,className:t,style:n,locale:r,listType:o,file:i,items:a,progress:s,iconRender:l,actionIconRender:c,itemRender:u,isImgUrl:d,showPreviewIcon:f,showRemoveIcon:p,showDownloadIcon:v,previewIcon:m,removeIcon:g,downloadIcon:y,extra:x,onPreview:b,onDownload:C,onClose:w},$)=>{var S,E;const{status:_}=i,[P,A]=h.useState(_);h.useEffect(()=>{_!=="removed"&&A(_)},[_]);const[L,D]=h.useState(!1);h.useEffect(()=>{const q=setTimeout(()=>{D(!0)},300);return()=>{clearTimeout(q)}},[]);const O=l(i);let M=h.createElement("div",{className:`${e}-icon`},O);if(o==="picture"||o==="picture-card"||o==="picture-circle")if(P==="uploading"||!i.thumbUrl&&!i.url){const q=re(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:P!=="uploading"});M=h.createElement("div",{className:q},O)}else{const q=d!=null&&d(i)?h.createElement("img",{src:i.thumbUrl||i.url,alt:i.name,className:`${e}-list-item-image`,crossOrigin:i.crossOrigin}):O,te=re(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:d&&!d(i)});M=h.createElement("a",{className:te,onClick:Y=>b(i,Y),href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer"},q)}const N=re(`${e}-list-item`,`${e}-list-item-${P}`),I=typeof i.linkProps=="string"?JSON.parse(i.linkProps):i.linkProps,j=(typeof p=="function"?p(i):p)?c((typeof g=="function"?g(i):g)||h.createElement(Sd,null),()=>w(i),e,r.removeFile,!0):null,z=(typeof v=="function"?v(i):v)&&P==="done"?c((typeof y=="function"?y(i):y)||h.createElement(pb,null),()=>C(i),e,r.downloadFile):null,F=o!=="picture-card"&&o!=="picture-circle"&&h.createElement("span",{key:"download-delete",className:re(`${e}-list-item-actions`,{picture:o==="picture"})},z,j),R=typeof x=="function"?x(i):x,W=R&&h.createElement("span",{className:`${e}-list-item-extra`},R),H=re(`${e}-list-item-name`),V=i.url?h.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:H,title:i.name},I,{href:i.url,onClick:q=>b(i,q)}),i.name,W):h.createElement("span",{key:"view",className:H,onClick:q=>b(i,q),title:i.name},i.name,W),B=(typeof f=="function"?f(i):f)&&(i.url||i.thumbUrl)?h.createElement("a",{href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:q=>b(i,q),title:r.previewFile},typeof m=="function"?m(i):m||h.createElement(vd,null)):null,U=(o==="picture-card"||o==="picture-circle")&&P!=="uploading"&&h.createElement("span",{className:`${e}-list-item-actions`},B,P==="done"&&z,j),{getPrefixCls:K}=h.useContext(Be),G=K(),Z=h.createElement("div",{className:N},M,V,F,U,L&&h.createElement(Dn,{motionName:`${G}-fade`,visible:P==="uploading",motionDeadline:2e3},({className:q})=>{const te="percent"in i?h.createElement(lb,Object.assign({type:"line",percent:i.percent,"aria-label":i["aria-label"],"aria-labelledby":i["aria-labelledby"]},s)):null;return h.createElement("div",{className:re(`${e}-list-item-progress`,q)},te)})),J=i.response&&typeof i.response=="string"?i.response:((S=i.error)===null||S===void 0?void 0:S.statusText)||((E=i.error)===null||E===void 0?void 0:E.message)||r.uploadError,ee=P==="error"?h.createElement($r,{title:J,getPopupContainer:q=>q.parentNode},Z):Z;return h.createElement("div",{className:re(`${e}-list-item-container`,t),style:n,ref:$},u?u(ee,i,a,{download:C.bind(null,i),preview:b.bind(null,i),remove:w.bind(null,i)}):ee)}),A6=(e,t)=>{const{listType:n="text",previewFile:r=I6,onPreview:o,onDownload:i,onRemove:a,locale:s,iconRender:l,isImageUrl:c=T6,prefixCls:u,items:d=[],showPreviewIcon:f=!0,showRemoveIcon:p=!0,showDownloadIcon:v=!1,removeIcon:m,previewIcon:g,downloadIcon:y,extra:x,progress:b={size:[-1,2],showInfo:!1},appendAction:C,appendActionVisible:w=!0,itemRender:$,disabled:S}=e,E=G0(),[_,P]=h.useState(!1),A=["picture-card","picture-circle"].includes(n);h.useEffect(()=>{n.startsWith("picture")&&(d||[]).forEach(H=>{!(H.originFileObj instanceof File||H.originFileObj instanceof Blob)||H.thumbUrl!==void 0||(H.thumbUrl="",r==null||r(H.originFileObj).then(V=>{H.thumbUrl=V||"",E()}))})},[n,d,r]),h.useEffect(()=>{P(!0)},[]);const L=(H,V)=>{if(o)return V==null||V.preventDefault(),o(H)},D=H=>{typeof i=="function"?i(H):H.url&&window.open(H.url)},O=H=>{a==null||a(H)},M=H=>{if(l)return l(H,n);const V=H.status==="uploading";if(n.startsWith("picture")){const B=n==="picture"?h.createElement(Ao,null):s.uploading,U=c!=null&&c(H)?h.createElement(bb,null):h.createElement(hb,null);return V?B:U}return V?h.createElement(Ao,null):h.createElement(vb,null)},N=(H,V,B,U,K)=>{const G={type:"text",size:"small",title:U,onClick:Z=>{var J,ee;V(),h.isValidElement(H)&&((ee=(J=H.props).onClick)===null||ee===void 0||ee.call(J,Z))},className:`${B}-list-item-action`,disabled:K?S:!1};return h.isValidElement(H)?h.createElement(Tt,Object.assign({},G,{icon:nr(H,Object.assign(Object.assign({},H.props),{onClick:()=>{}}))})):h.createElement(Tt,Object.assign({},G),h.createElement("span",null,H))};h.useImperativeHandle(t,()=>({handlePreview:L,handleDownload:D}));const{getPrefixCls:I}=h.useContext(Be),j=I("upload",u),z=I(),F=re(`${j}-list`,`${j}-list-${n}`),R=h.useMemo(()=>bn(Nu(z),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[z]),W=Object.assign(Object.assign({},A?{}:R),{motionDeadline:2e3,motionName:`${j}-${A?"animate-inline":"animate"}`,keys:de(d.map(H=>({key:H.uid,file:H}))),motionAppear:_});return h.createElement("div",{className:F},h.createElement(hv,Object.assign({},W,{component:!1}),({key:H,file:V,className:B,style:U})=>h.createElement(M6,{key:H,locale:s,prefixCls:j,className:B,style:U,file:V,items:d,progress:b,listType:n,isImgUrl:c,showPreviewIcon:f,showRemoveIcon:p,showDownloadIcon:v,removeIcon:m,previewIcon:g,downloadIcon:y,extra:x,iconRender:M,actionIconRender:N,itemRender:$,onPreview:L,onDownload:D,onClose:O})),C&&h.createElement(Dn,Object.assign({},W,{visible:w,forceRender:!0}),({className:H,style:V})=>nr(C,B=>({className:re(B.className,H),style:Object.assign(Object.assign(Object.assign({},V),{pointerEvents:H?"none":void 0}),B.style)}))))},Ab=h.forwardRef(A6);process.env.NODE_ENV!=="production"&&(Ab.displayName="UploadList");var D6=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(u){try{c(r.next(u))}catch(d){a(d)}}function l(u){try{c(r.throw(u))}catch(d){a(d)}}function c(u){u.done?i(u.value):o(u.value).then(s,l)}c((r=r.apply(e,t||[])).next())})};const Yi=`__LIST_IGNORE_${Date.now()}__`,F6=(e,t)=>{const{fileList:n,defaultFileList:r,onRemove:o,showUploadList:i=!0,listType:a="text",onPreview:s,onDownload:l,onChange:c,onDrop:u,previewFile:d,disabled:f,locale:p,iconRender:v,isImageUrl:m,progress:g,prefixCls:y,className:x,type:b="select",children:C,style:w,itemRender:$,maxCount:S,data:E={},multiple:_=!1,hasControlInside:P=!0,action:A="",accept:L="",supportServerRender:D=!0,rootClassName:O}=e,M=h.useContext(Mn),N=f??M,[I,j]=An(r||[],{value:n,postState:le=>le??[]}),[z,F]=h.useState("drop"),R=h.useRef(null),W=h.useRef(null);if(process.env.NODE_ENV!=="production"){const le=Ze("Upload");process.env.NODE_ENV!=="production"&&le("fileList"in e||!("value"in e),"usage","`value` is not a valid prop, do you mean `fileList`?"),le.deprecated(!("transformFile"in e),"transformFile","beforeUpload")}h.useMemo(()=>{const le=Date.now();(n||[]).forEach((me,ie)=>{!me.uid&&!Object.isFrozen(me)&&(me.uid=`__AUTO__${le}_${ie}__`)})},[n]);const H=(le,me,ie)=>{let se=de(me),Se=!1;S===1?se=se.slice(-1):S&&(Se=se.length>S,se=se.slice(0,S)),hr.flushSync(()=>{j(se)});const Qe={file:le,fileList:se};ie&&(Qe.event=ie),(!Se||le.status==="removed"||se.some(Ot=>Ot.uid===le.uid))&&hr.flushSync(()=>{c==null||c(Qe)})},V=(le,me)=>D6(void 0,void 0,void 0,function*(){const{beforeUpload:ie,transformFile:se}=e;let Se=le;if(ie){const Qe=yield ie(le,me);if(Qe===!1)return!1;if(delete le[Yi],Qe===Yi)return Object.defineProperty(le,Yi,{value:!0,configurable:!0}),!1;typeof Qe=="object"&&Qe&&(Se=Qe)}return se&&(Se=yield se(Se)),Se}),B=le=>{const me=le.filter(Se=>!Se.file[Yi]);if(!me.length)return;const ie=me.map(Se=>ol(Se.file));let se=de(I);ie.forEach(Se=>{se=il(Se,se)}),ie.forEach((Se,Qe)=>{let Ot=Se;if(me[Qe].parsedFile)Se.status="uploading";else{const{originFileObj:jt}=Se;let zt;try{zt=new File([jt],jt.name,{type:jt.type})}catch{zt=new Blob([jt],{type:jt.type}),zt.name=jt.name,zt.lastModifiedDate=new Date,zt.lastModified=new Date().getTime()}zt.uid=Se.uid,Ot=zt}H(Ot,se)})},U=(le,me,ie)=>{try{typeof le=="string"&&(le=JSON.parse(le))}catch{}if(!Rd(me,I))return;const se=ol(me);se.status="done",se.percent=100,se.response=le,se.xhr=ie;const Se=il(se,I);H(se,Se)},K=(le,me)=>{if(!Rd(me,I))return;const ie=ol(me);ie.status="uploading",ie.percent=le.percent;const se=il(ie,I);H(ie,se,le)},G=(le,me,ie)=>{if(!Rd(ie,I))return;const se=ol(ie);se.error=le,se.response=me,se.status="error";const Se=il(se,I);H(se,Se)},Z=le=>{let me;Promise.resolve(typeof o=="function"?o(le):o).then(ie=>{var se;if(ie===!1)return;const Se=N6(le,I);Se&&(me=Object.assign(Object.assign({},le),{status:"removed"}),I==null||I.forEach(Qe=>{const Ot=me.uid!==void 0?"uid":"name";Qe[Ot]===me[Ot]&&!Object.isFrozen(Qe)&&(Qe.status="removed")}),(se=R.current)===null||se===void 0||se.abort(me),H(me,Se))})},J=le=>{F(le.type),le.type==="drop"&&(u==null||u(le))};h.useImperativeHandle(t,()=>({onBatchStart:B,onSuccess:U,onProgress:K,onError:G,fileList:I,upload:R.current,nativeElement:W.current}));const{getPrefixCls:ee,direction:q,upload:te}=h.useContext(Be),Y=ee("upload",y),oe=Object.assign(Object.assign({onBatchStart:B,onError:G,onProgress:K,onSuccess:U},e),{data:E,multiple:_,action:A,accept:L,supportServerRender:D,prefixCls:Y,disabled:N,beforeUpload:V,onChange:void 0,hasControlInside:P});delete oe.className,delete oe.style,(!C||N)&&delete oe.id;const ne=`${Y}-wrapper`,[ce,ve,pe]=_6(Y,ne),[_e]=Rc("Upload",xr.Upload),{showRemoveIcon:xe,showPreviewIcon:Oe,showDownloadIcon:he,removeIcon:ue,previewIcon:Ee,downloadIcon:Ne,extra:Ue}=typeof i=="boolean"?{}:i,De=typeof xe>"u"?!N:xe,Le=(le,me)=>i?h.createElement(Ab,{prefixCls:Y,listType:a,items:I,previewFile:d,onPreview:s,onDownload:l,onRemove:Z,showRemoveIcon:De,showPreviewIcon:Oe,showDownloadIcon:he,removeIcon:ue,previewIcon:Ee,downloadIcon:Ne,iconRender:v,extra:Ue,locale:Object.assign(Object.assign({},_e),p),isImageUrl:m,progress:g,appendAction:le,appendActionVisible:me,itemRender:$,disabled:N}):le,Ge=re(ne,x,O,ve,pe,te==null?void 0:te.className,{[`${Y}-rtl`]:q==="rtl",[`${Y}-picture-card-wrapper`]:a==="picture-card",[`${Y}-picture-circle-wrapper`]:a==="picture-circle"}),Te=Object.assign(Object.assign({},te==null?void 0:te.style),w);if(b==="drag"){const le=re(ve,Y,`${Y}-drag`,{[`${Y}-drag-uploading`]:I.some(me=>me.status==="uploading"),[`${Y}-drag-hover`]:z==="dragover",[`${Y}-disabled`]:N,[`${Y}-rtl`]:q==="rtl"});return ce(h.createElement("span",{className:Ge,ref:W},h.createElement("div",{className:le,style:Te,onDrop:J,onDragOver:J,onDragLeave:J},h.createElement(zd,Object.assign({},oe,{ref:R,className:`${Y}-btn`}),h.createElement("div",{className:`${Y}-drag-container`},C))),Le()))}const Ie=re(Y,`${Y}-select`,{[`${Y}-disabled`]:N,[`${Y}-hidden`]:!C}),Pe=h.createElement("div",{className:Ie,style:Te},h.createElement(zd,Object.assign({},oe,{ref:R})));return ce(a==="picture-card"||a==="picture-circle"?h.createElement("span",{className:Ge,ref:W},Le(Pe,!!C)):h.createElement("span",{className:Ge,ref:W},Pe,Le()))},Vd=h.forwardRef(F6);process.env.NODE_ENV!=="production"&&(Vd.displayName="Upload");var L6=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Db=h.forwardRef((e,t)=>{var{style:n,height:r,hasControlInside:o=!1}=e,i=L6(e,["style","height","hasControlInside"]);return h.createElement(Vd,Object.assign({ref:t,hasControlInside:o},i,{type:"drag",style:Object.assign(Object.assign({},n),{height:r})}))});process.env.NODE_ENV!=="production"&&(Db.displayName="Dragger");const Ki=Vd;Ki.Dragger=Db,Ki.LIST_IGNORE=Yi;const Fb=T.createContext([null,()=>{}]),j6=({children:e})=>{const[t,n]=T.useState(null);return k.jsx(Fb.Provider,{value:[t,n],children:e})},Lb=()=>T.useContext(Fb);var tt=(e=>(e.START="START",e.SPEAK="SPEAK",e.LISTEN="LISTEN",e.TRANSFER_CALL="TRANSFER_CALL",e.GET_DATA="GET_DATA",e.UPDATE_DATA="UPDATE_DATA",e.ADD_DATA="ADD_DATA",e.HTTP_REQUEST="HTTP_REQUEST",e.CONDITION="CONDITION",e.NOTE="NOTE",e))(tt||{}),wn=(e=>(e.RECORD="RECORD",e.MACHINE="MACHINE",e.PROMPT="PROMPT",e))(wn||{});const jb=[{key:tt.SPEAK,label:"Bot nói",icon:Cb},{key:tt.LISTEN,label:"Bot nghe",icon:ub},{key:tt.TRANSFER_CALL,label:"Chuyển máy",icon:yb},{key:tt.GET_DATA,label:"Lấy dữ liệu",icon:Js},{key:tt.UPDATE_DATA,label:`Cập nhật
|
|
280
|
-
|
|
281
|
-
|
|
289
|
+
`]:{zIndex:10,width:r,margin:`0 ${we(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:o,"&:hover":{color:o},svg:{verticalAlign:"baseline"}}},[`${l}-thumbnail, ${l}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${l}-name`]:{display:"none",textAlign:"center"},[`${l}-file + ${l}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${we(i(e.paddingXS).mul(2).equal())})`},[`${l}-uploading`]:{[`&${l}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${l}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${we(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},M7=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},A7=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},Rn(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},D7=Jt("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:o,calc:i}=e,a=jt(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(n).div(2)).add(r).equal(),uploadPicCardSize:i(o).mul(2.55).equal()});return[A7(a),O7(a),I7(a),T7(a),N7(a),P7(a),M7(a),vx(a)]},e=>({actionsColor:e.colorIcon}));function md(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 vd(e,t){const n=Oe(t),r=n.findIndex(({uid:o})=>o===e.uid);return r===-1?n.push(e):n[r]=e,n}function Vh(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function F7(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(o=>o[n]!==e[n]);return r.length===t.length?null:r}const L7=(e="")=>{const t=e.split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},CE=e=>e.indexOf("image/")===0,R7=e=>{if(e.type&&!e.thumbUrl)return CE(e.type);const t=e.thumbUrl||e.url||"",n=L7(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)},Pi=200;function z7(e){return new Promise(t=>{if(!e.type||!CE(e.type)){t("");return}const n=document.createElement("canvas");n.width=Pi,n.height=Pi,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${Pi}px; height: ${Pi}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),o=new Image;if(o.onload=()=>{const{width:i,height:a}=o;let l=Pi,u=Pi,d=0,f=0;i>a?(u=a*(Pi/i),f=-(u-l)/2):(l=i*(Pi/a),d=-(l-u)/2),r.drawImage(o,d,f,l,u);const g=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(o.src),t(g)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const i=new FileReader;i.onload=()=>{i.result&&typeof i.result=="string"&&(o.src=i.result)},i.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const i=new FileReader;i.onload=()=>{i.result&&t(i.result)},i.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)})}const j7=h.forwardRef(({prefixCls:e,className:t,style:n,locale:r,listType:o,file:i,items:a,progress:l,iconRender:u,actionIconRender:d,itemRender:f,isImgUrl:g,showPreviewIcon:p,showRemoveIcon:m,showDownloadIcon:b,previewIcon:C,removeIcon:y,downloadIcon:x,extra:$,onPreview:w,onDownload:E,onClose:S},O)=>{var _,P;const{status:T}=i,[L,z]=h.useState(T);h.useEffect(()=>{T!=="removed"&&z(T)},[T]);const[B,j]=h.useState(!1);h.useEffect(()=>{const J=setTimeout(()=>{j(!0)},300);return()=>{clearTimeout(J)}},[]);const I=u(i);let F=h.createElement("div",{className:`${e}-icon`},I);if(o==="picture"||o==="picture-card"||o==="picture-circle")if(L==="uploading"||!i.thumbUrl&&!i.url){const J=ge(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:L!=="uploading"});F=h.createElement("div",{className:J},I)}else{const J=g!=null&&g(i)?h.createElement("img",{src:i.thumbUrl||i.url,alt:i.name,className:`${e}-list-item-image`,crossOrigin:i.crossOrigin}):I,fe=ge(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:g&&!g(i)});F=h.createElement("a",{className:fe,onClick:oe=>w(i,oe),href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer"},J)}const A=ge(`${e}-list-item`,`${e}-list-item-${L}`),D=typeof i.linkProps=="string"?JSON.parse(i.linkProps):i.linkProps,V=(typeof m=="function"?m(i):m)?d((typeof y=="function"?y(i):y)||h.createElement(_g,null),()=>S(i),e,r.removeFile,!0):null,W=(typeof b=="function"?b(i):b)&&L==="done"?d((typeof x=="function"?x(i):x)||h.createElement(Db,null),()=>E(i),e,r.downloadFile):null,H=o!=="picture-card"&&o!=="picture-circle"&&h.createElement("span",{key:"download-delete",className:ge(`${e}-list-item-actions`,{picture:o==="picture"})},W,V),q=typeof $=="function"?$(i):$,Z=q&&h.createElement("span",{className:`${e}-list-item-extra`},q),Y=ge(`${e}-list-item-name`),G=i.url?h.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Y,title:i.name},D,{href:i.url,onClick:J=>w(i,J)}),i.name,Z):h.createElement("span",{key:"view",className:Y,onClick:J=>w(i,J),title:i.name},i.name,Z),K=(typeof p=="function"?p(i):p)&&(i.url||i.thumbUrl)?h.createElement("a",{href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:J=>w(i,J),title:r.previewFile},typeof C=="function"?C(i):C||h.createElement(Ng,null)):null,te=(o==="picture-card"||o==="picture-circle")&&L!=="uploading"&&h.createElement("span",{className:`${e}-list-item-actions`},K,L==="done"&&W,V),{getPrefixCls:ie}=h.useContext(et),ee=ie(),ae=h.createElement("div",{className:A},F,G,H,te,B&&h.createElement(Nr,{motionName:`${ee}-fade`,visible:L==="uploading",motionDeadline:2e3},({className:J})=>{const fe="percent"in i?h.createElement(cE,Object.assign({type:"line",percent:i.percent,"aria-label":i["aria-label"],"aria-labelledby":i["aria-labelledby"]},l)):null;return h.createElement("div",{className:ge(`${e}-list-item-progress`,J)},fe)})),de=i.response&&typeof i.response=="string"?i.response:((_=i.error)===null||_===void 0?void 0:_.statusText)||((P=i.error)===null||P===void 0?void 0:P.message)||r.uploadError,ue=L==="error"?h.createElement(Xo,{title:de,getPopupContainer:J=>J.parentNode},ae):ae;return h.createElement("div",{className:ge(`${e}-list-item-container`,t),style:n,ref:O},f?f(ue,i,a,{download:E.bind(null,i),preview:w.bind(null,i),remove:S.bind(null,i)}):ue)}),B7=(e,t)=>{const{listType:n="text",previewFile:r=z7,onPreview:o,onDownload:i,onRemove:a,locale:l,iconRender:u,isImageUrl:d=R7,prefixCls:f,items:g=[],showPreviewIcon:p=!0,showRemoveIcon:m=!0,showDownloadIcon:b=!1,removeIcon:C,previewIcon:y,downloadIcon:x,extra:$,progress:w={size:[-1,2],showInfo:!1},appendAction:E,appendActionVisible:S=!0,itemRender:O,disabled:_}=e,P=Ww(),[T,L]=h.useState(!1),z=["picture-card","picture-circle"].includes(n);h.useEffect(()=>{n.startsWith("picture")&&(g||[]).forEach(Y=>{!(Y.originFileObj instanceof File||Y.originFileObj instanceof Blob)||Y.thumbUrl!==void 0||(Y.thumbUrl="",r==null||r(Y.originFileObj).then(G=>{Y.thumbUrl=G||"",P()}))})},[n,g,r]),h.useEffect(()=>{L(!0)},[]);const B=(Y,G)=>{if(o)return G==null||G.preventDefault(),o(Y)},j=Y=>{typeof i=="function"?i(Y):Y.url&&window.open(Y.url)},I=Y=>{a==null||a(Y)},F=Y=>{if(u)return u(Y,n);const G=Y.status==="uploading";if(n.startsWith("picture")){const K=n==="picture"?h.createElement(Va,null):l.uploading,te=d!=null&&d(Y)?h.createElement(Vb,null):h.createElement(Rb,null);return G?K:te}return G?h.createElement(Va,null):h.createElement(jb,null)},A=(Y,G,K,te,ie)=>{const ee={type:"text",size:"small",title:te,onClick:ae=>{var de,ue;G(),h.isValidElement(Y)&&((ue=(de=Y.props).onClick)===null||ue===void 0||ue.call(de,ae))},className:`${K}-list-item-action`,disabled:ie?_:!1};return h.isValidElement(Y)?h.createElement(cn,Object.assign({},ee,{icon:wo(Y,Object.assign(Object.assign({},Y.props),{onClick:()=>{}}))})):h.createElement(cn,Object.assign({},ee),h.createElement("span",null,Y))};h.useImperativeHandle(t,()=>({handlePreview:B,handleDownload:j}));const{getPrefixCls:D}=h.useContext(et),V=D("upload",f),W=D(),H=ge(`${V}-list`,`${V}-list-${n}`),q=h.useMemo(()=>jn(wp(W),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[W]),Z=Object.assign(Object.assign({},z?{}:q),{motionDeadline:2e3,motionName:`${V}-${z?"animate-inline":"animate"}`,keys:Oe(g.map(Y=>({key:Y.uid,file:Y}))),motionAppear:T});return h.createElement("div",{className:H},h.createElement(LC,Object.assign({},Z,{component:!1}),({key:Y,file:G,className:K,style:te})=>h.createElement(j7,{key:Y,locale:l,prefixCls:V,className:K,style:te,file:G,items:g,progress:w,listType:n,isImgUrl:d,showPreviewIcon:p,showRemoveIcon:m,showDownloadIcon:b,removeIcon:C,previewIcon:y,downloadIcon:x,extra:$,iconRender:F,actionIconRender:A,itemRender:O,onPreview:B,onDownload:j,onClose:I})),E&&h.createElement(Nr,Object.assign({},Z,{visible:S,forceRender:!0}),({className:Y,style:G})=>wo(E,K=>({className:ge(K.className,Y),style:Object.assign(Object.assign(Object.assign({},G),{pointerEvents:Y?"none":void 0}),K.style)}))))},xE=h.forwardRef(B7);process.env.NODE_ENV!=="production"&&(xE.displayName="UploadList");var V7=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(f){try{d(r.next(f))}catch(g){a(g)}}function u(f){try{d(r.throw(f))}catch(g){a(g)}}function d(f){f.done?i(f.value):o(f.value).then(l,u)}d((r=r.apply(e,t||[])).next())})};const zl=`__LIST_IGNORE_${Date.now()}__`,H7=(e,t)=>{const{fileList:n,defaultFileList:r,onRemove:o,showUploadList:i=!0,listType:a="text",onPreview:l,onDownload:u,onChange:d,onDrop:f,previewFile:g,disabled:p,locale:m,iconRender:b,isImageUrl:C,progress:y,prefixCls:x,className:$,type:w="select",children:E,style:S,itemRender:O,maxCount:_,data:P={},multiple:T=!1,hasControlInside:L=!0,action:z="",accept:B="",supportServerRender:j=!0,rootClassName:I}=e,F=h.useContext(Co),A=p??F,[D,V]=Or(r||[],{value:n,postState:$e=>$e??[]}),[W,H]=h.useState("drop"),q=h.useRef(null),Z=h.useRef(null);if(process.env.NODE_ENV!=="production"){const $e=$t("Upload");process.env.NODE_ENV!=="production"&&$e("fileList"in e||!("value"in e),"usage","`value` is not a valid prop, do you mean `fileList`?"),$e.deprecated(!("transformFile"in e),"transformFile","beforeUpload")}h.useMemo(()=>{const $e=Date.now();(n||[]).forEach((Fe,Ce)=>{!Fe.uid&&!Object.isFrozen(Fe)&&(Fe.uid=`__AUTO__${$e}_${Ce}__`)})},[n]);const Y=($e,Fe,Ce)=>{let Se=Oe(Fe),ke=!1;_===1?Se=Se.slice(-1):_&&(ke=Se.length>_,Se=Se.slice(0,_)),hi.flushSync(()=>{V(Se)});const It={file:$e,fileList:Se};Ce&&(It.event=Ce),(!ke||$e.status==="removed"||Se.some(pn=>pn.uid===$e.uid))&&hi.flushSync(()=>{d==null||d(It)})},G=($e,Fe)=>V7(void 0,void 0,void 0,function*(){const{beforeUpload:Ce,transformFile:Se}=e;let ke=$e;if(Ce){const It=yield Ce($e,Fe);if(It===!1)return!1;if(delete $e[zl],It===zl)return Object.defineProperty($e,zl,{value:!0,configurable:!0}),!1;typeof It=="object"&&It&&(ke=It)}return Se&&(ke=yield Se(ke)),ke}),K=$e=>{const Fe=$e.filter(ke=>!ke.file[zl]);if(!Fe.length)return;const Ce=Fe.map(ke=>md(ke.file));let Se=Oe(D);Ce.forEach(ke=>{Se=vd(ke,Se)}),Ce.forEach((ke,It)=>{let pn=ke;if(Fe[It].parsedFile)ke.status="uploading";else{const{originFileObj:Cn}=ke;let xn;try{xn=new File([Cn],Cn.name,{type:Cn.type})}catch{xn=new Blob([Cn],{type:Cn.type}),xn.name=Cn.name,xn.lastModifiedDate=new Date,xn.lastModified=new Date().getTime()}xn.uid=ke.uid,pn=xn}Y(pn,Se)})},te=($e,Fe,Ce)=>{try{typeof $e=="string"&&($e=JSON.parse($e))}catch{}if(!Vh(Fe,D))return;const Se=md(Fe);Se.status="done",Se.percent=100,Se.response=$e,Se.xhr=Ce;const ke=vd(Se,D);Y(Se,ke)},ie=($e,Fe)=>{if(!Vh(Fe,D))return;const Ce=md(Fe);Ce.status="uploading",Ce.percent=$e.percent;const Se=vd(Ce,D);Y(Ce,Se,$e)},ee=($e,Fe,Ce)=>{if(!Vh(Ce,D))return;const Se=md(Ce);Se.error=$e,Se.response=Fe,Se.status="error";const ke=vd(Se,D);Y(Se,ke)},ae=$e=>{let Fe;Promise.resolve(typeof o=="function"?o($e):o).then(Ce=>{var Se;if(Ce===!1)return;const ke=F7($e,D);ke&&(Fe=Object.assign(Object.assign({},$e),{status:"removed"}),D==null||D.forEach(It=>{const pn=Fe.uid!==void 0?"uid":"name";It[pn]===Fe[pn]&&!Object.isFrozen(It)&&(It.status="removed")}),(Se=q.current)===null||Se===void 0||Se.abort(Fe),Y(Fe,ke))})},de=$e=>{H($e.type),$e.type==="drop"&&(f==null||f($e))};h.useImperativeHandle(t,()=>({onBatchStart:K,onSuccess:te,onProgress:ie,onError:ee,fileList:D,upload:q.current,nativeElement:Z.current}));const{getPrefixCls:ue,direction:J,upload:fe}=h.useContext(et),oe=ue("upload",x),he=Object.assign(Object.assign({onBatchStart:K,onError:ee,onProgress:ie,onSuccess:te},e),{data:P,multiple:T,action:z,accept:B,supportServerRender:j,prefixCls:oe,disabled:A,beforeUpload:G,onChange:void 0,hasControlInside:L});delete he.className,delete he.style,(!E||A)&&delete he.id;const me=`${oe}-wrapper`,[_e,Re,Ie]=D7(oe,me),[Ge]=Ei("Upload",Qr.Upload),{showRemoveIcon:De,showPreviewIcon:We,showDownloadIcon:Te,removeIcon:Ne,previewIcon:Be,downloadIcon:Ze,extra:pt}=typeof i=="boolean"?{}:i,tt=typeof De>"u"?!A:De,st=($e,Fe)=>i?h.createElement(xE,{prefixCls:oe,listType:a,items:D,previewFile:g,onPreview:l,onDownload:u,onRemove:ae,showRemoveIcon:tt,showPreviewIcon:We,showDownloadIcon:Te,removeIcon:Ne,previewIcon:Be,downloadIcon:Ze,iconRender:b,extra:pt,locale:Object.assign(Object.assign({},Ge),m),isImageUrl:C,progress:y,appendAction:$e,appendActionVisible:Fe,itemRender:O,disabled:A}):$e,vt=ge(me,$,I,Re,Ie,fe==null?void 0:fe.className,{[`${oe}-rtl`]:J==="rtl",[`${oe}-picture-card-wrapper`]:a==="picture-card",[`${oe}-picture-circle-wrapper`]:a==="picture-circle"}),nt=Object.assign(Object.assign({},fe==null?void 0:fe.style),S);if(w==="drag"){const $e=ge(Re,oe,`${oe}-drag`,{[`${oe}-drag-uploading`]:D.some(Fe=>Fe.status==="uploading"),[`${oe}-drag-hover`]:W==="dragover",[`${oe}-disabled`]:A,[`${oe}-rtl`]:J==="rtl"});return _e(h.createElement("span",{className:vt,ref:Z},h.createElement("div",{className:$e,style:nt,onDrop:de,onDragOver:de,onDragLeave:de},h.createElement(Bh,Object.assign({},he,{ref:q,className:`${oe}-btn`}),h.createElement("div",{className:`${oe}-drag-container`},E))),st()))}const rt=ge(oe,`${oe}-select`,{[`${oe}-disabled`]:A,[`${oe}-hidden`]:!E}),Ke=h.createElement("div",{className:rt,style:nt},h.createElement(Bh,Object.assign({},he,{ref:q})));return _e(a==="picture-card"||a==="picture-circle"?h.createElement("span",{className:vt,ref:Z},st(Ke,!!E)):h.createElement("span",{className:vt,ref:Z},Ke,st()))},Hh=h.forwardRef(H7);process.env.NODE_ENV!=="production"&&(Hh.displayName="Upload");var k7=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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const wE=h.forwardRef((e,t)=>{var{style:n,height:r,hasControlInside:o=!1}=e,i=k7(e,["style","height","hasControlInside"]);return h.createElement(Hh,Object.assign({ref:t,hasControlInside:o},i,{type:"drag",style:Object.assign(Object.assign({},n),{height:r})}))});process.env.NODE_ENV!=="production"&&(wE.displayName="Dragger");const jl=Hh;jl.Dragger=wE,jl.LIST_IGNORE=zl;var Bl={exports:{}};/**
|
|
290
|
+
* @license
|
|
291
|
+
* Lodash <https://lodash.com/>
|
|
292
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
293
|
+
* Released under MIT license <https://lodash.com/license>
|
|
294
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
295
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
296
|
+
*/var W7=Bl.exports,SE;function U7(){return SE||(SE=1,function(e,t){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",l="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",d=500,f="__lodash_placeholder__",g=1,p=2,m=4,b=1,C=2,y=1,x=2,$=4,w=8,E=16,S=32,O=64,_=128,P=256,T=512,L=30,z="...",B=800,j=16,I=1,F=2,A=3,D=1/0,V=9007199254740991,W=17976931348623157e292,H=NaN,q=4294967295,Z=q-1,Y=q>>>1,G=[["ary",_],["bind",y],["bindKey",x],["curry",w],["curryRight",E],["flip",T],["partial",S],["partialRight",O],["rearg",P]],K="[object Arguments]",te="[object Array]",ie="[object AsyncFunction]",ee="[object Boolean]",ae="[object Date]",de="[object DOMException]",ue="[object Error]",J="[object Function]",fe="[object GeneratorFunction]",oe="[object Map]",he="[object Number]",me="[object Null]",_e="[object Object]",Re="[object Promise]",Ie="[object Proxy]",Ge="[object RegExp]",De="[object Set]",We="[object String]",Te="[object Symbol]",Ne="[object Undefined]",Be="[object WeakMap]",Ze="[object WeakSet]",pt="[object ArrayBuffer]",tt="[object DataView]",st="[object Float32Array]",vt="[object Float64Array]",nt="[object Int8Array]",rt="[object Int16Array]",Ke="[object Int32Array]",$e="[object Uint8Array]",Fe="[object Uint8ClampedArray]",Ce="[object Uint16Array]",Se="[object Uint32Array]",ke=/\b__p \+= '';/g,It=/\b(__p \+=) '' \+/g,pn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Cn=/&(?:amp|lt|gt|quot|#39);/g,xn=/[&<>"']/g,to=RegExp(Cn.source),Mn=RegExp(xn.source),kt=/<%-([\s\S]+?)%>/g,Wt=/<%([\s\S]+?)%>/g,Kn=/<%=([\s\S]+?)%>/g,un=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ut=/^\w*$/,mt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,dn=/[\\^$.*+?()[\]{}|]/g,fr=RegExp(dn.source),dt=/^\s+/,no=/\s/,ro=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ct=/\{\n\/\* \[wrapped with (.+)\] \*/,Tt=/,? & /,wn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,hn=/[()=,{}\[\]\/\s]/,Bn=/\\(\\)?/g,Mr=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gr=/\w*$/,Nn=/^[-+]0x[0-9a-f]+$/i,Vn=/^0b[01]+$/i,pr=/^\[object .+?Constructor\]$/,Hn=/^0o[0-7]+$/i,Sn=/^(?:0|[1-9]\d*)$/,En=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Zn=/($^)/,Ko=/['\n\r\u2028\u2029\\]/g,Oo="\\ud800-\\udfff",oo="\\u0300-\\u036f",Mi="\\ufe20-\\ufe2f",da="\\u20d0-\\u20ff",Zo=oo+Mi+da,Qo="\\u2700-\\u27bf",Ar="a-z\\xdf-\\xf6\\xf8-\\xff",Dr="\\xac\\xb1\\xd7\\xf7",Jo="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",io="\\u2000-\\u206f",ei=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ao="A-Z\\xc0-\\xd6\\xd8-\\xde",An="\\ufe0e\\ufe0f",hr=Dr+Jo+io+ei,Qn="['’]",Fr="["+Oo+"]",mr="["+hr+"]",No="["+Zo+"]",ti="\\d+",Ai="["+Qo+"]",so="["+Ar+"]",Di="[^"+Oo+hr+ti+Qo+Ar+ao+"]",ni="\\ud83c[\\udffb-\\udfff]",ri="(?:"+No+"|"+ni+")",vs="[^"+Oo+"]",fa="(?:\\ud83c[\\udde6-\\uddff]){2}",Fi="[\\ud800-\\udbff][\\udc00-\\udfff]",Po="["+ao+"]",ys="\\u200d",bs="(?:"+so+"|"+Di+")",Lr="(?:"+Po+"|"+Di+")",Li="(?:"+Qn+"(?:d|ll|m|re|s|t|ve))?",Cs="(?:"+Qn+"(?:D|LL|M|RE|S|T|VE))?",kn=ri+"?",oi="["+An+"]?",ga="(?:"+ys+"(?:"+[vs,fa,Fi].join("|")+")"+oi+kn+")*",lo="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ii="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",pa=oi+kn+ga,xs="(?:"+[Ai,fa,Fi].join("|")+")"+pa,Wl="(?:"+[vs+No+"?",No,fa,Fi,Fr].join("|")+")",Ul=RegExp(Qn,"g"),Ae=RegExp(No,"g"),Ue=RegExp(ni+"(?="+ni+")|"+Wl+pa,"g"),Rt=RegExp([Po+"?"+so+"+"+Li+"(?="+[mr,Po,"$"].join("|")+")",Lr+"+"+Cs+"(?="+[mr,Po+bs,"$"].join("|")+")",Po+"?"+bs+"+"+Li,Po+"+"+Cs,ii,lo,ti,xs].join("|"),"g"),Xt=RegExp("["+ys+Oo+Zo+An+"]"),Ut=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ws=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ql=-1,Dt={};Dt[st]=Dt[vt]=Dt[nt]=Dt[rt]=Dt[Ke]=Dt[$e]=Dt[Fe]=Dt[Ce]=Dt[Se]=!0,Dt[K]=Dt[te]=Dt[pt]=Dt[ee]=Dt[tt]=Dt[ae]=Dt[ue]=Dt[J]=Dt[oe]=Dt[he]=Dt[_e]=Dt[Ge]=Dt[De]=Dt[We]=Dt[Be]=!1;var xt={};xt[K]=xt[te]=xt[pt]=xt[tt]=xt[ee]=xt[ae]=xt[st]=xt[vt]=xt[nt]=xt[rt]=xt[Ke]=xt[oe]=xt[he]=xt[_e]=xt[Ge]=xt[De]=xt[We]=xt[Te]=xt[$e]=xt[Fe]=xt[Ce]=xt[Se]=!0,xt[ue]=xt[J]=xt[Be]=!1;var uH={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},dH={"&":"&","<":"<",">":">",'"':""","'":"'"},fH={"&":"&","<":"<",">":">",""":'"',"'":"'"},gH={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},pH=parseFloat,hH=parseInt,h$=typeof Bc=="object"&&Bc&&Bc.Object===Object&&Bc,mH=typeof self=="object"&&self&&self.Object===Object&&self,Pn=h$||mH||Function("return this")(),em=t&&!t.nodeType&&t,ha=em&&!0&&e&&!e.nodeType&&e,m$=ha&&ha.exports===em,tm=m$&&h$.process,Rr=function(){try{var se=ha&&ha.require&&ha.require("util").types;return se||tm&&tm.binding&&tm.binding("util")}catch{}}(),v$=Rr&&Rr.isArrayBuffer,y$=Rr&&Rr.isDate,b$=Rr&&Rr.isMap,C$=Rr&&Rr.isRegExp,x$=Rr&&Rr.isSet,w$=Rr&&Rr.isTypedArray;function vr(se,ve,pe){switch(pe.length){case 0:return se.call(ve);case 1:return se.call(ve,pe[0]);case 2:return se.call(ve,pe[0],pe[1]);case 3:return se.call(ve,pe[0],pe[1],pe[2])}return se.apply(ve,pe)}function vH(se,ve,pe,Me){for(var Qe=-1,wt=se==null?0:se.length;++Qe<wt;){var mn=se[Qe];ve(Me,mn,pe(mn),se)}return Me}function zr(se,ve){for(var pe=-1,Me=se==null?0:se.length;++pe<Me&&ve(se[pe],pe,se)!==!1;);return se}function yH(se,ve){for(var pe=se==null?0:se.length;pe--&&ve(se[pe],pe,se)!==!1;);return se}function S$(se,ve){for(var pe=-1,Me=se==null?0:se.length;++pe<Me;)if(!ve(se[pe],pe,se))return!1;return!0}function Ri(se,ve){for(var pe=-1,Me=se==null?0:se.length,Qe=0,wt=[];++pe<Me;){var mn=se[pe];ve(mn,pe,se)&&(wt[Qe++]=mn)}return wt}function _d(se,ve){var pe=se==null?0:se.length;return!!pe&&Ss(se,ve,0)>-1}function nm(se,ve,pe){for(var Me=-1,Qe=se==null?0:se.length;++Me<Qe;)if(pe(ve,se[Me]))return!0;return!1}function qt(se,ve){for(var pe=-1,Me=se==null?0:se.length,Qe=Array(Me);++pe<Me;)Qe[pe]=ve(se[pe],pe,se);return Qe}function zi(se,ve){for(var pe=-1,Me=ve.length,Qe=se.length;++pe<Me;)se[Qe+pe]=ve[pe];return se}function rm(se,ve,pe,Me){var Qe=-1,wt=se==null?0:se.length;for(Me&&wt&&(pe=se[++Qe]);++Qe<wt;)pe=ve(pe,se[Qe],Qe,se);return pe}function bH(se,ve,pe,Me){var Qe=se==null?0:se.length;for(Me&&Qe&&(pe=se[--Qe]);Qe--;)pe=ve(pe,se[Qe],Qe,se);return pe}function om(se,ve){for(var pe=-1,Me=se==null?0:se.length;++pe<Me;)if(ve(se[pe],pe,se))return!0;return!1}var CH=im("length");function xH(se){return se.split("")}function wH(se){return se.match(wn)||[]}function E$(se,ve,pe){var Me;return pe(se,function(Qe,wt,mn){if(ve(Qe,wt,mn))return Me=wt,!1}),Me}function Od(se,ve,pe,Me){for(var Qe=se.length,wt=pe+(Me?1:-1);Me?wt--:++wt<Qe;)if(ve(se[wt],wt,se))return wt;return-1}function Ss(se,ve,pe){return ve===ve?DH(se,ve,pe):Od(se,$$,pe)}function SH(se,ve,pe,Me){for(var Qe=pe-1,wt=se.length;++Qe<wt;)if(Me(se[Qe],ve))return Qe;return-1}function $$(se){return se!==se}function _$(se,ve){var pe=se==null?0:se.length;return pe?sm(se,ve)/pe:H}function im(se){return function(ve){return ve==null?n:ve[se]}}function am(se){return function(ve){return se==null?n:se[ve]}}function O$(se,ve,pe,Me,Qe){return Qe(se,function(wt,mn,Lt){pe=Me?(Me=!1,wt):ve(pe,wt,mn,Lt)}),pe}function EH(se,ve){var pe=se.length;for(se.sort(ve);pe--;)se[pe]=se[pe].value;return se}function sm(se,ve){for(var pe,Me=-1,Qe=se.length;++Me<Qe;){var wt=ve(se[Me]);wt!==n&&(pe=pe===n?wt:pe+wt)}return pe}function lm(se,ve){for(var pe=-1,Me=Array(se);++pe<se;)Me[pe]=ve(pe);return Me}function $H(se,ve){return qt(ve,function(pe){return[pe,se[pe]]})}function N$(se){return se&&se.slice(0,M$(se)+1).replace(dt,"")}function yr(se){return function(ve){return se(ve)}}function cm(se,ve){return qt(ve,function(pe){return se[pe]})}function Gl(se,ve){return se.has(ve)}function P$(se,ve){for(var pe=-1,Me=se.length;++pe<Me&&Ss(ve,se[pe],0)>-1;);return pe}function I$(se,ve){for(var pe=se.length;pe--&&Ss(ve,se[pe],0)>-1;);return pe}function _H(se,ve){for(var pe=se.length,Me=0;pe--;)se[pe]===ve&&++Me;return Me}var OH=am(uH),NH=am(dH);function PH(se){return"\\"+gH[se]}function IH(se,ve){return se==null?n:se[ve]}function Es(se){return Xt.test(se)}function TH(se){return Ut.test(se)}function MH(se){for(var ve,pe=[];!(ve=se.next()).done;)pe.push(ve.value);return pe}function um(se){var ve=-1,pe=Array(se.size);return se.forEach(function(Me,Qe){pe[++ve]=[Qe,Me]}),pe}function T$(se,ve){return function(pe){return se(ve(pe))}}function ji(se,ve){for(var pe=-1,Me=se.length,Qe=0,wt=[];++pe<Me;){var mn=se[pe];(mn===ve||mn===f)&&(se[pe]=f,wt[Qe++]=pe)}return wt}function Nd(se){var ve=-1,pe=Array(se.size);return se.forEach(function(Me){pe[++ve]=Me}),pe}function AH(se){var ve=-1,pe=Array(se.size);return se.forEach(function(Me){pe[++ve]=[Me,Me]}),pe}function DH(se,ve,pe){for(var Me=pe-1,Qe=se.length;++Me<Qe;)if(se[Me]===ve)return Me;return-1}function FH(se,ve,pe){for(var Me=pe+1;Me--;)if(se[Me]===ve)return Me;return Me}function $s(se){return Es(se)?RH(se):CH(se)}function co(se){return Es(se)?zH(se):xH(se)}function M$(se){for(var ve=se.length;ve--&&no.test(se.charAt(ve)););return ve}var LH=am(fH);function RH(se){for(var ve=Ue.lastIndex=0;Ue.test(se);)++ve;return ve}function zH(se){return se.match(Ue)||[]}function jH(se){return se.match(Rt)||[]}var BH=function se(ve){ve=ve==null?Pn:_s.defaults(Pn.Object(),ve,_s.pick(Pn,ws));var pe=ve.Array,Me=ve.Date,Qe=ve.Error,wt=ve.Function,mn=ve.Math,Lt=ve.Object,dm=ve.RegExp,VH=ve.String,jr=ve.TypeError,Pd=pe.prototype,HH=wt.prototype,Os=Lt.prototype,Id=ve["__core-js_shared__"],Td=HH.toString,Mt=Os.hasOwnProperty,kH=0,A$=function(){var s=/[^.]+$/.exec(Id&&Id.keys&&Id.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),Md=Os.toString,WH=Td.call(Lt),UH=Pn._,qH=dm("^"+Td.call(Mt).replace(dn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ad=m$?ve.Buffer:n,Bi=ve.Symbol,Dd=ve.Uint8Array,D$=Ad?Ad.allocUnsafe:n,Fd=T$(Lt.getPrototypeOf,Lt),F$=Lt.create,L$=Os.propertyIsEnumerable,Ld=Pd.splice,R$=Bi?Bi.isConcatSpreadable:n,Xl=Bi?Bi.iterator:n,ma=Bi?Bi.toStringTag:n,Rd=function(){try{var s=xa(Lt,"defineProperty");return s({},"",{}),s}catch{}}(),GH=ve.clearTimeout!==Pn.clearTimeout&&ve.clearTimeout,XH=Me&&Me.now!==Pn.Date.now&&Me.now,YH=ve.setTimeout!==Pn.setTimeout&&ve.setTimeout,zd=mn.ceil,jd=mn.floor,fm=Lt.getOwnPropertySymbols,KH=Ad?Ad.isBuffer:n,z$=ve.isFinite,ZH=Pd.join,QH=T$(Lt.keys,Lt),vn=mn.max,Dn=mn.min,JH=Me.now,ek=ve.parseInt,j$=mn.random,tk=Pd.reverse,gm=xa(ve,"DataView"),Yl=xa(ve,"Map"),pm=xa(ve,"Promise"),Ns=xa(ve,"Set"),Kl=xa(ve,"WeakMap"),Zl=xa(Lt,"create"),Bd=Kl&&new Kl,Ps={},nk=wa(gm),rk=wa(Yl),ok=wa(pm),ik=wa(Ns),ak=wa(Kl),Vd=Bi?Bi.prototype:n,Ql=Vd?Vd.valueOf:n,B$=Vd?Vd.toString:n;function k(s){if(Kt(s)&&!Je(s)&&!(s instanceof ft)){if(s instanceof Br)return s;if(Mt.call(s,"__wrapped__"))return V_(s)}return new Br(s)}var Is=function(){function s(){}return function(c){if(!Yt(c))return{};if(F$)return F$(c);s.prototype=c;var v=new s;return s.prototype=n,v}}();function Hd(){}function Br(s,c){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!c,this.__index__=0,this.__values__=n}k.templateSettings={escape:kt,evaluate:Wt,interpolate:Kn,variable:"",imports:{_:k}},k.prototype=Hd.prototype,k.prototype.constructor=k,Br.prototype=Is(Hd.prototype),Br.prototype.constructor=Br;function ft(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=q,this.__views__=[]}function sk(){var s=new ft(this.__wrapped__);return s.__actions__=Jn(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=Jn(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=Jn(this.__views__),s}function lk(){if(this.__filtered__){var s=new ft(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function ck(){var s=this.__wrapped__.value(),c=this.__dir__,v=Je(s),N=c<0,R=v?s.length:0,U=x9(0,R,this.__views__),Q=U.start,ne=U.end,ce=ne-Q,ye=N?ne:Q-1,be=this.__iteratees__,xe=be.length,Pe=0,ze=Dn(ce,this.__takeCount__);if(!v||!N&&R==ce&&ze==ce)return u_(s,this.__actions__);var Xe=[];e:for(;ce--&&Pe<ze;){ye+=c;for(var it=-1,Ye=s[ye];++it<xe;){var lt=be[it],ht=lt.iteratee,xr=lt.type,qn=ht(Ye);if(xr==F)Ye=qn;else if(!qn){if(xr==I)continue e;break e}}Xe[Pe++]=Ye}return Xe}ft.prototype=Is(Hd.prototype),ft.prototype.constructor=ft;function va(s){var c=-1,v=s==null?0:s.length;for(this.clear();++c<v;){var N=s[c];this.set(N[0],N[1])}}function uk(){this.__data__=Zl?Zl(null):{},this.size=0}function dk(s){var c=this.has(s)&&delete this.__data__[s];return this.size-=c?1:0,c}function fk(s){var c=this.__data__;if(Zl){var v=c[s];return v===u?n:v}return Mt.call(c,s)?c[s]:n}function gk(s){var c=this.__data__;return Zl?c[s]!==n:Mt.call(c,s)}function pk(s,c){var v=this.__data__;return this.size+=this.has(s)?0:1,v[s]=Zl&&c===n?u:c,this}va.prototype.clear=uk,va.prototype.delete=dk,va.prototype.get=fk,va.prototype.has=gk,va.prototype.set=pk;function ai(s){var c=-1,v=s==null?0:s.length;for(this.clear();++c<v;){var N=s[c];this.set(N[0],N[1])}}function hk(){this.__data__=[],this.size=0}function mk(s){var c=this.__data__,v=kd(c,s);if(v<0)return!1;var N=c.length-1;return v==N?c.pop():Ld.call(c,v,1),--this.size,!0}function vk(s){var c=this.__data__,v=kd(c,s);return v<0?n:c[v][1]}function yk(s){return kd(this.__data__,s)>-1}function bk(s,c){var v=this.__data__,N=kd(v,s);return N<0?(++this.size,v.push([s,c])):v[N][1]=c,this}ai.prototype.clear=hk,ai.prototype.delete=mk,ai.prototype.get=vk,ai.prototype.has=yk,ai.prototype.set=bk;function si(s){var c=-1,v=s==null?0:s.length;for(this.clear();++c<v;){var N=s[c];this.set(N[0],N[1])}}function Ck(){this.size=0,this.__data__={hash:new va,map:new(Yl||ai),string:new va}}function xk(s){var c=tf(this,s).delete(s);return this.size-=c?1:0,c}function wk(s){return tf(this,s).get(s)}function Sk(s){return tf(this,s).has(s)}function Ek(s,c){var v=tf(this,s),N=v.size;return v.set(s,c),this.size+=v.size==N?0:1,this}si.prototype.clear=Ck,si.prototype.delete=xk,si.prototype.get=wk,si.prototype.has=Sk,si.prototype.set=Ek;function ya(s){var c=-1,v=s==null?0:s.length;for(this.__data__=new si;++c<v;)this.add(s[c])}function $k(s){return this.__data__.set(s,u),this}function _k(s){return this.__data__.has(s)}ya.prototype.add=ya.prototype.push=$k,ya.prototype.has=_k;function uo(s){var c=this.__data__=new ai(s);this.size=c.size}function Ok(){this.__data__=new ai,this.size=0}function Nk(s){var c=this.__data__,v=c.delete(s);return this.size=c.size,v}function Pk(s){return this.__data__.get(s)}function Ik(s){return this.__data__.has(s)}function Tk(s,c){var v=this.__data__;if(v instanceof ai){var N=v.__data__;if(!Yl||N.length<o-1)return N.push([s,c]),this.size=++v.size,this;v=this.__data__=new si(N)}return v.set(s,c),this.size=v.size,this}uo.prototype.clear=Ok,uo.prototype.delete=Nk,uo.prototype.get=Pk,uo.prototype.has=Ik,uo.prototype.set=Tk;function V$(s,c){var v=Je(s),N=!v&&Sa(s),R=!v&&!N&&Ui(s),U=!v&&!N&&!R&&Ds(s),Q=v||N||R||U,ne=Q?lm(s.length,VH):[],ce=ne.length;for(var ye in s)(c||Mt.call(s,ye))&&!(Q&&(ye=="length"||R&&(ye=="offset"||ye=="parent")||U&&(ye=="buffer"||ye=="byteLength"||ye=="byteOffset")||di(ye,ce)))&&ne.push(ye);return ne}function H$(s){var c=s.length;return c?s[$m(0,c-1)]:n}function Mk(s,c){return nf(Jn(s),ba(c,0,s.length))}function Ak(s){return nf(Jn(s))}function hm(s,c,v){(v!==n&&!fo(s[c],v)||v===n&&!(c in s))&&li(s,c,v)}function Jl(s,c,v){var N=s[c];(!(Mt.call(s,c)&&fo(N,v))||v===n&&!(c in s))&&li(s,c,v)}function kd(s,c){for(var v=s.length;v--;)if(fo(s[v][0],c))return v;return-1}function Dk(s,c,v,N){return Vi(s,function(R,U,Q){c(N,R,v(R),Q)}),N}function k$(s,c){return s&&To(c,$n(c),s)}function Fk(s,c){return s&&To(c,tr(c),s)}function li(s,c,v){c=="__proto__"&&Rd?Rd(s,c,{configurable:!0,enumerable:!0,value:v,writable:!0}):s[c]=v}function mm(s,c){for(var v=-1,N=c.length,R=pe(N),U=s==null;++v<N;)R[v]=U?n:Km(s,c[v]);return R}function ba(s,c,v){return s===s&&(v!==n&&(s=s<=v?s:v),c!==n&&(s=s>=c?s:c)),s}function Vr(s,c,v,N,R,U){var Q,ne=c&g,ce=c&p,ye=c&m;if(v&&(Q=R?v(s,N,R,U):v(s)),Q!==n)return Q;if(!Yt(s))return s;var be=Je(s);if(be){if(Q=S9(s),!ne)return Jn(s,Q)}else{var xe=Fn(s),Pe=xe==J||xe==fe;if(Ui(s))return g_(s,ne);if(xe==_e||xe==K||Pe&&!R){if(Q=ce||Pe?{}:M_(s),!ne)return ce?f9(s,Fk(Q,s)):d9(s,k$(Q,s))}else{if(!xt[xe])return R?s:{};Q=E9(s,xe,ne)}}U||(U=new uo);var ze=U.get(s);if(ze)return ze;U.set(s,Q),sO(s)?s.forEach(function(Ye){Q.add(Vr(Ye,c,v,Ye,s,U))}):iO(s)&&s.forEach(function(Ye,lt){Q.set(lt,Vr(Ye,c,v,lt,s,U))});var Xe=ye?ce?Lm:Fm:ce?tr:$n,it=be?n:Xe(s);return zr(it||s,function(Ye,lt){it&&(lt=Ye,Ye=s[lt]),Jl(Q,lt,Vr(Ye,c,v,lt,s,U))}),Q}function Lk(s){var c=$n(s);return function(v){return W$(v,s,c)}}function W$(s,c,v){var N=v.length;if(s==null)return!N;for(s=Lt(s);N--;){var R=v[N],U=c[R],Q=s[R];if(Q===n&&!(R in s)||!U(Q))return!1}return!0}function U$(s,c,v){if(typeof s!="function")throw new jr(a);return ac(function(){s.apply(n,v)},c)}function ec(s,c,v,N){var R=-1,U=_d,Q=!0,ne=s.length,ce=[],ye=c.length;if(!ne)return ce;v&&(c=qt(c,yr(v))),N?(U=nm,Q=!1):c.length>=o&&(U=Gl,Q=!1,c=new ya(c));e:for(;++R<ne;){var be=s[R],xe=v==null?be:v(be);if(be=N||be!==0?be:0,Q&&xe===xe){for(var Pe=ye;Pe--;)if(c[Pe]===xe)continue e;ce.push(be)}else U(c,xe,N)||ce.push(be)}return ce}var Vi=y_(Io),q$=y_(ym,!0);function Rk(s,c){var v=!0;return Vi(s,function(N,R,U){return v=!!c(N,R,U),v}),v}function Wd(s,c,v){for(var N=-1,R=s.length;++N<R;){var U=s[N],Q=c(U);if(Q!=null&&(ne===n?Q===Q&&!Cr(Q):v(Q,ne)))var ne=Q,ce=U}return ce}function zk(s,c,v,N){var R=s.length;for(v=ot(v),v<0&&(v=-v>R?0:R+v),N=N===n||N>R?R:ot(N),N<0&&(N+=R),N=v>N?0:cO(N);v<N;)s[v++]=c;return s}function G$(s,c){var v=[];return Vi(s,function(N,R,U){c(N,R,U)&&v.push(N)}),v}function In(s,c,v,N,R){var U=-1,Q=s.length;for(v||(v=_9),R||(R=[]);++U<Q;){var ne=s[U];c>0&&v(ne)?c>1?In(ne,c-1,v,N,R):zi(R,ne):N||(R[R.length]=ne)}return R}var vm=b_(),X$=b_(!0);function Io(s,c){return s&&vm(s,c,$n)}function ym(s,c){return s&&X$(s,c,$n)}function Ud(s,c){return Ri(c,function(v){return fi(s[v])})}function Ca(s,c){c=ki(c,s);for(var v=0,N=c.length;s!=null&&v<N;)s=s[Mo(c[v++])];return v&&v==N?s:n}function Y$(s,c,v){var N=c(s);return Je(s)?N:zi(N,v(s))}function Wn(s){return s==null?s===n?Ne:me:ma&&ma in Lt(s)?C9(s):A9(s)}function bm(s,c){return s>c}function jk(s,c){return s!=null&&Mt.call(s,c)}function Bk(s,c){return s!=null&&c in Lt(s)}function Vk(s,c,v){return s>=Dn(c,v)&&s<vn(c,v)}function Cm(s,c,v){for(var N=v?nm:_d,R=s[0].length,U=s.length,Q=U,ne=pe(U),ce=1/0,ye=[];Q--;){var be=s[Q];Q&&c&&(be=qt(be,yr(c))),ce=Dn(be.length,ce),ne[Q]=!v&&(c||R>=120&&be.length>=120)?new ya(Q&&be):n}be=s[0];var xe=-1,Pe=ne[0];e:for(;++xe<R&&ye.length<ce;){var ze=be[xe],Xe=c?c(ze):ze;if(ze=v||ze!==0?ze:0,!(Pe?Gl(Pe,Xe):N(ye,Xe,v))){for(Q=U;--Q;){var it=ne[Q];if(!(it?Gl(it,Xe):N(s[Q],Xe,v)))continue e}Pe&&Pe.push(Xe),ye.push(ze)}}return ye}function Hk(s,c,v,N){return Io(s,function(R,U,Q){c(N,v(R),U,Q)}),N}function tc(s,c,v){c=ki(c,s),s=L_(s,c);var N=s==null?s:s[Mo(kr(c))];return N==null?n:vr(N,s,v)}function K$(s){return Kt(s)&&Wn(s)==K}function kk(s){return Kt(s)&&Wn(s)==pt}function Wk(s){return Kt(s)&&Wn(s)==ae}function nc(s,c,v,N,R){return s===c?!0:s==null||c==null||!Kt(s)&&!Kt(c)?s!==s&&c!==c:Uk(s,c,v,N,nc,R)}function Uk(s,c,v,N,R,U){var Q=Je(s),ne=Je(c),ce=Q?te:Fn(s),ye=ne?te:Fn(c);ce=ce==K?_e:ce,ye=ye==K?_e:ye;var be=ce==_e,xe=ye==_e,Pe=ce==ye;if(Pe&&Ui(s)){if(!Ui(c))return!1;Q=!0,be=!1}if(Pe&&!be)return U||(U=new uo),Q||Ds(s)?P_(s,c,v,N,R,U):y9(s,c,ce,v,N,R,U);if(!(v&b)){var ze=be&&Mt.call(s,"__wrapped__"),Xe=xe&&Mt.call(c,"__wrapped__");if(ze||Xe){var it=ze?s.value():s,Ye=Xe?c.value():c;return U||(U=new uo),R(it,Ye,v,N,U)}}return Pe?(U||(U=new uo),b9(s,c,v,N,R,U)):!1}function qk(s){return Kt(s)&&Fn(s)==oe}function xm(s,c,v,N){var R=v.length,U=R,Q=!N;if(s==null)return!U;for(s=Lt(s);R--;){var ne=v[R];if(Q&&ne[2]?ne[1]!==s[ne[0]]:!(ne[0]in s))return!1}for(;++R<U;){ne=v[R];var ce=ne[0],ye=s[ce],be=ne[1];if(Q&&ne[2]){if(ye===n&&!(ce in s))return!1}else{var xe=new uo;if(N)var Pe=N(ye,be,ce,s,c,xe);if(!(Pe===n?nc(be,ye,b|C,N,xe):Pe))return!1}}return!0}function Z$(s){if(!Yt(s)||N9(s))return!1;var c=fi(s)?qH:pr;return c.test(wa(s))}function Gk(s){return Kt(s)&&Wn(s)==Ge}function Xk(s){return Kt(s)&&Fn(s)==De}function Yk(s){return Kt(s)&&cf(s.length)&&!!Dt[Wn(s)]}function Q$(s){return typeof s=="function"?s:s==null?nr:typeof s=="object"?Je(s)?t_(s[0],s[1]):e_(s):CO(s)}function wm(s){if(!ic(s))return QH(s);var c=[];for(var v in Lt(s))Mt.call(s,v)&&v!="constructor"&&c.push(v);return c}function Kk(s){if(!Yt(s))return M9(s);var c=ic(s),v=[];for(var N in s)N=="constructor"&&(c||!Mt.call(s,N))||v.push(N);return v}function Sm(s,c){return s<c}function J$(s,c){var v=-1,N=er(s)?pe(s.length):[];return Vi(s,function(R,U,Q){N[++v]=c(R,U,Q)}),N}function e_(s){var c=zm(s);return c.length==1&&c[0][2]?D_(c[0][0],c[0][1]):function(v){return v===s||xm(v,s,c)}}function t_(s,c){return Bm(s)&&A_(c)?D_(Mo(s),c):function(v){var N=Km(v,s);return N===n&&N===c?Zm(v,s):nc(c,N,b|C)}}function qd(s,c,v,N,R){s!==c&&vm(c,function(U,Q){if(R||(R=new uo),Yt(U))Zk(s,c,Q,v,qd,N,R);else{var ne=N?N(Hm(s,Q),U,Q+"",s,c,R):n;ne===n&&(ne=U),hm(s,Q,ne)}},tr)}function Zk(s,c,v,N,R,U,Q){var ne=Hm(s,v),ce=Hm(c,v),ye=Q.get(ce);if(ye){hm(s,v,ye);return}var be=U?U(ne,ce,v+"",s,c,Q):n,xe=be===n;if(xe){var Pe=Je(ce),ze=!Pe&&Ui(ce),Xe=!Pe&&!ze&&Ds(ce);be=ce,Pe||ze||Xe?Je(ne)?be=ne:nn(ne)?be=Jn(ne):ze?(xe=!1,be=g_(ce,!0)):Xe?(xe=!1,be=p_(ce,!0)):be=[]:sc(ce)||Sa(ce)?(be=ne,Sa(ne)?be=uO(ne):(!Yt(ne)||fi(ne))&&(be=M_(ce))):xe=!1}xe&&(Q.set(ce,be),R(be,ce,N,U,Q),Q.delete(ce)),hm(s,v,be)}function n_(s,c){var v=s.length;if(v)return c+=c<0?v:0,di(c,v)?s[c]:n}function r_(s,c,v){c.length?c=qt(c,function(U){return Je(U)?function(Q){return Ca(Q,U.length===1?U[0]:U)}:U}):c=[nr];var N=-1;c=qt(c,yr(qe()));var R=J$(s,function(U,Q,ne){var ce=qt(c,function(ye){return ye(U)});return{criteria:ce,index:++N,value:U}});return EH(R,function(U,Q){return u9(U,Q,v)})}function Qk(s,c){return o_(s,c,function(v,N){return Zm(s,N)})}function o_(s,c,v){for(var N=-1,R=c.length,U={};++N<R;){var Q=c[N],ne=Ca(s,Q);v(ne,Q)&&rc(U,ki(Q,s),ne)}return U}function Jk(s){return function(c){return Ca(c,s)}}function Em(s,c,v,N){var R=N?SH:Ss,U=-1,Q=c.length,ne=s;for(s===c&&(c=Jn(c)),v&&(ne=qt(s,yr(v)));++U<Q;)for(var ce=0,ye=c[U],be=v?v(ye):ye;(ce=R(ne,be,ce,N))>-1;)ne!==s&&Ld.call(ne,ce,1),Ld.call(s,ce,1);return s}function i_(s,c){for(var v=s?c.length:0,N=v-1;v--;){var R=c[v];if(v==N||R!==U){var U=R;di(R)?Ld.call(s,R,1):Nm(s,R)}}return s}function $m(s,c){return s+jd(j$()*(c-s+1))}function e9(s,c,v,N){for(var R=-1,U=vn(zd((c-s)/(v||1)),0),Q=pe(U);U--;)Q[N?U:++R]=s,s+=v;return Q}function _m(s,c){var v="";if(!s||c<1||c>V)return v;do c%2&&(v+=s),c=jd(c/2),c&&(s+=s);while(c);return v}function at(s,c){return km(F_(s,c,nr),s+"")}function t9(s){return H$(Fs(s))}function n9(s,c){var v=Fs(s);return nf(v,ba(c,0,v.length))}function rc(s,c,v,N){if(!Yt(s))return s;c=ki(c,s);for(var R=-1,U=c.length,Q=U-1,ne=s;ne!=null&&++R<U;){var ce=Mo(c[R]),ye=v;if(ce==="__proto__"||ce==="constructor"||ce==="prototype")return s;if(R!=Q){var be=ne[ce];ye=N?N(be,ce,ne):n,ye===n&&(ye=Yt(be)?be:di(c[R+1])?[]:{})}Jl(ne,ce,ye),ne=ne[ce]}return s}var a_=Bd?function(s,c){return Bd.set(s,c),s}:nr,r9=Rd?function(s,c){return Rd(s,"toString",{configurable:!0,enumerable:!1,value:Jm(c),writable:!0})}:nr;function o9(s){return nf(Fs(s))}function Hr(s,c,v){var N=-1,R=s.length;c<0&&(c=-c>R?0:R+c),v=v>R?R:v,v<0&&(v+=R),R=c>v?0:v-c>>>0,c>>>=0;for(var U=pe(R);++N<R;)U[N]=s[N+c];return U}function i9(s,c){var v;return Vi(s,function(N,R,U){return v=c(N,R,U),!v}),!!v}function Gd(s,c,v){var N=0,R=s==null?N:s.length;if(typeof c=="number"&&c===c&&R<=Y){for(;N<R;){var U=N+R>>>1,Q=s[U];Q!==null&&!Cr(Q)&&(v?Q<=c:Q<c)?N=U+1:R=U}return R}return Om(s,c,nr,v)}function Om(s,c,v,N){var R=0,U=s==null?0:s.length;if(U===0)return 0;c=v(c);for(var Q=c!==c,ne=c===null,ce=Cr(c),ye=c===n;R<U;){var be=jd((R+U)/2),xe=v(s[be]),Pe=xe!==n,ze=xe===null,Xe=xe===xe,it=Cr(xe);if(Q)var Ye=N||Xe;else ye?Ye=Xe&&(N||Pe):ne?Ye=Xe&&Pe&&(N||!ze):ce?Ye=Xe&&Pe&&!ze&&(N||!it):ze||it?Ye=!1:Ye=N?xe<=c:xe<c;Ye?R=be+1:U=be}return Dn(U,Z)}function s_(s,c){for(var v=-1,N=s.length,R=0,U=[];++v<N;){var Q=s[v],ne=c?c(Q):Q;if(!v||!fo(ne,ce)){var ce=ne;U[R++]=Q===0?0:Q}}return U}function l_(s){return typeof s=="number"?s:Cr(s)?H:+s}function br(s){if(typeof s=="string")return s;if(Je(s))return qt(s,br)+"";if(Cr(s))return B$?B$.call(s):"";var c=s+"";return c=="0"&&1/s==-D?"-0":c}function Hi(s,c,v){var N=-1,R=_d,U=s.length,Q=!0,ne=[],ce=ne;if(v)Q=!1,R=nm;else if(U>=o){var ye=c?null:m9(s);if(ye)return Nd(ye);Q=!1,R=Gl,ce=new ya}else ce=c?[]:ne;e:for(;++N<U;){var be=s[N],xe=c?c(be):be;if(be=v||be!==0?be:0,Q&&xe===xe){for(var Pe=ce.length;Pe--;)if(ce[Pe]===xe)continue e;c&&ce.push(xe),ne.push(be)}else R(ce,xe,v)||(ce!==ne&&ce.push(xe),ne.push(be))}return ne}function Nm(s,c){return c=ki(c,s),s=L_(s,c),s==null||delete s[Mo(kr(c))]}function c_(s,c,v,N){return rc(s,c,v(Ca(s,c)),N)}function Xd(s,c,v,N){for(var R=s.length,U=N?R:-1;(N?U--:++U<R)&&c(s[U],U,s););return v?Hr(s,N?0:U,N?U+1:R):Hr(s,N?U+1:0,N?R:U)}function u_(s,c){var v=s;return v instanceof ft&&(v=v.value()),rm(c,function(N,R){return R.func.apply(R.thisArg,zi([N],R.args))},v)}function Pm(s,c,v){var N=s.length;if(N<2)return N?Hi(s[0]):[];for(var R=-1,U=pe(N);++R<N;)for(var Q=s[R],ne=-1;++ne<N;)ne!=R&&(U[R]=ec(U[R]||Q,s[ne],c,v));return Hi(In(U,1),c,v)}function d_(s,c,v){for(var N=-1,R=s.length,U=c.length,Q={};++N<R;){var ne=N<U?c[N]:n;v(Q,s[N],ne)}return Q}function Im(s){return nn(s)?s:[]}function Tm(s){return typeof s=="function"?s:nr}function ki(s,c){return Je(s)?s:Bm(s,c)?[s]:B_(Nt(s))}var a9=at;function Wi(s,c,v){var N=s.length;return v=v===n?N:v,!c&&v>=N?s:Hr(s,c,v)}var f_=GH||function(s){return Pn.clearTimeout(s)};function g_(s,c){if(c)return s.slice();var v=s.length,N=D$?D$(v):new s.constructor(v);return s.copy(N),N}function Mm(s){var c=new s.constructor(s.byteLength);return new Dd(c).set(new Dd(s)),c}function s9(s,c){var v=c?Mm(s.buffer):s.buffer;return new s.constructor(v,s.byteOffset,s.byteLength)}function l9(s){var c=new s.constructor(s.source,gr.exec(s));return c.lastIndex=s.lastIndex,c}function c9(s){return Ql?Lt(Ql.call(s)):{}}function p_(s,c){var v=c?Mm(s.buffer):s.buffer;return new s.constructor(v,s.byteOffset,s.length)}function h_(s,c){if(s!==c){var v=s!==n,N=s===null,R=s===s,U=Cr(s),Q=c!==n,ne=c===null,ce=c===c,ye=Cr(c);if(!ne&&!ye&&!U&&s>c||U&&Q&&ce&&!ne&&!ye||N&&Q&&ce||!v&&ce||!R)return 1;if(!N&&!U&&!ye&&s<c||ye&&v&&R&&!N&&!U||ne&&v&&R||!Q&&R||!ce)return-1}return 0}function u9(s,c,v){for(var N=-1,R=s.criteria,U=c.criteria,Q=R.length,ne=v.length;++N<Q;){var ce=h_(R[N],U[N]);if(ce){if(N>=ne)return ce;var ye=v[N];return ce*(ye=="desc"?-1:1)}}return s.index-c.index}function m_(s,c,v,N){for(var R=-1,U=s.length,Q=v.length,ne=-1,ce=c.length,ye=vn(U-Q,0),be=pe(ce+ye),xe=!N;++ne<ce;)be[ne]=c[ne];for(;++R<Q;)(xe||R<U)&&(be[v[R]]=s[R]);for(;ye--;)be[ne++]=s[R++];return be}function v_(s,c,v,N){for(var R=-1,U=s.length,Q=-1,ne=v.length,ce=-1,ye=c.length,be=vn(U-ne,0),xe=pe(be+ye),Pe=!N;++R<be;)xe[R]=s[R];for(var ze=R;++ce<ye;)xe[ze+ce]=c[ce];for(;++Q<ne;)(Pe||R<U)&&(xe[ze+v[Q]]=s[R++]);return xe}function Jn(s,c){var v=-1,N=s.length;for(c||(c=pe(N));++v<N;)c[v]=s[v];return c}function To(s,c,v,N){var R=!v;v||(v={});for(var U=-1,Q=c.length;++U<Q;){var ne=c[U],ce=N?N(v[ne],s[ne],ne,v,s):n;ce===n&&(ce=s[ne]),R?li(v,ne,ce):Jl(v,ne,ce)}return v}function d9(s,c){return To(s,jm(s),c)}function f9(s,c){return To(s,I_(s),c)}function Yd(s,c){return function(v,N){var R=Je(v)?vH:Dk,U=c?c():{};return R(v,s,qe(N,2),U)}}function Ts(s){return at(function(c,v){var N=-1,R=v.length,U=R>1?v[R-1]:n,Q=R>2?v[2]:n;for(U=s.length>3&&typeof U=="function"?(R--,U):n,Q&&Un(v[0],v[1],Q)&&(U=R<3?n:U,R=1),c=Lt(c);++N<R;){var ne=v[N];ne&&s(c,ne,N,U)}return c})}function y_(s,c){return function(v,N){if(v==null)return v;if(!er(v))return s(v,N);for(var R=v.length,U=c?R:-1,Q=Lt(v);(c?U--:++U<R)&&N(Q[U],U,Q)!==!1;);return v}}function b_(s){return function(c,v,N){for(var R=-1,U=Lt(c),Q=N(c),ne=Q.length;ne--;){var ce=Q[s?ne:++R];if(v(U[ce],ce,U)===!1)break}return c}}function g9(s,c,v){var N=c&y,R=oc(s);function U(){var Q=this&&this!==Pn&&this instanceof U?R:s;return Q.apply(N?v:this,arguments)}return U}function C_(s){return function(c){c=Nt(c);var v=Es(c)?co(c):n,N=v?v[0]:c.charAt(0),R=v?Wi(v,1).join(""):c.slice(1);return N[s]()+R}}function Ms(s){return function(c){return rm(yO(vO(c).replace(Ul,"")),s,"")}}function oc(s){return function(){var c=arguments;switch(c.length){case 0:return new s;case 1:return new s(c[0]);case 2:return new s(c[0],c[1]);case 3:return new s(c[0],c[1],c[2]);case 4:return new s(c[0],c[1],c[2],c[3]);case 5:return new s(c[0],c[1],c[2],c[3],c[4]);case 6:return new s(c[0],c[1],c[2],c[3],c[4],c[5]);case 7:return new s(c[0],c[1],c[2],c[3],c[4],c[5],c[6])}var v=Is(s.prototype),N=s.apply(v,c);return Yt(N)?N:v}}function p9(s,c,v){var N=oc(s);function R(){for(var U=arguments.length,Q=pe(U),ne=U,ce=As(R);ne--;)Q[ne]=arguments[ne];var ye=U<3&&Q[0]!==ce&&Q[U-1]!==ce?[]:ji(Q,ce);if(U-=ye.length,U<v)return $_(s,c,Kd,R.placeholder,n,Q,ye,n,n,v-U);var be=this&&this!==Pn&&this instanceof R?N:s;return vr(be,this,Q)}return R}function x_(s){return function(c,v,N){var R=Lt(c);if(!er(c)){var U=qe(v,3);c=$n(c),v=function(ne){return U(R[ne],ne,R)}}var Q=s(c,v,N);return Q>-1?R[U?c[Q]:Q]:n}}function w_(s){return ui(function(c){var v=c.length,N=v,R=Br.prototype.thru;for(s&&c.reverse();N--;){var U=c[N];if(typeof U!="function")throw new jr(a);if(R&&!Q&&ef(U)=="wrapper")var Q=new Br([],!0)}for(N=Q?N:v;++N<v;){U=c[N];var ne=ef(U),ce=ne=="wrapper"?Rm(U):n;ce&&Vm(ce[0])&&ce[1]==(_|w|S|P)&&!ce[4].length&&ce[9]==1?Q=Q[ef(ce[0])].apply(Q,ce[3]):Q=U.length==1&&Vm(U)?Q[ne]():Q.thru(U)}return function(){var ye=arguments,be=ye[0];if(Q&&ye.length==1&&Je(be))return Q.plant(be).value();for(var xe=0,Pe=v?c[xe].apply(this,ye):be;++xe<v;)Pe=c[xe].call(this,Pe);return Pe}})}function Kd(s,c,v,N,R,U,Q,ne,ce,ye){var be=c&_,xe=c&y,Pe=c&x,ze=c&(w|E),Xe=c&T,it=Pe?n:oc(s);function Ye(){for(var lt=arguments.length,ht=pe(lt),xr=lt;xr--;)ht[xr]=arguments[xr];if(ze)var qn=As(Ye),wr=_H(ht,qn);if(N&&(ht=m_(ht,N,R,ze)),U&&(ht=v_(ht,U,Q,ze)),lt-=wr,ze&<<ye){var rn=ji(ht,qn);return $_(s,c,Kd,Ye.placeholder,v,ht,rn,ne,ce,ye-lt)}var go=xe?v:this,pi=Pe?go[s]:s;return lt=ht.length,ne?ht=D9(ht,ne):Xe&<>1&&ht.reverse(),be&&ce<lt&&(ht.length=ce),this&&this!==Pn&&this instanceof Ye&&(pi=it||oc(pi)),pi.apply(go,ht)}return Ye}function S_(s,c){return function(v,N){return Hk(v,s,c(N),{})}}function Zd(s,c){return function(v,N){var R;if(v===n&&N===n)return c;if(v!==n&&(R=v),N!==n){if(R===n)return N;typeof v=="string"||typeof N=="string"?(v=br(v),N=br(N)):(v=l_(v),N=l_(N)),R=s(v,N)}return R}}function Am(s){return ui(function(c){return c=qt(c,yr(qe())),at(function(v){var N=this;return s(c,function(R){return vr(R,N,v)})})})}function Qd(s,c){c=c===n?" ":br(c);var v=c.length;if(v<2)return v?_m(c,s):c;var N=_m(c,zd(s/$s(c)));return Es(c)?Wi(co(N),0,s).join(""):N.slice(0,s)}function h9(s,c,v,N){var R=c&y,U=oc(s);function Q(){for(var ne=-1,ce=arguments.length,ye=-1,be=N.length,xe=pe(be+ce),Pe=this&&this!==Pn&&this instanceof Q?U:s;++ye<be;)xe[ye]=N[ye];for(;ce--;)xe[ye++]=arguments[++ne];return vr(Pe,R?v:this,xe)}return Q}function E_(s){return function(c,v,N){return N&&typeof N!="number"&&Un(c,v,N)&&(v=N=n),c=gi(c),v===n?(v=c,c=0):v=gi(v),N=N===n?c<v?1:-1:gi(N),e9(c,v,N,s)}}function Jd(s){return function(c,v){return typeof c=="string"&&typeof v=="string"||(c=Wr(c),v=Wr(v)),s(c,v)}}function $_(s,c,v,N,R,U,Q,ne,ce,ye){var be=c&w,xe=be?Q:n,Pe=be?n:Q,ze=be?U:n,Xe=be?n:U;c|=be?S:O,c&=~(be?O:S),c&$||(c&=-4);var it=[s,c,R,ze,xe,Xe,Pe,ne,ce,ye],Ye=v.apply(n,it);return Vm(s)&&R_(Ye,it),Ye.placeholder=N,z_(Ye,s,c)}function Dm(s){var c=mn[s];return function(v,N){if(v=Wr(v),N=N==null?0:Dn(ot(N),292),N&&z$(v)){var R=(Nt(v)+"e").split("e"),U=c(R[0]+"e"+(+R[1]+N));return R=(Nt(U)+"e").split("e"),+(R[0]+"e"+(+R[1]-N))}return c(v)}}var m9=Ns&&1/Nd(new Ns([,-0]))[1]==D?function(s){return new Ns(s)}:nv;function __(s){return function(c){var v=Fn(c);return v==oe?um(c):v==De?AH(c):$H(c,s(c))}}function ci(s,c,v,N,R,U,Q,ne){var ce=c&x;if(!ce&&typeof s!="function")throw new jr(a);var ye=N?N.length:0;if(ye||(c&=-97,N=R=n),Q=Q===n?Q:vn(ot(Q),0),ne=ne===n?ne:ot(ne),ye-=R?R.length:0,c&O){var be=N,xe=R;N=R=n}var Pe=ce?n:Rm(s),ze=[s,c,v,N,R,be,xe,U,Q,ne];if(Pe&&T9(ze,Pe),s=ze[0],c=ze[1],v=ze[2],N=ze[3],R=ze[4],ne=ze[9]=ze[9]===n?ce?0:s.length:vn(ze[9]-ye,0),!ne&&c&(w|E)&&(c&=-25),!c||c==y)var Xe=g9(s,c,v);else c==w||c==E?Xe=p9(s,c,ne):(c==S||c==(y|S))&&!R.length?Xe=h9(s,c,v,N):Xe=Kd.apply(n,ze);var it=Pe?a_:R_;return z_(it(Xe,ze),s,c)}function O_(s,c,v,N){return s===n||fo(s,Os[v])&&!Mt.call(N,v)?c:s}function N_(s,c,v,N,R,U){return Yt(s)&&Yt(c)&&(U.set(c,s),qd(s,c,n,N_,U),U.delete(c)),s}function v9(s){return sc(s)?n:s}function P_(s,c,v,N,R,U){var Q=v&b,ne=s.length,ce=c.length;if(ne!=ce&&!(Q&&ce>ne))return!1;var ye=U.get(s),be=U.get(c);if(ye&&be)return ye==c&&be==s;var xe=-1,Pe=!0,ze=v&C?new ya:n;for(U.set(s,c),U.set(c,s);++xe<ne;){var Xe=s[xe],it=c[xe];if(N)var Ye=Q?N(it,Xe,xe,c,s,U):N(Xe,it,xe,s,c,U);if(Ye!==n){if(Ye)continue;Pe=!1;break}if(ze){if(!om(c,function(lt,ht){if(!Gl(ze,ht)&&(Xe===lt||R(Xe,lt,v,N,U)))return ze.push(ht)})){Pe=!1;break}}else if(!(Xe===it||R(Xe,it,v,N,U))){Pe=!1;break}}return U.delete(s),U.delete(c),Pe}function y9(s,c,v,N,R,U,Q){switch(v){case tt:if(s.byteLength!=c.byteLength||s.byteOffset!=c.byteOffset)return!1;s=s.buffer,c=c.buffer;case pt:return!(s.byteLength!=c.byteLength||!U(new Dd(s),new Dd(c)));case ee:case ae:case he:return fo(+s,+c);case ue:return s.name==c.name&&s.message==c.message;case Ge:case We:return s==c+"";case oe:var ne=um;case De:var ce=N&b;if(ne||(ne=Nd),s.size!=c.size&&!ce)return!1;var ye=Q.get(s);if(ye)return ye==c;N|=C,Q.set(s,c);var be=P_(ne(s),ne(c),N,R,U,Q);return Q.delete(s),be;case Te:if(Ql)return Ql.call(s)==Ql.call(c)}return!1}function b9(s,c,v,N,R,U){var Q=v&b,ne=Fm(s),ce=ne.length,ye=Fm(c),be=ye.length;if(ce!=be&&!Q)return!1;for(var xe=ce;xe--;){var Pe=ne[xe];if(!(Q?Pe in c:Mt.call(c,Pe)))return!1}var ze=U.get(s),Xe=U.get(c);if(ze&&Xe)return ze==c&&Xe==s;var it=!0;U.set(s,c),U.set(c,s);for(var Ye=Q;++xe<ce;){Pe=ne[xe];var lt=s[Pe],ht=c[Pe];if(N)var xr=Q?N(ht,lt,Pe,c,s,U):N(lt,ht,Pe,s,c,U);if(!(xr===n?lt===ht||R(lt,ht,v,N,U):xr)){it=!1;break}Ye||(Ye=Pe=="constructor")}if(it&&!Ye){var qn=s.constructor,wr=c.constructor;qn!=wr&&"constructor"in s&&"constructor"in c&&!(typeof qn=="function"&&qn instanceof qn&&typeof wr=="function"&&wr instanceof wr)&&(it=!1)}return U.delete(s),U.delete(c),it}function ui(s){return km(F_(s,n,W_),s+"")}function Fm(s){return Y$(s,$n,jm)}function Lm(s){return Y$(s,tr,I_)}var Rm=Bd?function(s){return Bd.get(s)}:nv;function ef(s){for(var c=s.name+"",v=Ps[c],N=Mt.call(Ps,c)?v.length:0;N--;){var R=v[N],U=R.func;if(U==null||U==s)return R.name}return c}function As(s){var c=Mt.call(k,"placeholder")?k:s;return c.placeholder}function qe(){var s=k.iteratee||ev;return s=s===ev?Q$:s,arguments.length?s(arguments[0],arguments[1]):s}function tf(s,c){var v=s.__data__;return O9(c)?v[typeof c=="string"?"string":"hash"]:v.map}function zm(s){for(var c=$n(s),v=c.length;v--;){var N=c[v],R=s[N];c[v]=[N,R,A_(R)]}return c}function xa(s,c){var v=IH(s,c);return Z$(v)?v:n}function C9(s){var c=Mt.call(s,ma),v=s[ma];try{s[ma]=n;var N=!0}catch{}var R=Md.call(s);return N&&(c?s[ma]=v:delete s[ma]),R}var jm=fm?function(s){return s==null?[]:(s=Lt(s),Ri(fm(s),function(c){return L$.call(s,c)}))}:rv,I_=fm?function(s){for(var c=[];s;)zi(c,jm(s)),s=Fd(s);return c}:rv,Fn=Wn;(gm&&Fn(new gm(new ArrayBuffer(1)))!=tt||Yl&&Fn(new Yl)!=oe||pm&&Fn(pm.resolve())!=Re||Ns&&Fn(new Ns)!=De||Kl&&Fn(new Kl)!=Be)&&(Fn=function(s){var c=Wn(s),v=c==_e?s.constructor:n,N=v?wa(v):"";if(N)switch(N){case nk:return tt;case rk:return oe;case ok:return Re;case ik:return De;case ak:return Be}return c});function x9(s,c,v){for(var N=-1,R=v.length;++N<R;){var U=v[N],Q=U.size;switch(U.type){case"drop":s+=Q;break;case"dropRight":c-=Q;break;case"take":c=Dn(c,s+Q);break;case"takeRight":s=vn(s,c-Q);break}}return{start:s,end:c}}function w9(s){var c=s.match(Ct);return c?c[1].split(Tt):[]}function T_(s,c,v){c=ki(c,s);for(var N=-1,R=c.length,U=!1;++N<R;){var Q=Mo(c[N]);if(!(U=s!=null&&v(s,Q)))break;s=s[Q]}return U||++N!=R?U:(R=s==null?0:s.length,!!R&&cf(R)&&di(Q,R)&&(Je(s)||Sa(s)))}function S9(s){var c=s.length,v=new s.constructor(c);return c&&typeof s[0]=="string"&&Mt.call(s,"index")&&(v.index=s.index,v.input=s.input),v}function M_(s){return typeof s.constructor=="function"&&!ic(s)?Is(Fd(s)):{}}function E9(s,c,v){var N=s.constructor;switch(c){case pt:return Mm(s);case ee:case ae:return new N(+s);case tt:return s9(s,v);case st:case vt:case nt:case rt:case Ke:case $e:case Fe:case Ce:case Se:return p_(s,v);case oe:return new N;case he:case We:return new N(s);case Ge:return l9(s);case De:return new N;case Te:return c9(s)}}function $9(s,c){var v=c.length;if(!v)return s;var N=v-1;return c[N]=(v>1?"& ":"")+c[N],c=c.join(v>2?", ":" "),s.replace(ro,`{
|
|
297
|
+
/* [wrapped with `+c+`] */
|
|
298
|
+
`)}function _9(s){return Je(s)||Sa(s)||!!(R$&&s&&s[R$])}function di(s,c){var v=typeof s;return c=c??V,!!c&&(v=="number"||v!="symbol"&&Sn.test(s))&&s>-1&&s%1==0&&s<c}function Un(s,c,v){if(!Yt(v))return!1;var N=typeof c;return(N=="number"?er(v)&&di(c,v.length):N=="string"&&c in v)?fo(v[c],s):!1}function Bm(s,c){if(Je(s))return!1;var v=typeof s;return v=="number"||v=="symbol"||v=="boolean"||s==null||Cr(s)?!0:ut.test(s)||!un.test(s)||c!=null&&s in Lt(c)}function O9(s){var c=typeof s;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?s!=="__proto__":s===null}function Vm(s){var c=ef(s),v=k[c];if(typeof v!="function"||!(c in ft.prototype))return!1;if(s===v)return!0;var N=Rm(v);return!!N&&s===N[0]}function N9(s){return!!A$&&A$ in s}var P9=Id?fi:ov;function ic(s){var c=s&&s.constructor,v=typeof c=="function"&&c.prototype||Os;return s===v}function A_(s){return s===s&&!Yt(s)}function D_(s,c){return function(v){return v==null?!1:v[s]===c&&(c!==n||s in Lt(v))}}function I9(s){var c=sf(s,function(N){return v.size===d&&v.clear(),N}),v=c.cache;return c}function T9(s,c){var v=s[1],N=c[1],R=v|N,U=R<(y|x|_),Q=N==_&&v==w||N==_&&v==P&&s[7].length<=c[8]||N==(_|P)&&c[7].length<=c[8]&&v==w;if(!(U||Q))return s;N&y&&(s[2]=c[2],R|=v&y?0:$);var ne=c[3];if(ne){var ce=s[3];s[3]=ce?m_(ce,ne,c[4]):ne,s[4]=ce?ji(s[3],f):c[4]}return ne=c[5],ne&&(ce=s[5],s[5]=ce?v_(ce,ne,c[6]):ne,s[6]=ce?ji(s[5],f):c[6]),ne=c[7],ne&&(s[7]=ne),N&_&&(s[8]=s[8]==null?c[8]:Dn(s[8],c[8])),s[9]==null&&(s[9]=c[9]),s[0]=c[0],s[1]=R,s}function M9(s){var c=[];if(s!=null)for(var v in Lt(s))c.push(v);return c}function A9(s){return Md.call(s)}function F_(s,c,v){return c=vn(c===n?s.length-1:c,0),function(){for(var N=arguments,R=-1,U=vn(N.length-c,0),Q=pe(U);++R<U;)Q[R]=N[c+R];R=-1;for(var ne=pe(c+1);++R<c;)ne[R]=N[R];return ne[c]=v(Q),vr(s,this,ne)}}function L_(s,c){return c.length<2?s:Ca(s,Hr(c,0,-1))}function D9(s,c){for(var v=s.length,N=Dn(c.length,v),R=Jn(s);N--;){var U=c[N];s[N]=di(U,v)?R[U]:n}return s}function Hm(s,c){if(!(c==="constructor"&&typeof s[c]=="function")&&c!="__proto__")return s[c]}var R_=j_(a_),ac=YH||function(s,c){return Pn.setTimeout(s,c)},km=j_(r9);function z_(s,c,v){var N=c+"";return km(s,$9(N,F9(w9(N),v)))}function j_(s){var c=0,v=0;return function(){var N=JH(),R=j-(N-v);if(v=N,R>0){if(++c>=B)return arguments[0]}else c=0;return s.apply(n,arguments)}}function nf(s,c){var v=-1,N=s.length,R=N-1;for(c=c===n?N:c;++v<c;){var U=$m(v,R),Q=s[U];s[U]=s[v],s[v]=Q}return s.length=c,s}var B_=I9(function(s){var c=[];return s.charCodeAt(0)===46&&c.push(""),s.replace(mt,function(v,N,R,U){c.push(R?U.replace(Bn,"$1"):N||v)}),c});function Mo(s){if(typeof s=="string"||Cr(s))return s;var c=s+"";return c=="0"&&1/s==-D?"-0":c}function wa(s){if(s!=null){try{return Td.call(s)}catch{}try{return s+""}catch{}}return""}function F9(s,c){return zr(G,function(v){var N="_."+v[0];c&v[1]&&!_d(s,N)&&s.push(N)}),s.sort()}function V_(s){if(s instanceof ft)return s.clone();var c=new Br(s.__wrapped__,s.__chain__);return c.__actions__=Jn(s.__actions__),c.__index__=s.__index__,c.__values__=s.__values__,c}function L9(s,c,v){(v?Un(s,c,v):c===n)?c=1:c=vn(ot(c),0);var N=s==null?0:s.length;if(!N||c<1)return[];for(var R=0,U=0,Q=pe(zd(N/c));R<N;)Q[U++]=Hr(s,R,R+=c);return Q}function R9(s){for(var c=-1,v=s==null?0:s.length,N=0,R=[];++c<v;){var U=s[c];U&&(R[N++]=U)}return R}function z9(){var s=arguments.length;if(!s)return[];for(var c=pe(s-1),v=arguments[0],N=s;N--;)c[N-1]=arguments[N];return zi(Je(v)?Jn(v):[v],In(c,1))}var j9=at(function(s,c){return nn(s)?ec(s,In(c,1,nn,!0)):[]}),B9=at(function(s,c){var v=kr(c);return nn(v)&&(v=n),nn(s)?ec(s,In(c,1,nn,!0),qe(v,2)):[]}),V9=at(function(s,c){var v=kr(c);return nn(v)&&(v=n),nn(s)?ec(s,In(c,1,nn,!0),n,v):[]});function H9(s,c,v){var N=s==null?0:s.length;return N?(c=v||c===n?1:ot(c),Hr(s,c<0?0:c,N)):[]}function k9(s,c,v){var N=s==null?0:s.length;return N?(c=v||c===n?1:ot(c),c=N-c,Hr(s,0,c<0?0:c)):[]}function W9(s,c){return s&&s.length?Xd(s,qe(c,3),!0,!0):[]}function U9(s,c){return s&&s.length?Xd(s,qe(c,3),!0):[]}function q9(s,c,v,N){var R=s==null?0:s.length;return R?(v&&typeof v!="number"&&Un(s,c,v)&&(v=0,N=R),zk(s,c,v,N)):[]}function H_(s,c,v){var N=s==null?0:s.length;if(!N)return-1;var R=v==null?0:ot(v);return R<0&&(R=vn(N+R,0)),Od(s,qe(c,3),R)}function k_(s,c,v){var N=s==null?0:s.length;if(!N)return-1;var R=N-1;return v!==n&&(R=ot(v),R=v<0?vn(N+R,0):Dn(R,N-1)),Od(s,qe(c,3),R,!0)}function W_(s){var c=s==null?0:s.length;return c?In(s,1):[]}function G9(s){var c=s==null?0:s.length;return c?In(s,D):[]}function X9(s,c){var v=s==null?0:s.length;return v?(c=c===n?1:ot(c),In(s,c)):[]}function Y9(s){for(var c=-1,v=s==null?0:s.length,N={};++c<v;){var R=s[c];N[R[0]]=R[1]}return N}function U_(s){return s&&s.length?s[0]:n}function K9(s,c,v){var N=s==null?0:s.length;if(!N)return-1;var R=v==null?0:ot(v);return R<0&&(R=vn(N+R,0)),Ss(s,c,R)}function Z9(s){var c=s==null?0:s.length;return c?Hr(s,0,-1):[]}var Q9=at(function(s){var c=qt(s,Im);return c.length&&c[0]===s[0]?Cm(c):[]}),J9=at(function(s){var c=kr(s),v=qt(s,Im);return c===kr(v)?c=n:v.pop(),v.length&&v[0]===s[0]?Cm(v,qe(c,2)):[]}),eW=at(function(s){var c=kr(s),v=qt(s,Im);return c=typeof c=="function"?c:n,c&&v.pop(),v.length&&v[0]===s[0]?Cm(v,n,c):[]});function tW(s,c){return s==null?"":ZH.call(s,c)}function kr(s){var c=s==null?0:s.length;return c?s[c-1]:n}function nW(s,c,v){var N=s==null?0:s.length;if(!N)return-1;var R=N;return v!==n&&(R=ot(v),R=R<0?vn(N+R,0):Dn(R,N-1)),c===c?FH(s,c,R):Od(s,$$,R,!0)}function rW(s,c){return s&&s.length?n_(s,ot(c)):n}var oW=at(q_);function q_(s,c){return s&&s.length&&c&&c.length?Em(s,c):s}function iW(s,c,v){return s&&s.length&&c&&c.length?Em(s,c,qe(v,2)):s}function aW(s,c,v){return s&&s.length&&c&&c.length?Em(s,c,n,v):s}var sW=ui(function(s,c){var v=s==null?0:s.length,N=mm(s,c);return i_(s,qt(c,function(R){return di(R,v)?+R:R}).sort(h_)),N});function lW(s,c){var v=[];if(!(s&&s.length))return v;var N=-1,R=[],U=s.length;for(c=qe(c,3);++N<U;){var Q=s[N];c(Q,N,s)&&(v.push(Q),R.push(N))}return i_(s,R),v}function Wm(s){return s==null?s:tk.call(s)}function cW(s,c,v){var N=s==null?0:s.length;return N?(v&&typeof v!="number"&&Un(s,c,v)?(c=0,v=N):(c=c==null?0:ot(c),v=v===n?N:ot(v)),Hr(s,c,v)):[]}function uW(s,c){return Gd(s,c)}function dW(s,c,v){return Om(s,c,qe(v,2))}function fW(s,c){var v=s==null?0:s.length;if(v){var N=Gd(s,c);if(N<v&&fo(s[N],c))return N}return-1}function gW(s,c){return Gd(s,c,!0)}function pW(s,c,v){return Om(s,c,qe(v,2),!0)}function hW(s,c){var v=s==null?0:s.length;if(v){var N=Gd(s,c,!0)-1;if(fo(s[N],c))return N}return-1}function mW(s){return s&&s.length?s_(s):[]}function vW(s,c){return s&&s.length?s_(s,qe(c,2)):[]}function yW(s){var c=s==null?0:s.length;return c?Hr(s,1,c):[]}function bW(s,c,v){return s&&s.length?(c=v||c===n?1:ot(c),Hr(s,0,c<0?0:c)):[]}function CW(s,c,v){var N=s==null?0:s.length;return N?(c=v||c===n?1:ot(c),c=N-c,Hr(s,c<0?0:c,N)):[]}function xW(s,c){return s&&s.length?Xd(s,qe(c,3),!1,!0):[]}function wW(s,c){return s&&s.length?Xd(s,qe(c,3)):[]}var SW=at(function(s){return Hi(In(s,1,nn,!0))}),EW=at(function(s){var c=kr(s);return nn(c)&&(c=n),Hi(In(s,1,nn,!0),qe(c,2))}),$W=at(function(s){var c=kr(s);return c=typeof c=="function"?c:n,Hi(In(s,1,nn,!0),n,c)});function _W(s){return s&&s.length?Hi(s):[]}function OW(s,c){return s&&s.length?Hi(s,qe(c,2)):[]}function NW(s,c){return c=typeof c=="function"?c:n,s&&s.length?Hi(s,n,c):[]}function Um(s){if(!(s&&s.length))return[];var c=0;return s=Ri(s,function(v){if(nn(v))return c=vn(v.length,c),!0}),lm(c,function(v){return qt(s,im(v))})}function G_(s,c){if(!(s&&s.length))return[];var v=Um(s);return c==null?v:qt(v,function(N){return vr(c,n,N)})}var PW=at(function(s,c){return nn(s)?ec(s,c):[]}),IW=at(function(s){return Pm(Ri(s,nn))}),TW=at(function(s){var c=kr(s);return nn(c)&&(c=n),Pm(Ri(s,nn),qe(c,2))}),MW=at(function(s){var c=kr(s);return c=typeof c=="function"?c:n,Pm(Ri(s,nn),n,c)}),AW=at(Um);function DW(s,c){return d_(s||[],c||[],Jl)}function FW(s,c){return d_(s||[],c||[],rc)}var LW=at(function(s){var c=s.length,v=c>1?s[c-1]:n;return v=typeof v=="function"?(s.pop(),v):n,G_(s,v)});function X_(s){var c=k(s);return c.__chain__=!0,c}function RW(s,c){return c(s),s}function rf(s,c){return c(s)}var zW=ui(function(s){var c=s.length,v=c?s[0]:0,N=this.__wrapped__,R=function(U){return mm(U,s)};return c>1||this.__actions__.length||!(N instanceof ft)||!di(v)?this.thru(R):(N=N.slice(v,+v+(c?1:0)),N.__actions__.push({func:rf,args:[R],thisArg:n}),new Br(N,this.__chain__).thru(function(U){return c&&!U.length&&U.push(n),U}))});function jW(){return X_(this)}function BW(){return new Br(this.value(),this.__chain__)}function VW(){this.__values__===n&&(this.__values__=lO(this.value()));var s=this.__index__>=this.__values__.length,c=s?n:this.__values__[this.__index__++];return{done:s,value:c}}function HW(){return this}function kW(s){for(var c,v=this;v instanceof Hd;){var N=V_(v);N.__index__=0,N.__values__=n,c?R.__wrapped__=N:c=N;var R=N;v=v.__wrapped__}return R.__wrapped__=s,c}function WW(){var s=this.__wrapped__;if(s instanceof ft){var c=s;return this.__actions__.length&&(c=new ft(this)),c=c.reverse(),c.__actions__.push({func:rf,args:[Wm],thisArg:n}),new Br(c,this.__chain__)}return this.thru(Wm)}function UW(){return u_(this.__wrapped__,this.__actions__)}var qW=Yd(function(s,c,v){Mt.call(s,v)?++s[v]:li(s,v,1)});function GW(s,c,v){var N=Je(s)?S$:Rk;return v&&Un(s,c,v)&&(c=n),N(s,qe(c,3))}function XW(s,c){var v=Je(s)?Ri:G$;return v(s,qe(c,3))}var YW=x_(H_),KW=x_(k_);function ZW(s,c){return In(of(s,c),1)}function QW(s,c){return In(of(s,c),D)}function JW(s,c,v){return v=v===n?1:ot(v),In(of(s,c),v)}function Y_(s,c){var v=Je(s)?zr:Vi;return v(s,qe(c,3))}function K_(s,c){var v=Je(s)?yH:q$;return v(s,qe(c,3))}var eU=Yd(function(s,c,v){Mt.call(s,v)?s[v].push(c):li(s,v,[c])});function tU(s,c,v,N){s=er(s)?s:Fs(s),v=v&&!N?ot(v):0;var R=s.length;return v<0&&(v=vn(R+v,0)),uf(s)?v<=R&&s.indexOf(c,v)>-1:!!R&&Ss(s,c,v)>-1}var nU=at(function(s,c,v){var N=-1,R=typeof c=="function",U=er(s)?pe(s.length):[];return Vi(s,function(Q){U[++N]=R?vr(c,Q,v):tc(Q,c,v)}),U}),rU=Yd(function(s,c,v){li(s,v,c)});function of(s,c){var v=Je(s)?qt:J$;return v(s,qe(c,3))}function oU(s,c,v,N){return s==null?[]:(Je(c)||(c=c==null?[]:[c]),v=N?n:v,Je(v)||(v=v==null?[]:[v]),r_(s,c,v))}var iU=Yd(function(s,c,v){s[v?0:1].push(c)},function(){return[[],[]]});function aU(s,c,v){var N=Je(s)?rm:O$,R=arguments.length<3;return N(s,qe(c,4),v,R,Vi)}function sU(s,c,v){var N=Je(s)?bH:O$,R=arguments.length<3;return N(s,qe(c,4),v,R,q$)}function lU(s,c){var v=Je(s)?Ri:G$;return v(s,lf(qe(c,3)))}function cU(s){var c=Je(s)?H$:t9;return c(s)}function uU(s,c,v){(v?Un(s,c,v):c===n)?c=1:c=ot(c);var N=Je(s)?Mk:n9;return N(s,c)}function dU(s){var c=Je(s)?Ak:o9;return c(s)}function fU(s){if(s==null)return 0;if(er(s))return uf(s)?$s(s):s.length;var c=Fn(s);return c==oe||c==De?s.size:wm(s).length}function gU(s,c,v){var N=Je(s)?om:i9;return v&&Un(s,c,v)&&(c=n),N(s,qe(c,3))}var pU=at(function(s,c){if(s==null)return[];var v=c.length;return v>1&&Un(s,c[0],c[1])?c=[]:v>2&&Un(c[0],c[1],c[2])&&(c=[c[0]]),r_(s,In(c,1),[])}),af=XH||function(){return Pn.Date.now()};function hU(s,c){if(typeof c!="function")throw new jr(a);return s=ot(s),function(){if(--s<1)return c.apply(this,arguments)}}function Z_(s,c,v){return c=v?n:c,c=s&&c==null?s.length:c,ci(s,_,n,n,n,n,c)}function Q_(s,c){var v;if(typeof c!="function")throw new jr(a);return s=ot(s),function(){return--s>0&&(v=c.apply(this,arguments)),s<=1&&(c=n),v}}var qm=at(function(s,c,v){var N=y;if(v.length){var R=ji(v,As(qm));N|=S}return ci(s,N,c,v,R)}),J_=at(function(s,c,v){var N=y|x;if(v.length){var R=ji(v,As(J_));N|=S}return ci(c,N,s,v,R)});function eO(s,c,v){c=v?n:c;var N=ci(s,w,n,n,n,n,n,c);return N.placeholder=eO.placeholder,N}function tO(s,c,v){c=v?n:c;var N=ci(s,E,n,n,n,n,n,c);return N.placeholder=tO.placeholder,N}function nO(s,c,v){var N,R,U,Q,ne,ce,ye=0,be=!1,xe=!1,Pe=!0;if(typeof s!="function")throw new jr(a);c=Wr(c)||0,Yt(v)&&(be=!!v.leading,xe="maxWait"in v,U=xe?vn(Wr(v.maxWait)||0,c):U,Pe="trailing"in v?!!v.trailing:Pe);function ze(rn){var go=N,pi=R;return N=R=n,ye=rn,Q=s.apply(pi,go),Q}function Xe(rn){return ye=rn,ne=ac(lt,c),be?ze(rn):Q}function it(rn){var go=rn-ce,pi=rn-ye,xO=c-go;return xe?Dn(xO,U-pi):xO}function Ye(rn){var go=rn-ce,pi=rn-ye;return ce===n||go>=c||go<0||xe&&pi>=U}function lt(){var rn=af();if(Ye(rn))return ht(rn);ne=ac(lt,it(rn))}function ht(rn){return ne=n,Pe&&N?ze(rn):(N=R=n,Q)}function xr(){ne!==n&&f_(ne),ye=0,N=ce=R=ne=n}function qn(){return ne===n?Q:ht(af())}function wr(){var rn=af(),go=Ye(rn);if(N=arguments,R=this,ce=rn,go){if(ne===n)return Xe(ce);if(xe)return f_(ne),ne=ac(lt,c),ze(ce)}return ne===n&&(ne=ac(lt,c)),Q}return wr.cancel=xr,wr.flush=qn,wr}var mU=at(function(s,c){return U$(s,1,c)}),vU=at(function(s,c,v){return U$(s,Wr(c)||0,v)});function yU(s){return ci(s,T)}function sf(s,c){if(typeof s!="function"||c!=null&&typeof c!="function")throw new jr(a);var v=function(){var N=arguments,R=c?c.apply(this,N):N[0],U=v.cache;if(U.has(R))return U.get(R);var Q=s.apply(this,N);return v.cache=U.set(R,Q)||U,Q};return v.cache=new(sf.Cache||si),v}sf.Cache=si;function lf(s){if(typeof s!="function")throw new jr(a);return function(){var c=arguments;switch(c.length){case 0:return!s.call(this);case 1:return!s.call(this,c[0]);case 2:return!s.call(this,c[0],c[1]);case 3:return!s.call(this,c[0],c[1],c[2])}return!s.apply(this,c)}}function bU(s){return Q_(2,s)}var CU=a9(function(s,c){c=c.length==1&&Je(c[0])?qt(c[0],yr(qe())):qt(In(c,1),yr(qe()));var v=c.length;return at(function(N){for(var R=-1,U=Dn(N.length,v);++R<U;)N[R]=c[R].call(this,N[R]);return vr(s,this,N)})}),Gm=at(function(s,c){var v=ji(c,As(Gm));return ci(s,S,n,c,v)}),rO=at(function(s,c){var v=ji(c,As(rO));return ci(s,O,n,c,v)}),xU=ui(function(s,c){return ci(s,P,n,n,n,c)});function wU(s,c){if(typeof s!="function")throw new jr(a);return c=c===n?c:ot(c),at(s,c)}function SU(s,c){if(typeof s!="function")throw new jr(a);return c=c==null?0:vn(ot(c),0),at(function(v){var N=v[c],R=Wi(v,0,c);return N&&zi(R,N),vr(s,this,R)})}function EU(s,c,v){var N=!0,R=!0;if(typeof s!="function")throw new jr(a);return Yt(v)&&(N="leading"in v?!!v.leading:N,R="trailing"in v?!!v.trailing:R),nO(s,c,{leading:N,maxWait:c,trailing:R})}function $U(s){return Z_(s,1)}function _U(s,c){return Gm(Tm(c),s)}function OU(){if(!arguments.length)return[];var s=arguments[0];return Je(s)?s:[s]}function NU(s){return Vr(s,m)}function PU(s,c){return c=typeof c=="function"?c:n,Vr(s,m,c)}function IU(s){return Vr(s,g|m)}function TU(s,c){return c=typeof c=="function"?c:n,Vr(s,g|m,c)}function MU(s,c){return c==null||W$(s,c,$n(c))}function fo(s,c){return s===c||s!==s&&c!==c}var AU=Jd(bm),DU=Jd(function(s,c){return s>=c}),Sa=K$(function(){return arguments}())?K$:function(s){return Kt(s)&&Mt.call(s,"callee")&&!L$.call(s,"callee")},Je=pe.isArray,FU=v$?yr(v$):kk;function er(s){return s!=null&&cf(s.length)&&!fi(s)}function nn(s){return Kt(s)&&er(s)}function LU(s){return s===!0||s===!1||Kt(s)&&Wn(s)==ee}var Ui=KH||ov,RU=y$?yr(y$):Wk;function zU(s){return Kt(s)&&s.nodeType===1&&!sc(s)}function jU(s){if(s==null)return!0;if(er(s)&&(Je(s)||typeof s=="string"||typeof s.splice=="function"||Ui(s)||Ds(s)||Sa(s)))return!s.length;var c=Fn(s);if(c==oe||c==De)return!s.size;if(ic(s))return!wm(s).length;for(var v in s)if(Mt.call(s,v))return!1;return!0}function BU(s,c){return nc(s,c)}function VU(s,c,v){v=typeof v=="function"?v:n;var N=v?v(s,c):n;return N===n?nc(s,c,n,v):!!N}function Xm(s){if(!Kt(s))return!1;var c=Wn(s);return c==ue||c==de||typeof s.message=="string"&&typeof s.name=="string"&&!sc(s)}function HU(s){return typeof s=="number"&&z$(s)}function fi(s){if(!Yt(s))return!1;var c=Wn(s);return c==J||c==fe||c==ie||c==Ie}function oO(s){return typeof s=="number"&&s==ot(s)}function cf(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=V}function Yt(s){var c=typeof s;return s!=null&&(c=="object"||c=="function")}function Kt(s){return s!=null&&typeof s=="object"}var iO=b$?yr(b$):qk;function kU(s,c){return s===c||xm(s,c,zm(c))}function WU(s,c,v){return v=typeof v=="function"?v:n,xm(s,c,zm(c),v)}function UU(s){return aO(s)&&s!=+s}function qU(s){if(P9(s))throw new Qe(i);return Z$(s)}function GU(s){return s===null}function XU(s){return s==null}function aO(s){return typeof s=="number"||Kt(s)&&Wn(s)==he}function sc(s){if(!Kt(s)||Wn(s)!=_e)return!1;var c=Fd(s);if(c===null)return!0;var v=Mt.call(c,"constructor")&&c.constructor;return typeof v=="function"&&v instanceof v&&Td.call(v)==WH}var Ym=C$?yr(C$):Gk;function YU(s){return oO(s)&&s>=-V&&s<=V}var sO=x$?yr(x$):Xk;function uf(s){return typeof s=="string"||!Je(s)&&Kt(s)&&Wn(s)==We}function Cr(s){return typeof s=="symbol"||Kt(s)&&Wn(s)==Te}var Ds=w$?yr(w$):Yk;function KU(s){return s===n}function ZU(s){return Kt(s)&&Fn(s)==Be}function QU(s){return Kt(s)&&Wn(s)==Ze}var JU=Jd(Sm),eq=Jd(function(s,c){return s<=c});function lO(s){if(!s)return[];if(er(s))return uf(s)?co(s):Jn(s);if(Xl&&s[Xl])return MH(s[Xl]());var c=Fn(s),v=c==oe?um:c==De?Nd:Fs;return v(s)}function gi(s){if(!s)return s===0?s:0;if(s=Wr(s),s===D||s===-D){var c=s<0?-1:1;return c*W}return s===s?s:0}function ot(s){var c=gi(s),v=c%1;return c===c?v?c-v:c:0}function cO(s){return s?ba(ot(s),0,q):0}function Wr(s){if(typeof s=="number")return s;if(Cr(s))return H;if(Yt(s)){var c=typeof s.valueOf=="function"?s.valueOf():s;s=Yt(c)?c+"":c}if(typeof s!="string")return s===0?s:+s;s=N$(s);var v=Vn.test(s);return v||Hn.test(s)?hH(s.slice(2),v?2:8):Nn.test(s)?H:+s}function uO(s){return To(s,tr(s))}function tq(s){return s?ba(ot(s),-V,V):s===0?s:0}function Nt(s){return s==null?"":br(s)}var nq=Ts(function(s,c){if(ic(c)||er(c)){To(c,$n(c),s);return}for(var v in c)Mt.call(c,v)&&Jl(s,v,c[v])}),dO=Ts(function(s,c){To(c,tr(c),s)}),df=Ts(function(s,c,v,N){To(c,tr(c),s,N)}),rq=Ts(function(s,c,v,N){To(c,$n(c),s,N)}),oq=ui(mm);function iq(s,c){var v=Is(s);return c==null?v:k$(v,c)}var aq=at(function(s,c){s=Lt(s);var v=-1,N=c.length,R=N>2?c[2]:n;for(R&&Un(c[0],c[1],R)&&(N=1);++v<N;)for(var U=c[v],Q=tr(U),ne=-1,ce=Q.length;++ne<ce;){var ye=Q[ne],be=s[ye];(be===n||fo(be,Os[ye])&&!Mt.call(s,ye))&&(s[ye]=U[ye])}return s}),sq=at(function(s){return s.push(n,N_),vr(fO,n,s)});function lq(s,c){return E$(s,qe(c,3),Io)}function cq(s,c){return E$(s,qe(c,3),ym)}function uq(s,c){return s==null?s:vm(s,qe(c,3),tr)}function dq(s,c){return s==null?s:X$(s,qe(c,3),tr)}function fq(s,c){return s&&Io(s,qe(c,3))}function gq(s,c){return s&&ym(s,qe(c,3))}function pq(s){return s==null?[]:Ud(s,$n(s))}function hq(s){return s==null?[]:Ud(s,tr(s))}function Km(s,c,v){var N=s==null?n:Ca(s,c);return N===n?v:N}function mq(s,c){return s!=null&&T_(s,c,jk)}function Zm(s,c){return s!=null&&T_(s,c,Bk)}var vq=S_(function(s,c,v){c!=null&&typeof c.toString!="function"&&(c=Md.call(c)),s[c]=v},Jm(nr)),yq=S_(function(s,c,v){c!=null&&typeof c.toString!="function"&&(c=Md.call(c)),Mt.call(s,c)?s[c].push(v):s[c]=[v]},qe),bq=at(tc);function $n(s){return er(s)?V$(s):wm(s)}function tr(s){return er(s)?V$(s,!0):Kk(s)}function Cq(s,c){var v={};return c=qe(c,3),Io(s,function(N,R,U){li(v,c(N,R,U),N)}),v}function xq(s,c){var v={};return c=qe(c,3),Io(s,function(N,R,U){li(v,R,c(N,R,U))}),v}var wq=Ts(function(s,c,v){qd(s,c,v)}),fO=Ts(function(s,c,v,N){qd(s,c,v,N)}),Sq=ui(function(s,c){var v={};if(s==null)return v;var N=!1;c=qt(c,function(U){return U=ki(U,s),N||(N=U.length>1),U}),To(s,Lm(s),v),N&&(v=Vr(v,g|p|m,v9));for(var R=c.length;R--;)Nm(v,c[R]);return v});function Eq(s,c){return gO(s,lf(qe(c)))}var $q=ui(function(s,c){return s==null?{}:Qk(s,c)});function gO(s,c){if(s==null)return{};var v=qt(Lm(s),function(N){return[N]});return c=qe(c),o_(s,v,function(N,R){return c(N,R[0])})}function _q(s,c,v){c=ki(c,s);var N=-1,R=c.length;for(R||(R=1,s=n);++N<R;){var U=s==null?n:s[Mo(c[N])];U===n&&(N=R,U=v),s=fi(U)?U.call(s):U}return s}function Oq(s,c,v){return s==null?s:rc(s,c,v)}function Nq(s,c,v,N){return N=typeof N=="function"?N:n,s==null?s:rc(s,c,v,N)}var pO=__($n),hO=__(tr);function Pq(s,c,v){var N=Je(s),R=N||Ui(s)||Ds(s);if(c=qe(c,4),v==null){var U=s&&s.constructor;R?v=N?new U:[]:Yt(s)?v=fi(U)?Is(Fd(s)):{}:v={}}return(R?zr:Io)(s,function(Q,ne,ce){return c(v,Q,ne,ce)}),v}function Iq(s,c){return s==null?!0:Nm(s,c)}function Tq(s,c,v){return s==null?s:c_(s,c,Tm(v))}function Mq(s,c,v,N){return N=typeof N=="function"?N:n,s==null?s:c_(s,c,Tm(v),N)}function Fs(s){return s==null?[]:cm(s,$n(s))}function Aq(s){return s==null?[]:cm(s,tr(s))}function Dq(s,c,v){return v===n&&(v=c,c=n),v!==n&&(v=Wr(v),v=v===v?v:0),c!==n&&(c=Wr(c),c=c===c?c:0),ba(Wr(s),c,v)}function Fq(s,c,v){return c=gi(c),v===n?(v=c,c=0):v=gi(v),s=Wr(s),Vk(s,c,v)}function Lq(s,c,v){if(v&&typeof v!="boolean"&&Un(s,c,v)&&(c=v=n),v===n&&(typeof c=="boolean"?(v=c,c=n):typeof s=="boolean"&&(v=s,s=n)),s===n&&c===n?(s=0,c=1):(s=gi(s),c===n?(c=s,s=0):c=gi(c)),s>c){var N=s;s=c,c=N}if(v||s%1||c%1){var R=j$();return Dn(s+R*(c-s+pH("1e-"+((R+"").length-1))),c)}return $m(s,c)}var Rq=Ms(function(s,c,v){return c=c.toLowerCase(),s+(v?mO(c):c)});function mO(s){return Qm(Nt(s).toLowerCase())}function vO(s){return s=Nt(s),s&&s.replace(En,OH).replace(Ae,"")}function zq(s,c,v){s=Nt(s),c=br(c);var N=s.length;v=v===n?N:ba(ot(v),0,N);var R=v;return v-=c.length,v>=0&&s.slice(v,R)==c}function jq(s){return s=Nt(s),s&&Mn.test(s)?s.replace(xn,NH):s}function Bq(s){return s=Nt(s),s&&fr.test(s)?s.replace(dn,"\\$&"):s}var Vq=Ms(function(s,c,v){return s+(v?"-":"")+c.toLowerCase()}),Hq=Ms(function(s,c,v){return s+(v?" ":"")+c.toLowerCase()}),kq=C_("toLowerCase");function Wq(s,c,v){s=Nt(s),c=ot(c);var N=c?$s(s):0;if(!c||N>=c)return s;var R=(c-N)/2;return Qd(jd(R),v)+s+Qd(zd(R),v)}function Uq(s,c,v){s=Nt(s),c=ot(c);var N=c?$s(s):0;return c&&N<c?s+Qd(c-N,v):s}function qq(s,c,v){s=Nt(s),c=ot(c);var N=c?$s(s):0;return c&&N<c?Qd(c-N,v)+s:s}function Gq(s,c,v){return v||c==null?c=0:c&&(c=+c),ek(Nt(s).replace(dt,""),c||0)}function Xq(s,c,v){return(v?Un(s,c,v):c===n)?c=1:c=ot(c),_m(Nt(s),c)}function Yq(){var s=arguments,c=Nt(s[0]);return s.length<3?c:c.replace(s[1],s[2])}var Kq=Ms(function(s,c,v){return s+(v?"_":"")+c.toLowerCase()});function Zq(s,c,v){return v&&typeof v!="number"&&Un(s,c,v)&&(c=v=n),v=v===n?q:v>>>0,v?(s=Nt(s),s&&(typeof c=="string"||c!=null&&!Ym(c))&&(c=br(c),!c&&Es(s))?Wi(co(s),0,v):s.split(c,v)):[]}var Qq=Ms(function(s,c,v){return s+(v?" ":"")+Qm(c)});function Jq(s,c,v){return s=Nt(s),v=v==null?0:ba(ot(v),0,s.length),c=br(c),s.slice(v,v+c.length)==c}function eG(s,c,v){var N=k.templateSettings;v&&Un(s,c,v)&&(c=n),s=Nt(s),c=df({},c,N,O_);var R=df({},c.imports,N.imports,O_),U=$n(R),Q=cm(R,U),ne,ce,ye=0,be=c.interpolate||Zn,xe="__p += '",Pe=dm((c.escape||Zn).source+"|"+be.source+"|"+(be===Kn?Mr:Zn).source+"|"+(c.evaluate||Zn).source+"|$","g"),ze="//# sourceURL="+(Mt.call(c,"sourceURL")?(c.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ql+"]")+`
|
|
299
|
+
`;s.replace(Pe,function(Ye,lt,ht,xr,qn,wr){return ht||(ht=xr),xe+=s.slice(ye,wr).replace(Ko,PH),lt&&(ne=!0,xe+=`' +
|
|
300
|
+
__e(`+lt+`) +
|
|
301
|
+
'`),qn&&(ce=!0,xe+=`';
|
|
302
|
+
`+qn+`;
|
|
303
|
+
__p += '`),ht&&(xe+=`' +
|
|
304
|
+
((__t = (`+ht+`)) == null ? '' : __t) +
|
|
305
|
+
'`),ye=wr+Ye.length,Ye}),xe+=`';
|
|
306
|
+
`;var Xe=Mt.call(c,"variable")&&c.variable;if(!Xe)xe=`with (obj) {
|
|
307
|
+
`+xe+`
|
|
308
|
+
}
|
|
309
|
+
`;else if(hn.test(Xe))throw new Qe(l);xe=(ce?xe.replace(ke,""):xe).replace(It,"$1").replace(pn,"$1;"),xe="function("+(Xe||"obj")+`) {
|
|
310
|
+
`+(Xe?"":`obj || (obj = {});
|
|
311
|
+
`)+"var __t, __p = ''"+(ne?", __e = _.escape":"")+(ce?`, __j = Array.prototype.join;
|
|
312
|
+
function print() { __p += __j.call(arguments, '') }
|
|
313
|
+
`:`;
|
|
314
|
+
`)+xe+`return __p
|
|
315
|
+
}`;var it=bO(function(){return wt(U,ze+"return "+xe).apply(n,Q)});if(it.source=xe,Xm(it))throw it;return it}function tG(s){return Nt(s).toLowerCase()}function nG(s){return Nt(s).toUpperCase()}function rG(s,c,v){if(s=Nt(s),s&&(v||c===n))return N$(s);if(!s||!(c=br(c)))return s;var N=co(s),R=co(c),U=P$(N,R),Q=I$(N,R)+1;return Wi(N,U,Q).join("")}function oG(s,c,v){if(s=Nt(s),s&&(v||c===n))return s.slice(0,M$(s)+1);if(!s||!(c=br(c)))return s;var N=co(s),R=I$(N,co(c))+1;return Wi(N,0,R).join("")}function iG(s,c,v){if(s=Nt(s),s&&(v||c===n))return s.replace(dt,"");if(!s||!(c=br(c)))return s;var N=co(s),R=P$(N,co(c));return Wi(N,R).join("")}function aG(s,c){var v=L,N=z;if(Yt(c)){var R="separator"in c?c.separator:R;v="length"in c?ot(c.length):v,N="omission"in c?br(c.omission):N}s=Nt(s);var U=s.length;if(Es(s)){var Q=co(s);U=Q.length}if(v>=U)return s;var ne=v-$s(N);if(ne<1)return N;var ce=Q?Wi(Q,0,ne).join(""):s.slice(0,ne);if(R===n)return ce+N;if(Q&&(ne+=ce.length-ne),Ym(R)){if(s.slice(ne).search(R)){var ye,be=ce;for(R.global||(R=dm(R.source,Nt(gr.exec(R))+"g")),R.lastIndex=0;ye=R.exec(be);)var xe=ye.index;ce=ce.slice(0,xe===n?ne:xe)}}else if(s.indexOf(br(R),ne)!=ne){var Pe=ce.lastIndexOf(R);Pe>-1&&(ce=ce.slice(0,Pe))}return ce+N}function sG(s){return s=Nt(s),s&&to.test(s)?s.replace(Cn,LH):s}var lG=Ms(function(s,c,v){return s+(v?" ":"")+c.toUpperCase()}),Qm=C_("toUpperCase");function yO(s,c,v){return s=Nt(s),c=v?n:c,c===n?TH(s)?jH(s):wH(s):s.match(c)||[]}var bO=at(function(s,c){try{return vr(s,n,c)}catch(v){return Xm(v)?v:new Qe(v)}}),cG=ui(function(s,c){return zr(c,function(v){v=Mo(v),li(s,v,qm(s[v],s))}),s});function uG(s){var c=s==null?0:s.length,v=qe();return s=c?qt(s,function(N){if(typeof N[1]!="function")throw new jr(a);return[v(N[0]),N[1]]}):[],at(function(N){for(var R=-1;++R<c;){var U=s[R];if(vr(U[0],this,N))return vr(U[1],this,N)}})}function dG(s){return Lk(Vr(s,g))}function Jm(s){return function(){return s}}function fG(s,c){return s==null||s!==s?c:s}var gG=w_(),pG=w_(!0);function nr(s){return s}function ev(s){return Q$(typeof s=="function"?s:Vr(s,g))}function hG(s){return e_(Vr(s,g))}function mG(s,c){return t_(s,Vr(c,g))}var vG=at(function(s,c){return function(v){return tc(v,s,c)}}),yG=at(function(s,c){return function(v){return tc(s,v,c)}});function tv(s,c,v){var N=$n(c),R=Ud(c,N);v==null&&!(Yt(c)&&(R.length||!N.length))&&(v=c,c=s,s=this,R=Ud(c,$n(c)));var U=!(Yt(v)&&"chain"in v)||!!v.chain,Q=fi(s);return zr(R,function(ne){var ce=c[ne];s[ne]=ce,Q&&(s.prototype[ne]=function(){var ye=this.__chain__;if(U||ye){var be=s(this.__wrapped__),xe=be.__actions__=Jn(this.__actions__);return xe.push({func:ce,args:arguments,thisArg:s}),be.__chain__=ye,be}return ce.apply(s,zi([this.value()],arguments))})}),s}function bG(){return Pn._===this&&(Pn._=UH),this}function nv(){}function CG(s){return s=ot(s),at(function(c){return n_(c,s)})}var xG=Am(qt),wG=Am(S$),SG=Am(om);function CO(s){return Bm(s)?im(Mo(s)):Jk(s)}function EG(s){return function(c){return s==null?n:Ca(s,c)}}var $G=E_(),_G=E_(!0);function rv(){return[]}function ov(){return!1}function OG(){return{}}function NG(){return""}function PG(){return!0}function IG(s,c){if(s=ot(s),s<1||s>V)return[];var v=q,N=Dn(s,q);c=qe(c),s-=q;for(var R=lm(N,c);++v<s;)c(v);return R}function TG(s){return Je(s)?qt(s,Mo):Cr(s)?[s]:Jn(B_(Nt(s)))}function MG(s){var c=++kH;return Nt(s)+c}var AG=Zd(function(s,c){return s+c},0),DG=Dm("ceil"),FG=Zd(function(s,c){return s/c},1),LG=Dm("floor");function RG(s){return s&&s.length?Wd(s,nr,bm):n}function zG(s,c){return s&&s.length?Wd(s,qe(c,2),bm):n}function jG(s){return _$(s,nr)}function BG(s,c){return _$(s,qe(c,2))}function VG(s){return s&&s.length?Wd(s,nr,Sm):n}function HG(s,c){return s&&s.length?Wd(s,qe(c,2),Sm):n}var kG=Zd(function(s,c){return s*c},1),WG=Dm("round"),UG=Zd(function(s,c){return s-c},0);function qG(s){return s&&s.length?sm(s,nr):0}function GG(s,c){return s&&s.length?sm(s,qe(c,2)):0}return k.after=hU,k.ary=Z_,k.assign=nq,k.assignIn=dO,k.assignInWith=df,k.assignWith=rq,k.at=oq,k.before=Q_,k.bind=qm,k.bindAll=cG,k.bindKey=J_,k.castArray=OU,k.chain=X_,k.chunk=L9,k.compact=R9,k.concat=z9,k.cond=uG,k.conforms=dG,k.constant=Jm,k.countBy=qW,k.create=iq,k.curry=eO,k.curryRight=tO,k.debounce=nO,k.defaults=aq,k.defaultsDeep=sq,k.defer=mU,k.delay=vU,k.difference=j9,k.differenceBy=B9,k.differenceWith=V9,k.drop=H9,k.dropRight=k9,k.dropRightWhile=W9,k.dropWhile=U9,k.fill=q9,k.filter=XW,k.flatMap=ZW,k.flatMapDeep=QW,k.flatMapDepth=JW,k.flatten=W_,k.flattenDeep=G9,k.flattenDepth=X9,k.flip=yU,k.flow=gG,k.flowRight=pG,k.fromPairs=Y9,k.functions=pq,k.functionsIn=hq,k.groupBy=eU,k.initial=Z9,k.intersection=Q9,k.intersectionBy=J9,k.intersectionWith=eW,k.invert=vq,k.invertBy=yq,k.invokeMap=nU,k.iteratee=ev,k.keyBy=rU,k.keys=$n,k.keysIn=tr,k.map=of,k.mapKeys=Cq,k.mapValues=xq,k.matches=hG,k.matchesProperty=mG,k.memoize=sf,k.merge=wq,k.mergeWith=fO,k.method=vG,k.methodOf=yG,k.mixin=tv,k.negate=lf,k.nthArg=CG,k.omit=Sq,k.omitBy=Eq,k.once=bU,k.orderBy=oU,k.over=xG,k.overArgs=CU,k.overEvery=wG,k.overSome=SG,k.partial=Gm,k.partialRight=rO,k.partition=iU,k.pick=$q,k.pickBy=gO,k.property=CO,k.propertyOf=EG,k.pull=oW,k.pullAll=q_,k.pullAllBy=iW,k.pullAllWith=aW,k.pullAt=sW,k.range=$G,k.rangeRight=_G,k.rearg=xU,k.reject=lU,k.remove=lW,k.rest=wU,k.reverse=Wm,k.sampleSize=uU,k.set=Oq,k.setWith=Nq,k.shuffle=dU,k.slice=cW,k.sortBy=pU,k.sortedUniq=mW,k.sortedUniqBy=vW,k.split=Zq,k.spread=SU,k.tail=yW,k.take=bW,k.takeRight=CW,k.takeRightWhile=xW,k.takeWhile=wW,k.tap=RW,k.throttle=EU,k.thru=rf,k.toArray=lO,k.toPairs=pO,k.toPairsIn=hO,k.toPath=TG,k.toPlainObject=uO,k.transform=Pq,k.unary=$U,k.union=SW,k.unionBy=EW,k.unionWith=$W,k.uniq=_W,k.uniqBy=OW,k.uniqWith=NW,k.unset=Iq,k.unzip=Um,k.unzipWith=G_,k.update=Tq,k.updateWith=Mq,k.values=Fs,k.valuesIn=Aq,k.without=PW,k.words=yO,k.wrap=_U,k.xor=IW,k.xorBy=TW,k.xorWith=MW,k.zip=AW,k.zipObject=DW,k.zipObjectDeep=FW,k.zipWith=LW,k.entries=pO,k.entriesIn=hO,k.extend=dO,k.extendWith=df,tv(k,k),k.add=AG,k.attempt=bO,k.camelCase=Rq,k.capitalize=mO,k.ceil=DG,k.clamp=Dq,k.clone=NU,k.cloneDeep=IU,k.cloneDeepWith=TU,k.cloneWith=PU,k.conformsTo=MU,k.deburr=vO,k.defaultTo=fG,k.divide=FG,k.endsWith=zq,k.eq=fo,k.escape=jq,k.escapeRegExp=Bq,k.every=GW,k.find=YW,k.findIndex=H_,k.findKey=lq,k.findLast=KW,k.findLastIndex=k_,k.findLastKey=cq,k.floor=LG,k.forEach=Y_,k.forEachRight=K_,k.forIn=uq,k.forInRight=dq,k.forOwn=fq,k.forOwnRight=gq,k.get=Km,k.gt=AU,k.gte=DU,k.has=mq,k.hasIn=Zm,k.head=U_,k.identity=nr,k.includes=tU,k.indexOf=K9,k.inRange=Fq,k.invoke=bq,k.isArguments=Sa,k.isArray=Je,k.isArrayBuffer=FU,k.isArrayLike=er,k.isArrayLikeObject=nn,k.isBoolean=LU,k.isBuffer=Ui,k.isDate=RU,k.isElement=zU,k.isEmpty=jU,k.isEqual=BU,k.isEqualWith=VU,k.isError=Xm,k.isFinite=HU,k.isFunction=fi,k.isInteger=oO,k.isLength=cf,k.isMap=iO,k.isMatch=kU,k.isMatchWith=WU,k.isNaN=UU,k.isNative=qU,k.isNil=XU,k.isNull=GU,k.isNumber=aO,k.isObject=Yt,k.isObjectLike=Kt,k.isPlainObject=sc,k.isRegExp=Ym,k.isSafeInteger=YU,k.isSet=sO,k.isString=uf,k.isSymbol=Cr,k.isTypedArray=Ds,k.isUndefined=KU,k.isWeakMap=ZU,k.isWeakSet=QU,k.join=tW,k.kebabCase=Vq,k.last=kr,k.lastIndexOf=nW,k.lowerCase=Hq,k.lowerFirst=kq,k.lt=JU,k.lte=eq,k.max=RG,k.maxBy=zG,k.mean=jG,k.meanBy=BG,k.min=VG,k.minBy=HG,k.stubArray=rv,k.stubFalse=ov,k.stubObject=OG,k.stubString=NG,k.stubTrue=PG,k.multiply=kG,k.nth=rW,k.noConflict=bG,k.noop=nv,k.now=af,k.pad=Wq,k.padEnd=Uq,k.padStart=qq,k.parseInt=Gq,k.random=Lq,k.reduce=aU,k.reduceRight=sU,k.repeat=Xq,k.replace=Yq,k.result=_q,k.round=WG,k.runInContext=se,k.sample=cU,k.size=fU,k.snakeCase=Kq,k.some=gU,k.sortedIndex=uW,k.sortedIndexBy=dW,k.sortedIndexOf=fW,k.sortedLastIndex=gW,k.sortedLastIndexBy=pW,k.sortedLastIndexOf=hW,k.startCase=Qq,k.startsWith=Jq,k.subtract=UG,k.sum=qG,k.sumBy=GG,k.template=eG,k.times=IG,k.toFinite=gi,k.toInteger=ot,k.toLength=cO,k.toLower=tG,k.toNumber=Wr,k.toSafeInteger=tq,k.toString=Nt,k.toUpper=nG,k.trim=rG,k.trimEnd=oG,k.trimStart=iG,k.truncate=aG,k.unescape=sG,k.uniqueId=MG,k.upperCase=lG,k.upperFirst=Qm,k.each=Y_,k.eachRight=K_,k.first=U_,tv(k,function(){var s={};return Io(k,function(c,v){Mt.call(k.prototype,v)||(s[v]=c)}),s}(),{chain:!1}),k.VERSION=r,zr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){k[s].placeholder=k}),zr(["drop","take"],function(s,c){ft.prototype[s]=function(v){v=v===n?1:vn(ot(v),0);var N=this.__filtered__&&!c?new ft(this):this.clone();return N.__filtered__?N.__takeCount__=Dn(v,N.__takeCount__):N.__views__.push({size:Dn(v,q),type:s+(N.__dir__<0?"Right":"")}),N},ft.prototype[s+"Right"]=function(v){return this.reverse()[s](v).reverse()}}),zr(["filter","map","takeWhile"],function(s,c){var v=c+1,N=v==I||v==A;ft.prototype[s]=function(R){var U=this.clone();return U.__iteratees__.push({iteratee:qe(R,3),type:v}),U.__filtered__=U.__filtered__||N,U}}),zr(["head","last"],function(s,c){var v="take"+(c?"Right":"");ft.prototype[s]=function(){return this[v](1).value()[0]}}),zr(["initial","tail"],function(s,c){var v="drop"+(c?"":"Right");ft.prototype[s]=function(){return this.__filtered__?new ft(this):this[v](1)}}),ft.prototype.compact=function(){return this.filter(nr)},ft.prototype.find=function(s){return this.filter(s).head()},ft.prototype.findLast=function(s){return this.reverse().find(s)},ft.prototype.invokeMap=at(function(s,c){return typeof s=="function"?new ft(this):this.map(function(v){return tc(v,s,c)})}),ft.prototype.reject=function(s){return this.filter(lf(qe(s)))},ft.prototype.slice=function(s,c){s=ot(s);var v=this;return v.__filtered__&&(s>0||c<0)?new ft(v):(s<0?v=v.takeRight(-s):s&&(v=v.drop(s)),c!==n&&(c=ot(c),v=c<0?v.dropRight(-c):v.take(c-s)),v)},ft.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},ft.prototype.toArray=function(){return this.take(q)},Io(ft.prototype,function(s,c){var v=/^(?:filter|find|map|reject)|While$/.test(c),N=/^(?:head|last)$/.test(c),R=k[N?"take"+(c=="last"?"Right":""):c],U=N||/^find/.test(c);R&&(k.prototype[c]=function(){var Q=this.__wrapped__,ne=N?[1]:arguments,ce=Q instanceof ft,ye=ne[0],be=ce||Je(Q),xe=function(lt){var ht=R.apply(k,zi([lt],ne));return N&&Pe?ht[0]:ht};be&&v&&typeof ye=="function"&&ye.length!=1&&(ce=be=!1);var Pe=this.__chain__,ze=!!this.__actions__.length,Xe=U&&!Pe,it=ce&&!ze;if(!U&&be){Q=it?Q:new ft(this);var Ye=s.apply(Q,ne);return Ye.__actions__.push({func:rf,args:[xe],thisArg:n}),new Br(Ye,Pe)}return Xe&&it?s.apply(this,ne):(Ye=this.thru(xe),Xe?N?Ye.value()[0]:Ye.value():Ye)})}),zr(["pop","push","shift","sort","splice","unshift"],function(s){var c=Pd[s],v=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",N=/^(?:pop|shift)$/.test(s);k.prototype[s]=function(){var R=arguments;if(N&&!this.__chain__){var U=this.value();return c.apply(Je(U)?U:[],R)}return this[v](function(Q){return c.apply(Je(Q)?Q:[],R)})}}),Io(ft.prototype,function(s,c){var v=k[c];if(v){var N=v.name+"";Mt.call(Ps,N)||(Ps[N]=[]),Ps[N].push({name:c,func:v})}}),Ps[Kd(n,x).name]=[{name:"wrapper",func:n}],ft.prototype.clone=sk,ft.prototype.reverse=lk,ft.prototype.value=ck,k.prototype.at=zW,k.prototype.chain=jW,k.prototype.commit=BW,k.prototype.next=VW,k.prototype.plant=kW,k.prototype.reverse=WW,k.prototype.toJSON=k.prototype.valueOf=k.prototype.value=UW,k.prototype.first=k.prototype.head,Xl&&(k.prototype[Xl]=HW),k},_s=BH();ha?((ha.exports=_s)._=_s,em._=_s):Pn._=_s}).call(W7)}(Bl,Bl.exports)),Bl.exports}var kh=U7(),Vl={},$o={},EE;function q7(){if(EE)return $o;EE=1;var e=$o&&$o.__createBinding||(Object.create?function(i,a,l,u){u===void 0&&(u=l),Object.defineProperty(i,u,{enumerable:!0,get:function(){return a[l]}})}:function(i,a,l,u){u===void 0&&(u=l),i[u]=a[l]}),t=$o&&$o.__setModuleDefault||(Object.create?function(i,a){Object.defineProperty(i,"default",{enumerable:!0,value:a})}:function(i,a){i.default=a}),n=$o&&$o.__importStar||function(i){if(i&&i.__esModule)return i;var a={};if(i!=null)for(var l in i)l!=="default"&&Object.prototype.hasOwnProperty.call(i,l)&&e(a,i,l);return t(a,i),a};Object.defineProperty($o,"__esModule",{value:!0});var r=n(M);function o(i){var a=r.useState(0),l=a[0],u=a[1],d=i.transitionDuration||400,f=i.delay||50,g=i.wrapperTag||"div",p=i.childTag||"div",m=typeof i.visible>"u"?!0:i.visible;return r.useEffect(function(){var b=r.default.Children.count(i.children);if(m||(b=0),b==l){var C=setTimeout(function(){i.onComplete&&i.onComplete()},d);return function(){return clearTimeout(C)}}var y=b>l?1:-1,x=setTimeout(function(){u(l+y)},f);return function(){return clearTimeout(x)}},[r.default.Children.count(i.children),f,l,m,d]),r.default.createElement(g,{className:i.className},r.default.Children.map(i.children,function(b,C){return r.default.createElement(p,{className:i.childClassName,style:{transition:"opacity "+d+"ms, transform "+d+"ms",transform:l>C?"none":"translateY(20px)",opacity:l>C?1:0}},b)}))}return $o.default=o,$o}var $E;function G7(){return $E||($E=1,function(e){var t=Vl&&Vl.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=q7();Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t(n).default}})}(Vl)),Vl}var X7=G7();const Wh=tl(X7),_E=[{key:Pt.SPEAK,label:"Bot nói",icon:Wb},{key:Pt.LISTEN,label:"Bot nghe",icon:Tb},{key:Pt.TRANSFER_CALL,label:"Chuyển máy",icon:Bb},{key:Pt.GET_DATA,label:"Lấy dữ liệu",icon:tu},{key:Pt.UPDATE_DATA,label:`Cập nhật
|
|
316
|
+
dữ liệu`,icon:tu},{key:Pt.ADD_DATA,label:"Thêm dữ liệu",icon:tu},{key:Pt.HTTP_REQUEST,label:`HTTP
|
|
317
|
+
Request`,icon:Ib},{key:Pt.CONDITION,label:"Điều kiện",icon:Mb},{key:Pt.NOTE,label:"Ghi chú",icon:zb}],OE={[Pt.START]:"none",[Pt.SPEAK]:"#d7268a",[Pt.LISTEN]:"#1890ff",[Pt.TRANSFER_CALL]:"#722ed1",[Pt.GET_DATA]:"#b26a1a",[Pt.UPDATE_DATA]:"#b26a1a",[Pt.ADD_DATA]:"#b26a1a",[Pt.HTTP_REQUEST]:"#fa8c16",[Pt.CONDITION]:"#8c8c8c",[Pt.NOTE]:"#8c8c8c"},NE=(e={})=>{const{defaultIsOpen:t=!1}=e,[n,r]=M.useState(t),o=M.useCallback(()=>{r(!0)},[]),i=M.useCallback(()=>{r(!1)},[]),a=M.useCallback(()=>{r(l=>!l)},[]);return{isOpen:n,onOpen:o,onClose:i,onToggle:a}};var Hl={exports:{}},Uh={},yd={exports:{}},bd={exports:{}},_t={};/** @license React v16.13.1
|
|
282
318
|
* react-is.production.min.js
|
|
283
319
|
*
|
|
284
320
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
285
321
|
*
|
|
286
322
|
* This source code is licensed under the MIT license found in the
|
|
287
323
|
* LICENSE file in the root directory of this source tree.
|
|
288
|
-
*/var
|
|
324
|
+
*/var PE;function Y7(){if(PE)return _t;PE=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,C=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,$=e?Symbol.for("react.scope"):60119;function w(S){if(typeof S=="object"&&S!==null){var O=S.$$typeof;switch(O){case t:switch(S=S.type,S){case u:case d:case r:case i:case o:case g:return S;default:switch(S=S&&S.$$typeof,S){case l:case f:case b:case m:case a:return S;default:return O}}case n:return O}}}function E(S){return w(S)===d}return _t.AsyncMode=u,_t.ConcurrentMode=d,_t.ContextConsumer=l,_t.ContextProvider=a,_t.Element=t,_t.ForwardRef=f,_t.Fragment=r,_t.Lazy=b,_t.Memo=m,_t.Portal=n,_t.Profiler=i,_t.StrictMode=o,_t.Suspense=g,_t.isAsyncMode=function(S){return E(S)||w(S)===u},_t.isConcurrentMode=E,_t.isContextConsumer=function(S){return w(S)===l},_t.isContextProvider=function(S){return w(S)===a},_t.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===t},_t.isForwardRef=function(S){return w(S)===f},_t.isFragment=function(S){return w(S)===r},_t.isLazy=function(S){return w(S)===b},_t.isMemo=function(S){return w(S)===m},_t.isPortal=function(S){return w(S)===n},_t.isProfiler=function(S){return w(S)===i},_t.isStrictMode=function(S){return w(S)===o},_t.isSuspense=function(S){return w(S)===g},_t.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===r||S===d||S===i||S===o||S===g||S===p||typeof S=="object"&&S!==null&&(S.$$typeof===b||S.$$typeof===m||S.$$typeof===a||S.$$typeof===l||S.$$typeof===f||S.$$typeof===y||S.$$typeof===x||S.$$typeof===$||S.$$typeof===C)},_t.typeOf=w,_t}var Ot={};/** @license React v16.13.1
|
|
289
325
|
* react-is.development.js
|
|
290
326
|
*
|
|
291
327
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
292
328
|
*
|
|
293
329
|
* This source code is licensed under the MIT license found in the
|
|
294
330
|
* LICENSE file in the root directory of this source tree.
|
|
295
|
-
*/var
|
|
331
|
+
*/var IE;function K7(){return IE||(IE=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,C=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,$=e?Symbol.for("react.scope"):60119;function w(J){return typeof J=="string"||typeof J=="function"||J===r||J===d||J===i||J===o||J===g||J===p||typeof J=="object"&&J!==null&&(J.$$typeof===b||J.$$typeof===m||J.$$typeof===a||J.$$typeof===l||J.$$typeof===f||J.$$typeof===y||J.$$typeof===x||J.$$typeof===$||J.$$typeof===C)}function E(J){if(typeof J=="object"&&J!==null){var fe=J.$$typeof;switch(fe){case t:var oe=J.type;switch(oe){case u:case d:case r:case i:case o:case g:return oe;default:var he=oe&&oe.$$typeof;switch(he){case l:case f:case b:case m:case a:return he;default:return fe}}case n:return fe}}}var S=u,O=d,_=l,P=a,T=t,L=f,z=r,B=b,j=m,I=n,F=i,A=o,D=g,V=!1;function W(J){return V||(V=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),H(J)||E(J)===u}function H(J){return E(J)===d}function q(J){return E(J)===l}function Z(J){return E(J)===a}function Y(J){return typeof J=="object"&&J!==null&&J.$$typeof===t}function G(J){return E(J)===f}function K(J){return E(J)===r}function te(J){return E(J)===b}function ie(J){return E(J)===m}function ee(J){return E(J)===n}function ae(J){return E(J)===i}function de(J){return E(J)===o}function ue(J){return E(J)===g}Ot.AsyncMode=S,Ot.ConcurrentMode=O,Ot.ContextConsumer=_,Ot.ContextProvider=P,Ot.Element=T,Ot.ForwardRef=L,Ot.Fragment=z,Ot.Lazy=B,Ot.Memo=j,Ot.Portal=I,Ot.Profiler=F,Ot.StrictMode=A,Ot.Suspense=D,Ot.isAsyncMode=W,Ot.isConcurrentMode=H,Ot.isContextConsumer=q,Ot.isContextProvider=Z,Ot.isElement=Y,Ot.isForwardRef=G,Ot.isFragment=K,Ot.isLazy=te,Ot.isMemo=ie,Ot.isPortal=ee,Ot.isProfiler=ae,Ot.isStrictMode=de,Ot.isSuspense=ue,Ot.isValidElementType=w,Ot.typeOf=E}()),Ot}var TE;function ME(){return TE||(TE=1,process.env.NODE_ENV==="production"?bd.exports=Y7():bd.exports=K7()),bd.exports}/*
|
|
296
332
|
object-assign
|
|
297
333
|
(c) Sindre Sorhus
|
|
298
334
|
@license MIT
|
|
299
|
-
*/var
|
|
300
|
-
Valid keys: `+JSON.stringify(Object.keys(
|
|
301
|
-
`,
|
|
302
|
-
`,S.getElementsByTagName("head")[0].appendChild(E)),S.body&&w(S.body,"react-draggable-transparent-selection")}function b(S){window.requestAnimationFrame?window.requestAnimationFrame(()=>{C(S)}):C(S)}function C(S){if(S)try{if(S.body&&$(S.body,"react-draggable-transparent-selection"),S.selection)S.selection.empty();else{const E=(S.defaultView||window).getSelection();E&&E.type!=="Caret"&&E.removeAllRanges()}}catch{}}function w(S,E){S.classList?S.classList.add(E):S.className.match(new RegExp(`(?:^|\\s)${E}(?!\\S)`))||(S.className+=` ${E}`)}function $(S,E){S.classList?S.classList.remove(E):S.className=S.className.replace(new RegExp(`(?:^|\\s)${E}(?!\\S)`,"g"),"")}return gt}var jn={},o1;function i1(){if(o1)return jn;o1=1,Object.defineProperty(jn,"__esModule",{value:!0}),jn.canDragX=o,jn.canDragY=i,jn.createCoreData=s,jn.createDraggableData=l,jn.getBoundPosition=n,jn.getControlPosition=a,jn.snapToGrid=r;var e=cl(),t=Kd();function n(d,f,p){if(!d.props.bounds)return[f,p];let{bounds:v}=d.props;v=typeof v=="string"?v:c(v);const m=u(d);if(typeof v=="string"){const{ownerDocument:g}=m,y=g.defaultView;let x;if(v==="parent"?x=m.parentNode:x=m.getRootNode().querySelector(v),!(x instanceof y.HTMLElement))throw new Error('Bounds selector "'+v+'" could not find an element.');const b=x,C=y.getComputedStyle(m),w=y.getComputedStyle(b);v={left:-m.offsetLeft+(0,e.int)(w.paddingLeft)+(0,e.int)(C.marginLeft),top:-m.offsetTop+(0,e.int)(w.paddingTop)+(0,e.int)(C.marginTop),right:(0,t.innerWidth)(b)-(0,t.outerWidth)(m)-m.offsetLeft+(0,e.int)(w.paddingRight)-(0,e.int)(C.marginRight),bottom:(0,t.innerHeight)(b)-(0,t.outerHeight)(m)-m.offsetTop+(0,e.int)(w.paddingBottom)-(0,e.int)(C.marginBottom)}}return(0,e.isNum)(v.right)&&(f=Math.min(f,v.right)),(0,e.isNum)(v.bottom)&&(p=Math.min(p,v.bottom)),(0,e.isNum)(v.left)&&(f=Math.max(f,v.left)),(0,e.isNum)(v.top)&&(p=Math.max(p,v.top)),[f,p]}function r(d,f,p){const v=Math.round(f/d[0])*d[0],m=Math.round(p/d[1])*d[1];return[v,m]}function o(d){return d.props.axis==="both"||d.props.axis==="x"}function i(d){return d.props.axis==="both"||d.props.axis==="y"}function a(d,f,p){const v=typeof f=="number"?(0,t.getTouch)(d,f):null;if(typeof f=="number"&&!v)return null;const m=u(p),g=p.props.offsetParent||m.offsetParent||m.ownerDocument.body;return(0,t.offsetXYFromParent)(v||d,g,p.props.scale)}function s(d,f,p){const v=!(0,e.isNum)(d.lastX),m=u(d);return v?{node:m,deltaX:0,deltaY:0,lastX:f,lastY:p,x:f,y:p}:{node:m,deltaX:f-d.lastX,deltaY:p-d.lastY,lastX:d.lastX,lastY:d.lastY,x:f,y:p}}function l(d,f){const p=d.props.scale;return{node:f.node,x:d.state.x+f.deltaX/p,y:d.state.y+f.deltaY/p,deltaX:f.deltaX/p,deltaY:f.deltaY/p,lastX:d.state.x,lastY:d.state.y}}function c(d){return{left:d.left,top:d.top,right:d.right,bottom:d.bottom}}function u(d){const f=d.findDOMNode();if(!f)throw new Error("<DraggableCore>: Unmounted during event!");return f}return jn}var Qi={},ul={},a1;function s1(){if(a1)return ul;a1=1,Object.defineProperty(ul,"__esModule",{value:!0}),ul.default=e;function e(){}return ul}var l1;function x5(){if(l1)return Qi;l1=1,Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.default=void 0;var e=l(T),t=s(Jb()),n=s(hr),r=Kd(),o=i1(),i=cl(),a=s(s1());function s(m){return m&&m.__esModule?m:{default:m}}function l(m,g){if(typeof WeakMap=="function")var y=new WeakMap,x=new WeakMap;return(l=function(b,C){if(!C&&b&&b.__esModule)return b;var w,$,S={__proto__:null,default:b};if(b===null||typeof b!="object"&&typeof b!="function")return S;if(w=C?x:y){if(w.has(b))return w.get(b);w.set(b,S)}for(const E in b)E!=="default"&&{}.hasOwnProperty.call(b,E)&&(($=(w=Object.defineProperty)&&Object.getOwnPropertyDescriptor(b,E))&&($.get||$.set)?w(S,E,$):S[E]=b[E]);return S})(m,g)}function c(m,g,y){return(g=u(g))in m?Object.defineProperty(m,g,{value:y,enumerable:!0,configurable:!0,writable:!0}):m[g]=y,m}function u(m){var g=d(m,"string");return typeof g=="symbol"?g:g+""}function d(m,g){if(typeof m!="object"||!m)return m;var y=m[Symbol.toPrimitive];if(y!==void 0){var x=y.call(m,g);if(typeof x!="object")return x;throw new TypeError("@@toPrimitive must return a primitive value.")}return(g==="string"?String:Number)(m)}const f={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let p=f.mouse,v=class extends e.Component{constructor(){super(...arguments),c(this,"dragging",!1),c(this,"lastX",NaN),c(this,"lastY",NaN),c(this,"touchIdentifier",null),c(this,"mounted",!1),c(this,"handleDragStart",g=>{if(this.props.onMouseDown(g),!this.props.allowAnyClick&&typeof g.button=="number"&&g.button!==0)return!1;const y=this.findDOMNode();if(!y||!y.ownerDocument||!y.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:x}=y;if(this.props.disabled||!(g.target instanceof x.defaultView.Node)||this.props.handle&&!(0,r.matchesSelectorAndParentsTo)(g.target,this.props.handle,y)||this.props.cancel&&(0,r.matchesSelectorAndParentsTo)(g.target,this.props.cancel,y))return;g.type==="touchstart"&&!this.props.allowMobileScroll&&g.preventDefault();const b=(0,r.getTouchIdentifier)(g);this.touchIdentifier=b;const C=(0,o.getControlPosition)(g,b,this);if(C==null)return;const{x:w,y:$}=C,S=(0,o.createCoreData)(this,w,$);(0,a.default)("DraggableCore: handleDragStart: %j",S),(0,a.default)("calling",this.props.onStart),!(this.props.onStart(g,S)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,r.addUserSelectStyles)(x),this.dragging=!0,this.lastX=w,this.lastY=$,(0,r.addEvent)(x,p.move,this.handleDrag),(0,r.addEvent)(x,p.stop,this.handleDragStop))}),c(this,"handleDrag",g=>{const y=(0,o.getControlPosition)(g,this.touchIdentifier,this);if(y==null)return;let{x,y:b}=y;if(Array.isArray(this.props.grid)){let $=x-this.lastX,S=b-this.lastY;if([$,S]=(0,o.snapToGrid)(this.props.grid,$,S),!$&&!S)return;x=this.lastX+$,b=this.lastY+S}const C=(0,o.createCoreData)(this,x,b);if((0,a.default)("DraggableCore: handleDrag: %j",C),this.props.onDrag(g,C)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const S=document.createEvent("MouseEvents");S.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(S)}return}this.lastX=x,this.lastY=b}),c(this,"handleDragStop",g=>{if(!this.dragging)return;const y=(0,o.getControlPosition)(g,this.touchIdentifier,this);if(y==null)return;let{x,y:b}=y;if(Array.isArray(this.props.grid)){let S=x-this.lastX||0,E=b-this.lastY||0;[S,E]=(0,o.snapToGrid)(this.props.grid,S,E),x=this.lastX+S,b=this.lastY+E}const C=(0,o.createCoreData)(this,x,b);if(this.props.onStop(g,C)===!1||this.mounted===!1)return!1;const $=this.findDOMNode();$&&this.props.enableUserSelectHack&&(0,r.scheduleRemoveUserSelectStyles)($.ownerDocument),(0,a.default)("DraggableCore: handleDragStop: %j",C),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,$&&((0,a.default)("DraggableCore: Removing handlers"),(0,r.removeEvent)($.ownerDocument,p.move,this.handleDrag),(0,r.removeEvent)($.ownerDocument,p.stop,this.handleDragStop))}),c(this,"onMouseDown",g=>(p=f.mouse,this.handleDragStart(g))),c(this,"onMouseUp",g=>(p=f.mouse,this.handleDragStop(g))),c(this,"onTouchStart",g=>(p=f.touch,this.handleDragStart(g))),c(this,"onTouchEnd",g=>(p=f.touch,this.handleDragStop(g)))}componentDidMount(){this.mounted=!0;const g=this.findDOMNode();g&&(0,r.addEvent)(g,f.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const g=this.findDOMNode();if(g){const{ownerDocument:y}=g;(0,r.removeEvent)(y,f.mouse.move,this.handleDrag),(0,r.removeEvent)(y,f.touch.move,this.handleDrag),(0,r.removeEvent)(y,f.mouse.stop,this.handleDragStop),(0,r.removeEvent)(y,f.touch.stop,this.handleDragStop),(0,r.removeEvent)(g,f.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,r.scheduleRemoveUserSelectStyles)(y)}}findDOMNode(){var g,y,x;return(g=this.props)!=null&&g.nodeRef?(x=(y=this.props)==null?void 0:y.nodeRef)==null?void 0:x.current:n.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return Qi.default=v,c(v,"displayName","DraggableCore"),c(v,"propTypes",{allowAnyClick:t.default.bool,allowMobileScroll:t.default.bool,children:t.default.node.isRequired,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:function(m,g){if(m[g]&&m[g].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:t.default.arrayOf(t.default.number),handle:t.default.string,cancel:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number,className:i.dontSetMe,style:i.dontSetMe,transform:i.dontSetMe}),c(v,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),Qi}var c1;function S5(){return c1||(c1=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return l.default}}),e.default=void 0;var t=d(T),n=u(Jb()),r=u(hr),o=C5(),i=Kd(),a=i1(),s=cl(),l=u(x5()),c=u(s1());function u(y){return y&&y.__esModule?y:{default:y}}function d(y,x){if(typeof WeakMap=="function")var b=new WeakMap,C=new WeakMap;return(d=function(w,$){if(!$&&w&&w.__esModule)return w;var S,E,_={__proto__:null,default:w};if(w===null||typeof w!="object"&&typeof w!="function")return _;if(S=$?C:b){if(S.has(w))return S.get(w);S.set(w,_)}for(const P in w)P!=="default"&&{}.hasOwnProperty.call(w,P)&&((E=(S=Object.defineProperty)&&Object.getOwnPropertyDescriptor(w,P))&&(E.get||E.set)?S(_,P,E):_[P]=w[P]);return _})(y,x)}function f(){return f=Object.assign?Object.assign.bind():function(y){for(var x=1;x<arguments.length;x++){var b=arguments[x];for(var C in b)({}).hasOwnProperty.call(b,C)&&(y[C]=b[C])}return y},f.apply(null,arguments)}function p(y,x,b){return(x=v(x))in y?Object.defineProperty(y,x,{value:b,enumerable:!0,configurable:!0,writable:!0}):y[x]=b,y}function v(y){var x=m(y,"string");return typeof x=="symbol"?x:x+""}function m(y,x){if(typeof y!="object"||!y)return y;var b=y[Symbol.toPrimitive];if(b!==void 0){var C=b.call(y,x);if(typeof C!="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return(x==="string"?String:Number)(y)}class g extends t.Component{static getDerivedStateFromProps(x,b){let{position:C}=x,{prevPropsPosition:w}=b;return C&&(!w||C.x!==w.x||C.y!==w.y)?((0,c.default)("Draggable: getDerivedStateFromProps %j",{position:C,prevPropsPosition:w}),{x:C.x,y:C.y,prevPropsPosition:{...C}}):null}constructor(x){super(x),p(this,"onDragStart",(b,C)=>{if((0,c.default)("Draggable: onDragStart: %j",C),this.props.onStart(b,(0,a.createDraggableData)(this,C))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),p(this,"onDrag",(b,C)=>{if(!this.state.dragging)return!1;(0,c.default)("Draggable: onDrag: %j",C);const w=(0,a.createDraggableData)(this,C),$={x:w.x,y:w.y,slackX:0,slackY:0};if(this.props.bounds){const{x:E,y:_}=$;$.x+=this.state.slackX,$.y+=this.state.slackY;const[P,A]=(0,a.getBoundPosition)(this,$.x,$.y);$.x=P,$.y=A,$.slackX=this.state.slackX+(E-$.x),$.slackY=this.state.slackY+(_-$.y),w.x=$.x,w.y=$.y,w.deltaX=$.x-this.state.x,w.deltaY=$.y-this.state.y}if(this.props.onDrag(b,w)===!1)return!1;this.setState($)}),p(this,"onDragStop",(b,C)=>{if(!this.state.dragging||this.props.onStop(b,(0,a.createDraggableData)(this,C))===!1)return!1;(0,c.default)("Draggable: onDragStop: %j",C);const $={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:E,y:_}=this.props.position;$.x=E,$.y=_}this.setState($)}),this.state={dragging:!1,dragged:!1,x:x.position?x.position.x:x.defaultPosition.x,y:x.position?x.position.y:x.defaultPosition.y,prevPropsPosition:{...x.position},slackX:0,slackY:0,isElementSVG:!1},x.position&&!(x.onDrag||x.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){var x,b;return((b=(x=this.props)==null?void 0:x.nodeRef)==null?void 0:b.current)??r.default.findDOMNode(this)}render(){const{axis:x,bounds:b,children:C,defaultPosition:w,defaultClassName:$,defaultClassNameDragging:S,defaultClassNameDragged:E,position:_,positionOffset:P,scale:A,...L}=this.props;let D={},O=null;const N=!!!_||this.state.dragging,I=_||w,j={x:(0,a.canDragX)(this)&&N?this.state.x:I.x,y:(0,a.canDragY)(this)&&N?this.state.y:I.y};this.state.isElementSVG?O=(0,i.createSVGTransform)(j,P):D=(0,i.createCSSTransform)(j,P);const z=(0,o.clsx)(C.props.className||"",$,{[S]:this.state.dragging,[E]:this.state.dragged});return t.createElement(l.default,f({},L,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(C),{className:z,style:{...C.props.style,...D},transform:O}))}}e.default=g,p(g,"displayName","Draggable"),p(g,"propTypes",{...l.default.propTypes,axis:n.default.oneOf(["both","x","y","none"]),bounds:n.default.oneOfType([n.default.shape({left:n.default.number,right:n.default.number,top:n.default.number,bottom:n.default.number}),n.default.string,n.default.oneOf([!1])]),defaultClassName:n.default.string,defaultClassNameDragging:n.default.string,defaultClassNameDragged:n.default.string,defaultPosition:n.default.shape({x:n.default.number,y:n.default.number}),positionOffset:n.default.shape({x:n.default.oneOfType([n.default.number,n.default.string]),y:n.default.oneOfType([n.default.number,n.default.string])}),position:n.default.shape({x:n.default.number,y:n.default.number}),className:s.dontSetMe,style:s.dontSetMe,transform:s.dontSetMe}),p(g,"defaultProps",{...l.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(Hd)),Hd}var u1;function E5(){if(u1)return Zi.exports;u1=1;const{default:e,DraggableCore:t}=S5();return Zi.exports=e,Zi.exports.default=e,Zi.exports.DraggableCore=t,Zi.exports}var $5=E5();const O5=mi($5);var _5="scripts_editor_a87zfz0",N5="scripts_editor_a87zfz1",P5="scripts_editor_a87zfz2",T5="scripts_editor_a87zfz3",I5="scripts_editor_a87zfz4",Ji={},zn={},d1;function M5(){if(d1)return zn;d1=1;var e=zn&&zn.__createBinding||(Object.create?function(i,a,s,l){l===void 0&&(l=s),Object.defineProperty(i,l,{enumerable:!0,get:function(){return a[s]}})}:function(i,a,s,l){l===void 0&&(l=s),i[l]=a[s]}),t=zn&&zn.__setModuleDefault||(Object.create?function(i,a){Object.defineProperty(i,"default",{enumerable:!0,value:a})}:function(i,a){i.default=a}),n=zn&&zn.__importStar||function(i){if(i&&i.__esModule)return i;var a={};if(i!=null)for(var s in i)s!=="default"&&Object.prototype.hasOwnProperty.call(i,s)&&e(a,i,s);return t(a,i),a};Object.defineProperty(zn,"__esModule",{value:!0});var r=n(T);function o(i){var a=r.useState(0),s=a[0],l=a[1],c=i.transitionDuration||400,u=i.delay||50,d=i.wrapperTag||"div",f=i.childTag||"div",p=typeof i.visible>"u"?!0:i.visible;return r.useEffect(function(){var v=r.default.Children.count(i.children);if(p||(v=0),v==s){var m=setTimeout(function(){i.onComplete&&i.onComplete()},c);return function(){return clearTimeout(m)}}var g=v>s?1:-1,y=setTimeout(function(){l(s+g)},u);return function(){return clearTimeout(y)}},[r.default.Children.count(i.children),u,s,p,c]),r.default.createElement(d,{className:i.className},r.default.Children.map(i.children,function(v,m){return r.default.createElement(f,{className:i.childClassName,style:{transition:"opacity "+c+"ms, transform "+c+"ms",transform:s>m?"none":"translateY(20px)",opacity:s>m?1:0}},v)}))}return zn.default=o,zn}var f1;function A5(){return f1||(f1=1,function(e){var t=Ji&&Ji.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=M5();Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t(n).default}})}(Ji)),Ji}var D5=A5();const p1=mi(D5),F5=({isOpen:e,title:t,onClose:n,children:r})=>{const o=T.useRef(null);return e?k.jsx(O5,{nodeRef:o,handle:".drag-handle",bounds:"body",defaultPosition:{x:-100,y:-200},children:k.jsx("div",{ref:o,role:"dialog","aria-modal":"true",className:_5,onKeyDown:i=>{i.key==="Escape"&&n()},children:k.jsxs(p1,{children:[k.jsxs("div",{className:`${N5} drag-handle`,children:[k.jsx("div",{className:`${P5}`,children:k.jsx("span",{className:T5,children:t})}),k.jsx(Tt,{onClick:n,type:"text",children:k.jsx(Es,{style:{fontSize:18}})})]}),k.jsx("div",{className:I5,children:r})]})})}):null},g1=T.createContext(void 0),L5=({children:e})=>{const{isOpen:t,onOpen:n,onClose:r}=p5(),[o,i]=T.useState(null),[a,s]=T.useState("MISSING_TITLE"),[l,c]=T.useState(void 0),u=(p,v,m)=>{i(p),s(v||"MISSING_TITLE"),c(m),n()},d=()=>{r(),l&&l(),i(null),s("MISSING_TITLE"),c(void 0)},f={isOpen:t,currentComponent:o,currentTitle:a,displayComponent:u,closeModal:d};return k.jsxs(g1.Provider,{value:f,children:[e,k.jsx(F5,{isOpen:t,title:a,onClose:d,children:o})]})},j5=()=>{const e=T.useContext(g1);if(e===void 0)throw new Error("useSettingsModal must be used within a SettingsModalProvider");return e},h1="collapsed",Zd="collapsing",dl="expanding",fl="expanded",z5="collapse-css-transition",R5="div",V5="0px";function m1(e){requestAnimationFrame(function(){requestAnimationFrame(e)})}const pl=({children:e,transition:t,style:n,render:r,elementType:o=R5,isOpen:i,collapseHeight:a=V5,onInit:s,onChange:l,className:c=z5,addState:u,noAnim:d,overflowOnExpanded:f,...p})=>{const v=()=>a==="0px"?"hidden":void 0,[m,g]=T.useReducer(I=>I+1,0),y=T.useRef(),[x,b]=T.useState(0),C=T.useRef({collapse:i?fl:h1,style:{height:i?void 0:a,visibility:i?void 0:v()}}).current;T.useEffect(()=>{x&&w(l)},[x]);const w=(I,j={})=>{I&&I({state:C.collapse,style:C.style,...j})};function $(){y.current&&(C.collapse=h1,C.style={height:a,visibility:v()},g(),setTimeout(()=>b(Date.now),0))}function S(){if(y.current){if(d)return $();C.collapse=Zd,C.style={height:P(),visibility:void 0},g(),m1(()=>{y.current&&C.collapse===Zd&&(C.style={height:a,visibility:void 0},b(Date.now))})}}function E(){if(y.current){if(d)return _();C.collapse=dl,m1(()=>{y.current&&C.collapse===dl&&(C.style={height:P(),visibility:void 0},b(Date.now))})}}function _(){y.current&&(C.collapse=fl,C.style={height:void 0,visibility:void 0},g(),setTimeout(()=>b(Date.now),0))}function P(){return`${y.current.scrollHeight}px`}function A({target:I,propertyName:j}){if(I===y.current&&j==="height"){const z=I.style.height;switch(C.collapse){case dl:z===void 0||z===a||_();break;case Zd:z===void 0||z!==a||$();break}}}const L=C.collapse===fl||C.collapse===dl;!L&&i&&E(),L&&!i&&S();const D={overflow:C.collapse===fl&&f?void 0:"hidden",transition:t,...n,...C.style},O=o,M=T.useCallback(I=>{I&&(y.current=I,w(s,{node:I}))},[o]),N=u?`${c} --c-${C.collapse}`:c;return k.jsx(O,{ref:M,style:D,onTransitionEnd:A,className:N,...p,children:typeof e=="function"?e(C.collapse):typeof r=="function"?r(C.collapse):e})},{TextArea:Qd}=Or,{Text:Wo}=Bo,k5=()=>{const e=at.useWatch(["data","record","detect_gender"]);return k.jsxs(k.Fragment,{children:[k.jsxs(at.Item,{name:["data","record","default_record"],valuePropName:"checked",style:{marginBottom:"8px"},label:k.jsx(Wo,{strong:!0,children:"Mặc định"}),children:[k.jsxs(Ho,{direction:"horizontal",size:16,wrap:!0,children:[k.jsx(Ki,{children:k.jsx(Tt,{icon:k.jsx(el,{}),children:"Tải lên"})}),k.jsx(Tt,{icon:k.jsx(Qs,{}),style:{marginLeft:8},children:"Ghi âm"})]}),k.jsx("div",{style:{marginTop:8},children:k.jsx(Wo,{italic:!0,type:"secondary",children:"Đây là transcript của ghi âm Đây là transcript của ghi âm Đây là transcript của ghi âm Đây là transcript của ghi âm Đây là transcript của ghi âm Đây là transcript của ghi âm."})})]}),k.jsx(at.Item,{name:["data","record","detect_gender"],valuePropName:"checked",style:{marginBottom:"8px"},children:k.jsx(qi,{children:k.jsx(Wo,{strong:!0,children:"Phân biệt giới tính"})})}),k.jsx(pl,{isOpen:e,children:k.jsxs(Ui,{gutter:[0,16],children:[k.jsx(at.Item,{name:["data","record","male_record"],noStyle:!0,children:k.jsxs(Ui,{justify:"space-between",align:"middle",children:[k.jsx(Kr,{span:9,children:k.jsx(Wo,{children:"Khách hàng nam"})}),k.jsx(Kr,{span:15,children:k.jsxs(Ho,{children:[k.jsx(Ki,{children:k.jsx(Tt,{icon:k.jsx(el,{}),children:"Tải lên"})}),k.jsx(Tt,{icon:k.jsx(Qs,{}),children:"Ghi âm"})]})})]})}),k.jsx(at.Item,{noStyle:!0,name:["data","record","female_record"],children:k.jsxs(Ui,{justify:"space-between",align:"middle",children:[k.jsx(Kr,{span:9,children:k.jsx(Wo,{children:"Khách hàng nữ"})}),k.jsx(Kr,{span:15,children:k.jsxs(Ho,{children:[k.jsx(Ki,{children:k.jsx(Tt,{icon:k.jsx(el,{}),children:"Tải lên"})}),k.jsx(Tt,{icon:k.jsx(Qs,{}),children:"Ghi âm"})]})})]})})]})}),k.jsx(gd,{}),k.jsx(at.Item,{name:["data","record","has_personalized"],valuePropName:"checked",style:{marginBottom:"8px"},children:k.jsx(qi,{children:k.jsx(Wo,{strong:!0,children:"Cá nhân hoá"})})}),k.jsx(at.Item,{name:["data","record","transcript_with_timestamp"],label:"Transcript với timestamp",children:k.jsx(Qd,{placeholder:"<span start='0.0' end='0.3'>em</span> ...",rows:2})}),k.jsx(at.Item,{name:["data","record","transcript_original"],label:"Transcript gốc",children:k.jsx(Qd,{placeholder:"Em chào anh chị ạ",rows:2})}),k.jsx(at.Item,{name:["data","record","transcript_personalize"],label:"Transcript cá nhân hóa",children:k.jsx(Qd,{placeholder:"Em chào {{name}} ạ",rows:2})})]})},{TextArea:H5}=Or,B5=()=>k.jsx(at.Item,{name:["data","machine","script"],noStyle:!0,children:k.jsx(H5,{placeholder:"Nhập kịch bản",rows:4,style:{width:"100%",border:"none",backgroundColor:"rgba(245, 245, 245, 1)",padding:"12px"}})}),{TextArea:W5}=Or,q5=()=>k.jsx(at.Item,{name:["data","prompt","script"],noStyle:!0,children:k.jsx(W5,{placeholder:"Nhập prompt",rows:4,style:{width:"100%",border:"none",backgroundColor:"rgba(245, 245, 245, 1)",padding:"12px"}})}),{Title:F8}=Bo,U5="Sử dụng cá nhân hoá",G5="Bạn nên sử dụng cá nhân hoá để tăng thời lượng cuộc gọi",v1="Thiếu ghi âm giọng nam",X5="Bạn chưa ghi âm giọng nam, vui lòng tải file ghi âm hoặc ghi âm trực tiếp",Y5=()=>{const[e]=at.useForm(),t=at.useWatch(["data","type"],e)||wn.MACHINE,n=T.useMemo(()=>t===wn.MACHINE,[t]),r=T.useMemo(()=>v1!==void 0,[]),o=n||r;return k.jsx("div",{className:f5,children:k.jsx(at,{form:e,layout:"vertical",initialValues:{data:{type:wn.MACHINE,record:{default_record:"",transcript_with_timestamp:"",detect_gender:!1,male_record:"",female_record:"",transcript_original:"",transcript_personalize:""},machine:{},prompt:{}}},children:k.jsxs(Ho,{direction:"vertical",size:"small",style:{height:"500px"},children:[k.jsx(at.Item,{name:["data","type"],noStyle:!0,children:k.jsx(Ny,{block:!0,options:[{label:"Giọng máy",value:wn.MACHINE},{label:"Ghi âm",value:wn.RECORD},{label:"Prompt",value:wn.PROMPT}]})}),k.jsx(pl,{isOpen:t===wn.RECORD,children:k.jsx(k5,{})}),k.jsx(pl,{isOpen:t===wn.MACHINE,children:k.jsx(B5,{})}),k.jsx(pl,{isOpen:t===wn.PROMPT,children:k.jsx(q5,{})}),k.jsxs(p1,{visible:o,children:[k.jsx(gd,{style:{margin:"4px 0"}}),n&&k.jsx(Os,{message:U5,description:G5,type:"info",showIcon:!0,closable:!0,style:{padding:"12px",margin:"12px 0"}}),r&&k.jsx(Os,{style:{padding:"12px"},message:v1,description:X5,type:"error",showIcon:!0,closable:!0})]}),k.jsx("div",{style:{height:"200px"}})]})})})},K5=({message:e,errorMessage:t})=>{const{displayComponent:n}=j5();return k.jsx("button",{type:"button",className:e5,onClick:()=>n(k.jsx(Y5,{}),"Cài đặt bot nói"),children:k.jsxs("div",{className:t5,children:[k.jsxs("div",{className:n5,children:[k.jsx("span",{className:r5,children:k.jsx(wb,{})}),k.jsx("span",{className:o5,children:"Bot nói"}),k.jsx(Tt,{type:"text",className:i5,children:k.jsx(Ed,{className:a5})}),k.jsx("div",{className:s5,children:"Ghi âm"}),k.jsx(Tt,{type:"text",className:l5,onClick:r=>{r.stopPropagation(),console.log("delete")},children:k.jsx(Sd,{className:c5})})]}),k.jsx("div",{className:u5,children:k.jsx(Os,{message:t==null?void 0:t.message,type:"error",showIcon:!0,closable:!0})}),k.jsx("div",{className:d5,children:e})]})})},Z5="Alo em chào nhà mình ạ, em là Ngọc Anh bên dự án Vinhomes Đan Phượng ạ. Hiện bên em có chính sách ưu đãi cực kỳ hấp dẫn. Anh chị quan tâm em gửi thông tin cho mình ạ",Q5=({data:e})=>k.jsxs("div",{children:[k.jsx(Vr,{type:"source",position:be.Left}),k.jsx(K5,{message:Z5,errorMessage:{message:"Thiếu ghi âm giọng nam"}}),k.jsx(Vr,{type:"target",position:be.Right})]});var J5="scripts_editor_flqrya0",e8="scripts_editor_flqrya1",t8="scripts_editor_flqrya2",n8="scripts_editor_flqrya3",y1={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},b1=T.createContext&&T.createContext(y1),r8=["attr","size","title"];function o8(e,t){if(e==null)return{};var n=i8(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function i8(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function gl(){return gl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gl.apply(this,arguments)}function C1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function hl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?C1(Object(n),!0).forEach(function(r){a8(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function a8(e,t,n){return t=s8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s8(e){var t=l8(e,"string");return typeof t=="symbol"?t:t+""}function l8(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function w1(e){return e&&e.map((t,n)=>T.createElement(t.tag,hl({key:n},t.attr),w1(t.child)))}function c8(e){return t=>T.createElement(u8,gl({attr:hl({},e.attr)},t),w1(e.child))}function u8(e){var t=n=>{var{attr:r,size:o,title:i}=e,a=o8(e,r8),s=o||n.size||"1em",l;return n.className&&(l=n.className),e.className&&(l=(l?l+" ":"")+e.className),T.createElement("svg",gl({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,a,{className:l,style:hl(hl({color:e.color||n.color},n.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),i&&T.createElement("title",null,i),e.children)};return b1!==void 0?T.createElement(b1.Consumer,null,n=>t(n)):t(y1)}function d8(e){return c8({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M1.5 1a.5.5 0 0 1 .5.5v13a.5.5 0 0 1-1 0v-13a.5.5 0 0 1 .5-.5"},child:[]},{tag:"path",attr:{d:"M3 7a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1z"},child:[]}]})(e)}const f8=()=>k.jsx("div",{className:J5,children:k.jsxs("div",{className:e8,children:[k.jsx("span",{className:t8,children:k.jsx(d8,{})}),k.jsx("span",{className:n8,children:"Bắt đầu"})]})}),p8=({data:e})=>k.jsxs("div",{children:[k.jsx(Vr,{type:"target",position:be.Right}),k.jsx(f8,{})]}),g8={[tt.SPEAK]:Q5,[tt.START]:p8},h8=e=>`${e.toLowerCase()}_${Z6()}`,m8=T.forwardRef((e,t)=>{const n=T.useRef(null),[r,o,i]=X$(Q6),[a,s,l]=Y$(J6),[c,u]=T.useState(),{screenToFlowPosition:d}=Wa(),[f]=Lb(),p=T.useCallback(y=>s(x=>Np(y,x)),[s]),v=T.useCallback(y=>{u(y)},[]),m=T.useCallback(y=>{y.preventDefault(),y.dataTransfer.dropEffect="move"},[]),g=T.useCallback(y=>{if(y.preventDefault(),!f)return;const x=d({x:y.clientX,y:y.clientY}),b={id:h8(f),type:f,position:x,data:{label:`${f} node`,blockType:f},deletable:!0};o(C=>C.concat(b))},[d,f,o]);return T.useImperativeHandle(t,()=>({getFlowJson:()=>c==null?void 0:c.toObject()})),console.log(c==null?void 0:c.toObject()),k.jsx("div",{className:B6,children:k.jsxs("div",{className:W6,children:[k.jsx("div",{className:q6,ref:n,children:k.jsxs(G$,{nodes:r,edges:a,nodeTypes:g8,onNodesChange:i,onEdgesChange:l,onConnect:p,onInit:v,onDrop:g,onDragOver:m,fitView:!0,children:[k.jsx(s2,{orientation:"horizontal"}),k.jsx(e2,{variant:"dots",gap:12,size:2})]})}),k.jsx("div",{className:G6,children:k.jsx("div",{className:U6,children:k.jsx(H6,{})})})]})})}),v8=()=>k.jsx("section",{className:"scripts-editor-global",children:k.jsx(rh,{children:k.jsx(j6,{children:k.jsx(L5,{children:k.jsx(m8,{})})})})});Wt.BlockType=tt,Wt.SPEAK_TYPE=wn,Wt.ScriptEditor=v8,Wt.iconColors=zb,Wt.sidebarButtons=jb,Object.defineProperty(Wt,Symbol.toStringTag,{value:"Module"})});
|
|
335
|
+
*/var qh,AE;function Z7(){if(AE)return qh;AE=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},l=0;l<10;l++)a["_"+String.fromCharCode(l)]=l;var u=Object.getOwnPropertyNames(a).map(function(f){return a[f]});if(u.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(f){d[f]=f}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return qh=o()?Object.assign:function(i,a){for(var l,u=r(i),d,f=1;f<arguments.length;f++){l=Object(arguments[f]);for(var g in l)t.call(l,g)&&(u[g]=l[g]);if(e){d=e(l);for(var p=0;p<d.length;p++)n.call(l,d[p])&&(u[d[p]]=l[d[p]])}}return u},qh}var Gh,DE;function Xh(){if(DE)return Gh;DE=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Gh=e,Gh}var Yh,FE;function LE(){return FE||(FE=1,Yh=Function.call.bind(Object.prototype.hasOwnProperty)),Yh}var Kh,RE;function Q7(){if(RE)return Kh;RE=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Xh(),n={},r=LE();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(i,a,l,u,d){if(process.env.NODE_ENV!=="production"){for(var f in i)if(r(i,f)){var g;try{if(typeof i[f]!="function"){var p=Error((u||"React class")+": "+l+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}g=i[f](a,f,u,l,null,t)}catch(b){g=b}if(g&&!(g instanceof Error)&&e((u||"React class")+": type specification of "+l+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof g+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),g instanceof Error&&!(g.message in n)){n[g.message]=!0;var m=d?d():"";e("Failed "+l+" type: "+g.message+(m??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Kh=o,Kh}var Zh,zE;function J7(){if(zE)return Zh;zE=1;var e=ME(),t=Z7(),n=Xh(),r=LE(),o=Q7(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var u="Warning: "+l;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function a(){return null}return Zh=function(l,u){var d=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function g(H){var q=H&&(d&&H[d]||H[f]);if(typeof q=="function")return q}var p="<<anonymous>>",m={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:$(),arrayOf:w,element:E(),elementType:S(),instanceOf:O,node:L(),objectOf:P,oneOf:_,oneOfType:T,shape:B,exact:j};function b(H,q){return H===q?H!==0||1/H===1/q:H!==H&&q!==q}function C(H,q){this.message=H,this.data=q&&typeof q=="object"?q:{},this.stack=""}C.prototype=Error.prototype;function y(H){if(process.env.NODE_ENV!=="production")var q={},Z=0;function Y(K,te,ie,ee,ae,de,ue){if(ee=ee||p,de=de||ie,ue!==n){if(u){var J=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw J.name="Invariant Violation",J}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var fe=ee+":"+ie;!q[fe]&&Z<3&&(i("You are manually calling a React.PropTypes validation function for the `"+de+"` prop on `"+ee+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),q[fe]=!0,Z++)}}return te[ie]==null?K?te[ie]===null?new C("The "+ae+" `"+de+"` is marked as required "+("in `"+ee+"`, but its value is `null`.")):new C("The "+ae+" `"+de+"` is marked as required in "+("`"+ee+"`, but its value is `undefined`.")):null:H(te,ie,ee,ae,de)}var G=Y.bind(null,!1);return G.isRequired=Y.bind(null,!0),G}function x(H){function q(Z,Y,G,K,te,ie){var ee=Z[Y],ae=A(ee);if(ae!==H){var de=D(ee);return new C("Invalid "+K+" `"+te+"` of type "+("`"+de+"` supplied to `"+G+"`, expected ")+("`"+H+"`."),{expectedType:H})}return null}return y(q)}function $(){return y(a)}function w(H){function q(Z,Y,G,K,te){if(typeof H!="function")return new C("Property `"+te+"` of component `"+G+"` has invalid PropType notation inside arrayOf.");var ie=Z[Y];if(!Array.isArray(ie)){var ee=A(ie);return new C("Invalid "+K+" `"+te+"` of type "+("`"+ee+"` supplied to `"+G+"`, expected an array."))}for(var ae=0;ae<ie.length;ae++){var de=H(ie,ae,G,K,te+"["+ae+"]",n);if(de instanceof Error)return de}return null}return y(q)}function E(){function H(q,Z,Y,G,K){var te=q[Z];if(!l(te)){var ie=A(te);return new C("Invalid "+G+" `"+K+"` of type "+("`"+ie+"` supplied to `"+Y+"`, expected a single ReactElement."))}return null}return y(H)}function S(){function H(q,Z,Y,G,K){var te=q[Z];if(!e.isValidElementType(te)){var ie=A(te);return new C("Invalid "+G+" `"+K+"` of type "+("`"+ie+"` supplied to `"+Y+"`, expected a single ReactElement type."))}return null}return y(H)}function O(H){function q(Z,Y,G,K,te){if(!(Z[Y]instanceof H)){var ie=H.name||p,ee=W(Z[Y]);return new C("Invalid "+K+" `"+te+"` of type "+("`"+ee+"` supplied to `"+G+"`, expected ")+("instance of `"+ie+"`."))}return null}return y(q)}function _(H){if(!Array.isArray(H))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function q(Z,Y,G,K,te){for(var ie=Z[Y],ee=0;ee<H.length;ee++)if(b(ie,H[ee]))return null;var ae=JSON.stringify(H,function(ue,J){var fe=D(J);return fe==="symbol"?String(J):J});return new C("Invalid "+K+" `"+te+"` of value `"+String(ie)+"` "+("supplied to `"+G+"`, expected one of "+ae+"."))}return y(q)}function P(H){function q(Z,Y,G,K,te){if(typeof H!="function")return new C("Property `"+te+"` of component `"+G+"` has invalid PropType notation inside objectOf.");var ie=Z[Y],ee=A(ie);if(ee!=="object")return new C("Invalid "+K+" `"+te+"` of type "+("`"+ee+"` supplied to `"+G+"`, expected an object."));for(var ae in ie)if(r(ie,ae)){var de=H(ie,ae,G,K,te+"."+ae,n);if(de instanceof Error)return de}return null}return y(q)}function T(H){if(!Array.isArray(H))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var q=0;q<H.length;q++){var Z=H[q];if(typeof Z!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+V(Z)+" at index "+q+"."),a}function Y(G,K,te,ie,ee){for(var ae=[],de=0;de<H.length;de++){var ue=H[de],J=ue(G,K,te,ie,ee,n);if(J==null)return null;J.data&&r(J.data,"expectedType")&&ae.push(J.data.expectedType)}var fe=ae.length>0?", expected one of type ["+ae.join(", ")+"]":"";return new C("Invalid "+ie+" `"+ee+"` supplied to "+("`"+te+"`"+fe+"."))}return y(Y)}function L(){function H(q,Z,Y,G,K){return I(q[Z])?null:new C("Invalid "+G+" `"+K+"` supplied to "+("`"+Y+"`, expected a ReactNode."))}return y(H)}function z(H,q,Z,Y,G){return new C((H||"React class")+": "+q+" type `"+Z+"."+Y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+G+"`.")}function B(H){function q(Z,Y,G,K,te){var ie=Z[Y],ee=A(ie);if(ee!=="object")return new C("Invalid "+K+" `"+te+"` of type `"+ee+"` "+("supplied to `"+G+"`, expected `object`."));for(var ae in H){var de=H[ae];if(typeof de!="function")return z(G,K,te,ae,D(de));var ue=de(ie,ae,G,K,te+"."+ae,n);if(ue)return ue}return null}return y(q)}function j(H){function q(Z,Y,G,K,te){var ie=Z[Y],ee=A(ie);if(ee!=="object")return new C("Invalid "+K+" `"+te+"` of type `"+ee+"` "+("supplied to `"+G+"`, expected `object`."));var ae=t({},Z[Y],H);for(var de in ae){var ue=H[de];if(r(H,de)&&typeof ue!="function")return z(G,K,te,de,D(ue));if(!ue)return new C("Invalid "+K+" `"+te+"` key `"+de+"` supplied to `"+G+"`.\nBad object: "+JSON.stringify(Z[Y],null," ")+`
|
|
336
|
+
Valid keys: `+JSON.stringify(Object.keys(H),null," "));var J=ue(ie,de,G,K,te+"."+de,n);if(J)return J}return null}return y(q)}function I(H){switch(typeof H){case"number":case"string":case"undefined":return!0;case"boolean":return!H;case"object":if(Array.isArray(H))return H.every(I);if(H===null||l(H))return!0;var q=g(H);if(q){var Z=q.call(H),Y;if(q!==H.entries){for(;!(Y=Z.next()).done;)if(!I(Y.value))return!1}else for(;!(Y=Z.next()).done;){var G=Y.value;if(G&&!I(G[1]))return!1}}else return!1;return!0;default:return!1}}function F(H,q){return H==="symbol"?!0:q?q["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&q instanceof Symbol:!1}function A(H){var q=typeof H;return Array.isArray(H)?"array":H instanceof RegExp?"object":F(q,H)?"symbol":q}function D(H){if(typeof H>"u"||H===null)return""+H;var q=A(H);if(q==="object"){if(H instanceof Date)return"date";if(H instanceof RegExp)return"regexp"}return q}function V(H){var q=D(H);switch(q){case"array":case"object":return"an "+q;case"boolean":case"date":case"regexp":return"a "+q;default:return q}}function W(H){return!H.constructor||!H.constructor.name?p:H.constructor.name}return m.checkPropTypes=o,m.resetWarningCache=o.resetWarningCache,m.PropTypes=m,m},Zh}var Qh,jE;function eV(){if(jE)return Qh;jE=1;var e=Xh();function t(){}function n(){}return n.resetWarningCache=t,Qh=function(){function r(a,l,u,d,f,g){if(g!==e){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},Qh}var BE;function VE(){if(BE)return yd.exports;if(BE=1,process.env.NODE_ENV!=="production"){var e=ME(),t=!0;yd.exports=J7()(e.isElement,t)}else yd.exports=eV()();return yd.exports}var Cd={exports:{}},HE;function tV(){if(HE)return Cd.exports;HE=1;function e(n){var r,o,i="";if(typeof n=="string"||typeof n=="number")i+=n;else if(typeof n=="object")if(Array.isArray(n)){var a=n.length;for(r=0;r<a;r++)n[r]&&(o=e(n[r]))&&(i&&(i+=" "),i+=o)}else for(o in n)n[o]&&(i&&(i+=" "),i+=o);return i}function t(){for(var n,r,o=0,i="",a=arguments.length;o<a;o++)(n=arguments[o])&&(r=e(n))&&(i&&(i+=" "),i+=r);return i}return Cd.exports=t,Cd.exports.clsx=t,Cd.exports}var tn={},Ii={},kE;function xd(){if(kE)return Ii;kE=1,Object.defineProperty(Ii,"__esModule",{value:!0}),Ii.dontSetMe=o,Ii.findInArray=e,Ii.int=r,Ii.isFunction=t,Ii.isNum=n;function e(i,a){for(let l=0,u=i.length;l<u;l++)if(a.apply(a,[i[l],l,i]))return i[l]}function t(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Function]"}function n(i){return typeof i=="number"&&!isNaN(i)}function r(i){return parseInt(i,10)}function o(i,a,l){if(i[a])return new Error(`Invalid prop ${a} passed to ${l} - do not set this, set it on the child.`)}return Ii}var Ti={},WE;function nV(){if(WE)return Ti;WE=1,Object.defineProperty(Ti,"__esModule",{value:!0}),Ti.browserPrefixToKey=n,Ti.browserPrefixToStyle=r,Ti.default=void 0,Ti.getPrefix=t;const e=["Moz","Webkit","O","ms"];function t(){var l,u;let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const a=(u=(l=window.document)==null?void 0:l.documentElement)==null?void 0:u.style;if(!a||i in a)return"";for(let d=0;d<e.length;d++)if(n(i,e[d])in a)return e[d];return""}function n(i,a){return a?`${a}${o(i)}`:i}function r(i,a){return a?`-${a.toLowerCase()}-${i}`:i}function o(i){let a="",l=!0;for(let u=0;u<i.length;u++)l?(a+=i[u].toUpperCase(),l=!1):i[u]==="-"?l=!0:a+=i[u];return a}return Ti.default=t(),Ti}var UE;function Jh(){if(UE)return tn;UE=1,Object.defineProperty(tn,"__esModule",{value:!0}),tn.addClassName=S,tn.addEvent=a,tn.addUserSelectStyles=$,tn.createCSSTransform=m,tn.createSVGTransform=b,tn.getTouch=y,tn.getTouchIdentifier=x,tn.getTranslation=C,tn.innerHeight=f,tn.innerWidth=g,tn.matchesSelector=o,tn.matchesSelectorAndParentsTo=i,tn.offsetXYFromParent=p,tn.outerHeight=u,tn.outerWidth=d,tn.removeClassName=O,tn.removeEvent=l,tn.scheduleRemoveUserSelectStyles=w;var e=xd(),t=n(nV());function n(_,P){if(typeof WeakMap=="function")var T=new WeakMap,L=new WeakMap;return(n=function(z,B){if(!B&&z&&z.__esModule)return z;var j,I,F={__proto__:null,default:z};if(z===null||typeof z!="object"&&typeof z!="function")return F;if(j=B?L:T){if(j.has(z))return j.get(z);j.set(z,F)}for(const A in z)A!=="default"&&{}.hasOwnProperty.call(z,A)&&((I=(j=Object.defineProperty)&&Object.getOwnPropertyDescriptor(z,A))&&(I.get||I.set)?j(F,A,I):F[A]=z[A]);return F})(_,P)}let r="";function o(_,P){return r||(r=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(T){return(0,e.isFunction)(_[T])})),(0,e.isFunction)(_[r])?_[r](P):!1}function i(_,P,T){let L=_;do{if(o(L,P))return!0;if(L===T)return!1;L=L.parentNode}while(L);return!1}function a(_,P,T,L){if(!_)return;const z={capture:!0,...L};_.addEventListener?_.addEventListener(P,T,z):_.attachEvent?_.attachEvent("on"+P,T):_["on"+P]=T}function l(_,P,T,L){if(!_)return;const z={capture:!0,...L};_.removeEventListener?_.removeEventListener(P,T,z):_.detachEvent?_.detachEvent("on"+P,T):_["on"+P]=null}function u(_){let P=_.clientHeight;const T=_.ownerDocument.defaultView.getComputedStyle(_);return P+=(0,e.int)(T.borderTopWidth),P+=(0,e.int)(T.borderBottomWidth),P}function d(_){let P=_.clientWidth;const T=_.ownerDocument.defaultView.getComputedStyle(_);return P+=(0,e.int)(T.borderLeftWidth),P+=(0,e.int)(T.borderRightWidth),P}function f(_){let P=_.clientHeight;const T=_.ownerDocument.defaultView.getComputedStyle(_);return P-=(0,e.int)(T.paddingTop),P-=(0,e.int)(T.paddingBottom),P}function g(_){let P=_.clientWidth;const T=_.ownerDocument.defaultView.getComputedStyle(_);return P-=(0,e.int)(T.paddingLeft),P-=(0,e.int)(T.paddingRight),P}function p(_,P,T){const z=P===P.ownerDocument.body?{left:0,top:0}:P.getBoundingClientRect(),B=(_.clientX+P.scrollLeft-z.left)/T,j=(_.clientY+P.scrollTop-z.top)/T;return{x:B,y:j}}function m(_,P){const T=C(_,P,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:T}}function b(_,P){return C(_,P,"")}function C(_,P,T){let{x:L,y:z}=_,B=`translate(${L}${T},${z}${T})`;if(P){const j=`${typeof P.x=="string"?P.x:P.x+T}`,I=`${typeof P.y=="string"?P.y:P.y+T}`;B=`translate(${j}, ${I})`+B}return B}function y(_,P){return _.targetTouches&&(0,e.findInArray)(_.targetTouches,T=>P===T.identifier)||_.changedTouches&&(0,e.findInArray)(_.changedTouches,T=>P===T.identifier)}function x(_){if(_.targetTouches&&_.targetTouches[0])return _.targetTouches[0].identifier;if(_.changedTouches&&_.changedTouches[0])return _.changedTouches[0].identifier}function $(_){if(!_)return;let P=_.getElementById("react-draggable-style-el");P||(P=_.createElement("style"),P.type="text/css",P.id="react-draggable-style-el",P.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
|
|
337
|
+
`,P.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
|
|
338
|
+
`,_.getElementsByTagName("head")[0].appendChild(P)),_.body&&S(_.body,"react-draggable-transparent-selection")}function w(_){window.requestAnimationFrame?window.requestAnimationFrame(()=>{E(_)}):E(_)}function E(_){if(_)try{if(_.body&&O(_.body,"react-draggable-transparent-selection"),_.selection)_.selection.empty();else{const P=(_.defaultView||window).getSelection();P&&P.type!=="Caret"&&P.removeAllRanges()}}catch{}}function S(_,P){_.classList?_.classList.add(P):_.className.match(new RegExp(`(?:^|\\s)${P}(?!\\S)`))||(_.className+=` ${P}`)}function O(_,P){_.classList?_.classList.remove(P):_.className=_.className.replace(new RegExp(`(?:^|\\s)${P}(?!\\S)`,"g"),"")}return tn}var _o={},qE;function GE(){if(qE)return _o;qE=1,Object.defineProperty(_o,"__esModule",{value:!0}),_o.canDragX=o,_o.canDragY=i,_o.createCoreData=l,_o.createDraggableData=u,_o.getBoundPosition=n,_o.getControlPosition=a,_o.snapToGrid=r;var e=xd(),t=Jh();function n(g,p,m){if(!g.props.bounds)return[p,m];let{bounds:b}=g.props;b=typeof b=="string"?b:d(b);const C=f(g);if(typeof b=="string"){const{ownerDocument:y}=C,x=y.defaultView;let $;if(b==="parent"?$=C.parentNode:$=C.getRootNode().querySelector(b),!($ instanceof x.HTMLElement))throw new Error('Bounds selector "'+b+'" could not find an element.');const w=$,E=x.getComputedStyle(C),S=x.getComputedStyle(w);b={left:-C.offsetLeft+(0,e.int)(S.paddingLeft)+(0,e.int)(E.marginLeft),top:-C.offsetTop+(0,e.int)(S.paddingTop)+(0,e.int)(E.marginTop),right:(0,t.innerWidth)(w)-(0,t.outerWidth)(C)-C.offsetLeft+(0,e.int)(S.paddingRight)-(0,e.int)(E.marginRight),bottom:(0,t.innerHeight)(w)-(0,t.outerHeight)(C)-C.offsetTop+(0,e.int)(S.paddingBottom)-(0,e.int)(E.marginBottom)}}return(0,e.isNum)(b.right)&&(p=Math.min(p,b.right)),(0,e.isNum)(b.bottom)&&(m=Math.min(m,b.bottom)),(0,e.isNum)(b.left)&&(p=Math.max(p,b.left)),(0,e.isNum)(b.top)&&(m=Math.max(m,b.top)),[p,m]}function r(g,p,m){const b=Math.round(p/g[0])*g[0],C=Math.round(m/g[1])*g[1];return[b,C]}function o(g){return g.props.axis==="both"||g.props.axis==="x"}function i(g){return g.props.axis==="both"||g.props.axis==="y"}function a(g,p,m){const b=typeof p=="number"?(0,t.getTouch)(g,p):null;if(typeof p=="number"&&!b)return null;const C=f(m),y=m.props.offsetParent||C.offsetParent||C.ownerDocument.body;return(0,t.offsetXYFromParent)(b||g,y,m.props.scale)}function l(g,p,m){const b=!(0,e.isNum)(g.lastX),C=f(g);return b?{node:C,deltaX:0,deltaY:0,lastX:p,lastY:m,x:p,y:m}:{node:C,deltaX:p-g.lastX,deltaY:m-g.lastY,lastX:g.lastX,lastY:g.lastY,x:p,y:m}}function u(g,p){const m=g.props.scale;return{node:p.node,x:g.state.x+p.deltaX/m,y:g.state.y+p.deltaY/m,deltaX:p.deltaX/m,deltaY:p.deltaY/m,lastX:g.state.x,lastY:g.state.y}}function d(g){return{left:g.left,top:g.top,right:g.right,bottom:g.bottom}}function f(g){const p=g.findDOMNode();if(!p)throw new Error("<DraggableCore>: Unmounted during event!");return p}return _o}var kl={},wd={},XE;function YE(){if(XE)return wd;XE=1,Object.defineProperty(wd,"__esModule",{value:!0}),wd.default=e;function e(){}return wd}var KE;function rV(){if(KE)return kl;KE=1,Object.defineProperty(kl,"__esModule",{value:!0}),kl.default=void 0;var e=u(M),t=l(VE()),n=l(hi),r=Jh(),o=GE(),i=xd(),a=l(YE());function l(C){return C&&C.__esModule?C:{default:C}}function u(C,y){if(typeof WeakMap=="function")var x=new WeakMap,$=new WeakMap;return(u=function(w,E){if(!E&&w&&w.__esModule)return w;var S,O,_={__proto__:null,default:w};if(w===null||typeof w!="object"&&typeof w!="function")return _;if(S=E?$:x){if(S.has(w))return S.get(w);S.set(w,_)}for(const P in w)P!=="default"&&{}.hasOwnProperty.call(w,P)&&((O=(S=Object.defineProperty)&&Object.getOwnPropertyDescriptor(w,P))&&(O.get||O.set)?S(_,P,O):_[P]=w[P]);return _})(C,y)}function d(C,y,x){return(y=f(y))in C?Object.defineProperty(C,y,{value:x,enumerable:!0,configurable:!0,writable:!0}):C[y]=x,C}function f(C){var y=g(C,"string");return typeof y=="symbol"?y:y+""}function g(C,y){if(typeof C!="object"||!C)return C;var x=C[Symbol.toPrimitive];if(x!==void 0){var $=x.call(C,y);if(typeof $!="object")return $;throw new TypeError("@@toPrimitive must return a primitive value.")}return(y==="string"?String:Number)(C)}const p={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let m=p.mouse,b=class extends e.Component{constructor(){super(...arguments),d(this,"dragging",!1),d(this,"lastX",NaN),d(this,"lastY",NaN),d(this,"touchIdentifier",null),d(this,"mounted",!1),d(this,"handleDragStart",y=>{if(this.props.onMouseDown(y),!this.props.allowAnyClick&&typeof y.button=="number"&&y.button!==0)return!1;const x=this.findDOMNode();if(!x||!x.ownerDocument||!x.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:$}=x;if(this.props.disabled||!(y.target instanceof $.defaultView.Node)||this.props.handle&&!(0,r.matchesSelectorAndParentsTo)(y.target,this.props.handle,x)||this.props.cancel&&(0,r.matchesSelectorAndParentsTo)(y.target,this.props.cancel,x))return;y.type==="touchstart"&&!this.props.allowMobileScroll&&y.preventDefault();const w=(0,r.getTouchIdentifier)(y);this.touchIdentifier=w;const E=(0,o.getControlPosition)(y,w,this);if(E==null)return;const{x:S,y:O}=E,_=(0,o.createCoreData)(this,S,O);(0,a.default)("DraggableCore: handleDragStart: %j",_),(0,a.default)("calling",this.props.onStart),!(this.props.onStart(y,_)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,r.addUserSelectStyles)($),this.dragging=!0,this.lastX=S,this.lastY=O,(0,r.addEvent)($,m.move,this.handleDrag),(0,r.addEvent)($,m.stop,this.handleDragStop))}),d(this,"handleDrag",y=>{const x=(0,o.getControlPosition)(y,this.touchIdentifier,this);if(x==null)return;let{x:$,y:w}=x;if(Array.isArray(this.props.grid)){let O=$-this.lastX,_=w-this.lastY;if([O,_]=(0,o.snapToGrid)(this.props.grid,O,_),!O&&!_)return;$=this.lastX+O,w=this.lastY+_}const E=(0,o.createCoreData)(this,$,w);if((0,a.default)("DraggableCore: handleDrag: %j",E),this.props.onDrag(y,E)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const _=document.createEvent("MouseEvents");_.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(_)}return}this.lastX=$,this.lastY=w}),d(this,"handleDragStop",y=>{if(!this.dragging)return;const x=(0,o.getControlPosition)(y,this.touchIdentifier,this);if(x==null)return;let{x:$,y:w}=x;if(Array.isArray(this.props.grid)){let _=$-this.lastX||0,P=w-this.lastY||0;[_,P]=(0,o.snapToGrid)(this.props.grid,_,P),$=this.lastX+_,w=this.lastY+P}const E=(0,o.createCoreData)(this,$,w);if(this.props.onStop(y,E)===!1||this.mounted===!1)return!1;const O=this.findDOMNode();O&&this.props.enableUserSelectHack&&(0,r.scheduleRemoveUserSelectStyles)(O.ownerDocument),(0,a.default)("DraggableCore: handleDragStop: %j",E),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,O&&((0,a.default)("DraggableCore: Removing handlers"),(0,r.removeEvent)(O.ownerDocument,m.move,this.handleDrag),(0,r.removeEvent)(O.ownerDocument,m.stop,this.handleDragStop))}),d(this,"onMouseDown",y=>(m=p.mouse,this.handleDragStart(y))),d(this,"onMouseUp",y=>(m=p.mouse,this.handleDragStop(y))),d(this,"onTouchStart",y=>(m=p.touch,this.handleDragStart(y))),d(this,"onTouchEnd",y=>(m=p.touch,this.handleDragStop(y)))}componentDidMount(){this.mounted=!0;const y=this.findDOMNode();y&&(0,r.addEvent)(y,p.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const y=this.findDOMNode();if(y){const{ownerDocument:x}=y;(0,r.removeEvent)(x,p.mouse.move,this.handleDrag),(0,r.removeEvent)(x,p.touch.move,this.handleDrag),(0,r.removeEvent)(x,p.mouse.stop,this.handleDragStop),(0,r.removeEvent)(x,p.touch.stop,this.handleDragStop),(0,r.removeEvent)(y,p.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,r.scheduleRemoveUserSelectStyles)(x)}}findDOMNode(){var y,x,$;return(y=this.props)!=null&&y.nodeRef?($=(x=this.props)==null?void 0:x.nodeRef)==null?void 0:$.current:n.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return kl.default=b,d(b,"displayName","DraggableCore"),d(b,"propTypes",{allowAnyClick:t.default.bool,allowMobileScroll:t.default.bool,children:t.default.node.isRequired,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:function(C,y){if(C[y]&&C[y].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:t.default.arrayOf(t.default.number),handle:t.default.string,cancel:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number,className:i.dontSetMe,style:i.dontSetMe,transform:i.dontSetMe}),d(b,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),kl}var ZE;function oV(){return ZE||(ZE=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return u.default}}),e.default=void 0;var t=g(M),n=f(VE()),r=f(hi),o=tV(),i=Jh(),a=GE(),l=xd(),u=f(rV()),d=f(YE());function f(x){return x&&x.__esModule?x:{default:x}}function g(x,$){if(typeof WeakMap=="function")var w=new WeakMap,E=new WeakMap;return(g=function(S,O){if(!O&&S&&S.__esModule)return S;var _,P,T={__proto__:null,default:S};if(S===null||typeof S!="object"&&typeof S!="function")return T;if(_=O?E:w){if(_.has(S))return _.get(S);_.set(S,T)}for(const L in S)L!=="default"&&{}.hasOwnProperty.call(S,L)&&((P=(_=Object.defineProperty)&&Object.getOwnPropertyDescriptor(S,L))&&(P.get||P.set)?_(T,L,P):T[L]=S[L]);return T})(x,$)}function p(){return p=Object.assign?Object.assign.bind():function(x){for(var $=1;$<arguments.length;$++){var w=arguments[$];for(var E in w)({}).hasOwnProperty.call(w,E)&&(x[E]=w[E])}return x},p.apply(null,arguments)}function m(x,$,w){return($=b($))in x?Object.defineProperty(x,$,{value:w,enumerable:!0,configurable:!0,writable:!0}):x[$]=w,x}function b(x){var $=C(x,"string");return typeof $=="symbol"?$:$+""}function C(x,$){if(typeof x!="object"||!x)return x;var w=x[Symbol.toPrimitive];if(w!==void 0){var E=w.call(x,$);if(typeof E!="object")return E;throw new TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(x)}class y extends t.Component{static getDerivedStateFromProps($,w){let{position:E}=$,{prevPropsPosition:S}=w;return E&&(!S||E.x!==S.x||E.y!==S.y)?((0,d.default)("Draggable: getDerivedStateFromProps %j",{position:E,prevPropsPosition:S}),{x:E.x,y:E.y,prevPropsPosition:{...E}}):null}constructor($){super($),m(this,"onDragStart",(w,E)=>{if((0,d.default)("Draggable: onDragStart: %j",E),this.props.onStart(w,(0,a.createDraggableData)(this,E))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),m(this,"onDrag",(w,E)=>{if(!this.state.dragging)return!1;(0,d.default)("Draggable: onDrag: %j",E);const S=(0,a.createDraggableData)(this,E),O={x:S.x,y:S.y,slackX:0,slackY:0};if(this.props.bounds){const{x:P,y:T}=O;O.x+=this.state.slackX,O.y+=this.state.slackY;const[L,z]=(0,a.getBoundPosition)(this,O.x,O.y);O.x=L,O.y=z,O.slackX=this.state.slackX+(P-O.x),O.slackY=this.state.slackY+(T-O.y),S.x=O.x,S.y=O.y,S.deltaX=O.x-this.state.x,S.deltaY=O.y-this.state.y}if(this.props.onDrag(w,S)===!1)return!1;this.setState(O)}),m(this,"onDragStop",(w,E)=>{if(!this.state.dragging||this.props.onStop(w,(0,a.createDraggableData)(this,E))===!1)return!1;(0,d.default)("Draggable: onDragStop: %j",E);const O={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:P,y:T}=this.props.position;O.x=P,O.y=T}this.setState(O)}),this.state={dragging:!1,dragged:!1,x:$.position?$.position.x:$.defaultPosition.x,y:$.position?$.position.y:$.defaultPosition.y,prevPropsPosition:{...$.position},slackX:0,slackY:0,isElementSVG:!1},$.position&&!($.onDrag||$.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){var $,w;return((w=($=this.props)==null?void 0:$.nodeRef)==null?void 0:w.current)??r.default.findDOMNode(this)}render(){const{axis:$,bounds:w,children:E,defaultPosition:S,defaultClassName:O,defaultClassNameDragging:_,defaultClassNameDragged:P,position:T,positionOffset:L,scale:z,...B}=this.props;let j={},I=null;const A=!!!T||this.state.dragging,D=T||S,V={x:(0,a.canDragX)(this)&&A?this.state.x:D.x,y:(0,a.canDragY)(this)&&A?this.state.y:D.y};this.state.isElementSVG?I=(0,i.createSVGTransform)(V,L):j=(0,i.createCSSTransform)(V,L);const W=(0,o.clsx)(E.props.className||"",O,{[_]:this.state.dragging,[P]:this.state.dragged});return t.createElement(u.default,p({},B,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(E),{className:W,style:{...E.props.style,...j},transform:I}))}}e.default=y,m(y,"displayName","Draggable"),m(y,"propTypes",{...u.default.propTypes,axis:n.default.oneOf(["both","x","y","none"]),bounds:n.default.oneOfType([n.default.shape({left:n.default.number,right:n.default.number,top:n.default.number,bottom:n.default.number}),n.default.string,n.default.oneOf([!1])]),defaultClassName:n.default.string,defaultClassNameDragging:n.default.string,defaultClassNameDragged:n.default.string,defaultPosition:n.default.shape({x:n.default.number,y:n.default.number}),positionOffset:n.default.shape({x:n.default.oneOfType([n.default.number,n.default.string]),y:n.default.oneOfType([n.default.number,n.default.string])}),position:n.default.shape({x:n.default.number,y:n.default.number}),className:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe}),m(y,"defaultProps",{...u.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(Uh)),Uh}var QE;function iV(){if(QE)return Hl.exports;QE=1;const{default:e,DraggableCore:t}=oV();return Hl.exports=e,Hl.exports.default=e,Hl.exports.DraggableCore=t,Hl.exports}var aV=iV();const sV=tl(aV);var lV="scripts_editor_a87zfz0",cV="scripts_editor_a87zfz1",uV="scripts_editor_a87zfz2",dV="scripts_editor_a87zfz3",fV="scripts_editor_a87zfz4";const gV=({isOpen:e,title:t,onClose:n,children:r})=>{const o=M.useRef(null);return e?X.jsx(sV,{nodeRef:o,handle:".drag-handle",bounds:"body",defaultPosition:{x:-100,y:-200},children:X.jsx("div",{ref:o,role:"dialog","aria-modal":"true",className:lV,onKeyDown:i=>{i.key==="Escape"&&n()},children:X.jsxs(Wh,{children:[X.jsxs("div",{className:`${cV} drag-handle`,children:[X.jsx("div",{className:`${uV}`,children:X.jsx("span",{className:dV,children:t})}),X.jsx(cn,{onClick:n,type:"text",children:X.jsx(ea,{style:{fontSize:18}})})]}),X.jsx("div",{className:fV,children:r})]})})}):null},JE=M.createContext(void 0),pV=({children:e})=>{const{isOpen:t,onOpen:n,onClose:r}=NE(),[o,i]=M.useState(null),[a,l]=M.useState("MISSING_TITLE"),[u,d]=M.useState(void 0),f=(m,b,C)=>{i(m),l(b||"MISSING_TITLE"),d(C),n()},g=()=>{r(),u&&u(),i(null),l("MISSING_TITLE"),d(void 0)},p={isOpen:t,currentComponent:o,currentTitle:a,displayComponent:f,closeModal:g};return X.jsxs(JE.Provider,{value:p,children:[e,X.jsx(gV,{isOpen:t,title:a,onClose:g,children:o})]})},e$=()=>{const e=M.useContext(JE);if(e===void 0)throw new Error("useSettingsModal must be used within a SettingsModalProvider");return e},t$={common:{red:"#d7268a"}},hV=({id:e,deleteBtnColor:t})=>{const{getNode:n}=bi(),{data:r}=n(e),o="Xoá node",{deleteElements:i}=bi(),{closeModal:a}=e$(),l=X.jsxs("span",{children:["Bạn có chắc chắn muốn xoá node ",X.jsx("b",{children:r==null?void 0:r.title}),"?"]}),u=d=>{d&&d.stopPropagation(),a(),i({nodes:[{id:e}]})};return X.jsx($h,{title:o,description:l,onConfirm:u,okText:"Xoá",cancelText:"Huỷ",children:X.jsx(cn,{type:"text",onClick:d=>d.stopPropagation(),style:{padding:"6px",paddingRight:"0px"},children:X.jsx(_g,{style:{color:t}})})})};function n$(e){return gt(n=>n.nodes.find(r=>r.id===e))}function r$(){const{setNodes:e}=bi();return M.useCallback((n,r)=>{e(o=>{const i=o.findIndex(l=>l.id===n);if(i===-1)return o;const a=[...o];return a[i]={...o[i],data:{...o[i].data,...r}},a})},[e])}const mV=({id:e,color:t})=>{var p,m;const n=r$(),r=n$(e),{isOpen:o,onOpen:i,onClose:a}=NE(),[l,u]=M.useState(((p=r==null?void 0:r.data)==null?void 0:p.title)||"");M.useEffect(()=>{var b;u(((b=r==null?void 0:r.data)==null?void 0:b.title)||"")},[(m=r==null?void 0:r.data)==null?void 0:m.title]);const d=b=>{b.stopPropagation(),b.preventDefault(),b.nativeEvent&&b.nativeEvent.stopImmediatePropagation&&b.nativeEvent.stopImmediatePropagation(),i()},f=()=>{n(e,{title:l}),a()},g=()=>{a()};return X.jsxs(X.Fragment,{children:[X.jsx(cn,{type:"text",style:{padding:4},onClick:d,children:X.jsx(Og,{style:{marginLeft:4,marginRight:8,color:t}})}),X.jsx(Tr,{title:"Đổi tiêu đề block",open:o,onOk:f,onCancel:g,okText:"Lưu",cancelText:"Hủy",afterClose:()=>{var b;return u(((b=r==null?void 0:r.data)==null?void 0:b.title)||"")},maskClosable:!1,destroyOnClose:!0,children:X.jsx(Yo,{type:"text",value:typeof l=="string"?l:"",onChange:b=>u(b.target.value),placeholder:"Nhập tiêu đề mới"})})]})};var vV="scripts_editor_10lsbsa0",yV="scripts_editor_10lsbsa1",bV="scripts_editor_10lsbsa2",CV="scripts_editor_10lsbsa3",xV="scripts_editor_10lsbsa4",wV="scripts_editor_10lsbsa5",SV="scripts_editor_10lsbsa7",EV="scripts_editor_10lsbsa8",$V="scripts_editor_10lsbsa9",o$="scripts_editor_10lsbsaa";const{TextArea:_V}=Yo,OV=()=>X.jsx(Ht.Item,{name:["machine","content"],noStyle:!0,children:X.jsx(_V,{placeholder:"Nhập kịch bản",rows:4,style:{width:"100%",border:"none",backgroundColor:"rgba(245, 245, 245, 1)",padding:"12px"}})}),{TextArea:NV}=Yo,PV=()=>X.jsx(Ht.Item,{name:["prompt","content"],noStyle:!0,children:X.jsx(NV,{placeholder:"Nhập prompt",rows:4,style:{width:"100%",border:"none",backgroundColor:"rgba(245, 245, 245, 1)",padding:"12px"}})}),{TextArea:Sd}=Yo,{Text:ms}=hs,IV=()=>{const e=Ht.useWatch(["record","detect_gender"]),t=Ht.useWatch(["record","has_personalized"]);return X.jsxs(X.Fragment,{children:[X.jsxs(Ht.Item,{name:["record","default_record"],valuePropName:"checked",style:{marginBottom:"8px"},label:X.jsx(ms,{strong:!0,children:"Mặc định"}),children:[X.jsxs(ps,{direction:"horizontal",size:16,wrap:!0,children:[X.jsx(jl,{children:X.jsx(cn,{icon:X.jsx(nu,{}),children:"Tải lên"})}),X.jsx(cn,{icon:X.jsx(eu,{}),style:{marginLeft:8},children:"Ghi âm"})]}),X.jsx("div",{style:{marginTop:8},children:X.jsx(ms,{italic:!0,type:"secondary",children:"Đây là transcript của ghi âm Đây là transcript của ghi âm Đây là transcript của ghi âm Đây là transcript của ghi âm Đây là transcript của ghi âm Đây là transcript của ghi âm."})})]}),X.jsx(Ht.Item,{name:["record","detect_gender"],valuePropName:"checked",style:{marginBottom:"0px"},children:X.jsx(Dl,{children:X.jsx(ms,{strong:!0,children:"Phân biệt giới tính"})})}),X.jsx(ka,{isOpen:e,children:X.jsxs(Fl,{gutter:[0,16],children:[X.jsx(Ht.Item,{name:["record","male_record"],noStyle:!0,children:X.jsxs(Fl,{justify:"space-between",align:"middle",children:[X.jsx(ua,{span:9,children:X.jsx(ms,{children:"Khách hàng nam"})}),X.jsx(ua,{span:15,children:X.jsxs(ps,{children:[X.jsx(jl,{children:X.jsx(cn,{icon:X.jsx(nu,{}),children:"Tải lên"})}),X.jsx(cn,{icon:X.jsx(eu,{}),children:"Ghi âm"})]})})]})}),X.jsx(Ht.Item,{noStyle:!0,name:["record","female_record"],children:X.jsxs(Fl,{justify:"space-between",align:"middle",children:[X.jsx(ua,{span:9,children:X.jsx(ms,{children:"Khách hàng nữ"})}),X.jsx(ua,{span:15,children:X.jsxs(ps,{children:[X.jsx(jl,{children:X.jsx(cn,{icon:X.jsx(nu,{}),children:"Tải lên"})}),X.jsx(cn,{icon:X.jsx(eu,{}),children:"Ghi âm"})]})})]})})]})}),X.jsx(yh,{style:{margin:"8px 0"}}),X.jsx(Ht.Item,{name:["record","has_personalized"],valuePropName:"checked",style:{marginBottom:"8px"},children:X.jsx(Dl,{children:X.jsx(ms,{strong:!0,children:"Cá nhân hoá"})})}),X.jsxs(ka,{isOpen:t,children:[X.jsx(hs.Text,{type:"secondary",children:"Bôi đen cụm từ trong kịch bản để thay thế bằng biến"}),X.jsx(Sd,{placeholder:"Em chào {{name}} ạ",rows:2})]}),X.jsx(Ht.Item,{name:["record","transcript_with_timestamp"],label:"Transcript với timestamp",hidden:!0,children:X.jsx(Sd,{placeholder:"<span start='0.0' end='0.3'>em</span> ...",rows:2})}),X.jsx(Ht.Item,{name:["record","transcript_original"],label:"Transcript gốc",hidden:!0,children:X.jsx(Sd,{placeholder:"Em chào anh chị ạ",rows:2})}),X.jsx(Ht.Item,{name:["record","transcript_personalize"],label:"Transcript cá nhân hóa",hidden:!0,children:X.jsx(Sd,{placeholder:"Em chào {{name}} ạ",rows:2})})]})},i$={missingMaleRecord:{title:"Thiếu ghi âm giọng nam",description:"Bạn chưa ghi âm giọng nam, vui lòng tải file ghi âm hoặc ghi âm trực tiếp"},missingFemaleRecord:{title:"Thiếu ghi âm giọng nữ",description:"Bạn chưa ghi âm giọng nữ, vui lòng tải file ghi âm hoặc ghi âm trực tiếp"}},a$={usePersonalized:{title:"Sử dụng cá nhân hoá",description:"Bạn nên sử dụng cá nhân hoá để tăng thời lượng cuộc gọi"},shouldHaveMemories:{title:"Cài đặt kiến thức",description:"Để bot trả lời tốt hơn, bạn nên cài đặt kiến thức. Click vào đây để cài đặt."}};function s$(e){var d;const t=n$(e),{data:n}=t,r=n,o=(d=r.record)==null?void 0:d.detect_gender,i=r.type,a=M.useMemo(()=>{const f=[];return i===an.MACHINE&&f.push(a$.usePersonalized),i===an.PROMPT&&f.push(a$.shouldHaveMemories),f},[i]),l=M.useMemo(()=>{var g,p;const f=[];return i===an.RECORD&&o&&(((g=r.record)==null?void 0:g.male_record)===void 0&&f.push(i$.missingMaleRecord),((p=r.record)==null?void 0:p.female_record)===void 0&&f.push(i$.missingFemaleRecord)),f},[i,r,o]),u=a.length!==0||l.length!==0;return{infoAlerts:a,errorAlerts:l,hasAlert:u}}const TV=({id:e})=>{const{getNode:t,setNodes:n}=bi(),r=r$(),{infoAlerts:o,errorAlerts:i,hasAlert:a}=s$(e),{data:l}=t(e),u=l,[d]=Ht.useForm(),f=Ht.useWatch(["type"],d)||an.MACHINE,g=p=>{r(e,p)};return X.jsx("div",{className:$V,children:X.jsx(Ht,{form:d,layout:"vertical",initialValues:{...u},onFinish:g,onBlur:()=>{d.submit()},onChange:()=>{d.submit()},children:X.jsxs(ps,{direction:"vertical",size:"small",style:{height:"500px"},children:[X.jsx(Ht.Item,{name:["type"],noStyle:!0,children:X.jsx(NS,{block:!0,options:[{label:"Giọng máy",value:an.MACHINE},{label:"Ghi âm",value:an.RECORD},{label:"Prompt",value:an.PROMPT}]})}),X.jsx(ka,{isOpen:f===an.RECORD,children:X.jsx(IV,{})}),X.jsx(ka,{isOpen:f===an.MACHINE,children:X.jsx(OV,{})}),X.jsx(ka,{isOpen:f===an.PROMPT,children:X.jsx(PV,{})}),X.jsxs(Wh,{visible:a,children:[X.jsx(yh,{style:{margin:"4px 0"}}),!kh.isEmpty(o)&&X.jsx("div",{className:o$,children:o.map(p=>X.jsx(Fu,{message:p.title,description:p.description,type:"info",showIcon:!0,closable:!0,style:{padding:"12px",margin:"12px 0"}},p.title))}),!kh.isEmpty(i)&&X.jsx("div",{className:o$,children:i.map(p=>X.jsx(Fu,{style:{padding:"12px"},message:p.title,description:p.description,type:"error",showIcon:!0,closable:!0},p.title))})]}),X.jsx("div",{style:{height:"200px"}})]})})})},MV=({id:e,data:t})=>{const{displayComponent:n}=e$(),{errorAlerts:r}=s$(e),o=t.title||"Bot nói",i=t.type||an.RECORD,a=M.useMemo(()=>{var u,d,f;return i===an.MACHINE||i===an.PROMPT?((u=t==null?void 0:t.machine)==null?void 0:u.content)||((d=t==null?void 0:t.prompt)==null?void 0:d.content)||"Vui lòng nhập nội dung":i===an.RECORD?((f=t==null?void 0:t.record)==null?void 0:f.transcript_original)||"Vui lòng ghi âm hoặc tải file ghi âm":"N/A"},[i,t]),l=u=>{var d;(d=u.target)!=null&&d.closest("button")||(u.stopPropagation(),u.preventDefault(),n(X.jsx(TV,{id:e}),"Cài đặt bot nói"))};return X.jsx("div",{className:vV,onClick:l,onKeyDown:u=>{(u.key==="Enter"||u.key===" ")&&l(u)},children:X.jsxs("div",{className:yV,children:[X.jsxs("div",{className:bV,children:[X.jsx("span",{className:CV,children:X.jsx(Ub,{})}),X.jsx("span",{className:xV,children:o}),X.jsx(mV,{id:e,color:t$.common.red}),X.jsxs("div",{className:wV,children:[i===an.RECORD&&"Ghi âm",i===an.MACHINE&&"Giọng máy",i===an.PROMPT&&"Prompt"]}),X.jsx(hV,{id:e,deleteBtnColor:t$.common.red})]}),X.jsx(ka,{isOpen:!kh.isEmpty(r),children:X.jsx("div",{className:SV,children:r.map(u=>X.jsx(Fu,{style:{width:"100%"},message:u.title,type:"error",showIcon:!0,closable:!0},`small-${e}-${u.title}`))})}),X.jsx("div",{className:EV,children:X.jsx(Wh,{children:a},`${e}-${a}`)})]})})},AV=({data:e,id:t,type:n})=>X.jsxs("div",{children:[X.jsx(Ji,{type:"source",position:Ve.Left}),X.jsx(MV,{id:t,data:e}),X.jsx(Ji,{type:"target",position:Ve.Right})]});var DV="scripts_editor_flqrya0",FV="scripts_editor_flqrya1",LV="scripts_editor_flqrya2",RV="scripts_editor_flqrya3",l$={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},c$=M.createContext&&M.createContext(l$),zV=["attr","size","title"];function jV(e,t){if(e==null)return{};var n=BV(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function BV(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Ed(){return Ed=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ed.apply(this,arguments)}function u$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function $d(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?u$(Object(n),!0).forEach(function(r){VV(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function VV(e,t,n){return t=HV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HV(e){var t=kV(e,"string");return typeof t=="symbol"?t:t+""}function kV(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function d$(e){return e&&e.map((t,n)=>M.createElement(t.tag,$d({key:n},t.attr),d$(t.child)))}function WV(e){return t=>M.createElement(UV,Ed({attr:$d({},e.attr)},t),d$(e.child))}function UV(e){var t=n=>{var{attr:r,size:o,title:i}=e,a=jV(e,zV),l=o||n.size||"1em",u;return n.className&&(u=n.className),e.className&&(u=(u?u+" ":"")+e.className),M.createElement("svg",Ed({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,a,{className:u,style:$d($d({color:e.color||n.color},n.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),i&&M.createElement("title",null,i),e.children)};return c$!==void 0?M.createElement(c$.Consumer,null,n=>t(n)):t(l$)}function qV(e){return WV({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M1.5 1a.5.5 0 0 1 .5.5v13a.5.5 0 0 1-1 0v-13a.5.5 0 0 1 .5-.5"},child:[]},{tag:"path",attr:{d:"M3 7a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1z"},child:[]}]})(e)}const GV=()=>X.jsx("div",{className:DV,children:X.jsxs("div",{className:FV,children:[X.jsx("span",{className:LV,children:X.jsx(qV,{})}),X.jsx("span",{className:RV,children:"Bắt đầu"})]})}),XV=({data:e})=>X.jsxs("div",{children:[X.jsx(Ji,{type:"target",position:Ve.Right}),X.jsx(GV,{})]}),YV={[Pt.SPEAK]:AV,[Pt.START]:XV},f$=M.createContext([null,()=>{}]),KV=({children:e})=>{const[t,n]=M.useState(null);return X.jsx(f$.Provider,{value:[t,n],children:e})},g$=()=>M.useContext(f$);var ZV="scripts_editor_ohkkdt0",p$="scripts_editor_ohkkdt1",QV="scripts_editor_ohkkdt2",JV="scripts_editor_ohkkdt3",eH="scripts_editor_ohkkdt4";const tH=()=>{const[e,t]=g$(),n=(r,o)=>{t(o),r.dataTransfer.effectAllowed="move"};return X.jsx("div",{className:ZV,children:_E.map(r=>{const o=r.icon,i=r.active;return X.jsxs(cn,{draggable:!0,type:"text",className:i?`${p$} ${QV}`:p$,onDragStart:a=>n(a,r.key),children:[X.jsx("span",{className:JV,style:{color:OE[r.key]},children:X.jsx(o,{})}),X.jsx("span",{className:eH,children:r.label})]},r.key)})})};var nH="scripts_editor_3c0va90",rH="scripts_editor_3c0va91",oH="scripts_editor_3c0va93",iH="scripts_editor_3c0va94",aH="scripts_editor_3c0va95";const sH=e=>`${e.toLowerCase()}_${$A()}`,lH=M.forwardRef((e,t)=>{const n=M.useRef(null),[r,o,i]=GM(OA),[a,l,u]=XM(NA),[d,f]=M.useState(),{screenToFlowPosition:g}=bi(),[p]=g$(),m=M.useCallback(x=>l($=>E0(x,$)),[l]),b=M.useCallback(x=>{f(x)},[]),C=M.useCallback(x=>{x.preventDefault(),x.dataTransfer.dropEffect="move"},[]),y=M.useCallback(x=>{if(x.preventDefault(),!p)return;const $=g({x:x.clientX,y:x.clientY}),w={id:sH(p),type:p,position:$,data:{title:ob[p],..._A[p]},deletable:!0};o(E=>E.concat(w))},[g,p,o]);return M.useImperativeHandle(t,()=>({getFlowJson:()=>d==null?void 0:d.toObject()})),console.log(d==null?void 0:d.toObject()),X.jsx("div",{className:nH,children:X.jsxs("div",{className:rH,children:[X.jsx("div",{className:oH,ref:n,children:X.jsxs(qM,{nodes:r,edges:a,nodeTypes:YV,onNodesChange:i,onEdgesChange:u,onConnect:m,onInit:b,onDrop:y,onDragOver:C,fitView:!0,children:[X.jsx(aA,{orientation:"horizontal"}),X.jsx(JM,{variant:"dots",gap:12,size:2})]})}),X.jsx("div",{className:aH,children:X.jsx("div",{className:iH,children:X.jsx(tH,{})})})]})})}),cH=()=>X.jsx("section",{className:"scripts-editor-global",children:X.jsx(Jy,{children:X.jsx(KV,{children:X.jsx(pV,{children:X.jsx(lH,{})})})})});rr.BlockType=Pt,rr.SPEAK_TYPE=an,rr.ScriptEditor=cH,rr.iconColors=OE,rr.sidebarButtons=_E,Object.defineProperty(rr,Symbol.toStringTag,{value:"Module"})});
|