Plugin Directory

Changeset 3200984


Ignore:
Timestamp:
12/02/2024 02:29:11 PM (15 months ago)
Author:
notificationmaster
Message:

version 1.4.8

Location:
notification-master
Files:
927 added
6 edited

Legend:

Unmodified
Added
Removed
  • notification-master/trunk/dist/index.asset.php

    r3189998 r3200984  
    1 <?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-api-fetch', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-url'), 'version' => '63352b3faa2dec37eb86');
     1<?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-api-fetch', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-url'), 'version' => 'aae65d075d0b337c8b5f');
  • notification-master/trunk/dist/index.js

    r3189998 r3200984  
    1 (()=>{var e,t={75:(e,t,n)=>{"use strict";var o=n(453),r=n(487),i=r(o("String.prototype.indexOf"));e.exports=function(e,t){var n=o(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?r(n):n}},487:(e,t,n)=>{"use strict";var o=n(743),r=n(453),i=n(897),a=n(675),s=r("%Function.prototype.apply%"),l=r("%Function.prototype.call%"),c=r("%Reflect.apply%",!0)||o.call(l,s),u=n(655),d=r("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new a("a function is required");var t=c(o,l,arguments);return i(t,1+d(0,e.length-(arguments.length-1)),!0)};var f=function(){return c(o,s,arguments)};u?u(e.exports,"apply",{value:f}):e.exports.apply=f},965:(e,t,n)=>{"use strict";var o=n(426),r={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,a,s,l,c,u=!1;t||(t={}),n=t.debug||!1;try{if(a=o(),s=document.createRange(),l=document.getSelection(),(c=document.createElement("span")).textContent=e,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(o){if(o.stopPropagation(),t.format)if(o.preventDefault(),void 0===o.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=r[t.format]||r.default;window.clipboardData.setData(i,e)}else o.clipboardData.clearData(),o.clipboardData.setData(t.format,e);t.onCopy&&(o.preventDefault(),t.onCopy(o.clipboardData))})),document.body.appendChild(c),s.selectNodeContents(c),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(o){n&&console.error("unable to copy using execCommand: ",o),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(o){n&&console.error("unable to copy using clipboardData: ",o),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),c&&document.body.removeChild(c),a()}return u}},41:(e,t,n)=>{"use strict";var o=n(655),r=n(68),i=n(675),a=n(795);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new i("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],d=!!a&&a(e,t);if(o)o(e,t,{configurable:null===c&&d?d.configurable:!c,enumerable:null===s&&d?d.enumerable:!s,value:n,writable:null===l&&d?d.writable:!l});else{if(!u&&(s||l||c))throw new r("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},655:(e,t,n)=>{"use strict";var o=n(453)("%Object.defineProperty%",!0)||!1;if(o)try{o({},"a",{value:1})}catch(e){o=!1}e.exports=o},237:e=>{"use strict";e.exports=EvalError},383:e=>{"use strict";e.exports=Error},290:e=>{"use strict";e.exports=RangeError},538:e=>{"use strict";e.exports=ReferenceError},68:e=>{"use strict";e.exports=SyntaxError},675:e=>{"use strict";e.exports=TypeError},345:e=>{"use strict";e.exports=URIError},353:e=>{"use strict";var t=Object.prototype.toString,n=Math.max,o=function(e,t){for(var n=[],o=0;o<e.length;o+=1)n[o]=e[o];for(var r=0;r<t.length;r+=1)n[r+e.length]=t[r];return n};e.exports=function(e){var r=this;if("function"!=typeof r||"[object Function]"!==t.apply(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var i,a=function(e,t){for(var n=[],o=1,r=0;o<e.length;o+=1,r+=1)n[r]=e[o];return n}(arguments),s=n(0,r.length-a.length),l=[],c=0;c<s;c++)l[c]="$"+c;if(i=Function("binder","return function ("+function(e,t){for(var n="",o=0;o<e.length;o+=1)n+=e[o],o+1<e.length&&(n+=",");return n}(l)+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var t=r.apply(this,o(a,arguments));return Object(t)===t?t:this}return r.apply(e,o(a,arguments))})),r.prototype){var u=function(){};u.prototype=r.prototype,i.prototype=new u,u.prototype=null}return i}},743:(e,t,n)=>{"use strict";var o=n(353);e.exports=Function.prototype.bind||o},453:(e,t,n)=>{"use strict";var o,r=n(383),i=n(237),a=n(290),s=n(538),l=n(68),c=n(675),u=n(345),d=Function,f=function(e){try{return d('"use strict"; return ('+e+").constructor;")()}catch(e){}},p=Object.getOwnPropertyDescriptor;if(p)try{p({},"")}catch(e){p=null}var h=function(){throw new c},m=p?function(){try{return h}catch(e){try{return p(arguments,"callee").get}catch(e){return h}}}():h,g=n(39)(),v=n(24)(),b=Object.getPrototypeOf||(v?function(e){return e.__proto__}:null),y={},x="undefined"!=typeof Uint8Array&&b?b(Uint8Array):o,w={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?o:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?o:ArrayBuffer,"%ArrayIteratorPrototype%":g&&b?b([][Symbol.iterator]()):o,"%AsyncFromSyncIteratorPrototype%":o,"%AsyncFunction%":y,"%AsyncGenerator%":y,"%AsyncGeneratorFunction%":y,"%AsyncIteratorPrototype%":y,"%Atomics%":"undefined"==typeof Atomics?o:Atomics,"%BigInt%":"undefined"==typeof BigInt?o:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?o:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?o:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?o:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"==typeof Float32Array?o:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?o:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?o:FinalizationRegistry,"%Function%":d,"%GeneratorFunction%":y,"%Int8Array%":"undefined"==typeof Int8Array?o:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?o:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?o:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g&&b?b(b([][Symbol.iterator]())):o,"%JSON%":"object"==typeof JSON?JSON:o,"%Map%":"undefined"==typeof Map?o:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&g&&b?b((new Map)[Symbol.iterator]()):o,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?o:Promise,"%Proxy%":"undefined"==typeof Proxy?o:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":"undefined"==typeof Reflect?o:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?o:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&g&&b?b((new Set)[Symbol.iterator]()):o,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?o:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&b?b(""[Symbol.iterator]()):o,"%Symbol%":g?Symbol:o,"%SyntaxError%":l,"%ThrowTypeError%":m,"%TypedArray%":x,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?o:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?o:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?o:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?o:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"==typeof WeakMap?o:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?o:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?o:WeakSet};if(b)try{null.error}catch(e){var C=b(b(e));w["%Error.prototype%"]=C}var S=function e(t){var n;if("%AsyncFunction%"===t)n=f("async function () {}");else if("%GeneratorFunction%"===t)n=f("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=f("async function* () {}");else if("%AsyncGenerator%"===t){var o=e("%AsyncGeneratorFunction%");o&&(n=o.prototype)}else if("%AsyncIteratorPrototype%"===t){var r=e("%AsyncGenerator%");r&&b&&(n=b(r.prototype))}return w[t]=n,n},E={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},k=n(743),$=n(957),_=k.call(Function.call,Array.prototype.concat),O=k.call(Function.apply,Array.prototype.splice),j=k.call(Function.call,String.prototype.replace),M=k.call(Function.call,String.prototype.slice),P=k.call(Function.call,RegExp.prototype.exec),I=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,N=/\\(\\)?/g,T=function(e,t){var n,o=e;if($(E,o)&&(o="%"+(n=E[o])[0]+"%"),$(w,o)){var r=w[o];if(r===y&&(r=S(o)),void 0===r&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:o,value:r}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===P(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=M(e,0,1),n=M(e,-1);if("%"===t&&"%"!==n)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var o=[];return j(e,I,(function(e,t,n,r){o[o.length]=n?j(r,N,"$1"):t||e})),o}(e),o=n.length>0?n[0]:"",r=T("%"+o+"%",t),i=r.name,a=r.value,s=!1,u=r.alias;u&&(o=u[0],O(n,_([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var h=n[d],m=M(h,0,1),g=M(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===g||"'"===g||"`"===g)&&m!==g)throw new l("property names with quotes must have matching quotes");if("constructor"!==h&&f||(s=!0),$(w,i="%"+(o+="."+h)+"%"))a=w[i];else if(null!=a){if(!(h in a)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(p&&d+1>=n.length){var v=p(a,h);a=(f=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:a[h]}else f=$(a,h),a=a[h];f&&!s&&(w[i]=a)}}return a}},795:(e,t,n)=>{"use strict";var o=n(453)("%Object.getOwnPropertyDescriptor%",!0);if(o)try{o([],"length")}catch(e){o=null}e.exports=o},592:(e,t,n)=>{"use strict";var o=n(655),r=function(){return!!o};r.hasArrayLengthDefineBug=function(){if(!o)return null;try{return 1!==o([],"length",{value:1}).length}catch(e){return!0}},e.exports=r},24:e=>{"use strict";var t={__proto__:null,foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!(t instanceof n)}},39:(e,t,n)=>{"use strict";var o="undefined"!=typeof Symbol&&Symbol,r=n(333);e.exports=function(){return"function"==typeof o&&"function"==typeof Symbol&&"symbol"==typeof o("foo")&&"symbol"==typeof Symbol("bar")&&r()}},333:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var r=Object.getOwnPropertyDescriptor(e,t);if(42!==r.value||!0!==r.enumerable)return!1}return!0}},957:(e,t,n)=>{"use strict";var o=Function.prototype.call,r=Object.prototype.hasOwnProperty,i=n(743);e.exports=i.call(o,r)},146:(e,t,n)=>{"use strict";var o=n(404),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return o.isMemo(e)?a:s[e.$$typeof]||r}s[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[o.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,o){if("string"!=typeof n){if(h){var r=p(n);r&&r!==h&&e(t,r,o)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),g=0;g<a.length;++g){var v=a[g];if(!(i[v]||o&&o[v]||m&&m[v]||s&&s[v])){var b=f(n,v);try{c(t,v,b)}catch(e){}}}}return t}},72:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,o=n?Symbol.for("react.element"):60103,r=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case u:case d:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case g:case m:case l:return e;default:return t}}case r:return t}}}function C(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=o,t.ForwardRef=f,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=r,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return C(e)||w(e)===u},t.isConcurrentMode=C,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===r},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===b||e.$$typeof===y||e.$$typeof===x||e.$$typeof===v)},t.typeOf=w},404:(e,t,n)=>{"use strict";e.exports=n(72)},859:(e,t,n)=>{var o="function"==typeof Map&&Map.prototype,r=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=o&&r&&"function"==typeof r.get?r.get:null,a=o&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&l&&"function"==typeof l.get?l.get:null,u=s&&Set.prototype.forEach,d="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,m=Object.prototype.toString,g=Function.prototype.toString,v=String.prototype.match,b=String.prototype.slice,y=String.prototype.replace,x=String.prototype.toUpperCase,w=String.prototype.toLowerCase,C=RegExp.prototype.test,S=Array.prototype.concat,E=Array.prototype.join,k=Array.prototype.slice,$=Math.floor,_="function"==typeof BigInt?BigInt.prototype.valueOf:null,O=Object.getOwnPropertySymbols,j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,M="function"==typeof Symbol&&"object"==typeof Symbol.iterator,P="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,I=Object.prototype.propertyIsEnumerable,N=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function T(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||C.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var o=e<0?-$(-e):$(e);if(o!==e){var r=String(o),i=b.call(t,r.length+1);return y.call(r,n,"$&_")+"."+y.call(y.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return y.call(t,n,"$&_")}var R=n(634),A=R.custom,D=H(A)?A:null;function B(e,t,n){var o="double"===(n.quoteStyle||t)?'"':"'";return o+e+o}function L(e){return y.call(String(e),/"/g,"&quot;")}function z(e){return!("[object Array]"!==K(e)||P&&"object"==typeof e&&P in e)}function F(e){return!("[object RegExp]"!==K(e)||P&&"object"==typeof e&&P in e)}function H(e){if(M)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!j)return!1;try{return j.call(e),!0}catch(e){}return!1}e.exports=function e(t,o,r,s){var l=o||{};if(W(l,"quoteStyle")&&"single"!==l.quoteStyle&&"double"!==l.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(W(l,"maxStringLength")&&("number"==typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!W(l,"customInspect")||l.customInspect;if("boolean"!=typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(W(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(W(l,"numericSeparator")&&"boolean"!=typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var x=l.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return U(t,l);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var C=String(t);return x?T(t,C):C}if("bigint"==typeof t){var $=String(t)+"n";return x?T(t,$):$}var O=void 0===l.depth?5:l.depth;if(void 0===r&&(r=0),r>=O&&O>0&&"object"==typeof t)return z(t)?"[Array]":"[Object]";var A,V=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=E.call(Array(e.indent+1)," ")}return{base:n,prev:E.call(Array(t+1),n)}}(l,r);if(void 0===s)s=[];else if(q(s,t)>=0)return"[Circular]";function G(t,n,o){if(n&&(s=k.call(s)).push(n),o){var i={depth:l.depth};return W(l,"quoteStyle")&&(i.quoteStyle=l.quoteStyle),e(t,i,r+1,s)}return e(t,l,r+1,s)}if("function"==typeof t&&!F(t)){var ee=function(e){if(e.name)return e.name;var t=v.call(g.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),te=J(t,G);return"[Function"+(ee?": "+ee:" (anonymous)")+"]"+(te.length>0?" { "+E.call(te,", ")+" }":"")}if(H(t)){var ne=M?y.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):j.call(t);return"object"!=typeof t||M?ne:X(ne)}if((A=t)&&"object"==typeof A&&("undefined"!=typeof HTMLElement&&A instanceof HTMLElement||"string"==typeof A.nodeName&&"function"==typeof A.getAttribute)){for(var oe="<"+w.call(String(t.nodeName)),re=t.attributes||[],ie=0;ie<re.length;ie++)oe+=" "+re[ie].name+"="+B(L(re[ie].value),"double",l);return oe+=">",t.childNodes&&t.childNodes.length&&(oe+="..."),oe+"</"+w.call(String(t.nodeName))+">"}if(z(t)){if(0===t.length)return"[]";var ae=J(t,G);return V&&!function(e){for(var t=0;t<e.length;t++)if(q(e[t],"\n")>=0)return!1;return!0}(ae)?"["+Q(ae,V)+"]":"[ "+E.call(ae,", ")+" ]"}if(function(e){return!("[object Error]"!==K(e)||P&&"object"==typeof e&&P in e)}(t)){var se=J(t,G);return"cause"in Error.prototype||!("cause"in t)||I.call(t,"cause")?0===se.length?"["+String(t)+"]":"{ ["+String(t)+"] "+E.call(se,", ")+" }":"{ ["+String(t)+"] "+E.call(S.call("[cause]: "+G(t.cause),se),", ")+" }"}if("object"==typeof t&&m){if(D&&"function"==typeof t[D]&&R)return R(t,{depth:O-r});if("symbol"!==m&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var le=[];return a&&a.call(t,(function(e,n){le.push(G(n,t,!0)+" => "+G(e,t))})),Z("Map",i.call(t),le,V)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ce=[];return u&&u.call(t,(function(e){ce.push(G(e,t))})),Z("Set",c.call(t),ce,V)}if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Y("WeakMap");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Y("WeakSet");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{return p.call(e),!0}catch(e){}return!1}(t))return Y("WeakRef");if(function(e){return!("[object Number]"!==K(e)||P&&"object"==typeof e&&P in e)}(t))return X(G(Number(t)));if(function(e){if(!e||"object"!=typeof e||!_)return!1;try{return _.call(e),!0}catch(e){}return!1}(t))return X(G(_.call(t)));if(function(e){return!("[object Boolean]"!==K(e)||P&&"object"==typeof e&&P in e)}(t))return X(h.call(t));if(function(e){return!("[object String]"!==K(e)||P&&"object"==typeof e&&P in e)}(t))return X(G(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if(t===n.g)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==K(e)||P&&"object"==typeof e&&P in e)}(t)&&!F(t)){var ue=J(t,G),de=N?N(t)===Object.prototype:t instanceof Object||t.constructor===Object,fe=t instanceof Object?"":"null prototype",pe=!de&&P&&Object(t)===t&&P in t?b.call(K(t),8,-1):fe?"Object":"",he=(de||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(pe||fe?"["+E.call(S.call([],pe||[],fe||[]),": ")+"] ":"");return 0===ue.length?he+"{}":V?he+"{"+Q(ue,V)+"}":he+"{ "+E.call(ue,", ")+" }"}return String(t)};var V=Object.prototype.hasOwnProperty||function(e){return e in this};function W(e,t){return V.call(e,t)}function K(e){return m.call(e)}function q(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1}function U(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,o="... "+n+" more character"+(n>1?"s":"");return U(b.call(e,0,t.maxStringLength),t)+o}return B(y.call(y.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,G),"single",t)}function G(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+x.call(t.toString(16))}function X(e){return"Object("+e+")"}function Y(e){return e+" { ? }"}function Z(e,t,n,o){return e+" ("+t+") {"+(o?Q(n,o):E.call(n,", "))+"}"}function Q(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+E.call(e,","+n)+"\n"+t.prev}function J(e,t){var n=z(e),o=[];if(n){o.length=e.length;for(var r=0;r<e.length;r++)o[r]=W(e,r)?t(e[r],e):""}var i,a="function"==typeof O?O(e):[];if(M){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var l in e)W(e,l)&&(n&&String(Number(l))===l&&l<e.length||M&&i["$"+l]instanceof Symbol||(C.call(/[^\w$]/,l)?o.push(t(l,e)+": "+t(e[l],e)):o.push(l+": "+t(e[l],e))));if("function"==typeof O)for(var c=0;c<a.length;c++)I.call(e,a[c])&&o.push("["+t(a[c])+"]: "+t(e[a[c]],e));return o}},765:e=>{"use strict";var t=String.prototype.replace,n=/%20/g,o="RFC3986";e.exports={default:o,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:o}},373:(e,t,n)=>{"use strict";var o=n(636),r=n(642),i=n(765);e.exports={formats:i,parse:r,stringify:o}},642:(e,t,n)=>{"use strict";var o=n(339),r=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:o.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t,n,o){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(i),c=s?i.slice(0,s.index):i,u=[];if(c){if(!n.plainObjects&&r.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}for(var d=0;n.depth>0&&null!==(s=a.exec(i))&&d<n.depth;){if(d+=1,!n.plainObjects&&r.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(s[1])}return s&&u.push("["+i.slice(s.index)+"]"),function(e,t,n,o){for(var r=o?t:l(t,n),i=e.length-1;i>=0;--i){var a,s=e[i];if("[]"===s&&n.parseArrays)a=[].concat(r);else{a=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(c,10);n.parseArrays||""!==c?!isNaN(u)&&s!==c&&String(u)===c&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(a=[])[u]=r:"__proto__"!==c&&(a[c]=r):a={0:r}}r=a}return r}(u,t,n,o)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||o.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var n,c={__proto__:null},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,d=t.parameterLimit===1/0?void 0:t.parameterLimit,f=u.split(t.delimiter,d),p=-1,h=t.charset;if(t.charsetSentinel)for(n=0;n<f.length;++n)0===f[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[n]?h="utf-8":"utf8=%26%2310003%3B"===f[n]&&(h="iso-8859-1"),p=n,n=f.length);for(n=0;n<f.length;++n)if(n!==p){var m,g,v=f[n],b=v.indexOf("]="),y=-1===b?v.indexOf("="):b+1;-1===y?(m=t.decoder(v,a.decoder,h,"key"),g=t.strictNullHandling?null:""):(m=t.decoder(v.slice(0,y),a.decoder,h,"key"),g=o.maybeMap(l(v.slice(y+1),t),(function(e){return t.decoder(e,a.decoder,h,"value")}))),g&&t.interpretNumericEntities&&"iso-8859-1"===h&&(g=s(g)),v.indexOf("[]=")>-1&&(g=i(g)?[g]:g),r.call(c,m)?c[m]=o.combine(c[m],g):c[m]=g}return c}(e,n):e,d=n.plainObjects?Object.create(null):{},f=Object.keys(u),p=0;p<f.length;++p){var h=f[p],m=c(h,u[h],n,"string"==typeof e);d=o.merge(d,m,n)}return!0===n.allowSparse?d:o.compact(d)}},636:(e,t,n)=>{"use strict";var o=n(920),r=n(339),i=n(765),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,l(t)?t:[t])},d=Date.prototype.toISOString,f=i.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:f,formatter:i.formatters[f],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},h={},m=function e(t,n,i,a,s,c,d,f,m,g,v,b,y,x,w,C){for(var S,E=t,k=C,$=0,_=!1;void 0!==(k=k.get(h))&&!_;){var O=k.get(t);if($+=1,void 0!==O){if(O===$)throw new RangeError("Cyclic object value");_=!0}void 0===k.get(h)&&($=0)}if("function"==typeof f?E=f(n,E):E instanceof Date?E=v(E):"comma"===i&&l(E)&&(E=r.maybeMap(E,(function(e){return e instanceof Date?v(e):e}))),null===E){if(s)return d&&!x?d(n,p.encoder,w,"key",b):n;E=""}if("string"==typeof(S=E)||"number"==typeof S||"boolean"==typeof S||"symbol"==typeof S||"bigint"==typeof S||r.isBuffer(E))return d?[y(x?n:d(n,p.encoder,w,"key",b))+"="+y(d(E,p.encoder,w,"value",b))]:[y(n)+"="+y(String(E))];var j,M=[];if(void 0===E)return M;if("comma"===i&&l(E))x&&d&&(E=r.maybeMap(E,d)),j=[{value:E.length>0?E.join(",")||null:void 0}];else if(l(f))j=f;else{var P=Object.keys(E);j=m?P.sort(m):P}for(var I=a&&l(E)&&1===E.length?n+"[]":n,N=0;N<j.length;++N){var T=j[N],R="object"==typeof T&&void 0!==T.value?T.value:E[T];if(!c||null!==R){var A=l(E)?"function"==typeof i?i(I,T):I:I+(g?"."+T:"["+T+"]");C.set(t,$);var D=o();D.set(h,C),u(M,e(R,A,i,a,s,c,"comma"===i&&x&&l(E)?null:d,f,m,g,v,b,y,x,w,D))}}return M};e.exports=function(e,t){var n,r=e,c=function(e){if(!e)return p;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if(void 0!==e.format){if(!a.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o=i.formatters[n],r=p.filter;return("function"==typeof e.filter||l(e.filter))&&(r=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:void 0===e.allowDots?p.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,delimiter:void 0===e.delimiter?p.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:p.encode,encoder:"function"==typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:r,format:n,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}}(t);"function"==typeof c.filter?r=(0,c.filter)("",r):l(c.filter)&&(n=c.filter);var d,f=[];if("object"!=typeof r||null===r)return"";d=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var h=s[d];if(t&&"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var g="comma"===h&&t&&t.commaRoundTrip;n||(n=Object.keys(r)),c.sort&&n.sort(c.sort);for(var v=o(),b=0;b<n.length;++b){var y=n[b];c.skipNulls&&null===r[y]||u(f,m(r[y],y,h,g,c.strictNullHandling,c.skipNulls,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,v))}var x=f.join(c.delimiter),w=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?w+="utf8=%26%2310003%3B&":w+="utf8=%E2%9C%93&"),x.length>0?w+x:""}},339:(e,t,n)=>{"use strict";var o=n(765),r=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},o=0;o<e.length;++o)void 0!==e[o]&&(n[o]=e[o]);return n};e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],o=0;o<t.length;++o)for(var r=t[o],a=r.obj[r.prop],s=Object.keys(a),l=0;l<s.length;++l){var c=s[l],u=a[c];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:a,prop:c}),n.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var o=[],r=0;r<n.length;++r)void 0!==n[r]&&o.push(n[r]);t.obj[t.prop]=o}}}(t),e},decode:function(e,t,n){var o=e.replace(/\+/g," ");if("iso-8859-1"===n)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(e){return o}},encode:function(e,t,n,r,i){if(0===e.length)return e;var s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var l="",c=0;c<s.length;++c){var u=s.charCodeAt(c);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||i===o.RFC1738&&(40===u||41===u)?l+=s.charAt(c):u<128?l+=a[u]:u<2048?l+=a[192|u>>6]+a[128|63&u]:u<55296||u>=57344?l+=a[224|u>>12]+a[128|u>>6&63]+a[128|63&u]:(c+=1,u=65536+((1023&u)<<10|1023&s.charCodeAt(c)),l+=a[240|u>>18]+a[128|u>>12&63]+a[128|u>>6&63]+a[128|63&u])}return l},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var n=[],o=0;o<e.length;o+=1)n.push(t(e[o]));return n}return t(e)},merge:function e(t,n,o){if(!n)return t;if("object"!=typeof n){if(i(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(o&&(o.plainObjects||o.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return i(t)&&!i(n)&&(a=s(t,o)),i(t)&&i(n)?(n.forEach((function(n,i){if(r.call(t,i)){var a=t[i];a&&"object"==typeof a&&n&&"object"==typeof n?t[i]=e(a,n,o):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var a=n[i];return r.call(t,i)?t[i]=e(t[i],a,o):t[i]=a,t}),a)}}},799:(e,t)=>{"use strict";var n=Symbol.for("react.element"),o=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy");Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case r:case a:case i:case d:case f:return e;default:switch(e=e&&e.$$typeof){case c:case l:case u:case h:case p:case s:return e;default:return t}}case o:return t}}}Symbol.for("react.module.reference"),t.ForwardRef=u,t.isFragment=function(e){return m(e)===r},t.isMemo=function(e){return m(e)===p}},363:(e,t,n)=>{"use strict";e.exports=n(799)},901:(e,t,n)=>{var o=n(246),r=n(720),i=n(609),a=n(997);function s(e){return e&&e.__esModule?e.default:e}function l(e,t,n,o){Object.defineProperty(e,t,{get:n,set:o,enumerable:!0,configurable:!0})}function c(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function u(e){e.forEach((e=>c(e.element)))}function d(e){e.forEach((e=>{!function(e,t,n){const o=e.children[n]||null;e.insertBefore(t,o)}(e.parentElement,e.element,e.oldIndex)}))}function f(e,t){const n=m(e),o={parentElement:e.from};let r=[];switch(n){case"normal":r=[{element:e.item,newIndex:e.newIndex,oldIndex:e.oldIndex,parentElement:e.from}];break;case"swap":r=[{element:e.item,oldIndex:e.oldIndex,newIndex:e.newIndex,...o},{element:e.swapItem,oldIndex:e.newIndex,newIndex:e.oldIndex,...o}];break;case"multidrag":r=e.oldIndicies.map(((t,n)=>({element:t.multiDragElement,oldIndex:t.index,newIndex:e.newIndicies[n].index,...o})))}const i=function(e,t){return e.map((e=>({...e,item:t[e.oldIndex]}))).sort(((e,t)=>e.oldIndex-t.oldIndex))}(r,t);return i}function p(e,t){const n=[...t];return e.concat().reverse().forEach((e=>n.splice(e.oldIndex,1))),n}function h(e,t,n,o){const r=[...t];return e.forEach((e=>{const t=o&&n&&o(e.item,n);r.splice(e.newIndex,0,t||e.item)})),r}function m(e){return e.oldIndicies&&e.oldIndicies.length>0?"multidrag":e.swapItem?"swap":"normal"}l(e.exports,"Sortable",(()=>$882b6d93070905b3$re_export$Sortable)),l(e.exports,"Direction",(()=>$882b6d93070905b3$re_export$Direction)),l(e.exports,"DOMRect",(()=>$882b6d93070905b3$re_export$DOMRect)),l(e.exports,"GroupOptions",(()=>$882b6d93070905b3$re_export$GroupOptions)),l(e.exports,"MoveEvent",(()=>$882b6d93070905b3$re_export$MoveEvent)),l(e.exports,"Options",(()=>$882b6d93070905b3$re_export$Options)),l(e.exports,"PullResult",(()=>$882b6d93070905b3$re_export$PullResult)),l(e.exports,"PutResult",(()=>$882b6d93070905b3$re_export$PutResult)),l(e.exports,"SortableEvent",(()=>$882b6d93070905b3$re_export$SortableEvent)),l(e.exports,"SortableOptions",(()=>$882b6d93070905b3$re_export$SortableOptions)),l(e.exports,"Utils",(()=>$882b6d93070905b3$re_export$Utils)),l(e.exports,"ReactSortable",(()=>v));const g={dragging:null};class v extends i.Component{static defaultProps={clone:e=>e};constructor(e){super(e),this.ref=(0,i.createRef)();const t=[...e.list].map((e=>Object.assign(e,{chosen:!1,selected:!1})));e.setList(t,this.sortable,g),s(a)(!e.plugins,'\nPlugins prop is no longer supported.\nInstead, mount it with "Sortable.mount(new MultiDrag())"\nPlease read the updated README.md at https://github.com/SortableJS/react-sortablejs.\n      ')}componentDidMount(){if(null===this.ref.current)return;const e=this.makeOptions();s(o).create(this.ref.current,e)}componentDidUpdate(e){e.disabled!==this.props.disabled&&this.sortable&&this.sortable.option("disabled",this.props.disabled)}render(){const{tag:e,style:t,className:n,id:o}=this.props,r={style:t,className:n,id:o},a=e&&null!==e?e:"div";return(0,i.createElement)(a,{ref:this.ref,...r},this.getChildren())}getChildren(){const{children:e,dataIdAttr:t,selectedClass:n="sortable-selected",chosenClass:o="sortable-chosen",dragClass:a="sortable-drag",fallbackClass:l="sortable-falback",ghostClass:c="sortable-ghost",swapClass:u="sortable-swap-highlight",filter:d="sortable-filter",list:f}=this.props;if(!e||null==e)return null;const p=t||"data-id";return i.Children.map(e,((e,t)=>{if(void 0===e)return;const a=f[t]||{},{className:l}=e.props,c="string"==typeof d&&{[d.replace(".","")]:!!a.filtered},u=s(r)(l,{[n]:a.selected,[o]:a.chosen,...c});return(0,i.cloneElement)(e,{[p]:e.key,className:u})}))}get sortable(){const e=this.ref.current;if(null===e)return null;const t=Object.keys(e).find((e=>e.includes("Sortable")));return t?e[t]:null}makeOptions(){const e=function(e){const{list:t,setList:n,children:o,tag:r,style:i,className:a,clone:s,onAdd:l,onChange:c,onChoose:u,onClone:d,onEnd:f,onFilter:p,onRemove:h,onSort:m,onStart:g,onUnchoose:v,onUpdate:b,onMove:y,onSpill:x,onSelect:w,onDeselect:C,...S}=e;return S}(this.props);return["onAdd","onChoose","onDeselect","onEnd","onRemove","onSelect","onSpill","onStart","onUnchoose","onUpdate"].forEach((t=>e[t]=this.prepareOnHandlerPropAndDOM(t))),["onChange","onClone","onFilter","onSort"].forEach((t=>e[t]=this.prepareOnHandlerProp(t))),{...e,onMove:(e,t)=>{const{onMove:n}=this.props,o=e.willInsertAfter||-1;if(!n)return o;const r=n(e,t,this.sortable,g);return void 0!==r&&r}}}prepareOnHandlerPropAndDOM(e){return t=>{this.callOnHandlerProp(t,e),this[e](t)}}prepareOnHandlerProp(e){return t=>{this.callOnHandlerProp(t,e)}}callOnHandlerProp(e,t){const n=this.props[t];n&&n(e,this.sortable,g)}onAdd(e){const{list:t,setList:n,clone:o}=this.props,r=f(e,[...g.dragging.props.list]);u(r),n(h(r,t,e,o).map((e=>Object.assign(e,{selected:!1}))),this.sortable,g)}onRemove(e){const{list:t,setList:n}=this.props,o=m(e),r=f(e,t);d(r);let i=[...t];if("clone"!==e.pullMode)i=p(r,i);else{let t=r;switch(o){case"multidrag":t=r.map(((t,n)=>({...t,element:e.clones[n]})));break;case"normal":t=r.map((t=>({...t,element:e.clone})));break;default:s(a)(!0,`mode "${o}" cannot clone. Please remove "props.clone" from <ReactSortable/> when using the "${o}" plugin`)}u(t),r.forEach((t=>{const n=t.oldIndex,o=this.props.clone(t.item,e);i.splice(n,1,o)}))}i=i.map((e=>Object.assign(e,{selected:!1}))),n(i,this.sortable,g)}onUpdate(e){const{list:t,setList:n}=this.props,o=f(e,t);return u(o),d(o),n(function(e,t){return h(e,p(e,t))}(o,t),this.sortable,g)}onStart(){g.dragging=this}onEnd(){g.dragging=null}onChoose(e){const{list:t,setList:n}=this.props;n(t.map(((t,n)=>{let o=t;return n===e.oldIndex&&(o=Object.assign(t,{chosen:!0})),o})),this.sortable,g)}onUnchoose(e){const{list:t,setList:n}=this.props;n(t.map(((t,n)=>{let o=t;return n===e.oldIndex&&(o=Object.assign(o,{chosen:!1})),o})),this.sortable,g)}onSpill(e){const{removeOnSpill:t,revertOnSpill:n}=this.props;t&&!n&&c(e.item)}onSelect(e){const{list:t,setList:n}=this.props,o=t.map((e=>Object.assign(e,{selected:!1})));e.newIndicies.forEach((t=>{const n=t.index;if(-1===n)return console.log(`"${e.type}" had indice of "${t.index}", which is probably -1 and doesn't usually happen here.`),void console.log(e);o[n].selected=!0})),n(o,this.sortable,g)}onDeselect(e){const{list:t,setList:n}=this.props,o=t.map((e=>Object.assign(e,{selected:!1})));e.newIndicies.forEach((e=>{const t=e.index;-1!==t&&(o[t].selected=!0)})),n(o,this.sortable,g)}}var b,y;b=e.exports,y={},Object.keys(y).forEach((function(e){"default"===e||"__esModule"===e||b.hasOwnProperty(e)||Object.defineProperty(b,e,{enumerable:!0,get:function(){return y[e]}})}))},720:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=r.apply(null,n);a&&e.push(a)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var s in n)o.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},20:(e,t,n)=>{"use strict";var o=n(609),r=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var o,i={},c=null,u=null;for(o in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,o)&&!l.hasOwnProperty(o)&&(i[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===i[o]&&(i[o]=t[o]);return{$$typeof:r,type:e,key:c,ref:u,props:i,_owner:s.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},848:(e,t,n)=>{"use strict";e.exports=n(20)},897:(e,t,n)=>{"use strict";var o=n(453),r=n(41),i=n(592)(),a=n(795),s=n(675),l=o("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||l(t)!==t)throw new s("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],o=!0,c=!0;if("length"in e&&a){var u=a(e,"length");u&&!u.configurable&&(o=!1),u&&!u.writable&&(c=!1)}return(o||c||!n)&&(i?r(e,"length",t,!0,!0):r(e,"length",t)),e}},920:(e,t,n)=>{"use strict";var o=n(453),r=n(75),i=n(859),a=n(675),s=o("%WeakMap%",!0),l=o("%Map%",!0),c=r("WeakMap.prototype.get",!0),u=r("WeakMap.prototype.set",!0),d=r("WeakMap.prototype.has",!0),f=r("Map.prototype.get",!0),p=r("Map.prototype.set",!0),h=r("Map.prototype.has",!0),m=function(e,t){for(var n,o=e;null!==(n=o.next);o=n)if(n.key===t)return o.next=n.next,n.next=e.next,e.next=n,n};e.exports=function(){var e,t,n,o={assert:function(e){if(!o.has(e))throw new a("Side channel does not contain "+i(e))},get:function(o){if(s&&o&&("object"==typeof o||"function"==typeof o)){if(e)return c(e,o)}else if(l){if(t)return f(t,o)}else if(n)return function(e,t){var n=m(e,t);return n&&n.value}(n,o)},has:function(o){if(s&&o&&("object"==typeof o||"function"==typeof o)){if(e)return d(e,o)}else if(l){if(t)return h(t,o)}else if(n)return function(e,t){return!!m(e,t)}(n,o);return!1},set:function(o,r){s&&o&&("object"==typeof o||"function"==typeof o)?(e||(e=new s),u(e,o,r)):l?(t||(t=new l),p(t,o,r)):(n||(n={key:{},next:null}),function(e,t,n){var o=m(e,t);o?o.value=n:e.next={key:t,next:e.next,value:n}}(n,o,r))}};return o}},246:(e,t,n)=>{"use strict";function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},s.apply(this,arguments)}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function c(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}n.r(t),n.d(t,{MultiDrag:()=>xt,Sortable:()=>Fe,Swap:()=>ct,default:()=>St});var u=c(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),d=c(/Edge/i),f=c(/firefox/i),p=c(/safari/i)&&!c(/chrome/i)&&!c(/android/i),h=c(/iP(ad|od|hone)/i),m=c(/chrome/i)&&c(/android/i),g={capture:!1,passive:!1};function v(e,t,n){e.addEventListener(t,n,!u&&g)}function b(e,t,n){e.removeEventListener(t,n,!u&&g)}function y(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function x(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function w(e,t,n,o){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&y(e,t):y(e,t))||o&&e===n)return e;if(e===n)break}while(e=x(e))}return null}var C,S=/\s+/g;function E(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var o=(" "+e.className+" ").replace(S," ").replace(" "+t+" "," ");e.className=(o+(n?" "+t:"")).replace(S," ")}}function k(e,t,n){var o=e&&e.style;if(o){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in o||-1!==t.indexOf("webkit")||(t="-webkit-"+t),o[t]=n+("string"==typeof n?"":"px")}}function $(e,t){var n="";if("string"==typeof e)n=e;else do{var o=k(e,"transform");o&&"none"!==o&&(n=o+" "+n)}while(!t&&(e=e.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function _(e,t,n){if(e){var o=e.getElementsByTagName(t),r=0,i=o.length;if(n)for(;r<i;r++)n(o[r],r);return o}return[]}function O(){return document.scrollingElement||document.documentElement}function j(e,t,n,o,r){if(e.getBoundingClientRect||e===window){var i,a,s,l,c,d,f;if(e!==window&&e.parentNode&&e!==O()?(a=(i=e.getBoundingClientRect()).top,s=i.left,l=i.bottom,c=i.right,d=i.height,f=i.width):(a=0,s=0,l=window.innerHeight,c=window.innerWidth,d=window.innerHeight,f=window.innerWidth),(t||n)&&e!==window&&(r=r||e.parentNode,!u))do{if(r&&r.getBoundingClientRect&&("none"!==k(r,"transform")||n&&"static"!==k(r,"position"))){var p=r.getBoundingClientRect();a-=p.top+parseInt(k(r,"border-top-width")),s-=p.left+parseInt(k(r,"border-left-width")),l=a+i.height,c=s+i.width;break}}while(r=r.parentNode);if(o&&e!==window){var h=$(r||e),m=h&&h.a,g=h&&h.d;h&&(l=(a/=g)+(d/=g),c=(s/=m)+(f/=m))}return{top:a,left:s,bottom:l,right:c,width:f,height:d}}}function M(e,t,n){for(var o=R(e,!0),r=j(e)[t];o;){var i=j(o)[n];if(!("top"===n||"left"===n?r>=i:r<=i))return o;if(o===O())break;o=R(o,!1)}return!1}function P(e,t,n,o){for(var r=0,i=0,a=e.children;i<a.length;){if("none"!==a[i].style.display&&a[i]!==Fe.ghost&&(o||a[i]!==Fe.dragged)&&w(a[i],n.draggable,e,!1)){if(r===t)return a[i];r++}i++}return null}function I(e,t){for(var n=e.lastElementChild;n&&(n===Fe.ghost||"none"===k(n,"display")||t&&!y(n,t));)n=n.previousElementSibling;return n||null}function N(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===Fe.clone||t&&!y(e,t)||n++;return n}function T(e){var t=0,n=0,o=O();if(e)do{var r=$(e),i=r.a,a=r.d;t+=e.scrollLeft*i,n+=e.scrollTop*a}while(e!==o&&(e=e.parentNode));return[t,n]}function R(e,t){if(!e||!e.getBoundingClientRect)return O();var n=e,o=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var r=k(n);if(n.clientWidth<n.scrollWidth&&("auto"==r.overflowX||"scroll"==r.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==r.overflowY||"scroll"==r.overflowY)){if(!n.getBoundingClientRect||n===document.body)return O();if(o||t)return n;o=!0}}}while(n=n.parentNode);return O()}function A(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function D(e,t){return function(){if(!C){var n=arguments;1===n.length?e.call(this,n[0]):e.apply(this,n),C=setTimeout((function(){C=void 0}),t)}}}function B(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function L(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function z(e,t){k(e,"position","absolute"),k(e,"top",t.top),k(e,"left",t.left),k(e,"width",t.width),k(e,"height",t.height)}function F(e){k(e,"position",""),k(e,"top",""),k(e,"left",""),k(e,"width",""),k(e,"height","")}function H(e,t,n){var o={};return Array.from(e.children).forEach((function(r){var i,a,s,l;if(w(r,t.draggable,e,!1)&&!r.animated&&r!==n){var c=j(r);o.left=Math.min(null!==(i=o.left)&&void 0!==i?i:1/0,c.left),o.top=Math.min(null!==(a=o.top)&&void 0!==a?a:1/0,c.top),o.right=Math.max(null!==(s=o.right)&&void 0!==s?s:-1/0,c.right),o.bottom=Math.max(null!==(l=o.bottom)&&void 0!==l?l:-1/0,c.bottom)}})),o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}var V="Sortable"+(new Date).getTime();var W=[],K={initializeByDefault:!0},q={mount:function(e){for(var t in K)K.hasOwnProperty(t)&&!(t in e)&&(e[t]=K[t]);W.forEach((function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")})),W.push(e)},pluginEvent:function(e,t,n){var o=this;this.eventCanceled=!1,n.cancel=function(){o.eventCanceled=!0};var i=e+"Global";W.forEach((function(o){t[o.pluginName]&&(t[o.pluginName][i]&&t[o.pluginName][i](r({sortable:t},n)),t.options[o.pluginName]&&t[o.pluginName][e]&&t[o.pluginName][e](r({sortable:t},n)))}))},initializePlugins:function(e,t,n,o){for(var r in W.forEach((function(o){var r=o.pluginName;if(e.options[r]||o.initializeByDefault){var i=new o(e,t,e.options);i.sortable=e,i.options=e.options,e[r]=i,s(n,i.defaults)}})),e.options)if(e.options.hasOwnProperty(r)){var i=this.modifyOption(e,r,e.options[r]);void 0!==i&&(e.options[r]=i)}},getEventProperties:function(e,t){var n={};return W.forEach((function(o){"function"==typeof o.eventProperties&&s(n,o.eventProperties.call(t[o.pluginName],e))})),n},modifyOption:function(e,t,n){var o;return W.forEach((function(r){e[r.pluginName]&&r.optionListeners&&"function"==typeof r.optionListeners[t]&&(o=r.optionListeners[t].call(e[r.pluginName],n))})),o}};function U(e){var t=e.sortable,n=e.rootEl,o=e.name,i=e.targetEl,a=e.cloneEl,s=e.toEl,l=e.fromEl,c=e.oldIndex,f=e.newIndex,p=e.oldDraggableIndex,h=e.newDraggableIndex,m=e.originalEvent,g=e.putSortable,v=e.extraEventProperties;if(t=t||n&&n[V]){var b,y=t.options,x="on"+o.charAt(0).toUpperCase()+o.substr(1);!window.CustomEvent||u||d?(b=document.createEvent("Event")).initEvent(o,!0,!0):b=new CustomEvent(o,{bubbles:!0,cancelable:!0}),b.to=s||n,b.from=l||n,b.item=i||n,b.clone=a,b.oldIndex=c,b.newIndex=f,b.oldDraggableIndex=p,b.newDraggableIndex=h,b.originalEvent=m,b.pullMode=g?g.lastPutMode:void 0;var w=r(r({},v),q.getEventProperties(o,t));for(var C in w)b[C]=w[C];n&&n.dispatchEvent(b),y[x]&&y[x].call(t,b)}}var G=["evt"],X=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.evt,i=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(n,G);q.pluginEvent.bind(Fe)(e,t,r({dragEl:Z,parentEl:Q,ghostEl:J,rootEl:ee,nextEl:te,lastDownEl:ne,cloneEl:oe,cloneHidden:re,dragStarted:ve,putSortable:ue,activeSortable:Fe.active,originalEvent:o,oldIndex:ie,oldDraggableIndex:se,newIndex:ae,newDraggableIndex:le,hideGhostForTarget:De,unhideGhostForTarget:Be,cloneNowHidden:function(){re=!0},cloneNowShown:function(){re=!1},dispatchSortableEvent:function(e){Y({sortable:t,name:e,originalEvent:o})}},i))};function Y(e){U(r({putSortable:ue,cloneEl:oe,targetEl:Z,rootEl:ee,oldIndex:ie,oldDraggableIndex:se,newIndex:ae,newDraggableIndex:le},e))}var Z,Q,J,ee,te,ne,oe,re,ie,ae,se,le,ce,ue,de,fe,pe,he,me,ge,ve,be,ye,xe,we,Ce=!1,Se=!1,Ee=[],ke=!1,$e=!1,_e=[],Oe=!1,je=[],Me="undefined"!=typeof document,Pe=h,Ie=d||u?"cssFloat":"float",Ne=Me&&!m&&!h&&"draggable"in document.createElement("div"),Te=function(){if(Me){if(u)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Re=function(e,t){var n=k(e),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=P(e,0,t),i=P(e,1,t),a=r&&k(r),s=i&&k(i),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+j(r).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+j(i).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a.float&&"none"!==a.float){var u="left"===a.float?"left":"right";return!i||"both"!==s.clear&&s.clear!==u?"horizontal":"vertical"}return r&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||l>=o&&"none"===n[Ie]||i&&"none"===n[Ie]&&l+c>o)?"vertical":"horizontal"},Ae=function(e){function t(e,n){return function(o,r,i,a){var s=o.options.group.name&&r.options.group.name&&o.options.group.name===r.options.group.name;if(null==e&&(n||s))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(o,r,i,a),n)(o,r,i,a);var l=(n?o:r).options.group.name;return!0===e||"string"==typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var n={},o=e.group;o&&"object"==i(o)||(o={name:o}),n.name=o.name,n.checkPull=t(o.pull,!0),n.checkPut=t(o.put),n.revertClone=o.revertClone,e.group=n},De=function(){!Te&&J&&k(J,"display","none")},Be=function(){!Te&&J&&k(J,"display","")};Me&&!m&&document.addEventListener("click",(function(e){if(Se)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Se=!1,!1}),!0);var Le=function(e){if(Z){e=e.touches?e.touches[0]:e;var t=(r=e.clientX,i=e.clientY,Ee.some((function(e){var t=e[V].options.emptyInsertThreshold;if(t&&!I(e)){var n=j(e),o=r>=n.left-t&&r<=n.right+t,s=i>=n.top-t&&i<=n.bottom+t;return o&&s?a=e:void 0}})),a);if(t){var n={};for(var o in e)e.hasOwnProperty(o)&&(n[o]=e[o]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[V]._onDragOver(n)}}var r,i,a},ze=function(e){Z&&Z.parentNode[V]._isOutsideThisEl(e.target)};function Fe(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=s({},t),e[V]=this;var n,o,i={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Re(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Fe.supportPointer&&"PointerEvent"in window&&!p,emptyInsertThreshold:5};for(var a in q.initializePlugins(this,e,i),i)!(a in t)&&(t[a]=i[a]);for(var l in Ae(t),this)"_"===l.charAt(0)&&"function"==typeof this[l]&&(this[l]=this[l].bind(this));this.nativeDraggable=!t.forceFallback&&Ne,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?v(e,"pointerdown",this._onTapStart):(v(e,"mousedown",this._onTapStart),v(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(v(e,"dragover",this),v(e,"dragenter",this)),Ee.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),s(this,(o=[],{captureAnimationState:function(){o=[],this.options.animation&&[].slice.call(this.el.children).forEach((function(e){if("none"!==k(e,"display")&&e!==Fe.ghost){o.push({target:e,rect:j(e)});var t=r({},o[o.length-1].rect);if(e.thisAnimationDuration){var n=$(e,!0);n&&(t.top-=n.f,t.left-=n.e)}e.fromRect=t}}))},addAnimationState:function(e){o.push(e)},removeAnimationState:function(e){o.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var o in t)if(t.hasOwnProperty(o)&&t[o]===e[n][o])return Number(n);return-1}(o,{target:e}),1)},animateAll:function(e){var t=this;if(!this.options.animation)return clearTimeout(n),void("function"==typeof e&&e());var r=!1,i=0;o.forEach((function(e){var n=0,o=e.target,a=o.fromRect,s=j(o),l=o.prevFromRect,c=o.prevToRect,u=e.rect,d=$(o,!0);d&&(s.top-=d.f,s.left-=d.e),o.toRect=s,o.thisAnimationDuration&&A(l,s)&&!A(a,s)&&(u.top-s.top)/(u.left-s.left)==(a.top-s.top)/(a.left-s.left)&&(n=function(e,t,n,o){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*o.animation}(u,l,c,t.options)),A(s,a)||(o.prevFromRect=a,o.prevToRect=s,n||(n=t.options.animation),t.animate(o,u,s,n)),n&&(r=!0,i=Math.max(i,n),clearTimeout(o.animationResetTimer),o.animationResetTimer=setTimeout((function(){o.animationTime=0,o.prevFromRect=null,o.fromRect=null,o.prevToRect=null,o.thisAnimationDuration=null}),n),o.thisAnimationDuration=n)})),clearTimeout(n),r?n=setTimeout((function(){"function"==typeof e&&e()}),i):"function"==typeof e&&e(),o=[]},animate:function(e,t,n,o){if(o){k(e,"transition",""),k(e,"transform","");var r=$(this.el),i=r&&r.a,a=r&&r.d,s=(t.left-n.left)/(i||1),l=(t.top-n.top)/(a||1);e.animatingX=!!s,e.animatingY=!!l,k(e,"transform","translate3d("+s+"px,"+l+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),k(e,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),k(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){k(e,"transition",""),k(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),o)}}}))}function He(e,t,n,o,r,i,a,s){var l,c,f=e[V],p=f.options.onMove;return!window.CustomEvent||u||d?(l=document.createEvent("Event")).initEvent("move",!0,!0):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=n,l.draggedRect=o,l.related=r||t,l.relatedRect=i||j(t),l.willInsertAfter=s,l.originalEvent=a,e.dispatchEvent(l),p&&(c=p.call(f,l,a)),c}function Ve(e){e.draggable=!1}function We(){Oe=!1}function Ke(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,o=0;n--;)o+=t.charCodeAt(n);return o.toString(36)}function qe(e){return setTimeout(e,0)}function Ue(e){return clearTimeout(e)}Fe.prototype={constructor:Fe,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(be=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,Z):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,o=this.options,r=o.preventOnFilter,i=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,s=(a||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,c=o.filter;if(function(e){je.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var o=t[n];o.checked&&je.push(o)}}(n),!Z&&!(/mousedown|pointerdown/.test(i)&&0!==e.button||o.disabled)&&!l.isContentEditable&&(this.nativeDraggable||!p||!s||"SELECT"!==s.tagName.toUpperCase())&&!((s=w(s,o.draggable,n,!1))&&s.animated||ne===s)){if(ie=N(s),se=N(s,o.draggable),"function"==typeof c){if(c.call(this,e,s,this))return Y({sortable:t,rootEl:l,name:"filter",targetEl:s,toEl:n,fromEl:n}),X("filter",t,{evt:e}),void(r&&e.cancelable&&e.preventDefault())}else if(c&&(c=c.split(",").some((function(o){if(o=w(l,o.trim(),n,!1))return Y({sortable:t,rootEl:o,name:"filter",targetEl:s,fromEl:n,toEl:n}),X("filter",t,{evt:e}),!0}))))return void(r&&e.cancelable&&e.preventDefault());o.handle&&!w(l,o.handle,n,!1)||this._prepareDragStart(e,a,s)}}},_prepareDragStart:function(e,t,n){var o,r=this,i=r.el,a=r.options,s=i.ownerDocument;if(n&&!Z&&n.parentNode===i){var l=j(n);if(ee=i,Q=(Z=n).parentNode,te=Z.nextSibling,ne=n,ce=a.group,Fe.dragged=Z,de={target:Z,clientX:(t||e).clientX,clientY:(t||e).clientY},me=de.clientX-l.left,ge=de.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,Z.style["will-change"]="all",o=function(){X("delayEnded",r,{evt:e}),Fe.eventCanceled?r._onDrop():(r._disableDelayedDragEvents(),!f&&r.nativeDraggable&&(Z.draggable=!0),r._triggerDragStart(e,t),Y({sortable:r,name:"choose",originalEvent:e}),E(Z,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){_(Z,e.trim(),Ve)})),v(s,"dragover",Le),v(s,"mousemove",Le),v(s,"touchmove",Le),v(s,"mouseup",r._onDrop),v(s,"touchend",r._onDrop),v(s,"touchcancel",r._onDrop),f&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Z.draggable=!0),X("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(d||u))o();else{if(Fe.eventCanceled)return void this._onDrop();v(s,"mouseup",r._disableDelayedDrag),v(s,"touchend",r._disableDelayedDrag),v(s,"touchcancel",r._disableDelayedDrag),v(s,"mousemove",r._delayedDragTouchMoveHandler),v(s,"touchmove",r._delayedDragTouchMoveHandler),a.supportPointer&&v(s,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(o,a.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Z&&Ve(Z),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;b(e,"mouseup",this._disableDelayedDrag),b(e,"touchend",this._disableDelayedDrag),b(e,"touchcancel",this._disableDelayedDrag),b(e,"mousemove",this._delayedDragTouchMoveHandler),b(e,"touchmove",this._delayedDragTouchMoveHandler),b(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?v(document,"pointermove",this._onTouchMove):v(document,t?"touchmove":"mousemove",this._onTouchMove):(v(Z,"dragend",this),v(ee,"dragstart",this._onDragStart));try{document.selection?qe((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(Ce=!1,ee&&Z){X("dragStarted",this,{evt:t}),this.nativeDraggable&&v(document,"dragover",ze);var n=this.options;!e&&E(Z,n.dragClass,!1),E(Z,n.ghostClass,!0),Fe.active=this,e&&this._appendGhost(),Y({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(fe){this._lastX=fe.clientX,this._lastY=fe.clientY,De();for(var e=document.elementFromPoint(fe.clientX,fe.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(fe.clientX,fe.clientY))!==t;)t=e;if(Z.parentNode[V]._isOutsideThisEl(e),t)do{if(t[V]&&t[V]._onDragOver({clientX:fe.clientX,clientY:fe.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break;e=t}while(t=t.parentNode);Be()}},_onTouchMove:function(e){if(de){var t=this.options,n=t.fallbackTolerance,o=t.fallbackOffset,r=e.touches?e.touches[0]:e,i=J&&$(J,!0),a=J&&i&&i.a,s=J&&i&&i.d,l=Pe&&we&&T(we),c=(r.clientX-de.clientX+o.x)/(a||1)+(l?l[0]-_e[0]:0)/(a||1),u=(r.clientY-de.clientY+o.y)/(s||1)+(l?l[1]-_e[1]:0)/(s||1);if(!Fe.active&&!Ce){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(J){i?(i.e+=c-(pe||0),i.f+=u-(he||0)):i={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");k(J,"webkitTransform",d),k(J,"mozTransform",d),k(J,"msTransform",d),k(J,"transform",d),pe=c,he=u,fe=r}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!J){var e=this.options.fallbackOnBody?document.body:ee,t=j(Z,!0,Pe,!0,e),n=this.options;if(Pe){for(we=e;"static"===k(we,"position")&&"none"===k(we,"transform")&&we!==document;)we=we.parentNode;we!==document.body&&we!==document.documentElement?(we===document&&(we=O()),t.top+=we.scrollTop,t.left+=we.scrollLeft):we=O(),_e=T(we)}E(J=Z.cloneNode(!0),n.ghostClass,!1),E(J,n.fallbackClass,!0),E(J,n.dragClass,!0),k(J,"transition",""),k(J,"transform",""),k(J,"box-sizing","border-box"),k(J,"margin",0),k(J,"top",t.top),k(J,"left",t.left),k(J,"width",t.width),k(J,"height",t.height),k(J,"opacity","0.8"),k(J,"position",Pe?"absolute":"fixed"),k(J,"zIndex","100000"),k(J,"pointerEvents","none"),Fe.ghost=J,e.appendChild(J),k(J,"transform-origin",me/parseInt(J.style.width)*100+"% "+ge/parseInt(J.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,o=e.dataTransfer,r=n.options;X("dragStart",this,{evt:e}),Fe.eventCanceled?this._onDrop():(X("setupClone",this),Fe.eventCanceled||((oe=L(Z)).removeAttribute("id"),oe.draggable=!1,oe.style["will-change"]="",this._hideClone(),E(oe,this.options.chosenClass,!1),Fe.clone=oe),n.cloneId=qe((function(){X("clone",n),Fe.eventCanceled||(n.options.removeCloneOnHide||ee.insertBefore(oe,Z),n._hideClone(),Y({sortable:n,name:"clone"}))})),!t&&E(Z,r.dragClass,!0),t?(Se=!0,n._loopId=setInterval(n._emulateDragOver,50)):(b(document,"mouseup",n._onDrop),b(document,"touchend",n._onDrop),b(document,"touchcancel",n._onDrop),o&&(o.effectAllowed="move",r.setData&&r.setData.call(n,o,Z)),v(document,"drop",n),k(Z,"transform","translateZ(0)")),Ce=!0,n._dragStartId=qe(n._dragStarted.bind(n,t,e)),v(document,"selectstart",n),ve=!0,p&&k(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,o,i,a=this.el,s=e.target,l=this.options,c=l.group,u=Fe.active,d=ce===c,f=l.sort,p=ue||u,h=this,m=!1;if(!Oe){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),s=w(s,l.draggable,a,!0),L("dragOver"),Fe.eventCanceled)return m;if(Z.contains(e.target)||s.animated&&s.animatingX&&s.animatingY||h._ignoreWhileAnimating===s)return F(!1);if(Se=!1,u&&!l.disabled&&(d?f||(o=Q!==ee):ue===this||(this.lastPutMode=ce.checkPull(this,u,Z,e))&&c.checkPut(this,u,Z,e))){if(i="vertical"===this._getDirection(e,s),t=j(Z),L("dragOverValid"),Fe.eventCanceled)return m;if(o)return Q=ee,z(),this._hideClone(),L("revert"),Fe.eventCanceled||(te?ee.insertBefore(Z,te):ee.appendChild(Z)),F(!0);var g=I(a,l.draggable);if(!g||function(e,t,n){var o=j(I(n.el,n.options.draggable)),r=H(n.el,n.options,J);return t?e.clientX>r.right+10||e.clientY>o.bottom&&e.clientX>o.left:e.clientY>r.bottom+10||e.clientX>o.right&&e.clientY>o.top}(e,i,this)&&!g.animated){if(g===Z)return F(!1);if(g&&a===e.target&&(s=g),s&&(n=j(s)),!1!==He(ee,a,Z,t,s,n,e,!!s))return z(),g&&g.nextSibling?a.insertBefore(Z,g.nextSibling):a.appendChild(Z),Q=a,W(),F(!0)}else if(g&&function(e,t,n){var o=j(P(n.el,0,n.options,!0)),r=H(n.el,n.options,J);return t?e.clientX<r.left-10||e.clientY<o.top&&e.clientX<o.right:e.clientY<r.top-10||e.clientY<o.bottom&&e.clientX<o.left}(e,i,this)){var v=P(a,0,l,!0);if(v===Z)return F(!1);if(n=j(s=v),!1!==He(ee,a,Z,t,s,n,e,!1))return z(),a.insertBefore(Z,v),Q=a,W(),F(!0)}else if(s.parentNode===a){n=j(s);var b,y,x,C=Z.parentNode!==a,S=!function(e,t,n){var o=n?e.left:e.top,r=n?e.right:e.bottom,i=n?e.width:e.height,a=n?t.left:t.top,s=n?t.right:t.bottom,l=n?t.width:t.height;return o===a||r===s||o+i/2===a+l/2}(Z.animated&&Z.toRect||t,s.animated&&s.toRect||n,i),$=i?"top":"left",_=M(s,"top","top")||M(Z,"top","top"),O=_?_.scrollTop:void 0;if(be!==s&&(y=n[$],ke=!1,$e=!S&&l.invertSwap||C),b=function(e,t,n,o,r,i,a,s){var l=o?e.clientY:e.clientX,c=o?n.height:n.width,u=o?n.top:n.left,d=o?n.bottom:n.right,f=!1;if(!a)if(s&&xe<c*r){if(!ke&&(1===ye?l>u+c*i/2:l<d-c*i/2)&&(ke=!0),ke)f=!0;else if(1===ye?l<u+xe:l>d-xe)return-ye}else if(l>u+c*(1-r)/2&&l<d-c*(1-r)/2)return function(e){return N(Z)<N(e)?1:-1}(t);return(f=f||a)&&(l<u+c*i/2||l>d-c*i/2)?l>u+c/2?1:-1:0}(e,s,n,i,S?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,$e,be===s),0!==b){var T=N(Z);do{T-=b,x=Q.children[T]}while(x&&("none"===k(x,"display")||x===J))}if(0===b||x===s)return F(!1);be=s,ye=b;var R=s.nextElementSibling,A=!1,D=He(ee,a,Z,t,s,n,e,A=1===b);if(!1!==D)return 1!==D&&-1!==D||(A=1===D),Oe=!0,setTimeout(We,30),z(),A&&!R?a.appendChild(Z):s.parentNode.insertBefore(Z,A?R:s),_&&B(_,0,O-_.scrollTop),Q=Z.parentNode,void 0===y||$e||(xe=Math.abs(y-j(s)[$])),W(),F(!0)}if(a.contains(Z))return F(!1)}return!1}function L(l,c){X(l,h,r({evt:e,isOwner:d,axis:i?"vertical":"horizontal",revert:o,dragRect:t,targetRect:n,canSort:f,fromSortable:p,target:s,completed:F,onMove:function(n,o){return He(ee,a,Z,t,n,j(n),e,o)},changed:W},c))}function z(){L("dragOverAnimationCapture"),h.captureAnimationState(),h!==p&&p.captureAnimationState()}function F(t){return L("dragOverCompleted",{insertion:t}),t&&(d?u._hideClone():u._showClone(h),h!==p&&(E(Z,ue?ue.options.ghostClass:u.options.ghostClass,!1),E(Z,l.ghostClass,!0)),ue!==h&&h!==Fe.active?ue=h:h===Fe.active&&ue&&(ue=null),p===h&&(h._ignoreWhileAnimating=s),h.animateAll((function(){L("dragOverAnimationComplete"),h._ignoreWhileAnimating=null})),h!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(s===Z&&!Z.animated||s===a&&!s.animated)&&(be=null),l.dragoverBubble||e.rootEl||s===document||(Z.parentNode[V]._isOutsideThisEl(e.target),!t&&Le(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function W(){ae=N(Z),le=N(Z,l.draggable),Y({sortable:h,name:"change",toEl:a,newIndex:ae,newDraggableIndex:le,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){b(document,"mousemove",this._onTouchMove),b(document,"touchmove",this._onTouchMove),b(document,"pointermove",this._onTouchMove),b(document,"dragover",Le),b(document,"mousemove",Le),b(document,"touchmove",Le)},_offUpEvents:function(){var e=this.el.ownerDocument;b(e,"mouseup",this._onDrop),b(e,"touchend",this._onDrop),b(e,"pointerup",this._onDrop),b(e,"touchcancel",this._onDrop),b(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;ae=N(Z),le=N(Z,n.draggable),X("drop",this,{evt:e}),Q=Z&&Z.parentNode,ae=N(Z),le=N(Z,n.draggable),Fe.eventCanceled||(Ce=!1,$e=!1,ke=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Ue(this.cloneId),Ue(this._dragStartId),this.nativeDraggable&&(b(document,"drop",this),b(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),p&&k(document.body,"user-select",""),k(Z,"transform",""),e&&(ve&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),J&&J.parentNode&&J.parentNode.removeChild(J),(ee===Q||ue&&"clone"!==ue.lastPutMode)&&oe&&oe.parentNode&&oe.parentNode.removeChild(oe),Z&&(this.nativeDraggable&&b(Z,"dragend",this),Ve(Z),Z.style["will-change"]="",ve&&!Ce&&E(Z,ue?ue.options.ghostClass:this.options.ghostClass,!1),E(Z,this.options.chosenClass,!1),Y({sortable:this,name:"unchoose",toEl:Q,newIndex:null,newDraggableIndex:null,originalEvent:e}),ee!==Q?(ae>=0&&(Y({rootEl:Q,name:"add",toEl:Q,fromEl:ee,originalEvent:e}),Y({sortable:this,name:"remove",toEl:Q,originalEvent:e}),Y({rootEl:Q,name:"sort",toEl:Q,fromEl:ee,originalEvent:e}),Y({sortable:this,name:"sort",toEl:Q,originalEvent:e})),ue&&ue.save()):ae!==ie&&ae>=0&&(Y({sortable:this,name:"update",toEl:Q,originalEvent:e}),Y({sortable:this,name:"sort",toEl:Q,originalEvent:e})),Fe.active&&(null!=ae&&-1!==ae||(ae=ie,le=se),Y({sortable:this,name:"end",toEl:Q,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){X("nulling",this),ee=Z=Q=J=te=oe=ne=re=de=fe=ve=ae=le=ie=se=be=ye=ue=ce=Fe.dragged=Fe.ghost=Fe.clone=Fe.active=null,je.forEach((function(e){e.checked=!0})),je.length=pe=he=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":Z&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,o=0,r=n.length,i=this.options;o<r;o++)w(e=n[o],i.draggable,this.el,!1)&&t.push(e.getAttribute(i.dataIdAttr)||Ke(e));return t},sort:function(e,t){var n={},o=this.el;this.toArray().forEach((function(e,t){var r=o.children[t];w(r,this.options.draggable,o,!1)&&(n[e]=r)}),this),t&&this.captureAnimationState(),e.forEach((function(e){n[e]&&(o.removeChild(n[e]),o.appendChild(n[e]))})),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return w(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var o=q.modifyOption(this,e,t);n[e]=void 0!==o?o:t,"group"===e&&Ae(n)},destroy:function(){X("destroy",this);var e=this.el;e[V]=null,b(e,"mousedown",this._onTapStart),b(e,"touchstart",this._onTapStart),b(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(b(e,"dragover",this),b(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Ee.splice(Ee.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!re){if(X("hideClone",this),Fe.eventCanceled)return;k(oe,"display","none"),this.options.removeCloneOnHide&&oe.parentNode&&oe.parentNode.removeChild(oe),re=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(re){if(X("showClone",this),Fe.eventCanceled)return;Z.parentNode!=ee||this.options.group.revertClone?te?ee.insertBefore(oe,te):ee.appendChild(oe):ee.insertBefore(oe,Z),this.options.group.revertClone&&this.animate(Z,oe),k(oe,"display",""),re=!1}}else this._hideClone()}},Me&&v(document,"touchmove",(function(e){(Fe.active||Ce)&&e.cancelable&&e.preventDefault()})),Fe.utils={on:v,off:b,css:k,find:_,is:function(e,t){return!!w(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:D,closest:w,toggleClass:E,clone:L,index:N,nextTick:qe,cancelNextTick:Ue,detectDirection:Re,getChild:P},Fe.get=function(e){return e[V]},Fe.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(Fe.utils=r(r({},Fe.utils),e.utils)),q.mount(e)}))},Fe.create=function(e,t){return new Fe(e,t)},Fe.version="1.15.2";var Ge,Xe,Ye,Ze,Qe,Je,et=[],tt=!1;function nt(){et.forEach((function(e){clearInterval(e.pid)})),et=[]}function ot(){clearInterval(Je)}var rt,it=D((function(e,t,n,o){if(t.scroll){var r,i=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,l=t.scrollSpeed,c=O(),u=!1;Xe!==n&&(Xe=n,nt(),Ge=t.scroll,r=t.scrollFn,!0===Ge&&(Ge=R(n,!0)));var d=0,f=Ge;do{var p=f,h=j(p),m=h.top,g=h.bottom,v=h.left,b=h.right,y=h.width,x=h.height,w=void 0,C=void 0,S=p.scrollWidth,E=p.scrollHeight,$=k(p),_=p.scrollLeft,M=p.scrollTop;p===c?(w=y<S&&("auto"===$.overflowX||"scroll"===$.overflowX||"visible"===$.overflowX),C=x<E&&("auto"===$.overflowY||"scroll"===$.overflowY||"visible"===$.overflowY)):(w=y<S&&("auto"===$.overflowX||"scroll"===$.overflowX),C=x<E&&("auto"===$.overflowY||"scroll"===$.overflowY));var P=w&&(Math.abs(b-i)<=s&&_+y<S)-(Math.abs(v-i)<=s&&!!_),I=C&&(Math.abs(g-a)<=s&&M+x<E)-(Math.abs(m-a)<=s&&!!M);if(!et[d])for(var N=0;N<=d;N++)et[N]||(et[N]={});et[d].vx==P&&et[d].vy==I&&et[d].el===p||(et[d].el=p,et[d].vx=P,et[d].vy=I,clearInterval(et[d].pid),0==P&&0==I||(u=!0,et[d].pid=setInterval(function(){o&&0===this.layer&&Fe.active._onTouchMove(Qe);var t=et[this.layer].vy?et[this.layer].vy*l:0,n=et[this.layer].vx?et[this.layer].vx*l:0;"function"==typeof r&&"continue"!==r.call(Fe.dragged.parentNode[V],n,t,e,Qe,et[this.layer].el)||B(et[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&f!==c&&(f=R(f,!1)));tt=u}}),30),at=function(e){var t=e.originalEvent,n=e.putSortable,o=e.dragEl,r=e.activeSortable,i=e.dispatchSortableEvent,a=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var l=n||r;a();var c=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,u=document.elementFromPoint(c.clientX,c.clientY);s(),l&&!l.el.contains(u)&&(i("spill"),this.onSpill({dragEl:o,putSortable:n}))}};function st(){}function lt(){}function ct(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){var t=e.dragEl;rt=t},dragOverValid:function(e){var t=e.completed,n=e.target,o=e.onMove,r=e.activeSortable,i=e.changed,a=e.cancel;if(r.options.swap){var s=this.sortable.el,l=this.options;if(n&&n!==s){var c=rt;!1!==o(n)?(E(n,l.swapClass,!0),rt=n):rt=null,c&&c!==rt&&E(c,l.swapClass,!1)}i(),t(!0),a()}},drop:function(e){var t,n,o,r,i,a,s=e.activeSortable,l=e.putSortable,c=e.dragEl,u=l||this.sortable,d=this.options;rt&&E(rt,d.swapClass,!1),rt&&(d.swap||l&&l.options.swap)&&c!==rt&&(u.captureAnimationState(),u!==s&&s.captureAnimationState(),n=rt,i=(t=c).parentNode,a=n.parentNode,i&&a&&!i.isEqualNode(n)&&!a.isEqualNode(t)&&(o=N(t),r=N(n),i.isEqualNode(a)&&o<r&&r++,i.insertBefore(n,i.children[o]),a.insertBefore(t,a.children[r])),u.animateAll(),u!==s&&s.animateAll())},nulling:function(){rt=null}},s(e,{pluginName:"swap",eventProperties:function(){return{swapItem:rt}}})}st.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var o=P(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(t,o):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:at},s(st,{pluginName:"revertOnSpill"}),lt.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:at},s(lt,{pluginName:"removeOnSpill"});var ut,dt,ft,pt,ht,mt=[],gt=[],vt=!1,bt=!1,yt=!1;function xt(){function e(e){for(var t in this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this));e.options.avoidImplicitDeselect||(e.options.supportPointer?v(document,"pointerup",this._deselectMultiDrag):(v(document,"mouseup",this._deselectMultiDrag),v(document,"touchend",this._deselectMultiDrag))),v(document,"keydown",this._checkKeyDown),v(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,avoidImplicitDeselect:!1,setData:function(t,n){var o="";mt.length&&dt===e?mt.forEach((function(e,t){o+=(t?", ":"")+e.textContent})):o=n.textContent,t.setData("Text",o)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){var t=e.dragEl;ft=t},delayEnded:function(){this.isMultiDrag=~mt.indexOf(ft)},setupClone:function(e){var t=e.sortable,n=e.cancel;if(this.isMultiDrag){for(var o=0;o<mt.length;o++)gt.push(L(mt[o])),gt[o].sortableIndex=mt[o].sortableIndex,gt[o].draggable=!1,gt[o].style["will-change"]="",E(gt[o],this.options.selectedClass,!1),mt[o]===ft&&E(gt[o],this.options.chosenClass,!1);t._hideClone(),n()}},clone:function(e){var t=e.sortable,n=e.rootEl,o=e.dispatchSortableEvent,r=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||mt.length&&dt===t&&(wt(!0,n),o("clone"),r()))},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl,o=e.cancel;this.isMultiDrag&&(wt(!1,n),gt.forEach((function(e){k(e,"display","")})),t(),ht=!1,o())},hideClone:function(e){var t=this,n=(e.sortable,e.cloneNowHidden),o=e.cancel;this.isMultiDrag&&(gt.forEach((function(e){k(e,"display","none"),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)})),n(),ht=!0,o())},dragStartGlobal:function(e){e.sortable,!this.isMultiDrag&&dt&&dt.multiDrag._deselectMultiDrag(),mt.forEach((function(e){e.sortableIndex=N(e)})),mt=mt.sort((function(e,t){return e.sortableIndex-t.sortableIndex})),yt=!0},dragStarted:function(e){var t=this,n=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){mt.forEach((function(e){e!==ft&&k(e,"position","absolute")}));var o=j(ft,!1,!0,!0);mt.forEach((function(e){e!==ft&&z(e,o)})),bt=!0,vt=!0}n.animateAll((function(){bt=!1,vt=!1,t.options.animation&&mt.forEach((function(e){F(e)})),t.options.sort&&Ct()}))}},dragOver:function(e){var t=e.target,n=e.completed,o=e.cancel;bt&&~mt.indexOf(t)&&(n(!1),o())},revert:function(e){var t=e.fromSortable,n=e.rootEl,o=e.sortable,r=e.dragRect;mt.length>1&&(mt.forEach((function(e){o.addAnimationState({target:e,rect:bt?j(e):r}),F(e),e.fromRect=r,t.removeAnimationState(e)})),bt=!1,function(e,t){mt.forEach((function(n,o){var r=t.children[n.sortableIndex+(e?Number(o):0)];r?t.insertBefore(n,r):t.appendChild(n)}))}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,o=e.insertion,r=e.activeSortable,i=e.parentEl,a=e.putSortable,s=this.options;if(o){if(n&&r._hideClone(),vt=!1,s.animation&&mt.length>1&&(bt||!n&&!r.options.sort&&!a)){var l=j(ft,!1,!0,!0);mt.forEach((function(e){e!==ft&&(z(e,l),i.appendChild(e))})),bt=!0}if(!n)if(bt||Ct(),mt.length>1){var c=ht;r._showClone(t),r.options.animation&&!ht&&c&&gt.forEach((function(e){r.addAnimationState({target:e,rect:pt}),e.fromRect=pt,e.thisAnimationDuration=null}))}else r._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,o=e.activeSortable;if(mt.forEach((function(e){e.thisAnimationDuration=null})),o.options.animation&&!n&&o.multiDrag.isMultiDrag){pt=s({},t);var r=$(ft,!0);pt.top-=r.f,pt.left-=r.e}},dragOverAnimationComplete:function(){bt&&(bt=!1,Ct())},drop:function(e){var t=e.originalEvent,n=e.rootEl,o=e.parentEl,r=e.sortable,i=e.dispatchSortableEvent,a=e.oldIndex,s=e.putSortable,l=s||this.sortable;if(t){var c=this.options,u=o.children;if(!yt)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),E(ft,c.selectedClass,!~mt.indexOf(ft)),~mt.indexOf(ft))mt.splice(mt.indexOf(ft),1),ut=null,U({sortable:r,rootEl:n,name:"deselect",targetEl:ft,originalEvent:t});else{if(mt.push(ft),U({sortable:r,rootEl:n,name:"select",targetEl:ft,originalEvent:t}),t.shiftKey&&ut&&r.el.contains(ut)){var d,f,p=N(ut),h=N(ft);if(~p&&~h&&p!==h)for(h>p?(f=p,d=h):(f=h,d=p+1);f<d;f++)~mt.indexOf(u[f])||(E(u[f],c.selectedClass,!0),mt.push(u[f]),U({sortable:r,rootEl:n,name:"select",targetEl:u[f],originalEvent:t}))}else ut=ft;dt=l}if(yt&&this.isMultiDrag){if(bt=!1,(o[V].options.sort||o!==n)&&mt.length>1){var m=j(ft),g=N(ft,":not(."+this.options.selectedClass+")");if(!vt&&c.animation&&(ft.thisAnimationDuration=null),l.captureAnimationState(),!vt&&(c.animation&&(ft.fromRect=m,mt.forEach((function(e){if(e.thisAnimationDuration=null,e!==ft){var t=bt?j(e):m;e.fromRect=t,l.addAnimationState({target:e,rect:t})}}))),Ct(),mt.forEach((function(e){u[g]?o.insertBefore(e,u[g]):o.appendChild(e),g++})),a===N(ft))){var v=!1;mt.forEach((function(e){e.sortableIndex===N(e)||(v=!0)})),v&&(i("update"),i("sort"))}mt.forEach((function(e){F(e)})),l.animateAll()}dt=l}(n===o||s&&"clone"!==s.lastPutMode)&&gt.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=yt=!1,gt.length=0},destroyGlobal:function(){this._deselectMultiDrag(),b(document,"pointerup",this._deselectMultiDrag),b(document,"mouseup",this._deselectMultiDrag),b(document,"touchend",this._deselectMultiDrag),b(document,"keydown",this._checkKeyDown),b(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(void 0!==yt&&yt||dt!==this.sortable||e&&w(e.target,this.options.draggable,this.sortable.el,!1)||e&&0!==e.button))for(;mt.length;){var t=mt[0];E(t,this.options.selectedClass,!1),mt.shift(),U({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvent:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},s(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[V];t&&t.options.multiDrag&&!~mt.indexOf(e)&&(dt&&dt!==t&&(dt.multiDrag._deselectMultiDrag(),dt=t),E(e,t.options.selectedClass,!0),mt.push(e))},deselect:function(e){var t=e.parentNode[V],n=mt.indexOf(e);t&&t.options.multiDrag&&~n&&(E(e,t.options.selectedClass,!1),mt.splice(n,1))}},eventProperties:function(){var e,t=this,n=[],o=[];return mt.forEach((function(e){var r;n.push({multiDragElement:e,index:e.sortableIndex}),r=bt&&e!==ft?-1:bt?N(e,":not(."+t.options.selectedClass+")"):N(e),o.push({multiDragElement:e,index:r})})),{items:(e=mt,function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),clones:[].concat(gt),oldIndicies:n,newIndicies:o}},optionListeners:{multiDragKey:function(e){return"ctrl"===(e=e.toLowerCase())?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function wt(e,t){gt.forEach((function(n,o){var r=t.children[n.sortableIndex+(e?Number(o):0)];r?t.insertBefore(n,r):t.appendChild(n)}))}function Ct(){mt.forEach((function(e){e!==ft&&e.parentNode&&e.parentNode.removeChild(e)}))}Fe.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?v(document,"dragover",this._handleAutoScroll):this.options.supportPointer?v(document,"pointermove",this._handleFallbackAutoScroll):t.touches?v(document,"touchmove",this._handleFallbackAutoScroll):v(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?b(document,"dragover",this._handleAutoScroll):(b(document,"pointermove",this._handleFallbackAutoScroll),b(document,"touchmove",this._handleFallbackAutoScroll),b(document,"mousemove",this._handleFallbackAutoScroll)),ot(),nt(),clearTimeout(C),C=void 0},nulling:function(){Qe=Xe=Ge=tt=Je=Ye=Ze=null,et.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,o=(e.touches?e.touches[0]:e).clientX,r=(e.touches?e.touches[0]:e).clientY,i=document.elementFromPoint(o,r);if(Qe=e,t||this.options.forceAutoScrollFallback||d||u||p){it(e,this.options,i,t);var a=R(i,!0);!tt||Je&&o===Ye&&r===Ze||(Je&&ot(),Je=setInterval((function(){var i=R(document.elementFromPoint(o,r),!0);i!==a&&(a=i,nt()),it(e,n.options,i,t)}),10),Ye=o,Ze=r)}else{if(!this.options.bubbleScroll||R(i,!0)===O())return void nt();it(e,this.options,R(i,!1),!1)}}},s(e,{pluginName:"scroll",initializeByDefault:!0})}),Fe.mount(lt,st);const St=Fe},997:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var o=!0,r="Invariant failed";function i(e,t){if(!e){if(o)throw new Error(r);var n="function"==typeof t?t():t;throw new Error(n?r+": "+n:r)}}},426:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],o=0;o<e.rangeCount;o++)n.push(e.getRangeAt(o));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},868:(e,t,n)=>{"use strict";var o={};n.r(o),n.d(o,{addNotice:()=>EJ,deleteNotice:()=>kJ,setSettings:()=>CJ,setTotalNotifications:()=>$J,toggleMergeTags:()=>OJ,toggleProAlert:()=>_J,updateSetting:()=>SJ});var r={};n.r(r),n.d(r,{getMergeTags:()=>TJ,getNoticeById:()=>PJ,getNotices:()=>MJ,getProAlert:()=>NJ,getSettings:()=>jJ,getTotalNotifications:()=>IJ});var i={};n.r(i),n.d(i,{getIntegration:()=>AJ,getSettings:()=>RJ,getTotalNotifications:()=>DJ});var a=n(848);const s=window.wp.element,l=window.wp.i18n,c=window.wp.hooks,u=window.wp.data;var d,f,p=n(609),h=n.n(p);function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},m.apply(this,arguments)}function g(e,t){if(!1===e||null==e)throw new Error(t)}function v(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function b(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let o=e.indexOf("?");o>=0&&(t.search=e.substr(o),e=e.substr(0,o)),e&&(t.pathname=e)}return t}function y(e,t,n){void 0===n&&(n="/");let o=N(("string"==typeof t?b(t):t).pathname||"/",n);if(null==o)return null;let r=x(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(r);let i=null;for(let e=0;null==i&&e<r.length;++e){let t=I(o);i=M(r[e],t)}return i}function x(e,t,n,o){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===o&&(o="");let r=(e,r,i)=>{let a={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:r,route:e};a.relativePath.startsWith("/")&&(g(a.relativePath.startsWith(o),'Absolute route path "'+a.relativePath+'" nested under path "'+o+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(o.length));let s=R([o,a.relativePath]),l=n.concat(a);e.children&&e.children.length>0&&(g(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),x(e.children,t,l,s)),(null!=e.path||e.index)&&t.push({path:s,score:j(s,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of w(e.path))r(e,t,n);else r(e,t)})),t}function w(e){let t=e.split("/");if(0===t.length)return[];let[n,...o]=t,r=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===o.length)return r?[i,""]:[i];let a=w(o.join("/")),s=[];return s.push(...a.map((e=>""===e?i:[i,e].join("/")))),r&&s.push(...a),s.map((t=>e.startsWith("/")&&""===t?"/":t))}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(d||(d={})),function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(f||(f={})),new Set(["lazy","caseSensitive","path","id","index","children"]);const C=/^:[\w-]+$/,S=3,E=2,k=1,$=10,_=-2,O=e=>"*"===e;function j(e,t){let n=e.split("/"),o=n.length;return n.some(O)&&(o+=_),t&&(o+=E),n.filter((e=>!O(e))).reduce(((e,t)=>e+(C.test(t)?S:""===t?k:$)),o)}function M(e,t){let{routesMeta:n}=e,o={},r="/",i=[];for(let e=0;e<n.length;++e){let a=n[e],s=e===n.length-1,l="/"===r?t:t.slice(r.length)||"/",c=P({path:a.relativePath,caseSensitive:a.caseSensitive,end:s},l);if(!c)return null;Object.assign(o,c.params);let u=a.route;i.push({params:o,pathname:R([r,c.pathname]),pathnameBase:A(R([r,c.pathnameBase])),route:u}),"/"!==c.pathnameBase&&(r=R([r,c.pathnameBase]))}return i}function P(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,o]=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!0),v("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let o=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(o.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(o.push({paramName:"*"}),r+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":""!==e&&"/"!==e&&(r+="(?:(?=\\/|$))"),[new RegExp(r,t?void 0:"i"),o]}(e.path,e.caseSensitive,e.end),r=t.match(n);if(!r)return null;let i=r[0],a=i.replace(/(.)\/+$/,"$1"),s=r.slice(1),l=o.reduce(((e,t,n)=>{let{paramName:o,isOptional:r}=t;if("*"===o){let e=s[n]||"";a=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const l=s[n];return e[o]=r&&!l?void 0:(l||"").replace(/%2F/g,"/"),e}),{});return{params:l,pathname:i,pathnameBase:a,pattern:e}}function I(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return v(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function N(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,o=e.charAt(n);return o&&"/"!==o?null:e.slice(n)||"/"}function T(e,t,n,o){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(o)+"].  Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}const R=e=>e.join("/").replace(/\/\/+/g,"/"),A=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),D=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",B=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;const L=["post","put","patch","delete"],z=(new Set(L),["get",...L]);function F(){return F=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},F.apply(this,arguments)}new Set(z),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred");const H=p.createContext(null),V=p.createContext(null),W=p.createContext(null),K=p.createContext(null),q=p.createContext({outlet:null,matches:[],isDataRoute:!1}),U=p.createContext(null);function G(){return null!=p.useContext(K)}function X(){return G()||g(!1),p.useContext(K).location}function Y(e){G()||g(!1);let{pathname:t}=X();return p.useMemo((()=>P(e,t)),[t,e])}function Z(e){p.useContext(W).static||p.useLayoutEffect(e)}function Q(){let{isDataRoute:e}=p.useContext(q);return e?function(){let{router:e}=function(e){let t=p.useContext(H);return t||g(!1),t}(ie.UseNavigateStable),t=se(ae.UseNavigateStable),n=p.useRef(!1);Z((()=>{n.current=!0}));let o=p.useCallback((function(o,r){void 0===r&&(r={}),n.current&&("number"==typeof o?e.navigate(o):e.navigate(o,F({fromRouteId:t},r)))}),[e,t]);return o}():function(){G()||g(!1);let e=p.useContext(H),{basename:t,future:n,navigator:o}=p.useContext(W),{matches:r}=p.useContext(q),{pathname:i}=X(),a=JSON.stringify(function(e,t){let n=function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(e);return t?n.map(((t,n)=>n===e.length-1?t.pathname:t.pathnameBase)):n.map((e=>e.pathnameBase))}(r,n.v7_relativeSplatPath)),s=p.useRef(!1);Z((()=>{s.current=!0}));let l=p.useCallback((function(n,r){if(void 0===r&&(r={}),!s.current)return;if("number"==typeof n)return void o.go(n);let l=function(e,t,n,o){let r;void 0===o&&(o=!1),"string"==typeof e?r=b(e):(r=m({},e),g(!r.pathname||!r.pathname.includes("?"),T("?","pathname","search",r)),g(!r.pathname||!r.pathname.includes("#"),T("#","pathname","hash",r)),g(!r.search||!r.search.includes("#"),T("#","search","hash",r)));let i,a=""===e||""===r.pathname,s=a?"/":r.pathname;if(null==s)i=n;else{let e=t.length-1;if(!o&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;r.pathname=t.join("/")}i=e>=0?t[e]:"/"}let l=function(e,t){void 0===t&&(t="/");let{pathname:n,search:o="",hash:r=""}="string"==typeof e?b(e):e,i=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:i,search:D(o),hash:B(r)}}(r,i),c=s&&"/"!==s&&s.endsWith("/"),u=(a||"."===s)&&n.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}(n,JSON.parse(a),i,"path"===r.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:R([t,l.pathname])),(r.replace?o.replace:o.push)(l,r.state,r)}),[t,o,a,i,e]);return l}()}function J(){let{matches:e}=p.useContext(q),t=e[e.length-1];return t?t.params:{}}function ee(e,t,n,o){G()||g(!1);let{navigator:r}=p.useContext(W),{matches:i}=p.useContext(q),a=i[i.length-1],s=a?a.params:{},l=(a&&a.pathname,a?a.pathnameBase:"/");a&&a.route;let c,u=X();if(t){var f;let e="string"==typeof t?b(t):t;"/"===l||(null==(f=e.pathname)?void 0:f.startsWith(l))||g(!1),c=e}else c=u;let h=c.pathname||"/",m=h;if("/"!==l){let e=l.replace(/^\//,"").split("/");m="/"+h.replace(/^\//,"").split("/").slice(e.length).join("/")}let v=y(e,{pathname:m}),x=function(e,t,n,o){var r;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===o&&(o=null),null==e){var i;if(null==(i=n)||!i.errors)return null;e=n.matches}let a=e,s=null==(r=n)?void 0:r.errors;if(null!=s){let e=a.findIndex((e=>e.route.id&&(null==s?void 0:s[e.route.id])));e>=0||g(!1),a=a.slice(0,Math.min(a.length,e+1))}let l=!1,c=-1;if(n&&o&&o.v7_partialHydration)for(let e=0;e<a.length;e++){let t=a[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(c=e),t.route.id){let{loaderData:e,errors:o}=n,r=t.route.loader&&void 0===e[t.route.id]&&(!o||void 0===o[t.route.id]);if(t.route.lazy||r){l=!0,a=c>=0?a.slice(0,c+1):[a[0]];break}}}return a.reduceRight(((e,o,r)=>{let i,u=!1,d=null,f=null;var h;n&&(i=s&&o.route.id?s[o.route.id]:void 0,d=o.route.errorElement||ne,l&&(c<0&&0===r?(le[h="route-fallback"]||(le[h]=!0),u=!0,f=null):c===r&&(u=!0,f=o.route.hydrateFallbackElement||null)));let m=t.concat(a.slice(0,r+1)),g=()=>{let t;return t=i?d:u?f:o.route.Component?p.createElement(o.route.Component,null):o.route.element?o.route.element:e,p.createElement(re,{match:o,routeContext:{outlet:e,matches:m,isDataRoute:null!=n},children:t})};return n&&(o.route.ErrorBoundary||o.route.errorElement||0===r)?p.createElement(oe,{location:n.location,revalidation:n.revalidation,component:d,error:i,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()}),null)}(v&&v.map((e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:R([l,r.encodeLocation?r.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?l:R([l,r.encodeLocation?r.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),i,n,o);return t&&x?p.createElement(K.Provider,{value:{location:F({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:d.Pop}},x):x}function te(){let e=function(){var e;let t=p.useContext(U),n=function(e){let t=p.useContext(V);return t||g(!1),t}(ae.UseRouteError),o=se(ae.UseRouteError);return void 0!==t?t:null==(e=n.errors)?void 0:e[o]}(),t=function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),n?p.createElement("pre",{style:o},n):null,null)}const ne=p.createElement(te,null);class oe extends p.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?p.createElement(q.Provider,{value:this.props.routeContext},p.createElement(U.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function re(e){let{routeContext:t,match:n,children:o}=e,r=p.useContext(H);return r&&r.static&&r.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=n.route.id),p.createElement(q.Provider,{value:t},o)}var ie=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(ie||{}),ae=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ae||{});function se(e){let t=function(e){let t=p.useContext(q);return t||g(!1),t}(),n=t.matches[t.matches.length-1];return n.route.id||g(!1),n.route.id}const le={};function ce(e){g(!1)}function ue(e){let{basename:t="/",children:n=null,location:o,navigationType:r=d.Pop,navigator:i,static:a=!1,future:s}=e;G()&&g(!1);let l=t.replace(/^\/*/,"/"),c=p.useMemo((()=>({basename:l,navigator:i,static:a,future:F({v7_relativeSplatPath:!1},s)})),[l,s,i,a]);"string"==typeof o&&(o=b(o));let{pathname:u="/",search:f="",hash:h="",state:m=null,key:v="default"}=o,y=p.useMemo((()=>{let e=N(u,l);return null==e?null:{location:{pathname:e,search:f,hash:h,state:m,key:v},navigationType:r}}),[l,u,f,h,m,v,r]);return null==y?null:p.createElement(W.Provider,{value:c},p.createElement(K.Provider,{children:n,value:y}))}function de(e){let{children:t,location:n}=e;return ee(fe(t),n)}function fe(e,t){void 0===t&&(t=[]);let n=[];return p.Children.forEach(e,((e,o)=>{if(!p.isValidElement(e))return;let r=[...t,o];if(e.type===p.Fragment)return void n.push.apply(n,fe(e.props.children,r));e.type!==ce&&g(!1),e.props.index&&e.props.children&&g(!1);let i={id:e.props.id||r.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(i.children=fe(e.props.children,r)),n.push(i)})),n}p.startTransition,new Promise((()=>{})),p.Component;const pe=window.ReactDOM;var he=n.n(pe);new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(iO){}new Map;const me=p.startTransition;function ge(e){let{basename:t,children:n,future:o,history:r}=e,[i,a]=p.useState({action:r.action,location:r.location}),{v7_startTransition:s}=o||{},l=p.useCallback((e=>{s&&me?me((()=>a(e))):a(e)}),[a,s]);return p.useLayoutEffect((()=>r.listen(l)),[r,l]),p.createElement(ue,{basename:t,children:n,location:i.location,navigationType:i.action,navigator:r,future:o})}var ve,be;function ye(e){return ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ye(e)}function xe(){xe=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,o){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),s=new M(o||[]);return r(a,"_invoke",{value:$(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",g={};function v(){}function b(){}function y(){}var x={};c(x,a,(function(){return this}));var w=Object.getPrototypeOf,C=w&&w(w(P([])));C&&C!==n&&o.call(C,a)&&(x=C);var S=y.prototype=v.prototype=Object.create(x);function E(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(r,i,a,s){var l=d(e[r],e,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==ye(u)&&o.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var i;r(this,"_invoke",{value:function(e,o){function r(){return new t((function(t,r){n(e,o,t,r)}))}return i=i?i.then(r,r):r()}})}function $(t,n,o){var r=f;return function(i,a){if(r===h)throw Error("Generator is already running");if(r===m){if("throw"===i)throw a;return{value:e,done:!0}}for(o.method=i,o.arg=a;;){var s=o.delegate;if(s){var l=_(s,o);if(l){if(l===g)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(r===f)throw r=m,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);r=h;var c=d(t,n,o);if("normal"===c.type){if(r=o.done?m:p,c.arg===g)continue;return{value:c.arg,done:o.done}}"throw"===c.type&&(r=m,o.method="throw",o.arg=c.arg)}}}function _(t,n){var o=n.method,r=t.iterator[o];if(r===e)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=e,_(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),g;var i=d(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function P(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(o.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(ye(t)+" is not iterable")}return b.prototype=y,r(S,"constructor",{value:y,configurable:!0}),r(y,"constructor",{value:b,configurable:!0}),b.displayName=c(y,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,l,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},E(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,n,o,r,i){void 0===i&&(i=Promise);var a=new k(u(e,n,o,r),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(S),c(S,l,"Generator"),c(S,a,(function(){return this})),c(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var o in t)n.push(o);return n.reverse(),function e(){for(;n.length;){var o=n.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},t.values=P,M.prototype={constructor:M,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(o,r){return s.type="throw",s.arg=t,n.next=o,r&&(n.method="next",n.arg=e),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;j(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:P(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),g}},t}function we(e,t,n,o,r,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(o,r)}function Ce(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){we(i,o,r,a,s,"next",e)}function s(e){we(i,o,r,a,s,"throw",e)}a(void 0)}))}}function Se(e){var t=function(e,t){if("object"!=ye(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=ye(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ye(t)?t:t+""}function Ee(e,t,n){return(t=Se(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function $e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ke(Object(n),!0).forEach((function(t){Ee(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}pe.flushSync,p.useId,"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"}(ve||(ve={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(be||(be={}));var _e,Oe=$e({},pe),je=Oe.version,Me=Oe.render,Pe=Oe.unmountComponentAtNode;try{Number((je||"").split(".")[0])>=18&&(_e=Oe.createRoot)}catch(iO){}function Ie(e){var t=Oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===ye(t)&&(t.usingClientEntryPoint=e)}var Ne="__rc_react_root__";function Te(e,t){_e?function(e,t){Ie(!0);var n=t[Ne]||_e(t);Ie(!1),n.render(e),t[Ne]=n}(e,t):function(e,t){Me(e,t)}(e,t)}function Re(_x){return Ae.apply(this,arguments)}function Ae(){return(Ae=Ce(xe().mark((function e(t){return xe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[Ne])||void 0===e||e.unmount(),delete t[Ne]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function De(e){Pe(e)}function Be(e){return Le.apply(this,arguments)}function Le(){return(Le=Ce(xe().mark((function e(t){return xe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===_e){e.next=2;break}return e.abrupt("return",Re(t));case 2:De(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}const ze=h().createContext({}),Fe="anticon",He=p.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:Fe}),{Consumer:Ve}=He;function We(e){if(Array.isArray(e))return e}function Ke(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function qe(e,t){if(e){if("string"==typeof e)return Ke(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ke(e,t):void 0}}function Ue(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ge(e,t){return We(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(o=i.call(n)).done)&&(s.push(o.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||qe(e,t)||Ue()}function Xe(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Ye(e){return function(e){if(Array.isArray(e))return Ke(e)}(e)||Xe(e)||qe(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const Ze=function(e){for(var t,n=0,o=0,r=e.length;r>=4;++o,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};function Qe(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function Je(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 et="data-rc-order",tt="data-rc-priority",nt="rc-util-key",ot=new Map;function rt(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):nt}function it(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function at(e){return Array.from((ot.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function st(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Qe())return null;var n=t.csp,o=t.prepend,r=t.priority,i=void 0===r?0:r,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(o),s="prependQueue"===a,l=document.createElement("style");l.setAttribute(et,a),s&&i&&l.setAttribute(tt,"".concat(i)),null!=n&&n.nonce&&(l.nonce=null==n?void 0:n.nonce),l.innerHTML=e;var c=it(t),u=c.firstChild;if(o){if(s){var d=(t.styles||at(c)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(et)))return!1;var t=Number(e.getAttribute(tt)||0);return i>=t}));if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function lt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=it(t);return(t.styles||at(n)).find((function(n){return n.getAttribute(rt(t))===e}))}function ct(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=lt(e,t);n&&it(t).removeChild(n)}function ut(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=it(n),r=at(o),i=$e($e({},n),{},{styles:r});!function(e,t){var n=ot.get(e);if(!n||!Je(document,n)){var o=st("",t),r=o.parentNode;ot.set(e,r),e.removeChild(o)}}(o,i);var a,s,l,c=lt(t,i);if(c)return null!==(a=i.csp)&&void 0!==a&&a.nonce&&c.nonce!==(null===(s=i.csp)||void 0===s?void 0:s.nonce)&&(c.nonce=null===(l=i.csp)||void 0===l?void 0:l.nonce),c.innerHTML!==e&&(c.innerHTML=e),c;var u=st(e,i);return u.setAttribute(rt(i),t),u}function dt(e,t,n){var o=p.useRef({});return"value"in o.current&&!n(o.current.condition,t)||(o.current.value=e(),o.current.condition=t),o.current.value}var ft={},pt=[];function ht(e,t){}function mt(e,t){}function gt(e,t,n){t||ft[n]||(e(!1,n),ft[n]=!0)}function vt(e,t){gt(ht,e,t)}vt.preMessage=function(e){pt.push(e)},vt.resetWarned=function(){ft={}},vt.noteOnce=function(e,t){gt(mt,e,t)};const bt=vt,yt=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=new Set;return function e(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=o.has(t);if(bt(!a,"Warning: There may be circular references"),a)return!1;if(t===r)return!0;if(n&&i>1)return!1;o.add(t);var s=i+1;if(Array.isArray(t)){if(!Array.isArray(r)||t.length!==r.length)return!1;for(var l=0;l<t.length;l++)if(!e(t[l],r[l],s))return!1;return!0}if(t&&r&&"object"===ye(t)&&"object"===ye(r)){var c=Object.keys(t);return c.length===Object.keys(r).length&&c.every((function(n){return e(t[n],r[n],s)}))}return!1}(e,t)};function xt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Se(o.key),o)}}function Ct(e,t,n){return t&&wt(e.prototype,t),n&&wt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var St="%";function Et(e){return e.join(St)}var kt=function(){function e(t){xt(this,e),Ee(this,"instanceId",void 0),Ee(this,"cache",new Map),this.instanceId=t}return Ct(e,[{key:"get",value:function(e){return this.opGet(Et(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(Et(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}();const $t=kt;var _t="data-token-hash",Ot="data-css-hash",jt="__cssinjs_instance__";var Mt=p.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Ot,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[jt]=t[jt]||e,t[jt]===e&&document.head.insertBefore(t,n)}));var o={};Array.from(document.querySelectorAll("style[".concat(Ot,"]"))).forEach((function(t){var n,r=t.getAttribute(Ot);o[r]?t[jt]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):o[r]=!0}))}return new $t(e)}(),defaultCache:!0});const Pt=Mt;var It=function(){function e(){xt(this,e),Ee(this,"cache",void 0),Ee(this,"keys",void 0),Ee(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Ct(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r={map:this.cache};return e.forEach((function(e){var t;r=r?null===(t=r)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):void 0})),null!==(t=r)&&void 0!==t&&t.value&&o&&(r.value[1]=this.cacheCallTimes++),null===(n=r)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var o=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var r=this.keys.reduce((function(e,t){var n=Ge(e,2)[1];return o.internalGet(t)[1]<n?[t,o.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),i=Ge(r,1)[0];this.delete(i)}this.keys.push(t)}var a=this.cache;t.forEach((function(e,r){if(r===t.length-1)a.set(e,{value:[n,o.cacheCallTimes++]});else{var i=a.get(e);i?i.map||(i.map=new Map):a.set(e,{map:new Map}),a=a.get(e).map}}))}},{key:"deleteByPath",value:function(e,t){var n,o=e.get(t[0]);if(1===t.length)return o.map?e.set(t[0],{map:o.map}):e.delete(t[0]),null===(n=o.value)||void 0===n?void 0:n[0];var r=this.deleteByPath(o.map,t.slice(1));return o.map&&0!==o.map.size||o.value||e.delete(t[0]),r}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter((function(t){return!function(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}(t,e)})),this.deleteByPath(this.cache,e)}}]),e}();Ee(It,"MAX_CACHE_SIZE",20),Ee(It,"MAX_CACHE_OFFSET",5);var Nt=0,Tt=function(){function e(t){xt(this,e),Ee(this,"derivatives",void 0),Ee(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Nt,0===t.length&&t.length,Nt+=1}return Ct(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),Rt=new It;function At(e){var t=Array.isArray(e)?e:[e];return Rt.has(t)||Rt.set(t,new Tt(t)),Rt.get(t)}var Dt=new WeakMap,Bt={},Lt=new WeakMap;function zt(e){var t=Lt.get(e)||"";return t||(Object.keys(e).forEach((function(n){var o=e[n];t+=n,o instanceof Tt?t+=o.id:o&&"object"===ye(o)?t+=zt(o):t+=o})),Lt.set(e,t)),t}function Ft(e,t){return Ze("".concat(t,"_").concat(zt(e)))}var Ht="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),Vt="_bAmBoO_";var Wt=void 0,Kt=Qe();function qt(e){return"number"==typeof e?"".concat(e,"px"):e}function Ut(e,t,n){var o;if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var r=$e($e({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},(Ee(o={},_t,t),Ee(o,Ot,n),o)),i=Object.keys(r).map((function(e){var t=r[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"<style ".concat(i,">").concat(e,"</style>")}var Gt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).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()},Xt=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map((function(e){var t=Ge(e,2),n=t[0],o=t[1];return"".concat(n,":").concat(o,";")})).join(""),"}"):""},Yt=function(e,t,n){var o={},r={};return Object.entries(e).forEach((function(e){var t,i,a=Ge(e,2),s=a[0],l=a[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[s])r[s]=l;else if(!("string"!=typeof l&&"number"!=typeof l||null!=n&&null!==(i=n.ignore)&&void 0!==i&&i[s])){var c,u=Gt(s,null==n?void 0:n.prefix);o[u]="number"!=typeof l||null!=n&&null!==(c=n.unitless)&&void 0!==c&&c[s]?String(l):"".concat(l,"px"),r[s]="var(".concat(u,")")}})),[r,Xt(o,t,{scope:null==n?void 0:n.scope})]},Zt=Qe()?p.useLayoutEffect:p.useEffect,Qt=function(e,t){var n=p.useRef(!0);Zt((function(){return e(n.current)}),t),Zt((function(){return n.current=!1,function(){n.current=!0}}),[])},Jt=function(e,t){Qt((function(t){if(!t)return e()}),t)};const en=Qt;var tn=$e({},p).useInsertionEffect;const nn=tn?function(e,t,n){return tn((function(){return e(),t()}),n)}:function(e,t,n){p.useMemo(e,n),en((function(){return t(!0)}),n)},on=void 0!==$e({},p).useInsertionEffect?function(e){var t=[],n=!1;return p.useEffect((function(){return n=!1,function(){n=!0,t.length&&t.forEach((function(e){return e()}))}}),e),function(e){n||t.push(e)}}:function(){return function(e){e()}},rn=function(){return!1};function an(e,t,n,o,r){var i=p.useContext(Pt).cache,a=Et([e].concat(Ye(t))),s=on([a]),l=(rn(),function(e){i.opUpdate(a,(function(t){var o=Ge(t||[void 0,void 0],2),r=o[0],i=[void 0===r?0:r,o[1]||n()];return e?e(i):i}))});p.useMemo((function(){l()}),[a]);var c=i.opGet(a)[1];return nn((function(){null==r||r(c)}),(function(e){return l((function(t){var n=Ge(t,2),o=n[0],i=n[1];return e&&0===o&&(null==r||r(c)),[o+1,i]})),function(){i.opUpdate(a,(function(t){var n=Ge(t||[],2),r=n[0],l=void 0===r?0:r,c=n[1];return 0==l-1?(s((function(){!e&&i.opGet(a)||null==o||o(c,!1)})),null):[l-1,c]}))}}),[a]),c}var sn={},ln="css",cn=new Map,un=0;var dn=function(e,t,n,o){var r=$e($e({},n.getDerivativeToken(e)),t);return o&&(r=o(r)),r},fn="token";function pn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(0,p.useContext)(Pt),r=o.cache.instanceId,i=o.container,a=n.salt,s=void 0===a?"":a,l=n.override,c=void 0===l?sn:l,u=n.formatToken,d=n.getComputedToken,f=n.cssVar,h=function(e,n){for(var o=Dt,r=0;r<n.length;r+=1){var i=n[r];o.has(i)||o.set(i,new WeakMap),o=o.get(i)}return o.has(Bt)||o.set(Bt,Object.assign.apply(Object,[{}].concat(Ye(t)))),o.get(Bt)}(0,t),m=zt(h),g=zt(c),v=f?zt(f):"",b=an(fn,[s,e.id,m,g,v],(function(){var t,n=d?d(h,c,e):dn(h,c,e,u),o=$e({},n),r="";if(f){var i=Ge(Yt(n,f.key,{prefix:f.prefix,ignore:f.ignore,unitless:f.unitless,preserve:f.preserve}),2);n=i[0],r=i[1]}var a=Ft(n,s);n._tokenKey=a,o._tokenKey=Ft(o,s);var l=null!==(t=null==f?void 0:f.key)&&void 0!==t?t:a;n._themeKey=l,function(e){cn.set(e,(cn.get(e)||0)+1)}(l);var p="".concat(ln,"-").concat(Ze(a));return n._hashId=p,[n,p,o,r,(null==f?void 0:f.key)||""]}),(function(e){!function(e,t){cn.set(e,(cn.get(e)||0)-1);var n=Array.from(cn.keys()),o=n.filter((function(e){return(cn.get(e)||0)<=0}));n.length-o.length>un&&o.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(_t,'="').concat(e,'"]')).forEach((function(e){var n;e[jt]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),cn.delete(e)}))}(e[0]._themeKey,r)}),(function(e){var t=Ge(e,4),n=t[0],o=t[3];if(f&&o){var a=ut(o,Ze("css-variables-".concat(n._themeKey)),{mark:Ot,prepend:"queue",attachTo:i,priority:-999});a[jt]=r,a.setAttribute(_t,n._themeKey)}}));return b}function hn(){return hn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},hn.apply(null,arguments)}const mn={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};var gn="-ms-",vn="-moz-",bn="-webkit-",yn="comm",xn="rule",wn="decl",Cn="@import",Sn="@keyframes",En="@layer",kn=Math.abs,$n=String.fromCharCode,On=Object.assign;function jn(e){return e.trim()}function Mn(e,t,n){return e.replace(t,n)}function Pn(e,t){return e.indexOf(t)}function In(e,t){return 0|e.charCodeAt(t)}function Nn(e,t,n){return e.slice(t,n)}function Tn(e){return e.length}function Rn(e){return e.length}function An(e,t){return t.push(e),e}function Dn(e,t){for(var n="",o=Rn(e),r=0;r<o;r++)n+=t(e[r],r,e,t)||"";return n}function Bn(e,t,n,o){switch(e.type){case En:if(e.children.length)break;case Cn:case wn:return e.return=e.return||e.value;case yn:return"";case Sn:return e.return=e.value+"{"+Dn(e.children,o)+"}";case xn:e.value=e.props.join(",")}return Tn(n=Dn(e.children,o))?e.return=e.value+"{"+n+"}":""}var Ln=1,zn=1,Fn=0,Hn=0,Vn=0,Wn="";function Kn(e,t,n,o,r,i,a){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:Ln,column:zn,length:a,return:""}}function qn(e,t){return On(Kn("",null,null,"",null,null,0),e,{length:-e.length},t)}function Un(){return Vn=Hn>0?In(Wn,--Hn):0,zn--,10===Vn&&(zn=1,Ln--),Vn}function Gn(){return Vn=Hn<Fn?In(Wn,Hn++):0,zn++,10===Vn&&(zn=1,Ln++),Vn}function Xn(){return In(Wn,Hn)}function Yn(){return Hn}function Zn(e,t){return Nn(Wn,e,t)}function Qn(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 Jn(e){return Ln=zn=1,Fn=Tn(Wn=e),Hn=0,[]}function eo(e){return Wn="",e}function to(e){return jn(Zn(Hn-1,ro(91===e?e+2:40===e?e+1:e)))}function no(e){for(;(Vn=Xn())&&Vn<33;)Gn();return Qn(e)>2||Qn(Vn)>3?"":" "}function oo(e,t){for(;--t&&Gn()&&!(Vn<48||Vn>102||Vn>57&&Vn<65||Vn>70&&Vn<97););return Zn(e,Yn()+(t<6&&32==Xn()&&32==Gn()))}function ro(e){for(;Gn();)switch(Vn){case e:return Hn;case 34:case 39:34!==e&&39!==e&&ro(Vn);break;case 40:41===e&&ro(e);break;case 92:Gn()}return Hn}function io(e,t){for(;Gn()&&e+Vn!==57&&(e+Vn!==84||47!==Xn()););return"/*"+Zn(t,Hn-1)+"*"+$n(47===e?e:Gn())}function ao(e){for(;!Qn(Xn());)Gn();return Zn(e,Hn)}function so(e){return eo(lo("",null,null,null,[""],e=Jn(e),0,[0],e))}function lo(e,t,n,o,r,i,a,s,l){for(var c=0,u=0,d=a,f=0,p=0,h=0,m=1,g=1,v=1,b=0,y="",x=r,w=i,C=o,S=y;g;)switch(h=b,b=Gn()){case 40:if(108!=h&&58==In(S,d-1)){-1!=Pn(S+=Mn(to(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:S+=to(b);break;case 9:case 10:case 13:case 32:S+=no(h);break;case 92:S+=oo(Yn()-1,7);continue;case 47:switch(Xn()){case 42:case 47:An(uo(io(Gn(),Yn()),t,n),l);break;default:S+="/"}break;case 123*m:s[c++]=Tn(S)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==v&&(S=Mn(S,/\f/g,"")),p>0&&Tn(S)-d&&An(p>32?fo(S+";",o,n,d-1):fo(Mn(S," ","")+";",o,n,d-2),l);break;case 59:S+=";";default:if(An(C=co(S,t,n,c,u,r,s,y,x=[],w=[],d),i),123===b)if(0===u)lo(S,t,C,C,x,i,d,s,w);else switch(99===f&&110===In(S,3)?100:f){case 100:case 108:case 109:case 115:lo(e,C,C,o&&An(co(e,C,C,0,0,r,s,y,r,x=[],d),w),r,w,d,s,o?x:w);break;default:lo(S,C,C,C,[""],w,0,s,w)}}c=u=p=0,m=v=1,y=S="",d=a;break;case 58:d=1+Tn(S),p=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==Un())continue;switch(S+=$n(b),b*m){case 38:v=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(Tn(S)-1)*v,v=1;break;case 64:45===Xn()&&(S+=to(Gn())),f=Xn(),u=d=Tn(y=S+=ao(Yn())),b++;break;case 45:45===h&&2==Tn(S)&&(m=0)}}return i}function co(e,t,n,o,r,i,a,s,l,c,u){for(var d=r-1,f=0===r?i:[""],p=Rn(f),h=0,m=0,g=0;h<o;++h)for(var v=0,b=Nn(e,d+1,d=kn(m=a[h])),y=e;v<p;++v)(y=jn(m>0?f[v]+" "+b:Mn(b,/&\f/g,f[v])))&&(l[g++]=y);return Kn(e,t,n,0===r?xn:s,l,c,u)}function uo(e,t,n){return Kn(e,t,n,yn,$n(Vn),Nn(e,2,-2),0)}function fo(e,t,n,o){return Kn(e,t,n,wn,Nn(e,0,o),Nn(e,o+1,-1),o)}var po,ho="data-ant-cssinjs-cache-path",mo="_FILE_STYLE__",go=!0;var vo="_multi_value_";function bo(e){return Dn(so(e),Bn).replace(/\{%%%\:[^;];}/g,";")}var yo=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},r=o.root,i=o.injectHash,a=o.parentSelectors,s=n.hashId,l=n.layer,c=(n.path,n.hashPriority),u=n.transformers,d=void 0===u?[]:u,f=(n.linters,""),p={};function h(t){var o=t.getName(s);if(!p[o]){var r=Ge(e(t.style,n,{root:!1,parentSelectors:a}),1)[0];p[o]="@keyframes ".concat(t.getName(s)).concat(r)}}var m=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((function(t){Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(t)?t:[t]);if(m.forEach((function(t){var o="string"!=typeof t||r?t:{};if("string"==typeof o)f+="".concat(o,"\n");else if(o._keyframe)h(o);else{var l=d.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),o);Object.keys(l).forEach((function(t){var o=l[t];if("object"!==ye(o)||!o||"animationName"===t&&o._keyframe||function(e){return"object"===ye(e)&&e&&("_skip_check_"in e||vo in e)}(o)){var u;function w(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),o=t;mn[e]||"number"!=typeof o||0===o||(o="".concat(o,"px")),"animationName"===e&&null!=t&&t._keyframe&&(h(t),o=t.getName(s)),f+="".concat(n,":").concat(o,";")}var d=null!==(u=null==o?void 0:o.value)&&void 0!==u?u:o;"object"===ye(o)&&null!=o&&o[vo]&&Array.isArray(d)?d.forEach((function(e){w(t,e)})):w(t,d)}else{var m=!1,g=t.trim(),v=!1;(r||i)&&s?g.startsWith("@")?m=!0:g=function(e,t,n){if(!t)return e;var o=".".concat(t),r="low"===n?":where(".concat(o,")"):o;return e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),o=n[0]||"",i=(null===(t=o.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[o="".concat(i).concat(r).concat(o.slice(i.length))].concat(Ye(n.slice(1))).join(" ")})).join(",")}(t,s,c):!r||s||"&"!==g&&""!==g||(g="",v=!0);var b=Ge(e(o,n,{root:v,injectHash:m,parentSelectors:[].concat(Ye(a),[g])}),2),y=b[0],x=b[1];p=$e($e({},p),x),f+="".concat(g).concat(y)}}))}})),r){if(l&&(void 0===Wt&&(Wt=function(e,t,n){if(Qe()){var o,r;ut(e,Ht);var i=document.createElement("div");i.style.position="fixed",i.style.left="0",i.style.top="0",null==t||t(i),document.body.appendChild(i);var a=n?n(i):null===(o=getComputedStyle(i).content)||void 0===o?void 0:o.includes(Vt);return null===(r=i.parentNode)||void 0===r||r.removeChild(i),ct(Ht),a}return!1}("@layer ".concat(Ht," { .").concat(Ht,' { content: "').concat(Vt,'"!important; } }'),(function(e){e.className=Ht}))),Wt)){var g=l.split(","),v=g[g.length-1].trim();f="@layer ".concat(v," {").concat(f,"}"),g.length>1&&(f="@layer ".concat(l,"{%%%:%}").concat(f))}}else f="{".concat(f,"}");return[f,p]};function xo(e,t){return Ze("".concat(e.join("%")).concat(t))}function wo(){return null}var Co="style";function So(e,t){var n=e.token,o=e.path,r=e.hashId,i=e.layer,a=e.nonce,s=e.clientOnly,l=e.order,c=void 0===l?0:l,u=p.useContext(Pt),d=u.autoClear,f=(u.mock,u.defaultCache),h=u.hashPriority,m=u.container,g=u.ssrInline,v=u.transformers,b=u.linters,y=u.cache,x=n._tokenKey,w=[x].concat(Ye(o)),C=Kt,S=an(Co,w,(function(){var e=w.join("|");if(function(e){return function(){if(!po&&(po={},Qe())){var e=document.createElement("div");e.className=ho,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(/"$/,"")).split(";").forEach((function(e){var t=Ge(e.split(":"),2),n=t[0],o=t[1];po[n]=o}));var n,o=document.querySelector("style[".concat(ho,"]"));o&&(go=!1,null===(n=o.parentNode)||void 0===n||n.removeChild(o)),document.body.removeChild(e)}}(),!!po[e]}(e)){var n=function(e){var t=po[e],n=null;if(t&&Qe())if(go)n=mo;else{var o=document.querySelector("style[".concat(Ot,'="').concat(po[e],'"]'));o?n=o.innerHTML:delete po[e]}return[n,t]}(e),a=Ge(n,2),l=a[0],u=a[1];if(l)return[l,x,u,{},s,c]}var d=t(),f=Ge(yo(d,{hashId:r,hashPriority:h,layer:i,path:o.join("-"),transformers:v,linters:b}),2),p=f[0],m=f[1],g=bo(p),y=xo(w,g);return[g,x,y,m,s,c]}),(function(e,t){var n=Ge(e,3)[2];(t||d)&&Kt&&ct(n,{mark:Ot})}),(function(e){var t=Ge(e,4),n=t[0],o=(t[1],t[2]),r=t[3];if(C&&n!==mo){var i={mark:Ot,prepend:"queue",attachTo:m,priority:c},s="function"==typeof a?a():a;s&&(i.csp={nonce:s});var l=ut(n,o,i);l[jt]=y.instanceId,l.setAttribute(_t,x),Object.keys(r).forEach((function(e){ut(bo(r[e]),"_effect-".concat(e),i)}))}})),E=Ge(S,3),k=E[0],$=E[1],_=E[2];return function(e){var t,n;return t=g&&!C&&f?p.createElement("style",hn({},(Ee(n={},_t,$),Ee(n,Ot,_),n),{dangerouslySetInnerHTML:{__html:k}})):p.createElement(wo,null),p.createElement(p.Fragment,null,t,e)}}var Eo="cssVar";var ko;Ee(ko={},Co,(function(e,t,n){var o=Ge(e,6),r=o[0],i=o[1],a=o[2],s=o[3],l=o[4],c=o[5],u=(n||{}).plain;if(l)return null;var d=r,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)};return d=Ut(r,i,a,f,u),s&&Object.keys(s).forEach((function(e){if(!t[e]){t[e]=!0;var n=bo(s[e]);d+=Ut(n,i,"_effect-".concat(e),f,u)}})),[c,a,d]})),Ee(ko,fn,(function(e,t,n){var o=Ge(e,5),r=o[2],i=o[3],a=o[4],s=(n||{}).plain;if(!i)return null;var l=r._tokenKey;return[-999,l,Ut(i,a,l,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]})),Ee(ko,Eo,(function(e,t,n){var o=Ge(e,4),r=o[1],i=o[2],a=o[3],s=(n||{}).plain;return r?[-999,i,Ut(r,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]:null}));var $o=function(){function e(t,n){xt(this,e),Ee(this,"name",void 0),Ee(this,"style",void 0),Ee(this,"_keyframe",!0),this.name=t,this.style=n}return Ct(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();const _o=$o;function Oo(e){return e.notSplit=!0,e}Oo(["borderTop","borderBottom"]),Oo(["borderTop"]),Oo(["borderBottom"]),Oo(["borderLeft","borderRight"]),Oo(["borderLeft"]),Oo(["borderRight"]);const jo=(0,p.createContext)({});function Mo(e){return We(e)||Xe(e)||qe(e)||Ue()}function Po(e,t){for(var n=e,o=0;o<t.length;o+=1){if(null==n)return;n=n[t[o]]}return n}function Io(e,t,n,o){if(!t.length)return n;var r,i=Mo(t),a=i[0],s=i.slice(1);return r=e||"number"!=typeof a?Array.isArray(e)?Ye(e):$e({},e):[],o&&void 0===n&&1===s.length?delete r[a][s[0]]:r[a]=Io(r[a],s,n,o),r}function No(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&o&&void 0===n&&!Po(e,t.slice(0,-1))?e:Io(e,t,n,o)}function To(e){return Array.isArray(e)?[]:{}}var Ro="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function Ao(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=To(t[0]);return t.forEach((function(e){!function t(n,r){var i,a=new Set(r),s=Po(e,n),l=Array.isArray(s);if(l||"object"===ye(i=s)&&null!==i&&Object.getPrototypeOf(i)===Object.prototype){if(!a.has(s)){a.add(s);var c=Po(o,n);l?o=No(o,n,[]):c&&"object"===ye(c)||(o=No(o,n,To(s))),Ro(s).forEach((function(e){t([].concat(Ye(n),[e]),a)}))}}else o=No(o,n,s)}([])})),o}function Do(){}const Bo=p.createContext({}),Lo=()=>{const e=()=>{};return e.deprecated=Do,e},zo=(0,p.createContext)(void 0),Fo={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"},Ho={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Vo={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,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"}),timePickerLocale:Object.assign({},Ho)},Wo="${label} is not a valid ${type}",Ko={locale:"en",Pagination:Fo,DatePicker:Vo,TimePicker:Ho,Calendar:Vo,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",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"},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:Wo,method:Wo,array:Wo,object:Wo,number:Wo,date:Wo,boolean:Wo,integer:Wo,float:Wo,regexp:Wo,email:Wo,url:Wo,hex:Wo},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty"}};let qo=Object.assign({},Ko.Modal),Uo=[];const Go=()=>Uo.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),Ko.Modal);function Xo(){return qo}const Yo=(0,p.createContext)(void 0),Zo=e=>{const{locale:t={},children:n,_ANT_MARK__:o}=e;p.useEffect((()=>{const e=function(e){if(e){const t=Object.assign({},e);return Uo.push(t),qo=Go(),()=>{Uo=Uo.filter((e=>e!==t)),qo=Go()}}qo=Object.assign({},Ko.Modal)}(t&&t.Modal);return e}),[t]);const r=p.useMemo((()=>Object.assign(Object.assign({},t),{exist:!0})),[t]);return p.createElement(Yo.Provider,{value:r},n)};function Qo(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function Jo(e){return Math.min(1,Math.max(0,e))}function er(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function tr(e){return e<=1?"".concat(100*Number(e),"%"):e}function nr(e){return 1===e.length?"0"+e:String(e)}function or(e,t,n){e=Qo(e,255),t=Qo(t,255),n=Qo(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),i=0,a=0,s=(o+r)/2;if(o===r)a=0,i=0;else{var l=o-r;switch(a=s>.5?l/(2-o-r):l/(o+r),o){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4}i/=6}return{h:i,s:a,l:s}}function rr(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ir(e,t,n){e=Qo(e,255),t=Qo(t,255),n=Qo(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),i=0,a=o,s=o-r,l=0===o?0:s/o;if(o===r)i=0;else{switch(o){case e:i=(t-n)/s+(t<n?6:0);break;case t:i=(n-e)/s+2;break;case n:i=(e-t)/s+4}i/=6}return{h:i,s:l,v:a}}function ar(e,t,n,o){var r=[nr(Math.round(e).toString(16)),nr(Math.round(t).toString(16)),nr(Math.round(n).toString(16))];return o&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function sr(e){return lr(e)/255}function lr(e){return parseInt(e,16)}var cr={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function ur(e){var t,n,o,r={r:0,g:0,b:0},i=1,a=null,s=null,l=null,c=!1,u=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(cr[e])e=cr[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=hr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=hr.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=hr.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=hr.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=hr.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=hr.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=hr.hex8.exec(e))?{r:lr(n[1]),g:lr(n[2]),b:lr(n[3]),a:sr(n[4]),format:t?"name":"hex8"}:(n=hr.hex6.exec(e))?{r:lr(n[1]),g:lr(n[2]),b:lr(n[3]),format:t?"name":"hex"}:(n=hr.hex4.exec(e))?{r:lr(n[1]+n[1]),g:lr(n[2]+n[2]),b:lr(n[3]+n[3]),a:sr(n[4]+n[4]),format:t?"name":"hex8"}:!!(n=hr.hex3.exec(e))&&{r:lr(n[1]+n[1]),g:lr(n[2]+n[2]),b:lr(n[3]+n[3]),format:t?"name":"hex"}}(e)),"object"==typeof e&&(mr(e.r)&&mr(e.g)&&mr(e.b)?(t=e.r,n=e.g,o=e.b,r={r:255*Qo(t,255),g:255*Qo(n,255),b:255*Qo(o,255)},c=!0,u="%"===String(e.r).substr(-1)?"prgb":"rgb"):mr(e.h)&&mr(e.s)&&mr(e.v)?(a=tr(e.s),s=tr(e.v),r=function(e,t,n){e=6*Qo(e,360),t=Qo(t,100),n=Qo(n,100);var o=Math.floor(e),r=e-o,i=n*(1-t),a=n*(1-r*t),s=n*(1-(1-r)*t),l=o%6;return{r:255*[n,a,i,i,s,n][l],g:255*[s,n,n,a,i,i][l],b:255*[i,i,s,n,n,a][l]}}(e.h,a,s),c=!0,u="hsv"):mr(e.h)&&mr(e.s)&&mr(e.l)&&(a=tr(e.s),l=tr(e.l),r=function(e,t,n){var o,r,i;if(e=Qo(e,360),t=Qo(t,100),n=Qo(n,100),0===t)r=n,i=n,o=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;o=rr(s,a,e+1/3),r=rr(s,a,e),i=rr(s,a,e-1/3)}return{r:255*o,g:255*r,b:255*i}}(e.h,a,l),c=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(i=e.a)),i=er(i),{ok:c,format:e.format||u,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:i}}var dr="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),fr="[\\s|\\(]+(".concat(dr,")[,|\\s]+(").concat(dr,")[,|\\s]+(").concat(dr,")\\s*\\)?"),pr="[\\s|\\(]+(".concat(dr,")[,|\\s]+(").concat(dr,")[,|\\s]+(").concat(dr,")[,|\\s]+(").concat(dr,")\\s*\\)?"),hr={CSS_UNIT:new RegExp(dr),rgb:new RegExp("rgb"+fr),rgba:new RegExp("rgba"+pr),hsl:new RegExp("hsl"+fr),hsla:new RegExp("hsla"+pr),hsv:new RegExp("hsv"+fr),hsva:new RegExp("hsva"+pr),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function mr(e){return Boolean(hr.CSS_UNIT.exec(String(e)))}var gr=2,vr=.16,br=.05,yr=.05,xr=.15,wr=5,Cr=4,Sr=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function Er(e){var t=ir(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function kr(e){var t=e.r,n=e.g,o=e.b;return"#".concat(ar(t,n,o,!1))}function $r(e,t,n){var o;return(o=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-gr*t:Math.round(e.h)+gr*t:n?Math.round(e.h)+gr*t:Math.round(e.h)-gr*t)<0?o+=360:o>=360&&(o-=360),o}function _r(e,t,n){return 0===e.h&&0===e.s?e.s:((o=n?e.s-vr*t:t===Cr?e.s+vr:e.s+br*t)>1&&(o=1),n&&t===wr&&o>.1&&(o=.1),o<.06&&(o=.06),Number(o.toFixed(2)));var o}function Or(e,t,n){var o;return(o=n?e.v+yr*t:e.v-xr*t)>1&&(o=1),Number(o.toFixed(2))}function jr(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],o=ur(e),r=wr;r>0;r-=1){var i=Er(o),a=kr(ur({h:$r(i,r,!0),s:_r(i,r,!0),v:Or(i,r,!0)}));n.push(a)}n.push(kr(o));for(var s=1;s<=Cr;s+=1){var l=Er(o),c=kr(ur({h:$r(l,s),s:_r(l,s),v:Or(l,s)}));n.push(c)}return"dark"===t.theme?Sr.map((function(e){var o,r,i,a=e.index,s=e.opacity;return kr((o=ur(t.backgroundColor||"#141414"),i=100*s/100,{r:((r=ur(n[a])).r-o.r)*i+o.r,g:(r.g-o.g)*i+o.g,b:(r.b-o.b)*i+o.b}))})):n}var Mr={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"},Pr={},Ir={};Object.keys(Mr).forEach((function(e){Pr[e]=jr(Mr[e]),Pr[e].primary=Pr[e][5],Ir[e]=jr(Mr[e],{theme:"dark",backgroundColor:"#141414"}),Ir[e].primary=Ir[e][5]})),Pr.red,Pr.volcano;var Nr=Pr.gold,Tr=(Pr.orange,Pr.yellow,Pr.lime,Pr.green,Pr.cyan,Pr.blue);Pr.geekblue,Pr.purple,Pr.magenta,Pr.grey,Pr.grey;const Rr={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"},Ar=Object.assign(Object.assign({},Rr),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'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});var Dr=function(){function e(t,n){var o;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var r=ur(t);this.originalInput=t,this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(o=n.format)&&void 0!==o?o:r.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=r.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,o=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=er(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=ir(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=ir(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=or(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=or(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),ar(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,o,r){var i,a=[nr(Math.round(e).toString(16)),nr(Math.round(t).toString(16)),nr(Math.round(n).toString(16)),nr((i=o,Math.round(255*parseFloat(i)).toString(16)))];return r&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*Qo(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*Qo(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+ar(this.r,this.g,this.b,!1),t=0,n=Object.entries(cr);t<n.length;t++){var o=n[t],r=o[0];if(e===o[1])return r}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!=e?e:this.format;var n=!1,o=this.a<1&&this.a>=0;return t||!o||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Jo(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Jo(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Jo(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Jo(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),o=(n.h+t)%360;return n.h=o<0?360+o:o,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var o=this.toRgb(),r=new e(t).toRgb(),i=n/100;return new e({r:(r.r-o.r)*i+o.r,g:(r.g-o.g)*i+o.g,b:(r.b-o.b)*i+o.b,a:(r.a-o.a)*i+o.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var o=this.toHsl(),r=360/n,i=[this];for(o.h=(o.h-(r*t>>1)+720)%360;--t;)o.h=(o.h+r)%360,i.push(new e(o));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),o=n.h,r=n.s,i=n.v,a=[],s=1/t;t--;)a.push(new e({h:o,s:r,v:i})),i=(i+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),o=new e(t).toRgb(),r=n.a+o.a*(1-n.a);return new e({r:(n.r*n.a+o.r*o.a*(1-n.a))/r,g:(n.g*n.a+o.g*o.a*(1-n.a))/r,b:(n.b*n.a+o.b*o.a*(1-n.a))/r,a:r})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),o=n.h,r=[this],i=360/t,a=1;a<t;a++)r.push(new e({h:(o+a*i)%360,s:n.s,l:n.l}));return r},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();const Br=(e,t)=>new Dr(e).setAlpha(t).toRgbString(),Lr=(e,t)=>new Dr(e).darken(t).toHexString(),zr=e=>{const t=jr(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]}},Fr=(e,t)=>{const n=e||"#fff",o=t||"#000";return{colorBgBase:n,colorTextBase:o,colorText:Br(o,.88),colorTextSecondary:Br(o,.65),colorTextTertiary:Br(o,.45),colorTextQuaternary:Br(o,.25),colorFill:Br(o,.15),colorFillSecondary:Br(o,.06),colorFillTertiary:Br(o,.04),colorFillQuaternary:Br(o,.02),colorBgLayout:Lr(n,4),colorBgContainer:Lr(n,0),colorBgElevated:Lr(n,0),colorBgSpotlight:Br(o,.85),colorBgBlur:"transparent",colorBorder:Lr(n,15),colorBorderSecondary:Lr(n,6)}};function Hr(e){return(e+8)/e}const Vr=At((function(e){const t=Object.keys(Rr).map((t=>{const n=jr(e[t]);return new Array(10).fill(1).reduce(((e,o,r)=>(e[`${t}-${r+1}`]=n[r],e[`${t}${r+1}`]=n[r],e)),{})})).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:o}=t;const{colorSuccess:r,colorWarning:i,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,d=n(l),f=n(r),p=n(i),h=n(a),m=n(s),g=o(c,u),v=n(e.colorLink||e.colorInfo);return Object.assign(Object.assign({},g),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg: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:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:v[4],colorLink:v[6],colorLinkActive:v[7],colorBgMask:new Dr("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:zr,generateNeutralColorPalettes:Fr})),(e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const o=n-1,r=e*Math.pow(2.71828,o/5),i=n>1?Math.floor(r):Math.ceil(r);return 2*Math.floor(i/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:Hr(e)})))}(e),n=t.map((e=>e.size)),o=t.map((e=>e.lineHeight)),r=n[1],i=n[0],a=n[2],s=o[1],l=o[0],c=o[2];return{fontSizeSM:i,fontSize:r,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*r),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*i),lineHeightHeading1:o[6],lineHeightHeading2:o[5],lineHeightHeading3:o[4],lineHeightHeading4:o[3],lineHeightHeading5:o[2]}})(e.fontSize)),function(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)}}(e)),(e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}})(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:o,lineWidth:r}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:r+1},(e=>{let t=e,n=e,o=e,r=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?o=1:e>=6&&(o=2),e>4&&e<8?r=4:e>=8&&(r=6),{borderRadius:e,borderRadiusXS:o,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:r}})(o))}(e))})),Wr={token:Ar,override:{override:Ar},hashed:!0},Kr=h().createContext(Wr),qr=`-ant-${Date.now()}-${Math.random()}`;const Ur=p.createContext(!1),Gr=e=>{let{children:t,disabled:n}=e;const o=p.useContext(Ur);return p.createElement(Ur.Provider,{value:null!=n?n:o},t)},Xr=Ur,Yr=p.createContext(void 0),Zr=e=>{let{children:t,size:n}=e;const o=p.useContext(Yr);return p.createElement(Yr.Provider,{value:n||o},t)},Qr=Yr,Jr=Object.assign({},p),{useId:ei}=Jr,ti=void 0===ei?()=>"":ei;var ni=n(942),oi=n.n(ni);function ri(e){return e instanceof HTMLElement||e instanceof SVGElement}function ii(e){return ri(e)?e:e instanceof h().Component?he().findDOMNode(e):null}var ai=n(363);function si(e,t){"function"==typeof e?e(t):"object"===ye(e)&&e&&"current"in e&&(e.current=t)}function li(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t.filter((function(e){return e}));return o.length<=1?o[0]:function(e){t.forEach((function(t){si(t,e)}))}}function ci(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return dt((function(){return li.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))}function ui(e){var t,n,o=(0,ai.isMemo)(e)?e.type.type:e.type;return!!("function"!=typeof o||null!==(t=o.prototype)&&void 0!==t&&t.render||o.$$typeof===ai.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===ai.ForwardRef)}function di(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.includes(o))continue;n[o]=e[o]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var fi=["children"],pi=p.createContext({});function hi(e){var t=e.children,n=di(e,fi);return p.createElement(pi.Provider,{value:n},t)}function mi(e,t){return mi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},mi(e,t)}function gi(e,t){if("function"!=typeof t&&null!==t)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&&mi(e,t)}function vi(e){return vi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},vi(e)}function bi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(bi=function(){return!!e})()}function yi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xi(e,t){if(t&&("object"==ye(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return yi(e)}function wi(e){var t=bi();return function(){var n,o=vi(e);if(t){var r=vi(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return xi(this,n)}}const Ci=function(e){gi(n,e);var t=wi(n);function n(){return xt(this,n),t.apply(this,arguments)}return Ct(n,[{key:"render",value:function(){return this.props.children}}]),n}(p.Component);function Si(e){var t=p.useRef(!1),n=Ge(p.useState(e),2),o=n[0],r=n[1];return p.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[o,function(e,n){n&&t.current||r(e)}]}var Ei="none",ki="appear",$i="enter",_i="leave",Oi="none",ji="prepare",Mi="start",Pi="active",Ii="end",Ni="prepared";function Ti(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}var Ri,Ai,Di,Bi=(Ri=Qe(),Ai="undefined"!=typeof window?window:{},Di={animationend:Ti("Animation","AnimationEnd"),transitionend:Ti("Transition","TransitionEnd")},Ri&&("AnimationEvent"in Ai||delete Di.animationend.animation,"TransitionEvent"in Ai||delete Di.transitionend.transition),Di),Li={};if(Qe()){var zi=document.createElement("div");Li=zi.style}var Fi={};function Hi(e){if(Fi[e])return Fi[e];var t=Bi[e];if(t)for(var n=Object.keys(t),o=n.length,r=0;r<o;r+=1){var i=n[r];if(Object.prototype.hasOwnProperty.call(t,i)&&i in Li)return Fi[e]=t[i],Fi[e]}return""}var Vi=Hi("animationend"),Wi=Hi("transitionend"),Ki=!(!Vi||!Wi),qi=Vi||"animationend",Ui=Wi||"transitionend";function Gi(e,t){return e?"object"===ye(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}const Xi=Qe()?p.useLayoutEffect:p.useEffect;var Yi=function(e){return+setTimeout(e,16)},Zi=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(Yi=function(e){return window.requestAnimationFrame(e)},Zi=function(e){return window.cancelAnimationFrame(e)});var Qi=0,Ji=new Map;function ea(e){Ji.delete(e)}var ta=function(e){var t=Qi+=1;return function n(o){if(0===o)ea(t),e();else{var r=Yi((function(){n(o-1)}));Ji.set(t,r)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};ta.cancel=function(e){var t=Ji.get(e);return ea(e),Zi(t)};const na=ta;var oa=[ji,Mi,Pi,Ii],ra=[ji,Ni];function ia(e){return e===Pi||e===Ii}const aa=function(e){var t=e;"object"===ye(e)&&(t=e.transitionSupport);var n=p.forwardRef((function(e,n){var o=e.visible,r=void 0===o||o,i=e.removeOnLeave,a=void 0===i||i,s=e.forceRender,l=e.children,c=e.motionName,u=e.leavedClassName,d=e.eventProps,f=function(e,n){return!(!e.motionName||!t||!1===n)}(e,p.useContext(pi).motion),h=(0,p.useRef)(),m=(0,p.useRef)(),g=function(e,t,n,o){var r=o.motionEnter,i=void 0===r||r,a=o.motionAppear,s=void 0===a||a,l=o.motionLeave,c=void 0===l||l,u=o.motionDeadline,d=o.motionLeaveImmediately,f=o.onAppearPrepare,h=o.onEnterPrepare,m=o.onLeavePrepare,g=o.onAppearStart,v=o.onEnterStart,b=o.onLeaveStart,y=o.onAppearActive,x=o.onEnterActive,w=o.onLeaveActive,C=o.onAppearEnd,S=o.onEnterEnd,E=o.onLeaveEnd,k=o.onVisibleChanged,$=Ge(Si(),2),_=$[0],O=$[1],j=Ge(Si(Ei),2),M=j[0],P=j[1],I=Ge(Si(null),2),N=I[0],T=I[1],R=(0,p.useRef)(!1),A=(0,p.useRef)(null);function D(){return n()}var B=(0,p.useRef)(!1);function L(){P(Ei,!0),T(null,!0)}function z(e){var t=D();if(!e||e.deadline||e.target===t){var n,o=B.current;M===ki&&o?n=null==C?void 0:C(t,e):M===$i&&o?n=null==S?void 0:S(t,e):M===_i&&o&&(n=null==E?void 0:E(t,e)),M!==Ei&&o&&!1!==n&&L()}}var F=Ge(function(e){var t=(0,p.useRef)(),n=(0,p.useRef)(e);n.current=e;var o=p.useCallback((function(e){n.current(e)}),[]);function r(e){e&&(e.removeEventListener(Ui,o),e.removeEventListener(qi,o))}return p.useEffect((function(){return function(){r(t.current)}}),[]),[function(e){t.current&&t.current!==e&&r(t.current),e&&e!==t.current&&(e.addEventListener(Ui,o),e.addEventListener(qi,o),t.current=e)},r]}(z),1)[0],H=function(e){var t,n,o;switch(e){case ki:return Ee(t={},ji,f),Ee(t,Mi,g),Ee(t,Pi,y),t;case $i:return Ee(n={},ji,h),Ee(n,Mi,v),Ee(n,Pi,x),n;case _i:return Ee(o={},ji,m),Ee(o,Mi,b),Ee(o,Pi,w),o;default:return{}}},V=p.useMemo((function(){return H(M)}),[M]),W=Ge(function(e,t,n){var o=Ge(Si(Oi),2),r=o[0],i=o[1],a=function(){var e=p.useRef(null);function t(){na.cancel(e.current)}return p.useEffect((function(){return function(){t()}}),[]),[function n(o){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=na((function(){r<=1?o({isCanceled:function(){return i!==e.current}}):n(o,r-1)}));e.current=i},t]}(),s=Ge(a,2),l=s[0],c=s[1],u=t?ra:oa;return Xi((function(){if(r!==Oi&&r!==Ii){var e=u.indexOf(r),t=u[e+1],o=n(r);!1===o?i(t,!0):t&&l((function(e){function n(){e.isCanceled()||i(t,!0)}!0===o?n():Promise.resolve(o).then(n)}))}}),[e,r]),p.useEffect((function(){return function(){c()}}),[]),[function(){i(ji,!0)},r]}(M,!e,(function(e){if(e===ji){var t=V[ji];return!!t&&t(D())}var n;return q in V&&T((null===(n=V[q])||void 0===n?void 0:n.call(V,D(),null))||null),q===Pi&&(F(D()),u>0&&(clearTimeout(A.current),A.current=setTimeout((function(){z({deadline:!0})}),u))),q===Ni&&L(),true})),2),K=W[0],q=W[1],U=ia(q);B.current=U,Xi((function(){O(t);var n,o=R.current;R.current=!0,!o&&t&&s&&(n=ki),o&&t&&i&&(n=$i),(o&&!t&&c||!o&&d&&!t&&c)&&(n=_i);var r=H(n);n&&(e||r[ji])?(P(n),K()):P(Ei)}),[t]),(0,p.useEffect)((function(){(M===ki&&!s||M===$i&&!i||M===_i&&!c)&&P(Ei)}),[s,i,c]),(0,p.useEffect)((function(){return function(){R.current=!1,clearTimeout(A.current)}}),[]);var G=p.useRef(!1);(0,p.useEffect)((function(){_&&(G.current=!0),void 0!==_&&M===Ei&&((G.current||_)&&(null==k||k(_)),G.current=!0)}),[_,M]);var X=N;return V[ji]&&q===Mi&&(X=$e({transition:"none"},X)),[M,q,X,null!=_?_:t]}(f,r,(function(){try{return h.current instanceof HTMLElement?h.current:ii(m.current)}catch(e){return null}}),e),v=Ge(g,4),b=v[0],y=v[1],x=v[2],w=v[3],C=p.useRef(w);w&&(C.current=!0);var S,E=p.useCallback((function(e){h.current=e,si(n,e)}),[n]),k=$e($e({},d),{},{visible:r});if(l)if(b===Ei)S=w?l($e({},k),E):!a&&C.current&&u?l($e($e({},k),{},{className:u}),E):s||!a&&!u?l($e($e({},k),{},{style:{display:"none"}}),E):null;else{var $,_;y===ji?_="prepare":ia(y)?_="active":y===Mi&&(_="start");var O=Gi(c,"".concat(b,"-").concat(_));S=l($e($e({},k),{},{className:oi()(Gi(c,b),($={},Ee($,O,O&&_),Ee($,c,"string"==typeof c),$)),style:x}),E)}else S=null;return p.isValidElement(S)&&ui(S)&&(S.ref||(S=p.cloneElement(S,{ref:E}))),p.createElement(Ci,{ref:m},S)}));return n.displayName="CSSMotion",n}(Ki);var sa="add",la="keep",ca="remove",ua="removed";function da(e){var t;return $e($e({},t=e&&"object"===ye(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function fa(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(da)}var pa=["component","children","onVisibleChanged","onAllRemoved"],ha=["status"],ma=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];const ga=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:aa,n=function(e){gi(o,e);var n=wi(o);function o(){var e;xt(this,o);for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return Ee(yi(e=n.call.apply(n,[this].concat(r))),"state",{keyEntities:[]}),Ee(yi(e),"removeKey",(function(t){var n=e.state.keyEntities.map((function(e){return e.key!==t?e:$e($e({},e),{},{status:ua})}));return e.setState({keyEntities:n}),n.filter((function(e){return e.status!==ua})).length})),e}return Ct(o,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,o=this.props,r=o.component,i=o.children,a=o.onVisibleChanged,s=o.onAllRemoved,l=di(o,pa),c=r||p.Fragment,u={};return ma.forEach((function(e){u[e]=l[e],delete l[e]})),delete l.keys,p.createElement(c,l,n.map((function(n,o){var r=n.status,l=di(n,ha),c=r===sa||r===la;return p.createElement(t,hn({},u,{key:l.key,visible:c,eventProps:l,onVisibleChanged:function(t){null==a||a(t,{key:l.key}),t||0===e.removeKey(l.key)&&s&&s()}}),(function(e,t){return i($e($e({},e),{},{index:o}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,o=t.keyEntities,r=fa(n),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],o=0,r=t.length,i=fa(e),a=fa(t);i.forEach((function(e){for(var t=!1,i=o;i<r;i+=1){var s=a[i];if(s.key===e.key){o<i&&(n=n.concat(a.slice(o,i).map((function(e){return $e($e({},e),{},{status:sa})}))),o=i),n.push($e($e({},s),{},{status:la})),o+=1,t=!0;break}}t||n.push($e($e({},e),{},{status:ca}))})),o<r&&(n=n.concat(a.slice(o).map((function(e){return $e($e({},e),{},{status:sa})}))));var s={};return n.forEach((function(e){var t=e.key;s[t]=(s[t]||0)+1})),Object.keys(s).filter((function(e){return s[e]>1})).forEach((function(e){n=n.filter((function(t){var n=t.key,o=t.status;return n!==e||o!==ca})),n.forEach((function(t){t.key===e&&(t.status=la)}))})),n}(o,r);return{keyEntities:i.filter((function(e){var t=o.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==ua||e.status!==ca}))}}}]),o}(p.Component);return Ee(n,"defaultProps",{component:"div"}),n}(Ki),va=aa,ba="5.14.2";function ya(e){return e>=0&&e<=255}const xa=function(e,t){const{r:n,g:o,b:r,a:i}=new Dr(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new Dr(t).toRgb();for(let e=.01;e<=1;e+=.01){const t=Math.round((n-a*(1-e))/e),i=Math.round((o-s*(1-e))/e),c=Math.round((r-l*(1-e))/e);if(ya(t)&&ya(i)&&ya(c))return new Dr({r:t,g:i,b:c,a:Math.round(100*e)/100}).toRgbString()}return new Dr({r:n,g:o,b:r,a:1}).toRgbString()};var wa=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function Ca(e){const{override:t}=e,n=wa(e,["override"]),o=Object.assign({},t);Object.keys(Ar).forEach((e=>{delete o[e]}));const r=Object.assign(Object.assign({},n),o);if(!1===r.motion){const e="0s";r.motionDurationFast=e,r.motionDurationMid=e,r.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},r),{colorFillContent:r.colorFillSecondary,colorFillContentHover:r.colorFill,colorFillAlter:r.colorFillQuaternary,colorBgContainerDisabled:r.colorFillTertiary,colorBorderBg:r.colorBgContainer,colorSplit:xa(r.colorBorderSecondary,r.colorBgContainer),colorTextPlaceholder:r.colorTextQuaternary,colorTextDisabled:r.colorTextQuaternary,colorTextHeading:r.colorText,colorTextLabel:r.colorTextSecondary,colorTextDescription:r.colorTextTertiary,colorTextLightSolid:r.colorWhite,colorHighlight:r.colorError,colorBgTextHover:r.colorFillSecondary,colorBgTextActive:r.colorFill,colorIcon:r.colorTextTertiary,colorIconHover:r.colorText,colorErrorOutline:xa(r.colorErrorBg,r.colorBgContainer),colorWarningOutline:xa(r.colorWarningBg,r.colorBgContainer),fontSizeIcon:r.fontSizeSM,lineWidthFocus:4*r.lineWidth,lineWidth:r.lineWidth,controlOutlineWidth:2*r.lineWidth,controlInteractiveSize:r.controlHeight/2,controlItemBgHover:r.colorFillTertiary,controlItemBgActive:r.colorPrimaryBg,controlItemBgActiveHover:r.colorPrimaryBgHover,controlItemBgActiveDisabled:r.colorFill,controlTmpOutline:r.colorFillQuaternary,controlOutline:xa(r.colorPrimaryBg,r.colorBgContainer),lineType:r.lineType,borderRadius:r.borderRadius,borderRadiusXS:r.borderRadiusXS,borderRadiusSM:r.borderRadiusSM,borderRadiusLG:r.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:r.sizeXXS,paddingXS:r.sizeXS,paddingSM:r.sizeSM,padding:r.size,paddingMD:r.sizeMD,paddingLG:r.sizeLG,paddingXL:r.sizeXL,paddingContentHorizontalLG:r.sizeLG,paddingContentVerticalLG:r.sizeMS,paddingContentHorizontal:r.sizeMS,paddingContentVertical:r.sizeSM,paddingContentHorizontalSM:r.size,paddingContentVerticalSM:r.sizeXS,marginXXS:r.sizeXXS,marginXS:r.sizeXS,marginSM:r.sizeSM,margin:r.size,marginMD:r.sizeMD,marginLG:r.sizeLG,marginXL:r.sizeXL,marginXXL:r.sizeXXL,boxShadow:"\n      0 6px 16px 0 rgba(0, 0, 0, 0.08),\n      0 3px 6px -4px rgba(0, 0, 0, 0.12),\n      0 9px 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowSecondary:"\n      0 6px 16px 0 rgba(0, 0, 0, 0.08),\n      0 3px 6px -4px rgba(0, 0, 0, 0.12),\n      0 9px 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowTertiary:"\n      0 1px 2px 0 rgba(0, 0, 0, 0.03),\n      0 1px 6px -1px rgba(0, 0, 0, 0.02),\n      0 2px 4px 0 rgba(0, 0, 0, 0.02)\n    ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:1200,screenXLMin:1200,screenXLMax:1599,screenXXL:1600,screenXXLMin:1600,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n      0 1px 2px -2px ${new Dr("rgba(0, 0, 0, 0.16)").toRgbString()},\n      0 3px 6px 0 ${new Dr("rgba(0, 0, 0, 0.12)").toRgbString()},\n      0 5px 12px 4px ${new Dr("rgba(0, 0, 0, 0.09)").toRgbString()}\n    `,boxShadowDrawerRight:"\n      -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n      -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n      -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowDrawerLeft:"\n      6px 0 16px 0 rgba(0, 0, 0, 0.08),\n      3px 0 6px -4px rgba(0, 0, 0, 0.12),\n      9px 0 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowDrawerUp:"\n      0 6px 16px 0 rgba(0, 0, 0, 0.08),\n      0 3px 6px -4px rgba(0, 0, 0, 0.12),\n      0 9px 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowDrawerDown:"\n      0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n      0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n      0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n    ",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)"}),o)}var Sa=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Ea={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0},ka={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},$a={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},_a=(e,t,n)=>{const o=n.getDerivativeToken(e),{override:r}=t,i=Sa(t,["override"]);let a=Object.assign(Object.assign({},o),{override:r});return a=Ca(a),i&&Object.entries(i).forEach((e=>{let[t,n]=e;const{theme:o}=n,r=Sa(n,["theme"]);let i=r;o&&(i=_a(Object.assign(Object.assign({},a),r),{override:r},o)),a[t]=i})),a};function Oa(){const{token:e,hashed:t,theme:n,override:o,cssVar:r}=h().useContext(Kr),i=`${ba}-${t||""}`,a=n||Vr,[s,l,c]=pn(a,[Ar,e],{salt:i,override:o,getComputedToken:_a,formatToken:Ca,cssVar:r&&{prefix:r.prefix,key:r.key,unitless:Ea,ignore:ka,preserve:$a}});return[a,c,t?l:"",s,r]}function ja(e){const{children:t}=e,[,n]=Oa(),{motion:o}=n,r=p.useRef(!1);return r.current=r.current||!1===o,r.current?p.createElement(hi,{motion:o},t):t}const Ma=()=>null,Pa={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Ia=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},Na=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,\n  &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),Ta=(e,t,n)=>{const{fontFamily:o,fontSize:r}=e,i=`[class^="${t}"], [class*=" ${t}"]`;return{[n?`.${n}`:i]:{fontFamily:o,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[i]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},Ra=e=>({outline:`${qt(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Aa=e=>({"&:focus-visible":Object.assign({},Ra(e))}),Da=(e,t)=>{const[n,o]=Oa();return So({theme:n,token:o,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce},(()=>[{[`.${e}`]:Object.assign(Object.assign({},{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"}}),{[`.${e} .${e}-icon`]:{display:"block"}})}]))};const Ba=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let La,za,Fa,Ha;function Va(){return La||"ant"}function Wa(){return za||Fe}const Ka=()=>({getPrefixCls:(e,t)=>t||(e?`${Va()}-${e}`:Va()),getIconPrefixCls:Wa,getRootPrefixCls:()=>La||Va(),getTheme:()=>Fa,holderRender:Ha}),qa=e=>{const{children:t,csp:n,autoInsertSpaceInButton:o,alert:r,anchor:i,form:a,locale:s,componentSize:l,direction:c,space:u,virtual:d,dropdownMatchSelectWidth:f,popupMatchSelectWidth:h,popupOverflow:m,legacyLocale:g,parentContext:v,iconPrefixCls:b,theme:y,componentDisabled:x,segmented:w,statistic:C,spin:S,calendar:E,carousel:k,cascader:$,collapse:_,typography:O,checkbox:j,descriptions:M,divider:P,drawer:I,skeleton:N,steps:T,image:R,layout:A,list:D,mentions:B,modal:L,progress:z,result:F,slider:H,breadcrumb:V,menu:W,pagination:K,input:q,empty:U,badge:G,radio:X,rate:Y,switch:Z,transfer:Q,avatar:J,message:ee,tag:te,table:ne,card:oe,tabs:re,timeline:ie,timePicker:ae,upload:se,notification:le,tree:ce,colorPicker:ue,datePicker:de,rangePicker:fe,flex:pe,wave:he,dropdown:me,warning:ge,tour:ve}=e,be=p.useCallback(((t,n)=>{const{prefixCls:o}=e;if(n)return n;const r=o||v.getPrefixCls("");return t?`${r}-${t}`:r}),[v.getPrefixCls,e.prefixCls]),ye=b||v.iconPrefixCls||Fe,xe=n||v.csp;Da(ye,xe);const we=function(e,t){var n;Lo();const o=e||{},r=!1!==o.inherit&&t?t:Object.assign(Object.assign({},Wr),{hashed:null!==(n=null==t?void 0:t.hashed)&&void 0!==n?n:Wr.hashed,cssVar:null==t?void 0:t.cssVar}),i=ti();return dt((()=>{var n,a;if(!e)return t;const s=Object.assign({},r.components);Object.keys(e.components||{}).forEach((t=>{s[t]=Object.assign(Object.assign({},s[t]),e.components[t])}));const l=`css-var-${i.replace(/:/g,"")}`,c=(null!==(n=o.cssVar)&&void 0!==n?n:r.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:"ant"},"object"==typeof r.cssVar?r.cssVar:{}),"object"==typeof o.cssVar?o.cssVar:{}),{key:"object"==typeof o.cssVar&&(null===(a=o.cssVar)||void 0===a?void 0:a.key)||l});return Object.assign(Object.assign(Object.assign({},r),o),{token:Object.assign(Object.assign({},r.token),o.token),components:s,cssVar:c})}),[o,r],((e,t)=>e.some(((e,n)=>{const o=t[n];return!yt(e,o,!0)}))))}(y,v.theme),Ce={csp:xe,autoInsertSpaceInButton:o,alert:r,anchor:i,locale:s||g,direction:c,space:u,virtual:d,popupMatchSelectWidth:null!=h?h:f,popupOverflow:m,getPrefixCls:be,iconPrefixCls:ye,theme:we,segmented:w,statistic:C,spin:S,calendar:E,carousel:k,cascader:$,collapse:_,typography:O,checkbox:j,descriptions:M,divider:P,drawer:I,skeleton:N,steps:T,image:R,input:q,layout:A,list:D,mentions:B,modal:L,progress:z,result:F,slider:H,breadcrumb:V,menu:W,pagination:K,empty:U,badge:G,radio:X,rate:Y,switch:Z,transfer:Q,avatar:J,message:ee,tag:te,table:ne,card:oe,tabs:re,timeline:ie,timePicker:ae,upload:se,notification:le,tree:ce,colorPicker:ue,datePicker:de,rangePicker:fe,flex:pe,wave:he,dropdown:me,warning:ge,tour:ve},Se=Object.assign({},v);Object.keys(Ce).forEach((e=>{void 0!==Ce[e]&&(Se[e]=Ce[e])})),Ba.forEach((t=>{const n=e[t];n&&(Se[t]=n)}));const Ee=dt((()=>Se),Se,((e,t)=>{const n=Object.keys(e),o=Object.keys(t);return n.length!==o.length||n.some((n=>e[n]!==t[n]))})),ke=p.useMemo((()=>({prefixCls:ye,csp:xe})),[ye,xe]);let $e=p.createElement(p.Fragment,null,p.createElement(Ma,{dropdownMatchSelectWidth:f}),t);const _e=p.useMemo((()=>{var e,t,n,o;return Ao((null===(e=Ko.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=Ee.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(o=Ee.form)||void 0===o?void 0:o.validateMessages)||{},(null==a?void 0:a.validateMessages)||{})}),[Ee,null==a?void 0:a.validateMessages]);Object.keys(_e).length>0&&($e=p.createElement(zo.Provider,{value:_e},$e)),s&&($e=p.createElement(Zo,{locale:s,_ANT_MARK__:"internalMark"},$e)),(ye||xe)&&($e=p.createElement(jo.Provider,{value:ke},$e)),l&&($e=p.createElement(Zr,{size:l},$e)),$e=p.createElement(ja,null,$e);const Oe=p.useMemo((()=>{const e=we||{},{algorithm:t,token:n,components:o,cssVar:r}=e,i=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["algorithm","token","components","cssVar"]),a=t&&(!Array.isArray(t)||t.length>0)?At(t):Vr,s={};Object.entries(o||{}).forEach((e=>{let[t,n]=e;const o=Object.assign({},n);"algorithm"in o&&(!0===o.algorithm?o.theme=a:(Array.isArray(o.algorithm)||"function"==typeof o.algorithm)&&(o.theme=At(o.algorithm)),delete o.algorithm),s[t]=o}));const l=Object.assign(Object.assign({},Ar),n);return Object.assign(Object.assign({},i),{theme:a,token:l,components:s,override:Object.assign({override:l},s),cssVar:r})}),[we]);return y&&($e=p.createElement(Kr.Provider,{value:Oe},$e)),Ee.warning&&($e=p.createElement(Bo.Provider,{value:Ee.warning},$e)),void 0!==x&&($e=p.createElement(Gr,{disabled:x},$e)),p.createElement(He.Provider,{value:Ee},$e)},Ua=e=>{const t=p.useContext(He),n=p.useContext(Yo);return p.createElement(qa,Object.assign({parentContext:t,legacyLocale:n},e))};Ua.ConfigContext=He,Ua.SizeContext=Qr,Ua.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:o,holderRender:r}=e;void 0!==t&&(La=t),void 0!==n&&(za=n),"holderRender"in e&&(Ha=r),o&&(function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(o)?function(e,t){const n=function(e,t){const n={},o=(e,t)=>{let n=e.clone();return n=(null==t?void 0:t(n))||n,n.toRgbString()},r=(e,t)=>{const r=new Dr(e),i=jr(r.toRgbString());n[`${t}-color`]=o(r),n[`${t}-color-disabled`]=i[1],n[`${t}-color-hover`]=i[4],n[`${t}-color-active`]=i[6],n[`${t}-color-outline`]=r.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=i[0],n[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){r(t.primaryColor,"primary");const e=new Dr(t.primaryColor),i=jr(e.toRgbString());i.forEach(((e,t)=>{n[`primary-${t+1}`]=e})),n["primary-color-deprecated-l-35"]=o(e,(e=>e.lighten(35))),n["primary-color-deprecated-l-20"]=o(e,(e=>e.lighten(20))),n["primary-color-deprecated-t-20"]=o(e,(e=>e.tint(20))),n["primary-color-deprecated-t-50"]=o(e,(e=>e.tint(50))),n["primary-color-deprecated-f-12"]=o(e,(e=>e.setAlpha(.12*e.getAlpha())));const a=new Dr(i[0]);n["primary-color-active-deprecated-f-30"]=o(a,(e=>e.setAlpha(.3*e.getAlpha()))),n["primary-color-active-deprecated-d-02"]=o(a,(e=>e.darken(2)))}return t.successColor&&r(t.successColor,"success"),t.warningColor&&r(t.warningColor,"warning"),t.errorColor&&r(t.errorColor,"error"),t.infoColor&&r(t.infoColor,"info"),`\n  :root {\n    ${Object.keys(n).map((t=>`--${e}-${t}: ${n[t]};`)).join("\n")}\n  }\n  `.trim()}(e,t);Qe()&&ut(n,`${qr}-dynamic-theme`)}(Va(),o):Fa=o)},Ua.useConfig=function(){return{componentDisabled:(0,p.useContext)(Xr),componentSize:(0,p.useContext)(Qr)}},Object.defineProperty(Ua,"SizeContext",{get:()=>Qr});const Ga=Ua,Xa={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 Ya(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function Za(e){return function(e){return Ya(e)instanceof ShadowRoot}(e)?Ya(e):null}function Qa(e,t){bt(e,"[@ant-design/icons] ".concat(t))}function Ja(e){return"object"===ye(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===ye(e.icon)||"function"==typeof e.icon)}function es(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var o=e[n];return"class"===n?(t.className=o,delete t.class):(delete t[n],t[function(e){return e.replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))}(n)]=o),t}),{})}function ts(e,t,n){return n?h().createElement(e.tag,$e($e({key:t},es(e.attrs)),n),(e.children||[]).map((function(n,o){return ts(n,"".concat(t,"-").concat(e.tag,"-").concat(o))}))):h().createElement(e.tag,$e({key:t},es(e.attrs)),(e.children||[]).map((function(n,o){return ts(n,"".concat(t,"-").concat(e.tag,"-").concat(o))})))}function ns(e){return jr(e)[0]}function os(e){return e?Array.isArray(e)?e:[e]:[]}var rs={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},is=function(e){var t=(0,p.useContext)(jo),n=t.csp,o=t.prefixCls,r="\n.anticon {\n  display: inline-block;\n  color: inherit;\n  font-style: normal;\n  line-height: 0;\n  text-align: center;\n  text-transform: none;\n  vertical-align: -0.125em;\n  text-rendering: optimizeLegibility;\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n  line-height: 1;\n}\n\n.anticon svg {\n  display: inline-block;\n}\n\n.anticon::before {\n  display: none;\n}\n\n.anticon .anticon-icon {\n  display: block;\n}\n\n.anticon[tabindex] {\n  cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n  display: inline-block;\n  -webkit-animation: loadingCircle 1s infinite linear;\n  animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n  100% {\n    -webkit-transform: rotate(360deg);\n    transform: rotate(360deg);\n  }\n}\n\n@keyframes loadingCircle {\n  100% {\n    -webkit-transform: rotate(360deg);\n    transform: rotate(360deg);\n  }\n}\n";o&&(r=r.replace(/anticon/g,o)),(0,p.useEffect)((function(){var t=Za(e.current);ut(r,"@ant-design-icons",{prepend:!0,csp:n,attachTo:t})}),[])},as=["icon","className","onClick","style","primaryColor","secondaryColor"],ss={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},ls=function(e){var t=e.icon,n=e.className,o=e.onClick,r=e.style,i=e.primaryColor,a=e.secondaryColor,s=di(e,as),l=p.useRef(),c=ss;if(i&&(c={primaryColor:i,secondaryColor:a||ns(i)}),is(l),Qa(Ja(t),"icon should be icon definiton, but got ".concat(t)),!Ja(t))return null;var u=t;return u&&"function"==typeof u.icon&&(u=$e($e({},u),{},{icon:u.icon(c.primaryColor,c.secondaryColor)})),ts(u.icon,"svg-".concat(u.name),$e($e({className:n,onClick:o,style:r,"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s),{},{ref:l}))};ls.displayName="IconReact",ls.getTwoToneColors=function(){return $e({},ss)},ls.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;ss.primaryColor=t,ss.secondaryColor=n||ns(t),ss.calculated=!!n};const cs=ls;function us(e){var t=Ge(os(e),2),n=t[0],o=t[1];return cs.setTwoToneColors({primaryColor:n,secondaryColor:o})}var ds=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];us(Tr.primary);var fs=p.forwardRef((function(e,t){var n=e.className,o=e.icon,r=e.spin,i=e.rotate,a=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=di(e,ds),u=p.useContext(jo),d=u.prefixCls,f=void 0===d?"anticon":d,h=u.rootClassName,m=oi()(h,f,Ee(Ee({},"".concat(f,"-").concat(o.name),!!o.name),"".concat(f,"-spin"),!!r||"loading"===o.name),n),g=a;void 0===g&&s&&(g=-1);var v=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,b=Ge(os(l),2),y=b[0],x=b[1];return p.createElement("span",hn({role:"img","aria-label":o.name},c,{ref:t,tabIndex:g,onClick:s,className:m}),p.createElement(cs,{icon:o,primaryColor:y,secondaryColor:x,style:v}))}));fs.displayName="AntdIcon",fs.getTwoToneColor=function(){var e=cs.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},fs.setTwoToneColor=us;const ps=fs;var hs=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:Xa}))};const ms=p.forwardRef(hs),gs={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"};var vs=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:gs}))};const bs=p.forwardRef(vs),ys={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"};var xs=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:ys}))};const ws=p.forwardRef(xs),Cs={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"};var Ss=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:Cs}))};const Es=p.forwardRef(Ss),ks={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"};var $s=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:ks}))};const _s=p.forwardRef($s),Os={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"};var js=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:Os}))};const Ms=p.forwardRef(js);var Ps={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=Ps.F1&&t<=Ps.F12)return!1;switch(t){case Ps.ALT:case Ps.CAPS_LOCK:case Ps.CONTEXT_MENU:case Ps.CTRL:case Ps.DOWN:case Ps.END:case Ps.ESC:case Ps.HOME:case Ps.INSERT:case Ps.LEFT:case Ps.MAC_FF_META:case Ps.META:case Ps.NUMLOCK:case Ps.NUM_CENTER:case Ps.PAGE_DOWN:case Ps.PAGE_UP:case Ps.PAUSE:case Ps.PRINT_SCREEN:case Ps.RIGHT:case Ps.SHIFT:case Ps.UP:case Ps.WIN_KEY:case Ps.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Ps.ZERO&&e<=Ps.NINE)return!0;if(e>=Ps.NUM_ZERO&&e<=Ps.NUM_MULTIPLY)return!0;if(e>=Ps.A&&e<=Ps.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case Ps.SPACE:case Ps.QUESTION_MARK:case Ps.NUM_PLUS:case Ps.NUM_MINUS:case Ps.NUM_PERIOD:case Ps.NUM_DIVISION:case Ps.SEMICOLON:case Ps.DASH:case Ps.EQUALS:case Ps.COMMA:case Ps.PERIOD:case Ps.SLASH:case Ps.APOSTROPHE:case Ps.SINGLE_QUOTE:case Ps.OPEN_SQUARE_BRACKET:case Ps.BACKSLASH:case Ps.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const Is=Ps;var Ns=p.forwardRef((function(e,t){var n=e.prefixCls,o=e.style,r=e.className,i=e.duration,a=void 0===i?4.5:i,s=e.eventKey,l=e.content,c=e.closable,u=e.closeIcon,d=void 0===u?"x":u,f=e.props,h=e.onClick,m=e.onNoticeClose,g=e.times,v=e.hovering,b=Ge(p.useState(!1),2),y=b[0],x=b[1],w=v||y,C=function(){m(s)};p.useEffect((function(){if(!w&&a>0){var e=setTimeout((function(){C()}),1e3*a);return function(){clearTimeout(e)}}}),[a,w,g]);var S="".concat(n,"-notice");return p.createElement("div",hn({},f,{ref:t,className:oi()(S,r,Ee({},"".concat(S,"-closable"),c)),style:o,onMouseEnter:function(e){var t;x(!0),null==f||null===(t=f.onMouseEnter)||void 0===t||t.call(f,e)},onMouseLeave:function(e){var t;x(!1),null==f||null===(t=f.onMouseLeave)||void 0===t||t.call(f,e)},onClick:h}),p.createElement("div",{className:"".concat(S,"-content")},l),c&&p.createElement("a",{tabIndex:0,className:"".concat(S,"-close"),onKeyDown:function(e){"Enter"!==e.key&&"Enter"!==e.code&&e.keyCode!==Is.ENTER||C()},onClick:function(e){e.preventDefault(),e.stopPropagation(),C()}},d))}));const Ts=Ns;var Rs=h().createContext({});const As=function(e){var t=e.children,n=e.classNames;return h().createElement(Rs.Provider,{value:{classNames:n}},t)};var Ds=["className","style","classNames","styles"];const Bs=function(e){var t,n=e.configList,o=e.placement,r=e.prefixCls,i=e.className,a=e.style,s=e.motion,l=e.onAllNoticeRemoved,c=e.onNoticeClose,u=e.stack,d=(0,p.useContext)(Rs).classNames,f=(0,p.useRef)({}),m=Ge((0,p.useState)(null),2),g=m[0],v=m[1],b=Ge((0,p.useState)([]),2),y=b[0],x=b[1],w=n.map((function(e){return{config:e,key:String(e.key)}})),C=Ge(function(e){var t,n,o,r={offset:8,threshold:3,gap:16};return e&&"object"===ye(e)&&(r.offset=null!==(t=e.offset)&&void 0!==t?t:8,r.threshold=null!==(n=e.threshold)&&void 0!==n?n:3,r.gap=null!==(o=e.gap)&&void 0!==o?o:16),[!!e,r]}(u),2),S=C[0],E=C[1],k=E.offset,$=E.threshold,_=E.gap,O=S&&(y.length>0||w.length<=$),j="function"==typeof s?s(o):s;return(0,p.useEffect)((function(){S&&y.length>1&&x((function(e){return e.filter((function(e){return w.some((function(t){var n=t.key;return e===n}))}))}))}),[y,w,S]),(0,p.useEffect)((function(){var e,t;S&&f.current[null===(e=w[w.length-1])||void 0===e?void 0:e.key]&&v(f.current[null===(t=w[w.length-1])||void 0===t?void 0:t.key])}),[w,S]),h().createElement(ga,hn({key:o,className:oi()(r,"".concat(r,"-").concat(o),null==d?void 0:d.list,i,(t={},Ee(t,"".concat(r,"-stack"),!!S),Ee(t,"".concat(r,"-stack-expanded"),O),t)),style:a,keys:w,motionAppear:!0},j,{onAllRemoved:function(){l(o)}}),(function(e,t){var n=e.config,i=e.className,a=e.style,s=e.index,l=n,u=l.key,p=l.times,m=String(u),v=n,b=v.className,C=v.style,E=v.classNames,$=v.styles,j=di(v,Ds),M=w.findIndex((function(e){return e.key===m})),P={};if(S){var I=w.length-1-(M>-1?M:s-1),N="top"===o||"bottom"===o?"-50%":"0";if(I>0){var T,R,A;P.height=O?null===(T=f.current[m])||void 0===T?void 0:T.offsetHeight:null==g?void 0:g.offsetHeight;for(var D=0,B=0;B<I;B++){var L;D+=(null===(L=f.current[w[w.length-1-B].key])||void 0===L?void 0:L.offsetHeight)+_}var z=(O?D:I*k)*(o.startsWith("top")?1:-1),F=!O&&null!=g&&g.offsetWidth&&null!==(R=f.current[m])&&void 0!==R&&R.offsetWidth?((null==g?void 0:g.offsetWidth)-2*k*(I<3?I:3))/(null===(A=f.current[m])||void 0===A?void 0:A.offsetWidth):1;P.transform="translate3d(".concat(N,", ").concat(z,"px, 0) scaleX(").concat(F,")")}else P.transform="translate3d(".concat(N,", 0, 0)")}return h().createElement("div",{ref:t,className:oi()("".concat(r,"-notice-wrapper"),i,null==E?void 0:E.wrapper),style:$e($e($e({},a),P),null==$?void 0:$.wrapper),onMouseEnter:function(){return x((function(e){return e.includes(m)?e:[].concat(Ye(e),[m])}))},onMouseLeave:function(){return x((function(e){return e.filter((function(e){return e!==m}))}))}},h().createElement(Ts,hn({},j,{ref:function(e){M>-1?f.current[m]=e:delete f.current[m]},prefixCls:r,classNames:E,styles:$,className:oi()(b,null==d?void 0:d.notice),style:C,times:p,key:u,eventKey:u,onNoticeClose:c,hovering:S&&y.length>0})))}))};var Ls=p.forwardRef((function(e,t){var n=e.prefixCls,o=void 0===n?"rc-notification":n,r=e.container,i=e.motion,a=e.maxCount,s=e.className,l=e.style,c=e.onAllRemoved,u=e.stack,d=e.renderNotifications,f=Ge(p.useState([]),2),h=f[0],m=f[1],g=function(e){var t,n=h.find((function(t){return t.key===e}));null==n||null===(t=n.onClose)||void 0===t||t.call(n),m((function(t){return t.filter((function(t){return t.key!==e}))}))};p.useImperativeHandle(t,(function(){return{open:function(e){m((function(t){var n,o=Ye(t),r=o.findIndex((function(t){return t.key===e.key})),i=$e({},e);return r>=0?(i.times=((null===(n=t[r])||void 0===n?void 0:n.times)||0)+1,o[r]=i):(i.times=0,o.push(i)),a>0&&o.length>a&&(o=o.slice(-a)),o}))},close:function(e){g(e)},destroy:function(){m([])}}}));var v=Ge(p.useState({}),2),b=v[0],y=v[1];p.useEffect((function(){var e={};h.forEach((function(t){var n=t.placement,o=void 0===n?"topRight":n;o&&(e[o]=e[o]||[],e[o].push(t))})),Object.keys(b).forEach((function(t){e[t]=e[t]||[]})),y(e)}),[h]);var x=function(e){y((function(t){var n=$e({},t);return(n[e]||[]).length||delete n[e],n}))},w=p.useRef(!1);if(p.useEffect((function(){Object.keys(b).length>0?w.current=!0:w.current&&(null==c||c(),w.current=!1)}),[b]),!r)return null;var C=Object.keys(b);return(0,pe.createPortal)(p.createElement(p.Fragment,null,C.map((function(e){var t=b[e],n=p.createElement(Bs,{key:e,configList:t,placement:e,prefixCls:o,className:null==s?void 0:s(e),style:null==l?void 0:l(e),motion:i,onNoticeClose:g,onAllNoticeRemoved:x,stack:u});return d?d(n,{prefixCls:o,key:e}):n}))),r)}));const zs=Ls;var Fs=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],Hs=function(){return document.body},Vs=0;const Ws=e=>{const[,,,,t]=Oa();return t?`${e}-css-var`:""},Ks=h().createContext(void 0),qs=100,Us=1e3,Gs={Modal:qs,Drawer:qs,Popover:qs,Popconfirm:qs,Tooltip:qs,Tour:qs},Xs={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function Ys(e,t){const[,n]=Oa(),o=h().useContext(Ks),r=function(e){return e in Gs}(e);if(void 0!==t)return[t,t];let i=null!=o?o:0;return r?(i+=(o?0:n.zIndexPopupBase)+Gs[e],i=Math.min(i,n.zIndexPopupBase+Us)):i+=Xs[e],[void 0===o?t:i,i]}const Zs="undefined"!=typeof CSSINJS_STATISTIC;let Qs=!0;function Js(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!Zs)return Object.assign.apply(Object,[{}].concat(t));Qs=!1;const o={};return t.forEach((e=>{Object.keys(e).forEach((t=>{Object.defineProperty(o,t,{configurable:!0,enumerable:!0,get:()=>e[t]})}))})),Qs=!0,o}const el={};function tl(){}function nl(e){var t=p.useRef();t.current=e;var n=p.useCallback((function(){for(var e,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(o))}),[]);return n}function ol(e){return void 0!==e}function rl(e,t){var n=t||{},o=n.defaultValue,r=n.value,i=n.onChange,a=n.postState,s=Ge(Si((function(){return ol(r)?r:ol(o)?"function"==typeof o?o():o:"function"==typeof e?e():e})),2),l=s[0],c=s[1],u=void 0!==r?r:l,d=a?a(u):u,f=nl(i),p=Ge(Si([u]),2),h=p[0],m=p[1];return Jt((function(){var e=h[0];l!==e&&f(l,e)}),[h]),Jt((function(){ol(r)||c(r)}),[r]),[d,nl((function(e,t){c(e,t),m([u],t)}))]}const il=Ct((function e(){xt(this,e)}));let al=function(e){function t(e){var n,o,r,i;return xt(this,t),o=this,r=vi(r=t),(n=xi(o,bi()?Reflect.construct(r,[],vi(o).constructor):r.apply(o,i))).result=0,e instanceof t?n.result=e.result:"number"==typeof e&&(n.result=e),n}return gi(t,e),Ct(t,[{key:"add",value:function(e){return e instanceof t?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof t?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof t?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof t?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),t}(il);const sl="CALC_UNIT";function ll(e){return"number"==typeof e?`${e}${sl}`:e}let cl=function(e){function t(e){var n,o,r,i;return xt(this,t),o=this,r=vi(r=t),(n=xi(o,bi()?Reflect.construct(r,[],vi(o).constructor):r.apply(o,i))).result="",e instanceof t?n.result=`(${e.result})`:"number"==typeof e?n.result=ll(e):"string"==typeof e&&(n.result=e),n}return gi(t,e),Ct(t,[{key:"add",value:function(e){return e instanceof t?this.result=`${this.result} + ${e.getResult()}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} + ${ll(e)}`),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof t?this.result=`${this.result} - ${e.getResult()}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} - ${ll(e)}`),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof t?this.result=`${this.result} * ${e.getResult(!0)}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} * ${e}`),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof t?this.result=`${this.result} / ${e.getResult(!0)}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} / ${e}`),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?`(${this.result})`:this.result}},{key:"equal",value:function(e){const{unit:t=!0}=e||{},n=new RegExp(`${sl}`,"g");return this.result=this.result.replace(n,t?"px":""),void 0!==this.lowPriority?`calc(${this.result})`:this.result}}]),t}(il);const ul=(e,t,n)=>{var o;return"function"==typeof n?n(Js(t,null!==(o=t[e])&&void 0!==o?o:{})):null!=n?n:{}},dl=(e,t,n,o)=>{const r=Object.assign({},t[e]);if(null==o?void 0:o.deprecatedTokens){const{deprecatedTokens:e}=o;e.forEach((e=>{let[t,n]=e;var o;((null==r?void 0:r[t])||(null==r?void 0:r[n]))&&(null!==(o=r[n])&&void 0!==o||(r[n]=null==r?void 0:r[t]))}))}const i=Object.assign(Object.assign({},n),r);return Object.keys(i).forEach((e=>{i[e]===t[e]&&delete i[e]})),i};function fl(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const r=Array.isArray(e)?e:[e,e],[i]=r,a=r.join("-");return function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const[s,l,c,u,d]=Oa(),{getPrefixCls:f,iconPrefixCls:h,csp:m}=(0,p.useContext)(He),g=f(),v=d?"css":"js",b=(e=>{const t="css"===e?cl:al;return e=>new t(e)})(v),{max:y,min:x}=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return`max(${t.map((e=>qt(e))).join(",")})`},min:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return`min(${t.map((e=>qt(e))).join(",")})`}}}(v),w={theme:s,token:u,hashId:c,nonce:()=>null==m?void 0:m.nonce,clientOnly:o.clientOnly,order:o.order||-999};So(Object.assign(Object.assign({},w),{clientOnly:!1,path:["Shared",g]}),(()=>[{"&":Na(u)}])),Da(h,m);const C=So(Object.assign(Object.assign({},w),{path:[a,e,h]}),(()=>{if(!1===o.injectStyle)return[];const{token:a,flush:s}=(e=>{let t,n=e,o=tl;return Zs&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(Qs&&t.add(n),e[n])}),o=(e,n)=>{var o;el[e]={global:Array.from(t),component:Object.assign(Object.assign({},null===(o=el[e])||void 0===o?void 0:o.component),n)}}),{token:n,keys:t,flush:o}})(u),f=ul(i,l,n),p=`.${e}`,m=dl(i,l,f,{deprecatedTokens:o.deprecatedTokens});d&&Object.keys(f).forEach((e=>{f[e]=`var(${Gt(e,((e,t)=>`${[t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`)(i,d.prefix))})`}));const v=Js(a,{componentCls:p,prefixCls:e,iconCls:`.${h}`,antCls:`.${g}`,calc:b,max:y,min:x},d?f:m),w=t(v,{hashId:c,prefixCls:e,rootPrefixCls:g,iconPrefixCls:h});return s(i,m),[!1===o.resetStyle?null:Ta(v,e,r),w]}));return[C,c]}}const pl=(e,t,n,o)=>{const r=fl(e,t,n,Object.assign({resetStyle:!1,order:-998},o));return e=>{let{prefixCls:t,rootCls:n=t}=e;return r(t,n),null}},hl=(e,t,n,o)=>{const r=fl(e,t,n,o),i=((e,t,n)=>{function o(t){return`${e}${t.slice(0,1).toUpperCase()}${t.slice(1)}`}const{unitless:r={},injectStyle:i=!0}=null!=n?n:{},a={[o("zIndexPopup")]:!0};Object.keys(r).forEach((e=>{a[o(e)]=r[e]}));const s=r=>{let{rootCls:i,cssVar:s}=r;const[,l]=Oa();return function(e,t){var n=e.key,o=e.prefix,r=e.unitless,i=e.ignore,a=e.token,s=e.scope,l=void 0===s?"":s,c=(0,p.useContext)(Pt),u=c.cache.instanceId,d=c.container,f=a._tokenKey,h=[].concat(Ye(e.path),[n,l,f]),m=an(Eo,h,(function(){var e=t(),a=Ge(Yt(e,n,{prefix:o,unitless:r,ignore:i,scope:l}),2),s=a[0],c=a[1];return[s,c,xo(h,c),n]}),(function(e){var t=Ge(e,3)[2];Kt&&ct(t,{mark:Ot})}),(function(e){var t=Ge(e,3),o=t[1],r=t[2];if(o){var i=ut(o,r,{mark:Ot,prepend:"queue",attachTo:d,priority:-999});i[jt]=u,i.setAttribute(_t,n)}}))}({path:[e],prefix:s.prefix,key:null==s?void 0:s.key,unitless:Object.assign(Object.assign({},Ea),a),ignore:ka,token:l,scope:i},(()=>{const r=ul(e,l,t),i=dl(e,l,r,{deprecatedTokens:null==n?void 0:n.deprecatedTokens});return Object.keys(r).forEach((e=>{i[o(e)]=i[e],delete i[e]})),i})),null};return t=>{const[,,,,n]=Oa();return[o=>i&&n?h().createElement(h().Fragment,null,h().createElement(s,{rootCls:t,cssVar:n,component:e}),o):o,null==n?void 0:n.key]}})(Array.isArray(e)?e[0]:e,n,o);return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const[,n]=r(e,t),[o,a]=i(t);return[o,n,a]}},ml=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:o}=e,r=`${t}-notice`,i=new _o("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[r]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new _o("antNotificationTopFadeIn",{"0%":{top:-o,opacity:0},"100%":{top:0,opacity:1}})}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new _o("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(o).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}})}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[r]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new _o("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}})}}}}},gl=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],vl={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},bl=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},yl=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},t)},xl=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},bl(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},yl(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},gl.map((t=>((e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[vl[t]]:{value:0,_skip_check_:!0}}}}})(e,t))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{}))},wl=e=>{const{iconCls:t,componentCls:n,boxShadow:o,fontSizeLG:r,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:s,colorInfo:l,colorWarning:c,colorError:u,colorTextHeading:d,notificationBg:f,notificationPadding:p,notificationMarginEdge:h,fontSize:m,lineHeight:g,width:v,notificationIconSize:b,colorText:y}=e,x=`${n}-notice`;return{position:"relative",marginBottom:i,marginInlineStart:"auto",background:f,borderRadius:a,boxShadow:o,[x]:{padding:p,width:v,maxWidth:`calc(100vw - ${qt(e.calc(h).mul(2).equal())})`,overflow:"hidden",lineHeight:g,wordWrap:"break-word"},[`${n}-close-icon`]:{fontSize:m,cursor:"pointer"},[`${x}-message`]:{marginBottom:e.marginXS,color:d,fontSize:r,lineHeight:e.lineHeightLG},[`${x}-description`]:{fontSize:m,color:y},[`${x}-closable ${x}-message`]:{paddingInlineEnd:e.paddingLG},[`${x}-with-icon ${x}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(b).equal(),fontSize:r},[`${x}-with-icon ${x}-description`]:{marginInlineStart:e.calc(e.marginSM).add(b).equal(),fontSize:m},[`${x}-icon`]:{position:"absolute",fontSize:b,lineHeight:1,[`&-success${t}`]:{color:s},[`&-info${t}`]:{color:l},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${x}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.closeBtnHoverBg}},[`${x}-btn`]:{float:"right",marginTop:e.marginSM}}},Cl=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:o,motionDurationMid:r,motionEaseInOut:i}=e,a=`${t}-notice`,s=new _o("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},Ia(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:o,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:i,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:i,animationFillMode:"both",animationDuration:r,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:s,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${a}-btn`]:{float:"left"}}})},{[t]:{[`${a}-wrapper`]:Object.assign({},wl(e))}}]},Sl=e=>({zIndexPopup:e.zIndexPopupBase+Us+50,width:384,closeBtnHoverBg:e.wireframe?"transparent":e.colorFillContent}),El=e=>{const t=e.paddingMD,n=e.paddingLG;return Js(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${qt(e.paddingMD)} ${qt(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3})},kl=hl("Notification",(e=>{const t=El(e);return[Cl(t),ml(t),xl(t)]}),Sl),$l=pl(["Notification","PurePanel"],(e=>{const t=`${e.componentCls}-notice`,n=El(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},wl(n)),{width:n.width,maxWidth:`calc(100vw - ${qt(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0})}}),Sl);function _l(e,t){return null===t||!1===t?null:t||p.createElement("span",{className:`${e}-close-x`},p.createElement(ws,{className:`${e}-close-icon`}))}const Ol={success:ms,info:_s,error:bs,warning:Es},jl=e=>{const{prefixCls:t,icon:n,type:o,message:r,description:i,btn:a,role:s="alert"}=e;let l=null;return n?l=p.createElement("span",{className:`${t}-icon`},n):o&&(l=p.createElement(Ol[o]||null,{className:oi()(`${t}-icon`,`${t}-icon-${o}`)})),p.createElement("div",{className:oi()({[`${t}-with-icon`]:l}),role:s},l,p.createElement("div",{className:`${t}-message`},r),p.createElement("div",{className:`${t}-description`},i),a&&p.createElement("div",{className:`${t}-btn`},a))};const Ml=e=>{let{children:t,prefixCls:n}=e;const o=Ws(n),[r,i,a]=kl(n,o);return r(h().createElement(As,{classNames:{list:oi()(i,a,o)}},t))},Pl=(e,t)=>{let{prefixCls:n,key:o}=t;return h().createElement(Ml,{prefixCls:n,key:o},e)},Il=h().forwardRef(((e,t)=>{const{top:n,bottom:o,prefixCls:r,getContainer:i,maxCount:a,rtl:s,onAllRemoved:l,stack:c,duration:u}=e,{getPrefixCls:d,getPopupContainer:f,notification:m,direction:g}=(0,p.useContext)(He),[,v]=Oa(),b=r||d("notification"),[y,x]=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getContainer,n=void 0===t?Hs:t,o=e.motion,r=e.prefixCls,i=e.maxCount,a=e.className,s=e.style,l=e.onAllRemoved,c=e.stack,u=e.renderNotifications,d=di(e,Fs),f=Ge(p.useState(),2),h=f[0],m=f[1],g=p.useRef(),v=p.createElement(zs,{container:h,ref:g,prefixCls:r,motion:o,maxCount:i,className:a,style:s,onAllRemoved:l,stack:c,renderNotifications:u}),b=Ge(p.useState([]),2),y=b[0],x=b[1],w=p.useMemo((function(){return{open:function(e){var t=function(){for(var e={},t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return n.forEach((function(t){t&&Object.keys(t).forEach((function(n){var o=t[n];void 0!==o&&(e[n]=o)}))})),e}(d,e);null!==t.key&&void 0!==t.key||(t.key="rc-notification-".concat(Vs),Vs+=1),x((function(e){return[].concat(Ye(e),[{type:"open",config:t}])}))},close:function(e){x((function(t){return[].concat(Ye(t),[{type:"close",key:e}])}))},destroy:function(){x((function(e){return[].concat(Ye(e),[{type:"destroy"}])}))}}}),[]);return p.useEffect((function(){m(n())})),p.useEffect((function(){g.current&&y.length&&(y.forEach((function(e){switch(e.type){case"open":g.current.open(e.config);break;case"close":g.current.close(e.key);break;case"destroy":g.current.destroy()}})),x((function(e){return e.filter((function(e){return!y.includes(e)}))})))}),[y]),[w,v]}({prefixCls:b,style:e=>function(e,t,n){let o;switch(e){case"top":o={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":o={left:0,top:t,bottom:"auto"};break;case"topRight":o={right:0,top:t,bottom:"auto"};break;case"bottom":o={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":o={left:0,top:"auto",bottom:n};break;default:o={right:0,top:"auto",bottom:n}}return o}(e,null!=n?n:24,null!=o?o:24),className:()=>oi()({[`${b}-rtl`]:null!=s?s:"rtl"===g}),motion:()=>function(e){return{motionName:`${e}-fade`}}(b),closable:!0,closeIcon:_l(b),duration:null!=u?u:4.5,getContainer:()=>(null==i?void 0:i())||(null==f?void 0:f())||document.body,maxCount:a,onAllRemoved:l,renderNotifications:Pl,stack:!1!==c&&{threshold:"object"==typeof c?null==c?void 0:c.threshold:void 0,offset:8,gap:v.margin}});return h().useImperativeHandle(t,(()=>Object.assign(Object.assign({},y),{prefixCls:b,notification:m}))),x}));function Nl(e){const t=h().useRef(null),n=(Lo(),h().useMemo((()=>{const n=n=>{var o;if(!t.current)return;const{open:r,prefixCls:i,notification:a}=t.current,s=`${i}-notice`,{message:l,description:c,icon:u,type:d,btn:f,className:p,style:m,role:g="alert",closeIcon:v}=n,b=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(n,["message","description","icon","type","btn","className","style","role","closeIcon"]),y=_l(s,void 0!==v?v:null==a?void 0:a.closeIcon);return r(Object.assign(Object.assign({placement:null!==(o=null==e?void 0:e.placement)&&void 0!==o?o:"topRight"},b),{content:h().createElement(jl,{prefixCls:s,icon:u,type:d,message:l,description:c,btn:f,role:g}),className:oi()(d&&`${s}-${d}`,p,null==a?void 0:a.className),style:Object.assign(Object.assign({},null==a?void 0:a.style),m),closeIcon:y,closable:!!y}))},o={open:n,destroy:e=>{var n,o;void 0!==e?null===(n=t.current)||void 0===n||n.close(e):null===(o=t.current)||void 0===o||o.destroy()}};return["success","info","warning","error"].forEach((e=>{o[e]=t=>n(Object.assign(Object.assign({},t),{type:e}))})),o}),[]));return[n,h().createElement(Il,Object.assign({key:"notification-holder"},e,{ref:t}))]}let Tl=null,Rl=e=>e(),Al=[],Dl={};function Bl(){const{getContainer:e,rtl:t,maxCount:n,top:o,bottom:r}=Dl,i=(null==e?void 0:e())||document.body;return{getContainer:()=>i,rtl:t,maxCount:n,top:o,bottom:r}}const Ll=h().forwardRef(((e,t)=>{const{notificationConfig:n,sync:o}=e,{getPrefixCls:r}=(0,p.useContext)(He),i=Dl.prefixCls||r("notification"),a=(0,p.useContext)(ze),[s,l]=Nl(Object.assign(Object.assign(Object.assign({},n),{prefixCls:i}),a.notification));return h().useEffect(o,[]),h().useImperativeHandle(t,(()=>{const e=Object.assign({},s);return Object.keys(e).forEach((t=>{e[t]=function(){return o(),s[t].apply(s,arguments)}})),{instance:e,sync:o}})),l})),zl=h().forwardRef(((e,t)=>{const[n,o]=h().useState(Bl),r=()=>{o(Bl)};h().useEffect(r,[]);const i=Ka(),a=i.getRootPrefixCls(),s=i.getIconPrefixCls(),l=i.getTheme(),c=h().createElement(Ll,{ref:t,sync:r,notificationConfig:n});return h().createElement(Ga,{prefixCls:a,iconPrefixCls:s,theme:l},i.holderRender?i.holderRender(c):c)}));function Fl(){if(!Tl){const e=document.createDocumentFragment(),t={fragment:e};return Tl=t,void Rl((()=>{Te(h().createElement(zl,{ref:e=>{const{instance:n,sync:o}=e||{};Promise.resolve().then((()=>{!t.instance&&n&&(t.instance=n,t.sync=o,Fl())}))}}),e)}))}Tl.instance&&(Al.forEach((e=>{switch(e.type){case"open":Rl((()=>{Tl.instance.open(Object.assign(Object.assign({},Dl),e.config))}));break;case"destroy":Rl((()=>{null==Tl||Tl.instance.destroy(e.key)}))}})),Al=[])}function Hl(e){Ka(),Al.push({type:"open",config:e}),Fl()}const Vl={open:Hl,destroy:function(e){Al.push({type:"destroy",key:e}),Fl()},config:function(e){Dl=Object.assign(Object.assign({},Dl),e),Rl((()=>{var e;null===(e=null==Tl?void 0:Tl.sync)||void 0===e||e.call(Tl)}))},useNotification:function(e){return Nl(e)},_InternalPanelDoNotUseOrYouWillBeFired:e=>{const{prefixCls:t,className:n,icon:o,type:r,message:i,description:a,btn:s,closable:l=!0,closeIcon:c,className:u}=e,d=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon","className"]),{getPrefixCls:f}=p.useContext(He),h=t||f("notification"),m=`${h}-notice`,g=Ws(h),[v,b,y]=kl(h,g);return v(p.createElement("div",{className:oi()(`${m}-pure-panel`,b,n,y,g)},p.createElement($l,{prefixCls:h}),p.createElement(Ts,Object.assign({},d,{prefixCls:h,eventKey:"pure",duration:null,closable:l,className:oi()({notificationClassName:u}),closeIcon:_l(h,c),content:p.createElement(jl,{prefixCls:m,icon:o,type:r,message:i,description:a,btn:s})}))))}},Wl=Vl;["success","info","warning","error"].forEach((e=>{Wl[e]=t=>Hl(Object.assign(Object.assign({},t),{type:e}))}));const Kl=Wl,ql=()=>({height:0,opacity:0}),Ul=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},Gl=e=>({height:e?e.offsetHeight:0}),Xl=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,Yl=(e,t,n)=>void 0!==n?n:`${e}-${t}`,Zl=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ant"}-motion-collapse`,onAppearStart:ql,onEnterStart:ql,onAppearActive:Ul,onEnterActive:Ul,onLeaveStart:Gl,onLeaveActive:ql,onAppearEnd:Xl,onEnterEnd:Xl,onLeaveEnd:Xl,motionDeadline:500}},Ql=(e,t)=>{const n=p.useContext(Yo);return[p.useMemo((()=>{var o;const r=t||Ko[e],i=null!==(o=null==n?void 0:n[e])&&void 0!==o?o:{};return Object.assign(Object.assign({},"function"==typeof r?r():r),i||{})}),[e,t,n]),p.useMemo((()=>{const e=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!e?Ko.locale:e}),[n])]};function Jl(e,t){var n=$e({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}const ec=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,o=t.height;if(n||o)return!0}if(e.getBoundingClientRect){var r=e.getBoundingClientRect(),i=r.width,a=r.height;if(i||a)return!0}}return!1},{isValidElement:tc}=p;function nc(e){return e&&tc(e)&&e.type===p.Fragment}function oc(e,t,n){return tc(e)?p.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t}function rc(e,t){return oc(e,e,t)}const ic=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 0.3s ${e.motionEaseInOut}`,`opacity 0.35s ${e.motionEaseInOut}`].join(",")}}}}},ac=fl("Wave",(e=>[ic(e)]));function sc(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3]&&t[1]===t[2]&&t[2]===t[3])}(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}const lc="ant-wave-target";function cc(e){return Number.isNaN(e)?0:e}const uc=e=>{const{className:t,target:n,component:o}=e,r=p.useRef(null),[i,a]=p.useState(null),[s,l]=p.useState([]),[c,u]=p.useState(0),[d,f]=p.useState(0),[h,m]=p.useState(0),[g,v]=p.useState(0),[b,y]=p.useState(!1),x={left:c,top:d,width:h,height:g,borderRadius:s.map((e=>`${e}px`)).join(" ")};function w(){const e=getComputedStyle(n);a(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:o}=getComputedStyle(e);return sc(t)?t:sc(n)?n:sc(o)?o:null}(n));const t="static"===e.position,{borderLeftWidth:o,borderTopWidth:r}=e;u(t?n.offsetLeft:cc(-parseFloat(o))),f(t?n.offsetTop:cc(-parseFloat(r))),m(n.offsetWidth),v(n.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:s,borderBottomLeftRadius:c,borderBottomRightRadius:d}=e;l([i,s,d,c].map((e=>cc(parseFloat(e)))))}if(i&&(x["--wave-color"]=i),p.useEffect((()=>{if(n){const e=na((()=>{w(),y(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(w),t.observe(n)),()=>{na.cancel(e),null==t||t.disconnect()}}}),[]),!b)return null;const C=("Checkbox"===o||"Radio"===o)&&(null==n?void 0:n.classList.contains(lc));return p.createElement(va,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=r.current)||void 0===n?void 0:n.parentElement;Be(e).then((()=>{null==e||e.remove()}))}return!1}},(e=>{let{className:n}=e;return p.createElement("div",{ref:r,className:oi()(t,{"wave-quick":C},n),style:x})}))},dc=(e,t)=>{var n;const{component:o}=t;if("Checkbox"===o&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;const r=document.createElement("div");r.style.position="absolute",r.style.left="0px",r.style.top="0px",null==e||e.insertBefore(r,null==e?void 0:e.firstChild),Te(p.createElement(uc,Object.assign({},t,{target:e})),r)},fc=e=>{const{children:t,disabled:n,component:o}=e,{getPrefixCls:r}=(0,p.useContext)(He),i=(0,p.useRef)(null),a=r("wave"),[,s]=ac(a),l=function(e,t,n){const{wave:o}=p.useContext(He),[,r,i]=Oa(),a=nl((a=>{const s=e.current;if((null==o?void 0:o.disabled)||!s)return;const l=s.querySelector(`.${lc}`)||s,{showEffect:c}=o||{};(c||dc)(l,{className:t,token:r,component:n,event:a,hashId:i})})),s=p.useRef();return e=>{na.cancel(s.current),s.current=na((()=>{a(e)}))}}(i,oi()(a,s),o);return h().useEffect((()=>{const e=i.current;if(!e||1!==e.nodeType||n)return;const t=t=>{!ec(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||l(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[n]),h().isValidElement(t)?rc(t,{ref:ui(t)?li(t.ref,i):i}):null!=t?t:null},pc=e=>{const t=h().useContext(Qr);return h().useMemo((()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t),[e,t])};function hc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return h().Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(hc(e)):(0,ai.isFragment)(e)&&e.props?n=n.concat(hc(e.props.children,t)):n.push(e))})),n}const mc=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},gc=e=>{const{componentCls:t}=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"}}}},vc=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}}}},bc=hl("Space",(e=>{const t=Js(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[gc(t),vc(t),mc(t)]}),(()=>({})),{resetStyle:!1});var yc=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const xc=p.createContext(null),wc=(e,t)=>{const n=p.useContext(xc),o=p.useMemo((()=>{if(!n)return"";const{compactDirection:o,isFirstItem:r,isLastItem:i}=n,a="vertical"===o?"-vertical-":"-";return oi()(`${e}-compact${a}item`,{[`${e}-compact${a}first-item`]:r,[`${e}-compact${a}last-item`]:i,[`${e}-compact${a}item-rtl`]:"rtl"===t})}),[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:o}},Cc=e=>{let{children:t}=e;return p.createElement(xc.Provider,{value:null},t)},Sc=e=>{var{children:t}=e,n=yc(e,["children"]);return p.createElement(xc.Provider,{value:n},t)};const Ec=p.createContext(void 0),kc=/^[\u4e00-\u9fa5]{2}$/,$c=kc.test.bind(kc);function _c(e){return"danger"===e?{danger:!0}:{type:e}}function Oc(e){return"string"==typeof e}function jc(e){return"text"===e||"link"===e}const Mc=(0,p.forwardRef)(((e,t)=>{const{className:n,style:o,children:r,prefixCls:i}=e,a=oi()(`${i}-icon`,n);return h().createElement("span",{ref:t,className:a,style:o},r)})),Pc=Mc,Ic=(0,p.forwardRef)(((e,t)=>{let{prefixCls:n,className:o,style:r,iconClassName:i}=e;const a=oi()(`${n}-loading-icon`,o);return h().createElement(Pc,{prefixCls:n,className:a,style:r,ref:t},h().createElement(Ms,{className:i}))})),Nc=()=>({width:0,opacity:0,transform:"scale(0)"}),Tc=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Rc=e=>{const{prefixCls:t,loading:n,existIcon:o,className:r,style:i}=e,a=!!n;return o?h().createElement(Ic,{prefixCls:t,className:r,style:i}):h().createElement(va,{visible:a,motionName:`${t}-loading-icon-motion`,motionLeave:a,removeOnLeave:!0,onAppearStart:Nc,onAppearActive:Tc,onEnterStart:Nc,onEnterActive:Tc,onLeaveStart:Tc,onLeaveActive:Nc},((e,n)=>{let{className:o,style:a}=e;return h().createElement(Ic,{prefixCls:t,className:r,style:Object.assign(Object.assign({},i),a),ref:n,iconClassName:o})}))},Ac=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Dc=e=>{const{componentCls:t,fontSize:n,lineWidth:o,groupBorderColor:r,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(o).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n          &:focus,\n          &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Ac(`${t}-primary`,r),Ac(`${t}-danger`,i)]}},Bc=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:o}=e;return Js(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:o,buttonIconOnlyFontSize:n})},Lc=e=>{var t,n,o,r,i,a;const s=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,l=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,c=null!==(o=e.contentFontSizeLG)&&void 0!==o?o:e.fontSizeLG,u=null!==(r=e.contentLineHeight)&&void 0!==r?r:Hr(s),d=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:Hr(l),f=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:Hr(c);return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,contentFontSize:s,contentFontSizeSM: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)}},zc=e=>{const{componentCls:t,iconCls:n,fontWeight:o}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:o,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${qt(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},Aa(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${t}-compact-item`]:{flex:"none"}}}},Fc=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),Hc=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),Vc=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),Wc=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Kc=(e,t,n,o,r,i,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:o||void 0,boxShadow:"none"},Fc(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:i||void 0}})}),qc=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},Wc(e))}),Uc=e=>Object.assign({},qc(e)),Gc=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Xc=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Uc(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),Fc(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Kc(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},Fc(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Kc(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),qc(e))}),Yc=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Uc(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),Fc(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),Kc(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},Fc(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),Kc(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),qc(e))}),Zc=e=>Object.assign(Object.assign({},Xc(e)),{borderStyle:"dashed"}),Qc=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},Fc(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Gc(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Fc(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),Gc(e))}),Jc=e=>Object.assign(Object.assign(Object.assign({},Fc(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),Gc(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Gc(e)),Fc(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBg}))}),eu=e=>{const{componentCls:t}=e;return{[`${t}-default`]:Xc(e),[`${t}-primary`]:Yc(e),[`${t}-dashed`]:Zc(e),[`${t}-link`]:Qc(e),[`${t}-text`]:Jc(e),[`${t}-ghost`]:Kc(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},tu=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,controlHeight:o,fontSize:r,lineHeight:i,borderRadius:a,buttonPaddingHorizontal:s,iconCls:l,buttonPaddingVertical:c}=e,u=`${n}-icon-only`;return[{[`${t}`]:{fontSize:r,lineHeight:i,height:o,padding:`${qt(c)} ${qt(s)}`,borderRadius:a,[`&${u}`]:{width:o,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},[l]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:Hc(e)},{[`${n}${n}-round${t}`]:Vc(e)}]},nu=e=>{const t=Js(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return tu(t,e.componentCls)},ou=e=>{const t=Js(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return tu(t,`${e.componentCls}-sm`)},ru=e=>{const t=Js(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return tu(t,`${e.componentCls}-lg`)},iu=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},au=hl("Button",(e=>{const t=Bc(e);return[zc(t),nu(t),ou(t),ru(t),iu(t),eu(t),Dc(t)]}),Lc,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function su(e,t,n){const{focusElCls:o,focus:r,borderElCls:i}=n,a=i?"> *":"",s=["hover",r?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${a}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},o?{[`&${o}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function lu(e,t,n){const{borderElCls:o}=n,r=o?`> ${o}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${r}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function cu(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,o=`${n}-compact`;return{[o]:Object.assign(Object.assign({},su(e,o,t)),lu(n,o,t))}}function uu(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 du(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},uu(e,t)),(n=e.componentCls,o=t,{[`&-item:not(${o}-first-item):not(${o}-last-item)`]:{borderRadius:0},[`&-item${o}-first-item:not(${o}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${o}-last-item:not(${o}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,o}const fu=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${qt(e.lineWidth)} * 2)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${qt(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},pu=pl(["Button","compact"],(e=>{const t=Bc(e);return[cu(t),du(t),fu(t)]}),Lc);const hu=(e,t)=>{var n,o;const{loading:r=!1,prefixCls:i,type:a="default",danger:s,shape:l="default",size:c,styles:u,disabled:d,className:f,rootClassName:m,children:g,icon:v,ghost:b=!1,block:y=!1,htmlType:x="button",classNames:w,style:C={}}=e,S=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:E,autoInsertSpaceInButton:k,direction:$,button:_}=(0,p.useContext)(He),O=E("btn",i),[j,M,P]=au(O),I=(0,p.useContext)(Xr),N=null!=d?d:I,T=(0,p.useContext)(Ec),R=(0,p.useMemo)((()=>function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return t=Number.isNaN(t)||"number"!=typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(r)),[r]),[A,D]=(0,p.useState)(R.loading),[B,L]=(0,p.useState)(!1),z=li(t,(0,p.createRef)()),F=1===p.Children.count(g)&&!v&&!jc(a);(0,p.useEffect)((()=>{let e=null;return R.delay>0?e=setTimeout((()=>{e=null,D(!0)}),R.delay):D(R.loading),function(){e&&(clearTimeout(e),e=null)}}),[R]),(0,p.useEffect)((()=>{if(!z||!z.current||!1===k)return;const e=z.current.textContent;F&&$c(e)?B||L(!0):B&&L(!1)}),[z]);const H=t=>{const{onClick:n}=e;A||N?t.preventDefault():null==n||n(t)},V=!1!==k,{compactSize:W,compactItemClassnames:K}=wc(O,$),q=pc((e=>{var t,n;return null!==(n=null!==(t=null!=c?c:W)&&void 0!==t?t:T)&&void 0!==n?n:e})),U=q&&{large:"lg",small:"sm",middle:void 0}[q]||"",G=A?"loading":v,X=Jl(S,["navigate"]),Y=oi()(O,M,P,{[`${O}-${l}`]:"default"!==l&&l,[`${O}-${a}`]:a,[`${O}-${U}`]:U,[`${O}-icon-only`]:!g&&0!==g&&!!G,[`${O}-background-ghost`]:b&&!jc(a),[`${O}-loading`]:A,[`${O}-two-chinese-chars`]:B&&V&&!A,[`${O}-block`]:y,[`${O}-dangerous`]:!!s,[`${O}-rtl`]:"rtl"===$},K,f,m,null==_?void 0:_.className),Z=Object.assign(Object.assign({},null==_?void 0:_.style),C),Q=oi()(null==w?void 0:w.icon,null===(n=null==_?void 0:_.classNames)||void 0===n?void 0:n.icon),J=Object.assign(Object.assign({},(null==u?void 0:u.icon)||{}),(null===(o=null==_?void 0:_.styles)||void 0===o?void 0:o.icon)||{}),ee=v&&!A?h().createElement(Pc,{prefixCls:O,className:Q,style:J},v):h().createElement(Rc,{existIcon:!!v,prefixCls:O,loading:!!A}),te=g||0===g?function(e,t){let n=!1;const o=[];return h().Children.forEach(e,(e=>{const t=typeof e,r="string"===t||"number"===t;if(n&&r){const t=o.length-1,n=o[t];o[t]=`${n}${e}`}else o.push(e);n=r})),h().Children.map(o,(e=>function(e,t){if(null==e)return;const n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&Oc(e.type)&&$c(e.props.children)?rc(e,{children:e.props.children.split("").join(n)}):Oc(e)?$c(e)?h().createElement("span",null,e.split("").join(n)):h().createElement("span",null,e):nc(e)?h().createElement("span",null,e):e}(e,t)))}(g,F&&V):null;if(void 0!==X.href)return j(h().createElement("a",Object.assign({},X,{className:oi()(Y,{[`${O}-disabled`]:N}),href:N?void 0:X.href,style:Z,onClick:H,ref:z,tabIndex:N?-1:0}),ee,te));let ne=h().createElement("button",Object.assign({},S,{type:x,className:Y,style:Z,onClick:H,disabled:N,ref:z}),ee,te,!!K&&h().createElement(pu,{key:"compact",prefixCls:O}));return jc(a)||(ne=h().createElement(fc,{component:"Button",disabled:!!A},ne)),j(ne)},mu=(0,p.forwardRef)(hu);mu.Group=e=>{const{getPrefixCls:t,direction:n}=p.useContext(He),{prefixCls:o,size:r,className:i}=e,a=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","size","className"]),s=t("btn-group",o),[,,l]=Oa();let c="";switch(r){case"large":c="lg";break;case"small":c="sm"}const u=oi()(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:"rtl"===n},i,l);return p.createElement(Ec.Provider,{value:r},p.createElement("div",Object.assign({},a,{className:u})))},mu.__ANT_BUTTON=!0;const gu=mu;function vu(e){return!(!e||!e.then)}const bu=e=>{const{type:t,children:n,prefixCls:o,buttonProps:r,close:i,autoFocus:a,emitEvent:s,isSilent:l,quitOnNullishReturnValue:c,actionFn:u}=e,d=p.useRef(!1),f=p.useRef(null),[h,m]=Si(!1),g=function(){null==i||i.apply(void 0,arguments)};return p.useEffect((()=>{let e=null;return a&&(e=setTimeout((()=>{var e;null===(e=f.current)||void 0===e||e.focus()}))),()=>{e&&clearTimeout(e)}}),[]),p.createElement(gu,Object.assign({},_c(t),{onClick:e=>{if(d.current)return;if(d.current=!0,!u)return void g();let t;if(s){if(t=u(e),c&&!vu(t))return d.current=!1,void g(e)}else if(u.length)t=u(i),d.current=!1;else if(t=u(),!t)return void g();(e=>{vu(e)&&(m(!0),e.then((function(){m(!1,!0),g.apply(void 0,arguments),d.current=!1}),(e=>{if(m(!1,!0),d.current=!1,!(null==l?void 0:l()))return Promise.reject(e)})))})(t)},loading:h,prefixCls:o},r,{ref:f}),n)},yu=h().createContext({}),{Provider:xu}=yu,wu=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:o,mergedOkCancel:r,rootPrefixCls:i,close:a,onCancel:s,onConfirm:l}=(0,p.useContext)(yu);return r?h().createElement(bu,{isSilent:o,actionFn:s,close:function(){null==a||a.apply(void 0,arguments),null==l||l(!1)},autoFocus:"cancel"===e,buttonProps:t,prefixCls:`${i}-btn`},n):null},Cu=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:o,rootPrefixCls:r,okTextLocale:i,okType:a,onConfirm:s,onOk:l}=(0,p.useContext)(yu);return h().createElement(bu,{isSilent:n,type:a||"primary",actionFn:l,close:function(){null==t||t.apply(void 0,arguments),null==s||s(!0)},autoFocus:"ok"===e,buttonProps:o,prefixCls:`${r}-btn`},i)},Su=p.createContext(null);var Eu,ku=[];function $u(e){if("undefined"==typeof document)return 0;if(e||void 0===Eu){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),o=n.style;o.position="absolute",o.top="0",o.left="0",o.pointerEvents="none",o.visibility="hidden",o.width="200px",o.height="150px",o.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var r=t.offsetWidth;n.style.overflow="scroll";var i=t.offsetWidth;r===i&&(i=n.clientWidth),document.body.removeChild(n),Eu=r-i}return Eu}function _u(e){var t=e.match(/^(.*)px$/),n=Number(null==t?void 0:t[1]);return Number.isNaN(n)?$u():n}function Ou(e){if(!("undefined"!=typeof document&&e&&e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),n=t.width,o=t.height;return{width:_u(n),height:_u(o)}}var ju="rc-util-locker-".concat(Date.now()),Mu=0;var Pu=!1,Iu=function(e){return!1!==e&&(Qe()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},Nu=p.forwardRef((function(e,t){var n=e.open,o=e.autoLock,r=e.getContainer,i=(e.debug,e.autoDestroy),a=void 0===i||i,s=e.children,l=Ge(p.useState(n),2),c=l[0],u=l[1],d=c||n;p.useEffect((function(){(a||n)&&u(n)}),[n,a]);var f=Ge(p.useState((function(){return Iu(r)})),2),h=f[0],m=f[1];p.useEffect((function(){var e=Iu(r);m(null!=e?e:null)}));var g=function(e,t){var n=Ge(p.useState((function(){return Qe()?document.createElement("div"):null})),1)[0],o=p.useRef(!1),r=p.useContext(Su),i=Ge(p.useState(ku),2),a=i[0],s=i[1],l=r||(o.current?void 0:function(e){s((function(t){return[e].concat(Ye(t))}))});function c(){n.parentElement||document.body.appendChild(n),o.current=!0}function u(){var e;null===(e=n.parentElement)||void 0===e||e.removeChild(n),o.current=!1}return en((function(){return e?r?r(c):c():u(),u}),[e]),en((function(){a.length&&(a.forEach((function(e){return e()})),s(ku))}),[a]),[n,l]}(d&&!h),v=Ge(g,2),b=v[0],y=v[1],x=null!=h?h:b;!function(e){var t=!!e,n=Ge(p.useState((function(){return Mu+=1,"".concat(ju,"_").concat(Mu)})),1)[0];en((function(){if(t){var e=Ou(document.body).width,o=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;ut("\nhtml body {\n  overflow-y: hidden;\n  ".concat(o?"width: calc(100% - ".concat(e,"px);"):"","\n}"),n)}else ct(n);return function(){ct(n)}}),[t,n])}(o&&n&&Qe()&&(x===b||x===document.body));var w=null;s&&ui(s)&&t&&(w=s.ref);var C=ci(w,t);if(!d||!Qe()||void 0===h)return null;var S=!1===x||Pu,E=s;return t&&(E=p.cloneElement(s,{ref:C})),p.createElement(Su.Provider,{value:y},S?E:(0,pe.createPortal)(E,x))}));const Tu=Nu;var Ru=p.createContext({}),Au=0,Du=$e({},p).useId;const Bu=Du?function(e){var t=Du();return e||t}:function(e){var t=Ge(p.useState("ssr-id"),2),n=t[0],o=t[1];return p.useEffect((function(){var e=Au;Au+=1,o("rc_unique_".concat(e))}),[]),e||n};var Lu="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n    alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n    charSet checked classID className colSpan cols content contentEditable contextMenu\n    controls coords crossOrigin data dateTime default defer dir disabled download draggable\n    encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n    headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n    is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n    mediaGroup method min minLength multiple muted name noValidate nonce open\n    optimum pattern placeholder poster preload radioGroup readOnly rel required\n    reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n    shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n    summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n    onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n    onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n    onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n    onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n    onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n    onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/),zu="aria-",Fu="data-";function Hu(e,t){return 0===e.indexOf(t)}function Vu(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:$e({},n);var o={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||Hu(n,zu))||t.data&&Hu(n,Fu)||t.attr&&Lu.includes(n))&&(o[n]=e[n])})),o}function Wu(e,t,n){var o=t;return!o&&n&&(o="".concat(e,"-").concat(n)),o}function Ku(e,t){var n=e["page".concat(t?"Y":"X","Offset")],o="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var r=e.document;"number"!=typeof(n=r.documentElement[o])&&(n=r.body[o])}return n}const qu=p.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate}));var Uu={width:0,height:0,overflow:"hidden",outline:"none"},Gu=h().forwardRef((function(e,t){var n=e.prefixCls,o=e.className,r=e.style,i=e.title,a=e.ariaId,s=e.footer,l=e.closable,c=e.closeIcon,u=e.onClose,d=e.children,f=e.bodyStyle,m=e.bodyProps,g=e.modalRender,v=e.onMouseDown,b=e.onMouseUp,y=e.holderRef,x=e.visible,w=e.forceRender,C=e.width,S=e.height,E=e.classNames,k=e.styles,$=ci(y,h().useContext(Ru).panel),_=(0,p.useRef)(),O=(0,p.useRef)();h().useImperativeHandle(t,(function(){return{focus:function(){var e;null===(e=_.current)||void 0===e||e.focus()},changeActive:function(e){var t=document.activeElement;e&&t===O.current?_.current.focus():e||t!==_.current||O.current.focus()}}}));var j,M,P,I={};void 0!==C&&(I.width=C),void 0!==S&&(I.height=S),s&&(j=h().createElement("div",{className:oi()("".concat(n,"-footer"),null==E?void 0:E.footer),style:$e({},null==k?void 0:k.footer)},s)),i&&(M=h().createElement("div",{className:oi()("".concat(n,"-header"),null==E?void 0:E.header),style:$e({},null==k?void 0:k.header)},h().createElement("div",{className:"".concat(n,"-title"),id:a},i))),l&&(P=h().createElement("button",{type:"button",onClick:u,"aria-label":"Close",className:"".concat(n,"-close")},c||h().createElement("span",{className:"".concat(n,"-close-x")})));var N=h().createElement("div",{className:oi()("".concat(n,"-content"),null==E?void 0:E.content),style:null==k?void 0:k.content},P,M,h().createElement("div",hn({className:oi()("".concat(n,"-body"),null==E?void 0:E.body),style:$e($e({},f),null==k?void 0:k.body)},m),d),j);return h().createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?a:null,"aria-modal":"true",ref:$,style:$e($e({},r),I),className:oi()(n,o),onMouseDown:v,onMouseUp:b},h().createElement("div",{tabIndex:0,ref:_,style:Uu,"aria-hidden":"true"}),h().createElement(qu,{shouldUpdate:x||w},g?g(N):N),h().createElement("div",{tabIndex:0,ref:O,style:Uu,"aria-hidden":"true"}))}));const Xu=Gu;var Yu=p.forwardRef((function(e,t){var n=e.prefixCls,o=e.title,r=e.style,i=e.className,a=e.visible,s=e.forceRender,l=e.destroyOnClose,c=e.motionName,u=e.ariaId,d=e.onVisibleChanged,f=e.mousePosition,h=(0,p.useRef)(),m=Ge(p.useState(),2),g=m[0],v=m[1],b={};function y(){var e=function(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},o=e.ownerDocument,r=o.defaultView||o.parentWindow;return n.left+=Ku(r),n.top+=Ku(r,!0),n}(h.current);v(f?"".concat(f.x-e.left,"px ").concat(f.y-e.top,"px"):"")}return g&&(b.transformOrigin=g),p.createElement(va,{visible:a,onVisibleChanged:d,onAppearPrepare:y,onEnterPrepare:y,forceRender:s,motionName:c,removeOnLeave:l,ref:h},(function(a,s){var l=a.className,c=a.style;return p.createElement(Xu,hn({},e,{ref:t,title:o,ariaId:u,prefixCls:n,holderRef:s,style:$e($e($e({},c),r),b),className:oi()(i,l)}))}))}));Yu.displayName="Content";const Zu=Yu;function Qu(e){var t=e.prefixCls,n=e.style,o=e.visible,r=e.maskProps,i=e.motionName,a=e.className;return p.createElement(va,{key:"mask",visible:o,motionName:i,leavedClassName:"".concat(t,"-mask-hidden")},(function(e,o){var i=e.className,s=e.style;return p.createElement("div",hn({ref:o,style:$e($e({},s),n),className:oi()("".concat(t,"-mask"),i,a)},r))}))}function Ju(e){var t=e.prefixCls,n=void 0===t?"rc-dialog":t,o=e.zIndex,r=e.visible,i=void 0!==r&&r,a=e.keyboard,s=void 0===a||a,l=e.focusTriggerAfterClose,c=void 0===l||l,u=e.wrapStyle,d=e.wrapClassName,f=e.wrapProps,h=e.onClose,m=e.afterOpenChange,g=e.afterClose,v=e.transitionName,b=e.animation,y=e.closable,x=void 0===y||y,w=e.mask,C=void 0===w||w,S=e.maskTransitionName,E=e.maskAnimation,k=e.maskClosable,$=void 0===k||k,_=e.maskStyle,O=e.maskProps,j=e.rootClassName,M=e.classNames,P=e.styles,I=(0,p.useRef)(),N=(0,p.useRef)(),T=(0,p.useRef)(),R=Ge(p.useState(i),2),A=R[0],D=R[1],B=Bu();function L(e){null==h||h(e)}var z=(0,p.useRef)(!1),F=(0,p.useRef)(),H=null;return $&&(H=function(e){z.current?z.current=!1:N.current===e.target&&L(e)}),(0,p.useEffect)((function(){i&&(D(!0),Je(N.current,document.activeElement)||(I.current=document.activeElement))}),[i]),(0,p.useEffect)((function(){return function(){clearTimeout(F.current)}}),[]),p.createElement("div",hn({className:oi()("".concat(n,"-root"),j)},Vu(e,{data:!0})),p.createElement(Qu,{prefixCls:n,visible:C&&i,motionName:Wu(n,S,E),style:$e($e({zIndex:o},_),null==P?void 0:P.mask),maskProps:O,className:null==M?void 0:M.mask}),p.createElement("div",hn({tabIndex:-1,onKeyDown:function(e){if(s&&e.keyCode===Is.ESC)return e.stopPropagation(),void L(e);i&&e.keyCode===Is.TAB&&T.current.changeActive(!e.shiftKey)},className:oi()("".concat(n,"-wrap"),d,null==M?void 0:M.wrapper),ref:N,onClick:H,style:$e($e($e({zIndex:o},u),null==P?void 0:P.wrapper),{},{display:A?null:"none"})},f),p.createElement(Zu,hn({},e,{onMouseDown:function(){clearTimeout(F.current),z.current=!0},onMouseUp:function(){F.current=setTimeout((function(){z.current=!1}))},ref:T,closable:x,ariaId:B,prefixCls:n,visible:i&&A,onClose:L,onVisibleChanged:function(e){if(e)Je(N.current,document.activeElement)||null===(t=T.current)||void 0===t||t.focus();else{if(D(!1),C&&I.current&&c){try{I.current.focus({preventScroll:!0})}catch(e){}I.current=null}A&&(null==g||g())}var t;null==m||m(e)},motionName:Wu(n,v,b)}))))}var ed=function(e){var t=e.visible,n=e.getContainer,o=e.forceRender,r=e.destroyOnClose,i=void 0!==r&&r,a=e.afterClose,s=e.panelRef,l=Ge(p.useState(t),2),c=l[0],u=l[1],d=p.useMemo((function(){return{panel:s}}),[s]);return p.useEffect((function(){t&&u(!0)}),[t]),o||!i||c?p.createElement(Ru.Provider,{value:d},p.createElement(Tu,{open:t||o||c,autoDestroy:!1,getContainer:n,autoLock:t||c},p.createElement(Ju,hn({},e,{destroyOnClose:i,afterClose:function(){null==a||a(),u(!1)}})))):null};ed.displayName="Dialog";const td=ed;var nd="RC_FORM_INTERNAL_HOOKS",od=function(){bt(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")};const rd=p.createContext({getFieldValue:od,getFieldsValue:od,getFieldError:od,getFieldWarning:od,getFieldsError:od,isFieldsTouched:od,isFieldTouched:od,isFieldValidating:od,isFieldsValidating:od,resetFields:od,setFields:od,setFieldValue:od,setFieldsValue:od,validateFields:od,submit:od,getInternalHooks:function(){return od(),{dispatch:od,initEntityValue:od,registerField:od,useSubscribe:od,setInitialValues:od,destroyForm:od,setCallbacks:od,registerWatch:od,getFields:od,setValidateMessages:od,setPreserve:od,getInitialValue:od}}}),id=p.createContext(null);function ad(e){return null==e?[]:Array.isArray(e)?e:[e]}function sd(){return sd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},sd.apply(this,arguments)}function ld(e){return ld=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ld(e)}function cd(e,t){return cd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},cd(e,t)}function ud(e,t,n){return ud=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct.bind():function(e,t,n){var o=[null];o.push.apply(o,t);var r=new(Function.bind.apply(e,o));return n&&cd(r,n.prototype),r},ud.apply(null,arguments)}function dd(e){var t="function"==typeof Map?new Map:void 0;return dd=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,o)}function o(){return ud(e,arguments,ld(this).constructor)}return o.prototype=Object.create(e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),cd(o,e)},dd(e)}var fd=/%[sdj%]/g;function pd(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function hd(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r=0,i=n.length;return"function"==typeof e?e.apply(null,n):"string"==typeof e?e.replace(fd,(function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}break;default:return e}})):e}function md(e,t){return null==e||!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e)}function gd(e,t,n){var o=0,r=e.length;!function i(a){if(a&&a.length)n(a);else{var s=o;o+=1,s<r?t(e[s],i):n([])}}([])}"undefined"!=typeof process&&process.env;var vd=function(e){var t,n;function o(t,n){var o;return(o=e.call(this,"Async Validation Error")||this).errors=t,o.fields=n,o}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,cd(t,n),o}(dd(Error));function bd(e,t){return function(n){var o,r;return o=e.fullFields?function(e,t){for(var n=e,o=0;o<t.length;o++){if(null==n)return n;n=n[t[o]]}return n}(t,e.fullFields):t[n.field||e.fullField],(r=n)&&void 0!==r.message?(n.field=n.field||e.fullField,n.fieldValue=o,n):{message:"function"==typeof n?n():n,fieldValue:o,field:n.field||e.fullField}}}function yd(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];"object"==typeof o&&"object"==typeof e[n]?e[n]=sd({},e[n],o):e[n]=o}return e}var xd,wd=function(e,t,n,o,r,i){!e.required||n.hasOwnProperty(e.field)&&!md(t,i||e.type)||o.push(hd(r.messages.required,e.fullField))},Cd=/^(([^<>()\[\]\\.,;:\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,}))$/,Sd=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,Ed={integer:function(e){return Ed.number(e)&&parseInt(e,10)===e},float:function(e){return Ed.number(e)&&!Ed.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"==typeof e&&!Ed.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(Cd)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(xd)return xd;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+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}",o="[a-fA-F\\d]{1,4}",r=("\n(?:\n(?:"+o+":){7}(?:"+o+"|:)|                                    // 1:2:3:4:5:6:7::  1:2:3:4:5:6:7:8\n(?:"+o+":){6}(?:"+n+"|:"+o+"|:)|                             // 1:2:3:4:5:6::    1:2:3:4:5:6::8   1:2:3:4:5:6::8  1:2:3:4:5:6::1.2.3.4\n(?:"+o+":){5}(?::"+n+"|(?::"+o+"){1,2}|:)|                   // 1:2:3:4:5::      1:2:3:4:5::7:8   1:2:3:4:5::8    1:2:3:4:5::7:1.2.3.4\n(?:"+o+":){4}(?:(?::"+o+"){0,1}:"+n+"|(?::"+o+"){1,3}|:)| // 1:2:3:4::        1:2:3:4::6:7:8   1:2:3:4::8      1:2:3:4::6:7:1.2.3.4\n(?:"+o+":){3}(?:(?::"+o+"){0,2}:"+n+"|(?::"+o+"){1,4}|:)| // 1:2:3::          1:2:3::5:6:7:8   1:2:3::8        1:2:3::5:6:7:1.2.3.4\n(?:"+o+":){2}(?:(?::"+o+"){0,3}:"+n+"|(?::"+o+"){1,5}|:)| // 1:2::            1:2::4:5:6:7:8   1:2::8          1:2::4:5:6:7:1.2.3.4\n(?:"+o+":){1}(?:(?::"+o+"){0,4}:"+n+"|(?::"+o+"){1,6}|:)| // 1::              1::3:4:5:6:7:8   1::8            1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::"+o+"){0,5}:"+n+"|(?::"+o+"){1,7}|:))             // ::2:3:4:5:6:7:8  ::2:3:4:5:6:7:8  ::8             ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})?                                             // %eth0            %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+n+"$)|(?:^"+r+"$)"),a=new RegExp("^"+n+"$"),s=new RegExp("^"+r+"$"),l=function(e){return e&&e.exact?i:new RegExp("(?:"+t(e)+n+t(e)+")|(?:"+t(e)+r+t(e)+")","g")};l.v4=function(e){return e&&e.exact?a:new RegExp(""+t(e)+n+t(e),"g")},l.v6=function(e){return e&&e.exact?s:new RegExp(""+t(e)+r+t(e),"g")};var c=l.v4().source,u=l.v6().source;return xd=new RegExp("(?:^(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|"+c+"|"+u+'|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?$)',"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(Sd)}},kd="enum",$d=wd,_d=function(e,t,n,o,r){(/^\s+$/.test(t)||""===t)&&o.push(hd(r.messages.whitespace,e.fullField))},Od=function(e,t,n,o,r){if(e.required&&void 0===t)wd(e,t,n,o,r);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?Ed[i](t)||o.push(hd(r.messages.types[i],e.fullField,e.type)):i&&typeof t!==e.type&&o.push(hd(r.messages.types[i],e.fullField,e.type))}},jd=function(e,t,n,o,r){var i="number"==typeof e.len,a="number"==typeof e.min,s="number"==typeof e.max,l=t,c=null,u="number"==typeof t,d="string"==typeof t,f=Array.isArray(t);if(u?c="number":d?c="string":f&&(c="array"),!c)return!1;f&&(l=t.length),d&&(l=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?l!==e.len&&o.push(hd(r.messages[c].len,e.fullField,e.len)):a&&!s&&l<e.min?o.push(hd(r.messages[c].min,e.fullField,e.min)):s&&!a&&l>e.max?o.push(hd(r.messages[c].max,e.fullField,e.max)):a&&s&&(l<e.min||l>e.max)&&o.push(hd(r.messages[c].range,e.fullField,e.min,e.max))},Md=function(e,t,n,o,r){e[kd]=Array.isArray(e[kd])?e[kd]:[],-1===e[kd].indexOf(t)&&o.push(hd(r.messages[kd],e.fullField,e[kd].join(", ")))},Pd=function(e,t,n,o,r){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||o.push(hd(r.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"==typeof e.pattern&&(new RegExp(e.pattern).test(t)||o.push(hd(r.messages.pattern.mismatch,e.fullField,t,e.pattern))))},Id=function(e,t,n,o,r){var i=e.type,a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(md(t,i)&&!e.required)return n();$d(e,t,o,a,r,i),md(t,i)||Od(e,t,o,a,r)}n(a)},Nd={string:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(md(t,"string")&&!e.required)return n();$d(e,t,o,i,r,"string"),md(t,"string")||(Od(e,t,o,i,r),jd(e,t,o,i,r),Pd(e,t,o,i,r),!0===e.whitespace&&_d(e,t,o,i,r))}n(i)},method:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(md(t)&&!e.required)return n();$d(e,t,o,i,r),void 0!==t&&Od(e,t,o,i,r)}n(i)},number:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(""===t&&(t=void 0),md(t)&&!e.required)return n();$d(e,t,o,i,r),void 0!==t&&(Od(e,t,o,i,r),jd(e,t,o,i,r))}n(i)},boolean:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(md(t)&&!e.required)return n();$d(e,t,o,i,r),void 0!==t&&Od(e,t,o,i,r)}n(i)},regexp:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(md(t)&&!e.required)return n();$d(e,t,o,i,r),md(t)||Od(e,t,o,i,r)}n(i)},integer:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(md(t)&&!e.required)return n();$d(e,t,o,i,r),void 0!==t&&(Od(e,t,o,i,r),jd(e,t,o,i,r))}n(i)},float:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(md(t)&&!e.required)return n();$d(e,t,o,i,r),void 0!==t&&(Od(e,t,o,i,r),jd(e,t,o,i,r))}n(i)},array:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();$d(e,t,o,i,r,"array"),null!=t&&(Od(e,t,o,i,r),jd(e,t,o,i,r))}n(i)},object:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(md(t)&&!e.required)return n();$d(e,t,o,i,r),void 0!==t&&Od(e,t,o,i,r)}n(i)},enum:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(md(t)&&!e.required)return n();$d(e,t,o,i,r),void 0!==t&&Md(e,t,o,i,r)}n(i)},pattern:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(md(t,"string")&&!e.required)return n();$d(e,t,o,i,r),md(t,"string")||Pd(e,t,o,i,r)}n(i)},date:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(md(t,"date")&&!e.required)return n();var a;$d(e,t,o,i,r),md(t,"date")||(a=t instanceof Date?t:new Date(t),Od(e,a,o,i,r),a&&jd(e,a.getTime(),o,i,r))}n(i)},url:Id,hex:Id,email:Id,required:function(e,t,n,o,r){var i=[],a=Array.isArray(t)?"array":typeof t;$d(e,t,o,i,r,a),n(i)},any:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(md(t)&&!e.required)return n();$d(e,t,o,i,r)}n(i)}};function Td(){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 e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var Rd=Td(),Ad=function(){function e(e){this.rules=null,this._messages=Rd,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var o=e[n];t.rules[n]=Array.isArray(o)?o:[o]}))},t.messages=function(e){return e&&(this._messages=yd(Td(),e)),this._messages},t.validate=function(t,n,o){var r=this;void 0===n&&(n={}),void 0===o&&(o=function(){});var i=t,a=n,s=o;if("function"==typeof a&&(s=a,a={}),!this.rules||0===Object.keys(this.rules).length)return s&&s(null,i),Promise.resolve(i);if(a.messages){var l=this.messages();l===Rd&&(l=Td()),yd(l,a.messages),a.messages=l}else a.messages=this.messages();var c={};(a.keys||Object.keys(this.rules)).forEach((function(e){var n=r.rules[e],o=i[e];n.forEach((function(n){var a=n;"function"==typeof a.transform&&(i===t&&(i=sd({},i)),o=i[e]=a.transform(o)),(a="function"==typeof a?{validator:a}:sd({},a)).validator=r.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=r.getType(a),c[e]=c[e]||[],c[e].push({rule:a,value:o,source:i,field:e}))}))}));var u={};return function(e,t,n,o,r){if(t.first){var i=new Promise((function(t,i){var a=function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n]||[])})),t}(e);gd(a,n,(function(e){return o(e),e.length?i(new vd(e,pd(e))):t(r)}))}));return i.catch((function(e){return e})),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],d=new Promise((function(t,i){var d=function(e){if(u.push.apply(u,e),++c===l)return o(u),u.length?i(new vd(u,pd(u))):t(r)};s.length||(o(u),t(r)),s.forEach((function(t){var o=e[t];-1!==a.indexOf(t)?gd(o,n,d):function(e,t,n){var o=[],r=0,i=e.length;function a(e){o.push.apply(o,e||[]),++r===i&&n(o)}e.forEach((function(e){t(e,a)}))}(o,n,d)}))}));return d.catch((function(e){return e})),d}(c,a,(function(t,n){var o,r=t.rule,s=!("object"!==r.type&&"array"!==r.type||"object"!=typeof r.fields&&"object"!=typeof r.defaultField);function l(e,t){return sd({},t,{fullField:r.fullField+"."+e,fullFields:r.fullFields?[].concat(r.fullFields,[e]):[e]})}function c(o){void 0===o&&(o=[]);var c=Array.isArray(o)?o:[o];!a.suppressWarning&&c.length&&e.warning("async-validator:",c),c.length&&void 0!==r.message&&(c=[].concat(r.message));var d=c.map(bd(r,i));if(a.first&&d.length)return u[r.field]=1,n(d);if(s){if(r.required&&!t.value)return void 0!==r.message?d=[].concat(r.message).map(bd(r,i)):a.error&&(d=[a.error(r,hd(a.messages.required,r.field))]),n(d);var f={};r.defaultField&&Object.keys(t.value).map((function(e){f[e]=r.defaultField})),f=sd({},f,t.rule.fields);var p={};Object.keys(f).forEach((function(e){var t=f[e],n=Array.isArray(t)?t:[t];p[e]=n.map(l.bind(null,e))}));var h=new e(p);h.messages(a.messages),t.rule.options&&(t.rule.options.messages=a.messages,t.rule.options.error=a.error),h.validate(t.value,t.rule.options||a,(function(e){var t=[];d&&d.length&&t.push.apply(t,d),e&&e.length&&t.push.apply(t,e),n(t.length?t:null)}))}else n(d)}if(s=s&&(r.required||!r.required&&t.value),r.field=t.field,r.asyncValidator)o=r.asyncValidator(r,t.value,c,t.source,a);else if(r.validator){try{o=r.validator(r,t.value,c,t.source,a)}catch(e){null==console.error||console.error(e),a.suppressValidatorError||setTimeout((function(){throw e}),0),c(e.message)}!0===o?c():!1===o?c("function"==typeof r.message?r.message(r.fullField||r.field):r.message||(r.fullField||r.field)+" fails"):o instanceof Array?c(o):o instanceof Error&&c(o.message)}o&&o.then&&o.then((function(){return c()}),(function(e){return c(e)}))}),(function(e){!function(e){for(var t,n,o=[],r={},a=0;a<e.length;a++)t=e[a],n=void 0,Array.isArray(t)?o=(n=o).concat.apply(n,t):o.push(t);o.length?(r=pd(o),s(o,r)):s(null,i)}(e)}),i)},t.getType=function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!Nd.hasOwnProperty(e.type))throw new Error(hd("Unknown rule type %s",e.type));return e.type||"string"},t.getValidationMethod=function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?Nd.required:Nd[this.getType(e)]||void 0},e}();Ad.register=function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");Nd[e]=t},Ad.warning=function(){},Ad.messages=Rd,Ad.validators=Nd;var Dd="'${name}' is not a valid ${type}",Bd={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:Dd,method:Dd,array:Dd,object:Dd,number:Dd,date:Dd,boolean:Dd,integer:Dd,float:Dd,regexp:Dd,email:Dd,url:Dd,hex:Dd},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}"}},Ld=Ad;function zd(e,t){return e.replace(/\$\{\w+\}/g,(function(e){var n=e.slice(2,-1);return t[n]}))}var Fd="CODE_LOGIC_ERROR";function Hd(_x,e,t,n,o){return Vd.apply(this,arguments)}function Vd(){return Vd=Ce(xe().mark((function e(t,n,o,r,i){var a,s,l,c,u,d,f,h,m;return xe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete(a=$e({},o)).ruleIndex,Ld.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(Fd)}}),l=null,a&&"array"===a.type&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new Ld(Ee({},t,[a])),u=Ao(Bd,r.validateMessages),c.messages(u),d=[],e.prev=10,e.next=13,Promise.resolve(c.validate(Ee({},t,n),$e({},r)));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(10),e.t0.errors&&(d=e.t0.errors.map((function(e,t){var n=e.message,o=n===Fd?u.default:n;return p.isValidElement(o)?p.cloneElement(o,{key:"error_".concat(t)}):o})));case 18:if(d.length||!l){e.next=23;break}return e.next=21,Promise.all(n.map((function(e,n){return Hd("".concat(t,".").concat(n),e,l,r,i)})));case 21:return f=e.sent,e.abrupt("return",f.reduce((function(e,t){return[].concat(Ye(e),Ye(t))}),[]));case 23:return h=$e($e({},o),{},{name:t,enum:(o.enum||[]).join(", ")},i),m=d.map((function(e){return"string"==typeof e?zd(e,h):e})),e.abrupt("return",m);case 26:case"end":return e.stop()}}),e,null,[[10,15]])}))),Vd.apply(this,arguments)}function Wd(e,t,n,o,r,i){var a,s=e.join("."),l=n.map((function(e,t){var n=e.validator,o=$e($e({},e),{},{ruleIndex:t});return n&&(o.validator=function(e,t,o){var r=!1,i=n(e,t,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then((function(){bt(!r,"Your validator function has already return a promise. `callback` will be ignored."),r||o.apply(void 0,t)}))}));r=i&&"function"==typeof i.then&&"function"==typeof i.catch,bt(r,"`callback` is deprecated. Please return a promise instead."),r&&i.then((function(){o()})).catch((function(e){o(e||" ")}))}),o})).sort((function(e,t){var n=e.warningOnly,o=e.ruleIndex,r=t.warningOnly,i=t.ruleIndex;return!!n==!!r?o-i:n?1:-1}));if(!0===r)a=new Promise(function(){var e=Ce(xe().mark((function e(n,r){var a,c,u;return xe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=0;case 1:if(!(a<l.length)){e.next=12;break}return c=l[a],e.next=5,Hd(s,t,c,o,i);case 5:if(!(u=e.sent).length){e.next=9;break}return r([{errors:u,rule:c}]),e.abrupt("return");case 9:a+=1,e.next=1;break;case 12:n([]);case 13:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}());else{var c=l.map((function(e){return Hd(s,t,e,o,i).then((function(t){return{errors:t,rule:e}}))}));a=(r?function(e){return qd.apply(this,arguments)}(c):function(e){return Kd.apply(this,arguments)}(c)).then((function(e){return Promise.reject(e)}))}return a.catch((function(e){return e})),a}function Kd(){return(Kd=Ce(xe().mark((function e(t){return xe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then((function(e){var t;return(t=[]).concat.apply(t,Ye(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function qd(){return qd=Ce(xe().mark((function e(t){var n;return xe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise((function(e){t.forEach((function(o){o.then((function(o){o.errors.length&&e([o]),(n+=1)===t.length&&e([])}))}))})));case 2:case"end":return e.stop()}}),e)}))),qd.apply(this,arguments)}function Ud(e){return ad(e)}function Gd(e,t){var n={};return t.forEach((function(t){var o=Po(e,t);n=No(n,t,o)})),n}function Xd(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return Yd(t,e,n)}))}function Yd(e,t){return!(!e||!t)&&!(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&e.length!==t.length)&&t.every((function(t,n){return e[n]===t}))}function Zd(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===ye(t.target)&&e in t.target?t.target[e]:t}function Qd(e,t,n){var o=e.length;if(t<0||t>=o||n<0||n>=o)return e;var r=e[t],i=t-n;return i>0?[].concat(Ye(e.slice(0,n)),[r],Ye(e.slice(n,t)),Ye(e.slice(t+1,o))):i<0?[].concat(Ye(e.slice(0,t)),Ye(e.slice(t+1,n+1)),[r],Ye(e.slice(n+1,o))):e}var Jd=["name"],ef=[];function tf(e,t,n,o,r,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):o!==r}var nf=function(e){gi(n,e);var t=wi(n);function n(e){var o;return xt(this,n),Ee(yi(o=t.call(this,e)),"state",{resetCount:0}),Ee(yi(o),"cancelRegisterFunc",null),Ee(yi(o),"mounted",!1),Ee(yi(o),"touched",!1),Ee(yi(o),"dirty",!1),Ee(yi(o),"validatePromise",void 0),Ee(yi(o),"prevValidating",void 0),Ee(yi(o),"errors",ef),Ee(yi(o),"warnings",ef),Ee(yi(o),"cancelRegister",(function(){var e=o.props,t=e.preserve,n=e.isListField,r=e.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(n,t,Ud(r)),o.cancelRegisterFunc=null})),Ee(yi(o),"getNamePath",(function(){var e=o.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(Ye(void 0===n?[]:n),Ye(t)):[]})),Ee(yi(o),"getRules",(function(){var e=o.props,t=e.rules,n=void 0===t?[]:t,r=e.fieldContext;return n.map((function(e){return"function"==typeof e?e(r):e}))})),Ee(yi(o),"refresh",(function(){o.mounted&&o.setState((function(e){return{resetCount:e.resetCount+1}}))})),Ee(yi(o),"metaCache",null),Ee(yi(o),"triggerMetaEvent",(function(e){var t=o.props.onMetaChange;if(t){var n=$e($e({},o.getMeta()),{},{destroy:e});yt(o.metaCache,n)||t(n),o.metaCache=n}else o.metaCache=null})),Ee(yi(o),"onStoreChange",(function(e,t,n){var r=o.props,i=r.shouldUpdate,a=r.dependencies,s=void 0===a?[]:a,l=r.onReset,c=n.store,u=o.getNamePath(),d=o.getValue(e),f=o.getValue(c),p=t&&Xd(t,u);switch("valueUpdate"===n.type&&"external"===n.source&&d!==f&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=ef,o.warnings=ef,o.triggerMetaEvent()),n.type){case"reset":if(!t||p)return o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=ef,o.warnings=ef,o.triggerMetaEvent(),null==l||l(),void o.refresh();break;case"remove":if(i)return void o.reRender();break;case"setField":var h=n.data;if(p)return"touched"in h&&(o.touched=h.touched),"validating"in h&&!("originRCField"in h)&&(o.validatePromise=h.validating?Promise.resolve([]):null),"errors"in h&&(o.errors=h.errors||ef),"warnings"in h&&(o.warnings=h.warnings||ef),o.dirty=!0,o.triggerMetaEvent(),void o.reRender();if("value"in h&&Xd(t,u,!0))return void o.reRender();if(i&&!u.length&&tf(i,e,c,d,f,n))return void o.reRender();break;case"dependenciesUpdate":if(s.map(Ud).some((function(e){return Xd(n.relatedFields,e)})))return void o.reRender();break;default:if(p||(!s.length||u.length||i)&&tf(i,e,c,d,f,n))return void o.reRender()}!0===i&&o.reRender()})),Ee(yi(o),"validateRules",(function(e){var t=o.getNamePath(),n=o.getValue(),r=e||{},i=r.triggerName,a=r.validateOnly,s=void 0!==a&&a,l=Promise.resolve().then(Ce(xe().mark((function r(){var a,s,c,u,d,f,p;return xe().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o.mounted){r.next=2;break}return r.abrupt("return",[]);case 2:if(a=o.props,s=a.validateFirst,c=void 0!==s&&s,u=a.messageVariables,d=a.validateDebounce,f=o.getRules(),i&&(f=f.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||ad(t).includes(i)}))),!d||!i){r.next=10;break}return r.next=8,new Promise((function(e){setTimeout(e,d)}));case 8:if(o.validatePromise===l){r.next=10;break}return r.abrupt("return",[]);case 10:return(p=Wd(t,n,f,e,c,u)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ef;if(o.validatePromise===l){var t;o.validatePromise=null;var n=[],r=[];null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,o=e.errors,i=void 0===o?ef:o;t?r.push.apply(r,Ye(i)):n.push.apply(n,Ye(i))})),o.errors=n,o.warnings=r,o.triggerMetaEvent(),o.reRender()}})),r.abrupt("return",p);case 13:case"end":return r.stop()}}),r)}))));return s||(o.validatePromise=l,o.dirty=!0,o.errors=ef,o.warnings=ef,o.triggerMetaEvent(),o.reRender()),l})),Ee(yi(o),"isFieldValidating",(function(){return!!o.validatePromise})),Ee(yi(o),"isFieldTouched",(function(){return o.touched})),Ee(yi(o),"isFieldDirty",(function(){return!(!o.dirty&&void 0===o.props.initialValue)||void 0!==(0,o.props.fieldContext.getInternalHooks(nd).getInitialValue)(o.getNamePath())})),Ee(yi(o),"getErrors",(function(){return o.errors})),Ee(yi(o),"getWarnings",(function(){return o.warnings})),Ee(yi(o),"isListField",(function(){return o.props.isListField})),Ee(yi(o),"isList",(function(){return o.props.isList})),Ee(yi(o),"isPreserve",(function(){return o.props.preserve})),Ee(yi(o),"getMeta",(function(){return o.prevValidating=o.isFieldValidating(),{touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:null===o.validatePromise}})),Ee(yi(o),"getOnlyChild",(function(e){if("function"==typeof e){var t=o.getMeta();return $e($e({},o.getOnlyChild(e(o.getControlled(),t,o.props.fieldContext))),{},{isFunction:!0})}var n=hc(e);return 1===n.length&&p.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}})),Ee(yi(o),"getValue",(function(e){var t=o.props.fieldContext.getFieldsValue,n=o.getNamePath();return Po(e||t(!0),n)})),Ee(yi(o),"getControlled",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=o.props,n=t.trigger,r=t.validateTrigger,i=t.getValueFromEvent,a=t.normalize,s=t.valuePropName,l=t.getValueProps,c=t.fieldContext,u=void 0!==r?r:c.validateTrigger,d=o.getNamePath(),f=c.getInternalHooks,p=c.getFieldsValue,h=f(nd).dispatch,m=o.getValue(),g=l||function(e){return Ee({},s,e)},v=e[n],b=$e($e({},e),g(m));return b[n]=function(){var e;o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e=i?i.apply(void 0,n):Zd.apply(void 0,[s].concat(n)),a&&(e=a(e,m,p(!0))),h({type:"updateValue",namePath:d,value:e}),v&&v.apply(void 0,n)},ad(u||[]).forEach((function(e){var t=b[e];b[e]=function(){t&&t.apply(void 0,arguments);var n=o.props.rules;n&&n.length&&h({type:"validateField",namePath:d,triggerName:e})}})),b})),e.fieldContext&&(0,(0,e.fieldContext.getInternalHooks)(nd).initEntityValue)(yi(o)),o}return Ct(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var o=(0,n.getInternalHooks)(nd).registerField;this.cancelRegisterFunc=o(this)}!0===t&&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 e,t=this.state.resetCount,n=this.props.children,o=this.getOnlyChild(n),r=o.child;return o.isFunction?e=r:p.isValidElement(r)?e=p.cloneElement(r,this.getControlled(r.props)):(bt(!r,"`children` of Field is not validate ReactElement."),e=r),p.createElement(p.Fragment,{key:t},e)}}]),n}(p.Component);Ee(nf,"contextType",rd),Ee(nf,"defaultProps",{trigger:"onChange",valuePropName:"value"});const of=function(e){var t=e.name,n=di(e,Jd),o=p.useContext(rd),r=p.useContext(id),i=void 0!==t?Ud(t):void 0,a="keep";return n.isListField||(a="_".concat((i||[]).join("_"))),p.createElement(nf,hn({key:a,name:i,isListField:!!r},n,{fieldContext:o}))};var rf="__@field_split__";function af(e){return e.map((function(e){return"".concat(ye(e),":").concat(e)})).join(rf)}var sf=function(){function e(){xt(this,e),Ee(this,"kvs",new Map)}return Ct(e,[{key:"set",value:function(e,t){this.kvs.set(af(e),t)}},{key:"get",value:function(e){return this.kvs.get(af(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(af(e))}},{key:"map",value:function(e){return Ye(this.kvs.entries()).map((function(t){var n=Ge(t,2),o=n[0],r=n[1],i=o.split(rf);return e({key:i.map((function(e){var t=Ge(e.match(/^([^:]*):(.*)$/),3),n=t[1],o=t[2];return"number"===n?Number(o):o})),value:r})}))}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.key,o=t.value;return e[n.join(".")]=o,null})),e}}]),e}();const lf=sf;var cf=["name"],uf=Ct((function e(t){var n=this;xt(this,e),Ee(this,"formHooked",!1),Ee(this,"forceRootUpdate",void 0),Ee(this,"subscribable",!0),Ee(this,"store",{}),Ee(this,"fieldEntities",[]),Ee(this,"initialValues",{}),Ee(this,"callbacks",{}),Ee(this,"validateMessages",null),Ee(this,"preserve",null),Ee(this,"lastValidatePromise",null),Ee(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}})),Ee(this,"getInternalHooks",(function(e){return e===nd?(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}):(bt(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),Ee(this,"useSubscribe",(function(e){n.subscribable=e})),Ee(this,"prevWithoutPreserves",null),Ee(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var o,r=Ao(e,n.store);null===(o=n.prevWithoutPreserves)||void 0===o||o.map((function(t){var n=t.key;r=No(r,n,Po(e,n))})),n.prevWithoutPreserves=null,n.updateStore(r)}})),Ee(this,"destroyForm",(function(){var e=new lf;n.getFieldEntities(!0).forEach((function(t){n.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)})),n.prevWithoutPreserves=e})),Ee(this,"getInitialValue",(function(e){var t=Po(n.initialValues,e);return e.length?Ao(t):t})),Ee(this,"setCallbacks",(function(e){n.callbacks=e})),Ee(this,"setValidateMessages",(function(e){n.validateMessages=e})),Ee(this,"setPreserve",(function(e){n.preserve=e})),Ee(this,"watchList",[]),Ee(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),Ee(this,"notifyWatch",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),o=n.getFieldsValue(!0);n.watchList.forEach((function(n){n(t,o,e)}))}})),Ee(this,"timeoutId",null),Ee(this,"warningUnhooked",(function(){})),Ee(this,"updateStore",(function(e){n.store=e})),Ee(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),Ee(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new lf;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),Ee(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=Ud(e);return t.get(n)||{INVALIDATE_NAME_PATH:Ud(e)}}))})),Ee(this,"getFieldsValue",(function(e,t){var o,r,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(o=e,r=t):e&&"object"===ye(e)&&(i=e.strict,r=e.filter),!0===o&&!r)return n.store;var a=n.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),s=[];return a.forEach((function(e){var t,n,a,l,c="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!==(a=(l=e).isList)&&void 0!==a&&a.call(l))return}else if(!o&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(r){var u="getMeta"in e?e.getMeta():null;r(u)&&s.push(c)}else s.push(c)})),Gd(n.store,s.map(Ud))})),Ee(this,"getFieldValue",(function(e){n.warningUnhooked();var t=Ud(e);return Po(n.store,t)})),Ee(this,"getFieldsError",(function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map((function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:Ud(e[n]),errors:[],warnings:[]}}))})),Ee(this,"getFieldError",(function(e){n.warningUnhooked();var t=Ud(e);return n.getFieldsError([t])[0].errors})),Ee(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=Ud(e);return n.getFieldsError([t])[0].warnings})),Ee(this,"isFieldsTouched",(function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var r,i=t[0],a=t[1],s=!1;0===t.length?r=null:1===t.length?Array.isArray(i)?(r=i.map(Ud),s=!1):(r=null,s=i):(r=i.map(Ud),s=a);var l=n.getFieldEntities(!0),c=function(e){return e.isFieldTouched()};if(!r)return s?l.every(c):l.some(c);var u=new lf;r.forEach((function(e){u.set(e,[])})),l.forEach((function(e){var t=e.getNamePath();r.forEach((function(n){n.every((function(e,n){return t[n]===e}))&&u.update(n,(function(t){return[].concat(Ye(t),[e])}))}))}));var d=function(e){return e.some(c)},f=u.map((function(e){return e.value}));return s?f.every(d):f.some(d)})),Ee(this,"isFieldTouched",(function(e){return n.warningUnhooked(),n.isFieldsTouched([e])})),Ee(this,"isFieldsValidating",(function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some((function(e){return e.isFieldValidating()}));var o=e.map(Ud);return t.some((function(e){var t=e.getNamePath();return Xd(o,t)&&e.isFieldValidating()}))})),Ee(this,"isFieldValidating",(function(e){return n.warningUnhooked(),n.isFieldsValidating([e])})),Ee(this,"resetWithFieldInitialValue",(function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=new lf,r=n.getFieldEntities(!0);r.forEach((function(e){var t=e.props.initialValue,n=e.getNamePath();if(void 0!==t){var r=o.get(n)||new Set;r.add({entity:e,value:t}),o.set(n,r)}})),t.entities?e=t.entities:t.namePathList?(e=[],t.namePathList.forEach((function(t){var n,r=o.get(t);r&&(n=e).push.apply(n,Ye(Ye(r).map((function(e){return e.entity}))))}))):e=r,e.forEach((function(e){if(void 0!==e.props.initialValue){var r=e.getNamePath();if(void 0!==n.getInitialValue(r))bt(!1,"Form already set 'initialValues' with path '".concat(r.join("."),"'. Field can not overwrite it."));else{var i=o.get(r);if(i&&i.size>1)bt(!1,"Multiple Field with path '".concat(r.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=n.getFieldValue(r);e.isListField()||t.skipExist&&void 0!==a||n.updateStore(No(n.store,r,Ye(i)[0].value))}}}}))})),Ee(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(Ao(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var o=e.map(Ud);o.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(No(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(t,o,{type:"reset"}),n.notifyWatch(o)})),Ee(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,o=[];e.forEach((function(e){var r=e.name,i=di(e,cf),a=Ud(r);o.push(a),"value"in i&&n.updateStore(No(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})})),n.notifyWatch(o)})),Ee(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),o=$e($e({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(o,"originRCField",{value:!0}),o}))})),Ee(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var o=e.getNamePath();void 0===Po(n.store,o)&&n.updateStore(No(n.store,o,t))}})),Ee(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),Ee(this,"registerField",(function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var o=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(o,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(o,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!n.isMergedPreserve(r)&&(!o||i.length>1)){var a=o?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every((function(e){return!Yd(e.getNamePath(),t)}))){var s=n.store;n.updateStore(No(s,t,a,!0)),n.notifyObservers(s,[t],{type:"remove"}),n.triggerDependenciesUpdate(s,t)}}n.notifyWatch([t])}})),Ee(this,"dispatch",(function(e){switch(e.type){case"updateValue":var t=e.namePath,o=e.value;n.updateValue(t,o);break;case"validateField":var r=e.namePath,i=e.triggerName;n.validateFields([r],{triggerName:i})}})),Ee(this,"notifyObservers",(function(e,t,o){if(n.subscribable){var r=$e($e({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,r)}))}else n.forceRootUpdate()})),Ee(this,"triggerDependenciesUpdate",(function(e,t){var o=n.getDependencyChildrenFields(t);return o.length&&n.validateFields(o),n.notifyObservers(e,o,{type:"dependenciesUpdate",relatedFields:[t].concat(Ye(o))}),o})),Ee(this,"updateValue",(function(e,t){var o=Ud(e),r=n.store;n.updateStore(No(n.store,o,t)),n.notifyObservers(r,[o],{type:"valueUpdate",source:"internal"}),n.notifyWatch([o]);var i=n.triggerDependenciesUpdate(r,o),a=n.callbacks.onValuesChange;a&&a(Gd(n.store,[o]),n.getFieldsValue()),n.triggerOnFieldsChange([o].concat(Ye(i)))})),Ee(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var o=Ao(n.store,e);n.updateStore(o)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),Ee(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t}])})),Ee(this,"getDependencyChildrenFields",(function(e){var t=new Set,o=[],r=new lf;return n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=Ud(t);r.update(n,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))})),function e(n){(r.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var r=n.getNamePath();n.isFieldDirty()&&r.length&&(o.push(r),e(r))}}))}(e),o})),Ee(this,"triggerOnFieldsChange",(function(e,t){var o=n.callbacks.onFieldsChange;if(o){var r=n.getFields();if(t){var i=new lf;t.forEach((function(e){var t=e.name,n=e.errors;i.set(t,n)})),r.forEach((function(e){e.errors=i.get(e.name)||e.errors}))}var a=r.filter((function(t){var n=t.name;return Xd(e,n)}));a.length&&o(a,r)}})),Ee(this,"validateFields",(function(e,t){var o,r;n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(o=e,r=t):r=e;var i=!!o,a=i?o.map(Ud):[],s=[],l=String(Date.now()),c=new Set,u=r||{},d=u.recursive,f=u.dirty;n.getFieldEntities(!0).forEach((function(e){if(i||a.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!f||e.isFieldDirty())){var t=e.getNamePath();if(c.add(t.join(l)),!i||Xd(a,t,d)){var o=e.validateRules($e({validateMessages:$e($e({},Bd),n.validateMessages)},r));s.push(o.then((function(){return{name:t,errors:[],warnings:[]}})).catch((function(e){var n,o=[],r=[];return null===(n=e.forEach)||void 0===n||n.call(e,(function(e){var t=e.rule.warningOnly,n=e.errors;t?r.push.apply(r,Ye(n)):o.push.apply(o,Ye(n))})),o.length?Promise.reject({name:t,errors:o,warnings:r}):{name:t,errors:o,warnings:r}})))}}}));var p=function(e){var t=!1,n=e.length,o=[];return e.length?new Promise((function(r,i){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,o[a]=e,n>0||(t&&i(o),r(o))}))}))})):Promise.resolve([])}(s);n.lastValidatePromise=p,p.catch((function(e){return e})).then((function(e){var t=e.map((function(e){return e.name}));n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)}));var h=p.then((function(){return n.lastValidatePromise===p?Promise.resolve(n.getFieldsValue(a)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(a),errorFields:t,outOfDate:n.lastValidatePromise!==p})}));h.catch((function(e){return e}));var m=a.filter((function(e){return c.has(e.join(l))}));return n.triggerOnFieldsChange(m),h})),Ee(this,"submit",(function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))})),this.forceRootUpdate=t}));const df=function(e){var t=p.useRef(),n=Ge(p.useState({}),2)[1];if(!t.current)if(e)t.current=e;else{var o=new uf((function(){n({})}));t.current=o.getForm()}return[t.current]};var ff=p.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}});const pf=ff;var hf=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"];const mf=function(e,t){var n=e.name,o=e.initialValues,r=e.fields,i=e.form,a=e.preserve,s=e.children,l=e.component,c=void 0===l?"form":l,u=e.validateMessages,d=e.validateTrigger,f=void 0===d?"onChange":d,h=e.onValuesChange,m=e.onFieldsChange,g=e.onFinish,v=e.onFinishFailed,b=di(e,hf),y=p.useContext(pf),x=Ge(df(i),1)[0],w=x.getInternalHooks(nd),C=w.useSubscribe,S=w.setInitialValues,E=w.setCallbacks,k=w.setValidateMessages,$=w.setPreserve,_=w.destroyForm;p.useImperativeHandle(t,(function(){return x})),p.useEffect((function(){return y.registerForm(n,x),function(){y.unregisterForm(n)}}),[y,x,n]),k($e($e({},y.validateMessages),u)),E({onValuesChange:h,onFieldsChange:function(e){if(y.triggerFormChange(n,e),m){for(var t=arguments.length,o=new Array(t>1?t-1:0),r=1;r<t;r++)o[r-1]=arguments[r];m.apply(void 0,[e].concat(o))}},onFinish:function(e){y.triggerFormFinish(n,e),g&&g(e)},onFinishFailed:v}),$(a);var O,j=p.useRef(null);S(o,!j.current),j.current||(j.current=!0),p.useEffect((function(){return _}),[]);var M="function"==typeof s;O=M?s(x.getFieldsValue(!0),x):s,C(!M);var P=p.useRef();p.useEffect((function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==ye(e)||"object"!==ye(t))return!1;var n=Object.keys(e),o=Object.keys(t);return Ye(new Set([].concat(n,o))).every((function(n){var o=e[n],r=t[n];return"function"==typeof o&&"function"==typeof r||o===r}))})(P.current||[],r||[])||x.setFields(r||[]),P.current=r}),[r,x]);var I=p.useMemo((function(){return $e($e({},x),{},{validateTrigger:f})}),[x,f]),N=p.createElement(id.Provider,{value:null},p.createElement(rd.Provider,{value:I},O));return!1===c?N:p.createElement(c,hn({},b,{onSubmit:function(e){e.preventDefault(),e.stopPropagation(),x.submit()},onReset:function(e){var t;e.preventDefault(),x.resetFields(),null===(t=b.onReset)||void 0===t||t.call(b,e)}}),N)};function gf(e){try{return JSON.stringify(e)}catch(e){return Math.random()}}var vf=p.forwardRef(mf);vf.FormProvider=function(e){var t=e.validateMessages,n=e.onFormChange,o=e.onFormFinish,r=e.children,i=p.useContext(ff),a=p.useRef({});return p.createElement(ff.Provider,{value:$e($e({},i),{},{validateMessages:$e($e({},i.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:a.current}),i.triggerFormChange(e,t)},triggerFormFinish:function(e,t){o&&o(e,{values:t,forms:a.current}),i.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(a.current=$e($e({},a.current),{},Ee({},e,t))),i.registerForm(e,t)},unregisterForm:function(e){var t=$e({},a.current);delete t[e],a.current=t,i.unregisterForm(e)}})},r)},vf.Field=of,vf.List=function(e){var t=e.name,n=e.initialValue,o=e.children,r=e.rules,i=e.validateTrigger,a=e.isListField,s=p.useContext(rd),l=p.useContext(id),c=p.useRef({keys:[],id:0}).current,u=p.useMemo((function(){var e=Ud(s.prefixName)||[];return[].concat(Ye(e),Ye(Ud(t)))}),[s.prefixName,t]),d=p.useMemo((function(){return $e($e({},s),{},{prefixName:u})}),[s,u]),f=p.useMemo((function(){return{getKey:function(e){var t=u.length,n=e[t];return[c.keys[n],e.slice(t+1)]}}}),[u]);return"function"!=typeof o?(bt(!1,"Form.List only accepts function as children."),null):p.createElement(id.Provider,{value:f},p.createElement(rd.Provider,{value:d},p.createElement(of,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:r,validateTrigger:i,initialValue:n,isList:!0,isListField:null!=a?a:!!l},(function(e,t){var n=e.value,r=void 0===n?[]:n,i=e.onChange,a=s.getFieldValue,l=function(){return a(u||[])||[]},d={add:function(e,t){var n=l();t>=0&&t<=n.length?(c.keys=[].concat(Ye(c.keys.slice(0,t)),[c.id],Ye(c.keys.slice(t))),i([].concat(Ye(n.slice(0,t)),[e],Ye(n.slice(t))))):(c.keys=[].concat(Ye(c.keys),[c.id]),i([].concat(Ye(n),[e]))),c.id+=1},remove:function(e){var t=l(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(c.keys=c.keys.filter((function(e,t){return!n.has(t)})),i(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=l();e<0||e>=n.length||t<0||t>=n.length||(c.keys=Qd(c.keys,e,t),i(Qd(n,e,t)))}}},f=r||[];return Array.isArray(f)||(f=[]),o(f.map((function(__,e){var t=c.keys[e];return void 0===t&&(c.keys[e]=c.id,t=c.keys[e],c.id+=1),{name:e,key:t,isListField:!0}})),d,t)}))))},vf.useForm=df,vf.useWatch=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t[0],r=t[1],i=void 0===r?{}:r,a=function(e){return e&&!!e._init}(i)?{form:i}:i,s=a.form,l=Ge((0,p.useState)(),2),c=l[0],u=l[1],d=(0,p.useMemo)((function(){return gf(c)}),[c]),f=(0,p.useRef)(d);f.current=d;var h=(0,p.useContext)(rd),m=s||h,g=m&&m._init,v=Ud(o),b=(0,p.useRef)(v);return b.current=v,(0,p.useEffect)((function(){if(g){var e=m.getFieldsValue,t=(0,m.getInternalHooks)(nd).registerWatch,n=function(e,t){var n=a.preserve?t:e;return"function"==typeof o?o(n):Po(n,b.current)},r=t((function(e,t){var o=n(e,t),r=gf(o);f.current!==r&&(f.current=r,u(o))})),i=n(e(),e(!0));return c!==i&&u(i),r}}),[g]),c};const bf=p.createContext({}),yf=e=>{let{children:t,status:n,override:o}=e;const r=(0,p.useContext)(bf),i=(0,p.useMemo)((()=>{const e=Object.assign({},r);return o&&delete e.isFormItemInput,n&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[n,o,r]);return p.createElement(bf.Provider,{value:i},t)},xf=(0,p.createContext)(void 0);function wf(){}const Cf=p.createContext({add:wf,remove:wf}),Sf=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=(0,p.useContext)(yu);return h().createElement(gu,Object.assign({onClick:n},e),t)},Ef=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:o,onOk:r}=(0,p.useContext)(yu);return h().createElement(gu,Object.assign({},_c(n),{loading:e,onClick:r},t),o)};function kf(e,t){return h().createElement("span",{className:`${e}-close-x`},t||h().createElement(ws,{className:`${e}-close-icon`}))}const $f=e=>{const{okText:t,okType:n="primary",cancelText:o,confirmLoading:r,onOk:i,onCancel:a,okButtonProps:s,cancelButtonProps:l,footer:c}=e,[u]=Ql("Modal",Xo()),d={confirmLoading:r,okButtonProps:s,cancelButtonProps:l,okTextLocale:t||(null==u?void 0:u.okText),cancelTextLocale:o||(null==u?void 0:u.cancelText),okType:n,onOk:i,onCancel:a},f=h().useMemo((()=>d),Ye(Object.values(d)));let p;return"function"==typeof c||void 0===c?(p=h().createElement(h().Fragment,null,h().createElement(Sf,null),h().createElement(Ef,null)),"function"==typeof c&&(p=c(p,{OkBtn:Ef,CancelBtn:Sf})),p=h().createElement(xu,{value:f},p)):p=c,h().createElement(Gr,{disabled:!1},p)},_f=e=>({animationDuration:e,animationFillMode:"both"}),Of=e=>({animationDuration:e,animationFillMode:"both"}),jf=function(e,t,n,o){const r=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n      ${r}${e}-enter,\n      ${r}${e}-appear\n    `]:Object.assign(Object.assign({},_f(o)),{animationPlayState:"paused"}),[`${r}${e}-leave`]:Object.assign(Object.assign({},Of(o)),{animationPlayState:"paused"}),[`\n      ${r}${e}-enter${e}-enter-active,\n      ${r}${e}-appear${e}-appear-active\n    `]:{animationName:t,animationPlayState:"running"},[`${r}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},Mf=new _o("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),Pf=new _o("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),If=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{antCls:n}=e,o=`${n}-fade`,r=t?"&":"";return[jf(o,Mf,Pf,e.motionDurationMid,t),{[`\n        ${r}${o}-enter,\n        ${r}${o}-appear\n      `]:{opacity:0,animationTimingFunction:"linear"},[`${r}${o}-leave`]:{animationTimingFunction:"linear"}}]},Nf=new _o("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Tf=new _o("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Rf=new _o("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Af=new _o("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Df=new _o("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Bf=new _o("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Lf={zoom:{inKeyframes:Nf,outKeyframes:Tf},"zoom-big":{inKeyframes:Rf,outKeyframes:Af},"zoom-big-fast":{inKeyframes:Rf,outKeyframes:Af},"zoom-left":{inKeyframes:new _o("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new _o("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new _o("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new _o("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:Df,outKeyframes:Bf},"zoom-down":{inKeyframes:new _o("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new _o("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},zf=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:i}=Lf[t];return[jf(o,r,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n        ${o}-enter,\n        ${o}-appear\n      `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};function Ff(e){return{position:e,inset:0}}const Hf=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({},Ff("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},Ff("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:If(e)}]},Vf=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:`${qt(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},Ia(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${qt(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:`${qt(e.modalCloseBtnSize)}`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.closeBtnHoverBg,textDecoration:"none"},"&:active":{backgroundColor:e.closeBtnActiveBg}},Aa(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${qt(e.borderRadiusLG)} ${qt(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}-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,\n          ${t}-body,\n          ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},Wf=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},Kf=e=>{const t=e.padding,n=e.fontSizeHeading5,o=e.lineHeightHeading5;return Js(e,{modalHeaderHeight:e.calc(e.calc(o).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalIconHoverColor:e.colorIconHover,modalCloseIconColor:e.colorIcon,modalCloseBtnSize:e.fontHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},qf=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,closeBtnHoverBg:e.wireframe?"transparent":e.colorFillContent,closeBtnActiveBg:e.wireframe?"transparent":e.colorFillContentHover,contentPadding:e.wireframe?0:`${qt(e.paddingMD)} ${qt(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${qt(e.padding)} ${qt(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${qt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${qt(e.paddingXS)} ${qt(e.padding)}`:0,footerBorderTop:e.wireframe?`${qt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${qt(e.borderRadiusLG)} ${qt(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${qt(2*e.padding)} ${qt(2*e.padding)} ${qt(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),Uf=hl("Modal",(e=>{const t=Kf(e);return[Vf(t),Wf(t),Hf(t),zf(t,"zoom")]}),qf,{unitless:{titleLineHeight:!0}});let Gf;Qe()&&window.document.documentElement&&document.documentElement.addEventListener("click",(e=>{Gf={x:e.pageX,y:e.pageY},setTimeout((()=>{Gf=null}),100)}),!0);const Xf=e=>{var t;const{getPopupContainer:n,getPrefixCls:o,direction:r,modal:i}=p.useContext(He),a=t=>{const{onCancel:n}=e;null==n||n(t)},{prefixCls:s,className:l,rootClassName:c,open:u,wrapClassName:d,centered:f,getContainer:m,closeIcon:g,closable:v,focusTriggerAfterClose:b=!0,style:y,visible:x,width:w=520,footer:C,classNames:S,styles:E}=e,k=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","closable","focusTriggerAfterClose","style","visible","width","footer","classNames","styles"]),$=o("modal",s),_=o(),O=Ws($),[j,M,P]=Uf($,O),I=oi()(d,{[`${$}-centered`]:!!f,[`${$}-wrap-rtl`]:"rtl"===r}),N=null!==C&&p.createElement($f,Object.assign({},e,{onOk:t=>{const{onOk:n}=e;null==n||n(t)},onCancel:a})),[T,R]=function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:h().createElement(ws,null);if(!function(e,t,n){return"boolean"==typeof e?e:void 0===t?!!n:!1!==t&&null!==t}(e,t,arguments.length>4&&void 0!==arguments[4]&&arguments[4]))return[!1,null];const r="boolean"==typeof t||null==t?o:t;return[!0,n?n(r):r]}(v,void 0!==g?g:null==i?void 0:i.closeIcon,(e=>kf($,e)),p.createElement(ws,{className:`${$}-close-icon`}),!0),A=function(e){const t=p.useContext(Cf),n=p.useRef();return nl((o=>{if(o){const r=e?o.querySelector(e):o;t.add(r),n.current=r}else t.remove(n.current)}))}(`.${$}-content`),[D,B]=Ys("Modal",k.zIndex);return j(p.createElement(Cc,null,p.createElement(yf,{status:!0,override:!0},p.createElement(Ks.Provider,{value:B},p.createElement(td,Object.assign({width:w},k,{zIndex:D,getContainer:void 0===m?n:m,prefixCls:$,rootClassName:oi()(M,c,P,O),footer:N,visible:null!=u?u:x,mousePosition:null!==(t=k.mousePosition)&&void 0!==t?t:Gf,onClose:a,closable:T,closeIcon:R,focusTriggerAfterClose:b,transitionName:Yl(_,"zoom",e.transitionName),maskTransitionName:Yl(_,"fade",e.maskTransitionName),className:oi()(M,l,null==i?void 0:i.className),style:Object.assign(Object.assign({},null==i?void 0:i.style),y),classNames:Object.assign(Object.assign(Object.assign({},null==i?void 0:i.classNames),S),{wrapper:oi()(I,null==S?void 0:S.wrapper)}),styles:Object.assign(Object.assign({},null==i?void 0:i.styles),E),panelRef:A}))))))},Yf=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:o,modalConfirmIconSize:r,fontSize:i,lineHeight:a,modalTitleHeight:s,fontHeight:l,confirmBodyPadding:c}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`&${t} ${t}-body`]:{padding:c},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:r,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(l).sub(r).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(r).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${qt(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:o},[`${u}-content`]:{color:e.colorText,fontSize:i,lineHeight:a},[`${u}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls},\n        ${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},Zf=pl(["Modal","confirm"],(e=>{const t=Kf(e);return[Yf(t)]}),qf,{order:-1e3});function Qf(e){const{prefixCls:t,icon:n,okText:o,cancelText:r,confirmPrefixCls:i,type:a,okCancel:s,footer:l,locale:c}=e,u=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let d=n;if(!n&&null!==n)switch(a){case"info":d=p.createElement(_s,null);break;case"success":d=p.createElement(ms,null);break;case"error":d=p.createElement(bs,null);break;default:d=p.createElement(Es,null)}const f=null!=s?s:"confirm"===a,h=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),[m]=Ql("Modal"),g=c||m,v=o||(f?null==g?void 0:g.okText:null==g?void 0:g.justOkText),b=r||(null==g?void 0:g.cancelText),y=Object.assign({autoFocusButton:h,cancelTextLocale:b,okTextLocale:v,mergedOkCancel:f},u),x=p.useMemo((()=>y),Ye(Object.values(y))),w=p.createElement(p.Fragment,null,p.createElement(wu,null),p.createElement(Cu,null)),C=void 0!==e.title&&null!==e.title,S=`${i}-body`;return p.createElement("div",{className:`${i}-body-wrapper`},p.createElement("div",{className:oi()(S,{[`${S}-has-title`]:C})},d,p.createElement("div",{className:`${i}-paragraph`},C&&p.createElement("span",{className:`${i}-title`},e.title),p.createElement("div",{className:`${i}-content`},e.content))),void 0===l||"function"==typeof l?p.createElement(xu,{value:x},p.createElement("div",{className:`${i}-btns`},"function"==typeof l?l(w,{OkBtn:Cu,CancelBtn:wu}):w)):l,p.createElement(Zf,{prefixCls:t}))}const Jf=e=>{const{close:t,zIndex:n,afterClose:o,open:r,keyboard:i,centered:a,getContainer:s,maskStyle:l,direction:c,prefixCls:u,wrapClassName:d,rootPrefixCls:f,bodyStyle:h,closable:m=!1,closeIcon:g,modalRender:v,focusTriggerAfterClose:b,onConfirm:y,styles:x}=e,w=`${u}-confirm`,C=e.width||416,S=e.style||{},E=void 0===e.mask||e.mask,k=void 0!==e.maskClosable&&e.maskClosable,$=oi()(w,`${w}-${e.type}`,{[`${w}-rtl`]:"rtl"===c},e.className),[,_]=Oa(),O=p.useMemo((()=>void 0!==n?n:_.zIndexPopupBase+Us),[n,_]);return p.createElement(Xf,{prefixCls:u,className:$,wrapClassName:oi()({[`${w}-centered`]:!!e.centered},d),onCancel:()=>{null==t||t({triggerCancel:!0}),null==y||y(!1)},open:r,title:"",footer:null,transitionName:Yl(f||"","zoom",e.transitionName),maskTransitionName:Yl(f||"","fade",e.maskTransitionName),mask:E,maskClosable:k,style:S,styles:Object.assign({body:h,mask:l},x),width:C,zIndex:O,afterClose:o,keyboard:i,centered:a,getContainer:s,closable:m,closeIcon:g,modalRender:v,focusTriggerAfterClose:b},p.createElement(Qf,Object.assign({},e,{confirmPrefixCls:w})))},ep=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:o,theme:r}=e;return p.createElement(Ga,{prefixCls:t,iconPrefixCls:n,direction:o,theme:r},p.createElement(Jf,Object.assign({},e)))},tp=[];let np="";function op(){return np}const rp=e=>{var t,n;const{prefixCls:o,getContainer:r,direction:i}=e,a=Xo(),s=(0,p.useContext)(He),l=op()||s.getPrefixCls(),c=o||`${l}-modal`;let u=r;return!1===u&&(u=void 0),h().createElement(ep,Object.assign({},e,{rootPrefixCls:l,prefixCls:c,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:null!=i?i:s.direction,locale:null!==(n=null===(t=s.locale)||void 0===t?void 0:t.Modal)&&void 0!==n?n:a,getContainer:u}))};function ip(e){const t=Ka(),n=document.createDocumentFragment();let o,r=Object.assign(Object.assign({},e),{close:s,open:!0});function i(){for(var t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];const i=o.some((e=>e&&e.triggerCancel));e.onCancel&&i&&e.onCancel.apply(e,[()=>{}].concat(Ye(o.slice(1))));for(let e=0;e<tp.length;e++)if(tp[e]===s){tp.splice(e,1);break}Be(n)}function a(e){clearTimeout(o),o=setTimeout((()=>{const o=t.getPrefixCls(void 0,op()),r=t.getIconPrefixCls(),i=t.getTheme(),a=h().createElement(rp,Object.assign({},e));Te(h().createElement(Ga,{prefixCls:o,iconPrefixCls:r,theme:i},t.holderRender?t.holderRender(a):a),n)}))}function s(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];r=Object.assign(Object.assign({},r),{open:!1,afterClose:()=>{"function"==typeof e.afterClose&&e.afterClose(),i.apply(this,n)}}),r.visible&&delete r.visible,a(r)}return a(r),tp.push(s),{destroy:s,update:function(e){r="function"==typeof e?e(r):Object.assign(Object.assign({},r),e),a(r)}}}function ap(e){return Object.assign(Object.assign({},e),{type:"warning"})}function sp(e){return Object.assign(Object.assign({},e),{type:"info"})}function lp(e){return Object.assign(Object.assign({},e),{type:"success"})}function cp(e){return Object.assign(Object.assign({},e),{type:"error"})}function up(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function dp(e){return t=>p.createElement(Ga,{theme:{token:{motion:!1,zIndexPopupBase:0}}},p.createElement(e,Object.assign({},t)))}const fp=(e,t,n,o)=>dp((r=>{const{prefixCls:i,style:a}=r,s=p.useRef(null),[l,c]=p.useState(0),[u,d]=p.useState(0),[f,h]=rl(!1,{value:r.open}),{getPrefixCls:m}=p.useContext(He),g=m(t||"select",i);p.useEffect((()=>{if(h(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver((e=>{const t=e[0].target;c(t.offsetHeight+8),d(t.offsetWidth)})),t=setInterval((()=>{var o;const r=n?`.${n(g)}`:`.${g}-dropdown`,i=null===(o=s.current)||void 0===o?void 0:o.querySelector(r);i&&(clearInterval(t),e.observe(i))}),10);return()=>{clearInterval(t),e.disconnect()}}}),[]);let v=Object.assign(Object.assign({},r),{style:Object.assign(Object.assign({},a),{margin:0}),open:f,visible:f,getPopupContainer:()=>s.current});o&&(v=o(v));const b={paddingBottom:l,position:"relative",minWidth:u};return p.createElement("div",{ref:s,style:b},p.createElement(e,Object.assign({},v)))}));const pp=dp((e=>{const{prefixCls:t,className:n,closeIcon:o,closable:r,type:i,title:a,children:s,footer:l}=e,c=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:u}=p.useContext(He),d=u(),f=t||u("modal"),h=Ws(d),[m,g,v]=Uf(f,h),b=`${f}-confirm`;let y={};return y=i?{closable:null!=r&&r,title:"",footer:"",children:p.createElement(Qf,Object.assign({},e,{prefixCls:f,confirmPrefixCls:b,rootPrefixCls:d,content:s}))}:{closable:null==r||r,title:a,footer:null!==l&&p.createElement($f,Object.assign({},e)),children:s},m(p.createElement(Xu,Object.assign({prefixCls:f,className:oi()(g,`${f}-pure-panel`,i&&b,i&&`${b}-${i}`,n,v,h)},c,{closeIcon:kf(f,o),closable:r},y)))}));const hp=(e,t)=>{var n,{afterClose:o,config:r}=e,i=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["afterClose","config"]);const[a,s]=p.useState(!0),[l,c]=p.useState(r),{direction:u,getPrefixCls:d}=p.useContext(He),f=d("modal"),h=d(),m=function(){s(!1);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const o=t.some((e=>e&&e.triggerCancel));l.onCancel&&o&&l.onCancel.apply(l,[()=>{}].concat(Ye(t.slice(1))))};p.useImperativeHandle(t,(()=>({destroy:m,update:e=>{c((t=>Object.assign(Object.assign({},t),e)))}})));const g=null!==(n=l.okCancel)&&void 0!==n?n:"confirm"===l.type,[v]=Ql("Modal",Ko.Modal);return p.createElement(ep,Object.assign({prefixCls:f,rootPrefixCls:h},l,{close:m,open:a,afterClose:()=>{var e;o(),null===(e=l.afterClose)||void 0===e||e.call(l)},okText:l.okText||(g?null==v?void 0:v.okText:null==v?void 0:v.justOkText),direction:l.direction||u,cancelText:l.cancelText||(null==v?void 0:v.cancelText)},i))},mp=p.forwardRef(hp);let gp=0;const vp=p.memo(p.forwardRef(((e,t)=>{const[n,o]=function(){const[e,t]=p.useState([]);return[e,p.useCallback((e=>(t((t=>[].concat(Ye(t),[e]))),()=>{t((t=>t.filter((t=>t!==e))))})),[])]}();return p.useImperativeHandle(t,(()=>({patchElement:o})),[]),p.createElement(p.Fragment,null,n)})));function bp(e){return ip(ap(e))}const yp=Xf;yp.useModal=function(){const e=p.useRef(null),[t,n]=p.useState([]);p.useEffect((()=>{t.length&&(Ye(t).forEach((e=>{e()})),n([]))}),[t]);const o=p.useCallback((t=>function(o){var r;gp+=1;const i=p.createRef();let a;const s=new Promise((e=>{a=e}));let l,c=!1;const u=p.createElement(mp,{key:`modal-${gp}`,config:t(o),ref:i,afterClose:()=>{null==l||l()},isSilent:()=>c,onConfirm:e=>{a(e)}});l=null===(r=e.current)||void 0===r?void 0:r.patchElement(u),l&&tp.push(l);const d={destroy:()=>{function e(){var e;null===(e=i.current)||void 0===e||e.destroy()}i.current?e():n((t=>[].concat(Ye(t),[e])))},update:e=>{function t(){var t;null===(t=i.current)||void 0===t||t.update(e)}i.current?t():n((e=>[].concat(Ye(e),[t])))},then:e=>(c=!0,s.then(e))};return d}),[]);return[p.useMemo((()=>({info:o(sp),success:o(lp),error:o(cp),warning:o(ap),confirm:o(up)})),[]),p.createElement(vp,{key:"modal-holder",ref:e})]},yp.info=function(e){return ip(sp(e))},yp.success=function(e){return ip(lp(e))},yp.error=function(e){return ip(cp(e))},yp.warning=bp,yp.warn=bp,yp.confirm=function(e){return ip(up(e))},yp.destroyAll=function(){for(;tp.length;){const e=tp.pop();e&&e()}},yp.config=function(e){let{rootPrefixCls:t}=e;np=t},yp._InternalPanelDoNotUseOrYouWillBeFired=pp;const xp=yp;function wp(e){return["small","middle","large"].includes(e)}function Cp(e){return!!e&&"number"==typeof e&&!Number.isNaN(e)}const Sp=["wrap","nowrap","wrap-reverse"],Ep=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],kp=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],$p=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},_p=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},Op=e=>{const{componentCls:t}=e,n={};return Sp.forEach((e=>{n[`${t}-wrap-${e}`]={flexWrap:e}})),n},jp=e=>{const{componentCls:t}=e,n={};return kp.forEach((e=>{n[`${t}-align-${e}`]={alignItems:e}})),n},Mp=e=>{const{componentCls:t}=e,n={};return Ep.forEach((e=>{n[`${t}-justify-${e}`]={justifyContent:e}})),n},Pp=hl("Flex",(e=>{const{paddingXS:t,padding:n,paddingLG:o}=e,r=Js(e,{flexGapSM:t,flexGap:n,flexGapLG:o});return[$p(r),_p(r),Op(r),jp(r),Mp(r)]}),(()=>({})),{resetStyle:!1});const Ip=h().forwardRef(((e,t)=>{const{prefixCls:n,rootClassName:o,className:r,style:i,flex:a,gap:s,children:l,vertical:c=!1,component:u="div"}=e,d=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:f,direction:p,getPrefixCls:m}=h().useContext(He),g=m("flex",n),[v,b,y]=Pp(g),x=null!=c?c:null==f?void 0:f.vertical,w=oi()(r,o,null==f?void 0:f.className,g,b,y,function(e,t){return oi()(Object.assign(Object.assign(Object.assign({},((e,t)=>{const n={};return Sp.forEach((o=>{n[`${e}-wrap-${o}`]=t.wrap===o})),n})(e,t)),((e,t)=>{const n={};return kp.forEach((o=>{n[`${e}-align-${o}`]=t.align===o})),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n})(e,t)),((e,t)=>{const n={};return Ep.forEach((o=>{n[`${e}-justify-${o}`]=t.justify===o})),n})(e,t)))}(g,e),{[`${g}-rtl`]:"rtl"===p,[`${g}-gap-${s}`]:wp(s),[`${g}-vertical`]:x}),C=Object.assign(Object.assign({},null==f?void 0:f.style),i);return a&&(C.flex=a),s&&!wp(s)&&(C.gap=s),v(h().createElement(u,Object.assign({ref:t,className:w,style:C},Jl(d,["justify","wrap","align"])),l))})),Np=Ip,Tp=(e,t,n,o,r)=>({background:e,border:`${qt(o.lineWidth)} ${o.lineType} ${t}`,[`${r}-icon`]:{color:n}}),Rp=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:o,marginSM:r,fontSize:i,fontSizeLG:a,lineHeight:s,borderRadiusLG:l,motionEaseInOutCirc:c,withDescriptionIconSize:u,colorText:d,colorTextHeading:f,withDescriptionPadding:p,defaultPadding:h}=e;return{[t]:Object.assign(Object.assign({},Ia(e)),{position:"relative",display:"flex",alignItems:"center",padding:h,wordWrap:"break-word",borderRadius:l,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:o,lineHeight:0},"&-description":{display:"none",fontSize:i,lineHeight:s},"&-message":{color:f},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${c}, opacity ${n} ${c},\n        padding-top ${n} ${c}, padding-bottom ${n} ${c},\n        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:r,fontSize:u,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:o,color:f,fontSize:a},[`${t}-description`]:{display:"block",color:d}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},Ap=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:o,colorSuccessBg:r,colorWarning:i,colorWarningBorder:a,colorWarningBg:s,colorError:l,colorErrorBorder:c,colorErrorBg:u,colorInfo:d,colorInfoBorder:f,colorInfoBg:p}=e;return{[t]:{"&-success":Tp(r,o,n,e,t),"&-info":Tp(p,f,d,e,t),"&-warning":Tp(s,a,i,e,t),"&-error":Object.assign(Object.assign({},Tp(u,c,l,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},Dp=e=>{const{componentCls:t,iconCls:n,motionDurationMid:o,marginXS:r,fontSizeIcon:i,colorIcon:a,colorIconHover:s}=e;return{[t]:{"&-action":{marginInlineStart:r},[`${t}-close-icon`]:{marginInlineStart:r,padding:0,overflow:"hidden",fontSize:i,lineHeight:qt(i),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:a,transition:`color ${o}`,"&:hover":{color:s}}},"&-close-text":{color:a,transition:`color ${o}`,"&:hover":{color:s}}}}},Bp=hl("Alert",(e=>[Rp(e),Ap(e),Dp(e)]),(e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`})));const Lp={success:ms,info:_s,error:bs,warning:Es},zp=e=>{const{icon:t,prefixCls:n,type:o}=e,r=Lp[o]||null;return t?oc(t,p.createElement("span",{className:`${n}-icon`},t),(()=>({className:oi()(`${n}-icon`,{[t.props.className]:t.props.className})}))):p.createElement(r,{className:`${n}-icon`})},Fp=e=>{const{isClosable:t,prefixCls:n,closeIcon:o,handleClose:r}=e,i=!0===o||void 0===o?p.createElement(ws,null):o;return t?p.createElement("button",{type:"button",onClick:r,className:`${n}-close-icon`,tabIndex:0},i):null},Hp=e=>{const{description:t,prefixCls:n,message:o,banner:r,className:i,rootClassName:a,style:s,onMouseEnter:l,onMouseLeave:c,onClick:u,afterClose:d,showIcon:f,closable:h,closeText:m,closeIcon:g,action:v}=e,b=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action"]),[y,x]=p.useState(!1),w=p.useRef(null),{getPrefixCls:C,direction:S,alert:E}=p.useContext(He),k=C("alert",n),[$,_,O]=Bp(k),j=t=>{var n;x(!0),null===(n=e.onClose)||void 0===n||n.call(e,t)},M=p.useMemo((()=>void 0!==e.type?e.type:r?"warning":"info"),[e.type,r]),P=p.useMemo((()=>!!m||("boolean"==typeof h?h:!1!==g&&null!=g)),[m,g,h]),I=!(!r||void 0!==f)||f,N=oi()(k,`${k}-${M}`,{[`${k}-with-description`]:!!t,[`${k}-no-icon`]:!I,[`${k}-banner`]:!!r,[`${k}-rtl`]:"rtl"===S},null==E?void 0:E.className,i,a,O,_),T=Vu(b,{aria:!0,data:!0});return $(p.createElement(va,{visible:!y,motionName:`${k}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:d},(n=>{let{className:r,style:i}=n;return p.createElement("div",Object.assign({ref:w,"data-show":!y,className:oi()(N,r),style:Object.assign(Object.assign(Object.assign({},null==E?void 0:E.style),s),i),onMouseEnter:l,onMouseLeave:c,onClick:u,role:"alert"},T),I?p.createElement(zp,{description:t,icon:e.icon,prefixCls:k,type:M}):null,p.createElement("div",{className:`${k}-content`},o?p.createElement("div",{className:`${k}-message`},o):null,t?p.createElement("div",{className:`${k}-description`},t):null),v?p.createElement("div",{className:`${k}-action`},v):null,p.createElement(Fp,{isClosable:P,prefixCls:k,closeIcon:m||(null!=g?g:null==E?void 0:E.closeIcon),handleClose:j}))})))};let Vp=function(e){function t(){var e,n,o,r;return xt(this,t),n=this,r=arguments,o=vi(o=t),(e=xi(n,bi()?Reflect.construct(o,r||[],vi(n).constructor):o.apply(n,r))).state={error:void 0,info:{componentStack:""}},e}return gi(t,e),Ct(t,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,info:t})}},{key:"render",value:function(){const{message:e,description:t,children:n}=this.props,{error:o,info:r}=this.state,i=r&&r.componentStack?r.componentStack:null,a=void 0===e?(o||"").toString():e,s=void 0===t?i:t;return o?p.createElement(Hp,{type:"error",message:a,description:p.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},s)}):n}}]),t}(p.Component);const Wp=Vp,Kp=Hp;Kp.ErrorBoundary=Wp;const qp=Kp,Up=window.lodash;function Gp(e){if("undefined"==typeof Proxy)return e;const t=new Map;return new Proxy(((...t)=>e(...t)),{get:(n,o)=>"create"===o?e:(t.has(o)||t.set(o,e(o)),t.get(o))})}function Xp(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}const Yp=e=>Array.isArray(e);function Zp(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let o=0;o<n;o++)if(t[o]!==e[o])return!1;return!0}function Qp(e){return"string"==typeof e||Array.isArray(e)}function Jp(e){const t=[{},{}];return null==e||e.values.forEach(((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()})),t}function eh(e,t,n,o){if("function"==typeof t){const[r,i]=Jp(o);t=t(void 0!==n?n:e.custom,r,i)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){const[r,i]=Jp(o);t=t(void 0!==n?n:e.custom,r,i)}return t}function th(e,t,n){const o=e.getProps();return eh(o,t,void 0!==n?n:o.custom,e)}const nh=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],oh=["initial",...nh],rh=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ih=new Set(rh),ah=e=>1e3*e,sh=e=>e/1e3,lh={type:"spring",stiffness:500,damping:25,restSpeed:10},ch={type:"keyframes",duration:.8},uh={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},dh=(e,{keyframes:t})=>t.length>2?ch:ih.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:lh:uh;function fh(e,t){return e?e[t]||e.default||e:void 0}const ph=e=>null!==e;function hh(e,{repeat:t,repeatType:n="loop"},o){const r=e.filter(ph),i=t&&"loop"!==n&&t%2==1?0:r.length-1;return i&&void 0!==o?o:r[i]}const mh=e=>e,gh=["read","resolveKeyframes","update","preRender","render","postRender"];function vh(e,t){let n=!1,o=!0;const r={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,a=gh.reduce(((e,t)=>(e[t]=function(e){let t=new Set,n=new Set,o=!1,r=!1;const i=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function s(t){i.has(t)&&(l.schedule(t),e()),t(a)}const l={schedule:(e,r=!1,a=!1)=>{const s=a&&o?t:n;return r&&i.add(e),s.has(e)||s.add(e),e},cancel:e=>{n.delete(e),i.delete(e)},process:e=>{a=e,o?r=!0:(o=!0,[t,n]=[n,t],n.clear(),t.forEach(s),o=!1,r&&(r=!1,l.process(e)))}};return l}(i),e)),{}),{read:s,resolveKeyframes:l,update:c,preRender:u,render:d,postRender:f}=a,p=()=>{const i=performance.now();n=!1,r.delta=o?1e3/60:Math.max(Math.min(i-r.timestamp,40),1),r.timestamp=i,r.isProcessing=!0,s.process(r),l.process(r),c.process(r),u.process(r),d.process(r),f.process(r),r.isProcessing=!1,n&&t&&(o=!1,e(p))};return{schedule:gh.reduce(((t,i)=>{const s=a[i];return t[i]=(t,i=!1,a=!1)=>(n||(n=!0,o=!0,r.isProcessing||e(p)),s.schedule(t,i,a)),t}),{}),cancel:e=>{for(let t=0;t<gh.length;t++)a[gh[t]].cancel(e)},state:r,steps:a}}const{schedule:bh,cancel:yh,state:xh,steps:wh}=vh("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:mh,!0),Ch=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function Sh(e,t,n,o){if(e===t&&n===o)return mh;return r=>0===r||1===r?r:Ch(function(e,t,n,o,r){let i,a,s=0;do{a=t+(n-t)/2,i=Ch(a,o,r)-e,i>0?n=a:t=a}while(Math.abs(i)>1e-7&&++s<12);return a}(r,0,1,e,n),t,o)}const Eh=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,kh=e=>t=>1-e(1-t),$h=Sh(.33,1.53,.69,.99),_h=kh($h),Oh=Eh(_h),jh=e=>(e*=2)<1?.5*_h(e):.5*(2-Math.pow(2,-10*(e-1))),Mh=e=>1-Math.sin(Math.acos(e)),Ph=kh(Mh),Ih=Eh(Mh),Nh=e=>/^0[^.\s]+$/u.test(e);let Th=mh,Rh=mh;const Ah=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Dh=e=>t=>"string"==typeof t&&t.startsWith(e),Bh=Dh("--"),Lh=Dh("var(--"),zh=e=>!!Lh(e)&&Fh.test(e.split("/*")[0].trim()),Fh=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Hh=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Vh(e,t,n=1){Rh(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[o,r]=function(e){const t=Hh.exec(e);if(!t)return[,];const[,n,o,r]=t;return[`--${null!=n?n:o}`,r]}(e);if(!o)return;const i=window.getComputedStyle(t).getPropertyValue(o);if(i){const e=i.trim();return Ah(e)?parseFloat(e):e}return zh(r)?Vh(r,t,n+1):r}const Wh=(e,t,n)=>n>t?t:n<e?e:n,Kh={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},qh={...Kh,transform:e=>Wh(0,1,e)},Uh={...Kh,default:1},Gh=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Xh=Gh("deg"),Yh=Gh("%"),Zh=Gh("px"),Qh=Gh("vh"),Jh=Gh("vw"),em={...Yh,parse:e=>Yh.parse(e)/100,transform:e=>Yh.transform(100*e)},tm=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),nm=e=>e===Kh||e===Zh,om=(e,t)=>parseFloat(e.split(", ")[t]),rm=(e,t)=>(n,{transform:o})=>{if("none"===o||!o)return 0;const r=o.match(/^matrix3d\((.+)\)$/u);if(r)return om(r[1],t);{const t=o.match(/^matrix\((.+)\)$/u);return t?om(t[1],e):0}},im=new Set(["x","y","z"]),am=rh.filter((e=>!im.has(e))),sm={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:rm(4,13),y:rm(5,14)};sm.translateX=sm.x,sm.translateY=sm.y;const lm=e=>t=>t.test(e),cm=[Kh,Zh,Yh,Xh,Jh,Qh,{test:e=>"auto"===e,parse:e=>e}],um=e=>cm.find(lm(e)),dm=new Set;let fm=!1,pm=!1;function hm(){if(pm){const e=Array.from(dm).filter((e=>e.needsMeasurement)),t=new Set(e.map((e=>e.element))),n=new Map;t.forEach((e=>{const t=function(e){const t=[];return am.forEach((n=>{const o=e.getValue(n);void 0!==o&&(t.push([n,o.get()]),o.set(n.startsWith("scale")?1:0))})),t}(e);t.length&&(n.set(e,t),e.render())})),e.forEach((e=>e.measureInitialState())),t.forEach((e=>{e.render();const t=n.get(e);t&&t.forEach((([t,n])=>{var o;null===(o=e.getValue(t))||void 0===o||o.set(n)}))})),e.forEach((e=>e.measureEndState())),e.forEach((e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)}))}pm=!1,fm=!1,dm.forEach((e=>e.complete())),dm.clear()}function mm(){dm.forEach((e=>{e.readKeyframes(),e.needsMeasurement&&(pm=!0)}))}class gm{constructor(e,t,n,o,r,i=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=o,this.element=r,this.isAsync=i}scheduleResolve(){this.isScheduled=!0,this.isAsync?(dm.add(this),fm||(fm=!0,bh.read(mm),bh.resolveKeyframes(hm))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:o}=this;for(let r=0;r<e.length;r++)if(null===e[r])if(0===r){const r=null==o?void 0:o.get(),i=e[e.length-1];if(void 0!==r)e[0]=r;else if(n&&t){const o=n.readValue(t,i);null!=o&&(e[0]=o)}void 0===e[0]&&(e[0]=i),o&&void 0===r&&o.set(e[0])}else e[r]=e[r-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),dm.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,dm.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const vm=e=>Math.round(1e5*e)/1e5,bm=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,ym=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,xm=(e,t)=>n=>Boolean("string"==typeof n&&ym.test(n)&&n.startsWith(e)||t&&!function(e){return null==e}(n)&&Object.prototype.hasOwnProperty.call(n,t)),wm=(e,t,n)=>o=>{if("string"!=typeof o)return o;const[r,i,a,s]=o.match(bm);return{[e]:parseFloat(r),[t]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},Cm={...Kh,transform:e=>Math.round((e=>Wh(0,255,e))(e))},Sm={test:xm("rgb","red"),parse:wm("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:o=1})=>"rgba("+Cm.transform(e)+", "+Cm.transform(t)+", "+Cm.transform(n)+", "+vm(qh.transform(o))+")"},Em={test:xm("#"),parse:function(e){let t="",n="",o="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),o=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),o=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,o+=o,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(o,16),alpha:r?parseInt(r,16)/255:1}},transform:Sm.transform},km={test:xm("hsl","hue"),parse:wm("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:o=1})=>"hsla("+Math.round(e)+", "+Yh.transform(vm(t))+", "+Yh.transform(vm(n))+", "+vm(qh.transform(o))+")"},$m={test:e=>Sm.test(e)||Em.test(e)||km.test(e),parse:e=>Sm.test(e)?Sm.parse(e):km.test(e)?km.parse(e):Em.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?Sm.transform(e):km.transform(e)},_m=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Om="number",jm="color",Mm="var",Pm="var(",Im="${}",Nm=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Tm(e){const t=e.toString(),n=[],o={color:[],number:[],var:[]},r=[];let i=0;const a=t.replace(Nm,(e=>($m.test(e)?(o.color.push(i),r.push(jm),n.push($m.parse(e))):e.startsWith(Pm)?(o.var.push(i),r.push(Mm),n.push(e)):(o.number.push(i),r.push(Om),n.push(parseFloat(e))),++i,Im))).split(Im);return{values:n,split:a,indexes:o,types:r}}function Rm(e){return Tm(e).values}function Am(e){const{split:t,types:n}=Tm(e),o=t.length;return e=>{let r="";for(let i=0;i<o;i++)if(r+=t[i],void 0!==e[i]){const t=n[i];r+=t===Om?vm(e[i]):t===jm?$m.transform(e[i]):e[i]}return r}}const Dm=e=>"number"==typeof e?0:e,Bm={test:function(e){var t,n;return isNaN(e)&&"string"==typeof e&&((null===(t=e.match(bm))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(_m))||void 0===n?void 0:n.length)||0)>0},parse:Rm,createTransformer:Am,getAnimatableNone:function(e){const t=Rm(e);return Am(e)(t.map(Dm))}},Lm=new Set(["brightness","contrast","saturate","opacity"]);function zm(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[o]=n.match(bm)||[];if(!o)return e;const r=n.replace(o,"");let i=Lm.has(t)?1:0;return o!==n&&(i*=100),t+"("+i+r+")"}const Fm=/\b([a-z-]*)\(.*?\)/gu,Hm={...Bm,getAnimatableNone:e=>{const t=e.match(Fm);return t?t.map(zm).join(" "):e}},Vm={borderWidth:Zh,borderTopWidth:Zh,borderRightWidth:Zh,borderBottomWidth:Zh,borderLeftWidth:Zh,borderRadius:Zh,radius:Zh,borderTopLeftRadius:Zh,borderTopRightRadius:Zh,borderBottomRightRadius:Zh,borderBottomLeftRadius:Zh,width:Zh,maxWidth:Zh,height:Zh,maxHeight:Zh,top:Zh,right:Zh,bottom:Zh,left:Zh,padding:Zh,paddingTop:Zh,paddingRight:Zh,paddingBottom:Zh,paddingLeft:Zh,margin:Zh,marginTop:Zh,marginRight:Zh,marginBottom:Zh,marginLeft:Zh,backgroundPositionX:Zh,backgroundPositionY:Zh},Wm={rotate:Xh,rotateX:Xh,rotateY:Xh,rotateZ:Xh,scale:Uh,scaleX:Uh,scaleY:Uh,scaleZ:Uh,skew:Xh,skewX:Xh,skewY:Xh,distance:Zh,translateX:Zh,translateY:Zh,translateZ:Zh,x:Zh,y:Zh,z:Zh,perspective:Zh,transformPerspective:Zh,opacity:qh,originX:em,originY:em,originZ:Zh},Km={...Kh,transform:Math.round},qm={...Vm,...Wm,zIndex:Km,size:Zh,fillOpacity:qh,strokeOpacity:qh,numOctaves:Km},Um={...qm,color:$m,backgroundColor:$m,outlineColor:$m,fill:$m,stroke:$m,borderColor:$m,borderTopColor:$m,borderRightColor:$m,borderBottomColor:$m,borderLeftColor:$m,filter:Hm,WebkitFilter:Hm},Gm=e=>Um[e];function Xm(e,t){let n=Gm(e);return n!==Hm&&(n=Bm),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Ym=new Set(["auto","none","0"]);class Zm extends gm{constructor(e,t,n,o,r){super(e,t,n,o,r,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let o=e[n];if("string"==typeof o&&(o=o.trim(),zh(o))){const r=Vh(o,t.current);void 0!==r&&(e[n]=r),n===e.length-1&&(this.finalKeyframe=o)}}if(this.resolveNoneKeyframes(),!tm.has(n)||2!==e.length)return;const[o,r]=e,i=um(o),a=um(r);if(i!==a)if(nm(i)&&nm(a))for(let t=0;t<e.length;t++){const n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)("number"==typeof(o=e[t])?0===o:null===o||"none"===o||"0"===o||Nh(o))&&n.push(t);var o;n.length&&function(e,t,n){let o,r=0;for(;r<e.length&&!o;){const t=e[r];"string"==typeof t&&!Ym.has(t)&&Tm(t).values.length&&(o=e[r]),r++}if(o&&n)for(const r of t)e[r]=Xm(n,o)}(e,n,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=sm[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const o=t[t.length-1];void 0!==o&&e.getValue(n,o).jump(o,!1)}measureEndState(){var e;const{element:t,name:n,unresolvedKeyframes:o}=this;if(!t||!t.current)return;const r=t.getValue(n);r&&r.jump(this.measuredOrigin,!1);const i=o.length-1,a=o[i];o[i]=sm[n](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEach((([e,n])=>{t.getValue(e).set(n)})),this.resolveNoneKeyframes()}}function Qm(e){return"function"==typeof e}let Jm;function eg(){Jm=void 0}const tg={now:()=>(void 0===Jm&&tg.set(xh.isProcessing?xh.timestamp:performance.now()),Jm),set:e=>{Jm=e,queueMicrotask(eg)}},ng=(e,t)=>!("zIndex"===t||"number"!=typeof e&&!Array.isArray(e)&&("string"!=typeof e||!Bm.test(e)&&"0"!==e||e.startsWith("url(")));function og(e,t,n,o){const r=e[0];if(null===r)return!1;if("display"===t||"visibility"===t)return!0;const i=e[e.length-1],a=ng(r,t),s=ng(i,t);return Th(a===s,`You are trying to animate ${t} from "${r}" to "${i}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${i} via the \`style\` property.`),!(!a||!s)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||Qm(n))&&o)}class rg{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:o=0,repeatDelay:r=0,repeatType:i="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=tg.now(),this.options={autoplay:e,delay:t,type:n,repeat:o,repeatDelay:r,repeatType:i,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(mm(),hm()),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=tg.now(),this.hasAttemptedResolve=!0;const{name:n,type:o,velocity:r,delay:i,onComplete:a,onUpdate:s,isGenerator:l}=this.options;if(!l&&!og(e,n,o,r)){if(!i)return null==s||s(hh(e,this.options,t)),null==a||a(),void this.resolveFinishedPromise();this.options.duration=0}const c=this.initPlayback(e,t);!1!==c&&(this._resolved={keyframes:e,finalKeyframe:t,...c},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}updateFinishedPromise(){this.currentFinishedPromise=new Promise((e=>{this.resolveFinishedPromise=e}))}}function ig(e,t){return t?e*(1e3/t):0}const ag=5;function sg(e,t,n){const o=Math.max(t-ag,0);return ig(n-e(o),t-o)}const lg=.001,cg=.01,ug=10,dg=.05,fg=1;const pg=12;function hg(e,t){return e*Math.sqrt(1-t*t)}const mg=["duration","bounce"],gg=["stiffness","damping","mass"];function vg(e,t){return t.some((t=>void 0!==e[t]))}function bg({keyframes:e,restDelta:t,restSpeed:n,...o}){const r=e[0],i=e[e.length-1],a={done:!1,value:r},{stiffness:s,damping:l,mass:c,duration:u,velocity:d,isResolvedFromDuration:f}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!vg(e,gg)&&vg(e,mg)){const n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:o=1}){let r,i;Th(e<=ah(ug),"Spring duration must be 10 seconds or less");let a=1-t;a=Wh(dg,fg,a),e=Wh(cg,ug,sh(e)),a<1?(r=t=>{const o=t*a,r=o*e,i=o-n,s=hg(t,a),l=Math.exp(-r);return lg-i/s*l},i=t=>{const o=t*a*e,i=o*n+n,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-o),c=hg(Math.pow(t,2),a);return(-r(t)+lg>0?-1:1)*((i-s)*l)/c}):(r=t=>Math.exp(-t*e)*((t-n)*e+1)-lg,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let o=n;for(let n=1;n<pg;n++)o-=e(o)/t(o);return o}(r,i,5/e);if(e=ah(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*o;return{stiffness:t,damping:2*a*Math.sqrt(o*t),duration:e}}}(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}({...o,velocity:-sh(o.velocity||0)}),p=d||0,h=l/(2*Math.sqrt(s*c)),m=i-r,g=sh(Math.sqrt(s/c)),v=Math.abs(m)<5;let b;if(n||(n=v?.01:2),t||(t=v?.005:.5),h<1){const e=hg(g,h);b=t=>{const n=Math.exp(-h*g*t);return i-n*((p+h*g*m)/e*Math.sin(e*t)+m*Math.cos(e*t))}}else if(1===h)b=e=>i-Math.exp(-g*e)*(m+(p+g*m)*e);else{const e=g*Math.sqrt(h*h-1);b=t=>{const n=Math.exp(-h*g*t),o=Math.min(e*t,300);return i-n*((p+h*g*m)*Math.sinh(o)+e*m*Math.cosh(o))/e}}return{calculatedDuration:f&&u||null,next:e=>{const o=b(e);if(f)a.done=e>=u;else{let r=0;h<1&&(r=0===e?ah(p):sg(b,e,o));const s=Math.abs(r)<=n,l=Math.abs(i-o)<=t;a.done=s&&l}return a.value=a.done?i:o,a}}}function yg({keyframes:e,velocity:t=0,power:n=.8,timeConstant:o=325,bounceDamping:r=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},p=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l;let h=n*t;const m=d+h,g=void 0===a?m:a(m);g!==m&&(h=g-d);const v=e=>-h*Math.exp(-e/o),b=e=>g+v(e),y=e=>{const t=v(e),n=b(e);f.done=Math.abs(t)<=c,f.value=f.done?g:n};let x,w;const C=e=>{var t;t=f.value,(void 0!==s&&t<s||void 0!==l&&t>l)&&(x=e,w=bg({keyframes:[f.value,p(f.value)],velocity:sg(b,e,f.value),damping:r,stiffness:i,restDelta:c,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return w||void 0!==x||(t=!0,y(e),C(e)),void 0!==x&&e>=x?w.next(e-x):(!t&&y(e),f)}}}const xg=Sh(.42,0,1,1),wg=Sh(0,0,.58,1),Cg=Sh(.42,0,.58,1),Sg=e=>Array.isArray(e)&&"number"==typeof e[0],Eg={linear:mh,easeIn:xg,easeInOut:Cg,easeOut:wg,circIn:Mh,circInOut:Ih,circOut:Ph,backIn:_h,backInOut:Oh,backOut:$h,anticipate:jh},kg=e=>{if(Sg(e)){Rh(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,o,r]=e;return Sh(t,n,o,r)}return"string"==typeof e?(Rh(void 0!==Eg[e],`Invalid easing type '${e}'`),Eg[e]):e},$g=(e,t)=>n=>t(e(n)),_g=(...e)=>e.reduce($g),Og=(e,t,n)=>{const o=t-e;return 0===o?1:(n-e)/o},jg=(e,t,n)=>e+(t-e)*n;function Mg(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Pg(e,t){return n=>n>0?t:e}const Ig=(e,t,n)=>{const o=e*e,r=n*(t*t-o)+o;return r<0?0:Math.sqrt(r)},Ng=[Em,Sm,km];function Tg(e){const t=(n=e,Ng.find((e=>e.test(n))));var n;if(Th(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`),!Boolean(t))return!1;let o=t.parse(e);return t===km&&(o=function({hue:e,saturation:t,lightness:n,alpha:o}){e/=360,n/=100;let r=0,i=0,a=0;if(t/=100){const o=n<.5?n*(1+t):n+t-n*t,s=2*n-o;r=Mg(s,o,e+1/3),i=Mg(s,o,e),a=Mg(s,o,e-1/3)}else r=i=a=n;return{red:Math.round(255*r),green:Math.round(255*i),blue:Math.round(255*a),alpha:o}}(o)),o}const Rg=(e,t)=>{const n=Tg(e),o=Tg(t);if(!n||!o)return Pg(e,t);const r={...n};return e=>(r.red=Ig(n.red,o.red,e),r.green=Ig(n.green,o.green,e),r.blue=Ig(n.blue,o.blue,e),r.alpha=jg(n.alpha,o.alpha,e),Sm.transform(r))},Ag=new Set(["none","hidden"]);function Dg(e,t){return n=>jg(e,t,n)}function Bg(e){return"number"==typeof e?Dg:"string"==typeof e?zh(e)?Pg:$m.test(e)?Rg:Fg:Array.isArray(e)?Lg:"object"==typeof e?$m.test(e)?Rg:zg:Pg}function Lg(e,t){const n=[...e],o=n.length,r=e.map(((e,n)=>Bg(e)(e,t[n])));return e=>{for(let t=0;t<o;t++)n[t]=r[t](e);return n}}function zg(e,t){const n={...e,...t},o={};for(const r in n)void 0!==e[r]&&void 0!==t[r]&&(o[r]=Bg(e[r])(e[r],t[r]));return e=>{for(const t in o)n[t]=o[t](e);return n}}const Fg=(e,t)=>{const n=Bm.createTransformer(t),o=Tm(e),r=Tm(t);return o.indexes.var.length===r.indexes.var.length&&o.indexes.color.length===r.indexes.color.length&&o.indexes.number.length>=r.indexes.number.length?Ag.has(e)&&!r.values.length||Ag.has(t)&&!o.values.length?function(e,t){return Ag.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):_g(Lg(function(e,t){var n;const o=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],s=e.indexes[a][r[a]],l=null!==(n=e.values[s])&&void 0!==n?n:0;o[i]=l,r[a]++}return o}(o,r),r.values),n):(Th(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Pg(e,t))};function Hg(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?jg(e,t,n):Bg(e)(e,t)}function Vg({duration:e=300,keyframes:t,times:n,ease:o="easeInOut"}){const r=(e=>Array.isArray(e)&&"number"!=typeof e[0])(o)?o.map(kg):kg(o),i={done:!1,value:t[0]},a=function(e,t){return e.map((e=>e*t))}(n&&n.length===t.length?n:function(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let o=1;o<=t;o++){const r=Og(0,t,o);e.push(jg(n,1,r))}}(t,e.length-1),t}(t),e),s=function(e,t,{clamp:n=!0,ease:o,mixer:r}={}){const i=e.length;if(Rh(i===t.length,"Both input and output ranges must be the same length"),1===i)return()=>t[0];if(2===i&&e[0]===e[1])return()=>t[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=function(e,t,n){const o=[],r=n||Hg,i=e.length-1;for(let n=0;n<i;n++){let i=r(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||mh:t;i=_g(e,i)}o.push(i)}return o}(t,o,r),s=a.length,l=t=>{let n=0;if(s>1)for(;n<e.length-2&&!(t<e[n+1]);n++);const o=Og(e[n],e[n+1],t);return a[n](o)};return n?t=>l(Wh(e[0],e[i-1],t)):l}(a,t,{ease:Array.isArray(r)?r:(l=t,c=r,l.map((()=>c||Cg)).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(i.value=s(t),i.done=t>=e,i)}}const Wg=e=>{const t=({timestamp:t})=>e(t);return{start:()=>bh.update(t,!0),stop:()=>yh(t),now:()=>xh.isProcessing?xh.timestamp:tg.now()}},Kg={decay:yg,inertia:yg,tween:Vg,keyframes:Vg,spring:bg},qg=e=>e/100;class Ug extends rg{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:e}=this.options;e&&e()};const{name:t,motionValue:n,element:o,keyframes:r}=this.options,i=(null==o?void 0:o.KeyframeResolver)||gm;this.resolver=new i(r,((e,t)=>this.onKeyframesResolved(e,t)),t,n,o),this.resolver.scheduleResolve()}initPlayback(e){const{type:t="keyframes",repeat:n=0,repeatDelay:o=0,repeatType:r,velocity:i=0}=this.options,a=Qm(t)?t:Kg[t]||Vg;let s,l;a!==Vg&&"number"!=typeof e[0]&&(s=_g(qg,Hg(e[0],e[1])),e=[0,100]);const c=a({...this.options,keyframes:e});"mirror"===r&&(l=a({...this.options,keyframes:[...e].reverse(),velocity:-i})),null===c.calculatedDuration&&(c.calculatedDuration=function(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}(c));const{calculatedDuration:u}=c,d=u+o;return{generator:c,mirroredGenerator:l,mapPercentToKeyframes:s,calculatedDuration:u,resolvedDuration:d,totalDuration:d*(n+1)-o}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){const{resolved:n}=this;if(!n){const{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}const{finalKeyframe:o,generator:r,mirroredGenerator:i,mapPercentToKeyframes:a,keyframes:s,calculatedDuration:l,totalDuration:c,resolvedDuration:u}=n;if(null===this.startTime)return r.next(0);const{delay:d,repeat:f,repeatType:p,repeatDelay:h,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const g=this.currentTime-d*(this.speed>=0?1:-1),v=this.speed>=0?g<0:g>c;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=c);let b=this.currentTime,y=r;if(f){const e=Math.min(this.currentTime,c)/u;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,f+1),Boolean(t%2)&&("reverse"===p?(n=1-n,h&&(n-=h/u)):"mirror"===p&&(y=i)),b=Wh(0,1,n)*u}const x=v?{done:!1,value:s[0]}:y.next(b);a&&(x.value=a(x.value));let{done:w}=x;v||null===l||(w=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const C=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return C&&void 0!==o&&(x.value=hh(s,this.options,o)),m&&m(x.value),C&&this.finish(),x}get duration(){const{resolved:e}=this;return e?sh(e.calculatedDuration):0}get time(){return sh(this.currentTime)}set time(e){e=ah(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=sh(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:e=Wg,onPlay:t,startTime:n}=this.options;this.driver||(this.driver=e((e=>this.tick(e)))),t&&t();const o=this.driver.now();null!==this.holdTime?this.startTime=o-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=o):this.startTime=null!=n?n:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;this._resolved?(this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const Gg=new Set(["opacity","clipPath","filter","transform"]),Xg=(e,t)=>{let n="";const o=Math.max(Math.round(t/10),2);for(let t=0;t<o;t++)n+=e(Og(0,o-1,t))+", ";return`linear(${n.substring(0,n.length-2)})`};function Yg(e){let t;return()=>(void 0===t&&(t=e()),t)}const Zg={linearEasing:void 0};function Qg(e,t){const n=Yg(e);return()=>{var e;return null!==(e=Zg[t])&&void 0!==e?e:n()}}const Jg=Qg((()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0}),"linearEasing");function ev(e){return Boolean("function"==typeof e&&Jg()||!e||"string"==typeof e&&(e in nv||Jg())||Sg(e)||Array.isArray(e)&&e.every(ev))}const tv=([e,t,n,o])=>`cubic-bezier(${e}, ${t}, ${n}, ${o})`,nv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tv([0,.65,.55,1]),circOut:tv([.55,0,1,.45]),backIn:tv([.31,.01,.66,-.59]),backOut:tv([.33,1.53,.69,.99])};function ov(e,t){return e?"function"==typeof e&&Jg()?Xg(e,t):Sg(e)?tv(e):Array.isArray(e)?e.map((e=>ov(e,t)||nv.easeOut)):nv[e]:void 0}function rv(e,t,n,{delay:o=0,duration:r=300,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=ov(s,r);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:o,duration:r,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:"reverse"===a?"alternate":"normal"})}function iv(e,t){e.timeline=t,e.onfinish=null}const av=Yg((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),sv={anticipate:jh,backInOut:Oh,circInOut:Ih};class lv extends rg{constructor(e){super(e);const{name:t,motionValue:n,element:o,keyframes:r}=this.options;this.resolver=new Zm(r,((e,t)=>this.onKeyframesResolved(e,t)),t,n,o),this.resolver.scheduleResolve()}initPlayback(e,t){var n;let{duration:o=300,times:r,ease:i,type:a,motionValue:s,name:l,startTime:c}=this.options;if(!(null===(n=s.owner)||void 0===n?void 0:n.current))return!1;if("string"==typeof i&&Jg()&&i in sv&&(i=sv[i]),function(e){return Qm(e.type)||"spring"===e.type||!ev(e.ease)}(this.options)){const{onComplete:t,onUpdate:n,motionValue:s,element:l,...c}=this.options,u=function(e,t){const n=new Ug({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let o={done:!1,value:e[0]};const r=[];let i=0;for(;!o.done&&i<2e4;)o=n.sample(i),r.push(o.value),i+=10;return{times:void 0,keyframes:r,duration:i-10,ease:"linear"}}(e,c);1===(e=u.keyframes).length&&(e[1]=e[0]),o=u.duration,r=u.times,i=u.ease,a="keyframes"}const u=rv(s.owner.current,l,e,{...this.options,duration:o,times:r,ease:i});return u.startTime=null!=c?c:this.calcStartTime(),this.pendingTimeline?(iv(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:n}=this.options;s.set(hh(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:o,times:r,type:a,ease:i,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:t}=e;return sh(t)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:t}=e;return sh(t.currentTime||0)}set time(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.currentTime=ah(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:t}=e;return t.playbackRate}set speed(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:t}=e;return t.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:t}=e;return t.startTime}attachTimeline(e){if(this._resolved){const{resolved:t}=this;if(!t)return mh;const{animation:n}=t;iv(n,e)}else this.pendingTimeline=e;return mh}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:t,keyframes:n,duration:o,type:r,ease:i,times:a}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){const{motionValue:e,onUpdate:t,onComplete:s,element:l,...c}=this.options,u=new Ug({...c,keyframes:n,duration:o,type:r,ease:i,times:a,isGenerator:!0}),d=ah(this.time);e.setWithVelocity(u.sample(d-10).value,u.sample(d).value,10)}const{onStop:s}=this.options;s&&s(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:t,name:n,repeatDelay:o,repeatType:r,damping:i,type:a}=e;return av()&&n&&Gg.has(n)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!o&&"mirror"!==r&&0!==i&&"inertia"!==a}}const cv=Yg((()=>void 0!==window.ScrollTimeline));class uv{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}then(e,t){return Promise.all(this.animations).then(e).catch(t)}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e,t){const n=this.animations.map((n=>cv()&&n.attachTimeline?n.attachTimeline(e):t(n)));return()=>{n.forEach(((e,t)=>{e&&e(),this.animations[t].stop()}))}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach((t=>t[e]()))}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const dv=(e,t,n,o={},r,i)=>a=>{const s=fh(o,e)||{},l=s.delay||o.delay||0;let{elapsed:c=0}=o;c-=ah(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-c,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:i?void 0:r};(function({when:e,delay:t,delayChildren:n,staggerChildren:o,staggerDirection:r,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:c,...u}){return!!Object.keys(u).length})(s)||(u={...u,...dh(e,u)}),u.duration&&(u.duration=ah(u.duration)),u.repeatDelay&&(u.repeatDelay=ah(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let d=!1;if((!1===u.type||0===u.duration&&!u.repeatDelay)&&(u.duration=0,0===u.delay&&(d=!0)),d&&!i&&void 0!==t.get()){const e=hh(u.keyframes,s);if(void 0!==e)return bh.update((()=>{u.onUpdate(e),u.onComplete()})),new uv([])}return!i&&lv.supports(u)?new lv(u):new Ug(u)},fv=e=>Boolean(e&&"object"==typeof e&&e.mix&&e.toValue),pv=e=>Yp(e)?e[e.length-1]||0:e;function hv(e,t){-1===e.indexOf(t)&&e.push(t)}function mv(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class gv{constructor(){this.subscriptions=[]}add(e){return hv(this.subscriptions,e),()=>mv(this.subscriptions,e)}notify(e,t,n){const o=this.subscriptions.length;if(o)if(1===o)this.subscriptions[0](e,t,n);else for(let r=0;r<o;r++){const o=this.subscriptions[r];o&&o(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const vv={current:void 0};class bv{constructor(e,t={}){this.version="11.11.9",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{const n=tg.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){var t;this.current=e,this.updatedAt=tg.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t))))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new gv);const n=this.events[e].add(t);return"change"===e?()=>{n(),bh.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return vv.current&&vv.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=tg.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return ig(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function yv(e,t){return new bv(e,t)}function xv(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,yv(n))}const wv=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Cv="data-"+wv("framerAppearId");function Sv(e){return e.props[Cv]}const Ev=e=>Boolean(e&&e.getVelocity);function kv(e,t){if(!e.applyWillChange)return;const n=e.getValue("willChange");return o=n,Boolean(Ev(o)&&o.add)?n.add(t):void 0;var o}function $v({protectedKeys:e,needsAnimating:t},n){const o=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,o}function _v(e,t,{delay:n=0,transitionOverride:o,type:r}={}){var i;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=t;o&&(a=o);const c=[],u=r&&e.animationState&&e.animationState.getState()[r];for(const t in l){const o=e.getValue(t,null!==(i=e.latestValues[t])&&void 0!==i?i:null),r=l[t];if(void 0===r||u&&$v(u,t))continue;const s={delay:n,...fh(a||{},t)};let d=!1;if(window.MotionHandoffAnimation){const n=Sv(e);if(n){const e=window.MotionHandoffAnimation(n,t,bh);null!==e&&(s.startTime=e,d=!0)}}kv(e,t),o.start(dv(t,o,r,e.shouldReduceMotion&&ih.has(t)?{type:!1}:s,e,d));const f=o.animation;f&&c.push(f)}return s&&Promise.all(c).then((()=>{bh.update((()=>{s&&function(e,t){const n=th(e,t);let{transitionEnd:o={},transition:r={},...i}=n||{};i={...i,...o};for(const t in i)xv(e,t,pv(i[t]))}(e,s)}))})),c}function Ov(e,t,n={}){var o;const r=th(e,t,"exit"===n.type?null===(o=e.presenceContext)||void 0===o?void 0:o.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const a=r?()=>Promise.all(_v(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(o=0)=>{const{delayChildren:r=0,staggerChildren:a,staggerDirection:s}=i;return function(e,t,n=0,o=0,r=1,i){const a=[],s=(e.variantChildren.size-1)*o,l=1===r?(e=0)=>e*o:(e=0)=>s-e*o;return Array.from(e.variantChildren).sort(jv).forEach(((e,o)=>{e.notify("AnimationStart",t),a.push(Ov(e,t,{...i,delay:n+l(o)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(a)}(e,t,r+o,a,s,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[e,t]="beforeChildren"===l?[a,s]:[s,a];return e().then((()=>t()))}return Promise.all([a(),s(n.delay)])}function jv(e,t){return e.sortNodePosition(t)}const Mv=oh.length;function Pv(e){if(!e)return;if(!e.isControllingVariants){const t=e.parent&&Pv(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}const t={};for(let n=0;n<Mv;n++){const o=oh[n],r=e.props[o];(Qp(r)||!1===r)&&(t[o]=r)}return t}const Iv=[...nh].reverse(),Nv=nh.length;function Tv(e){let t=function(e){return t=>Promise.all(t.map((({animation:t,options:n})=>function(e,t,n={}){let o;if(e.notify("AnimationStart",t),Array.isArray(t)){const r=t.map((t=>Ov(e,t,n)));o=Promise.all(r)}else if("string"==typeof t)o=Ov(e,t,n);else{const r="function"==typeof t?th(e,t,n.custom):t;o=Promise.all(_v(e,r,n))}return o.then((()=>{e.notify("AnimationComplete",t)}))}(e,t,n))))}(e),n=Dv(),o=!0;const r=t=>(n,o)=>{var r;const i=th(e,o,"exit"===t?null===(r=e.presenceContext)||void 0===r?void 0:r.custom:void 0);if(i){const{transition:e,transitionEnd:t,...o}=i;n={...n,...o,...t}}return n};function i(i){const{props:a}=e,s=Pv(e.parent)||{},l=[],c=new Set;let u={},d=1/0;for(let t=0;t<Nv;t++){const f=Iv[t],p=n[f],h=void 0!==a[f]?a[f]:s[f],m=Qp(h),g=f===i?p.isActive:null;!1===g&&(d=t);let v=h===s[f]&&h!==a[f]&&m;if(v&&o&&e.manuallyAnimateOnMount&&(v=!1),p.protectedKeys={...u},!p.isActive&&null===g||!h&&!p.prevProp||Xp(h)||"boolean"==typeof h)continue;const b=Rv(p.prevProp,h);let y=b||f===i&&p.isActive&&!v&&m||t>d&&m,x=!1;const w=Array.isArray(h)?h:[h];let C=w.reduce(r(f),{});!1===g&&(C={});const{prevResolvedValues:S={}}=p,E={...S,...C},k=t=>{y=!0,c.has(t)&&(x=!0,c.delete(t)),p.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in E){const t=C[e],n=S[e];if(u.hasOwnProperty(e))continue;let o=!1;o=Yp(t)&&Yp(n)?!Zp(t,n):t!==n,o?null!=t?k(e):c.add(e):void 0!==t&&c.has(e)?k(e):p.protectedKeys[e]=!0}p.prevProp=h,p.prevResolvedValues=C,p.isActive&&(u={...u,...C}),o&&e.blockInitialAnimation&&(y=!1),y&&(!v||!b||x)&&l.push(...w.map((e=>({animation:e,options:{type:f}}))))}if(c.size){const t={};c.forEach((n=>{const o=e.getBaseTarget(n),r=e.getValue(n);r&&(r.liveStyle=!0),t[n]=null!=o?o:null})),l.push({animation:t})}let f=Boolean(l.length);return!o||!1!==a.initial&&a.initial!==a.animate||e.manuallyAnimateOnMount||(f=!1),o=!1,f?t(l):Promise.resolve()}return{animateChanges:i,setActive:function(t,o){var r;if(n[t].isActive===o)return Promise.resolve();null===(r=e.variantChildren)||void 0===r||r.forEach((e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,o)})),n[t].isActive=o;const a=i(t);for(const e in n)n[e].protectedKeys={};return a},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=Dv(),o=!0}}}function Rv(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!Zp(t,e)}function Av(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Dv(){return{animate:Av(!0),whileInView:Av(),whileHover:Av(),whileTap:Av(),whileDrag:Av(),whileFocus:Av(),exit:Av()}}class Bv{constructor(e){this.isMounted=!1,this.node=e}update(){}}let Lv=0;const zv={animation:{Feature:class extends Bv{constructor(e){super(e),e.animationState||(e.animationState=Tv(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Xp(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null===(e=this.unmountControls)||void 0===e||e.call(this)}}},exit:{Feature:class extends Bv{constructor(){super(...arguments),this.id=Lv++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const o=this.node.animationState.setActive("exit",!e);t&&!e&&o.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},Fv=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function Hv(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const Vv=e=>t=>Fv(t)&&e(t,Hv(t));function Wv(e,t,n,o={passive:!0}){return e.addEventListener(t,n,o),()=>e.removeEventListener(t,n)}function Kv(e,t,n,o){return Wv(e,t,Vv(n),o)}const qv=(e,t)=>Math.abs(e-t);class Uv{constructor(e,t,{transformPagePoint:n,contextWindow:o,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=Yv(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=qv(e.x,t.x),o=qv(e.y,t.y);return Math.sqrt(n**2+o**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:o}=e,{timestamp:r}=xh;this.history.push({...o,timestamp:r});const{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Gv(t,this.transformPagePoint),bh.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:n,onSessionEnd:o,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const i=Yv("pointercancel"===e.type?this.lastMoveEventInfo:Gv(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),o&&o(e,i)},!Fv(e))return;this.dragSnapToOrigin=r,this.handlers=t,this.transformPagePoint=n,this.contextWindow=o||window;const i=Gv(Hv(e),this.transformPagePoint),{point:a}=i,{timestamp:s}=xh;this.history=[{...a,timestamp:s}];const{onSessionStart:l}=t;l&&l(e,Yv(i,this.history)),this.removeListeners=_g(Kv(this.contextWindow,"pointermove",this.handlePointerMove),Kv(this.contextWindow,"pointerup",this.handlePointerUp),Kv(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),yh(this.updatePoint)}}function Gv(e,t){return t?{point:t(e.point)}:e}function Xv(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Yv({point:e},t){return{point:e,delta:Xv(e,Qv(t)),offset:Xv(e,Zv(t)),velocity:Jv(t,.1)}}function Zv(e){return e[0]}function Qv(e){return e[e.length-1]}function Jv(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,o=null;const r=Qv(e);for(;n>=0&&(o=e[n],!(r.timestamp-o.timestamp>ah(t)));)n--;if(!o)return{x:0,y:0};const i=sh(r.timestamp-o.timestamp);if(0===i)return{x:0,y:0};const a={x:(r.x-o.x)/i,y:(r.y-o.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function eb(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}const tb=eb("dragHorizontal"),nb=eb("dragVertical");function ob(e){let t=!1;if("y"===e)t=nb();else if("x"===e)t=tb();else{const e=tb(),n=nb();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function rb(){const e=ob(!0);return!e||(e(),!1)}function ib(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}const ab=.9999,sb=1.0001,lb=-.01,cb=.01;function ub(e){return e.max-e.min}function db(e,t,n,o=.5){e.origin=o,e.originPoint=jg(t.min,t.max,e.origin),e.scale=ub(n)/ub(t),e.translate=jg(n.min,n.max,e.origin)-e.originPoint,(e.scale>=ab&&e.scale<=sb||isNaN(e.scale))&&(e.scale=1),(e.translate>=lb&&e.translate<=cb||isNaN(e.translate))&&(e.translate=0)}function fb(e,t,n,o){db(e.x,t.x,n.x,o?o.originX:void 0),db(e.y,t.y,n.y,o?o.originY:void 0)}function pb(e,t,n){e.min=n.min+t.min,e.max=e.min+ub(t)}function hb(e,t,n){e.min=t.min-n.min,e.max=e.min+ub(t)}function mb(e,t,n){hb(e.x,t.x,n.x),hb(e.y,t.y,n.y)}function gb(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function vb(e,t){let n=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,o]=[o,n]),{min:n,max:o}}const bb=.35;function yb(e,t,n){return{min:xb(e,t),max:xb(e,n)}}function xb(e,t){return"number"==typeof e?e:e[t]||0}const wb=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),Cb=()=>({x:{min:0,max:0},y:{min:0,max:0}});function Sb(e){return[e("x"),e("y")]}function Eb({top:e,left:t,right:n,bottom:o}){return{x:{min:t,max:n},y:{min:e,max:o}}}function kb(e){return void 0===e||1===e}function $b({scale:e,scaleX:t,scaleY:n}){return!kb(e)||!kb(t)||!kb(n)}function _b(e){return $b(e)||Ob(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Ob(e){return jb(e.x)||jb(e.y)}function jb(e){return e&&"0%"!==e}function Mb(e,t,n){return n+t*(e-n)}function Pb(e,t,n,o,r){return void 0!==r&&(e=Mb(e,r,o)),Mb(e,n,o)+t}function Ib(e,t=0,n=1,o,r){e.min=Pb(e.min,t,n,o,r),e.max=Pb(e.max,t,n,o,r)}function Nb(e,{x:t,y:n}){Ib(e.x,t.translate,t.scale,t.originPoint),Ib(e.y,n.translate,n.scale,n.originPoint)}const Tb=.999999999999,Rb=1.0000000000001;function Ab(e,t){e.min=e.min+t,e.max=e.max+t}function Db(e,t,n,o,r=.5){Ib(e,t,n,jg(e.min,e.max,r),o)}function Bb(e,t){Db(e.x,t.x,t.scaleX,t.scale,t.originX),Db(e.y,t.y,t.scaleY,t.scale,t.originY)}function Lb(e,t){return Eb(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),o=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:o.y,right:o.x}}(e.getBoundingClientRect(),t))}const zb=({current:e})=>e?e.ownerDocument.defaultView:null,Fb=new WeakMap;class Hb{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Cb(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:o}=this.getProps();this.panSession=new Uv(e,{onSessionStart:e=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(Hv(e,"page").point)},onStart:(e,t)=>{const{drag:n,dragPropagation:o,onDragStart:r}=this.getProps();if(n&&!o&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ob(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Sb((e=>{let t=this.getAxisMotionValue(e).get()||0;if(Yh.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const o=n.layout.layoutBox[e];o&&(t=ub(o)*(parseFloat(t)/100))}}this.originPoint[e]=t})),r&&bh.postRender((()=>r(e,t))),kv(this.visualElement,"transform");const{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:o,onDirectionLock:r,onDrag:i}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:a}=t;if(o&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(a),void(null!==this.currentDirection&&r&&r(this.currentDirection));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>Sb((e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:o,contextWindow:zb(this.visualElement)})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:o}=t;this.startAnimation(o);const{onDragEnd:r}=this.getProps();r&&bh.postRender((()=>r(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:o}=this.getProps();if(!n||!Vb(e,o,this.currentDirection))return;const r=this.getAxisMotionValue(e);let i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:n},o){return void 0!==t&&e<t?e=o?jg(t,e,o.min):Math.max(e,t):void 0!==n&&e>n&&(e=o?jg(n,e,o.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),r.set(i)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:n}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,r=this.constraints;t&&ib(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!o)&&function(e,{top:t,left:n,bottom:o,right:r}){return{x:gb(e.x,n,r),y:gb(e.y,t,o)}}(o.layoutBox,t),this.elastic=function(e=bb){return!1===e?e=0:!0===e&&(e=bb),{x:yb(e,"left","right"),y:yb(e,"top","bottom")}}(n),r!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Sb((e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(o.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!ib(e))return!1;const n=e.current;Rh(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const r=function(e,t,n){const o=Lb(e,n),{scroll:r}=t;return r&&(Ab(o.x,r.offset.x),Ab(o.y,r.offset.y)),o}(n,o.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:vb(e.x,t.x),y:vb(e.y,t.y)}}(o.layout.layoutBox,r);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=Eb(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:o,dragTransition:r,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=Sb((a=>{if(!Vb(a,t,this.currentDirection))return;let l=s&&s[a]||{};i&&(l={min:0,max:0});const c=o?200:1e6,u=o?40:1e7,d={type:"inertia",velocity:n?e[a]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(a,d)}));return Promise.all(l).then(a)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return kv(this.visualElement,e),n.start(dv(e,n,0,t,this.visualElement,!1))}stopAnimation(){Sb((e=>this.getAxisMotionValue(e).stop()))}pauseAnimation(){Sb((e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()}))}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){Sb((t=>{const{drag:n}=this.getProps();if(!Vb(t,n,this.currentDirection))return;const{projection:o}=this.visualElement,r=this.getAxisMotionValue(t);if(o&&o.layout){const{min:n,max:i}=o.layout.layoutBox[t];r.set(e[t]-jg(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!ib(t)||!n||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Sb((e=>{const t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){const n=t.get();o[e]=function(e,t){let n=.5;const o=ub(e),r=ub(t);return r>o?n=Og(t.min,t.max-o,e.min):o>r&&(n=Og(e.min,e.max-r,t.min)),Wh(0,1,n)}({min:n,max:n},this.constraints[e])}}));const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Sb((t=>{if(!Vb(t,e,null))return;const n=this.getAxisMotionValue(t),{min:r,max:i}=this.constraints[t];n.set(jg(r,i,o[t]))}))}addListeners(){if(!this.visualElement.current)return;Fb.set(this.visualElement,this);const e=Kv(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();ib(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,o=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),bh.read(t);const r=Wv(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Sb((t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))})),this.visualElement.render())}));return()=>{r(),e(),o(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:o=!1,dragConstraints:r=!1,dragElastic:i=bb,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:o,dragConstraints:r,dragElastic:i,dragMomentum:a}}}function Vb(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const Wb=e=>(t,n)=>{e&&bh.postRender((()=>e(t,n)))},Kb=(0,p.createContext)(null),qb=(0,p.createContext)({}),Ub=(0,p.createContext)({}),Gb={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Xb(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Yb={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!Zh.test(e))return e;e=parseFloat(e)}return`${Xb(e,t.target.x)}% ${Xb(e,t.target.y)}%`}},Zb={correct:(e,{treeScale:t,projectionDelta:n})=>{const o=e,r=Bm.parse(e);if(r.length>5)return o;const i=Bm.createTransformer(e),a="number"!=typeof r[0]?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;r[0+a]/=s,r[1+a]/=l;const c=jg(s,l,.5);return"number"==typeof r[2+a]&&(r[2+a]/=c),"number"==typeof r[3+a]&&(r[3+a]/=c),i(r)}},Qb={},{schedule:Jb,cancel:ey}=vh(queueMicrotask,!1);class ty extends p.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:o}=this.props,{projection:r}=e;var i;i=oy,Object.assign(Qb,i),r&&(t.group&&t.group.add(r),n&&n.register&&o&&n.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",(()=>{this.safeToRemove()})),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),Gb.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:o,isPresent:r}=this.props,i=n.projection;return i?(i.isPresent=r,o||e.layoutDependency!==t||void 0===t?i.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?i.promote():i.relegate()||bh.postRender((()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Jb.postRender((()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:o}=e;o&&(o.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(o),n&&n.deregister&&n.deregister(o))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function ny(e){const[t,n]=function(){const e=(0,p.useContext)(Kb);if(null===e)return[!0,null];const{isPresent:t,onExitComplete:n,register:o}=e,r=(0,p.useId)();(0,p.useEffect)((()=>o(r)),[]);const i=(0,p.useCallback)((()=>n&&n(r)),[r,n]);return!t&&n?[!1,i]:[!0]}(),o=(0,p.useContext)(qb);return(0,a.jsx)(ty,{...e,layoutGroup:o,switchLayoutGroup:(0,p.useContext)(Ub),isPresent:t,safeToRemove:n})}const oy={borderRadius:{...Yb,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Yb,borderTopRightRadius:Yb,borderBottomLeftRadius:Yb,borderBottomRightRadius:Yb,boxShadow:Zb},ry=["TopLeft","TopRight","BottomLeft","BottomRight"],iy=ry.length,ay=e=>"string"==typeof e?parseFloat(e):e,sy=e=>"number"==typeof e||Zh.test(e);function ly(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const cy=dy(0,.5,Ph),uy=dy(.5,.95,mh);function dy(e,t,n){return o=>o<e?0:o>t?1:n(Og(e,t,o))}function fy(e,t){e.min=t.min,e.max=t.max}function py(e,t){fy(e.x,t.x),fy(e.y,t.y)}function hy(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function my(e,t,n,o,r){return e=Mb(e-=t,1/n,o),void 0!==r&&(e=Mb(e,1/r,o)),e}function gy(e,t,[n,o,r],i,a){!function(e,t=0,n=1,o=.5,r,i=e,a=e){if(Yh.test(t)&&(t=parseFloat(t),t=jg(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let s=jg(i.min,i.max,o);e===i&&(s-=t),e.min=my(e.min,t,n,s,r),e.max=my(e.max,t,n,s,r)}(e,t[n],t[o],t[r],t.scale,i,a)}const vy=["x","scaleX","originX"],by=["y","scaleY","originY"];function yy(e,t,n,o){gy(e.x,t,vy,n?n.x:void 0,o?o.x:void 0),gy(e.y,t,by,n?n.y:void 0,o?o.y:void 0)}function xy(e){return 0===e.translate&&1===e.scale}function wy(e){return xy(e.x)&&xy(e.y)}function Cy(e,t){return e.min===t.min&&e.max===t.max}function Sy(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Ey(e,t){return Sy(e.x,t.x)&&Sy(e.y,t.y)}function ky(e){return ub(e.x)/ub(e.y)}function $y(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class _y{constructor(){this.members=[]}add(e){hv(this.members,e),e.scheduleRender()}remove(e){if(mv(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let n;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:o}=e.options;!1===o&&n.hide()}}exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Oy=(e,t)=>e.depth-t.depth;class jy{constructor(){this.children=[],this.isDirty=!1}add(e){hv(this.children,e),this.isDirty=!0}remove(e){mv(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Oy),this.isDirty=!1,this.children.forEach(e)}}function My(e){const t=Ev(e)?e.get():e;return fv(t)?t.toValue():t}const Py={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Iy="undefined"!=typeof window&&void 0!==window.MotionDebug,Ny=["","X","Y","Z"],Ty={visibility:"hidden"};let Ry=0;function Ay(e,t,n,o){const{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),o&&(o[e]=0))}function Dy(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Sv(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:t,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",bh,!(t||o))}const{parent:o}=e;o&&!o.hasCheckedOptimisedAppear&&Dy(o)}function By({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:o,resetTransform:r}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=Ry++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Iy&&(Py.totalNodes=Py.resolvedTargetDeltas=Py.recalculatedProjection=0),this.nodes.forEach(Fy),this.nodes.forEach(Gy),this.nodes.forEach(Xy),this.nodes.forEach(Hy),Iy&&window.MotionDebug.record(Py)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new jy)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new gv),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;var o;this.isSVG=(o=t)instanceof SVGElement&&"svg"!==o.tagName,this.instance=t;const{layoutId:r,layout:i,visualElement:a}=this.options;if(a&&!a.current&&a.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||r)&&(this.isLayoutDirty=!0),e){let n;const o=()=>this.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=tg.now(),o=({timestamp:r})=>{const i=r-n;i>=t&&(yh(o),e(i-t))};return bh.read(o,!0),()=>yh(o)}(o,250),Gb.hasAnimatedSinceResize&&(Gb.hasAnimatedSinceResize=!1,this.nodes.forEach(Uy))}))}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&a&&(r||i)&&this.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:o})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const r=this.options.transition||a.getDefaultTransition()||tx,{onLayoutAnimationStart:i,onLayoutAnimationComplete:s}=a.getProps(),l=!this.targetLayout||!Ey(this.targetLayout,o)||n,c=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);const t={...fh(r,"layout"),onPlay:i,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||Uy(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=o}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,yh(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Yy),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Dy(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const o=this.getTransformTemplate();this.prevTransformTemplateValue=o?o(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Wy);this.isUpdating||this.nodes.forEach(Ky),this.isUpdating=!1,this.nodes.forEach(qy),this.nodes.forEach(Ly),this.nodes.forEach(zy),this.clearAllSnapshots();const e=tg.now();xh.delta=Wh(0,1e3/60,e-xh.timestamp),xh.timestamp=e,xh.isProcessing=!0,wh.update.process(xh),wh.preRender.process(xh),wh.render.process(xh),xh.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Jb.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Vy),this.sharedNodes.forEach(Zy)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,bh.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){bh.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Cb(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t){const t=o(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!r)return;const e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!wy(this.projectionDelta),n=this.getTransformTemplate(),o=n?n(this.latestValues,""):void 0,i=o!==this.prevTransformTemplateValue;e&&(t||_b(this.latestValues)||i)&&(r(this.instance,o),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),function(e){rx(e.x),rx(e.y)}(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var e;const{visualElement:t}=this.options;if(!t)return Cb();const n=t.measureViewportBox();if(!(null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)&&!this.path.some(ax)){const{scroll:e}=this.root;e&&(Ab(n.x,e.offset.x),Ab(n.y,e.offset.y))}return n}removeElementScroll(e){var t;const n=Cb();if(py(n,e),null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)return n;for(let t=0;t<this.path.length;t++){const o=this.path[t],{scroll:r,options:i}=o;o!==this.root&&r&&i.layoutScroll&&(r.wasRoot&&py(n,e),Ab(n.x,r.offset.x),Ab(n.y,r.offset.y))}return n}applyTransform(e,t=!1){const n=Cb();py(n,e);for(let e=0;e<this.path.length;e++){const o=this.path[e];!t&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Bb(n,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),_b(o.latestValues)&&Bb(n,o.latestValues)}return _b(this.latestValues)&&Bb(n,this.latestValues),n}removeTransform(e){const t=Cb();py(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!_b(n.latestValues))continue;$b(n.latestValues)&&n.updateSnapshot();const o=Cb();py(o,n.measurePageBox()),yy(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,o)}return _b(this.latestValues)&&yy(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==xh.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const o=Boolean(this.resumingFrom)||this!==n;if(!(e||o&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:r,layoutId:i}=this.options;if(this.layout&&(r||i)){if(this.resolvedRelativeTargetAt=xh.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Cb(),this.relativeTargetOrigin=Cb(),mb(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),py(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var a,s,l;if(this.target||(this.target=Cb(),this.targetWithTransforms=Cb()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),a=this.target,s=this.relativeTarget,l=this.relativeParent.target,pb(a.x,s.x,l.x),pb(a.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):py(this.target,this.layout.layoutBox),Nb(this.target,this.targetDelta)):py(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Cb(),this.relativeTargetOrigin=Cb(),mb(this.relativeTargetOrigin,this.target,e.target),py(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Iy&&Py.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!$b(this.parent.latestValues)&&!Ob(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let o=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(o=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(o=!1),this.resolvedRelativeTargetAt===xh.timestamp&&(o=!1),o)return;const{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!r&&!i)return;py(this.layoutCorrected,this.layout.layoutBox);const a=this.treeScale.x,s=this.treeScale.y;!function(e,t,n,o=!1){const r=n.length;if(!r)return;let i,a;t.x=t.y=1;for(let s=0;s<r;s++){i=n[s],a=i.projectionDelta;const{visualElement:r}=i.options;r&&r.props.style&&"contents"===r.props.style.display||(o&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Bb(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,Nb(e,a)),o&&_b(i.latestValues)&&Bb(e,i.latestValues))}t.x<Rb&&t.x>Tb&&(t.x=1),t.y<Rb&&t.y>Tb&&(t.y=1)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox,t.targetWithTransforms=Cb());const{target:l}=t;l?(this.projectionDelta&&this.prevProjectionDelta?(hy(this.prevProjectionDelta.x,this.projectionDelta.x),hy(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),fb(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===a&&this.treeScale.y===s&&$y(this.projectionDelta.x,this.prevProjectionDelta.x)&&$y(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),Iy&&Py.recalculatedProjection++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if(null===(t=this.options.visualElement)||void 0===t||t.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=wb(),this.projectionDelta=wb(),this.projectionDeltaWithTransform=wb()}setAnimationOrigin(e,t=!1){const n=this.snapshot,o=n?n.latestValues:{},r={...this.latestValues},i=wb();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const a=Cb(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(s&&!c&&!0===this.options.crossfade&&!this.path.some(ex));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;var l,f;Qy(i.x,e.x,n),Qy(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(mb(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,o){Jy(e.x,t.x,n.x,o),Jy(e.y,t.y,n.y,o)}(this.relativeTarget,this.relativeTargetOrigin,a,n),d&&(l=this.relativeTarget,f=d,Cy(l.x,f.x)&&Cy(l.y,f.y))&&(this.isProjectionDirty=!1),d||(d=Cb()),py(d,this.relativeTarget)),s&&(this.animationValues=r,function(e,t,n,o,r,i){r?(e.opacity=jg(0,void 0!==n.opacity?n.opacity:1,cy(o)),e.opacityExit=jg(void 0!==t.opacity?t.opacity:1,0,uy(o))):i&&(e.opacity=jg(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,o));for(let r=0;r<iy;r++){const i=`border${ry[r]}Radius`;let a=ly(t,i),s=ly(n,i);void 0===a&&void 0===s||(a||(a=0),s||(s=0),0===a||0===s||sy(a)===sy(s)?(e[i]=Math.max(jg(ay(a),ay(s),o),0),(Yh.test(s)||Yh.test(a))&&(e[i]+="%")):e[i]=s)}(t.rotate||n.rotate)&&(e.rotate=jg(t.rotate||0,n.rotate||0,o))}(r,o,this.latestValues,n,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(yh(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=bh.update((()=>{Gb.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const o=Ev(0)?0:yv(0);return o.start(dv("",o,1e3,n)),o.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:o,latestValues:r}=e;if(t&&n&&o){if(this!==e&&this.layout&&o&&ix(this.options.animationType,this.layout.layoutBox,o.layoutBox)){n=this.target||Cb();const t=ub(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const o=ub(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+o}py(t,n),Bb(t,r),fb(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new _y),this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const o=this.getStack();o&&o.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;const o={};n.z&&Ay("z",e,o,this.animationValues);for(let t=0;t<Ny.length;t++)Ay(`rotate${Ny[t]}`,e,o,this.animationValues),Ay(`skew${Ny[t]}`,e,o,this.animationValues);e.render();for(const t in o)e.setStaticValue(t,o[t]),this.animationValues&&(this.animationValues[t]=o[t]);e.scheduleRender()}getProjectionStyles(e){var t,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Ty;const o={visibility:""},r=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,o.opacity="",o.pointerEvents=My(null==e?void 0:e.pointerEvents)||"",o.transform=r?r(this.latestValues,""):"none",o;const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=My(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!_b(this.latestValues)&&(t.transform=r?r({},""):"none",this.hasProjected=!1),t}const a=i.animationValues||i.latestValues;this.applyTransformsToTarget(),o.transform=function(e,t,n){let o="";const r=e.x.translate/t.x,i=e.y.translate/t.y,a=(null==n?void 0:n.z)||0;if((r||i||a)&&(o=`translate3d(${r}px, ${i}px, ${a}px) `),1===t.x&&1===t.y||(o+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:e,rotate:t,rotateX:r,rotateY:i,skewX:a,skewY:s}=n;e&&(o=`perspective(${e}px) ${o}`),t&&(o+=`rotate(${t}deg) `),r&&(o+=`rotateX(${r}deg) `),i&&(o+=`rotateY(${i}deg) `),a&&(o+=`skewX(${a}deg) `),s&&(o+=`skewY(${s}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return 1===s&&1===l||(o+=`scale(${s}, ${l})`),o||"none"}(this.projectionDeltaWithTransform,this.treeScale,a),r&&(o.transform=r(a,o.transform));const{x:s,y:l}=this.projectionDelta;o.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,i.animationValues?o.opacity=i===this?null!==(n=null!==(t=a.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:o.opacity=i===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const e in Qb){if(void 0===a[e])continue;const{correct:t,applyTo:n}=Qb[e],r="none"===o.transform?a[e]:t(a[e],i);if(n){const e=n.length;for(let t=0;t<e;t++)o[n[t]]=r}else o[e]=r}return this.options.layoutId&&(o.pointerEvents=i===this?My(null==e?void 0:e.pointerEvents)||"":"none"),o}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(Wy),this.root.sharedNodes.clear()}}}function Ly(e){e.updateLayout()}function zy(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:o}=e.layout,{animationType:r}=e.options,i=n.source!==e.layout.source;"size"===r?Sb((e=>{const o=i?n.measuredBox[e]:n.layoutBox[e],r=ub(o);o.min=t[e].min,o.max=o.min+r})):ix(r,n.layoutBox,t)&&Sb((o=>{const r=i?n.measuredBox[o]:n.layoutBox[o],a=ub(t[o]);r.max=r.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[o].max=e.relativeTarget[o].min+a)}));const a=wb();fb(a,t,n.layoutBox);const s=wb();i?fb(s,e.applyTransform(o,!0),n.measuredBox):fb(s,t,n.layoutBox);const l=!wy(a);let c=!1;if(!e.resumeFrom){const o=e.getClosestProjectingParent();if(o&&!o.resumeFrom){const{snapshot:r,layout:i}=o;if(r&&i){const a=Cb();mb(a,n.layoutBox,r.layoutBox);const s=Cb();mb(s,t,i.layoutBox),Ey(a,s)||(c=!0),o.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=o)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Fy(e){Iy&&Py.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Hy(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Vy(e){e.clearSnapshot()}function Wy(e){e.clearMeasurements()}function Ky(e){e.isLayoutDirty=!1}function qy(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Uy(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Gy(e){e.resolveTargetDelta()}function Xy(e){e.calcProjection()}function Yy(e){e.resetSkewAndRotation()}function Zy(e){e.removeLeadSnapshot()}function Qy(e,t,n){e.translate=jg(t.translate,0,n),e.scale=jg(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Jy(e,t,n,o){e.min=jg(t.min,n.min,o),e.max=jg(t.max,n.max,o)}function ex(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const tx={duration:.45,ease:[.4,0,.1,1]},nx=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ox=nx("applewebkit/")&&!nx("chrome/")?Math.round:mh;function rx(e){e.min=ox(e.min),e.max=ox(e.max)}function ix(e,t,n){return"position"===e||"preserve-aspect"===e&&(o=ky(t),r=ky(n),.2,!(Math.abs(o-r)<=.2));var o,r}function ax(e){var t;return e!==e.root&&(null===(t=e.scroll)||void 0===t?void 0:t.wasRoot)}const sx=By({attachResizeListener:(e,t)=>Wv(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),lx={current:void 0},cx=By({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!lx.current){const e=new sx({});e.mount(window),e.setOptions({layoutScroll:!0}),lx.current=e}return lx.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),ux={pan:{Feature:class extends Bv{constructor(){super(...arguments),this.removePointerDownListener=mh}onPointerDown(e){this.session=new Uv(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:zb(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:o}=this.node.getProps();return{onSessionStart:Wb(e),onStart:Wb(t),onMove:n,onEnd:(e,t)=>{delete this.session,o&&bh.postRender((()=>o(e,t)))}}}mount(){this.removePointerDownListener=Kv(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Bv{constructor(e){super(e),this.removeGroupControls=mh,this.removeListeners=mh,this.controls=new Hb(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||mh}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:cx,MeasureLayout:ny}};function dx(e,t){const n=t?"pointerenter":"pointerleave",o=t?"onHoverStart":"onHoverEnd";return Kv(e.current,n,((n,r)=>{if("touch"===n.pointerType||rb())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t);const a=i[o];a&&bh.postRender((()=>a(n,r)))}),{passive:!e.getProps()[o]})}const fx=(e,t)=>!!t&&(e===t||fx(e,t.parentElement));function px(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Hv(n))}const hx=new WeakMap,mx=new WeakMap,gx=e=>{const t=hx.get(e.target);t&&t(e)},vx=e=>{e.forEach(gx)};const bx={some:0,all:1},yx={inView:{Feature:class extends Bv{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:o="some",once:r}=e,i={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof o?o:bx[o]};return function(e,t,n){const o=function({root:e,...t}){const n=e||document;mx.has(n)||mx.set(n,{});const o=mx.get(n),r=JSON.stringify(t);return o[r]||(o[r]=new IntersectionObserver(vx,{root:e,...t})),o[r]}(t);return hx.set(e,n),o.observe(e),()=>{hx.delete(e),o.unobserve(e)}}(this.node.current,i,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,r&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:o}=this.node.getProps(),i=t?n:o;i&&i(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Bv{constructor(){super(...arguments),this.removeStartListeners=mh,this.removeEndListeners=mh,this.removeAccessibleListeners=mh,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),o=Kv(window,"pointerup",((e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:o,globalTapTarget:r}=this.node.getProps(),i=r||fx(this.node.current,e.target)?n:o;i&&bh.update((()=>i(e,t)))}),{passive:!(n.onTap||n.onPointerUp)}),r=Kv(window,"pointercancel",((e,t)=>this.cancelPress(e,t)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=_g(o,r),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=Wv(this.node.current,"keydown",(e=>{"Enter"!==e.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=Wv(this.node.current,"keyup",(e=>{"Enter"===e.key&&this.checkPressEnd()&&px("up",((e,t)=>{const{onTap:n}=this.node.getProps();n&&bh.postRender((()=>n(e,t)))}))})),px("down",((e,t)=>{this.startPress(e,t)})))})),t=Wv(this.node.current,"blur",(()=>{this.isPressing&&px("cancel",((e,t)=>this.cancelPress(e,t)))}));this.removeAccessibleListeners=_g(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:n,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&bh.postRender((()=>n(e,t)))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!rb()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&bh.postRender((()=>n(e,t)))}mount(){const e=this.node.getProps(),t=Kv(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=Wv(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=_g(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Bv{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=_g(Wv(this.node.current,"focus",(()=>this.onFocus())),Wv(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends Bv{mount(){this.unmount=_g(dx(this.node,!0),dx(this.node,!1))}unmount(){}}}},xx={layout:{ProjectionNode:cx,MeasureLayout:ny}},wx=(0,p.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Cx=(0,p.createContext)({}),Sx="undefined"!=typeof window,Ex=Sx?p.useLayoutEffect:p.useEffect,kx=(0,p.createContext)({strict:!1});function $x(e,t,n,o,r){var i,a;const{visualElement:s}=(0,p.useContext)(Cx),l=(0,p.useContext)(kx),c=(0,p.useContext)(Kb),u=(0,p.useContext)(wx).reducedMotion,d=(0,p.useRef)();o=o||l.renderer,!d.current&&o&&(d.current=o(e,{visualState:t,parent:s,props:n,presenceContext:c,blockInitialAnimation:!!c&&!1===c.initial,reducedMotionConfig:u}));const f=d.current,h=(0,p.useContext)(Ub);!f||f.projection||!r||"html"!==f.type&&"svg"!==f.type||function(e,t,n,o){const{layoutId:r,layout:i,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Ox(e.parent)),e.projection.setOptions({layoutId:r,layout:i,alwaysMeasureLayout:Boolean(a)||s&&ib(s),visualElement:e,animationType:"string"==typeof i?i:"both",initialPromotionConfig:o,layoutScroll:l,layoutRoot:c})}(d.current,n,r,h),(0,p.useInsertionEffect)((()=>{f&&f.update(n,c)}));const m=n[Cv],g=(0,p.useRef)(Boolean(m)&&!(null===(i=window.MotionHandoffIsComplete)||void 0===i?void 0:i.call(window,m))&&(null===(a=window.MotionHasOptimisedAnimation)||void 0===a?void 0:a.call(window,m)));return Ex((()=>{f&&(window.MotionIsMounted=!0,f.updateFeatures(),Jb.render(f.render),g.current&&f.animationState&&f.animationState.animateChanges())})),(0,p.useEffect)((()=>{f&&(!g.current&&f.animationState&&f.animationState.animateChanges(),g.current&&(queueMicrotask((()=>{var e;null===(e=window.MotionHandoffMarkAsComplete)||void 0===e||e.call(window,m)})),g.current=!1))})),f}function Ox(e){if(e)return!1!==e.options.allowProjection?e.projection:Ox(e.parent)}function jx(e,t,n){return(0,p.useCallback)((o=>{o&&e.mount&&e.mount(o),t&&(o?t.mount(o):t.unmount()),n&&("function"==typeof n?n(o):ib(n)&&(n.current=o))}),[t])}function Mx(e){return Xp(e.animate)||oh.some((t=>Qp(e[t])))}function Px(e){return Boolean(Mx(e)||e.variants)}function Ix(e){return Array.isArray(e)?e.join(" "):e}const Nx={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Tx={};for(const e in Nx)Tx[e]={isEnabled:t=>Nx[e].some((e=>!!t[e]))};const Rx=Symbol.for("motionComponentSymbol");function Ax({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:o,Component:r}){e&&function(e){for(const t in e)Tx[t]={...Tx[t],...e[t]}}(e);const i=(0,p.forwardRef)((function(e,i){let s;const l={...(0,p.useContext)(wx),...e,layoutId:Dx(e)},{isStatic:c}=l,u=function(e){const{initial:t,animate:n}=function(e,t){if(Mx(e)){const{initial:t,animate:n}=e;return{initial:!1===t||Qp(t)?t:void 0,animate:Qp(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,p.useContext)(Cx));return(0,p.useMemo)((()=>({initial:t,animate:n})),[Ix(t),Ix(n)])}(e),d=o(e,c);if(!c&&Sx){(0,p.useContext)(kx).strict;const e=function(e){const{drag:t,layout:n}=Tx;if(!t&&!n)return{};const o={...t,...n};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==n?void 0:n.isEnabled(e))?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}(l);s=e.MeasureLayout,u.visualElement=$x(r,d,l,t,e.ProjectionNode)}return(0,a.jsxs)(Cx.Provider,{value:u,children:[s&&u.visualElement?(0,a.jsx)(s,{visualElement:u.visualElement,...l}):null,n(r,e,jx(d,u.visualElement,i),d,c,u.visualElement)]})}));return i[Rx]=r,i}function Dx({layoutId:e}){const t=(0,p.useContext)(qb).id;return t&&void 0!==e?t+"-"+e:e}const Bx=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Lx(e){return"string"==typeof e&&!e.includes("-")&&!!(Bx.indexOf(e)>-1||/[A-Z]/u.test(e))}function zx(e,{style:t,vars:n},o,r){Object.assign(e.style,t,r&&r.getProjectionStyles(o));for(const t in n)e.style.setProperty(t,n[t])}const Fx=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Hx(e,t,n,o){zx(e,t,void 0,o);for(const n in t.attrs)e.setAttribute(Fx.has(n)?n:wv(n),t.attrs[n])}function Vx(e,{layout:t,layoutId:n}){return ih.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!Qb[e]||"opacity"===e)}function Wx(e,t,n){var o;const{style:r}=e,i={};for(const a in r)(Ev(r[a])||t.style&&Ev(t.style[a])||Vx(a,e)||void 0!==(null===(o=null==n?void 0:n.getValue(a))||void 0===o?void 0:o.liveStyle))&&(i[a]=r[a]);return n&&r&&"string"==typeof r.willChange&&(n.applyWillChange=!1),i}function Kx(e,t,n){const o=Wx(e,t,n);for(const n in e)(Ev(e[n])||Ev(t[n]))&&(o[-1!==rh.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return o}function qx(e){return ih.has(e)?"transform":Gg.has(e)?wv(e):void 0}const Ux=e=>(t,n)=>{const o=(0,p.useContext)(Cx),r=(0,p.useContext)(Kb),i=()=>function({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:n,onMount:o},r,i,a,s){const l={latestValues:Xx(r,i,a,!s&&e,t),renderState:n()};return o&&(l.mount=e=>o(r,e,l)),l}(e,t,o,r,n);return n?i():function(e){const t=(0,p.useRef)(null);return null===t.current&&(t.current=e()),t.current}(i)};function Gx(e,t,n){const o=Array.isArray(t)?t:[t];for(let t=0;t<o.length;t++){const r=eh(e,o[t]);if(r){const{transitionEnd:e,transition:t,...o}=r;n(o,e)}}}function Xx(e,t,n,o,r){var i;const a={},s=new Set,l=o&&void 0===(null===(i=e.style)||void 0===i?void 0:i.willChange),c=r(e,{});for(const e in c)a[e]=My(c[e]);let{initial:u,animate:d}=e;const f=Mx(e),p=Px(e);t&&p&&!f&&!1!==e.inherit&&(void 0===u&&(u=t.initial),void 0===d&&(d=t.animate));let h=!!n&&!1===n.initial;h=h||!1===u;const m=h?d:u;return m&&"boolean"!=typeof m&&!Xp(m)&&Gx(e,m,((e,t)=>{for(const t in e){let n=e[t];Array.isArray(n)&&(n=n[h?n.length-1:0]),null!==n&&(a[t]=n)}for(const e in t)a[e]=t[e]})),l&&(d&&!1!==u&&!Xp(d)&&Gx(e,d,(e=>{for(const t in e){const e=qx(t);e&&s.add(e)}})),s.size&&(a.willChange=Array.from(s).join(","))),a}const Yx=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Zx=()=>({...Yx(),attrs:{}}),Qx=(e,t)=>t&&"number"==typeof e?t.transform(e):e,Jx={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ew=rh.length;function tw(e,t,n){const{style:o,vars:r,transformOrigin:i}=e;let a=!1,s=!1;for(const e in t){const n=t[e];if(ih.has(e))a=!0;else if(Bh(e))r[e]=n;else{const t=Qx(n,qm[e]);e.startsWith("origin")?(s=!0,i[e]=t):o[e]=t}}if(t.transform||(a||n?o.transform=function(e,t,n){let o="",r=!0;for(let i=0;i<ew;i++){const a=rh[i],s=e[a];if(void 0===s)continue;let l=!0;if(l="number"==typeof s?s===(a.startsWith("scale")?1:0):0===parseFloat(s),!l||n){const e=Qx(s,qm[a]);l||(r=!1,o+=`${Jx[a]||a}(${e}) `),n&&(t[a]=e)}}return o=o.trim(),n?o=n(t,r?"":o):r&&(o="none"),o}(t,e.transform,n):o.transform&&(o.transform="none")),s){const{originX:e="50%",originY:t="50%",originZ:n=0}=i;o.transformOrigin=`${e} ${t} ${n}`}}function nw(e,t,n){return"string"==typeof e?e:Zh.transform(t+n*e)}const ow={offset:"stroke-dashoffset",array:"stroke-dasharray"},rw={offset:"strokeDashoffset",array:"strokeDasharray"};function iw(e,{attrX:t,attrY:n,attrScale:o,originX:r,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...c},u,d){if(tw(e,c,d),u)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:f,style:p,dimensions:h}=e;f.transform&&(h&&(p.transform=f.transform),delete f.transform),h&&(void 0!==r||void 0!==i||p.transform)&&(p.transformOrigin=function(e,t,n){return`${nw(t,e.x,e.width)} ${nw(n,e.y,e.height)}`}(h,void 0!==r?r:.5,void 0!==i?i:.5)),void 0!==t&&(f.x=t),void 0!==n&&(f.y=n),void 0!==o&&(f.scale=o),void 0!==a&&function(e,t,n=1,o=0,r=!0){e.pathLength=1;const i=r?ow:rw;e[i.offset]=Zh.transform(-o);const a=Zh.transform(t),s=Zh.transform(n);e[i.array]=`${a} ${s}`}(f,a,s,l,!1)}const aw=e=>"string"==typeof e&&"svg"===e.toLowerCase(),sw={useVisualState:Ux({scrapeMotionValuesFromProps:Kx,createRenderState:Zx,onMount:(e,t,{renderState:n,latestValues:o})=>{bh.read((()=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}})),bh.render((()=>{iw(n,o,aw(t.tagName),e.transformTemplate),Hx(t,n)}))}})},lw={useVisualState:Ux({applyWillChange:!0,scrapeMotionValuesFromProps:Wx,createRenderState:Yx})};function cw(e,t,n){for(const o in t)Ev(t[o])||Vx(o,n)||(e[o]=t[o])}function uw(e,t){const n={},o=function(e,t){const n={};return cw(n,e.style||{},e),Object.assign(n,function({transformTemplate:e},t){return(0,p.useMemo)((()=>{const n=Yx();return tw(n,t,e),Object.assign({},n.vars,n.style)}),[t])}(e,t)),n}(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=o,n}const dw=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function fw(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||dw.has(e)}let pw=e=>!fw(e);try{(hw=require("@emotion/is-prop-valid").default)&&(pw=e=>e.startsWith("on")?!fw(e):hw(e))}catch(e){}var hw;function mw(e,t,n,o){const r=(0,p.useMemo)((()=>{const n=Zx();return iw(n,t,aw(o),e.transformTemplate),{...n.attrs,style:{...n.style}}}),[t]);if(e.style){const t={};cw(t,e.style,e),r.style={...t,...r.style}}return r}function gw(e=!1){return(t,n,o,{latestValues:r},i)=>{const a=(Lx(t)?mw:uw)(n,r,i,t),s=function(e,t,n){const o={};for(const r in e)"values"===r&&"object"==typeof e.values||(pw(r)||!0===n&&fw(r)||!t&&!fw(r)||e.draggable&&r.startsWith("onDrag"))&&(o[r]=e[r]);return o}(n,"string"==typeof t,e),l=t!==p.Fragment?{...s,...a,ref:o}:{},{children:c}=n,u=(0,p.useMemo)((()=>Ev(c)?c.get():c),[c]);return(0,p.createElement)(t,{...l,children:u})}}function vw(e,t){return function(n,{forwardMotionProps:o}={forwardMotionProps:!1}){return Ax({...Lx(n)?sw:lw,preloadedFeatures:e,useRender:gw(o),createVisualElement:t,Component:n})}}const bw={current:null},yw={current:!1},xw=new WeakMap,ww=[...cm,$m,Bm],Cw=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Sw{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:o,blockInitialAnimation:r,visualState:i},a={}){this.applyWillChange=!1,this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=gm,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const e=tg.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,bh.render(this.render,!1,!0))};const{latestValues:s,renderState:l}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=Boolean(r),this.isControllingVariants=Mx(t),this.isVariantNode=Px(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in u){const t=u[e];void 0!==s[e]&&Ev(t)&&t.set(s[e],!1)}}mount(e){this.current=e,xw.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),yw.current||function(){if(yw.current=!0,Sx)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>bw.current=e.matches;e.addListener(t),t()}else bw.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||bw.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){xw.delete(this.current),this.projection&&this.projection.unmount(),yh(this.notifyUpdate),yh(this.render),this.valueSubscriptions.forEach((e=>e())),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const n=ih.has(e),o=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&bh.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)})),r=t.on("renderRequest",this.scheduleRender);let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,(()=>{o(),r(),i&&i(),t.owner&&t.stop()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in Tx){const t=Tx[e];if(!t)continue;const{isEnabled:n,Feature:o}=t;if(!this.features[e]&&o&&n(this.props)&&(this.features[e]=new o(this)),this.features[e]){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Cb()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Cw.length;t++){const n=Cw[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const o=e["on"+n];o&&(this.propEventSubscriptions[n]=this.on(n,o))}this.prevMotionValues=function(e,t,n){for(const o in t){const r=t[o],i=n[o];if(Ev(r))e.addValue(o,r);else if(Ev(i))e.addValue(o,yv(r,{owner:e}));else if(i!==r)if(e.hasValue(o)){const t=e.getValue(o);!0===t.liveStyle?t.jump(r):t.hasAnimated||t.set(r)}else{const t=e.getStaticValue(o);e.addValue(o,yv(void 0!==t?t:r,{owner:e}))}}for(const o in n)void 0===t[o]&&e.removeValue(o);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=yv(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let o=void 0===this.latestValues[e]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,e))&&void 0!==n?n:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];var r;return null!=o&&("string"==typeof o&&(Ah(o)||Nh(o))?o=parseFloat(o):(r=o,!ww.find(lm(r))&&Bm.test(t)&&(o=Xm(e,t))),this.setBaseTarget(e,Ev(o)?o.get():o)),Ev(o)?o.get():o}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props;let o;if("string"==typeof n||"object"==typeof n){const r=eh(this.props,n,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);r&&(o=r[e])}if(n&&void 0!==o)return o;const r=this.getBaseTargetFromProps(this.props,e);return void 0===r||Ev(r)?void 0!==this.initialValues[e]&&void 0===o?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new gv),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class Ew extends Sw{constructor(){super(...arguments),this.KeyframeResolver=Zm}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}}class kw extends Ew{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=zx}readValueFromInstance(e,t){if(ih.has(t)){const e=Gm(t);return e&&e.default||0}{const o=(n=e,window.getComputedStyle(n)),r=(Bh(t)?o.getPropertyValue(t):o[t])||0;return"string"==typeof r?r.trim():r}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return Lb(e,t)}build(e,t,n){tw(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Wx(e,t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Ev(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}}class $w extends Ew{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Cb}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(ih.has(t)){const e=Gm(t);return e&&e.default||0}return t=Fx.has(t)?t:wv(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Kx(e,t,n)}build(e,t,n){iw(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,o){Hx(e,t,0,o)}mount(e){this.isSVGTag=aw(e.tagName),super.mount(e)}}const _w=(e,t)=>Lx(e)?new $w(t):new kw(t,{allowProjection:e!==p.Fragment}),Ow=Gp(vw({...zv,...yx,...ux,...xx},_w)),jw={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"};var Mw=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:jw}))};const Pw=p.forwardRef(Mw),Iw={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"};var Nw=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:Iw}))};const Tw=p.forwardRef(Nw);function Rw(e){return null!=e&&e===e.window}function Aw(e,t){var n,o;if("undefined"==typeof window)return 0;const r=t?"scrollTop":"scrollLeft";let i=0;return Rw(e)?i=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?i=e.documentElement[r]:(e instanceof HTMLElement||e)&&(i=e[r]),e&&!Rw(e)&&"number"!=typeof i&&(i=null===(o=(null!==(n=e.ownerDocument)&&void 0!==n?n:e).documentElement)||void 0===o?void 0:o[r]),i}function Dw(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{getContainer:n=(()=>window),callback:o,duration:r=450}=t,i=n(),a=Aw(i,!0),s=Date.now(),l=()=>{const t=Date.now()-s,n=function(e,t,n,o){const r=n-t;return(e/=o/2)<1?r/2*e*e*e+t:r/2*((e-=2)*e*e+2)+t}(t>r?r:t,a,e,r);Rw(i)?i.scrollTo(window.pageXOffset,n):i instanceof Document||"HTMLDocument"===i.constructor.name?i.documentElement.scrollTop=n:i.scrollTop=n,t<r?na(l):"function"==typeof o&&o()};na(l)}const Bw=h().createContext(void 0),{Provider:Lw}=Bw,zw=Bw,Fw=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],Hw=Fw.map((e=>`${e}-inverse`));function Vw(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?Fw.includes(e):[].concat(Ye(Hw),Ye(Fw)).includes(e)}function Ww(e,t){return Fw.reduce(((n,o)=>{const r=e[`${o}1`],i=e[`${o}3`],a=e[`${o}6`],s=e[`${o}7`];return Object.assign(Object.assign({},n),t(o,{lightColor:r,lightBorderColor:i,darkColor:a,textColor:s}))}),{})}const Kw=new _o("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),qw=new _o("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),Uw=new _o("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),Gw=new _o("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),Xw=new _o("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),Yw=new _o("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),Zw=e=>{const{fontHeight:t,lineWidth:n,marginXS:o,colorBorderBg:r}=e;return Js(e,{badgeFontHeight:t,badgeShadowSize:n,badgeTextColor:e.colorBgContainer,badgeColor:e.colorError,badgeColorHover:e.colorErrorHover,badgeShadowColor:r,badgeProcessingDuration:"1.2s",badgeRibbonOffset:o,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},Qw=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:o,lineWidth:r}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*r,indicatorHeightSM:t,dotSize:o/2,textFontSize:o,textFontSizeSM:o,textFontWeight:"normal",statusSize:o/2}},Jw=hl("Badge",(e=>(e=>{const{componentCls:t,iconCls:n,antCls:o,badgeShadowSize:r,motionDurationSlow:i,textFontSize:a,textFontSizeSM:s,statusSize:l,dotSize:c,textFontWeight:u,indicatorHeight:d,indicatorHeightSM:f,marginXS:p,calc:h}=e,m=`${o}-scroll-number`,g=Ww(e,((e,n)=>{let{darkColor:o}=n;return{[`&${t} ${t}-color-${e}`]:{background:o,[`&:not(${t}-count)`]:{color:o}}}}));return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ia(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{zIndex:e.indicatorZIndex,minWidth:d,height:d,color:e.badgeTextColor,fontWeight:u,fontSize:a,lineHeight:qt(d),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:h(d).div(2).equal(),boxShadow:`0 0 0 ${qt(r)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:f,height:f,fontSize:s,lineHeight:qt(f),borderRadius:h(f).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${qt(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:c,minWidth:c,height:c,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${qt(r)} ${e.badgeShadowColor}`},[`${t}-dot${m}`]:{transition:`background ${i}`},[`${t}-count, ${t}-dot, ${m}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:Yw,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:l,height:l,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorPrimary,backgroundColor:e.colorPrimary,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:r,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:Kw,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:p,color:e.colorText,fontSize:e.fontSize}}}),g),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:qw,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:Uw,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:Gw,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:Xw,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${m}-custom-component, ${t}-count`]:{transform:"none"},[`${m}-custom-component, ${m}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${m}`]:{overflow:"hidden",[`${m}-only`]:{position:"relative",display:"inline-block",height:d,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${m}-only-unit`]:{height:d,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${m}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${m}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}})(Zw(e))),Qw),eC=hl(["Badge","Ribbon"],(e=>(e=>{const{antCls:t,badgeFontHeight:n,marginXS:o,badgeRibbonOffset:r,calc:i}=e,a=`${t}-ribbon`,s=`${t}-ribbon-wrapper`,l=Ww(e,((e,t)=>{let{darkColor:n}=t;return{[`&${a}-color-${e}`]:{background:n,color:n}}}));return{[`${s}`]:{position:"relative"},[`${a}`]:Object.assign(Object.assign(Object.assign(Object.assign({},Ia(e)),{position:"absolute",top:o,padding:`0 ${qt(e.paddingXS)}`,color:e.colorPrimary,lineHeight:qt(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${a}-text`]:{color:e.colorTextLightSolid},[`${a}-corner`]:{position:"absolute",top:"100%",width:r,height:r,color:"currentcolor",border:`${qt(i(r).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),l),{[`&${a}-placement-end`]:{insetInlineEnd:i(r).mul(-1).equal(),borderEndEndRadius:0,[`${a}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${a}-placement-start`]:{insetInlineStart:i(r).mul(-1).equal(),borderEndStartRadius:0,[`${a}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}})(Zw(e))),Qw);function tC(e){let t,{prefixCls:n,value:o,current:r,offset:i=0}=e;return i&&(t={position:"absolute",top:`${i}00%`,left:0}),p.createElement("span",{style:t,className:oi()(`${n}-only-unit`,{current:r})},o)}function nC(e,t,n){let o=e,r=0;for(;(o+10)%10!==t;)o+=n,r+=n;return r}function oC(e){const{prefixCls:t,count:n,value:o}=e,r=Number(o),i=Math.abs(n),[a,s]=p.useState(r),[l,c]=p.useState(i),u=()=>{s(r),c(i)};let d,f;if(p.useEffect((()=>{const e=setTimeout((()=>{u()}),1e3);return()=>{clearTimeout(e)}}),[r]),a===r||Number.isNaN(r)||Number.isNaN(a))d=[p.createElement(tC,Object.assign({},e,{key:r,current:!0}))],f={transition:"none"};else{d=[];const t=r+10,n=[];for(let e=r;e<=t;e+=1)n.push(e);const o=n.findIndex((e=>e%10===a));d=n.map(((t,n)=>{const r=t%10;return p.createElement(tC,Object.assign({},e,{key:t,value:r,offset:n-o,current:n===o}))})),f={transform:`translateY(${-nC(a,r,l<i?1:-1)}00%)`}}return p.createElement("span",{className:`${t}-only`,style:f,onTransitionEnd:u},d)}const rC=p.forwardRef(((e,t)=>{const{prefixCls:n,count:o,className:r,motionClassName:i,style:a,title:s,show:l,component:c="sup",children:u}=e,d=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:f}=p.useContext(He),h=f("scroll-number",n),m=Object.assign(Object.assign({},d),{"data-show":l,style:a,className:oi()(h,r,i),title:s});let g=o;if(o&&Number(o)%1==0){const e=String(o).split("");g=p.createElement("bdi",null,e.map(((t,n)=>p.createElement(oC,{prefixCls:h,count:Number(o),value:t,key:e.length-n}))))}return a&&a.borderColor&&(m.style=Object.assign(Object.assign({},a),{boxShadow:`0 0 0 1px ${a.borderColor} inset`})),u?rc(u,(e=>({className:oi()(`${h}-custom-component`,null==e?void 0:e.className,i)}))):p.createElement(c,Object.assign({},m,{ref:t}),g)})),iC=rC;const aC=(e,t)=>{var n,o,r,i,a;const{prefixCls:s,scrollNumberPrefixCls:l,children:c,status:u,text:d,color:f,count:h=null,overflowCount:m=99,dot:g=!1,size:v="default",title:b,offset:y,style:x,className:w,rootClassName:C,classNames:S,styles:E,showZero:k=!1}=e,$=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:_,direction:O,badge:j}=p.useContext(He),M=_("badge",s),[P,I,N]=Jw(M),T=h>m?`${m}+`:h,R="0"===T||0===T,A=(null!=u||null!=f)&&(null===h||R&&!k),D=g&&!R,B=D?"":T,L=(0,p.useMemo)((()=>(null==B||""===B||R&&!k)&&!D),[B,R,k,D]),z=(0,p.useRef)(h);L||(z.current=h);const F=z.current,H=(0,p.useRef)(B);L||(H.current=B);const V=H.current,W=(0,p.useRef)(D);L||(W.current=D);const K=(0,p.useMemo)((()=>{if(!y)return Object.assign(Object.assign({},null==j?void 0:j.style),x);const e={marginTop:y[1]};return"rtl"===O?e.left=parseInt(y[0],10):e.right=-parseInt(y[0],10),Object.assign(Object.assign(Object.assign({},e),null==j?void 0:j.style),x)}),[O,y,x,null==j?void 0:j.style]),q=null!=b?b:"string"==typeof F||"number"==typeof F?F:void 0,U=L||!d?null:p.createElement("span",{className:`${M}-status-text`},d),G=F&&"object"==typeof F?rc(F,(e=>({style:Object.assign(Object.assign({},K),e.style)}))):void 0,X=Vw(f,!1),Y=oi()(null==S?void 0:S.indicator,null===(n=null==j?void 0:j.classNames)||void 0===n?void 0:n.indicator,{[`${M}-status-dot`]:A,[`${M}-status-${u}`]:!!u,[`${M}-color-${f}`]:X}),Z={};f&&!X&&(Z.color=f,Z.background=f);const Q=oi()(M,{[`${M}-status`]:A,[`${M}-not-a-wrapper`]:!c,[`${M}-rtl`]:"rtl"===O},w,C,null==j?void 0:j.className,null===(o=null==j?void 0:j.classNames)||void 0===o?void 0:o.root,null==S?void 0:S.root,I,N);if(!c&&A){const e=K.color;return P(p.createElement("span",Object.assign({},$,{className:Q,style:Object.assign(Object.assign(Object.assign({},null==E?void 0:E.root),null===(r=null==j?void 0:j.styles)||void 0===r?void 0:r.root),K)}),p.createElement("span",{className:Y,style:Object.assign(Object.assign(Object.assign({},null==E?void 0:E.indicator),null===(i=null==j?void 0:j.styles)||void 0===i?void 0:i.indicator),Z)}),d&&p.createElement("span",{style:{color:e},className:`${M}-status-text`},d)))}return P(p.createElement("span",Object.assign({ref:t},$,{className:Q,style:Object.assign(Object.assign({},null===(a=null==j?void 0:j.styles)||void 0===a?void 0:a.root),null==E?void 0:E.root)}),c,p.createElement(va,{visible:!L,motionName:`${M}-zoom`,motionAppear:!1,motionDeadline:1e3},(e=>{let{className:t,ref:n}=e;var o,r;const i=_("scroll-number",l),a=W.current,s=oi()(null==S?void 0:S.indicator,null===(o=null==j?void 0:j.classNames)||void 0===o?void 0:o.indicator,{[`${M}-dot`]:a,[`${M}-count`]:!a,[`${M}-count-sm`]:"small"===v,[`${M}-multiple-words`]:!a&&V&&V.toString().length>1,[`${M}-status-${u}`]:!!u,[`${M}-color-${f}`]:X});let c=Object.assign(Object.assign(Object.assign({},null==E?void 0:E.indicator),null===(r=null==j?void 0:j.styles)||void 0===r?void 0:r.indicator),K);return f&&!X&&(c=c||{},c.background=f),p.createElement(iC,{prefixCls:i,show:!L,motionClassName:t,className:s,count:V,title:q,style:c,key:"scrollNumber",ref:n},G)})),U))},sC=p.forwardRef(aC);sC.Ribbon=e=>{const{className:t,prefixCls:n,style:o,color:r,children:i,text:a,placement:s="end",rootClassName:l}=e,{getPrefixCls:c,direction:u}=p.useContext(He),d=c("ribbon",n),f=`${d}-wrapper`,[h,m,g]=eC(d,f),v=Vw(r,!1),b=oi()(d,`${d}-placement-${s}`,{[`${d}-rtl`]:"rtl"===u,[`${d}-color-${r}`]:v},t),y={},x={};return r&&!v&&(y.background=r,x.color=r),h(p.createElement("div",{className:oi()(f,l,m,g)},i,p.createElement("div",{className:oi()(b,m),style:Object.assign(Object.assign({},y),o)},p.createElement("span",{className:`${d}-text`},a),p.createElement("div",{className:`${d}-corner`,style:x}))))};const lC=sC;function cC(e){var t=e.children,n=e.prefixCls,o=e.id,r=e.overlayInnerStyle,i=e.className,a=e.style;return p.createElement("div",{className:oi()("".concat(n,"-content"),i),style:a},p.createElement("div",{className:"".concat(n,"-inner"),id:o,role:"tooltip",style:r},"function"==typeof t?t():t))}var uC=p.createContext(null),dC=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,o){return e[0]===t&&(n=o,!0)})),n}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(t){var n=e(this.__entries__,t),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(t,n){var o=e(this.__entries__,t);~o?this.__entries__[o][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,o=e(n,t);~o&&n.splice(o,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,o=this.__entries__;n<o.length;n++){var r=o[n];e.call(t,r[1],r[0])}},t}()}(),fC="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,pC=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),hC="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(pC):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},mC=["top","right","bottom","left","width","height","size","weight"],gC="undefined"!=typeof MutationObserver,vC=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,o=!1,r=0;function i(){n&&(n=!1,e()),o&&s()}function a(){hC(i)}function s(){var e=Date.now();if(n){if(e-r<2)return;o=!0}else n=!0,o=!1,setTimeout(a,t);r=e}return s}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){fC&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),gC?(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(){fC&&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(e){var t=e.propertyName,n=void 0===t?"":t;mC.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),bC=function(e,t){for(var n=0,o=Object.keys(t);n<o.length;n++){var r=o[n];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},yC=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||pC},xC=kC(0,0,0,0);function wC(e){return parseFloat(e)||0}function CC(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+wC(e["border-"+n+"-width"])}),0)}var SC="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof yC(e).SVGGraphicsElement}:function(e){return e instanceof yC(e).SVGElement&&"function"==typeof e.getBBox};function EC(e){return fC?SC(e)?function(e){var t=e.getBBox();return kC(0,0,t.width,t.height)}(e):function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return xC;var o=yC(e).getComputedStyle(e),r=function(e){for(var t={},n=0,o=["top","right","bottom","left"];n<o.length;n++){var r=o[n],i=e["padding-"+r];t[r]=wC(i)}return t}(o),i=r.left+r.right,a=r.top+r.bottom,s=wC(o.width),l=wC(o.height);if("border-box"===o.boxSizing&&(Math.round(s+i)!==t&&(s-=CC(o,"left","right")+i),Math.round(l+a)!==n&&(l-=CC(o,"top","bottom")+a)),!function(e){return e===yC(e).document.documentElement}(e)){var c=Math.round(s+i)-t,u=Math.round(l+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return kC(r.left,r.top,s,l)}(e):xC}function kC(e,t,n,o){return{x:e,y:t,width:n,height:o}}var $C=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=kC(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=EC(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),_C=function(e,t){var n,o,r,i,a,s,l,c=(o=(n=t).x,r=n.y,i=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),bC(l,{x:o,y:r,width:i,height:a,top:r,right:o+i,bottom:a+r,left:o}),l);bC(this,{target:e,contentRect:c})},OC=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new dC,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof yC(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new $C(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof yC(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new _C(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),jC="undefined"!=typeof WeakMap?new WeakMap:new dC,MC=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=vC.getInstance(),o=new OC(t,n,this);jC.set(this,o)};["observe","unobserve","disconnect"].forEach((function(e){MC.prototype[e]=function(){var t;return(t=jC.get(this))[e].apply(t,arguments)}}));const PC=void 0!==pC.ResizeObserver?pC.ResizeObserver:MC;var IC=new Map,NC=new PC((function(e){e.forEach((function(e){var t,n=e.target;null===(t=IC.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))})),TC=function(e){gi(n,e);var t=wi(n);function n(){return xt(this,n),t.apply(this,arguments)}return Ct(n,[{key:"render",value:function(){return this.props.children}}]),n}(p.Component);function RC(e,t){var n=e.children,o=e.disabled,r=p.useRef(null),i=p.useRef(null),a=p.useContext(uC),s="function"==typeof n,l=s?n(r):n,c=p.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&p.isValidElement(l)&&ui(l),d=ci(u?l.ref:null,r),f=function(){var e;return ii(r.current)||(r.current&&"object"===ye(r.current)?ii(null===(e=r.current)||void 0===e?void 0:e.nativeElement):null)||ii(i.current)};p.useImperativeHandle(t,(function(){return f()}));var h=p.useRef(e);h.current=e;var m=p.useCallback((function(e){var t=h.current,n=t.onResize,o=t.data,r=e.getBoundingClientRect(),i=r.width,s=r.height,l=e.offsetWidth,u=e.offsetHeight,d=Math.floor(i),f=Math.floor(s);if(c.current.width!==d||c.current.height!==f||c.current.offsetWidth!==l||c.current.offsetHeight!==u){var p={width:d,height:f,offsetWidth:l,offsetHeight:u};c.current=p;var m=l===Math.round(i)?i:l,g=u===Math.round(s)?s:u,v=$e($e({},p),{},{offsetWidth:m,offsetHeight:g});null==a||a(v,e,o),n&&Promise.resolve().then((function(){n(v,e)}))}}),[]);return p.useEffect((function(){var e=f();return e&&!o&&function(e,t){IC.has(e)||(IC.set(e,new Set),NC.observe(e)),IC.get(e).add(t)}(e,m),function(){return function(e,t){IC.has(e)&&(IC.get(e).delete(t),IC.get(e).size||(NC.unobserve(e),IC.delete(e)))}(e,m)}}),[r.current,o]),p.createElement(TC,{ref:i},u?p.cloneElement(l,{ref:d}):l)}const AC=p.forwardRef(RC);function DC(e,t){var n=e.children;return("function"==typeof n?[n]:hc(n)).map((function(n,o){var r=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(o);return p.createElement(AC,hn({},e,{key:r,ref:0===o?t:void 0}),n)}))}var BC=p.forwardRef(DC);BC.Collection=function(e){var t=e.children,n=e.onBatchResize,o=p.useRef(0),r=p.useRef([]),i=p.useContext(uC),a=p.useCallback((function(e,t,a){o.current+=1;var s=o.current;r.current.push({size:e,element:t,data:a}),Promise.resolve().then((function(){s===o.current&&(null==n||n(r.current),r.current=[])})),null==i||i(e,t,a)}),[n,i]);return p.createElement(uC.Provider,{value:a},t)};const LC=BC,zC=function(){if("undefined"==typeof navigator||"undefined"==typeof window)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(null==e?void 0:e.substr(0,4))};function FC(e){var t=e.prefixCls,n=e.align,o=e.arrow,r=e.arrowPos,i=o||{},a=i.className,s=i.content,l=r.x,c=void 0===l?0:l,u=r.y,d=void 0===u?0:u,f=p.useRef();if(!n||!n.points)return null;var h={position:"absolute"};if(!1!==n.autoArrow){var m=n.points[0],g=n.points[1],v=m[0],b=m[1],y=g[0],x=g[1];v!==y&&["t","b"].includes(v)?"t"===v?h.top=0:h.bottom=0:h.top=d,b!==x&&["l","r"].includes(b)?"l"===b?h.left=0:h.right=0:h.left=c}return p.createElement("div",{ref:f,className:oi()("".concat(t,"-arrow"),a),style:h},s)}function HC(e){var t=e.prefixCls,n=e.open,o=e.zIndex,r=e.mask,i=e.motion;return r?p.createElement(va,hn({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return p.createElement("div",{style:{zIndex:o},className:oi()("".concat(t,"-mask"),n)})})):null}var VC=p.memo((function(e){return e.children}),(function(e,t){return t.cache}));const WC=VC;var KC=p.forwardRef((function(e,t){var n=e.popup,o=e.className,r=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,h=e.arrow,m=e.arrowPos,g=e.align,v=e.motion,b=e.maskMotion,y=e.forceRender,x=e.getPopupContainer,w=e.autoDestroy,C=e.portal,S=e.zIndex,E=e.onMouseEnter,k=e.onMouseLeave,$=e.onPointerEnter,_=e.ready,O=e.offsetX,j=e.offsetY,M=e.offsetR,P=e.offsetB,I=e.onAlign,N=e.onPrepare,T=e.stretch,R=e.targetWidth,A=e.targetHeight,D="function"==typeof n?n():n,B=l||c,L=(null==x?void 0:x.length)>0,z=Ge(p.useState(!x||!L),2),F=z[0],H=z[1];if(en((function(){!F&&L&&a&&H(!0)}),[F,L,a]),!F)return null;var V="auto",W={left:"-1000vw",top:"-1000vh",right:V,bottom:V};if(_||!l){var K,q=g.points,U=g.dynamicInset||(null===(K=g._experimental)||void 0===K?void 0:K.dynamicInset),G=U&&"r"===q[0][1],X=U&&"b"===q[0][0];G?(W.right=M,W.left=V):(W.left=O,W.right=V),X?(W.bottom=P,W.top=V):(W.top=j,W.bottom=V)}var Y={};return T&&(T.includes("height")&&A?Y.height=A:T.includes("minHeight")&&A&&(Y.minHeight=A),T.includes("width")&&R?Y.width=R:T.includes("minWidth")&&R&&(Y.minWidth=R)),l||(Y.pointerEvents="none"),p.createElement(C,{open:y||B,getContainer:x&&function(){return x(a)},autoDestroy:w},p.createElement(HC,{prefixCls:r,open:l,zIndex:S,mask:f,motion:b}),p.createElement(LC,{onResize:I,disabled:!l},(function(e){return p.createElement(va,hn({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(r,"-hidden")},v,{onAppearPrepare:N,onEnterPrepare:N,visible:l,onVisibleChanged:function(e){var t;null==v||null===(t=v.onVisibleChanged)||void 0===t||t.call(v,e),s(e)}}),(function(n,a){var s=n.className,c=n.style,f=oi()(r,s,o);return p.createElement("div",{ref:li(e,t,a),className:f,style:$e($e($e($e({"--arrow-x":"".concat(m.x||0,"px"),"--arrow-y":"".concat(m.y||0,"px")},W),Y),c),{},{boxSizing:"border-box",zIndex:S},i),onMouseEnter:E,onMouseLeave:k,onPointerEnter:$,onClick:d},h&&p.createElement(FC,{prefixCls:r,arrow:h,arrowPos:m,align:g}),p.createElement(WC,{cache:!l&&!u},D))}))})))}));const qC=KC;var UC=p.forwardRef((function(e,t){var n=e.children,o=e.getTriggerDOMNode,r=ui(n),i=p.useCallback((function(e){si(t,o?o(e):e)}),[o]),a=ci(i,n.ref);return r?p.cloneElement(n,{ref:a}):n}));const GC=UC,XC=p.createContext(null);function YC(e){return e?Array.isArray(e)?e:[e]:[]}function ZC(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function QC(e,t,n,o){return t||(n?{motionName:"".concat(e,"-").concat(n)}:o?{motionName:o}:null)}function JC(e){return e.ownerDocument.defaultView}function eS(e){for(var t=[],n=null==e?void 0:e.parentElement,o=["hidden","scroll","clip","auto"];n;){var r=JC(n).getComputedStyle(n);[r.overflowX,r.overflowY,r.overflow].some((function(e){return o.includes(e)}))&&t.push(n),n=n.parentElement}return t}function tS(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function nS(e){return tS(parseFloat(e),0)}function oS(e,t){var n=$e({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=JC(e).getComputedStyle(e),o=t.overflow,r=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,s=t.borderLeftWidth,l=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,p=e.clientWidth,h=nS(i),m=nS(a),g=nS(s),v=nS(l),b=tS(Math.round(c.width/f*1e3)/1e3),y=tS(Math.round(c.height/u*1e3)/1e3),x=(f-p-g-v)*b,w=(u-d-h-m)*y,C=h*y,S=m*y,E=g*b,k=v*b,$=0,_=0;if("clip"===o){var O=nS(r);$=O*b,_=O*y}var j=c.x+E-$,M=c.y+C-_,P=j+c.width+2*$-E-k-x,I=M+c.height+2*_-C-S-w;n.left=Math.max(n.left,j),n.top=Math.max(n.top,M),n.right=Math.min(n.right,P),n.bottom=Math.min(n.bottom,I)}})),n}function rS(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function iS(e,t){var n=Ge(t||[],2),o=n[0],r=n[1];return[rS(e.width,o),rS(e.height,r)]}function aS(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function sS(e,t){var n,o=t[0],r=t[1];return n="t"===o?e.y:"b"===o?e.y+e.height:e.y+e.height/2,{x:"l"===r?e.x:"r"===r?e.x+e.width:e.x+e.width/2,y:n}}function lS(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,o){return o===t?n[e]||"c":e})).join("")}var cS=["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"];const uS=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Tu,t=p.forwardRef((function(t,n){var o=t.prefixCls,r=void 0===o?"rc-trigger-popup":o,i=t.children,a=t.action,s=void 0===a?"hover":a,l=t.showAction,c=t.hideAction,u=t.popupVisible,d=t.defaultPopupVisible,f=t.onPopupVisibleChange,h=t.afterPopupVisibleChange,m=t.mouseEnterDelay,g=t.mouseLeaveDelay,v=void 0===g?.1:g,b=t.focusDelay,y=t.blurDelay,x=t.mask,w=t.maskClosable,C=void 0===w||w,S=t.getPopupContainer,E=t.forceRender,k=t.autoDestroy,$=t.destroyPopupOnHide,_=t.popup,O=t.popupClassName,j=t.popupStyle,M=t.popupPlacement,P=t.builtinPlacements,I=void 0===P?{}:P,N=t.popupAlign,T=t.zIndex,R=t.stretch,A=t.getPopupClassNameFromAlign,D=t.fresh,B=t.alignPoint,L=t.onPopupClick,z=t.onPopupAlign,F=t.arrow,H=t.popupMotion,V=t.maskMotion,W=t.popupTransitionName,K=t.popupAnimation,q=t.maskTransitionName,U=t.maskAnimation,G=t.className,X=t.getTriggerDOMNode,Y=di(t,cS),Z=k||$||!1,Q=Ge(p.useState(!1),2),J=Q[0],ee=Q[1];en((function(){ee(zC())}),[]);var te=p.useRef({}),ne=p.useContext(XC),oe=p.useMemo((function(){return{registerSubPopup:function(e,t){te.current[e]=t,null==ne||ne.registerSubPopup(e,t)}}}),[ne]),re=Bu(),ie=Ge(p.useState(null),2),ae=ie[0],se=ie[1],le=nl((function(e){ri(e)&&ae!==e&&se(e),null==ne||ne.registerSubPopup(re,e)})),ce=Ge(p.useState(null),2),ue=ce[0],de=ce[1],fe=p.useRef(null),pe=nl((function(e){ri(e)&&ue!==e&&(de(e),fe.current=e)})),he=p.Children.only(i),me=(null==he?void 0:he.props)||{},ge={},ve=nl((function(e){var t,n,o=ue;return(null==o?void 0:o.contains(e))||(null===(t=Za(o))||void 0===t?void 0:t.host)===e||e===o||(null==ae?void 0:ae.contains(e))||(null===(n=Za(ae))||void 0===n?void 0:n.host)===e||e===ae||Object.values(te.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),be=QC(r,H,K,W),ye=QC(r,V,U,q),xe=Ge(p.useState(d||!1),2),we=xe[0],Ce=xe[1],Se=null!=u?u:we,Ee=nl((function(e){void 0===u&&Ce(e)}));en((function(){Ce(u||!1)}),[u]);var ke=p.useRef(Se);ke.current=Se;var _e=p.useRef([]);_e.current=[];var Oe=nl((function(e){var t;Ee(e),(null!==(t=_e.current[_e.current.length-1])&&void 0!==t?t:Se)!==e&&(_e.current.push(e),null==f||f(e))})),je=p.useRef(),Me=function(){clearTimeout(je.current)},Pe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Me(),0===t?Oe(e):je.current=setTimeout((function(){Oe(e)}),1e3*t)};p.useEffect((function(){return Me}),[]);var Ie=Ge(p.useState(!1),2),Ne=Ie[0],Te=Ie[1];en((function(e){e&&!Se||Te(!0)}),[Se]);var Re=Ge(p.useState(null),2),Ae=Re[0],De=Re[1],Be=Ge(p.useState([0,0]),2),Le=Be[0],ze=Be[1],Fe=function(e){ze([e.clientX,e.clientY])},He=function(e,t,n,o,r,i,a){var s=Ge(p.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:r[o]||{}}),2),l=s[0],c=s[1],u=p.useRef(0),d=p.useMemo((function(){return t?eS(t):[]}),[t]),f=p.useRef({});e||(f.current={});var h=nl((function(){if(t&&n&&e){var s,l,u,p=t,h=p.ownerDocument,m=JC(p).getComputedStyle(p),g=m.width,v=m.height,b=m.position,y=p.style.left,x=p.style.top,w=p.style.right,C=p.style.bottom,S=p.style.overflow,E=$e($e({},r[o]),i),k=h.createElement("div");if(null===(s=p.parentElement)||void 0===s||s.appendChild(k),k.style.left="".concat(p.offsetLeft,"px"),k.style.top="".concat(p.offsetTop,"px"),k.style.position=b,k.style.height="".concat(p.offsetHeight,"px"),k.style.width="".concat(p.offsetWidth,"px"),p.style.left="0",p.style.top="0",p.style.right="auto",p.style.bottom="auto",p.style.overflow="hidden",Array.isArray(n))u={x:n[0],y:n[1],width:0,height:0};else{var $=n.getBoundingClientRect();u={x:$.x,y:$.y,width:$.width,height:$.height}}var _=p.getBoundingClientRect(),O=h.documentElement,j=O.clientWidth,M=O.clientHeight,P=O.scrollWidth,I=O.scrollHeight,N=O.scrollTop,T=O.scrollLeft,R=_.height,A=_.width,D=u.height,B=u.width,L={left:0,top:0,right:j,bottom:M},z={left:-T,top:-N,right:P-T,bottom:I-N},F=E.htmlRegion,H="visible",V="visibleFirst";"scroll"!==F&&F!==V&&(F=H);var W=F===V,K=oS(z,d),q=oS(L,d),U=F===H?q:K,G=W?q:U;p.style.left="auto",p.style.top="auto",p.style.right="0",p.style.bottom="0";var X=p.getBoundingClientRect();p.style.left=y,p.style.top=x,p.style.right=w,p.style.bottom=C,p.style.overflow=S,null===(l=p.parentElement)||void 0===l||l.removeChild(k);var Y=tS(Math.round(A/parseFloat(g)*1e3)/1e3),Z=tS(Math.round(R/parseFloat(v)*1e3)/1e3);if(0===Y||0===Z||ri(n)&&!ec(n))return;var Q=E.offset,J=E.targetOffset,ee=Ge(iS(_,Q),2),te=ee[0],ne=ee[1],oe=Ge(iS(u,J),2),re=oe[0],ie=oe[1];u.x-=re,u.y-=ie;var ae=Ge(E.points||[],2),se=ae[0],le=aS(ae[1]),ce=aS(se),ue=sS(u,le),de=sS(_,ce),fe=$e({},E),pe=ue.x-de.x+te,he=ue.y-de.y+ne;function ct(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:U,o=_.x+e,r=_.y+t,i=o+A,a=r+R,s=Math.max(o,n.left),l=Math.max(r,n.top),c=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(c-s)*(u-l))}var me,ge,ve,be,ye=ct(pe,he),xe=ct(pe,he,q),we=sS(u,["t","l"]),Ce=sS(_,["t","l"]),Se=sS(u,["b","r"]),Ee=sS(_,["b","r"]),ke=E.overflow||{},_e=ke.adjustX,Oe=ke.adjustY,je=ke.shiftX,Me=ke.shiftY,Pe=function(e){return"boolean"==typeof e?e:e>=0};function ut(){me=_.y+he,ge=me+R,ve=_.x+pe,be=ve+A}ut();var Ie=Pe(Oe),Ne=ce[0]===le[0];if(Ie&&"t"===ce[0]&&(ge>G.bottom||f.current.bt)){var Te=he;Ne?Te-=R-D:Te=we.y-Ee.y-ne;var Re=ct(pe,Te),Ae=ct(pe,Te,q);Re>ye||Re===ye&&(!W||Ae>=xe)?(f.current.bt=!0,he=Te,ne=-ne,fe.points=[lS(ce,0),lS(le,0)]):f.current.bt=!1}if(Ie&&"b"===ce[0]&&(me<G.top||f.current.tb)){var De=he;Ne?De+=R-D:De=Se.y-Ce.y-ne;var Be=ct(pe,De),Le=ct(pe,De,q);Be>ye||Be===ye&&(!W||Le>=xe)?(f.current.tb=!0,he=De,ne=-ne,fe.points=[lS(ce,0),lS(le,0)]):f.current.tb=!1}var ze=Pe(_e),Fe=ce[1]===le[1];if(ze&&"l"===ce[1]&&(be>G.right||f.current.rl)){var He=pe;Fe?He-=A-B:He=we.x-Ee.x-te;var Ve=ct(He,he),We=ct(He,he,q);Ve>ye||Ve===ye&&(!W||We>=xe)?(f.current.rl=!0,pe=He,te=-te,fe.points=[lS(ce,1),lS(le,1)]):f.current.rl=!1}if(ze&&"r"===ce[1]&&(ve<G.left||f.current.lr)){var Ke=pe;Fe?Ke+=A-B:Ke=Se.x-Ce.x-te;var qe=ct(Ke,he),Ue=ct(Ke,he,q);qe>ye||qe===ye&&(!W||Ue>=xe)?(f.current.lr=!0,pe=Ke,te=-te,fe.points=[lS(ce,1),lS(le,1)]):f.current.lr=!1}ut();var Xe=!0===je?0:je;"number"==typeof Xe&&(ve<q.left&&(pe-=ve-q.left-te,u.x+B<q.left+Xe&&(pe+=u.x-q.left+B-Xe)),be>q.right&&(pe-=be-q.right-te,u.x>q.right-Xe&&(pe+=u.x-q.right+Xe)));var Ye=!0===Me?0:Me;"number"==typeof Ye&&(me<q.top&&(he-=me-q.top-ne,u.y+D<q.top+Ye&&(he+=u.y-q.top+D-Ye)),ge>q.bottom&&(he-=ge-q.bottom-ne,u.y>q.bottom-Ye&&(he+=u.y-q.bottom+Ye)));var Ze=_.x+pe,Qe=Ze+A,Je=_.y+he,et=Je+R,tt=u.x,nt=tt+B,ot=u.y,rt=ot+D,it=(Math.max(Ze,tt)+Math.min(Qe,nt))/2-Ze,at=(Math.max(Je,ot)+Math.min(et,rt))/2-Je;null==a||a(t,fe);var st=X.right-_.x-(pe+_.width),lt=X.bottom-_.y-(he+_.height);c({ready:!0,offsetX:pe/Y,offsetY:he/Z,offsetR:st/Y,offsetB:lt/Z,arrowX:it/Y,arrowY:at/Z,scaleX:Y,scaleY:Z,align:fe})}})),m=function(){c((function(e){return $e($e({},e),{},{ready:!1})}))};return en(m,[o]),en((function(){e||m()}),[e]),[l.ready,l.offsetX,l.offsetY,l.offsetR,l.offsetB,l.arrowX,l.arrowY,l.scaleX,l.scaleY,l.align,function(){u.current+=1;var e=u.current;Promise.resolve().then((function(){u.current===e&&h()}))}]}(Se,ae,B?Le:ue,M,I,N,z),Ve=Ge(He,11),We=Ve[0],Ke=Ve[1],qe=Ve[2],Ue=Ve[3],Xe=Ve[4],Ze=Ve[5],Qe=Ve[6],Je=Ve[7],et=Ve[8],tt=Ve[9],nt=Ve[10],ot=function(e,t,n,o){return p.useMemo((function(){var r=YC(null!=n?n:t),i=YC(null!=o?o:t),a=new Set(r),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,o])}(J,s,l,c),rt=Ge(ot,2),it=rt[0],at=rt[1],st=it.has("click"),lt=at.has("click")||at.has("contextMenu"),ct=nl((function(){Ne||nt()}));!function(e,t,n,o,r){en((function(){if(e&&t&&n){var r=n,i=eS(t),a=eS(r),s=JC(r),l=new Set([s].concat(Ye(i),Ye(a)));function c(){o(),ke.current&&B&&lt&&Pe(!1)}return l.forEach((function(e){e.addEventListener("scroll",c,{passive:!0})})),s.addEventListener("resize",c,{passive:!0}),o(),function(){l.forEach((function(e){e.removeEventListener("scroll",c),s.removeEventListener("resize",c)}))}}}),[e,t,n])}(Se,ue,ae,ct),en((function(){ct()}),[Le,M]),en((function(){!Se||null!=I&&I[M]||ct()}),[JSON.stringify(N)]);var ut=p.useMemo((function(){var e=function(e,t,n,o){for(var r=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s,l=i[a];if(ZC(null===(s=e[l])||void 0===s?void 0:s.points,r,o))return"".concat(t,"-placement-").concat(l)}return""}(I,r,tt,B);return oi()(e,null==A?void 0:A(tt))}),[tt,A,I,r,B]);p.useImperativeHandle(n,(function(){return{nativeElement:fe.current,forceAlign:ct}}));var dt=Ge(p.useState(0),2),ft=dt[0],pt=dt[1],ht=Ge(p.useState(0),2),mt=ht[0],gt=ht[1],vt=function(){if(R&&ue){var e=ue.getBoundingClientRect();pt(e.width),gt(e.height)}};function bt(e,t,n,o){ge[e]=function(r){var i;null==o||o(r),Pe(t,n);for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];null===(i=me[e])||void 0===i||i.call.apply(i,[me,r].concat(s))}}en((function(){Ae&&(nt(),Ae(),De(null))}),[Ae]),(st||lt)&&(ge.onClick=function(e){var t;ke.current&&lt?Pe(!1):!ke.current&&st&&(Fe(e),Pe(!0));for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];null===(t=me.onClick)||void 0===t||t.call.apply(t,[me,e].concat(o))}),function(e,t,n,o,r,i,a,s){var l=p.useRef(e),c=p.useRef(!1);l.current!==e&&(c.current=!0,l.current=e),p.useEffect((function(){var e=na((function(){c.current=!1}));return function(){na.cancel(e)}}),[e]),p.useEffect((function(){if(t&&o&&(!r||i)){var e=function(){var e=!1;return[function(t){var n=t.target;e=a(n)},function(t){var n=t.target;c.current||!l.current||e||a(n)||s(!1)}]},u=Ge(e(),2),d=u[0],f=u[1],p=Ge(e(),2),h=p[0],m=p[1],g=JC(o);g.addEventListener("mousedown",d,!0),g.addEventListener("click",f,!0),g.addEventListener("contextmenu",f,!0);var v=Za(n);return v&&(v.addEventListener("mousedown",h,!0),v.addEventListener("click",m,!0),v.addEventListener("contextmenu",m,!0)),function(){g.removeEventListener("mousedown",d,!0),g.removeEventListener("click",f,!0),g.removeEventListener("contextmenu",f,!0),v&&(v.removeEventListener("mousedown",h,!0),v.removeEventListener("click",m,!0),v.removeEventListener("contextmenu",m,!0))}}}),[t,n,o,r,i])}(Se,lt,ue,ae,x,C,ve,Pe);var yt,xt,wt=it.has("hover"),Ct=at.has("hover");wt&&(bt("onMouseEnter",!0,m,(function(e){Fe(e)})),bt("onPointerEnter",!0,m,(function(e){Fe(e)})),yt=function(e){(Se||Ne)&&null!=ae&&ae.contains(e.target)&&Pe(!0,m)},B&&(ge.onMouseMove=function(e){var t;null===(t=me.onMouseMove)||void 0===t||t.call(me,e)})),Ct&&(bt("onMouseLeave",!1,v),bt("onPointerLeave",!1,v),xt=function(){Pe(!1,v)}),it.has("focus")&&bt("onFocus",!0,b),at.has("focus")&&bt("onBlur",!1,y),it.has("contextMenu")&&(ge.onContextMenu=function(e){var t;ke.current&&at.has("contextMenu")?Pe(!1):(Fe(e),Pe(!0)),e.preventDefault();for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];null===(t=me.onContextMenu)||void 0===t||t.call.apply(t,[me,e].concat(o))}),G&&(ge.className=oi()(me.className,G));var St=$e($e({},me),ge),Et={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){Y[e]&&(Et[e]=function(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];null===(t=St[e])||void 0===t||t.call.apply(t,[St].concat(o)),Y[e].apply(Y,o)})}));var kt=p.cloneElement(he,$e($e({},St),Et)),$t={x:Ze,y:Qe},_t=F?$e({},!0!==F?F:{}):null;return p.createElement(p.Fragment,null,p.createElement(LC,{disabled:!Se,ref:pe,onResize:function(){vt(),ct()}},p.createElement(GC,{getTriggerDOMNode:X},kt)),p.createElement(XC.Provider,{value:oe},p.createElement(qC,{portal:e,ref:le,prefixCls:r,popup:_,className:oi()(O,ut),style:j,target:ue,onMouseEnter:yt,onMouseLeave:xt,onPointerEnter:yt,zIndex:T,open:Se,keepDom:Ne,fresh:D,onClick:L,mask:x,motion:be,maskMotion:ye,onVisibleChanged:function(e){Te(!1),nt(),null==h||h(e)},onPrepare:function(){return new Promise((function(e){vt(),De((function(){return e}))}))},forceRender:E,autoDestroy:Z,getPopupContainer:S,align:tt,arrow:_t,arrowPos:$t,ready:We,offsetX:Ke,offsetY:qe,offsetR:Ue,offsetB:Xe,onAlign:ct,stretch:R,targetWidth:ft/Je,targetHeight:mt/et})))}));return t}(Tu);var dS={shiftX:64,adjustY:1},fS={adjustX:1,shiftY:!0},pS=[0,0],hS={left:{points:["cr","cl"],overflow:fS,offset:[-4,0],targetOffset:pS},right:{points:["cl","cr"],overflow:fS,offset:[4,0],targetOffset:pS},top:{points:["bc","tc"],overflow:dS,offset:[0,-4],targetOffset:pS},bottom:{points:["tc","bc"],overflow:dS,offset:[0,4],targetOffset:pS},topLeft:{points:["bl","tl"],overflow:dS,offset:[0,-4],targetOffset:pS},leftTop:{points:["tr","tl"],overflow:fS,offset:[-4,0],targetOffset:pS},topRight:{points:["br","tr"],overflow:dS,offset:[0,-4],targetOffset:pS},rightTop:{points:["tl","tr"],overflow:fS,offset:[4,0],targetOffset:pS},bottomRight:{points:["tr","br"],overflow:dS,offset:[0,4],targetOffset:pS},rightBottom:{points:["bl","br"],overflow:fS,offset:[4,0],targetOffset:pS},bottomLeft:{points:["tl","bl"],overflow:dS,offset:[0,4],targetOffset:pS},leftBottom:{points:["br","bl"],overflow:fS,offset:[-4,0],targetOffset:pS}},mS=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],gS=function(e,t){var n=e.overlayClassName,o=e.trigger,r=void 0===o?["hover"]:o,i=e.mouseEnterDelay,a=void 0===i?0:i,s=e.mouseLeaveDelay,l=void 0===s?.1:s,c=e.overlayStyle,u=e.prefixCls,d=void 0===u?"rc-tooltip":u,f=e.children,h=e.onVisibleChange,m=e.afterVisibleChange,g=e.transitionName,v=e.animation,b=e.motion,y=e.placement,x=void 0===y?"right":y,w=e.align,C=void 0===w?{}:w,S=e.destroyTooltipOnHide,E=void 0!==S&&S,k=e.defaultVisible,$=e.getTooltipContainer,_=e.overlayInnerStyle,O=(e.arrowContent,e.overlay),j=e.id,M=e.showArrow,P=void 0===M||M,I=di(e,mS),N=(0,p.useRef)(null);(0,p.useImperativeHandle)(t,(function(){return N.current}));var T=$e({},I);return"visible"in e&&(T.popupVisible=e.visible),p.createElement(uS,hn({popupClassName:n,prefixCls:d,popup:function(){return p.createElement(cC,{key:"content",prefixCls:d,id:j,overlayInnerStyle:_},O)},action:r,builtinPlacements:hS,popupPlacement:x,ref:N,popupAlign:C,getPopupContainer:$,onPopupVisibleChange:h,afterPopupVisibleChange:m,popupTransitionName:g,popupAnimation:v,popupMotion:b,defaultPopupVisible:k,autoDestroy:E,mouseLeaveDelay:l,popupStyle:c,mouseEnterDelay:a,arrow:P},T),f)};const vS=(0,p.forwardRef)(gS);function bS(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:o}=e,r=t/2,i=r,a=1*o/Math.sqrt(2),s=r-o*(1-1/Math.sqrt(2)),l=r-n*(1/Math.sqrt(2)),c=o*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),u=2*r-l,d=c,f=2*r-a,p=s,h=2*r-0,m=i,g=r*Math.sqrt(2)+o*(Math.sqrt(2)-2),v=o*(Math.sqrt(2)-1);return{arrowShadowWidth:g,arrowPath:`path('M 0 ${i} A ${o} ${o} 0 0 0 ${a} ${s} L ${l} ${c} A ${n} ${n} 0 0 1 ${u} ${d} L ${f} ${p} A ${o} ${o} 0 0 0 ${h} ${m} Z')`,arrowPolygon:`polygon(${v}px 100%, 50% ${v}px, ${2*r-v}px 100%, ${v}px 100%)`}}const yS=(e,t,n)=>{const{sizePopupArrow:o,arrowPolygon:r,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:o,height:o,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:o,height:l(o).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[r,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${qt(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},xS=8;function wS(e){const{contentRadius:t,limitVerticalRadius:n}=e,o=t>12?t+2:12;return{arrowOffsetHorizontal:o,arrowOffsetVertical:n?xS:o}}function CS(e,t){return e?t:{}}function SS(e,t,n){const{componentCls:o,boxShadowPopoverArrow:r,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[o]:Object.assign(Object.assign(Object.assign(Object.assign({[`${o}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},yS(e,t,r)),{"&:before":{background:t}})]},CS(!!l.top,{[[`&-placement-top > ${o}-arrow`,`&-placement-topLeft > ${o}-arrow`,`&-placement-topRight > ${o}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${o}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${o}-arrow`]:{left:{_skip_check_:!0,value:a}},[`&-placement-topRight > ${o}-arrow`]:{right:{_skip_check_:!0,value:a}}})),CS(!!l.bottom,{[[`&-placement-bottom > ${o}-arrow`,`&-placement-bottomLeft > ${o}-arrow`,`&-placement-bottomRight > ${o}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${o}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft > ${o}-arrow`]:{left:{_skip_check_:!0,value:a}},[`&-placement-bottomRight > ${o}-arrow`]:{right:{_skip_check_:!0,value:a}}})),CS(!!l.left,{[[`&-placement-left > ${o}-arrow`,`&-placement-leftTop > ${o}-arrow`,`&-placement-leftBottom > ${o}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${o}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${o}-arrow`]:{top:i},[`&-placement-leftBottom > ${o}-arrow`]:{bottom:i}})),CS(!!l.right,{[[`&-placement-right > ${o}-arrow`,`&-placement-rightTop > ${o}-arrow`,`&-placement-rightBottom > ${o}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${o}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${o}-arrow`]:{top:i},[`&-placement-rightBottom > ${o}-arrow`]:{bottom:i}}))}}const ES={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"]}},kS={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"]}},$S=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function _S(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:o,offset:r,borderRadius:i,visibleFirst:a}=e,s=t/2,l={};return Object.keys(ES).forEach((e=>{const c=o&&kS[e]||ES[e],u=Object.assign(Object.assign({},c),{offset:[0,0],dynamicInset:!0});switch(l[e]=u,$S.has(e)&&(u.autoArrow=!1),e){case"top":case"topLeft":case"topRight":u.offset[1]=-s-r;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=s+r;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-s-r;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=s+r}const d=wS({contentRadius:i,limitVerticalRadius:!0});if(o)switch(e){case"topLeft":case"bottomLeft":u.offset[0]=-d.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":u.offset[0]=d.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":u.offset[1]=-d.arrowOffsetHorizontal-s;break;case"leftBottom":case"rightBottom":u.offset[1]=d.arrowOffsetHorizontal+s}u.overflow=function(e,t,n,o){if(!1===o)return{adjustX:!1,adjustY:!1};const r=o&&"object"==typeof o?o:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.arrowOffsetHorizontal+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=2*t.arrowOffsetVertical+n,i.shiftX=!0,i.adjustX=!0}const a=Object.assign(Object.assign({},i),r);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,d,t,n),a&&(u.htmlRegion="visibleFirst")})),l}const OS=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:r,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:s,boxShadowSecondary:l,paddingSM:c,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ia(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":r,[`${t}-inner`]:{minWidth:s,minHeight:s,padding:`${qt(e.calc(c).div(2).equal())} ${qt(u)}`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:r,borderRadius:i,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(i,xS)}},[`${t}-content`]:{position:"relative"}}),Ww(e,((e,n)=>{let{darkColor:o}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{"--antd-arrow-background-color":o}}}}))),{"&-rtl":{direction:"rtl"}})},SS(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},jS=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},wS({contentRadius:e.borderRadius,limitVerticalRadius:!0})),bS(Js(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),MS=function(e){const t=hl("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:o}=e,r=Js(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:o});return[OS(r),zf(e,"zoom-big-fast")]}),jS,{resetStyle:!1,injectStyle:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]});return t(e)};function PS(e,t){const n=Vw(t),o=oi()({[`${e}-${t}`]:t&&n}),r={},i={};return t&&!n&&(r.background=t,i["--antd-arrow-background-color"]=t),{className:o,overlayStyle:r,arrowStyle:i}}const IS=p.forwardRef(((e,t)=>{var n,o;const{prefixCls:r,openClassName:i,getTooltipContainer:a,overlayClassName:s,color:l,overlayInnerStyle:c,children:u,afterOpenChange:d,afterVisibleChange:f,destroyTooltipOnHide:h,arrow:m=!0,title:g,overlay:v,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:x=!0}=e,w=!!m,[,C]=Oa(),{getPopupContainer:S,getPrefixCls:E,direction:k}=p.useContext(He),$=Lo(),_=p.useRef(null),O=()=>{var e;null===(e=_.current)||void 0===e||e.forceAlign()};p.useImperativeHandle(t,(()=>({forceAlign:O,forcePopupAlign:()=>{$.deprecated(!1,"forcePopupAlign","forceAlign"),O()}})));const[j,M]=rl(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(o=e.defaultOpen)&&void 0!==o?o:e.defaultVisible}),P=!g&&!v&&0!==g,I=p.useMemo((()=>{var e,t;let n=y;return"object"==typeof m&&(n=null!==(t=null!==(e=m.pointAtCenter)&&void 0!==e?e:m.arrowPointAtCenter)&&void 0!==t?t:y),b||_S({arrowPointAtCenter:n,autoAdjustOverflow:x,arrowWidth:w?C.sizePopupArrow:0,borderRadius:C.borderRadius,offset:C.marginXXS,visibleFirst:!0})}),[y,m,b,C]),N=p.useMemo((()=>0===g?g:v||g||""),[v,g]),T=p.createElement(Cc,null,"function"==typeof N?N():N),{getPopupContainer:R,placement:A="top",mouseEnterDelay:D=.1,mouseLeaveDelay:B=.1,overlayStyle:L,rootClassName:z}=e,F=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),H=E("tooltip",r),V=E(),W=e["data-popover-inject"];let K=j;"open"in e||"visible"in e||!P||(K=!1);const q=tc(u)&&!nc(u)?u:p.createElement("span",null,u),U=q.props,G=U.className&&"string"!=typeof U.className?U.className:oi()(U.className,i||`${H}-open`),[X,Y,Z]=MS(H,!W),Q=PS(H,l),J=Q.arrowStyle,ee=Object.assign(Object.assign({},c),Q.overlayStyle),te=oi()(s,{[`${H}-rtl`]:"rtl"===k},Q.className,z,Y,Z),[ne,oe]=Ys("Tooltip",F.zIndex),re=p.createElement(vS,Object.assign({},F,{zIndex:ne,showArrow:w,placement:A,mouseEnterDelay:D,mouseLeaveDelay:B,prefixCls:H,overlayClassName:te,overlayStyle:Object.assign(Object.assign({},J),L),getTooltipContainer:R||a||S,ref:_,builtinPlacements:I,overlay:T,visible:K,onVisibleChange:t=>{var n,o;M(!P&&t),P||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(o=e.onVisibleChange)||void 0===o||o.call(e,t))},afterVisibleChange:null!=d?d:f,overlayInnerStyle:ee,arrowContent:p.createElement("span",{className:`${H}-arrow-content`}),motion:{motionName:Yl(V,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!h}),K?rc(q,{className:G}):q);return X(p.createElement(Ks.Provider,{value:oe},re))}));IS._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,className:n,placement:o="top",title:r,color:i,overlayInnerStyle:a}=e,{getPrefixCls:s}=p.useContext(He),l=s("tooltip",t),[c,u,d]=MS(l),f=PS(l,i),h=f.arrowStyle,m=Object.assign(Object.assign({},a),f.overlayStyle),g=oi()(u,d,l,`${l}-pure`,`${l}-placement-${o}`,n,f.className);return c(p.createElement("div",{className:g,style:h},p.createElement("div",{className:`${l}-arrow`}),p.createElement(cC,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:m}),r)))};const NS=IS,TS={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"};var RS=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:TS}))};const AS=p.forwardRef(RS),DS=e=>{const{icon:t,description:n,prefixCls:o,className:r}=e,i=h().createElement("div",{className:`${o}-icon`},h().createElement(AS,null));return h().createElement("div",{onClick:e.onClick,onFocus:e.onFocus,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,className:oi()(r,`${o}-content`)},t||n?h().createElement(h().Fragment,null,t&&h().createElement("div",{className:`${o}-icon`},t),n&&h().createElement("div",{className:`${o}-description`},n)):i)},BS=(0,p.memo)(DS),LS=e=>0===e?0:e-Math.sqrt(Math.pow(e,2)/2),zS=e=>{const{componentCls:t,floatButtonSize:n,motionDurationSlow:o,motionEaseInOutCirc:r}=e,i=`${t}-group`,a=new _o("antFloatButtonMoveDownIn",{"0%":{transform:`translate3d(0, ${qt(n)}, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),s=new _o("antFloatButtonMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${qt(n)}, 0)`,transformOrigin:"0 0",opacity:0}});return[{[`${i}-wrap`]:Object.assign({},jf(`${i}-wrap`,a,s,o,!0))},{[`${i}-wrap`]:{[`\n          &${i}-wrap-enter,\n          &${i}-wrap-appear\n        `]:{opacity:0,animationTimingFunction:r},[`&${i}-wrap-leave`]:{animationTimingFunction:r}}}]},FS=e=>{const{antCls:t,componentCls:n,floatButtonSize:o,margin:r,borderRadiusLG:i,borderRadiusSM:a,badgeOffset:s,floatButtonBodyPadding:l,calc:c}=e,u=`${n}-group`;return{[u]:Object.assign(Object.assign({},Ia(e)),{zIndex:99,display:"block",border:"none",position:"fixed",width:o,height:"auto",boxShadow:"none",minHeight:o,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,borderRadius:i,[`${u}-wrap`]:{zIndex:-1,display:"block",position:"relative",marginBottom:r},[`&${u}-rtl`]:{direction:"rtl"},[n]:{position:"static"}}),[`${u}-circle`]:{[`${n}-circle:not(:last-child)`]:{marginBottom:e.margin,[`${n}-body`]:{width:o,height:o,borderRadius:"50%"}}},[`${u}-square`]:{[`${n}-square`]:{borderRadius:0,padding:0,"&:first-child":{borderStartStartRadius:i,borderStartEndRadius:i},"&:last-child":{borderEndStartRadius:i,borderEndEndRadius:i},"&:not(:last-child)":{borderBottom:`${qt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-badge`]:{[`${t}-badge-count`]:{top:c(c(l).add(s)).mul(-1).equal(),insetInlineEnd:c(c(l).add(s)).mul(-1).equal()}}},[`${u}-wrap`]:{display:"block",borderRadius:i,boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",marginTop:0,borderRadius:0,padding:l,"&:first-child":{borderStartStartRadius:i,borderStartEndRadius:i},"&:last-child":{borderEndStartRadius:i,borderEndEndRadius:i},"&:not(:last-child)":{borderBottom:`${qt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize}}}},[`${u}-circle-shadow`]:{boxShadow:"none"},[`${u}-square-shadow`]:{boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",padding:l,[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize,borderRadius:a}}}}},HS=e=>{const{antCls:t,componentCls:n,floatButtonBodyPadding:o,floatButtonIconSize:r,floatButtonSize:i,borderRadiusLG:a,badgeOffset:s,dotOffsetInSquare:l,dotOffsetInCircle:c,calc:u}=e;return{[n]:Object.assign(Object.assign({},Ia(e)),{border:"none",position:"fixed",cursor:"pointer",zIndex:99,display:"block",width:i,height:i,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,boxShadow:e.boxShadowSecondary,"&-pure":{position:"relative",inset:"auto"},"&:empty":{display:"none"},[`${t}-badge`]:{width:"100%",height:"100%",[`${t}-badge-count`]:{transform:"translate(0, 0)",transformOrigin:"center",top:u(s).mul(-1).equal(),insetInlineEnd:u(s).mul(-1).equal()}},[`${n}-body`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",transition:`all ${e.motionDurationMid}`,[`${n}-content`]:{overflow:"hidden",textAlign:"center",minHeight:i,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:`${qt(u(o).div(2).equal())} ${qt(o)}`,[`${n}-icon`]:{textAlign:"center",margin:"auto",width:r,fontSize:r,lineHeight:1}}}}),[`${n}-rtl`]:{direction:"rtl"},[`${n}-circle`]:{height:i,borderRadius:"50%",[`${t}-badge`]:{[`${t}-badge-dot`]:{top:c,insetInlineEnd:c}},[`${n}-body`]:{borderRadius:"50%"}},[`${n}-square`]:{height:"auto",minHeight:i,borderRadius:a,[`${t}-badge`]:{[`${t}-badge-dot`]:{top:l,insetInlineEnd:l}},[`${n}-body`]:{height:"auto",borderRadius:a}},[`${n}-default`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,[`${n}-body`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorFillContent},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorText},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:qt(e.fontSizeLG),color:e.colorText,fontSize:e.fontSizeSM}}}},[`${n}-primary`]:{backgroundColor:e.colorPrimary,[`${n}-body`]:{backgroundColor:e.colorPrimary,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorPrimaryHover},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorTextLightSolid},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:qt(e.fontSizeLG),color:e.colorTextLightSolid,fontSize:e.fontSizeSM}}}}}},VS=hl("FloatButton",(e=>{const{colorTextLightSolid:t,colorBgElevated:n,controlHeightLG:o,marginXXL:r,marginLG:i,fontSize:a,fontSizeIcon:s,controlItemBgHover:l,paddingXXS:c,calc:u}=e,d=Js(e,{floatButtonBackgroundColor:n,floatButtonColor:t,floatButtonHoverBackgroundColor:l,floatButtonFontSize:a,floatButtonIconSize:u(s).mul(1.5).equal(),floatButtonSize:o,floatButtonInsetBlockEnd:r,floatButtonInsetInlineEnd:i,floatButtonBodySize:u(o).sub(u(c).mul(2)).equal(),floatButtonBodyPadding:c,badgeOffset:u(c).mul(1.5).equal()});return[FS(d),HS(d),If(e),zS(d)]}),(e=>({dotOffsetInCircle:LS(e.controlHeightLG/2),dotOffsetInSquare:LS(e.borderRadiusLG)})));const WS="float-btn",KS=h().forwardRef(((e,t)=>{const{prefixCls:n,className:o,rootClassName:r,type:i="default",shape:a="circle",icon:s,description:l,tooltip:c,badge:u={}}=e,d=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","className","rootClassName","type","shape","icon","description","tooltip","badge"]),{getPrefixCls:f,direction:m}=(0,p.useContext)(He),g=(0,p.useContext)(zw),v=f(WS,n),b=Ws(v),[y,x,w]=VS(v,b),C=g||a,S=oi()(x,w,b,v,o,r,`${v}-${i}`,`${v}-${C}`,{[`${v}-rtl`]:"rtl"===m}),E=(0,p.useMemo)((()=>Jl(u,["title","children","status","text"])),[u]),k=(0,p.useMemo)((()=>({prefixCls:v,description:l,icon:s,type:i})),[v,l,s,i]);let $=h().createElement("div",{className:`${v}-body`},h().createElement(BS,Object.assign({},k)));return"badge"in e&&($=h().createElement(lC,Object.assign({},E),$)),"tooltip"in e&&($=h().createElement(NS,{title:c,placement:"rtl"===m?"right":"left"},$)),y(e.href?h().createElement("a",Object.assign({ref:t},d,{className:S}),$):h().createElement("button",Object.assign({ref:t},d,{className:S,type:"button"}),$))})),qS=KS;const US=h().forwardRef(((e,t)=>{const{prefixCls:n,className:o,type:r="default",shape:i="circle",visibilityHeight:a=400,icon:s=h().createElement(Tw,null),target:l,onClick:c,duration:u=450}=e,d=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","className","type","shape","visibilityHeight","icon","target","onClick","duration"]),[f,m]=(0,p.useState)(0===a),g=h().useRef(null);h().useImperativeHandle(t,(()=>({nativeElement:g.current})));const v=()=>g.current&&g.current.ownerDocument?g.current.ownerDocument:window,b=function(e){let t;const n=function(){if(null==t){for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];t=na((n=>()=>{t=null,e.apply(void 0,Ye(n))})(o))}};return n.cancel=()=>{na.cancel(t),t=null},n}((e=>{const t=Aw(e.target,!0);m(t>=a)}));(0,p.useEffect)((()=>{const e=(l||v)();return b({target:e}),null==e||e.addEventListener("scroll",b),()=>{b.cancel(),null==e||e.removeEventListener("scroll",b)}}),[l]);const y=e=>{Dw(0,{getContainer:l||v,duration:u}),null==c||c(e)},{getPrefixCls:x}=(0,p.useContext)(He),w=x(WS,n),C=x(),S=(0,p.useContext)(zw)||i,E=Object.assign({prefixCls:w,icon:s,type:r,shape:S},d);return h().createElement(va,{visible:f,motionName:`${C}-fade`},(e=>{let{className:t}=e;return h().createElement(qS,Object.assign({ref:g},E,{onClick:y,className:oi()(o,t)}))}))})),GS=US;const XS=e=>{const{prefixCls:t,className:n,style:o,shape:r="circle",type:i="default",icon:a=h().createElement(AS,null),closeIcon:s=h().createElement(ws,null),description:l,trigger:c,children:u,onOpenChange:d,open:f}=e,m=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","className","style","shape","type","icon","closeIcon","description","trigger","children","onOpenChange","open"]),{direction:g,getPrefixCls:v}=(0,p.useContext)(He),b=v(WS,t),y=Ws(b),[x,w,C]=VS(b,y),S=`${b}-group`,E=oi()(S,w,C,y,n,{[`${S}-rtl`]:"rtl"===g,[`${S}-${r}`]:r,[`${S}-${r}-shadow`]:!c}),k=oi()(w,`${S}-wrap`),[$,_]=rl(!1,{value:f}),O=h().useRef(null),j=h().useRef(null),M=h().useMemo((()=>"hover"===c?{onMouseEnter(){_(!0),null==d||d(!0)},onMouseLeave(){_(!1),null==d||d(!1)}}:{}),[c]),P=(0,p.useCallback)((e=>{var t,n;(null===(t=O.current)||void 0===t?void 0:t.contains(e.target))?(null===(n=j.current)||void 0===n?void 0:n.contains(e.target))&&_((e=>(null==d||d(!e),!e))):(_(!1),null==d||d(!1))}),[c]);return(0,p.useEffect)((()=>{if("click"===c)return document.addEventListener("click",P),()=>{document.removeEventListener("click",P)}}),[c]),x(h().createElement(Lw,{value:r},h().createElement("div",Object.assign({ref:O,className:E,style:o},M),c&&["click","hover"].includes(c)?h().createElement(h().Fragment,null,h().createElement(va,{visible:$,motionName:`${S}-wrap`},(e=>{let{className:t}=e;return h().createElement("div",{className:oi()(t,k)},u)})),h().createElement(qS,Object.assign({ref:j,type:i,shape:r,icon:$?s:a,description:l,"aria-label":e["aria-label"]},m))):u)))},YS=(0,p.memo)(XS);var ZS=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const QS=e=>{var{backTop:t}=e,n=ZS(e,["backTop"]);return t?p.createElement(GS,Object.assign({},n,{visibilityHeight:0})):p.createElement(qS,Object.assign({},n))};qS.BackTop=GS,qS.Group=YS,qS._InternalPanelDoNotUseOrYouWillBeFired=e=>{var{className:t,items:n}=e,o=ZS(e,["className","items"]);const{prefixCls:r}=o,{getPrefixCls:i}=p.useContext(He),a=`${i(WS,r)}-pure`;return n?p.createElement(YS,Object.assign({className:oi()(t,a)},o),n.map(((e,t)=>p.createElement(QS,Object.assign({key:t},e))))):p.createElement(QS,Object.assign({className:oi()(t,a)},o))};const JS=qS,eE=window.NotificationsMasterConfig||{adminUrl:"",ajaxUrl:"",assetsUrl:"",nonce:"",parentPageSlug:"",postTypes:[],taxonomies:[],commentTypes:[],totalNotifications:0,triggersGroups:{},integrations:{},ntfmSiteUrl:"",isPro:!1,userRoles:{},subscriptionCount:0},tE=window.wp.url,nE={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"};var oE=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:nE}))};const rE=p.forwardRef(oE),iE={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"};var aE=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:iE}))};const sE=p.forwardRef(aE),lE={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"};var cE=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:lE}))};const uE=p.forwardRef(cE);var dE=n(965),fE=n.n(dE),pE=function(e){if(Qe()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some((function(e){return e in n.style}))}return!1},hE=function(e,t){if(!pE(e))return!1;var n=document.createElement("div"),o=n.style[e];return n.style[e]=t,n.style[e]!==o};function mE(e,t){return Array.isArray(e)||void 0===t?pE(e):hE(e,t)}const gE={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},vE=p.forwardRef(((e,t)=>{const{style:n,noStyle:o,disabled:r}=e,i=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["style","noStyle","disabled"]);let a={};return o||(a=Object.assign({},gE)),r&&(a.pointerEvents="none"),a=Object.assign(Object.assign({},a),n),p.createElement("div",Object.assign({role:"button",tabIndex:0,ref:t},i,{onKeyDown:e=>{const{keyCode:t}=e;t===Is.ENTER&&e.preventDefault()},onKeyUp:t=>{const{keyCode:n}=t,{onClick:o}=e;n===Is.ENTER&&o&&o()},style:a}))})),bE=vE,yE={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"};var xE=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:yE}))};const wE=p.forwardRef(xE);function CE(e,t,n,o){if(n){var r=t;if("click"===t.type){var i=e.cloneNode(!0);return r=Object.create(t,{target:{value:i},currentTarget:{value:i}}),i.value="",void n(r)}if("file"!==e.type&&void 0!==o){var a=e.cloneNode(!0);return r=Object.create(t,{target:{value:a},currentTarget:{value:a}}),a.value=o,void n(r)}n(r)}}function SE(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var o=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}const EE=function(e){var t,n,o=e.inputElement,r=e.children,i=e.prefixCls,a=e.prefix,s=e.suffix,l=e.addonBefore,c=e.addonAfter,u=e.className,d=e.style,f=e.disabled,m=e.readOnly,g=e.focused,v=e.triggerFocus,b=e.allowClear,y=e.value,x=e.handleReset,w=e.hidden,C=e.classes,S=e.classNames,E=e.dataAttrs,k=e.styles,$=e.components,_=null!=r?r:o,O=(null==$?void 0:$.affixWrapper)||"span",j=(null==$?void 0:$.groupWrapper)||"span",M=(null==$?void 0:$.wrapper)||"span",P=(null==$?void 0:$.groupAddon)||"span",I=(0,p.useRef)(null),N=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e),T=(0,p.cloneElement)(_,{value:y,className:oi()(_.props.className,!N&&(null==S?void 0:S.variant))||null});if(N){var R,A=null;if(b){var D,B=!f&&!m&&y,L="".concat(i,"-clear-icon"),z="object"===ye(b)&&null!=b&&b.clearIcon?b.clearIcon:"✖";A=h().createElement("span",{onClick:x,onMouseDown:function(e){return e.preventDefault()},className:oi()(L,(D={},Ee(D,"".concat(L,"-hidden"),!B),Ee(D,"".concat(L,"-has-suffix"),!!s),D)),role:"button",tabIndex:-1},z)}var F="".concat(i,"-affix-wrapper"),H=oi()(F,(Ee(R={},"".concat(i,"-disabled"),f),Ee(R,"".concat(F,"-disabled"),f),Ee(R,"".concat(F,"-focused"),g),Ee(R,"".concat(F,"-readonly"),m),Ee(R,"".concat(F,"-input-with-clear-btn"),s&&b&&y),R),null==C?void 0:C.affixWrapper,null==S?void 0:S.affixWrapper,null==S?void 0:S.variant),V=(s||b)&&h().createElement("span",{className:oi()("".concat(i,"-suffix"),null==S?void 0:S.suffix),style:null==k?void 0:k.suffix},A,s);T=h().createElement(O,hn({className:H,style:null==k?void 0:k.affixWrapper,onClick:function(e){var t;null!==(t=I.current)&&void 0!==t&&t.contains(e.target)&&(null==v||v())}},null==E?void 0:E.affixWrapper,{ref:I}),a&&h().createElement("span",{className:oi()("".concat(i,"-prefix"),null==S?void 0:S.prefix),style:null==k?void 0:k.prefix},a),T,V)}if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(e)){var W="".concat(i,"-group"),K="".concat(W,"-addon"),q="".concat(W,"-wrapper"),U=oi()("".concat(i,"-wrapper"),W,null==C?void 0:C.wrapper,null==S?void 0:S.wrapper),G=oi()(q,Ee({},"".concat(q,"-disabled"),f),null==C?void 0:C.group,null==S?void 0:S.groupWrapper);T=h().createElement(j,{className:G},h().createElement(M,{className:U},l&&h().createElement(P,{className:K},l),T,c&&h().createElement(P,{className:K},c)))}return h().cloneElement(T,{className:oi()(null===(t=T.props)||void 0===t?void 0:t.className,u)||null,style:$e($e({},null===(n=T.props)||void 0===n?void 0:n.style),d),hidden:w})};var kE=["show"];function $E(e,t){return p.useMemo((function(){var n={};t&&(n.show="object"===ye(t)&&t.formatter?t.formatter:!!t);var o=n=$e($e({},n),e),r=o.show,i=di(o,kE);return $e($e({},i),{},{show:!!r,showFormatter:"function"==typeof r?r:void 0,strategy:i.strategy||function(e){return e.length}})}),[e,t])}var _E=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],OE=(0,p.forwardRef)((function(e,t){var n=e.autoComplete,o=e.onChange,r=e.onFocus,i=e.onBlur,a=e.onPressEnter,s=e.onKeyDown,l=e.prefixCls,c=void 0===l?"rc-input":l,u=e.disabled,d=e.htmlSize,f=e.className,m=e.maxLength,g=e.suffix,v=e.showCount,b=e.count,y=e.type,x=void 0===y?"text":y,w=e.classes,C=e.classNames,S=e.styles,E=e.onCompositionStart,k=e.onCompositionEnd,$=di(e,_E),_=Ge((0,p.useState)(!1),2),O=_[0],j=_[1],M=(0,p.useRef)(!1),P=(0,p.useRef)(null),I=function(e){P.current&&SE(P.current,e)},N=Ge(rl(e.defaultValue,{value:e.value}),2),T=N[0],R=N[1],A=null==T?"":String(T),D=Ge((0,p.useState)(null),2),B=D[0],L=D[1],z=$E(b,v),F=z.max||m,H=z.strategy(A),V=!!F&&H>F;(0,p.useImperativeHandle)(t,(function(){return{focus:I,blur:function(){var e;null===(e=P.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var o;null===(o=P.current)||void 0===o||o.setSelectionRange(e,t,n)},select:function(){var e;null===(e=P.current)||void 0===e||e.select()},input:P.current}})),(0,p.useEffect)((function(){j((function(e){return(!e||!u)&&e}))}),[u]);var W=function(e,t,n){var r,i,a=t;if(!M.current&&z.exceedFormatter&&z.max&&z.strategy(t)>z.max)t!==(a=z.exceedFormatter(t,{max:z.max}))&&L([(null===(r=P.current)||void 0===r?void 0:r.selectionStart)||0,(null===(i=P.current)||void 0===i?void 0:i.selectionEnd)||0]);else if("compositionEnd"===n.source)return;R(a),P.current&&CE(P.current,e,o,a)};(0,p.useEffect)((function(){var e;B&&(null===(e=P.current)||void 0===e||e.setSelectionRange.apply(e,Ye(B)))}),[B]);var K,q=V&&"".concat(c,"-out-of-range");return h().createElement(EE,hn({},$,{prefixCls:c,className:oi()(f,q),handleReset:function(e){R(""),I(),P.current&&CE(P.current,e,o)},value:A,focused:O,triggerFocus:I,suffix:function(){var e=Number(F)>0;if(g||z.show){var t=z.showFormatter?z.showFormatter({value:A,count:H,maxLength:F}):"".concat(H).concat(e?" / ".concat(F):"");return h().createElement(h().Fragment,null,z.show&&h().createElement("span",{className:oi()("".concat(c,"-show-count-suffix"),Ee({},"".concat(c,"-show-count-has-suffix"),!!g),null==C?void 0:C.count),style:$e({},null==S?void 0:S.count)},t),g)}return null}(),disabled:u,classes:w,classNames:C,styles:S}),(K=Jl(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]),h().createElement("input",hn({autoComplete:n},K,{onChange:function(e){W(e,e.target.value,{source:"change"})},onFocus:function(e){j(!0),null==r||r(e)},onBlur:function(e){j(!1),null==i||i(e)},onKeyDown:function(e){a&&"Enter"===e.key&&a(e),null==s||s(e)},className:oi()(c,Ee({},"".concat(c,"-disabled"),u),null==C?void 0:C.input),style:null==S?void 0:S.input,ref:P,size:d,type:x,onCompositionStart:function(e){M.current=!0,null==E||E(e)},onCompositionEnd:function(e){M.current=!1,W(e,e.currentTarget.value,{source:"compositionEnd"}),null==k||k(e)}}))))}));const jE=OE;var ME,PE=["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"],IE={};var NE=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],TE=p.forwardRef((function(e,t){var n=e,o=n.prefixCls,r=(n.onPressEnter,n.defaultValue),i=n.value,a=n.autoSize,s=n.onResize,l=n.className,c=n.style,u=n.disabled,d=n.onChange,f=(n.onInternalAutoSize,di(n,NE)),h=Ge(rl(r,{value:i,postState:function(e){return null!=e?e:""}}),2),m=h[0],g=h[1],v=p.useRef();p.useImperativeHandle(t,(function(){return{textArea:v.current}}));var b=Ge(p.useMemo((function(){return a&&"object"===ye(a)?[a.minRows,a.maxRows]:[]}),[a]),2),y=b[0],x=b[1],w=!!a,C=Ge(p.useState(2),2),S=C[0],E=C[1],k=Ge(p.useState(),2),$=k[0],_=k[1],O=function(){E(0)};en((function(){w&&O()}),[i,y,x,w]),en((function(){if(0===S)E(1);else if(1===S){var e=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;ME||((ME=document.createElement("textarea")).setAttribute("tab-index","-1"),ME.setAttribute("aria-hidden","true"),document.body.appendChild(ME)),e.getAttribute("wrap")?ME.setAttribute("wrap",e.getAttribute("wrap")):ME.removeAttribute("wrap");var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&IE[n])return IE[n];var o=window.getComputedStyle(e),r=o.getPropertyValue("box-sizing")||o.getPropertyValue("-moz-box-sizing")||o.getPropertyValue("-webkit-box-sizing"),i=parseFloat(o.getPropertyValue("padding-bottom"))+parseFloat(o.getPropertyValue("padding-top")),a=parseFloat(o.getPropertyValue("border-bottom-width"))+parseFloat(o.getPropertyValue("border-top-width")),s={sizingStyle:PE.map((function(e){return"".concat(e,":").concat(o.getPropertyValue(e))})).join(";"),paddingSize:i,borderSize:a,boxSizing:r};return t&&n&&(IE[n]=s),s}(e,t),i=r.paddingSize,a=r.borderSize,s=r.boxSizing,l=r.sizingStyle;ME.setAttribute("style","".concat(l,";").concat("\n  min-height:0 !important;\n  max-height:none !important;\n  height:0 !important;\n  visibility:hidden !important;\n  overflow:hidden !important;\n  position:absolute !important;\n  z-index:-1000 !important;\n  top:0 !important;\n  right:0 !important;\n  pointer-events: none !important;\n")),ME.value=e.value||e.placeholder||"";var c,u=void 0,d=void 0,f=ME.scrollHeight;if("border-box"===s?f+=a:"content-box"===s&&(f-=i),null!==n||null!==o){ME.value=" ";var p=ME.scrollHeight-i;null!==n&&(u=p*n,"border-box"===s&&(u=u+i+a),f=Math.max(u,f)),null!==o&&(d=p*o,"border-box"===s&&(d=d+i+a),c=f>d?"":"hidden",f=Math.min(d,f))}var h={height:f,overflowY:c,resize:"none"};return u&&(h.minHeight=u),d&&(h.maxHeight=d),h}(v.current,!1,y,x);E(2),_(e)}else!function(){try{if(document.activeElement===v.current){var e=v.current,t=e.selectionStart,n=e.selectionEnd,o=e.scrollTop;v.current.setSelectionRange(t,n),v.current.scrollTop=o}}catch(e){}}()}),[S]);var j=p.useRef(),M=function(){na.cancel(j.current)};p.useEffect((function(){return M}),[]);var P=w?$:null,I=$e($e({},c),P);return 0!==S&&1!==S||(I.overflowY="hidden",I.overflowX="hidden"),p.createElement(LC,{onResize:function(e){2===S&&(null==s||s(e),a&&(M(),j.current=na((function(){O()}))))},disabled:!(a||s)},p.createElement("textarea",hn({},f,{ref:v,style:I,className:oi()(o,l,Ee({},"".concat(o,"-disabled"),u)),disabled:u,value:m,onChange:function(e){g(e.target.value),null==d||d(e)}})))}));const RE=TE;var AE=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],DE=h().forwardRef((function(e,t){var n,o,r=e.defaultValue,i=e.value,a=e.onFocus,s=e.onBlur,l=e.onChange,c=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,m=e.suffix,g=e.prefixCls,v=void 0===g?"rc-textarea":g,b=e.showCount,y=e.count,x=e.className,w=e.style,C=e.disabled,S=e.hidden,E=e.classNames,k=e.styles,$=e.onResize,_=di(e,AE),O=Ge(rl(r,{value:i,defaultValue:r}),2),j=O[0],M=O[1],P=null==j?"":String(j),I=Ge(h().useState(!1),2),N=I[0],T=I[1],R=h().useRef(!1),A=Ge(h().useState(null),2),D=A[0],B=A[1],L=(0,p.useRef)(null),z=function(){var e;return null===(e=L.current)||void 0===e?void 0:e.textArea},F=function(){z().focus()};(0,p.useImperativeHandle)(t,(function(){return{resizableTextArea:L.current,focus:F,blur:function(){z().blur()}}})),(0,p.useEffect)((function(){T((function(e){return!C&&e}))}),[C]);var H=Ge(h().useState(null),2),V=H[0],W=H[1];h().useEffect((function(){var e;V&&(e=z()).setSelectionRange.apply(e,Ye(V))}),[V]);var K,q=$E(y,b),U=null!==(n=q.max)&&void 0!==n?n:u,G=Number(U)>0,X=q.strategy(P),Y=!!U&&X>U,Z=function(e,t){var n=t;!R.current&&q.exceedFormatter&&q.max&&q.strategy(t)>q.max&&t!==(n=q.exceedFormatter(t,{max:q.max}))&&W([z().selectionStart||0,z().selectionEnd||0]),M(n),CE(e.currentTarget,e,l,n)},Q=m;q.show&&(K=q.showFormatter?q.showFormatter({value:P,count:X,maxLength:U}):"".concat(X).concat(G?" / ".concat(U):""),Q=h().createElement(h().Fragment,null,Q,h().createElement("span",{className:oi()("".concat(v,"-data-count"),null==E?void 0:E.count),style:null==k?void 0:k.count},K)));var J=!_.autoSize&&!b&&!c;return h().createElement(EE,{value:P,allowClear:c,handleReset:function(e){M(""),F(),CE(z(),e,l)},suffix:Q,prefixCls:v,classNames:$e($e({},E),{},{affixWrapper:oi()(null==E?void 0:E.affixWrapper,(o={},Ee(o,"".concat(v,"-show-count"),b),Ee(o,"".concat(v,"-textarea-allow-clear"),c),o))}),disabled:C,focused:N,className:oi()(x,Y&&"".concat(v,"-out-of-range")),style:$e($e({},w),D&&!J?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof K?K:void 0}},hidden:S},h().createElement(RE,hn({},_,{maxLength:u,onKeyDown:function(e){var t=_.onPressEnter,n=_.onKeyDown;"Enter"===e.key&&t&&t(e),null==n||n(e)},onChange:function(e){Z(e,e.target.value)},onFocus:function(e){T(!0),null==a||a(e)},onBlur:function(e){T(!1),null==s||s(e)},onCompositionStart:function(e){R.current=!0,null==d||d(e)},onCompositionEnd:function(e){R.current=!1,Z(e,e.currentTarget.value),null==f||f(e)},className:oi()(null==E?void 0:E.textarea),style:$e($e({},null==k?void 0:k.textarea),{},{resize:null==w?void 0:w.resize}),disabled:C,prefixCls:v,onResize:function(e){var t;null==$||$(e),null!==(t=z())&&void 0!==t&&t.style.height&&B(!0)},ref:L})))}));const BE=DE;function LE(e,t,n){return oi()({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}const zE=(e,t)=>t||e;function FE(e,t){const n=(0,p.useRef)([]),o=()=>{n.current.push(setTimeout((()=>{var t,n,o,r;(null===(t=e.current)||void 0===t?void 0:t.input)&&"password"===(null===(n=e.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(o=e.current)||void 0===o?void 0:o.input.hasAttribute("value"))&&(null===(r=e.current)||void 0===r||r.input.removeAttribute("value"))})))};return(0,p.useEffect)((()=>(t&&o(),()=>n.current.forEach((e=>{e&&clearTimeout(e)})))),[]),o}function HE(e){return Js(e,{inputAffixPadding:e.paddingXXS})}const VE=e=>{const{controlHeight:t,fontSize:n,lineHeight:o,lineWidth:r,controlHeightSM:i,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:h,controlOutlineWidth:m,controlOutline:g,colorErrorOutline:v,colorWarningOutline:b,colorBgContainer:y}=e;return{paddingBlock:Math.max(Math.round((t-n*o)/2*10)/10-r,0),paddingBlockSM:Math.max(Math.round((i-n*o)/2*10)/10-r,0),paddingBlockLG:Math.ceil((a-s*l)/2*10)/10-r,paddingInline:c-r,paddingInlineSM:u-r,paddingInlineLG:d-r,addonBg:f,activeBorderColor:h,hoverBorderColor:p,activeShadow:`0 0 0 ${m}px ${g}`,errorActiveShadow:`0 0 0 ${m}px ${v}`,warningActiveShadow:`0 0 0 ${m}px ${b}`,hoverBg:y,activeBg:y,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},WE=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),KE=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},WE(Js(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),qE=(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}}),UE=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},qE(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),GE=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},qE(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},KE(e))}),UE(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),UE(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),XE=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),YE=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${qt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},XE(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),XE(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},KE(e))}})}),ZE=(e,t)=>({"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled}},t)}),QE=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null==t?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),JE=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},QE(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),ek=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},QE(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},KE(e))}),JE(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),JE(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),tk=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),nk=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${qt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${qt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},tk(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),tk(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:`${qt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${qt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${qt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${qt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${qt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${qt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),ok=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),rk=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:o,paddingInlineLG:r}=e;return{padding:`${qt(t)} ${qt(r)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:o}},ik=e=>({padding:`${qt(e.paddingBlockSM)} ${qt(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),ak=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${qt(e.paddingBlock)} ${qt(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},ok(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},rk(e)),"&-sm":Object.assign({},ik(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),sk=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({},rk(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},ik(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 ${qt(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${qt(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${qt(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:`${qt(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${qt(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"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`\n        & > ${t}-affix-wrapper,\n        & > ${t}-number-affix-wrapper,\n        & > ${n}-picker-range\n      `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,\n      & > ${n}-select-auto-complete ${t},\n      & > ${n}-cascader-picker ${t},\n      & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n      & > ${n}-select:first-child > ${n}-select-selector,\n      & > ${n}-select-auto-complete:first-child ${t},\n      & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n      & > ${n}-select:last-child > ${n}-select-selector,\n      & > ${n}-cascader-picker:last-child ${t},\n      & > ${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}}}})}},lk=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:o,calc:r}=e,i=r(n).sub(r(o).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ia(e)),ak(e)),GE(e)),ek(e)),ZE(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},ck=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${qt(e.inputAffixPadding)}`}}}},uk=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:o,motionDurationSlow:r,colorIcon:i,colorIconHover:a,iconCls:s}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign({},ak(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0,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:o},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),ck(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${r}`,"&:hover":{color:a}}})}},dk=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:o}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Ia(e)),sk(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:o}}},YE(e)),nk(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}}})})}},fk=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-search`;return{[o]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${o}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal({unit:!1})},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${o}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${o}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${o}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${o}-button`]:{height:e.controlHeightLG},[`&-small ${o}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n        > ${t},\n        ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},pk=e=>{const{componentCls:t,paddingLG:n}=e,o=`${t}-textarea`;return{[o]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${o}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${o}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},hk=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},mk=hl("Input",(e=>{const t=Js(e,HE(e));return[lk(t),pk(t),uk(t),dk(t),fk(t),hk(t),cu(t)]}),VE),gk=["outlined","borderless","filled"],vk=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;const n=(0,p.useContext)(xf);let o;return o=void 0!==e?e:!1===t?"borderless":null!=n?n:"outlined",[o,gk.includes(o)]};const bk=(0,p.forwardRef)(((e,t)=>{var n;const{prefixCls:o,bordered:r=!0,status:i,size:a,disabled:s,onBlur:l,onFocus:c,suffix:u,allowClear:d,addonAfter:f,addonBefore:m,className:g,style:v,styles:b,rootClassName:y,onChange:x,classNames:w,variant:C}=e,S=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:E,direction:k,input:$}=h().useContext(He),_=E("input",o),O=(0,p.useRef)(null),j=Ws(_),[M,P,I]=mk(_,j),{compactSize:N,compactItemClassnames:T}=wc(_,k),R=pc((e=>{var t;return null!==(t=null!=a?a:N)&&void 0!==t?t:e})),A=h().useContext(Xr),D=null!=s?s:A,{status:B,hasFeedback:L,feedbackIcon:z}=(0,p.useContext)(bf),F=zE(B,i),H=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(e)||!!L;(0,p.useRef)(H);const V=FE(O,!0),W=(L||u)&&h().createElement(h().Fragment,null,u,L&&z),K=(e=>{let t;return"object"==typeof e&&(null==e?void 0:e.clearIcon)?t=e:e&&(t={clearIcon:h().createElement(bs,null)}),t})(d),[q,U]=vk(C,r);return M(h().createElement(jE,Object.assign({ref:li(t,O),prefixCls:_,autoComplete:null==$?void 0:$.autoComplete},S,{disabled:D,onBlur:e=>{V(),null==l||l(e)},onFocus:e=>{V(),null==c||c(e)},style:Object.assign(Object.assign({},null==$?void 0:$.style),v),styles:Object.assign(Object.assign({},null==$?void 0:$.styles),b),suffix:W,allowClear:K,className:oi()(g,y,I,j,T,null==$?void 0:$.className),onChange:e=>{V(),null==x||x(e)},addonAfter:f&&h().createElement(Cc,null,h().createElement(yf,{override:!0,status:!0},f)),addonBefore:m&&h().createElement(Cc,null,h().createElement(yf,{override:!0,status:!0},m)),classNames:Object.assign(Object.assign(Object.assign({},w),null==$?void 0:$.classNames),{input:oi()({[`${_}-sm`]:"small"===R,[`${_}-lg`]:"large"===R,[`${_}-rtl`]:"rtl"===k},null==w?void 0:w.input,null===(n=null==$?void 0:$.classNames)||void 0===n?void 0:n.input,P),variant:oi()({[`${_}-${q}`]:U},LE(_,F)),affixWrapper:oi()({[`${_}-affix-wrapper-sm`]:"small"===R,[`${_}-affix-wrapper-lg`]:"large"===R,[`${_}-affix-wrapper-rtl`]:"rtl"===k},P),wrapper:oi()({[`${_}-group-rtl`]:"rtl"===k},P),groupWrapper:oi()({[`${_}-group-wrapper-sm`]:"small"===R,[`${_}-group-wrapper-lg`]:"large"===R,[`${_}-group-wrapper-rtl`]:"rtl"===k,[`${_}-group-wrapper-${q}`]:U},LE(`${_}-group-wrapper`,F,L),P)})})))})),yk=bk;const xk=(0,p.forwardRef)(((e,t)=>{var n;const{prefixCls:o,bordered:r=!0,size:i,disabled:a,status:s,allowClear:l,classNames:c,rootClassName:u,className:d,variant:f}=e,h=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","variant"]),{getPrefixCls:m,direction:g}=p.useContext(He),v=pc(i),b=p.useContext(Xr),y=null!=a?a:b,{status:x,hasFeedback:w,feedbackIcon:C}=p.useContext(bf),S=zE(x,s),E=p.useRef(null);p.useImperativeHandle(t,(()=>{var e;return{resizableTextArea:null===(e=E.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;!function(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const t=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}(null===(n=null===(t=E.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=E.current)||void 0===e?void 0:e.blur()}}}));const k=m("input",o);let $;"object"==typeof l&&(null==l?void 0:l.clearIcon)?$=l:l&&($={clearIcon:p.createElement(bs,null)});const _=Ws(k),[O,j,M]=mk(k,_),[P,I]=vk(f,r);return O(p.createElement(BE,Object.assign({},h,{disabled:y,allowClear:$,className:oi()(M,_,d,u),classNames:Object.assign(Object.assign({},c),{textarea:oi()({[`${k}-sm`]:"small"===v,[`${k}-lg`]:"large"===v},j,null==c?void 0:c.textarea),variant:oi()({[`${k}-${P}`]:I},LE(k,S)),affixWrapper:oi()(`${k}-textarea-affix-wrapper`,{[`${k}-affix-wrapper-rtl`]:"rtl"===g,[`${k}-affix-wrapper-sm`]:"small"===v,[`${k}-affix-wrapper-lg`]:"large"===v,[`${k}-textarea-show-count`]:e.showCount||(null===(n=e.count)||void 0===n?void 0:n.show)},j)}),prefixCls:k,suffix:w&&p.createElement("span",{className:`${k}-textarea-suffix`},C),ref:E})))})),wk=xk,Ck=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),Sk=e=>{const t={};return[1,2,3,4,5].forEach((n=>{t[`\n      h${n}&,\n      div&-h${n},\n      div&-h${n} > textarea,\n      h${n}\n    `]=((e,t,n,o)=>{const{titleMarginBottom:r,fontWeightStrong:i}=o;return{marginBottom:r,color:n,fontWeight:i,fontSize:e,lineHeight:t}})(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)})),t},Ek=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},Ck(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},kk=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:Nr[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),$k=e=>{const{componentCls:t,paddingSM:n}=e,o=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(o).mul(-1).equal(),marginBottom:`calc(1em - ${qt(o)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},_k=e=>({[`${e.componentCls}-copy-success`]:{"\n    &,\n    &:hover,\n    &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),Ok=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n        div&,\n        p\n      ":{marginBottom:"1em"}},Sk(e)),{[`\n      & + h1${t},\n      & + h2${t},\n      & + h3${t},\n      & + h4${t},\n      & + h5${t}\n      `]:{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}}}),kk(e)),Ek(e)),{[`\n        ${t}-expand,\n        ${t}-edit,\n        ${t}-copy\n      `]:Object.assign(Object.assign({},Ck(e)),{marginInlineStart:e.marginXXS})}),$k(e)),_k(e)),{"\n  a&-ellipsis,\n  span&-ellipsis\n  ":{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{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"}}),{"&-rtl":{direction:"rtl"}})}},jk=hl("Typography",(e=>[Ok(e)]),(()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}))),Mk=e=>{const{prefixCls:t,"aria-label":n,className:o,style:r,direction:i,maxLength:a,autoSize:s=!0,value:l,onSave:c,onCancel:u,onEnd:d,component:f,enterIcon:h=p.createElement(wE,null)}=e,m=p.useRef(null),g=p.useRef(!1),v=p.useRef(),[b,y]=p.useState(l);p.useEffect((()=>{y(l)}),[l]),p.useEffect((()=>{if(m.current&&m.current.resizableTextArea){const{textArea:e}=m.current.resizableTextArea;e.focus();const{length:t}=e.value;e.setSelectionRange(t,t)}}),[]);const x=()=>{c(b.trim())},w=f?`${t}-${f}`:"",[C,S,E]=jk(t),k=oi()(t,`${t}-edit-content`,{[`${t}-rtl`]:"rtl"===i},o,w,S,E);return C(p.createElement("div",{className:k,style:r},p.createElement(wk,{ref:m,maxLength:a,value:b,onChange:e=>{let{target:t}=e;y(t.value.replace(/[\n\r]/g,""))},onKeyDown:e=>{let{keyCode:t}=e;g.current||(v.current=t)},onKeyUp:e=>{let{keyCode:t,ctrlKey:n,altKey:o,metaKey:r,shiftKey:i}=e;v.current!==t||g.current||n||o||r||i||(t===Is.ENTER?(x(),null==d||d()):t===Is.ESC&&u())},onCompositionStart:()=>{g.current=!0},onCompositionEnd:()=>{g.current=!1},onBlur:()=>{x()},"aria-label":n,rows:1,autoSize:s}),null!==h?rc(h,{className:`${t}-edit-content-confirm`}):null))};function Pk(e,t){return p.useMemo((()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&"object"==typeof e?e:null)]}),[e])}const Ik=p.forwardRef(((e,t)=>{const{prefixCls:n,component:o="article",className:r,rootClassName:i,setContentRef:a,children:s,direction:l,style:c}=e,u=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:d,direction:f,typography:h}=p.useContext(He),m=null!=l?l:f;let g=t;a&&(g=li(t,a));const v=d("typography",n),[b,y,x]=jk(v),w=oi()(v,null==h?void 0:h.className,{[`${v}-rtl`]:"rtl"===m},r,i,y,x),C=Object.assign(Object.assign({},null==h?void 0:h.style),c);return b(p.createElement(o,Object.assign({className:w,style:C,ref:g},u),s))})),Nk=Ik;function Tk(e){const t=typeof e;return"string"===t||"number"===t}function Rk(e,t){let n=0;const o=[];for(let r=0;r<e.length;r+=1){if(n===t)return o;const i=e[r],a=n+(Tk(i)?String(i).length:1);if(a>t){const e=t-n;return o.push(String(i).slice(0,e)),o}o.push(i),n=a}return e}const Ak=e=>{let{enabledMeasure:t,children:n,text:o,width:r,fontSize:i,rows:a,onEllipsis:s}=e;const[[l,c,u],d]=p.useState([0,0,0]),[f,h]=p.useState(0),[m,g]=p.useState(0),[v,b]=p.useState(0),y=p.useRef(null),x=p.useRef(null),w=p.useMemo((()=>hc(o)),[o]),C=p.useMemo((()=>function(e){let t=0;return e.forEach((e=>{Tk(e)?t+=String(e).length:t+=1})),t}(w)),[w]),S=p.useMemo((()=>t&&3===m?n(Rk(w,c),c<C):f&&4!==m&&t?n(Rk(w,f),f<C):n(w,!1)),[t,m,n,w,c,C]);en((()=>{t&&r&&i&&C&&(g(1),d([0,Math.ceil(C/2),C]))}),[t,r,i,o,C,a]),en((()=>{var e;1===m&&b((null===(e=y.current)||void 0===e?void 0:e.offsetHeight)||0)}),[m]),en((()=>{var e,t;if(v)if(1===m)((null===(e=x.current)||void 0===e?void 0:e.offsetHeight)||0)<=a*v?(g(4),s(!1)):g(2);else if(2===m)if(l!==u){const e=(null===(t=x.current)||void 0===t?void 0:t.offsetHeight)||0;let n=l,o=u;l===u-1?o=l:e<=a*v?n=c:o=c;const r=Math.ceil((n+o)/2);d([n,r,o])}else g(3),h(c),s(!0)}),[m,l,u,a,v]);const E={width:r,whiteSpace:"normal",margin:0,padding:0},k=(e,t,n)=>p.createElement("span",{"aria-hidden":!0,ref:t,style:Object.assign({position:"fixed",display:"block",left:0,top:0,zIndex:-9999,visibility:"hidden",pointerEvents:"none",fontSize:2*Math.ceil(i/2)},n)},e);return p.createElement(p.Fragment,null,S,t&&3!==m&&4!==m&&p.createElement(p.Fragment,null,k("lg",y,{wordBreak:"keep-all",whiteSpace:"nowrap"}),1===m?k(n(w,!1),x,E):((e,t)=>{const o=Rk(w,e);return k(n(o,!0),t,E)})(c,x)))},Dk=e=>{let{enabledEllipsis:t,isEllipsis:n,children:o,tooltipProps:r}=e;return(null==r?void 0:r.title)&&t?p.createElement(NS,Object.assign({open:!!n&&void 0},r),o):o};function Bk(e,t,n){return!0===e||void 0===e?t:e||n&&t}function Lk(e){return!1===e?[!1,!1]:Array.isArray(e)?e:[e]}const zk=p.forwardRef(((e,t)=>{var n,o,r;const{prefixCls:i,className:a,style:s,type:l,disabled:c,children:u,ellipsis:d,editable:f,copyable:h,component:m,title:g}=e,v=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:b,direction:y}=p.useContext(He),[x]=Ql("Text"),w=p.useRef(null),C=p.useRef(null),S=b("typography",i),E=Jl(v,["mark","code","delete","underline","strong","keyboard","italic"]),[k,$]=Pk(f),[_,O]=rl(!1,{value:$.editing}),{triggerType:j=["icon"]}=$,M=e=>{var t;e&&(null===(t=$.onStart)||void 0===t||t.call($)),O(e)};((e,t)=>{const n=p.useRef(!1);p.useEffect((()=>{n.current?e():n.current=!0}),t)})((()=>{var e;_||null===(e=C.current)||void 0===e||e.focus()}),[_]);const P=e=>{null==e||e.preventDefault(),M(!0)},[I,N]=Pk(h),[T,R]=p.useState(!1),A=p.useRef(null),D={};N.format&&(D.format=N.format);const B=()=>{A.current&&clearTimeout(A.current)},L=e=>{var t;null==e||e.preventDefault(),null==e||e.stopPropagation(),fE()(N.text||String(u)||"",D),R(!0),B(),A.current=setTimeout((()=>{R(!1)}),3e3),null===(t=N.onCopy)||void 0===t||t.call(N,e)};p.useEffect((()=>B),[]);const[z,F]=p.useState(!1),[H,V]=p.useState(!1),[W,K]=p.useState(!1),[q,U]=p.useState(!1),[G,X]=p.useState(!1),[Y,Z]=p.useState(!0),[Q,J]=Pk(d,{expandable:!1}),ee=Q&&!W,{rows:te=1}=J,ne=p.useMemo((()=>!ee||void 0!==J.suffix||J.onEllipsis||J.expandable||k||I),[ee,J,k,I]);en((()=>{Q&&!ne&&(F(mE("webkitLineClamp")),V(mE("textOverflow")))}),[ne,Q]);const oe=p.useMemo((()=>!ne&&(1===te?H:z)),[ne,H,z]),re=ee&&(oe?G:q),ie=ee&&1===te&&oe,ae=ee&&te>1&&oe,se=e=>{var t;K(!0),null===(t=J.onExpand)||void 0===t||t.call(J,e)},[le,ce]=p.useState(0),[ue,de]=p.useState(0),fe=e=>{var t;U(e),q!==e&&(null===(t=J.onEllipsis)||void 0===t||t.call(J,e))};p.useEffect((()=>{const e=w.current;if(Q&&oe&&e){const t=ae?e.offsetHeight<e.scrollHeight:e.offsetWidth<e.scrollWidth;G!==t&&X(t)}}),[Q,oe,u,ae,Y,le]),p.useEffect((()=>{const e=w.current;if("undefined"==typeof IntersectionObserver||!e||!oe||!ee)return;const t=new IntersectionObserver((()=>{Z(!!e.offsetParent)}));return t.observe(e),()=>{t.disconnect()}}),[oe,ee]);let pe={};pe=!0===J.tooltip?{title:null!==(n=$.text)&&void 0!==n?n:u}:p.isValidElement(J.tooltip)?{title:J.tooltip}:"object"==typeof J.tooltip?Object.assign({title:null!==(o=$.text)&&void 0!==o?o:u},J.tooltip):{title:J.tooltip};const he=p.useMemo((()=>{const e=e=>["string","number"].includes(typeof e);if(Q&&!oe)return e($.text)?$.text:e(u)?u:e(g)?g:e(pe.title)?pe.title:void 0}),[Q,oe,g,pe.title,re]);if(_)return p.createElement(Mk,{value:null!==(r=$.text)&&void 0!==r?r:"string"==typeof u?u:"",onSave:e=>{var t;null===(t=$.onChange)||void 0===t||t.call($,e),M(!1)},onCancel:()=>{var e;null===(e=$.onCancel)||void 0===e||e.call($),M(!1)},onEnd:$.onEnd,prefixCls:S,className:a,style:s,direction:y,component:m,maxLength:$.maxLength,autoSize:$.autoSize,enterIcon:$.enterIcon});const me=()=>{const{expandable:e,symbol:t}=J;if(!e)return null;let n;return n=t||(null==x?void 0:x.expand),p.createElement("a",{key:"expand",className:`${S}-expand`,onClick:se,"aria-label":null==x?void 0:x.expand},n)},ge=()=>{if(!k)return;const{icon:e,tooltip:t}=$,n=hc(t)[0]||(null==x?void 0:x.edit),o="string"==typeof n?n:"";return j.includes("icon")?p.createElement(NS,{key:"edit",title:!1===t?"":n},p.createElement(bE,{ref:C,className:`${S}-edit`,onClick:P,"aria-label":o},e||p.createElement(uE,{role:"button"}))):null},ve=()=>{if(!I)return null;const{tooltips:e,icon:t}=N,n=Lk(e),o=Lk(t),r=T?Bk(n[1],null==x?void 0:x.copied):Bk(n[0],null==x?void 0:x.copy),i=T?null==x?void 0:x.copied:null==x?void 0:x.copy,a="string"==typeof r?r:i;return p.createElement(NS,{key:"copy",title:r},p.createElement(bE,{className:oi()(`${S}-copy`,{[`${S}-copy-success`]:T,[`${S}-copy-icon-only`]:null==u}),onClick:L,"aria-label":a},T?Bk(o[1],p.createElement(rE,null),!0):Bk(o[0],p.createElement(sE,null),!0)))};return p.createElement(LC,{onResize:(e,t)=>{let{offsetWidth:n}=e;var o;ce(n),de(parseInt(null===(o=window.getComputedStyle)||void 0===o?void 0:o.call(window,t).fontSize,10)||0)},disabled:!ee},(n=>p.createElement(Dk,{tooltipProps:pe,enabledEllipsis:ee,isEllipsis:re},p.createElement(Nk,Object.assign({className:oi()({[`${S}-${l}`]:l,[`${S}-disabled`]:c,[`${S}-ellipsis`]:Q,[`${S}-single-line`]:ee&&1===te,[`${S}-ellipsis-single-line`]:ie,[`${S}-ellipsis-multiple-line`]:ae},a),prefixCls:i,style:Object.assign(Object.assign({},s),{WebkitLineClamp:ae?te:void 0}),component:m,ref:li(n,w,t),direction:y,onClick:j.includes("text")?P:void 0,"aria-label":null==he?void 0:he.toString(),title:g},E),p.createElement(Ak,{enabledMeasure:ee&&!oe,text:u,rows:te,width:le,fontSize:ue,onEllipsis:fe},((t,n)=>{let o=t;t.length&&n&&he&&(o=p.createElement("span",{key:"show-content","aria-hidden":!0},o));const r=function(e,t){let{mark:n,code:o,underline:r,delete:i,strong:a,keyboard:s,italic:l}=e,c=t;function u(e,t){t&&(c=p.createElement(e,{},c))}return u("strong",a),u("u",r),u("del",i),u("code",o),u("mark",n),u("kbd",s),u("i",l),c}(e,p.createElement(p.Fragment,null,o,(e=>{return[e&&p.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),J.suffix,(t=e,[t&&me(),ge(),ve()])];var t})(n)));return r}))))))})),Fk=zk;const Hk=p.forwardRef(((e,t)=>{var{ellipsis:n,rel:o}=e,r=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["ellipsis","rel"]);const i=Object.assign(Object.assign({},r),{rel:void 0===o&&"_blank"===r.target?"noopener noreferrer":o});return delete i.navigate,p.createElement(Fk,Object.assign({},i,{ref:t,ellipsis:!!n,component:"a"}))})),Vk=Hk,Wk=p.forwardRef(((e,t)=>p.createElement(Fk,Object.assign({ref:t},e,{component:"div"}))));const Kk=(e,t)=>{var{ellipsis:n}=e,o=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["ellipsis"]);const r=p.useMemo((()=>n&&"object"==typeof n?Jl(n,["expandable","rows"]):n),[n]);return p.createElement(Fk,Object.assign({ref:t},o,{ellipsis:r,component:"span"}))},qk=p.forwardRef(Kk);const Uk=[1,2,3,4,5],Gk=p.forwardRef(((e,t)=>{const{level:n=1}=e,o=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["level"]);let r;return r=Uk.includes(n)?`h${n}`:"h1",p.createElement(Fk,Object.assign({ref:t},o,{component:r}))})),Xk=Nk;Xk.Text=qk,Xk.Link=Vk,Xk.Title=Gk,Xk.Paragraph=Wk;const Yk=Xk,Zk={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"};var Qk=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:Zk}))};const Jk=p.forwardRef(Qk),e$={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"};var t$=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:e$}))};const n$=p.forwardRef(t$);const o$=e=>e?p.createElement(n$,null):p.createElement(Jk,null),r$={click:"onClick",hover:"onMouseOver"},i$=p.forwardRef(((e,t)=>{const{visibilityToggle:n=!0}=e,o="object"==typeof n&&void 0!==n.visible,[r,i]=(0,p.useState)((()=>!!o&&n.visible)),a=(0,p.useRef)(null);p.useEffect((()=>{o&&i(n.visible)}),[o,n]);const s=FE(a),l=()=>{const{disabled:t}=e;t||(r&&s(),i((e=>{var t;const o=!e;return"object"==typeof n&&(null===(t=n.onVisibleChange)||void 0===t||t.call(n,o)),o})))},{className:c,prefixCls:u,inputPrefixCls:d,size:f}=e,h=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:m}=p.useContext(He),g=m("input",d),v=m("input-password",u),b=n&&(t=>{const{action:n="click",iconRender:o=o$}=e,i=r$[n]||"",a=o(r),s={[i]:l,className:`${t}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return p.cloneElement(p.isValidElement(a)?a:p.createElement("span",null,a),s)})(v),y=oi()(v,c,{[`${v}-${f}`]:!!f}),x=Object.assign(Object.assign({},Jl(h,["suffix","iconRender","visibilityToggle"])),{type:r?"text":"password",className:y,prefixCls:g,suffix:b});return f&&(x.size=f),p.createElement(yk,Object.assign({ref:li(t,a)},x))})),a$=i$,s$={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"};var l$=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:s$}))};const c$=p.forwardRef(l$);const u$=p.forwardRef(((e,t)=>{const{prefixCls:n,inputPrefixCls:o,className:r,size:i,suffix:a,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:d,onChange:f,onCompositionStart:h,onCompositionEnd:m}=e,g=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:v,direction:b}=p.useContext(He),y=p.useRef(!1),x=v("input-search",n),w=v("input",o),{compactSize:C}=wc(x,b),S=pc((e=>{var t;return null!==(t=null!=i?i:C)&&void 0!==t?t:e})),E=p.useRef(null),k=e=>{var t;document.activeElement===(null===(t=E.current)||void 0===t?void 0:t.input)&&e.preventDefault()},$=e=>{var t,n;d&&d(null===(n=null===(t=E.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},_="boolean"==typeof s?p.createElement(c$,null):null,O=`${x}-button`;let j;const M=s||{},P=M.type&&!0===M.type.__ANT_BUTTON;j=P||"button"===M.type?rc(M,Object.assign({onMouseDown:k,onClick:e=>{var t,n;null===(n=null===(t=null==M?void 0:M.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),$(e)},key:"enterButton"},P?{className:O,size:S}:{})):p.createElement(gu,{className:O,type:s?"primary":void 0,size:S,disabled:u,key:"enterButton",onMouseDown:k,onClick:$,loading:c,icon:_},s),l&&(j=[j,rc(l,{key:"addonAfter"})]);const I=oi()(x,{[`${x}-rtl`]:"rtl"===b,[`${x}-${S}`]:!!S,[`${x}-with-button`]:!!s},r);return p.createElement(yk,Object.assign({ref:li(E,t),onPressEnter:e=>{y.current||c||$(e)}},g,{size:S,onCompositionStart:e=>{y.current=!0,null==h||h(e)},onCompositionEnd:e=>{y.current=!1,null==m||m(e)},prefixCls:w,addonAfter:j,suffix:a,onChange:e=>{e&&e.target&&"click"===e.type&&d&&d(e.target.value,e,{source:"clear"}),f&&f(e)},className:I,disabled:u}))})),d$=u$,f$=yk;f$.Group=e=>{const{getPrefixCls:t,direction:n}=(0,p.useContext)(He),{prefixCls:o,className:r}=e,i=t("input-group",o),a=t("input"),[s,l]=mk(a),c=oi()(i,{[`${i}-lg`]:"large"===e.size,[`${i}-sm`]:"small"===e.size,[`${i}-compact`]:e.compact,[`${i}-rtl`]:"rtl"===n},l,r),u=(0,p.useContext)(bf),d=(0,p.useMemo)((()=>Object.assign(Object.assign({},u),{isFormItemInput:!1})),[u]);return s(p.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},p.createElement(bf.Provider,{value:d},e.children)))},f$.Search=d$,f$.TextArea=wk,f$.Password=a$;const p$=f$,h$=e=>e?"function"==typeof e?e():e:null,m$=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:o,fontWeightStrong:r,innerPadding:i,boxShadowSecondary:a,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:c,titleMarginBottom:u,colorBgElevated:d,popoverBg:f,titleBorderBottom:p,innerContentPadding:h,titlePadding:m}=e;return[{[t]:Object.assign(Object.assign({},Ia(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":d,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:f,backgroundClip:"padding-box",borderRadius:l,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:o,marginBottom:u,color:s,fontWeight:r,borderBottom:p,padding:m},[`${t}-inner-content`]:{color:n,padding:h}})},SS(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},g$=e=>{const{componentCls:t}=e;return{[t]:Fw.map((n=>{const o=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":o,[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{background:"transparent"}}}}))}},v$=hl("Popover",(e=>{const{colorBgElevated:t,colorText:n}=e,o=Js(e,{popoverBg:t,popoverColor:n});return[m$(o),g$(o),zf(o,"zoom-big")]}),(e=>{const{lineWidth:t,controlHeight:n,fontHeight:o,padding:r,wireframe:i,zIndexPopupBase:a,borderRadiusLG:s,marginXS:l,lineType:c,colorSplit:u,paddingSM:d}=e,f=n-o,p=f/2,h=f/2-t,m=r;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},bS(e)),wS({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:l,titlePadding:i?`${p}px ${m}px ${h}px`:0,titleBorderBottom:i?`${t}px ${c} ${u}`:"none",innerContentPadding:i?`${d}px ${m}px`:0})}),{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});const b$=e=>{const{hashId:t,prefixCls:n,className:o,style:r,placement:i="top",title:a,content:s,children:l}=e;return p.createElement("div",{className:oi()(t,n,`${n}-pure`,`${n}-placement-${i}`,o),style:r},p.createElement("div",{className:`${n}-arrow`}),p.createElement(cC,Object.assign({},e,{className:t,prefixCls:n}),l||((e,t,n)=>t||n?p.createElement(p.Fragment,null,t&&p.createElement("div",{className:`${e}-title`},h$(t)),p.createElement("div",{className:`${e}-inner-content`},h$(n))):null)(n,a,s)))},y$=e=>{const{prefixCls:t,className:n}=e,o=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","className"]),{getPrefixCls:r}=p.useContext(He),i=r("popover",t),[a,s,l]=v$(i);return a(p.createElement(b$,Object.assign({},o,{prefixCls:i,hashId:s,className:oi()(n,l)})))};const x$=e=>{let{title:t,content:n,prefixCls:o}=e;return p.createElement(p.Fragment,null,t&&p.createElement("div",{className:`${o}-title`},h$(t)),p.createElement("div",{className:`${o}-inner-content`},h$(n)))},w$=p.forwardRef(((e,t)=>{const{prefixCls:n,title:o,content:r,overlayClassName:i,placement:a="top",trigger:s="hover",mouseEnterDelay:l=.1,mouseLeaveDelay:c=.1,overlayStyle:u={}}=e,d=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:f}=p.useContext(He),h=f("popover",n),[m,g,v]=v$(h),b=f(),y=oi()(i,g,v);return m(p.createElement(NS,Object.assign({placement:a,trigger:s,mouseEnterDelay:l,mouseLeaveDelay:c,overlayStyle:u},d,{prefixCls:h,overlayClassName:y,ref:t,overlay:o||r?p.createElement(x$,{prefixCls:h,title:o,content:r}):null,transitionName:Yl(b,"zoom-big",d.transitionName),"data-popover-inject":!0})))}));w$._InternalPanelDoNotUseOrYouWillBeFired=y$;const C$=w$,S$=hl("Popconfirm",(e=>(e=>{const{componentCls:t,iconCls:n,antCls:o,zIndexPopup:r,colorText:i,colorWarning:a,marginXXS:s,marginXS:l,fontSize:c,fontWeightStrong:u,colorTextHeading:d}=e;return{[t]:{zIndex:r,[`&${o}-popover`]:{fontSize:c},[`${t}-message`]:{marginBottom:l,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:a,fontSize:c,lineHeight:1,marginInlineEnd:l},[`${t}-title`]:{fontWeight:u,color:d,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:s,color:i}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:l}}}}})(e)),(e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}}),{resetStyle:!1});const E$=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:o,title:r,description:i,cancelText:a,okText:s,okType:l="primary",icon:c=p.createElement(Es,null),showCancel:u=!0,close:d,onConfirm:f,onCancel:h,onPopupClick:m}=e,{getPrefixCls:g}=p.useContext(He),[v]=Ql("Popconfirm",Ko.Popconfirm),b=h$(r),y=h$(i);return p.createElement("div",{className:`${t}-inner-content`,onClick:m},p.createElement("div",{className:`${t}-message`},c&&p.createElement("span",{className:`${t}-message-icon`},c),p.createElement("div",{className:`${t}-message-text`},b&&p.createElement("div",{className:oi()(`${t}-title`)},b),y&&p.createElement("div",{className:`${t}-description`},y))),p.createElement("div",{className:`${t}-buttons`},u&&p.createElement(gu,Object.assign({onClick:h,size:"small"},o),a||(null==v?void 0:v.cancelText)),p.createElement(bu,{buttonProps:Object.assign(Object.assign({size:"small"},_c(l)),n),actionFn:f,close:d,prefixCls:g("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s||(null==v?void 0:v.okText))))};const k$=p.forwardRef(((e,t)=>{var n,o;const{prefixCls:r,placement:i="top",trigger:a="click",okType:s="primary",icon:l=p.createElement(Es,null),children:c,overlayClassName:u,onOpenChange:d,onVisibleChange:f}=e,h=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:m}=p.useContext(He),[g,v]=rl(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(o=e.defaultOpen)&&void 0!==o?o:e.defaultVisible}),b=(e,t)=>{v(e,!0),null==f||f(e),null==d||d(e,t)},y=m("popconfirm",r),x=oi()(y,u),[w]=S$(y);return w(p.createElement(C$,Object.assign({},Jl(h,["title"]),{trigger:a,placement:i,onOpenChange:t=>{const{disabled:n=!1}=e;n||b(t)},open:g,ref:t,overlayClassName:x,content:p.createElement(E$,Object.assign({okType:s,icon:l},e,{prefixCls:y,close:e=>{b(!1,e)},onConfirm:t=>{var n;return null===(n=e.onConfirm)||void 0===n?void 0:n.call(void 0,t)},onCancel:t=>{var n;b(!1,t),null===(n=e.onCancel)||void 0===n||n.call(void 0,t)}})),"data-popover-inject":!0}),rc(c,{onKeyDown:e=>{var t,n;p.isValidElement(c)&&(null===(n=null==c?void 0:(t=c.props).onKeyDown)||void 0===n||n.call(t,e)),(e=>{e.keyCode===Is.ESC&&g&&b(!1,e)})(e)}})))}));k$._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,placement:n,className:o,style:r}=e,i=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","placement","className","style"]),{getPrefixCls:a}=p.useContext(He),s=a("popconfirm",t),[l]=S$(s);return l(p.createElement(y$,{placement:n,className:oi()(s,o),style:r,content:p.createElement(E$,Object.assign({prefixCls:s},i))}))};const $$=k$,_$={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"};var O$=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:_$}))};const j$=p.forwardRef(O$);var M$=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"],P$=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}();function I$(e){return function(t){t.root||(t=t.return)&&e(t)}}var N$=function(e,t,n){for(var o=0,r=0;o=r,r=Xn(),38===o&&12===r&&(t[n]=1),!Qn(r);)Gn();return Zn(e,Hn)},T$=new WeakMap,R$=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||T$.get(n))&&!o){T$.set(e,!0);for(var r=[],i=function(e,t){return eo(function(e,t){var n=-1,o=44;do{switch(Qn(o)){case 0:38===o&&12===Xn()&&(t[n]=1),e[n]+=N$(Hn-1,t,n);break;case 2:e[n]+=to(o);break;case 4:if(44===o){e[++n]=58===Xn()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=$n(o)}}while(o=Gn());return e}(Jn(e),t))}(t,r),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=r[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},A$=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function D$(e,t){switch(function(e,t){return 45^In(e,0)?(((t<<2^In(e,0))<<2^In(e,1))<<2^In(e,2))<<2^In(e,3):0}(e,t)){case 5103:return bn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return bn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return bn+e+vn+e+gn+e+e;case 6828:case 4268:return bn+e+gn+e+e;case 6165:return bn+e+gn+"flex-"+e+e;case 5187:return bn+e+Mn(e,/(\w+).+(:[^]+)/,bn+"box-$1$2"+gn+"flex-$1$2")+e;case 5443:return bn+e+gn+"flex-item-"+Mn(e,/flex-|-self/,"")+e;case 4675:return bn+e+gn+"flex-line-pack"+Mn(e,/align-content|flex-|-self/,"")+e;case 5548:return bn+e+gn+Mn(e,"shrink","negative")+e;case 5292:return bn+e+gn+Mn(e,"basis","preferred-size")+e;case 6060:return bn+"box-"+Mn(e,"-grow","")+bn+e+gn+Mn(e,"grow","positive")+e;case 4554:return bn+Mn(e,/([^-])(transform)/g,"$1"+bn+"$2")+e;case 6187:return Mn(Mn(Mn(e,/(zoom-|grab)/,bn+"$1"),/(image-set)/,bn+"$1"),e,"")+e;case 5495:case 3959:return Mn(e,/(image-set\([^]*)/,bn+"$1$`$1");case 4968:return Mn(Mn(e,/(.+:)(flex-)?(.*)/,bn+"box-pack:$3"+gn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+bn+e+e;case 4095:case 3583:case 4068:case 2532:return Mn(e,/(.+)-inline(.+)/,bn+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Tn(e)-1-t>6)switch(In(e,t+1)){case 109:if(45!==In(e,t+4))break;case 102:return Mn(e,/(.+:)(.+)-([^]+)/,"$1"+bn+"$2-$3$1"+vn+(108==In(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Pn(e,"stretch")?D$(Mn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==In(e,t+1))break;case 6444:switch(In(e,Tn(e)-3-(~Pn(e,"!important")&&10))){case 107:return Mn(e,":",":"+bn)+e;case 101:return Mn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+bn+(45===In(e,14)?"inline-":"")+"box$3$1"+bn+"$2$3$1"+gn+"$2box$3")+e}break;case 5936:switch(In(e,t+11)){case 114:return bn+e+gn+Mn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return bn+e+gn+Mn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return bn+e+gn+Mn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return bn+e+gn+e+e}return e}var B$=[function(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case wn:e.return=D$(e.value,e.length);break;case Sn:return Dn([qn(e,{value:Mn(e.value,"@","@"+bn)})],o);case xn:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return Dn([qn(e,{props:[Mn(t,/:(read-\w+)/,":-moz-$1")]})],o);case"::placeholder":return Dn([qn(e,{props:[Mn(t,/:(plac\w+)/,":"+bn+"input-$1")]}),qn(e,{props:[Mn(t,/:(plac\w+)/,":-moz-$1")]}),qn(e,{props:[Mn(t,/:(plac\w+)/,gn+"input-$1")]})],o)}return""}))}}],L$=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o,r,i=e.stylisPlugins||B$,a={},s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var l,c,u,d=[R$,A$],f=[Bn,I$((function(e){l.insert(e)}))],p=(c=d.concat(i,f),u=Rn(c),function(e,t,n,o){for(var r="",i=0;i<u;i++)r+=c[i](e,t,n,o)||"";return r});r=function(e,t,n,o){l=n,Dn(so(e?e+"{"+t.styles+"}":t.styles),p),o&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new P$({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:r};return h.sheet.hydrate(s),h};function z$(e,t,n){var o="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(o+=n+" ")})),o}var F$=function(e,t,n){var o=e.key+"-"+t.name;!1===n&&void 0===e.registered[o]&&(e.registered[o]=t.styles)},H$=function(e,t,n){F$(e,t,n);var o=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var r=t;do{e.insert(t===r?"."+o:"",r,e.sheet,!0),r=r.next}while(void 0!==r)}},V$={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale: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};function W$(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var K$=!1,q$=/[A-Z]|^ms/g,U$=/_EMO_([^_]+?)_([^]*?)_EMO_/g,G$=function(e){return 45===e.charCodeAt(1)},X$=function(e){return null!=e&&"boolean"!=typeof e},Y$=W$((function(e){return G$(e)?e:e.replace(q$,"-$&").toLowerCase()})),Z$=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(U$,(function(e,t,n){return e_={name:t,styles:n,next:e_},t}))}return 1===V$[e]||G$(e)||"number"!=typeof t||0===t?t:t+"px"},Q$="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function J$(e,t,n){if(null==n)return"";var o=n;if(void 0!==o.__emotion_styles)return o;switch(typeof n){case"boolean":return"";case"object":var r=n;if(1===r.anim)return e_={name:r.name,styles:r.styles,next:e_},r.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)e_={name:a.name,styles:a.styles,next:e_},a=a.next;return i.styles+";"}return function(e,t,n){var o="";if(Array.isArray(n))for(var r=0;r<n.length;r++)o+=J$(e,t,n[r])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?o+=i+"{"+t[s]+"}":X$(s)&&(o+=Y$(i)+":"+Z$(i,s)+";")}else{if("NO_COMPONENT_SELECTOR"===i&&K$)throw new Error(Q$);if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=J$(e,t,a);switch(i){case"animation":case"animationName":o+=Y$(i)+":"+l+";";break;default:o+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)X$(a[c])&&(o+=Y$(i)+":"+Z$(i,a[c])+";")}}return o}(e,t,n);case"function":if(void 0!==e){var s=e_,l=n(e);return e_=s,J$(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var e_,t_=/label:\s*([^\s;{]+)\s*(;|$)/g;function n_(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,r="";e_=void 0;var i=e[0];null==i||void 0===i.raw?(o=!1,r+=J$(n,t,i)):r+=i[0];for(var a=1;a<e.length;a++)r+=J$(n,t,e[a]),o&&(r+=i[a]);t_.lastIndex=0;for(var s,l="";null!==(s=t_.exec(r));)l+="-"+s[1];var c=function(e){for(var t,n=0,o=0,r=e.length;r>=4;++o,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(r)+l;return{name:c,styles:r,next:e_}}var o_=!!p.useInsertionEffect&&p.useInsertionEffect,r_=o_||function(e){return e()},i_=(o_||p.useLayoutEffect,p.createContext("undefined"!=typeof HTMLElement?L$({key:"css"}):null)),a_=(i_.Provider,function(e){return(0,p.forwardRef)((function(t,n){var o=(0,p.useContext)(i_);return e(t,o,n)}))}),s_=p.createContext({}),l_={}.hasOwnProperty,c_="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",u_=function(e){var t=e.cache,n=e.serialized,o=e.isStringTag;return F$(t,n,o),r_((function(){return H$(t,n,o)})),null},d_=a_((function(e,t,n){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var r=e[c_],i=[o],a="";"string"==typeof e.className?a=z$(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=n_(i,void 0,p.useContext(s_));a+=t.key+"-"+s.name;var l={};for(var c in e)l_.call(e,c)&&"css"!==c&&c!==c_&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),p.createElement(p.Fragment,null,p.createElement(u_,{cache:t,serialized:s,isStringTag:"string"==typeof r}),p.createElement(r,l))})),f_=(n(146),function(e,t){var n=arguments;if(null==t||!l_.call(t,"css"))return p.createElement.apply(void 0,n);var o=n.length,r=new Array(o);r[0]=d_,r[1]=function(e,t){var n={};for(var o in t)l_.call(t,o)&&(n[o]=t[o]);return n[c_]=e,n}(e,t);for(var i=2;i<o;i++)r[i]=n[i];return p.createElement.apply(null,r)});function p_(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return n_(t)}const h_=Math.min,m_=Math.max,g_=Math.round,v_=Math.floor,b_=e=>({x:e,y:e});function y_(e){return C_(e)?(e.nodeName||"").toLowerCase():"#document"}function x_(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function w_(e){var t;return null==(t=(C_(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function C_(e){return e instanceof Node||e instanceof x_(e).Node}function S_(e){return e instanceof Element||e instanceof x_(e).Element}function E_(e){return e instanceof HTMLElement||e instanceof x_(e).HTMLElement}function k_(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof x_(e).ShadowRoot)}function $_(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=O_(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function O_(e){return x_(e).getComputedStyle(e)}function j_(e){const t=function(e){if("html"===y_(e))return e;const t=e.assignedSlot||e.parentNode||k_(e)&&e.host||w_(e);return k_(t)?t.host:t}(e);return function(e){return["html","body","#document"].includes(y_(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:E_(t)&&$_(t)?t:j_(t)}function M_(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=j_(e),i=r===(null==(o=e.ownerDocument)?void 0:o.body),a=x_(r);return i?t.concat(a,a.visualViewport||[],$_(r)?r:[],a.frameElement&&n?M_(a.frameElement):[]):t.concat(r,M_(r,[],n))}function P_(e){return S_(e)?e:e.contextElement}function I_(e){const t=P_(e);if(!E_(t))return b_(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=function(e){const t=O_(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=E_(e),i=r?e.offsetWidth:n,a=r?e.offsetHeight:o,s=g_(n)!==i||g_(o)!==a;return s&&(n=i,o=a),{width:n,height:o,$:s}}(t);let a=(i?g_(n.width):n.width)/o,s=(i?g_(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const N_=b_(0);function T_(e){const t=x_(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:N_}function R_(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),i=P_(e);let a=b_(1);t&&(o?S_(o)&&(a=I_(o)):a=I_(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==x_(e))&&t}(i,n,o)?T_(i):b_(0);let l=(r.left+s.x)/a.x,c=(r.top+s.y)/a.y,u=r.width/a.x,d=r.height/a.y;if(i){const e=x_(i),t=o&&S_(o)?x_(o):o;let n=e,r=n.frameElement;for(;r&&o&&t!==n;){const e=I_(r),t=r.getBoundingClientRect(),o=O_(r),i=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,a=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=a,n=x_(r),r=n.frameElement}}return f={width:u,height:d,x:l,y:c},{...f,top:f.y,left:f.x,right:f.x+f.width,bottom:f.y+f.height};var f}const A_=p.useLayoutEffect;var D_=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],B_=function(){};function L_(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function z_(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];var i=[].concat(o);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(L_(e,a)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var F_=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===ye(e)&&null!==e?[e]:[];var t},H_=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,$e({},di(e,D_))},V_=function(e,t,n){var o=e.cx,r=e.getStyles,i=e.getClassNames,a=e.className;return{css:r(t,e),className:o(null!=n?n:{},i(t,e),a)}};function W_(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function K_(e){return W_(e)?window.pageYOffset:e.scrollTop}function q_(e,t){W_(e)?window.scrollTo(0,t):e.scrollTop=t}function U_(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:B_,r=K_(e),i=t-r,a=0;!function t(){var s,l=i*((s=(s=a+=10)/n-1)*s*s+1)+r;q_(e,l),a<n?window.requestAnimationFrame(t):o(e)}()}function G_(e,t){var n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),r=t.offsetHeight/3;o.bottom+r>n.bottom?q_(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+r,e.scrollHeight)):o.top-r<n.top&&q_(e,Math.max(t.offsetTop-r,0))}function X_(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var Y_=!1,Z_={get passive(){return Y_=!0}},Q_="undefined"!=typeof window?window:{};Q_.addEventListener&&Q_.removeEventListener&&(Q_.addEventListener("p",B_,Z_),Q_.removeEventListener("p",B_,!1));var J_=Y_;function eO(e){return null!=e}function tO(e,t,n){return e?t:n}var nO=["children","innerProps"],oO=["children","innerProps"];var rO,iO,aO,sO=function(e){return"auto"===e?"bottom":e},lO=(0,p.createContext)(null),cO=function(e){var t=e.children,n=e.minMenuHeight,o=e.maxMenuHeight,r=e.menuPlacement,i=e.menuPosition,a=e.menuShouldScrollIntoView,s=e.theme,l=((0,p.useContext)(lO)||{}).setPortalPlacement,c=(0,p.useRef)(null),u=Ge((0,p.useState)(o),2),d=u[0],f=u[1],h=Ge((0,p.useState)(null),2),m=h[0],g=h[1],v=s.spacing.controlHeight;return A_((function(){var e=c.current;if(e){var t="fixed"===i,s=function(e){var t=e.maxHeight,n=e.menuEl,o=e.minHeight,r=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,o=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var r=e;r=r.parentElement;)if(t=getComputedStyle(r),(!n||"static"!==t.position)&&o.test(t.overflow+t.overflowY+t.overflowX))return r;return document.documentElement}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u,d=l.getBoundingClientRect().height,f=n.getBoundingClientRect(),p=f.bottom,h=f.height,m=f.top,g=n.offsetParent.getBoundingClientRect().top,v=a||W_(u=l)?window.innerHeight:u.clientHeight,b=K_(l),y=parseInt(getComputedStyle(n).marginBottom,10),x=parseInt(getComputedStyle(n).marginTop,10),w=g-x,C=v-m,S=w+b,E=d-b-m,k=p-v+b+y,$=b+m-x,_=160;switch(r){case"auto":case"bottom":if(C>=h)return{placement:"bottom",maxHeight:t};if(E>=h&&!a)return i&&U_(l,k,_),{placement:"bottom",maxHeight:t};if(!a&&E>=o||a&&C>=o)return i&&U_(l,k,_),{placement:"bottom",maxHeight:a?C-y:E-y};if("auto"===r||a){var O=t,j=a?w:S;return j>=o&&(O=Math.min(j-y-s,t)),{placement:"top",maxHeight:O}}if("bottom"===r)return i&&q_(l,k),{placement:"bottom",maxHeight:t};break;case"top":if(w>=h)return{placement:"top",maxHeight:t};if(S>=h&&!a)return i&&U_(l,$,_),{placement:"top",maxHeight:t};if(!a&&S>=o||a&&w>=o){var M=t;return(!a&&S>=o||a&&w>=o)&&(M=a?w-x:S-x),i&&U_(l,$,_),{placement:"top",maxHeight:M}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return c}({maxHeight:o,menuEl:e,minHeight:n,placement:r,shouldScroll:a&&!t,isFixedPosition:t,controlHeight:v});f(s.maxHeight),g(s.placement),null==l||l(s.placement)}}),[o,r,i,a,n,l,v]),t({ref:c,placerProps:$e($e({},e),{},{placement:m||sO(r),maxHeight:d})})},uO=function(e,t){var n=e.theme,o=n.spacing.baseUnit,r=n.colors;return $e({textAlign:"center"},t?{}:{color:r.neutral40,padding:"".concat(2*o,"px ").concat(3*o,"px")})},dO=uO,fO=uO,pO=["size"],hO=["innerProps","isRtl","size"],mO={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},gO=function(e){var t=e.size,n=di(e,pO);return f_("svg",hn({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:mO},n))},vO=function(e){return f_(gO,hn({size:20},e),f_("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},bO=function(e){return f_(gO,hn({size:20},e),f_("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},yO=function(e,t){var n=e.isFocused,o=e.theme,r=o.spacing.baseUnit,i=o.colors;return $e({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*r,":hover":{color:n?i.neutral80:i.neutral40}})},xO=yO,wO=yO,CO=function(){var e=p_.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(rO||(iO=["\n  0%, 80%, 100% { opacity: 0; }\n  40% { opacity: 1; }\n"],aO||(aO=iO.slice(0)),rO=Object.freeze(Object.defineProperties(iO,{raw:{value:Object.freeze(aO)}})))),SO=function(e){var t=e.delay,n=e.offset;return f_("span",{css:p_({animation:"".concat(CO," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},EO=["data"],kO=["innerRef","isDisabled","isHidden","inputClassName"],$O={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},_O={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":$e({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},$O)},OO=function(e){return $e({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},$O)},jO=function(e){var t=e.children,n=e.innerProps;return f_("div",n,t)},MO={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return f_("div",hn({},V_(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||f_(vO,null))},Control:function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,r=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return f_("div",hn({ref:r},V_(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":o,"control--menu-is-open":a}),i,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return f_("div",hn({},V_(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||f_(bO,null))},DownChevron:bO,CrossIcon:vO,Group:function(e){var t=e.children,n=e.cx,o=e.getStyles,r=e.getClassNames,i=e.Heading,a=e.headingProps,s=e.innerProps,l=e.label,c=e.theme,u=e.selectProps;return f_("div",hn({},V_(e,"group",{group:!0}),s),f_(i,hn({},a,{selectProps:u,theme:c,getStyles:o,getClassNames:r,cx:n}),l),f_("div",null,t))},GroupHeading:function(e){var t=H_(e);t.data;var n=di(t,EO);return f_("div",hn({},V_(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return f_("div",hn({},V_(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return f_("span",hn({},t,V_(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,o=H_(e),r=o.innerRef,i=o.isDisabled,a=o.isHidden,s=o.inputClassName,l=di(o,kO);return f_("div",hn({},V_(e,"input",{"input-container":!0}),{"data-value":n||""}),f_("input",hn({className:t({input:!0},s),ref:r,style:OO(a),disabled:i},l)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,o=e.size,r=void 0===o?4:o,i=di(e,hO);return f_("div",hn({},V_($e($e({},i),{},{innerProps:t,isRtl:n,size:r}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),f_(SO,{delay:0,offset:n}),f_(SO,{delay:160,offset:!0}),f_(SO,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,o=e.innerProps;return f_("div",hn({},V_(e,"menu",{menu:!0}),{ref:n},o),t)},MenuList:function(e){var t=e.children,n=e.innerProps,o=e.innerRef,r=e.isMulti;return f_("div",hn({},V_(e,"menuList",{"menu-list":!0,"menu-list--is-multi":r}),{ref:o},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,o=e.controlElement,r=e.innerProps,i=e.menuPlacement,a=e.menuPosition,s=(0,p.useRef)(null),l=(0,p.useRef)(null),c=Ge((0,p.useState)(sO(i)),2),u=c[0],d=c[1],f=(0,p.useMemo)((function(){return{setPortalPlacement:d}}),[]),h=Ge((0,p.useState)(null),2),m=h[0],g=h[1],v=(0,p.useCallback)((function(){if(o){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(o),t="fixed"===a?0:window.pageYOffset,n=e[u]+t;n===(null==m?void 0:m.offset)&&e.left===(null==m?void 0:m.rect.left)&&e.width===(null==m?void 0:m.rect.width)||g({offset:n,rect:e})}}),[o,a,u,null==m?void 0:m.offset,null==m?void 0:m.rect.left,null==m?void 0:m.rect.width]);A_((function(){v()}),[v]);var b=(0,p.useCallback)((function(){"function"==typeof l.current&&(l.current(),l.current=null),o&&s.current&&(l.current=function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=o,c=P_(e),u=r||i?[...c?M_(c):[],...M_(t)]:[];u.forEach((e=>{r&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,o=null;const r=w_(e);function i(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const{left:c,top:u,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const p={rootMargin:-v_(u)+"px "+-v_(r.clientWidth-(c+d))+"px "+-v_(r.clientHeight-(u+f))+"px "+-v_(c)+"px",threshold:m_(0,h_(1,l))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==l){if(!h)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}h=!1}try{o=new IntersectionObserver(m,{...p,root:r.ownerDocument})}catch(e){o=new IntersectionObserver(m,p)}o.observe(e)}(!0),i}(c,n):null;let f,p=-1,h=null;a&&(h=new ResizeObserver((e=>{let[o]=e;o&&o.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),c&&!l&&h.observe(c),h.observe(t));let m=l?R_(e):null;return l&&function t(){const o=R_(e);!m||o.x===m.x&&o.y===m.y&&o.width===m.width&&o.height===m.height||n(),m=o,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{r&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(f)}}(o,s.current,v,{elementResize:"ResizeObserver"in window}))}),[o,v]);A_((function(){b()}),[b]);var y=(0,p.useCallback)((function(e){s.current=e,b()}),[b]);if(!t&&"fixed"!==a||!m)return null;var x=f_("div",hn({ref:y},V_($e($e({},e),{},{offset:m.offset,position:a,rect:m.rect}),"menuPortal",{"menu-portal":!0}),r),n);return f_(lO.Provider,{value:f},t?(0,pe.createPortal)(x,t):x)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,o=e.innerProps,r=di(e,oO);return f_("div",hn({},V_($e($e({},r),{},{children:n,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,o=e.innerProps,r=di(e,nO);return f_("div",hn({},V_($e($e({},r),{},{children:n,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),n)},MultiValue:function(e){var t=e.children,n=e.components,o=e.data,r=e.innerProps,i=e.isDisabled,a=e.removeProps,s=e.selectProps,l=n.Container,c=n.Label,u=n.Remove;return f_(l,{data:o,innerProps:$e($e({},V_(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),r),selectProps:s},f_(c,{data:o,innerProps:$e({},V_(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),f_(u,{data:o,innerProps:$e($e({},V_(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},MultiValueContainer:jO,MultiValueLabel:jO,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return f_("div",hn({role:"button"},n),t||f_(vO,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,r=e.isSelected,i=e.innerRef,a=e.innerProps;return f_("div",hn({},V_(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":o,"option--is-selected":r}),{ref:i,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return f_("div",hn({},V_(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,o=e.isDisabled,r=e.isRtl;return f_("div",hn({},V_(e,"container",{"--is-disabled":o,"--is-rtl":r}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,o=e.innerProps;return f_("div",hn({},V_(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),o),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,o=e.isMulti,r=e.hasValue;return f_("div",hn({},V_(e,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":r}),n),t)}},PO=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function IO(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((o=e[n])===(r=t[n])||PO(o)&&PO(r)))return!1;var o,r;return!0}for(var NO={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},TO=function(e){return f_("span",hn({css:NO},e))},RO={guidance:function(e){var t=e.isSearchable,n=e.isMulti,o=e.tabSelectsValue,r=e.context,i=e.isInitialFocus;switch(r){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,o=void 0===n?"":n,r=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(r.length>1?"s":""," ").concat(r.join(","),", selected.");case"select-option":return"option ".concat(o,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,o=e.options,r=e.label,i=void 0===r?"":r,a=e.selectValue,s=e.isDisabled,l=e.isSelected,c=e.isAppleDevice,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(u(a,n),".");if("menu"===t&&c){var d=s?" disabled":"",f="".concat(l?" selected":"").concat(d);return"".concat(i).concat(f,", ").concat(u(o,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},AO=function(e){var t=e.ariaSelection,n=e.focusedOption,o=e.focusedValue,r=e.focusableOptions,i=e.isFocused,a=e.selectValue,s=e.selectProps,l=e.id,c=e.isAppleDevice,u=s.ariaLiveMessages,d=s.getOptionLabel,f=s.inputValue,h=s.isMulti,m=s.isOptionDisabled,g=s.isSearchable,v=s.menuIsOpen,b=s.options,y=s.screenReaderStatus,x=s.tabSelectsValue,w=s.isLoading,C=s["aria-label"],S=s["aria-live"],E=(0,p.useMemo)((function(){return $e($e({},RO),u||{})}),[u]),k=(0,p.useMemo)((function(){var e,n="";if(t&&E.onChange){var o=t.option,r=t.options,i=t.removedValue,s=t.removedValues,l=t.value,c=i||o||(e=l,Array.isArray(e)?null:e),u=c?d(c):"",f=r||s||void 0,p=f?f.map(d):[],h=$e({isDisabled:c&&m(c,a),label:u,labels:p},t);n=E.onChange(h)}return n}),[t,E,m,a,d]),$=(0,p.useMemo)((function(){var e="",t=n||o,i=!!(n&&a&&a.includes(n));if(t&&E.onFocus){var s={focused:t,label:d(t),isDisabled:m(t,a),isSelected:i,options:r,context:t===n?"menu":"value",selectValue:a,isAppleDevice:c};e=E.onFocus(s)}return e}),[n,o,d,m,E,r,a,c]),_=(0,p.useMemo)((function(){var e="";if(v&&b.length&&!w&&E.onFilter){var t=y({count:r.length});e=E.onFilter({inputValue:f,resultsMessage:t})}return e}),[r,f,v,E,b,y,w]),O="initial-input-focus"===(null==t?void 0:t.action),j=(0,p.useMemo)((function(){var e="";if(E.guidance){var t=o?"value":v?"menu":"input";e=E.guidance({"aria-label":C,context:t,isDisabled:n&&m(n,a),isMulti:h,isSearchable:g,tabSelectsValue:x,isInitialFocus:O})}return e}),[C,n,o,h,m,g,v,E,a,x,O]),M=f_(p.Fragment,null,f_("span",{id:"aria-selection"},k),f_("span",{id:"aria-focused"},$),f_("span",{id:"aria-results"},_),f_("span",{id:"aria-guidance"},j));return f_(p.Fragment,null,f_(TO,{id:l},O&&M),f_(TO,{"aria-live":S,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!O&&M))},DO=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],BO=new RegExp("["+DO.map((function(e){return e.letters})).join("")+"]","g"),LO={},zO=0;zO<DO.length;zO++)for(var FO=DO[zO],HO=0;HO<FO.letters.length;HO++)LO[FO.letters[HO]]=FO.base;var VO=function(e){return e.replace(BO,(function(e){return LO[e]}))},WO=function(e,t){void 0===t&&(t=IO);var n=null;function o(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var i=e.apply(this,o);return n={lastResult:i,lastArgs:o,lastThis:this},i}return o.clear=function(){n=null},o}(VO),KO=function(e){return e.replace(/^\s+|\s+$/g,"")},qO=function(e){return"".concat(e.label," ").concat(e.value)},UO=["innerRef"];function GO(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r=Object.entries(e).filter((function(e){var t=Ge(e,1)[0];return!n.includes(t)}));return r.reduce((function(e,t){var n=Ge(t,2),o=n[0],r=n[1];return e[o]=r,e}),{})}(di(e,UO),"onExited","in","enter","exit","appear");return f_("input",hn({ref:t},n,{css:p_({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var XO=["boxSizing","height","overflow","paddingRight","position"],YO={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function ZO(e){e.preventDefault()}function QO(e){e.stopPropagation()}function JO(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function ej(){return"ontouchstart"in window||navigator.maxTouchPoints}var tj=!("undefined"==typeof window||!window.document||!window.document.createElement),nj=0,oj={capture:!1,passive:!1},rj=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},ij={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function aj(e){var t=e.children,n=e.lockEnabled,o=e.captureEnabled,r=function(e){var t=e.isEnabled,n=e.onBottomArrive,o=e.onBottomLeave,r=e.onTopArrive,i=e.onTopLeave,a=(0,p.useRef)(!1),s=(0,p.useRef)(!1),l=(0,p.useRef)(0),c=(0,p.useRef)(null),u=(0,p.useCallback)((function(e,t){if(null!==c.current){var l=c.current,u=l.scrollTop,d=l.scrollHeight,f=l.clientHeight,p=c.current,h=t>0,m=d-f-u,g=!1;m>t&&a.current&&(o&&o(e),a.current=!1),h&&s.current&&(i&&i(e),s.current=!1),h&&t>m?(n&&!a.current&&n(e),p.scrollTop=d,g=!0,a.current=!0):!h&&-t>u&&(r&&!s.current&&r(e),p.scrollTop=0,g=!0,s.current=!0),g&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[n,o,r,i]),d=(0,p.useCallback)((function(e){u(e,e.deltaY)}),[u]),f=(0,p.useCallback)((function(e){l.current=e.changedTouches[0].clientY}),[]),h=(0,p.useCallback)((function(e){var t=l.current-e.changedTouches[0].clientY;u(e,t)}),[u]),m=(0,p.useCallback)((function(e){if(e){var t=!!J_&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",h,t)}}),[h,f,d]),g=(0,p.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",h,!1))}),[h,f,d]);return(0,p.useEffect)((function(){if(t){var e=c.current;return m(e),function(){g(e)}}}),[t,m,g]),function(e){c.current=e}}({isEnabled:void 0===o||o,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,o=void 0===n||n,r=(0,p.useRef)({}),i=(0,p.useRef)(null),a=(0,p.useCallback)((function(e){if(tj){var t=document.body,n=t&&t.style;if(o&&XO.forEach((function(e){var t=n&&n[e];r.current[e]=t})),o&&nj<1){var i=parseInt(r.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+i||0;Object.keys(YO).forEach((function(e){var t=YO[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&ej()&&(t.addEventListener("touchmove",ZO,oj),e&&(e.addEventListener("touchstart",JO,oj),e.addEventListener("touchmove",QO,oj))),nj+=1}}),[o]),s=(0,p.useCallback)((function(e){if(tj){var t=document.body,n=t&&t.style;nj=Math.max(nj-1,0),o&&nj<1&&XO.forEach((function(e){var t=r.current[e];n&&(n[e]=t)})),t&&ej()&&(t.removeEventListener("touchmove",ZO,oj),e&&(e.removeEventListener("touchstart",JO,oj),e.removeEventListener("touchmove",QO,oj)))}}),[o]);return(0,p.useEffect)((function(){if(t){var e=i.current;return a(e),function(){s(e)}}}),[t,a,s]),function(e){i.current=e}}({isEnabled:n});return f_(p.Fragment,null,n&&f_("div",{onClick:rj,css:ij}),t((function(e){r(e),i(e)})))}var sj={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},lj=function(e){var t=e.name,n=e.onFocus;return f_("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:sj,value:"",onChange:function(){}})};function cj(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function uj(){return cj(/^Mac/i)}var dj={clearIndicator:wO,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,o=e.isFocused,r=e.theme,i=r.colors,a=r.borderRadius;return $e({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:r.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:o?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:o?i.primary:i.neutral30}})},dropdownIndicator:xO,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,o=n.colors,r=n.spacing;return $e({label:"group",cursor:"default",display:"block"},t?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*r.baseUnit,paddingRight:3*r.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,o=e.theme,r=o.spacing.baseUnit,i=o.colors;return $e({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*r,marginTop:2*r})},input:function(e,t){var n=e.isDisabled,o=e.value,r=e.theme,i=r.spacing,a=r.colors;return $e($e({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},_O),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,o=e.size,r=e.theme,i=r.colors,a=r.spacing.baseUnit;return $e({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a})},loadingMessage:fO,menu:function(e,t){var n,o=e.placement,r=e.theme,i=r.borderRadius,a=r.spacing,s=r.colors;return $e((Ee(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(o),"100%"),Ee(n,"position","absolute"),Ee(n,"width","100%"),Ee(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,o=e.theme.spacing.baseUnit;return $e({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:o,paddingTop:o})},menuPortal:function(e){var t=e.rect,n=e.offset,o=e.position;return{left:t.left,position:o,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,o=n.spacing,r=n.borderRadius,i=n.colors;return $e({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:r/2,margin:o.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,o=n.borderRadius,r=n.colors,i=e.cropWithEllipsis;return $e({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:o/2,color:r.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,o=n.spacing,r=n.borderRadius,i=n.colors,a=e.isFocused;return $e({alignItems:"center",display:"flex"},t?{}:{borderRadius:r/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:dO,option:function(e,t){var n=e.isDisabled,o=e.isFocused,r=e.isSelected,i=e.theme,a=i.spacing,s=i.colors;return $e({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:r?s.primary:o?s.primary25:"transparent",color:n?s.neutral20:r?s.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:r?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,o=n.spacing,r=n.colors;return $e({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:r.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,o=e.theme,r=o.spacing,i=o.colors;return $e({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,o=e.isMulti,r=e.hasValue,i=e.selectProps.controlShouldRenderValue;return $e({alignItems:"center",display:o&&r&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},fj={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},pj={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:X_(),captureMenuScroll:!X_(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=$e({ignoreCase:!0,ignoreAccents:!0,stringify:qO,trim:!0,matchFrom:"any"},void 0),o=n.ignoreCase,r=n.ignoreAccents,i=n.stringify,a=n.trim,s=n.matchFrom,l=a?KO(t):t,c=a?KO(i(e)):i(e);return o&&(l=l.toLowerCase(),c=c.toLowerCase()),r&&(l=WO(l),c=VO(c)),"start"===s?c.substr(0,l.length)===l:c.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function hj(e,t,n,o){return{type:"option",data:t,isDisabled:Cj(e,t,n),isSelected:Sj(e,t,n),label:xj(e,t),value:wj(e,t),index:o}}function mj(e,t){return e.options.map((function(n,o){if("options"in n){var r=n.options.map((function(n,o){return hj(e,n,t,o)})).filter((function(t){return bj(e,t)}));return r.length>0?{type:"group",data:n,options:r,index:o}:void 0}var i=hj(e,n,t,o);return bj(e,i)?i:void 0})).filter(eO)}function gj(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,Ye(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function vj(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,Ye(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function bj(e,t){var n=e.inputValue,o=void 0===n?"":n,r=t.data,i=t.isSelected,a=t.label,s=t.value;return(!kj(e)||!i)&&Ej(e,{label:a,value:s,data:r},o)}var yj=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},xj=function(e,t){return e.getOptionLabel(t)},wj=function(e,t){return e.getOptionValue(t)};function Cj(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Sj(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var o=wj(e,t);return n.some((function(t){return wj(e,t)===o}))}function Ej(e,t,n){return!e.filterOption||e.filterOption(t,n)}var kj=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},$j=1,_j=function(e){gi(n,e);var t=wi(n);function n(e){var o;if(xt(this,n),(o=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.isAppleDevice=uj()||cj(/^iPhone/i)||cj(/^iPad/i)||uj()&&navigator.maxTouchPoints>1,o.controlRef=null,o.getControlRef=function(e){o.controlRef=e},o.focusedOptionRef=null,o.getFocusedOptionRef=function(e){o.focusedOptionRef=e},o.menuListRef=null,o.getMenuListRef=function(e){o.menuListRef=e},o.inputRef=null,o.getInputRef=function(e){o.inputRef=e},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(e,t){var n=o.props,r=n.onChange,i=n.name;t.name=i,o.ariaOnChange(e,t),r(e,t)},o.setValue=function(e,t,n){var r=o.props,i=r.closeMenuOnSelect,a=r.isMulti,s=r.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(o.setState({inputIsHiddenAfterUpdate:!a}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(e,{action:t,option:n})},o.selectOption=function(e){var t=o.props,n=t.blurInputOnSelect,r=t.isMulti,i=t.name,a=o.state.selectValue,s=r&&o.isOptionSelected(e,a),l=o.isOptionDisabled(e,a);if(s){var c=o.getOptionValue(e);o.setValue(a.filter((function(e){return o.getOptionValue(e)!==c})),"deselect-option",e)}else{if(l)return void o.ariaOnChange(e,{action:"select-option",option:e,name:i});r?o.setValue([].concat(Ye(a),[e]),"select-option",e):o.setValue(e,"select-option")}n&&o.blurInput()},o.removeValue=function(e){var t=o.props.isMulti,n=o.state.selectValue,r=o.getOptionValue(e),i=n.filter((function(e){return o.getOptionValue(e)!==r})),a=tO(t,i,i[0]||null);o.onChange(a,{action:"remove-value",removedValue:e}),o.focusInput()},o.clearValue=function(){var e=o.state.selectValue;o.onChange(tO(o.props.isMulti,[],null),{action:"clear",removedValues:e})},o.popValue=function(){var e=o.props.isMulti,t=o.state.selectValue,n=t[t.length-1],r=t.slice(0,t.length-1),i=tO(e,r,r[0]||null);o.onChange(i,{action:"pop-value",removedValue:n})},o.getFocusedOptionId=function(e){return yj(o.state.focusableOptionsWithIds,e)},o.getFocusableOptionsWithIds=function(){return vj(mj(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return z_.apply(void 0,[o.props.classNamePrefix].concat(t))},o.getOptionLabel=function(e){return xj(o.props,e)},o.getOptionValue=function(e){return wj(o.props,e)},o.getStyles=function(e,t){var n=o.props.unstyled,r=dj[e](t,n);r.boxSizing="border-box";var i=o.props.styles[e];return i?i(r,t):r},o.getClassNames=function(e,t){var n,r;return null===(n=(r=o.props.classNames)[e])||void 0===n?void 0:n.call(r,t)},o.getElementId=function(e){return"".concat(o.state.instancePrefix,"-").concat(e)},o.getComponents=function(){return e=o.props,$e($e({},MO),e.components);var e},o.buildCategorizedOptions=function(){return mj(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return gj(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(e,t){o.setState({ariaSelection:$e({value:e},t)})},o.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(e){o.blockOptionHover=!1},o.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&o.onMenuClose():t&&o.openMenu("first"):(t&&(o.openAfterFocus=!0),o.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},o.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||o.props.isDisabled)){var t=o.props,n=t.isMulti,r=t.menuIsOpen;o.focusInput(),r?(o.setState({inputIsHiddenAfterUpdate:!n}),o.onMenuClose()):o.openMenu("first"),e.preventDefault()}},o.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(o.clearValue(),e.preventDefault(),o.openAfterFocus=!1,"touchend"===e.type?o.focusInput():setTimeout((function(){return o.focusInput()})))},o.onScroll=function(e){"boolean"==typeof o.props.closeMenuOnScroll?e.target instanceof HTMLElement&&W_(e.target)&&o.props.onMenuClose():"function"==typeof o.props.closeMenuOnScroll&&o.props.closeMenuOnScroll(e)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(o.initialTouchX=n.clientX,o.initialTouchY=n.clientY,o.userIsDragging=!1)},o.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var r=Math.abs(n.clientX-o.initialTouchX),i=Math.abs(n.clientY-o.initialTouchY);o.userIsDragging=r>5||i>5}},o.onTouchEnd=function(e){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(e.target)&&o.menuListRef&&!o.menuListRef.contains(e.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(e){o.userIsDragging||o.onControlMouseDown(e)},o.onClearIndicatorTouchEnd=function(e){o.userIsDragging||o.onClearIndicatorMouseDown(e)},o.onDropdownIndicatorTouchEnd=function(e){o.userIsDragging||o.onDropdownIndicatorMouseDown(e)},o.handleInputChange=function(e){var t=o.props.inputValue,n=e.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(n,{action:"input-change",prevInputValue:t}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(e){o.props.onFocus&&o.props.onFocus(e),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(e){var t=o.props.inputValue;o.menuListRef&&o.menuListRef.contains(document.activeElement)?o.inputRef.focus():(o.props.onBlur&&o.props.onBlur(e),o.onInputChange("",{action:"input-blur",prevInputValue:t}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1}))},o.onOptionHover=function(e){if(!o.blockOptionHover&&o.state.focusedOption!==e){var t=o.getFocusableOptions().indexOf(e);o.setState({focusedOption:e,focusedOptionId:t>-1?o.getFocusedOptionId(e):null})}},o.shouldHideSelectedOptions=function(){return kj(o.props)},o.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),o.focus()},o.onKeyDown=function(e){var t=o.props,n=t.isMulti,r=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,l=t.isDisabled,c=t.menuIsOpen,u=t.onKeyDown,d=t.tabSelectsValue,f=t.openMenuOnFocus,p=o.state,h=p.focusedOption,m=p.focusedValue,g=p.selectValue;if(!(l||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(o.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;o.focusValue("previous");break;case"ArrowRight":if(!n||a)return;o.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)o.removeValue(m);else{if(!r)return;n?o.popValue():s&&o.clearValue()}break;case"Tab":if(o.isComposing)return;if(e.shiftKey||!c||!d||!h||f&&o.isOptionSelected(h,g))return;o.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(c){if(!h)return;if(o.isComposing)return;o.selectOption(h);break}return;case"Escape":c?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:a}),o.onMenuClose()):s&&i&&o.clearValue();break;case" ":if(a)return;if(!c){o.openMenu("first");break}if(!h)return;o.selectOption(h);break;case"ArrowUp":c?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":c?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!c)return;o.focusOption("pageup");break;case"PageDown":if(!c)return;o.focusOption("pagedown");break;case"Home":if(!c)return;o.focusOption("first");break;case"End":if(!c)return;o.focusOption("last");break;default:return}e.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++$j),o.state.selectValue=F_(e.value),e.menuIsOpen&&o.state.selectValue.length){var r=o.getFocusableOptionsWithIds(),i=o.buildFocusableOptions(),a=i.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=r,o.state.focusedOption=i[a],o.state.focusedOptionId=yj(r,i[a])}return o}return Ct(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&G_(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,o=t.menuIsOpen,r=this.state.isFocused;(r&&!n&&e.isDisabled||r&&o&&!e.menuIsOpen)&&this.focusInput(),r&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):r||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(G_(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,o=n.selectValue,r=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(o[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(r&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a],focusedOptionId:this.getFocusedOptionId(i[a])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,o=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var r=n.indexOf(o);o||(r=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===r?0:-1===r?i:r-1;break;case"next":r>-1&&r<i&&(a=r+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,o=this.getFocusableOptions();if(o.length){var r=0,i=o.indexOf(n);n||(i=-1),"up"===e?r=i>0?i-1:o.length-1:"down"===e?r=(i+1)%o.length:"pageup"===e?(r=i-t)<0&&(r=0):"pagedown"===e?(r=i+t)>o.length-1&&(r=o.length-1):"last"===e&&(r=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[r],focusedValue:null,focusedOptionId:this.getFocusedOptionId(o[r])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(fj):$e($e({},fj),this.props.theme):fj}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,o=this.getClassNames,r=this.getValue,i=this.selectOption,a=this.setValue,s=this.props,l=s.isMulti,c=s.isRtl,u=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:o,getValue:r,hasValue:this.hasValue(),isMulti:l,isRtl:c,options:u,selectOption:i,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return Cj(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Sj(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Ej(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,o=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:o})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,o=e.inputId,r=e.inputValue,i=e.tabIndex,a=e.form,s=e.menuIsOpen,l=e.required,c=this.getComponents().Input,u=this.state,d=u.inputIsHidden,f=u.ariaSelection,h=this.commonProps,m=o||this.getElementId("input"),g=$e($e($e({"aria-autocomplete":"list","aria-expanded":s,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":l,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},s&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?p.createElement(c,hn({},h,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:t,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:a,type:"text",value:r},g)):p.createElement(GO,hn({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:B_,onFocus:this.onInputFocus,disabled:t,tabIndex:i,inputMode:"none",form:a,value:""},g))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,o=t.MultiValueContainer,r=t.MultiValueLabel,i=t.MultiValueRemove,a=t.SingleValue,s=t.Placeholder,l=this.commonProps,c=this.props,u=c.controlShouldRenderValue,d=c.isDisabled,f=c.isMulti,h=c.inputValue,m=c.placeholder,g=this.state,v=g.selectValue,b=g.focusedValue,y=g.isFocused;if(!this.hasValue()||!u)return h?null:p.createElement(s,hn({},l,{key:"placeholder",isDisabled:d,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),m);if(f)return v.map((function(t,a){var s=t===b,c="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return p.createElement(n,hn({},l,{components:{Container:o,Label:r,Remove:i},isFocused:s,isDisabled:d,key:c,index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(h)return null;var x=v[0];return p.createElement(a,hn({},l,{data:x,isDisabled:d}),this.formatOptionLabel(x,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,r=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||o||!this.hasValue()||r)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return p.createElement(e,hn({},t,{innerProps:a,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,r=n.isLoading,i=this.state.isFocused;return e&&r?p.createElement(e,hn({},t,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:i})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var o=this.commonProps,r=this.props.isDisabled,i=this.state.isFocused;return p.createElement(n,hn({},o,{isDisabled:r,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,o=this.state.isFocused,r={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return p.createElement(e,hn({},t,{innerProps:r,isDisabled:n,isFocused:o}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,o=t.GroupHeading,r=t.Menu,i=t.MenuList,a=t.MenuPortal,s=t.LoadingMessage,l=t.NoOptionsMessage,c=t.Option,u=this.commonProps,d=this.state.focusedOption,f=this.props,h=f.captureMenuScroll,m=f.inputValue,g=f.isLoading,v=f.loadingMessage,b=f.minMenuHeight,y=f.maxMenuHeight,x=f.menuIsOpen,w=f.menuPlacement,C=f.menuPosition,S=f.menuPortalTarget,E=f.menuShouldBlockScroll,k=f.menuShouldScrollIntoView,$=f.noOptionsMessage,_=f.onMenuScrollToTop,O=f.onMenuScrollToBottom;if(!x)return null;var j,M=function(t,n){var o=t.type,r=t.data,i=t.isDisabled,a=t.isSelected,s=t.label,l=t.value,f=d===r,h=i?void 0:function(){return e.onOptionHover(r)},m=i?void 0:function(){return e.selectOption(r)},g="".concat(e.getElementId("option"),"-").concat(n),v={id:g,onClick:m,onMouseMove:h,onMouseOver:h,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:a};return p.createElement(c,hn({},u,{innerProps:v,data:r,isDisabled:i,isSelected:a,key:g,label:s,type:o,value:l,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())j=this.getCategorizedOptions().map((function(t){if("group"===t.type){var r=t.data,i=t.options,a=t.index,s="".concat(e.getElementId("group"),"-").concat(a),l="".concat(s,"-heading");return p.createElement(n,hn({},u,{key:s,data:r,options:i,Heading:o,headingProps:{id:l,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return M(e,"".concat(a,"-").concat(e.index))})))}if("option"===t.type)return M(t,"".concat(t.index))}));else if(g){var P=v({inputValue:m});if(null===P)return null;j=p.createElement(s,u,P)}else{var I=$({inputValue:m});if(null===I)return null;j=p.createElement(l,u,I)}var N={minMenuHeight:b,maxMenuHeight:y,menuPlacement:w,menuPosition:C,menuShouldScrollIntoView:k},T=p.createElement(cO,hn({},u,N),(function(t){var n=t.ref,o=t.placerProps,a=o.placement,s=o.maxHeight;return p.createElement(r,hn({},u,N,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:g,placement:a}),p.createElement(aj,{captureEnabled:h,onTopArrive:_,onBottomArrive:O,lockEnabled:E},(function(t){return p.createElement(i,hn({},u,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":u.isMulti,id:e.getElementId("listbox")},isLoading:g,maxHeight:s,focusedOption:d}),j)})))}));return S||"fixed"===C?p.createElement(a,hn({},u,{appendTo:S,controlElement:this.controlRef,menuPlacement:w,menuPosition:C}),T):T}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,o=t.isDisabled,r=t.isMulti,i=t.name,a=t.required,s=this.state.selectValue;if(a&&!this.hasValue()&&!o)return p.createElement(lj,{name:i,onFocus:this.onValueInputFocus});if(i&&!o){if(r){if(n){var l=s.map((function(t){return e.getOptionValue(t)})).join(n);return p.createElement("input",{name:i,type:"hidden",value:l})}var c=s.length>0?s.map((function(t,n){return p.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):p.createElement("input",{name:i,type:"hidden",value:""});return p.createElement("div",null,c)}var u=s[0]?this.getOptionValue(s[0]):"";return p.createElement("input",{name:i,type:"hidden",value:u})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,o=t.focusedOption,r=t.focusedValue,i=t.isFocused,a=t.selectValue,s=this.getFocusableOptions();return p.createElement(AO,hn({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:o,focusedValue:r,isFocused:i,selectValue:a,focusableOptions:s,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,o=e.SelectContainer,r=e.ValueContainer,i=this.props,a=i.className,s=i.id,l=i.isDisabled,c=i.menuIsOpen,u=this.state.isFocused,d=this.commonProps=this.getCommonProps();return p.createElement(o,hn({},d,{className:a,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:u}),this.renderLiveRegion(),p.createElement(t,hn({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:u,menuIsOpen:c}),p.createElement(r,hn({},d,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),p.createElement(n,hn({},d,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,o=t.clearFocusValueOnUpdate,r=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,l=t.instancePrefix,c=e.options,u=e.value,d=e.menuIsOpen,f=e.inputValue,p=e.isMulti,h=F_(u),m={};if(n&&(u!==n.value||c!==n.options||d!==n.menuIsOpen||f!==n.inputValue)){var g=d?function(e,t){return gj(mj(e,t))}(e,h):[],v=d?vj(mj(e,h),"".concat(l,"-option")):[],b=o?function(e,t){var n=e.focusedValue,o=e.selectValue.indexOf(n);if(o>-1){if(t.indexOf(n)>-1)return n;if(o<t.length)return t[o]}return null}(t,h):null,y=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,g);m={selectValue:h,focusedOption:y,focusedOptionId:yj(v,y),focusableOptionsWithIds:v,focusedValue:b,clearFocusValueOnUpdate:!1}}var x=null!=r&&e!==n?{inputIsHidden:r,inputIsHiddenAfterUpdate:void 0}:{},w=i,C=a&&s;return a&&!C&&(w={value:tO(p,h,h[0]||null),options:h,action:"initial-input-focus"},C=!s),"initial-input-focus"===(null==i?void 0:i.action)&&(w=null),$e($e($e({},m),x),{},{prevProps:e,ariaSelection:w,prevWasFocused:C})}}]),n}(p.Component);_j.defaultProps=pj;var Oj=(0,p.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,o=e.defaultMenuIsOpen,r=void 0!==o&&o,i=e.defaultValue,a=void 0===i?null:i,s=e.inputValue,l=e.menuIsOpen,c=e.onChange,u=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,h=e.value,m=di(e,M$),g=Ge((0,p.useState)(void 0!==s?s:n),2),v=g[0],b=g[1],y=Ge((0,p.useState)(void 0!==l?l:r),2),x=y[0],w=y[1],C=Ge((0,p.useState)(void 0!==h?h:a),2),S=C[0],E=C[1],k=(0,p.useCallback)((function(e,t){"function"==typeof c&&c(e,t),E(e)}),[c]),$=(0,p.useCallback)((function(e,t){var n;"function"==typeof u&&(n=u(e,t)),b(void 0!==n?n:e)}),[u]),_=(0,p.useCallback)((function(){"function"==typeof f&&f(),w(!0)}),[f]),O=(0,p.useCallback)((function(){"function"==typeof d&&d(),w(!1)}),[d]),j=void 0!==s?s:v,M=void 0!==l?l:x,P=void 0!==h?h:S;return $e($e({},m),{},{inputValue:j,menuIsOpen:M,onChange:k,onInputChange:$,onMenuClose:O,onMenuOpen:_,value:P})}(e);return p.createElement(_j,hn({ref:t},n))})),jj=Oj,Mj=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],Pj=p.forwardRef((function(e,t){var n=e.className,o=e.component,r=e.viewBox,i=e.spin,a=e.rotate,s=e.tabIndex,l=e.onClick,c=e.children,u=di(e,Mj),d=p.useRef(),f=ci(d,t);Qa(Boolean(o||c),"Should have `component` prop or `children`."),is(d);var h=p.useContext(jo),m=h.prefixCls,g=void 0===m?"anticon":m,v=h.rootClassName,b=oi()(v,g,n),y=oi()(Ee({},"".concat(g,"-spin"),!!i)),x=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,w=$e($e({},rs),{},{className:y,style:x,viewBox:r});r||delete w.viewBox;var C=s;return void 0===C&&l&&(C=-1),p.createElement("span",hn({role:"img"},u,{ref:f,tabIndex:C,onClick:l,className:b}),o?p.createElement(o,w,c):c?(Qa(Boolean(r)||1===p.Children.count(c)&&p.isValidElement(c)&&"use"===p.Children.only(c).type,"Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),p.createElement("svg",hn({},w,{viewBox:r}),c)):null)}));Pj.displayName="AntdIcon";const Ij=Pj,Nj=e=>(0,a.jsx)(Ij,{component:()=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"2em",height:"2em",viewBox:"0 0 325 305",children:(0,a.jsxs)("g",{id:"Group_396","data-name":"Group 396",transform:"translate(-1357 -1785)",children:[(0,a.jsx)("text",{id:"_","data-name":"}",transform:"translate(1552 2024)","font-size":"224","font-family":"NotoSans-Medium, Noto Sans","font-weight":"500","letter-spacing":"0.01em",children:(0,a.jsx)("tspan",{x:"0",y:"0",children:"}"})}),(0,a.jsx)("text",{id:"_2","data-name":"}",transform:"translate(1595 2024)","font-size":"224","font-family":"NotoSans-Medium, Noto Sans","font-weight":"500","letter-spacing":"0.01em",children:(0,a.jsx)("tspan",{x:"0",y:"0",children:"}"})}),(0,a.jsx)("text",{id:"_3","data-name":"}",transform:"matrix(-1, 0, 0, 1, 1487, 2024)","font-size":"224","font-family":"NotoSans-Medium, Noto Sans","font-weight":"500","letter-spacing":"0.01em",children:(0,a.jsx)("tspan",{x:"0",y:"0",children:"}"})}),(0,a.jsx)("text",{id:"_4","data-name":"}",transform:"matrix(-1, 0, 0, 1, 1444, 2024)","font-size":"224","font-family":"NotoSans-Medium, Noto Sans","font-weight":"500","letter-spacing":"0.01em",children:(0,a.jsx)("tspan",{x:"0",y:"0",children:"}"})}),(0,a.jsx)("circle",{id:"Ellipse_73","data-name":"Ellipse 73",cx:"7.278",cy:"7.278",r:"7.278",transform:"translate(1512.269 1985)"}),(0,a.jsx)("circle",{id:"Ellipse_75","data-name":"Ellipse 75",cx:"7.278",cy:"7.278",r:"7.278",transform:"translate(1532.324 1985)"}),(0,a.jsx)("circle",{id:"Ellipse_74","data-name":"Ellipse 74",cx:"7.278",cy:"7.278",r:"7.278",transform:"translate(1492.218 1985)"})]})}),...e}),Tj=()=>{const{toggleMergeTags:e}=(0,u.useDispatch)("notification-master/core");return(0,a.jsx)(Nj,{onClick:()=>e(!0)})},Rj=window.wp.apiFetch;var Aj=n.n(Rj);const Dj=({value:e,onChange:t})=>{const[n,o]=(0,s.useState)(""),[r,i]=(0,s.useState)([]),[c,u]=(0,s.useState)(!1);return(0,s.useEffect)((()=>{(async()=>{u(!0);try{const e=await Aj()({path:(0,tE.addQueryArgs)("/wp/v2/users",{per_page:10,search:n})});i(e)}catch(e){console.error(e)}finally{u(!1)}})()}),[n]),(0,a.jsx)(jj,{options:(0,Up.map)(r,(e=>({value:e.id,label:e.name}))),isSearchable:!0,value:e||null,onChange:e=>t(e),onInputChange:e=>o(e),isLoading:c,placeholder:(0,l.__)("Select a user","notification-master"),noOptionsMessage:()=>(0,l.__)("No users found","notification-master"),className:"notification-master__integration--settings__field__list__item__input notification-master-input-custom",styles:{control:e=>({...e,minHeight:"35px",height:"35px"}),valueContainer:e=>({...e,height:"35px",padding:"0 6px"}),input:e=>({...e,margin:"0px"}),indicatorSeparator:()=>({display:"none"}),indicatorsContainer:e=>({...e,height:"35px"})}})},Bj=({value:e,onChange:t})=>{const[n,o]=(0,s.useState)(!1),r="ntfm-email-editor";(0,s.useEffect)((()=>{window.tinymce.get(r)&&(o(window.tinymce.get(r).isHidden()),window.wp.oldEditor.remove(r)),window.wp.oldEditor.initialize(r,{tinymce:{wpautop:!0,toolbar1:"formatselect | styleselect | bold italic strikethrough | forecolor backcolor | link | alignleft aligncenter alignright alignjustify | numlist bullist outdent indent | insert ast_placeholders | fontsizeselect",toolbar2:"strikethrough,hr,forecolor,pastetext,removeformat,charmap,outdent,indent,undo,redo,wp_help",height:300,setup:function(e){e.on("init",(function(){e.getContainer().style.minHeight="300px"}))},urlconverter_callback:(e,t,n)=>((e.startsWith("http://{{")||e.startsWith("https://{{"))&&(e=e.replace(/^https?:\/\//,"")),e)},quicktags:!0,mediaButtons:!0});const e=window.tinymce.get(r);e?.initialized?i():e&&e.on("init",i)}),[]);const i=()=>{const e=window.tinymce.get(r);n&&window.switchEditors.go(r,"html"),e.on("NodeChange",l((()=>{t(window.wp.oldEditor.getContent(r))}),250))},l=(e,t)=>{let n=null;return function(){const o=this,r=arguments;n&&clearTimeout(n),n=setTimeout((()=>{e.apply(o,r)}),t)}};return(0,a.jsx)("textarea",{className:"wp-editor-area",id:r,value:e,onChange:({target:{value:e}})=>{t(e)}})},Lj=({settings:e,onChange:t})=>{const{properties:n}=DI("email"),{emails:o,excluded_emails:r=[],subject:i="",message:c="<p></p>"}=e,{toggleMergeTags:d,addNotice:f}=(0,u.useDispatch)("notification-master/core"),p=eE.userRoles,{ajaxUrl:h,nonce:m,ntfmSiteUrl:g}=eE,[v,b]=(0,s.useState)(!1),[y,x]=(0,s.useState)("");(0,s.useEffect)((()=>{o?.length&&"string"==typeof o[0]&&t({emails:(0,Up.map)(o,(e=>({type:"custom",value:e})))}),e?.emails||t({emails:[{type:"custom",value:"{{general.admin_email}}"}]})}),[]);const w=(e,n)=>{t({[e]:n})},C=[{label:(0,l.__)("Select Type","notification-master"),value:"",style:{display:"none"}},{label:(0,l.__)("Role","notification-master"),value:"role"},{label:(0,l.__)("User","notification-master"),value:"user"},{label:(0,l.__)("Custom","notification-master"),value:"custom"}],S=(0,Up.map)(p,((e,t)=>({label:e.label,value:t}))),E=e=>C.find((t=>t.value===e))||C[0];return(0,a.jsxs)(Np,{vertical:!0,gap:10,children:[(0,a.jsx)(Yk.Title,{level:5,className:"ntfm-custom-title",children:(0,l.__)("Email Settings","notification-master")}),(0,a.jsxs)(Yk.Text,{type:"secondary",children:[(0,l.__)("Read the documentation to learn more about how to set up email notifications.","notification-master")," ",(0,a.jsx)("a",{href:`${g}/docs/email-notifications/`,target:"_blank",children:(0,l.__)("Find out more","notification-master")})]}),(0,a.jsxs)("div",{className:"notification-master__integration--settings",children:[(0,a.jsxs)("div",{className:oi()("notification-master__integration--settings__field",{required:n.emails.required}),children:[(0,a.jsx)(Yk.Title,{level:5,className:"notification-master__integration--settings__field__title",children:(0,l.__)("Email Addresses","notification-master")}),(0,a.jsx)(Yk.Text,{type:"secondary",style:{fontSize:"12px"},className:"notification-master__integration--settings__field__description",children:(0,l.__)("You can use merge tags. For example, you can use {{general.admin_email}} to send the email to the admin email address.","notification-master")}),(0,a.jsxs)("div",{className:"notification-master__integration--settings__field__list",children:[(0,Up.map)(o,((e,t)=>(0,a.jsxs)("div",{className:"notification-master__integration--settings__field__list__item",children:[(0,a.jsx)(jj,{placeholder:(0,l.__)("Select Type","notification-master"),value:E(e.type),onChange:n=>w("emails",[...o.slice(0,t),{...e,type:n?.value||"",value:""},...o.slice(t+1)]),isSearchable:!1,options:C,className:"notification-master__integration--settings__field__list__item__input notification-master-input-custom",styles:{control:e=>({...e,minHeight:"35px",height:"35px"}),valueContainer:e=>({...e,height:"35px",padding:"0 6px"}),input:e=>({...e,margin:"0px"}),indicatorSeparator:()=>({display:"none"}),indicatorsContainer:e=>({...e,height:"35px"})}}),"role"===e.type&&(0,a.jsx)(jj,{placeholder:(0,l.__)("Select Role","notification-master"),value:e.value,onChange:n=>w("emails",[...o.slice(0,t),{...e,value:n},...o.slice(t+1)]),isSearchable:!1,options:S,className:"notification-master__integration--settings__field__list__item__input notification-master-input-custom",styles:{control:e=>({...e,minHeight:"35px",height:"35px"}),valueContainer:e=>({...e,height:"35px",padding:"0 6px"}),input:e=>({...e,margin:"0px"}),indicatorSeparator:()=>({display:"none"}),indicatorsContainer:e=>({...e,height:"35px"})}}),"user"===e.type&&(0,a.jsx)(Dj,{value:e.value,onChange:n=>w("emails",[...o.slice(0,t),{...e,value:n},...o.slice(t+1)])}),"custom"===e.type&&(0,a.jsx)(p$,{placeholder:(0,l.__)("example@domain.com or {{general.admin_email}}","notification-master"),value:e.value,onChange:n=>w("emails",[...o.slice(0,t),{...e,value:n.target.value},...o.slice(t+1)]),addonAfter:(0,a.jsx)(Tj,{}),className:"notification-master__integration--settings__field__list__item__input"}),(0,a.jsx)(gu,{danger:!0,type:"link",onClick:()=>w("emails",o.filter(((e,n)=>n!==t))),icon:(0,a.jsx)(j$,{})})]},t))),(0,a.jsx)(gu,{onClick:()=>w("emails",[...o,{type:"custom",value:""}]),children:(0,l.__)("Add Email","notification-master")})]})]}),(0,a.jsxs)("div",{className:oi()("notification-master__integration--settings__field",{required:n.excluded_emails.required}),children:[(0,a.jsx)(Yk.Title,{level:5,className:"notification-master__integration--settings__field__title",children:(0,l.__)("Exclude Email Addresses","notification-master")}),(0,a.jsx)(Yk.Text,{type:"secondary",style:{fontSize:"12px"},className:"notification-master__integration--settings__field__description",children:(0,l.__)("You can use merge tags. For example, you can use {{general.admin_email}} to exclude the admin email address.","notification-master")}),(0,a.jsxs)("div",{className:"notification-master__integration--settings__field__list",children:[(0,Up.map)(r,((e,t)=>(0,a.jsxs)("div",{className:"notification-master__integration--settings__field__list__item",children:[(0,a.jsx)(jj,{placeholder:(0,l.__)("Select Type","notification-master"),value:E(e.type),onChange:n=>w("excluded_emails",[...r.slice(0,t),{...e,type:n?.value||"",value:""},...r.slice(t+1)]),options:C,className:"notification-master__integration--settings__field__list__item__input notification-master-input-custom",styles:{control:e=>({...e,minHeight:"35px",height:"35px"}),valueContainer:e=>({...e,height:"35px",padding:"0 6px"}),input:e=>({...e,margin:"0px"}),indicatorSeparator:()=>({display:"none"}),indicatorsContainer:e=>({...e,height:"35px"})}}),"role"===e.type&&(0,a.jsx)(jj,{placeholder:(0,l.__)("Select Role","notification-master"),value:e.value,onChange:n=>w("excluded_emails",[...r.slice(0,t),{...e,value:n},...r.slice(t+1)]),options:S,className:"notification-master__integration--settings__field__list__item__input",styles:{control:e=>({...e,minHeight:"20px"})}}),"user"===e.type&&(0,a.jsx)(Dj,{value:e.value,onChange:n=>w("excluded_emails",[...r.slice(0,t),{...e,value:n},...r.slice(t+1)])}),"custom"===e.type&&(0,a.jsx)(p$,{placeholder:(0,l.__)("example@domain.com or {{general.admin_email}}","notification-master"),value:e.value,onChange:n=>w("excluded_emails",[...r.slice(0,t),{...e,value:n.target.value},...r.slice(t+1)]),addonAfter:(0,a.jsx)(Tj,{}),className:"notification-master__integration--settings__field__list__item__input"}),(0,a.jsx)(gu,{danger:!0,type:"link",onClick:()=>w("excluded_emails",r.filter(((e,n)=>n!==t))),icon:(0,a.jsx)(j$,{})})]},t))),(0,a.jsx)(gu,{onClick:()=>w("excluded_emails",[...r,{type:"custom",value:""}]),children:(0,l.__)("Add Email","notification-master")})]})]}),(0,a.jsxs)("div",{className:oi()("notification-master__integration--settings__field",{required:n.subject.required}),children:[(0,a.jsx)(Yk.Title,{level:5,className:"notification-master__integration--settings__field__title",children:(0,l.__)("Subject","notification-master")}),(0,a.jsx)(p$,{value:i,onChange:e=>w("subject",e.target.value),addonAfter:(0,a.jsx)(Tj,{})})]}),(0,a.jsxs)("div",{className:oi()("notification-master__integration--settings__field",{required:n.message.required}),children:[(0,a.jsx)(Yk.Title,{level:5,className:"notification-master__integration--settings__field__title",children:(0,l.__)("Message","notification-master")}),(0,a.jsx)(Yk.Text,{type:"secondary",style:{fontSize:"12px",display:"block",marginBottom:"10px"},children:(0,l.__)("If your site does not use HTTPS, media files (such as images and videos) may not display properly in the email.","notification-master-pro")}),(0,a.jsxs)("div",{className:"notification-master__integration--settings__field__input",children:[(0,a.jsx)(gu,{onClick:()=>d(!0),style:{margin:"10px 0"},className:"notification-master__integration--settings__field__input__button",children:(0,l.__)("Merge Tags","notification-master")}),(0,a.jsx)(Bj,{value:c,onChange:e=>{w("message",e)}})]})]}),(0,a.jsxs)("div",{className:oi()("notification-master__integration--settings__field"),children:[(0,a.jsx)(Yk.Text,{type:"secondary",style:{fontSize:"12px",display:"block",marginBottom:"10px"},children:(0,l.__)("Send a test notification to check if everything is working as expected. In the real notification, the merge tags will be replaced with the actual values.","notification-master-pro")}),(0,a.jsx)($$,{title:(0,l.__)("Send a test notification to the email address?","notification-master-pro"),description:(0,a.jsx)(p$,{placeholder:(0,l.__)("Enter Email Address","notification-master-pro"),value:y,onChange:e=>x(e.target.value),style:{width:"200px",marginRight:"10px"}}),onConfirm:async()=>{if(!(0,tE.isEmail)(y))return void f({type:"error",message:(0,l.__)("Please enter an email address to send test notification.","notification-master-pro")});if((0,Up.isEmpty)(i)||(0,Up.isEmpty)(c))return void f({type:"error",message:(0,l.__)("Please enter subject and message to send test notification.","notification-master-pro")});b(!0);const e=new FormData;e.append("action","notification_master_send_test_notification"),e.append("nonce",m),e.append("email",y),e.append("subject",i),e.append("body",c);try{const t=await fetch(h,{method:"POST",body:e}),n=await t.json();n.success?f({type:"success",message:n.data.message}):f({type:"error",message:n.data.message})}catch(e){f({type:"error",message:e.data.message})}finally{b(!1)}},okText:(0,l.__)("Send","notification-master-pro"),cancelText:(0,l.__)("No","notification-master-pro"),children:(0,a.jsx)(gu,{type:"default",loading:v,disabled:v||!i||!c,children:(0,l.__)("Send Test Email","notification-master-pro")})})]})]})]})};(0,c.addFilter)("NotificationMaster.Integration","NotificationMaster.EmailIntegration",((e,t)=>"email"===t?{...e,component:Lj,available:!0}:e));const zj=function(e){var t=e.className,n=e.customizeIcon,o=e.customizeIconProps,r=e.children,i=e.onMouseDown,a=e.onClick,s="function"==typeof n?n(o):n;return p.createElement("span",{className:t,onMouseDown:function(e){e.preventDefault(),null==i||i(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},void 0!==s?s:p.createElement("span",{className:oi()(t.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},r))};var Fj=p.createContext(null);function Hj(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=p.useRef(null),n=p.useRef(null);return p.useEffect((function(){return function(){window.clearTimeout(n.current)}}),[]),[function(){return t.current},function(o){(o||null===t.current)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout((function(){t.current=null}),e)}]}var Vj=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Wj=void 0;function Kj(e,t){var n=e.prefixCls,o=e.invalidate,r=e.item,i=e.renderItem,a=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,d=e.style,f=e.children,h=e.display,m=e.order,g=e.component,v=void 0===g?"div":g,b=di(e,Vj),y=a&&!h;function x(e){l(c,e)}p.useEffect((function(){return function(){x(null)}}),[]);var w,C=i&&r!==Wj?i(r):f;o||(w={opacity:y?0:1,height:y?0:Wj,overflowY:y?"hidden":Wj,order:a?m:Wj,pointerEvents:y?"none":Wj,position:y?"absolute":Wj});var S={};y&&(S["aria-hidden"]=!0);var E=p.createElement(v,hn({className:oi()(!o&&n,u),style:$e($e({},w),d)},S,b,{ref:t}),C);return a&&(E=p.createElement(LC,{onResize:function(e){x(e.offsetWidth)},disabled:s},E)),E}var qj=p.forwardRef(Kj);qj.displayName="Item";const Uj=qj;function Gj(e,t){var n=Ge(p.useState(t),2),o=n[0],r=n[1];return[o,nl((function(t){e((function(){r(t)}))}))]}var Xj=h().createContext(null),Yj=["component"],Zj=["className"],Qj=["className"],Jj=function(e,t){var n=p.useContext(Xj);if(!n){var o=e.component,r=void 0===o?"div":o,i=di(e,Yj);return p.createElement(r,hn({},i,{ref:t}))}var a=n.className,s=di(n,Zj),l=e.className,c=di(e,Qj);return p.createElement(Xj.Provider,{value:null},p.createElement(Uj,hn({ref:t,className:oi()(a,l)},s,c)))},eM=p.forwardRef(Jj);eM.displayName="RawItem";const tM=eM;var nM=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],oM="responsive",rM="invalidate";function iM(e){return"+ ".concat(e.length," ...")}function aM(e,t){var n,o=e.prefixCls,r=void 0===o?"rc-overflow":o,i=e.data,a=void 0===i?[]:i,s=e.renderItem,l=e.renderRawItem,c=e.itemKey,u=e.itemWidth,d=void 0===u?10:u,f=e.ssr,h=e.style,m=e.className,g=e.maxCount,v=e.renderRest,b=e.renderRawRest,y=e.suffix,x=e.component,w=void 0===x?"div":x,C=e.itemComponent,S=e.onVisibleChange,E=di(e,nM),k="full"===f,$=(n=p.useRef(null),function(e){n.current||(n.current=[],function(e){if("undefined"==typeof MessageChannel)na(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){(0,pe.unstable_batchedUpdates)((function(){n.current.forEach((function(e){e()})),n.current=null}))}))),n.current.push(e)}),_=Ge(Gj($,null),2),O=_[0],j=_[1],M=O||0,P=Ge(Gj($,new Map),2),I=P[0],N=P[1],T=Ge(Gj($,0),2),R=T[0],A=T[1],D=Ge(Gj($,0),2),B=D[0],L=D[1],z=Ge(Gj($,0),2),F=z[0],H=z[1],V=Ge((0,p.useState)(null),2),W=V[0],K=V[1],q=Ge((0,p.useState)(null),2),U=q[0],G=q[1],X=p.useMemo((function(){return null===U&&k?Number.MAX_SAFE_INTEGER:U||0}),[U,O]),Y=Ge((0,p.useState)(!1),2),Z=Y[0],Q=Y[1],J="".concat(r,"-item"),ee=Math.max(R,B),te=g===oM,ne=a.length&&te,oe=g===rM,re=ne||"number"==typeof g&&a.length>g,ie=(0,p.useMemo)((function(){var e=a;return ne?e=null===O&&k?a:a.slice(0,Math.min(a.length,M/d)):"number"==typeof g&&(e=a.slice(0,g)),e}),[a,d,O,g,ne]),ae=(0,p.useMemo)((function(){return ne?a.slice(X+1):a.slice(ie.length)}),[a,ie,ne,X]),se=(0,p.useCallback)((function(e,t){var n;return"function"==typeof c?c(e):null!==(n=c&&(null==e?void 0:e[c]))&&void 0!==n?n:t}),[c]),le=(0,p.useCallback)(s||function(e){return e},[s]);function ce(e,t,n){(U!==e||void 0!==t&&t!==W)&&(G(e),n||(Q(e<a.length-1),null==S||S(e)),void 0!==t&&K(t))}function ue(e,t){N((function(n){var o=new Map(n);return null===t?o.delete(e):o.set(e,t),o}))}function de(e){return I.get(se(ie[e],e))}en((function(){if(M&&"number"==typeof ee&&ie){var e=F,t=ie.length,n=t-1;if(!t)return void ce(0,null);for(var o=0;o<t;o+=1){var r=de(o);if(k&&(r=r||0),void 0===r){ce(o-1,void 0,!0);break}if(e+=r,0===n&&e<=M||o===n-1&&e+de(n)<=M){ce(n,null);break}if(e+ee>M){ce(o-1,e-r-F+B);break}}y&&de(0)+F>M&&K(null)}}),[M,I,B,F,se,ie]);var fe=Z&&!!ae.length,he={};null!==W&&ne&&(he={position:"absolute",left:W,top:0});var me,ge={prefixCls:J,responsive:ne,component:C,invalidate:oe},ve=l?function(e,t){var n=se(e,t);return p.createElement(Xj.Provider,{key:n,value:$e($e({},ge),{},{order:t,item:e,itemKey:n,registerSize:ue,display:t<=X})},l(e,t))}:function(e,t){var n=se(e,t);return p.createElement(Uj,hn({},ge,{order:t,key:n,item:e,renderItem:le,itemKey:n,registerSize:ue,display:t<=X}))},be={order:fe?X:Number.MAX_SAFE_INTEGER,className:"".concat(J,"-rest"),registerSize:function(e,t){L(t),A(B)},display:fe};if(b)b&&(me=p.createElement(Xj.Provider,{value:$e($e({},ge),be)},b(ae)));else{var ye=v||iM;me=p.createElement(Uj,hn({},ge,be),"function"==typeof ye?ye(ae):ye)}var xe=p.createElement(w,hn({className:oi()(!oe&&r,m),style:h,ref:t},E),ie.map(ve),re?me:null,y&&p.createElement(Uj,hn({},ge,{responsive:te,responsiveDisabled:!ne,order:X,className:"".concat(J,"-suffix"),registerSize:function(e,t){H(t)},display:!0,style:he}),y));return te&&(xe=p.createElement(LC,{onResize:function(e,t){j(t.clientWidth)},disabled:!ne},xe)),xe}var sM=p.forwardRef(aM);sM.displayName="Overflow",sM.Item=tM,sM.RESPONSIVE=oM,sM.INVALIDATE=rM;const lM=sM;var cM=function(e,t){var n,o=e.prefixCls,r=e.id,i=e.inputElement,a=e.disabled,s=e.tabIndex,l=e.autoFocus,c=e.autoComplete,u=e.editable,d=e.activeDescendantId,f=e.value,h=e.maxLength,m=e.onKeyDown,g=e.onMouseDown,v=e.onChange,b=e.onPaste,y=e.onCompositionStart,x=e.onCompositionEnd,w=e.open,C=e.attrs,S=i||p.createElement("input",null),E=S,k=E.ref,$=E.props,_=$.onKeyDown,O=$.onChange,j=$.onMouseDown,M=$.onCompositionStart,P=$.onCompositionEnd,I=$.style;return S.props,p.cloneElement(S,$e($e($e({type:"search"},$),{},{id:r,ref:li(t,k),disabled:a,tabIndex:s,autoComplete:c||"off",autoFocus:l,className:oi()("".concat(o,"-selection-search-input"),null===(n=S)||void 0===n||null===(n=n.props)||void 0===n?void 0:n.className),role:"combobox","aria-expanded":w||!1,"aria-haspopup":"listbox","aria-owns":"".concat(r,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(r,"_list"),"aria-activedescendant":w?d:void 0},C),{},{value:u?f:"",maxLength:h,readOnly:!u,unselectable:u?null:"on",style:$e($e({},I),{},{opacity:u?null:0}),onKeyDown:function(e){m(e),_&&_(e)},onMouseDown:function(e){g(e),j&&j(e)},onChange:function(e){v(e),O&&O(e)},onCompositionStart:function(e){y(e),M&&M(e)},onCompositionEnd:function(e){x(e),P&&P(e)},onPaste:b}))};const uM=p.forwardRef(cM);function dM(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var fM="undefined"!=typeof window&&window.document&&window.document.documentElement;function pM(e){return["string","number"].includes(ye(e))}function hM(e){var t=void 0;return e&&(pM(e.title)?t=e.title.toString():pM(e.label)&&(t=e.label.toString())),t}function mM(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var gM=function(e){e.preventDefault(),e.stopPropagation()};const vM=function(e){var t,n,o=e.id,r=e.prefixCls,i=e.values,a=e.open,s=e.searchValue,l=e.autoClearSearchValue,c=e.inputRef,u=e.placeholder,d=e.disabled,f=e.mode,h=e.showSearch,m=e.autoFocus,g=e.autoComplete,v=e.activeDescendantId,b=e.tabIndex,y=e.removeIcon,x=e.maxTagCount,w=e.maxTagTextLength,C=e.maxTagPlaceholder,S=void 0===C?function(e){return"+ ".concat(e.length," ...")}:C,E=e.tagRender,k=e.onToggleOpen,$=e.onRemove,_=e.onInputChange,O=e.onInputPaste,j=e.onInputKeyDown,M=e.onInputMouseDown,P=e.onInputCompositionStart,I=e.onInputCompositionEnd,N=p.useRef(null),T=Ge((0,p.useState)(0),2),R=T[0],A=T[1],D=Ge((0,p.useState)(!1),2),B=D[0],L=D[1],z="".concat(r,"-selection"),F=a||"multiple"===f&&!1===l||"tags"===f?s:"",H="tags"===f||"multiple"===f&&!1===l||h&&(a||B);t=function(){A(N.current.scrollWidth)},n=[F],fM?p.useLayoutEffect(t,n):p.useEffect(t,n);var V=function(e,t,n,o,r){return p.createElement("span",{title:hM(e),className:oi()("".concat(z,"-item"),Ee({},"".concat(z,"-item-disabled"),n))},p.createElement("span",{className:"".concat(z,"-item-content")},t),o&&p.createElement(zj,{className:"".concat(z,"-item-remove"),onMouseDown:gM,onClick:r,customizeIcon:y},"×"))},W=p.createElement("div",{className:"".concat(z,"-search"),style:{width:R},onFocus:function(){L(!0)},onBlur:function(){L(!1)}},p.createElement(uM,{ref:c,open:a,prefixCls:r,id:o,inputElement:null,disabled:d,autoFocus:m,autoComplete:g,editable:H,activeDescendantId:v,value:F,onKeyDown:j,onMouseDown:M,onChange:_,onPaste:O,onCompositionStart:P,onCompositionEnd:I,tabIndex:b,attrs:Vu(e,!0)}),p.createElement("span",{ref:N,className:"".concat(z,"-search-mirror"),"aria-hidden":!0},F," ")),K=p.createElement(lM,{prefixCls:"".concat(z,"-overflow"),data:i,renderItem:function(e){var t=e.disabled,n=e.label,o=e.value,r=!d&&!t,i=n;if("number"==typeof w&&("string"==typeof n||"number"==typeof n)){var s=String(i);s.length>w&&(i="".concat(s.slice(0,w),"..."))}var l=function(t){t&&t.stopPropagation(),$(e)};return"function"==typeof E?function(e,t,n,o,r){return p.createElement("span",{onMouseDown:function(e){gM(e),k(!a)}},E({label:t,value:e,disabled:n,closable:o,onClose:r}))}(o,i,t,r,l):V(e,i,t,r,l)},renderRest:function(e){var t="function"==typeof S?S(e):S;return V({title:t},t,!1)},suffix:W,itemKey:mM,maxCount:x});return p.createElement(p.Fragment,null,K,!i.length&&!F&&p.createElement("span",{className:"".concat(z,"-placeholder")},u))},bM=function(e){var t=e.inputElement,n=e.prefixCls,o=e.id,r=e.inputRef,i=e.disabled,a=e.autoFocus,s=e.autoComplete,l=e.activeDescendantId,c=e.mode,u=e.open,d=e.values,f=e.placeholder,h=e.tabIndex,m=e.showSearch,g=e.searchValue,v=e.activeValue,b=e.maxLength,y=e.onInputKeyDown,x=e.onInputMouseDown,w=e.onInputChange,C=e.onInputPaste,S=e.onInputCompositionStart,E=e.onInputCompositionEnd,k=e.title,$=Ge(p.useState(!1),2),_=$[0],O=$[1],j="combobox"===c,M=j||m,P=d[0],I=g||"";j&&v&&!_&&(I=v),p.useEffect((function(){j&&O(!1)}),[j,v]);var N=!("combobox"!==c&&!u&&!m||!I),T=void 0===k?hM(P):k,R=p.useMemo((function(){return P?null:p.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:N?{visibility:"hidden"}:void 0},f)}),[P,N,f,n]);return p.createElement(p.Fragment,null,p.createElement("span",{className:"".concat(n,"-selection-search")},p.createElement(uM,{ref:r,prefixCls:n,id:o,open:u,inputElement:t,disabled:i,autoFocus:a,autoComplete:s,editable:M,activeDescendantId:l,value:I,onKeyDown:y,onMouseDown:x,onChange:function(e){O(!0),w(e)},onPaste:C,onCompositionStart:S,onCompositionEnd:E,tabIndex:h,attrs:Vu(e,!0),maxLength:j?b:void 0})),!j&&P?p.createElement("span",{className:"".concat(n,"-selection-item"),title:T,style:N?{visibility:"hidden"}:void 0},P.label):null,R)};var yM=function(e,t){var n=(0,p.useRef)(null),o=(0,p.useRef)(!1),r=e.prefixCls,i=e.open,a=e.mode,s=e.showSearch,l=e.tokenWithEnter,c=e.autoClearSearchValue,u=e.onSearch,d=e.onSearchSubmit,f=e.onToggleOpen,h=e.onInputKeyDown,m=e.domRef;p.useImperativeHandle(t,(function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}}));var g=Ge(Hj(0),2),v=g[0],b=g[1],y=(0,p.useRef)(null),x=function(e){!1!==u(e,!0,o.current)&&f(!0)},w={inputRef:n,onInputKeyDown:function(e){var t,n=e.which;n!==Is.UP&&n!==Is.DOWN||e.preventDefault(),h&&h(e),n!==Is.ENTER||"tags"!==a||o.current||i||null==d||d(e.target.value),t=n,[Is.ESC,Is.SHIFT,Is.BACKSPACE,Is.TAB,Is.WIN_KEY,Is.ALT,Is.META,Is.WIN_KEY_RIGHT,Is.CTRL,Is.SEMICOLON,Is.EQUALS,Is.CAPS_LOCK,Is.CONTEXT_MENU,Is.F1,Is.F2,Is.F3,Is.F4,Is.F5,Is.F6,Is.F7,Is.F8,Is.F9,Is.F10,Is.F11,Is.F12].includes(t)||f(!0)},onInputMouseDown:function(){b(!0)},onInputChange:function(e){var t=e.target.value;if(l&&y.current&&/[\r\n]/.test(y.current)){var n=y.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,y.current)}y.current=null,x(t)},onInputPaste:function(e){var t=e.clipboardData,n=null==t?void 0:t.getData("text");y.current=n||""},onInputCompositionStart:function(){o.current=!0},onInputCompositionEnd:function(e){o.current=!1,"combobox"!==a&&x(e.target.value)}},C="multiple"===a||"tags"===a?p.createElement(vM,hn({},e,w)):p.createElement(bM,hn({},e,w));return p.createElement("div",{ref:m,className:"".concat(r,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){n.current.focus()})):n.current.focus())},onMouseDown:function(e){var t=v();e.target===n.current||t||"combobox"===a||e.preventDefault(),("combobox"===a||s&&t)&&i||(i&&!1!==c&&u("",!0,!1),f())}},C)};const xM=p.forwardRef(yM);var wM=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],CM=function(e,t){var n=e.prefixCls,o=(e.disabled,e.visible),r=e.children,i=e.popupElement,a=e.animation,s=e.transitionName,l=e.dropdownStyle,c=e.dropdownClassName,u=e.direction,d=void 0===u?"ltr":u,f=e.placement,h=e.builtinPlacements,m=e.dropdownMatchSelectWidth,g=e.dropdownRender,v=e.dropdownAlign,b=e.getPopupContainer,y=e.empty,x=e.getTriggerDOMNode,w=e.onPopupVisibleChange,C=e.onPopupMouseEnter,S=di(e,wM),E="".concat(n,"-dropdown"),k=i;g&&(k=g(i));var $=p.useMemo((function(){return h||function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}}(m)}),[h,m]),_=a?"".concat(E,"-").concat(a):s,O="number"==typeof m,j=p.useMemo((function(){return O?null:!1===m?"minWidth":"width"}),[m,O]),M=l;O&&(M=$e($e({},M),{},{width:m}));var P=p.useRef(null);return p.useImperativeHandle(t,(function(){return{getPopupElement:function(){return P.current}}})),p.createElement(uS,hn({},S,{showAction:w?["click"]:[],hideAction:w?["click"]:[],popupPlacement:f||("rtl"===d?"bottomRight":"bottomLeft"),builtinPlacements:$,prefixCls:E,popupTransitionName:_,popup:p.createElement("div",{ref:P,onMouseEnter:C},k),stretch:j,popupAlign:v,popupVisible:o,getPopupContainer:b,popupClassName:oi()(c,Ee({},"".concat(E,"-empty"),y)),popupStyle:M,getTriggerDOMNode:x,onPopupVisibleChange:w}),r)};const SM=p.forwardRef(CM);function EM(e,t){var n,o=e.key;return"value"in e&&(n=e.value),null!=o?o:void 0!==n?n:"rc-index-key-".concat(t)}function kM(e,t){var n=e||{},o=n.label||(t?"children":"label");return{label:o,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||o}}function $M(e){var t=$e({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return bt(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}const _M=p.createContext(null);var OM=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],jM=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],MM=function(e){return"tags"===e||"multiple"===e},PM=p.forwardRef((function(e,t){var n,o,r=e.id,i=e.prefixCls,a=e.className,s=e.showSearch,l=e.tagRender,c=e.direction,u=e.omitDomProps,d=e.displayValues,f=e.onDisplayValuesChange,m=e.emptyOptions,g=e.notFoundContent,v=void 0===g?"Not Found":g,b=e.onClear,y=e.mode,x=e.disabled,w=e.loading,C=e.getInputElement,S=e.getRawInputElement,E=e.open,k=e.defaultOpen,$=e.onDropdownVisibleChange,_=e.activeValue,O=e.onActiveValueChange,j=e.activeDescendantId,M=e.searchValue,P=e.autoClearSearchValue,I=e.onSearch,N=e.onSearchSplit,T=e.tokenSeparators,R=e.allowClear,A=e.suffixIcon,D=e.clearIcon,B=e.OptionList,L=e.animation,z=e.transitionName,F=e.dropdownStyle,H=e.dropdownClassName,V=e.dropdownMatchSelectWidth,W=e.dropdownRender,K=e.dropdownAlign,q=e.placement,U=e.builtinPlacements,G=e.getPopupContainer,X=e.showAction,Y=void 0===X?[]:X,Z=e.onFocus,Q=e.onBlur,J=e.onKeyUp,ee=e.onKeyDown,te=e.onMouseDown,ne=di(e,OM),oe=MM(y),re=(void 0!==s?s:oe)||"combobox"===y,ie=$e({},ne);jM.forEach((function(e){delete ie[e]})),null==u||u.forEach((function(e){delete ie[e]}));var ae=Ge(p.useState(!1),2),se=ae[0],le=ae[1];p.useEffect((function(){le(zC())}),[]);var ce=p.useRef(null),ue=p.useRef(null),de=p.useRef(null),fe=p.useRef(null),pe=p.useRef(null),he=p.useRef(!1),me=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=Ge(p.useState(!1),2),n=t[0],o=t[1],r=p.useRef(null),i=function(){window.clearTimeout(r.current)};return p.useEffect((function(){return i}),[]),[n,function(t,n){i(),r.current=window.setTimeout((function(){o(t),n&&n()}),e)},i]}(),ge=Ge(me,3),ve=ge[0],be=ge[1],xe=ge[2];p.useImperativeHandle(t,(function(){var e,t;return{focus:null===(e=fe.current)||void 0===e?void 0:e.focus,blur:null===(t=fe.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=pe.current)||void 0===t?void 0:t.scrollTo(e)}}}));var we=p.useMemo((function(){var e;if("combobox"!==y)return M;var t=null===(e=d[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""}),[M,y,d]),Ce="combobox"===y&&"function"==typeof C&&C()||null,Se="function"==typeof S&&S(),ke=ci(ue,null==Se||null===(n=Se.props)||void 0===n?void 0:n.ref),_e=Ge(p.useState(!1),2),Oe=_e[0],je=_e[1];en((function(){je(!0)}),[]);var Me=Ge(rl(!1,{defaultValue:k,value:E}),2),Pe=Me[0],Ie=Me[1],Ne=!!Oe&&Pe,Te=!v&&m;(x||Te&&Ne&&"combobox"===y)&&(Ne=!1);var Re=!Te&&Ne,Ae=p.useCallback((function(e){var t=void 0!==e?e:!Ne;x||(Ie(t),Ne!==t&&(null==$||$(t)))}),[x,Ne,Ie,$]),De=p.useMemo((function(){return(T||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[T]),Be=p.useContext(_M)||{},Le=Be.maxCount,ze=Be.rawValues,Fe=function(e,t,n){if(!((null==ze?void 0:ze.size)>=Le)){var o=!0,r=e;null==O||O(null);var i=function(e,t,n){if(!t||!t.length)return null;var o=!1,r=function e(t,n){var r=Mo(n),i=r[0],a=r.slice(1);if(!i)return[t];var s=t.split(i);return o=o||s.length>1,s.reduce((function(t,n){return[].concat(Ye(t),Ye(e(n,a)))}),[]).filter(Boolean)}(e,t);return o?void 0!==n?r.slice(0,n):r:null}(e,T,Le&&Le-ze.size),a=n?null:i;return"combobox"!==y&&a&&(r="",null==N||N(a),Ae(!1),o=!1),I&&we!==r&&I(r,{source:t?"typing":"effect"}),o}};p.useEffect((function(){Ne||oe||"combobox"===y||Fe("",!1,!1)}),[Ne]),p.useEffect((function(){Pe&&x&&Ie(!1),x&&!he.current&&be(!1)}),[x]);var He=Ge(Hj(),2),Ve=He[0],We=He[1],Ke=p.useRef(!1),qe=[];p.useEffect((function(){return function(){qe.forEach((function(e){return clearTimeout(e)})),qe.splice(0,qe.length)}}),[]);var Ue,Xe=Ge(p.useState({}),2)[1];Se&&(Ue=function(e){Ae(e)}),function(e,t,n,o){var r=p.useRef(null);r.current={open:t,triggerOpen:n,customizedTrigger:o},p.useEffect((function(){function e(e){var t,n;if(null===(t=r.current)||void 0===t||!t.customizedTrigger){var o=e.target;o.shadowRoot&&e.composed&&(o=e.composedPath()[0]||o),r.current.open&&[ce.current,null===(n=de.current)||void 0===n?void 0:n.getPopupElement()].filter((function(e){return e})).every((function(e){return!e.contains(o)&&e!==o}))&&r.current.triggerOpen(!1)}}return window.addEventListener("mousedown",e),function(){return window.removeEventListener("mousedown",e)}}),[])}(0,Re,Ae,!!Se);var Ze,Qe=p.useMemo((function(){return $e($e({},e),{},{notFoundContent:v,open:Ne,triggerOpen:Re,id:r,showSearch:re,multiple:oe,toggleOpen:Ae})}),[e,v,Re,Ne,r,re,oe,Ae]),Je=!!A||w;Je&&(Ze=p.createElement(zj,{className:oi()("".concat(i,"-arrow"),Ee({},"".concat(i,"-arrow-loading"),w)),customizeIcon:A,customizeIconProps:{loading:w,searchValue:we,open:Ne,focused:ve,showSearch:re}}));var et,tt=function(e,t,n,o,r){var i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,l=h().useMemo((function(){return"object"===ye(o)?o.clearIcon:r||void 0}),[o,r]);return{allowClear:h().useMemo((function(){return!(i||!o||!n.length&&!a||"combobox"===s&&""===a)}),[o,i,n.length,a,s]),clearIcon:h().createElement(zj,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:l},"×")}}(i,(function(){var e;null==b||b(),null===(e=fe.current)||void 0===e||e.focus(),f([],{type:"clear",values:d}),Fe("",!1,!1)}),d,R,D,x,we,y),nt=tt.allowClear,ot=tt.clearIcon,rt=p.createElement(B,{ref:pe}),it=oi()(i,a,(Ee(o={},"".concat(i,"-focused"),ve),Ee(o,"".concat(i,"-multiple"),oe),Ee(o,"".concat(i,"-single"),!oe),Ee(o,"".concat(i,"-allow-clear"),R),Ee(o,"".concat(i,"-show-arrow"),Je),Ee(o,"".concat(i,"-disabled"),x),Ee(o,"".concat(i,"-loading"),w),Ee(o,"".concat(i,"-open"),Ne),Ee(o,"".concat(i,"-customize-input"),Ce),Ee(o,"".concat(i,"-show-search"),re),o)),at=p.createElement(SM,{ref:de,disabled:x,prefixCls:i,visible:Re,popupElement:rt,animation:L,transitionName:z,dropdownStyle:F,dropdownClassName:H,direction:c,dropdownMatchSelectWidth:V,dropdownRender:W,dropdownAlign:K,placement:q,builtinPlacements:U,getPopupContainer:G,empty:m,getTriggerDOMNode:function(){return ue.current},onPopupVisibleChange:Ue,onPopupMouseEnter:function(){Xe({})}},Se?p.cloneElement(Se,{ref:ke}):p.createElement(xM,hn({},e,{domRef:ue,prefixCls:i,inputElement:Ce,ref:fe,id:r,showSearch:re,autoClearSearchValue:P,mode:y,activeDescendantId:j,tagRender:l,values:d,open:Ne,onToggleOpen:Ae,activeValue:_,searchValue:we,onSearch:Fe,onSearchSubmit:function(e){e&&e.trim()&&I(e,{source:"submit"})},onRemove:function(e){var t=d.filter((function(t){return t!==e}));f(t,{type:"remove",values:[e]})},tokenWithEnter:De})));return et=Se?at:p.createElement("div",hn({className:it},ie,{ref:ce,onMouseDown:function(e){var t,n=e.target,o=null===(t=de.current)||void 0===t?void 0:t.getPopupElement();if(o&&o.contains(n)){var r=setTimeout((function(){var e,t=qe.indexOf(r);-1!==t&&qe.splice(t,1),xe(),se||o.contains(document.activeElement)||null===(e=fe.current)||void 0===e||e.focus()}));qe.push(r)}for(var i=arguments.length,a=new Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];null==te||te.apply(void 0,[e].concat(a))},onKeyDown:function(e){var t,n=Ve(),o=e.which;if(o===Is.ENTER&&("combobox"!==y&&e.preventDefault(),Ne||Ae(!0)),We(!!we),o===Is.BACKSPACE&&!n&&oe&&!we&&d.length){for(var r=Ye(d),i=null,a=r.length-1;a>=0;a-=1){var s=r[a];if(!s.disabled){r.splice(a,1),i=s;break}}i&&f(r,{type:"remove",values:[i]})}for(var l=arguments.length,c=new Array(l>1?l-1:0),u=1;u<l;u++)c[u-1]=arguments[u];Ne&&(null===(t=pe.current)||void 0===t||t.onKeyDown.apply(t,[e].concat(c))),null==ee||ee.apply(void 0,[e].concat(c))},onKeyUp:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r;Ne&&(null===(r=pe.current)||void 0===r||r.onKeyUp.apply(r,[e].concat(n))),null==J||J.apply(void 0,[e].concat(n))},onFocus:function(){be(!0),x||(Z&&!Ke.current&&Z.apply(void 0,arguments),Y.includes("focus")&&Ae(!0)),Ke.current=!0},onBlur:function(){he.current=!0,be(!1,(function(){Ke.current=!1,he.current=!1,Ae(!1)})),x||(we&&("tags"===y?I(we,{source:"submit"}):"multiple"===y&&I("",{source:"blur"})),Q&&Q.apply(void 0,arguments))}}),ve&&!Ne&&p.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(d.map((function(e){var t=e.label,n=e.value;return["number","string"].includes(ye(t))?t:n})).join(", "))),at,Ze,nt&&ot),p.createElement(Fj.Provider,{value:Qe},et)}));const IM=PM;var NM=function(){return null};NM.isSelectOptGroup=!0;const TM=NM;var RM=function(){return null};RM.isSelectOption=!0;const AM=RM;var DM=p.forwardRef((function(e,t){var n=e.height,o=e.offsetY,r=e.offsetX,i=e.children,a=e.prefixCls,s=e.onInnerResize,l=e.innerProps,c=e.rtl,u=e.extra,d={},f={display:"flex",flexDirection:"column"};return void 0!==o&&(d={height:n,position:"relative",overflow:"hidden"},f=$e($e({},f),{},Ee(Ee(Ee(Ee(Ee({transform:"translateY(".concat(o,"px)")},c?"marginRight":"marginLeft",-r),"position","absolute"),"left",0),"right",0),"top",0))),p.createElement("div",{style:d},p.createElement(LC,{onResize:function(e){e.offsetHeight&&s&&s()}},p.createElement("div",hn({style:f,className:oi()(Ee({},"".concat(a,"-holder-inner"),a)),ref:t},l),i,u)))}));DM.displayName="Filler";const BM=DM;function LM(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]}var zM=p.forwardRef((function(e,t){var n=e.prefixCls,o=e.rtl,r=e.scrollOffset,i=e.scrollRange,a=e.onStartMove,s=e.onStopMove,l=e.onScroll,c=e.horizontal,u=e.spinSize,d=e.containerSize,f=e.style,h=e.thumbStyle,m=Ge(p.useState(!1),2),g=m[0],v=m[1],b=Ge(p.useState(null),2),y=b[0],x=b[1],w=Ge(p.useState(null),2),C=w[0],S=w[1],E=!o,k=p.useRef(),$=p.useRef(),_=Ge(p.useState(!1),2),O=_[0],j=_[1],M=p.useRef(),P=function(){clearTimeout(M.current),j(!0),M.current=setTimeout((function(){j(!1)}),3e3)},I=i-d||0,N=d-u||0,T=p.useMemo((function(){return 0===r||0===I?0:r/I*N}),[r,I,N]),R=p.useRef({top:T,dragging:g,pageY:y,startTop:C});R.current={top:T,dragging:g,pageY:y,startTop:C};var A=function(e){v(!0),x(LM(e,c)),S(R.current.top),a(),e.stopPropagation(),e.preventDefault()};p.useEffect((function(){var e=function(e){e.preventDefault()},t=k.current,n=$.current;return t.addEventListener("touchstart",e),n.addEventListener("touchstart",A),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",A)}}),[]);var D=p.useRef();D.current=I;var B=p.useRef();B.current=N,p.useEffect((function(){if(g){var e,t=function(t){var n=R.current,o=n.dragging,r=n.pageY,i=n.startTop;if(na.cancel(e),o){var a=LM(t,c)-r,s=i;!E&&c?s-=a:s+=a;var u=D.current,d=B.current,f=d?s/d:0,p=Math.ceil(f*u);p=Math.max(p,0),p=Math.min(p,u),e=na((function(){l(p,c)}))}},n=function(){v(!1),s()};return window.addEventListener("mousemove",t),window.addEventListener("touchmove",t),window.addEventListener("mouseup",n),window.addEventListener("touchend",n),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),na.cancel(e)}}}),[g]),p.useEffect((function(){P()}),[r]),p.useImperativeHandle(t,(function(){return{delayHidden:P}}));var L="".concat(n,"-scrollbar"),z={position:"absolute",visibility:O?null:"hidden"},F={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return c?(z.height=8,z.left=0,z.right=0,z.bottom=0,F.height="100%",F.width=u,E?F.left=T:F.right=T):(z.width=8,z.top=0,z.bottom=0,E?z.right=0:z.left=0,F.width="100%",F.height=u,F.top=T),p.createElement("div",{ref:k,className:oi()(L,Ee(Ee(Ee({},"".concat(L,"-horizontal"),c),"".concat(L,"-vertical"),!c),"".concat(L,"-visible"),O)),style:$e($e({},z),f),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:P},p.createElement("div",{ref:$,className:oi()("".concat(L,"-thumb"),Ee({},"".concat(L,"-thumb-moving"),g)),style:$e($e({},F),h),onMouseDown:A}))}));const FM=zM;function HM(e){var t=e.children,n=e.setRef,o=p.useCallback((function(e){n(e)}),[]);return p.cloneElement(t,{ref:o})}const VM=function(){function e(){xt(this,e),Ee(this,"maps",void 0),Ee(this,"id",0),this.maps=Object.create(null)}return Ct(e,[{key:"set",value:function(e,t){this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}}]),e}();const WM="object"===("undefined"==typeof navigator?"undefined":ye(navigator))&&/Firefox/i.test(navigator.userAgent),KM=function(e,t){var n=(0,p.useRef)(!1),o=(0,p.useRef)(null),r=(0,p.useRef)({top:e,bottom:t});return r.current.top=e,r.current.bottom=t,function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=e<0&&r.current.top||e>0&&r.current.bottom;return t&&i?(clearTimeout(o.current),n.current=!1):i&&!n.current||(clearTimeout(o.current),n.current=!0,o.current=setTimeout((function(){n.current=!1}),50)),!n.current&&i}};var qM=20;function UM(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*e;return isNaN(t)&&(t=0),t=Math.max(t,qM),Math.floor(t)}var GM=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],XM=[],YM={overflowY:"auto",overflowAnchor:"none"};function ZM(e,t){var n=e.prefixCls,o=void 0===n?"rc-virtual-list":n,r=e.className,i=e.height,a=e.itemHeight,s=e.fullHeight,l=void 0===s||s,c=e.style,u=e.data,d=e.children,f=e.itemKey,h=e.virtual,m=e.direction,g=e.scrollWidth,v=e.component,b=void 0===v?"div":v,y=e.onScroll,x=e.onVirtualScroll,w=e.onVisibleChange,C=e.innerProps,S=e.extraRender,E=e.styles,k=di(e,GM),$=!(!1===h||!i||!a),_=$&&u&&(a*u.length>i||!!g),O="rtl"===m,j=oi()(o,Ee({},"".concat(o,"-rtl"),O),r),M=u||XM,P=(0,p.useRef)(),I=(0,p.useRef)(),N=Ge((0,p.useState)(0),2),T=N[0],R=N[1],A=Ge((0,p.useState)(0),2),D=A[0],B=A[1],L=Ge((0,p.useState)(!1),2),z=L[0],F=L[1],H=function(){F(!0)},V=function(){F(!1)},W=p.useCallback((function(e){return"function"==typeof f?f(e):null==e?void 0:e[f]}),[f]),K={getKey:W};function q(e){R((function(t){var n=function(e){var t=e;return Number.isNaN(ge.current)||(t=Math.min(t,ge.current)),t=Math.max(t,0)}("function"==typeof e?e(t):e);return P.current.scrollTop=n,n}))}var U=(0,p.useRef)({start:0,end:M.length}),G=(0,p.useRef)(),X=Ge(function(e,t,n){var o=Ge(p.useState(e),2),r=o[0],i=o[1],a=Ge(p.useState(null),2),s=a[0],l=a[1];return p.useEffect((function(){var o=function(e,t,n){var o,r,i=e.length,a=t.length;if(0===i&&0===a)return null;i<a?(o=e,r=t):(o=t,r=e);var s={__EMPTY_ITEM__:!0};function l(e){return void 0!==e?n(e):s}for(var c=null,u=1!==Math.abs(i-a),d=0;d<r.length;d+=1){var f=l(o[d]);if(f!==l(r[d])){c=d,u=u||f!==l(r[d+1]);break}}return null===c?null:{index:c,multiple:u}}(r||[],e||[],t);void 0!==(null==o?void 0:o.index)&&(null==n||n(o.index),l(e[o.index])),i(e)}),[e]),[s]}(M,W),1)[0];G.current=X;var Y=function(e,t,n){var o=Ge(p.useState(0),2),r=o[0],i=o[1],a=(0,p.useRef)(new Map),s=(0,p.useRef)(new VM),l=(0,p.useRef)();function c(){na.cancel(l.current)}function u(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];c();var t=function(){a.current.forEach((function(e,t){if(e&&e.offsetParent){var n=ii(e),o=n.offsetHeight;s.current.get(t)!==o&&s.current.set(t,n.offsetHeight)}})),i((function(e){return e+1}))};e?t():l.current=na(t)}return(0,p.useEffect)((function(){return c}),[]),[function(t,n){var o=e(t);a.current.get(o);n?(a.current.set(o,n),u()):a.current.delete(o)},u,s.current,r]}(W),Z=Ge(Y,4),Q=Z[0],J=Z[1],ee=Z[2],te=Z[3],ne=p.useMemo((function(){if(!$)return{scrollHeight:void 0,start:0,end:M.length-1,offset:void 0};var e;if(!_)return{scrollHeight:(null===(e=I.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:M.length-1,offset:void 0};for(var t,n,o,r=0,s=M.length,l=0;l<s;l+=1){var c=M[l],u=W(c),d=ee.get(u),f=r+(void 0===d?a:d);f>=T&&void 0===t&&(t=l,n=r),f>T+i&&void 0===o&&(o=l),r=f}return void 0===t&&(t=0,n=0,o=Math.ceil(i/a)),void 0===o&&(o=M.length-1),{scrollHeight:r,start:t,end:o=Math.min(o+1,M.length-1),offset:n}}),[_,$,T,M,te,i]),oe=ne.scrollHeight,re=ne.start,ie=ne.end,ae=ne.offset;U.current.start=re,U.current.end=ie;var se=Ge(p.useState({width:0,height:i}),2),le=se[0],ce=se[1],ue=(0,p.useRef)(),de=(0,p.useRef)(),fe=p.useMemo((function(){return UM(le.width,g)}),[le.width,g]),he=p.useMemo((function(){return UM(le.height,oe)}),[le.height,oe]),me=oe-i,ge=(0,p.useRef)(me);ge.current=me;var ve=T<=0,be=T>=me,xe=KM(ve,be),we=function(){return{x:O?-D:D,y:T}},Ce=(0,p.useRef)(we()),Se=nl((function(){if(x){var e=we();Ce.current.x===e.x&&Ce.current.y===e.y||(x(e),Ce.current=e)}}));function ke(e,t){var n=e;t?((0,pe.flushSync)((function(){B(n)})),Se()):q(n)}var _e=function(e){var t=e,n=g-le.width;return t=Math.max(t,0),Math.min(t,n)},Oe=nl((function(e,t){t?((0,pe.flushSync)((function(){B((function(t){return _e(t+(O?-e:e))}))})),Se()):q((function(t){return t+e}))})),je=Ge(function(e,t,n,o,r){var i=(0,p.useRef)(0),a=(0,p.useRef)(null),s=(0,p.useRef)(null),l=(0,p.useRef)(!1),c=KM(t,n),u=(0,p.useRef)(null),d=(0,p.useRef)(null);return[function(t){if(e){na.cancel(d.current),d.current=na((function(){u.current=null}),2);var n=t.deltaX,f=t.deltaY,p=t.shiftKey,h=n,m=f;("sx"===u.current||!u.current&&p&&f&&!n)&&(h=f,m=0,u.current="sx");var g=Math.abs(h),v=Math.abs(m);null===u.current&&(u.current=o&&g>v?"x":"y"),"y"===u.current?function(e,t){na.cancel(a.current),i.current+=t,s.current=t,c(t)||(WM||e.preventDefault(),a.current=na((function(){var e=l.current?10:1;r(i.current*e),i.current=0})))}(t,m):function(e,t){r(t,!0),WM||e.preventDefault()}(t,h)}},function(t){e&&(l.current=t.detail===s.current)}]}($,ve,be,!!g,Oe),2),Me=je[0],Pe=je[1];!function(e,t,n){var o,r=(0,p.useRef)(!1),i=(0,p.useRef)(0),a=(0,p.useRef)(null),s=(0,p.useRef)(null),l=function(e){if(r.current){var t=Math.ceil(e.touches[0].pageY),o=i.current-t;i.current=t,n(o)&&e.preventDefault(),clearInterval(s.current),s.current=setInterval((function(){(!n(o*=.9333333333333333,!0)||Math.abs(o)<=.1)&&clearInterval(s.current)}),16)}},c=function(){r.current=!1,o()},u=function(e){o(),1!==e.touches.length||r.current||(r.current=!0,i.current=Math.ceil(e.touches[0].pageY),a.current=e.target,a.current.addEventListener("touchmove",l),a.current.addEventListener("touchend",c))};o=function(){a.current&&(a.current.removeEventListener("touchmove",l),a.current.removeEventListener("touchend",c))},en((function(){return e&&t.current.addEventListener("touchstart",u),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",u),o(),clearInterval(s.current)}}),[e])}($,P,(function(e,t){return!xe(e,t)&&(Me({preventDefault:function(){},deltaY:e}),!0)})),en((function(){function e(e){$&&e.preventDefault()}var t=P.current;return t.addEventListener("wheel",Me),t.addEventListener("DOMMouseScroll",Pe),t.addEventListener("MozMousePixelScroll",e),function(){t.removeEventListener("wheel",Me),t.removeEventListener("DOMMouseScroll",Pe),t.removeEventListener("MozMousePixelScroll",e)}}),[$]),en((function(){g&&B((function(e){return _e(e)}))}),[le.width,g]);var Ie=function(){var e,t;null===(e=ue.current)||void 0===e||e.delayHidden(),null===(t=de.current)||void 0===t||t.delayHidden()},Ne=function(e,t,n,o,r,i,a,s){var l=p.useRef(),c=Ge(p.useState(null),2),u=c[0],d=c[1];return en((function(){if(u&&u.times<10){if(!e.current)return void d((function(e){return $e({},e)}));i();var s=u.targetAlign,l=u.originAlign,c=u.index,f=u.offset,p=e.current.clientHeight,h=!1,m=s,g=null;if(p){for(var v=s||l,b=0,y=0,x=0,w=Math.min(t.length-1,c),C=0;C<=w;C+=1){var S=r(t[C]);y=b;var E=n.get(S);b=x=y+(void 0===E?o:E)}for(var k="top"===v?f:p-f,$=w;$>=0;$-=1){var _=r(t[$]),O=n.get(_);if(void 0===O){h=!0;break}if((k-=O)<=0)break}switch(v){case"top":g=y-f;break;case"bottom":g=x-p+f;break;default:var j=e.current.scrollTop;y<j?m="top":x>j+p&&(m="bottom")}null!==g&&a(g),g!==u.lastTop&&(h=!0)}h&&d($e($e({},u),{},{times:u.times+1,targetAlign:m,lastTop:g}))}}),[u,e.current]),function(e){if(null!=e){if(na.cancel(l.current),"number"==typeof e)a(e);else if(e&&"object"===ye(e)){var n,o=e.align;n="index"in e?e.index:t.findIndex((function(t){return r(t)===e.key}));var i=e.offset;d({times:0,index:n,offset:void 0===i?0:i,originAlign:o})}}else s()}}(P,M,ee,a,W,(function(){return J(!0)}),q,Ie);p.useImperativeHandle(t,(function(){return{getScrollInfo:we,scrollTo:function(e){var t;(t=e)&&"object"===ye(t)&&("left"in t||"top"in t)?(void 0!==e.left&&B(_e(e.left)),Ne(e.top)):Ne(e)}}})),en((function(){if(w){var e=M.slice(re,ie+1);w(e,M)}}),[re,ie,M]);var Te=function(e,t,n,o){var r=Ge(p.useMemo((function(){return[new Map,[]]}),[e,n.id,o]),2),i=r[0],a=r[1];return function(r){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,l=i.get(r),c=i.get(s);if(void 0===l||void 0===c)for(var u=e.length,d=a.length;d<u;d+=1){var f,p=e[d],h=t(p);i.set(h,d);var m=null!==(f=n.get(h))&&void 0!==f?f:o;if(a[d]=(a[d-1]||0)+m,h===r&&(l=d),h===s&&(c=d),void 0!==l&&void 0!==c)break}return{top:a[l-1]||0,bottom:a[c]}}}(M,W,ee,a),Re=null==S?void 0:S({start:re,end:ie,virtual:_,offsetX:D,offsetY:ae,rtl:O,getSize:Te}),Ae=function(e,t,n,o,r,i,a){var s=a.getKey;return e.slice(t,n+1).map((function(e,n){var a=i(e,t+n,{style:{width:o}}),l=s(e);return p.createElement(HM,{key:l,setRef:function(t){return r(e,t)}},a)}))}(M,re,ie,g,Q,d,K),De=null;i&&(De=$e(Ee({},l?"height":"maxHeight",i),YM),$&&(De.overflowY="hidden",g&&(De.overflowX="hidden"),z&&(De.pointerEvents="none")));var Be={};return O&&(Be.dir="rtl"),p.createElement("div",hn({style:$e($e({},c),{},{position:"relative"}),className:j},Be,k),p.createElement(LC,{onResize:function(e){ce({width:e.width||e.offsetWidth,height:e.height||e.offsetHeight})}},p.createElement(b,{className:"".concat(o,"-holder"),style:De,ref:P,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==T&&q(t),null==y||y(e),Se()},onMouseEnter:Ie},p.createElement(BM,{prefixCls:o,height:oe,offsetX:D,offsetY:ae,scrollWidth:g,onInnerResize:J,ref:I,innerProps:C,rtl:O,extra:Re},Ae))),_&&oe>i&&p.createElement(FM,{ref:ue,prefixCls:o,scrollOffset:T,scrollRange:oe,rtl:O,onScroll:ke,onStartMove:H,onStopMove:V,spinSize:he,containerSize:le.height,style:null==E?void 0:E.verticalScrollBar,thumbStyle:null==E?void 0:E.verticalScrollBarThumb}),_&&g>le.width&&p.createElement(FM,{ref:de,prefixCls:o,scrollOffset:D,scrollRange:g,rtl:O,onScroll:ke,onStartMove:H,onStopMove:V,spinSize:fe,containerSize:le.width,horizontal:!0,style:null==E?void 0:E.horizontalScrollBar,thumbStyle:null==E?void 0:E.horizontalScrollBarThumb}))}var QM=p.forwardRef(ZM);QM.displayName="List";const JM=QM;var eP=["disabled","title","children","style","className"];function tP(e){return"string"==typeof e||"number"==typeof e}var nP=function(e,t){var n=p.useContext(Fj),o=n.prefixCls,r=n.id,i=n.open,a=n.multiple,s=n.mode,l=n.searchValue,c=n.toggleOpen,u=n.notFoundContent,d=n.onPopupScroll,f=p.useContext(_M),h=f.maxCount,m=f.flattenOptions,g=f.onActiveValue,v=f.defaultActiveFirstOption,b=f.onSelect,y=f.menuItemSelectedIcon,x=f.rawValues,w=f.fieldNames,C=f.virtual,S=f.direction,E=f.listHeight,k=f.listItemHeight,$=f.optionRender,_="".concat(o,"-item"),O=dt((function(){return m}),[i,m],(function(e,t){return t[0]&&e[1]!==t[1]})),j=p.useRef(null),M=p.useMemo((function(){return a&&void 0!==h&&(null==x?void 0:x.size)>=h}),[a,h,null==x?void 0:x.size]),P=function(e){e.preventDefault()},I=function(e){var t;null===(t=j.current)||void 0===t||t.scrollTo("number"==typeof e?{index:e}:e)},N=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=O.length,o=0;o<n;o+=1){var r=(e+o*t+n)%n,i=O[r]||{},a=i.group,s=i.data;if(!(a||null!=s&&s.disabled||M))return r}return-1},T=Ge(p.useState((function(){return N(0)})),2),R=T[0],A=T[1],D=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];A(e);var n={source:t?"keyboard":"mouse"},o=O[e];o?g(o.value,e,n):g(null,-1,n)};(0,p.useEffect)((function(){D(!1!==v?N(0):-1)}),[O.length,l]);var B=p.useCallback((function(e){return x.has(e)&&"combobox"!==s}),[s,Ye(x).toString(),x.size]);(0,p.useEffect)((function(){var e,t=setTimeout((function(){if(!a&&i&&1===x.size){var e=Array.from(x)[0],t=O.findIndex((function(t){return t.data.value===e}));-1!==t&&(D(t),I(t))}}));return i&&(null===(e=j.current)||void 0===e||e.scrollTo(void 0)),function(){return clearTimeout(t)}}),[i,l]);var L=function(e){void 0!==e&&b(e,{selected:!x.has(e)}),a||c(!1)};if(p.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case Is.N:case Is.P:case Is.UP:case Is.DOWN:var o=0;if(t===Is.UP?o=-1:t===Is.DOWN?o=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===Is.N?o=1:t===Is.P&&(o=-1)),0!==o){var r=N(R+o,o);I(r),D(r,!0)}break;case Is.ENTER:var a,s=O[R];!s||null!=s&&null!==(a=s.data)&&void 0!==a&&a.disabled||M?L(void 0):L(s.value),i&&e.preventDefault();break;case Is.ESC:c(!1),i&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){I(e)}}})),0===O.length)return p.createElement("div",{role:"listbox",id:"".concat(r,"_list"),className:"".concat(_,"-empty"),onMouseDown:P},u);var z=Object.keys(w).map((function(e){return w[e]})),F=function(e){return e.label};function H(e,t){return{role:e.group?"presentation":"option",id:"".concat(r,"_list_").concat(t)}}var V=function(e){var t=O[e];if(!t)return null;var n=t.data||{},o=n.value,r=t.group,i=Vu(n,!0),a=F(t);return t?p.createElement("div",hn({"aria-label":"string"!=typeof a||r?null:a},i,{key:e},H(t,e),{"aria-selected":B(o)}),o):null},W={role:"listbox",id:"".concat(r,"_list")};return p.createElement(p.Fragment,null,C&&p.createElement("div",hn({},W,{style:{height:0,width:0,overflow:"hidden"}}),V(R-1),V(R),V(R+1)),p.createElement(JM,{itemKey:"key",ref:j,data:O,height:E,itemHeight:k,fullHeight:!1,onMouseDown:P,onScroll:d,virtual:C,direction:S,innerProps:C?null:W},(function(e,t){var n,o=e.group,r=e.groupOption,i=e.data,a=e.label,s=e.value,l=i.key;if(o){var c,u=null!==(c=i.title)&&void 0!==c?c:tP(a)?a.toString():void 0;return p.createElement("div",{className:oi()(_,"".concat(_,"-group")),title:u},void 0!==a?a:l)}var d=i.disabled,f=i.title,h=(i.children,i.style),m=i.className,g=Jl(di(i,eP),z),v=B(s),b=d||!v&&M,x="".concat(_,"-option"),w=oi()(_,x,m,(Ee(n={},"".concat(x,"-grouped"),r),Ee(n,"".concat(x,"-active"),R===t&&!b),Ee(n,"".concat(x,"-disabled"),b),Ee(n,"".concat(x,"-selected"),v),n)),S=F(e),E=!y||"function"==typeof y||v,k="number"==typeof S?S:S||s,O=tP(k)?k.toString():void 0;return void 0!==f&&(O=f),p.createElement("div",hn({},Vu(g),C?{}:H(e,t),{"aria-selected":v,className:w,title:O,onMouseMove:function(){R===t||b||D(t)},onClick:function(){b||L(s)},style:h}),p.createElement("div",{className:"".concat(x,"-content")},"function"==typeof $?$(e,{index:t}):k),p.isValidElement(y)||v,E&&p.createElement(zj,{className:"".concat(_,"-option-state"),customizeIcon:y,customizeIconProps:{value:s,disabled:b,isSelected:v}},v?"✓":null))})))};const oP=p.forwardRef(nP);function rP(e,t){return dM(e).join("").toUpperCase().includes(t)}var iP=0,aP=Qe();var sP=["children","value"],lP=["children"];function cP(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return hc(e).map((function(e,n){if(!p.isValidElement(e)||!e.type)return null;var o=e,r=o.type.isSelectOptGroup,i=o.key,a=o.props,s=a.children,l=di(a,lP);return t||!r?function(e){var t=e,n=t.key,o=t.props,r=o.children,i=o.value;return $e({key:n,value:void 0!==i?i:n,children:r},di(o,sP))}(e):$e($e({key:"__RC_SELECT_GRP__".concat(null===i?n:i,"__"),label:i},l),{},{options:cP(s)})})).filter((function(e){return e}))}const uP=function(e,t,n,o,r){return p.useMemo((function(){var i=e;!e&&(i=cP(t));var a=new Map,s=new Map,l=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(t){for(var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=0;c<t.length;c+=1){var u=t[c];!u[n.options]||i?(a.set(u[n.value],u),l(s,u,n.label),l(s,u,o),l(s,u,r)):e(u[n.options],!0)}}(i),{options:i,valueOptions:a,labelOptions:s}}),[e,t,n,o,r])};function dP(e){var t=p.useRef();t.current=e;var n=p.useCallback((function(){return t.current.apply(t,arguments)}),[]);return n}var fP=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange","maxCount"],pP=["inputValue"],hP=p.forwardRef((function(e,t){var n=e.id,o=e.mode,r=e.prefixCls,i=void 0===r?"rc-select":r,a=e.backfill,s=e.fieldNames,l=e.inputValue,c=e.searchValue,u=e.onSearch,d=e.autoClearSearchValue,f=void 0===d||d,h=e.onSelect,m=e.onDeselect,g=e.dropdownMatchSelectWidth,v=void 0===g||g,b=e.filterOption,y=e.filterSort,x=e.optionFilterProp,w=e.optionLabelProp,C=e.options,S=e.optionRender,E=e.children,k=e.defaultActiveFirstOption,$=e.menuItemSelectedIcon,_=e.virtual,O=e.direction,j=e.listHeight,M=void 0===j?200:j,P=e.listItemHeight,I=void 0===P?20:P,N=e.value,T=e.defaultValue,R=e.labelInValue,A=e.onChange,D=e.maxCount,B=di(e,fP),L=function(e){var t=Ge(p.useState(),2),n=t[0],o=t[1];return p.useEffect((function(){var e;o("rc_select_".concat((aP?(e=iP,iP+=1):e="TEST_OR_SSR",e)))}),[]),e||n}(n),z=MM(o),F=!(C||!E),H=p.useMemo((function(){return(void 0!==b||"combobox"!==o)&&b}),[b,o]),V=p.useMemo((function(){return kM(s,F)}),[JSON.stringify(s),F]),W=Ge(rl("",{value:void 0!==c?c:l,postState:function(e){return e||""}}),2),K=W[0],q=W[1],U=uP(C,E,V,x,w),G=U.valueOptions,X=U.labelOptions,Y=U.options,Z=p.useCallback((function(e){return dM(e).map((function(e){var t,n,o,r,i,a;!function(e){return!e||"object"!==ye(e)}(e)?(o=e.key,n=e.label,t=null!==(a=e.value)&&void 0!==a?a:o):t=e;var s,l=G.get(t);return l&&(void 0===n&&(n=null==l?void 0:l[w||V.label]),void 0===o&&(o=null!==(s=null==l?void 0:l.key)&&void 0!==s?s:t),r=null==l?void 0:l.disabled,i=null==l?void 0:l.title),{label:n,value:t,key:o,disabled:r,title:i}}))}),[V,w,G]),Q=Ge(rl(T,{value:N}),2),J=Q[0],ee=Q[1],te=p.useMemo((function(){var e,t=Z(z&&null===J?[]:J);return"combobox"===o&&function(e){return!e&&0!==e}(null===(e=t[0])||void 0===e?void 0:e.value)?[]:t}),[J,Z,o,z]),ne=function(e,t){var n=p.useRef({values:new Map,options:new Map});return[p.useMemo((function(){var o=n.current,r=o.values,i=o.options,a=e.map((function(e){var t;return void 0===e.label?$e($e({},e),{},{label:null===(t=r.get(e.value))||void 0===t?void 0:t.label}):e})),s=new Map,l=new Map;return a.forEach((function(e){s.set(e.value,e),l.set(e.value,t.get(e.value)||i.get(e.value))})),n.current.values=s,n.current.options=l,a}),[e,t]),p.useCallback((function(e){return t.get(e)||n.current.options.get(e)}),[t])]}(te,G),oe=Ge(ne,2),re=oe[0],ie=oe[1],ae=p.useMemo((function(){if(!o&&1===re.length){var e=re[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return re.map((function(e){var t;return $e($e({},e),{},{label:null!==(t=e.label)&&void 0!==t?t:e.value})}))}),[o,re]),se=p.useMemo((function(){return new Set(re.map((function(e){return e.value})))}),[re]);p.useEffect((function(){if("combobox"===o){var e,t=null===(e=re[0])||void 0===e?void 0:e.value;q(function(e){return null!=e}(t)?String(t):"")}}),[re]);var le=dP((function(e,t){var n,o=null!=t?t:e;return Ee(n={},V.value,e),Ee(n,V.label,o),n})),ce=function(e,t,n,o,r){return p.useMemo((function(){if(!n||!1===o)return e;var i=t.options,a=t.label,s=t.value,l=[],c="function"==typeof o,u=n.toUpperCase(),d=c?o:function(e,t){return r?rP(t[r],u):t[i]?rP(t["children"!==a?a:"label"],u):rP(t[s],u)},f=c?function(e){return $M(e)}:function(e){return e};return e.forEach((function(e){if(e[i])if(d(n,f(e)))l.push(e);else{var t=e[i].filter((function(e){return d(n,f(e))}));t.length&&l.push($e($e({},e),{},Ee({},i,t)))}else d(n,f(e))&&l.push(e)})),l}),[e,o,r,n,t])}(p.useMemo((function(){if("tags"!==o)return Y;var e=Ye(Y);return Ye(re).sort((function(e,t){return e.value<t.value?-1:1})).forEach((function(t){var n=t.value;(function(e){return G.has(e)})(n)||e.push(le(n,t.label))})),e}),[le,Y,G,re,o]),V,K,H,x),ue=p.useMemo((function(){return"tags"!==o||!K||ce.some((function(e){return e[x||"value"]===K}))||ce.some((function(e){return e[V.value]===K}))?ce:[le(K)].concat(Ye(ce))}),[le,x,o,ce,K,V]),de=p.useMemo((function(){return y?Ye(ue).sort((function(e,t){return y(e,t)})):ue}),[ue,y]),fe=p.useMemo((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,o=t.childrenAsData,r=[],i=kM(n,!1),a=i.label,s=i.value,l=i.options,c=i.groupLabel;return function e(t,n){Array.isArray(t)&&t.forEach((function(t){if(n||!(l in t)){var i=t[s];r.push({key:EM(t,r.length),groupOption:n,data:t,label:t[a],value:i})}else{var u=t[c];void 0===u&&o&&(u=t.label),r.push({key:EM(t,r.length),group:!0,data:t,label:u}),e(t[l],!0)}}))}(e,!1),r}(de,{fieldNames:V,childrenAsData:F})}),[de,V,F]),pe=function(e){var t=Z(e);if(ee(t),A&&(t.length!==re.length||t.some((function(e,t){var n;return(null===(n=re[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))){var n=R?t:t.map((function(e){return e.value})),o=t.map((function(e){return $M(ie(e.value))}));A(z?n:n[0],z?o:o[0])}},he=Ge(p.useState(null),2),me=he[0],ge=he[1],ve=Ge(p.useState(0),2),be=ve[0],xe=ve[1],we=void 0!==k?k:"combobox"!==o,Ce=p.useCallback((function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,r=void 0===n?"keyboard":n;xe(t),a&&"combobox"===o&&null!==e&&"keyboard"===r&&ge(String(e))}),[a,o]),Se=function(e,t,n){var o=function(){var t,n=ie(e);return[R?{label:null==n?void 0:n[V.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,$M(n)]};if(t&&h){var r=Ge(o(),2),i=r[0],a=r[1];h(i,a)}else if(!t&&m&&"clear"!==n){var s=Ge(o(),2),l=s[0],c=s[1];m(l,c)}},ke=dP((function(e,t){var n,r=!z||t.selected;n=r?z?[].concat(Ye(re),[e]):[e]:re.filter((function(t){return t.value!==e})),pe(n),Se(e,r),"combobox"===o?ge(""):MM&&!f||(q(""),ge(""))})),_e=p.useMemo((function(){var e=!1!==_&&!1!==v;return $e($e({},U),{},{flattenOptions:fe,onActiveValue:Ce,defaultActiveFirstOption:we,onSelect:ke,menuItemSelectedIcon:$,rawValues:se,fieldNames:V,virtual:e,direction:O,listHeight:M,listItemHeight:I,childrenAsData:F,maxCount:D,optionRender:S})}),[D,U,fe,Ce,we,ke,$,se,V,_,v,O,M,I,F,S]);return p.createElement(_M.Provider,{value:_e},p.createElement(IM,hn({},B,{id:L,prefixCls:i,ref:t,omitDomProps:pP,mode:o,displayValues:ae,onDisplayValuesChange:function(e,t){pe(e);var n=t.type,o=t.values;"remove"!==n&&"clear"!==n||o.forEach((function(e){Se(e.value,!1,n)}))},direction:O,searchValue:K,onSearch:function(e,t){if(q(e),ge(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===o&&pe(e),null==u||u(e));else{var n=(e||"").trim();if(n){var r=Array.from(new Set([].concat(Ye(se),[n])));pe(r),Se(n,!0),q("")}}},autoClearSearchValue:f,onSearchSplit:function(e){var t=e;"tags"!==o&&(t=e.map((function(e){var t=X.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat(Ye(se),Ye(t))));pe(n),n.forEach((function(e){Se(e,!0)}))},dropdownMatchSelectWidth:v,OptionList:oP,emptyOptions:!fe.length,activeValue:me,activeDescendantId:"".concat(L,"_list_").concat(be)})))})),mP=hP;mP.Option=AM,mP.OptGroup=TM;const gP=mP,vP=()=>{const[,e]=Oa(),t=new Dr(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return p.createElement("svg",{style:t,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},p.createElement("g",{fill:"none",fillRule:"evenodd"},p.createElement("g",{transform:"translate(24 31.67)"},p.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),p.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),p.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),p.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),p.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),p.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),p.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},p.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),p.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},bP=()=>{const[,e]=Oa(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:o,colorBgContainer:r}=e,{borderColor:i,shadowColor:a,contentColor:s}=(0,p.useMemo)((()=>({borderColor:new Dr(t).onBackground(r).toHexShortString(),shadowColor:new Dr(n).onBackground(r).toHexShortString(),contentColor:new Dr(o).onBackground(r).toHexShortString()})),[t,n,o,r]);return p.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},p.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},p.createElement("ellipse",{fill:a,cx:"32",cy:"33",rx:"32",ry:"7"}),p.createElement("g",{fillRule:"nonzero",stroke:i},p.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),p.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:s}))))},yP=e=>{const{componentCls:t,margin:n,marginXS:o,marginXL:r,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:o,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:o,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:r,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:o,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},xP=hl("Empty",(e=>{const{componentCls:t,controlHeightLG:n,calc:o}=e,r=Js(e,{emptyImgCls:`${t}-img`,emptyImgHeight:o(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:o(n).mul(.875).equal()});return[yP(r)]}));const wP=p.createElement(vP,null),CP=p.createElement(bP,null),SP=e=>{var{className:t,rootClassName:n,prefixCls:o,image:r=wP,description:i,children:a,imageStyle:s,style:l}=e,c=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:u,direction:d,empty:f}=p.useContext(He),h=u("empty",o),[m,g,v]=xP(h),[b]=Ql("Empty"),y=void 0!==i?i:null==b?void 0:b.description,x="string"==typeof y?y:"empty";let w=null;return w="string"==typeof r?p.createElement("img",{alt:x,src:r}):r,m(p.createElement("div",Object.assign({className:oi()(g,v,h,null==f?void 0:f.className,{[`${h}-normal`]:r===CP,[`${h}-rtl`]:"rtl"===d},t,n),style:Object.assign(Object.assign({},null==f?void 0:f.style),l)},c),p.createElement("div",{className:`${h}-image`,style:s},w),y&&p.createElement("div",{className:`${h}-description`},y),a&&p.createElement("div",{className:`${h}-footer`},a)))};SP.PRESENTED_IMAGE_DEFAULT=wP,SP.PRESENTED_IMAGE_SIMPLE=CP;const EP=SP,kP=e=>{const{componentName:t}=e,{getPrefixCls:n}=(0,p.useContext)(He),o=n("empty");switch(t){case"Table":case"List":return h().createElement(EP,{image:EP.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return h().createElement(EP,{image:EP.PRESENTED_IMAGE_SIMPLE,className:`${o}-small`});default:return h().createElement(EP,null)}},$P=function(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}})(t)},_P=new _o("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),OP=new _o("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),jP=new _o("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),MP=new _o("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),PP=new _o("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),IP=new _o("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),NP=new _o("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),TP=new _o("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),RP={"slide-up":{inKeyframes:_P,outKeyframes:OP},"slide-down":{inKeyframes:jP,outKeyframes:MP},"slide-left":{inKeyframes:PP,outKeyframes:IP},"slide-right":{inKeyframes:NP,outKeyframes:TP}},AP=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:i}=RP[t];return[jf(o,r,i,e.motionDurationMid),{[`\n      ${o}-enter,\n      ${o}-appear\n    `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},DP=new _o("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),BP=new _o("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),LP=new _o("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),zP=new _o("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),FP=new _o("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),HP=new _o("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),VP={"move-up":{inKeyframes:new _o("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new _o("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:DP,outKeyframes:BP},"move-left":{inKeyframes:LP,outKeyframes:zP},"move-right":{inKeyframes:FP,outKeyframes:HP}},WP=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:i}=VP[t];return[jf(o,r,i,e.motionDurationMid),{[`\n        ${o}-enter,\n        ${o}-appear\n      `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},KP=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:o,optionPadding:r}=e;return{position:"relative",display:"block",minHeight:t,padding:r,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:o,boxSizing:"border-box"}},qP=e=>{const{antCls:t,componentCls:n}=e,o=`${n}-item`,r=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},Ia(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`\n          ${r}${s}bottomLeft,\n          ${i}${s}bottomLeft\n        `]:{animationName:_P},[`\n          ${r}${s}topLeft,\n          ${i}${s}topLeft,\n          ${r}${s}topRight,\n          ${i}${s}topRight\n        `]:{animationName:jP},[`${a}${s}bottomLeft`]:{animationName:OP},[`\n          ${a}${s}topLeft,\n          ${a}${s}topRight\n        `]:{animationName:MP},"&-hidden":{display:"none"},[`${o}`]:Object.assign(Object.assign({},KP(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Pa),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${o}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${o}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${o}-option-state`]:{color:e.colorPrimary},[`&:has(+ ${o}-option-selected:not(${o}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${o}-option-selected:not(${o}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${o}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},KP(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},AP(e,"slide-up"),AP(e,"slide-down"),WP(e,"move-up"),WP(e,"move-down")]},UP=(e,t)=>{const{componentCls:n,iconCls:o}=e,r=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,a=(e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:o}=e;return e.calc(n).sub(t).div(2).sub(o).equal()})(e);return{[`${n}-multiple${t?`${n}-${t}`:""}`]:{[r]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:e.calc(2).mul(2).equal(),paddingBlock:e.calc(a).sub(2).equal(),borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${qt(2)} 0`,lineHeight:qt(i),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:i,marginTop:2,marginBottom:2,lineHeight:qt(e.calc(i).sub(e.calc(e.lineWidth).mul(2)).equal()),borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,marginInlineEnd:e.calc(2).mul(2).equal(),paddingInlineStart:e.paddingXS,paddingInlineEnd:e.calc(e.paddingXS).div(2).equal(),[`${n}-disabled&`]:{color:e.multipleItemColorDisabled,borderColor:e.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(e.paddingXS).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},{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"}}),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${o}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${r}-item + ${r}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${r}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(a).equal(),"\n          &-input,\n          &-mirror\n        ":{height:i,fontFamily:e.fontFamily,lineHeight:qt(i),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}};function GP(e,t){const{componentCls:n}=e,o={[`${n}-multiple${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`\n        &${n}-show-arrow ${n}-selector,\n        &${n}-allow-clear ${n}-selector\n      `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[UP(e,t),o]}const XP=e=>{const{componentCls:t}=e,n=Js(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),o=Js(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[GP(e),GP(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},GP(o,"lg")]};function YP(e,t){const{componentCls:n,inputPaddingHorizontalBase:o,borderRadius:r}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal();return{[`${n}-single${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},Ia(e,!0)),{display:"flex",borderRadius:r,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:o,insetInlineEnd:o,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[`\n          ${n}-selection-item,\n          ${n}-selection-placeholder\n        `]:{padding:0,lineHeight:qt(i),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n        &${n}-show-arrow ${n}-selection-item,\n        &${n}-show-arrow ${n}-selection-placeholder\n      `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${qt(o)}`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:qt(i)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${qt(o)}`,"&:after":{display:"none"}}}}}}}function ZP(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[YP(e),YP(Js(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${qt(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`\n            &${t}-show-arrow ${t}-selection-item,\n            &${t}-show-arrow ${t}-selection-placeholder\n          `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},YP(Js(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const QP=(e,t)=>{const{componentCls:n,antCls:o,controlOutlineWidth:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${qt(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${o}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${qt(r)} ${t.activeShadowColor}`,outline:0}}}},JP=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},QP(e,t))}),eI=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},QP(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),JP(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),JP(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeShadowColor:e.colorWarningOutline})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${qt(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),tI=(e,t)=>{const{componentCls:n,antCls:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${qt(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${o}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},nI=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},tI(e,t))}),oI=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},tI(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),nI(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),nI(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${qt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),rI=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",borderColor:"transparent"},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${qt(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}),iI=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},eI(e)),oI(e)),rI(e))}),aI=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},sI=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},lI=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:o,iconCls:r}=e;return{[n]:Object.assign(Object.assign({},Ia(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},aI(e)),sI(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Pa),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Pa),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},{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"}}),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[r]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-arrow:not(:last-child)`]:{opacity:0}}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(o).add(e.fontSize).add(e.paddingXS).equal()}}}},cI=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},lI(e),ZP(e),XP(e),qP(e),{[`${t}-rtl`]:{direction:"rtl"}},cu(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},uI=hl("Select",((e,t)=>{let{rootPrefixCls:n}=t;const o=Js(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[cI(o),iI(o)]}),(e=>{const{fontSize:t,lineHeight:n,controlHeight:o,controlPaddingHorizontal:r,zIndexPopupBase:i,colorText:a,fontWeightStrong:s,controlItemBgActive:l,controlItemBgHover:c,colorBgContainer:u,colorFillSecondary:d,controlHeightLG:f,controlHeightSM:p,colorBgContainerDisabled:h,colorTextDisabled:m}=e;return{zIndexPopup:i+50,optionSelectedColor:a,optionSelectedFontWeight:s,optionSelectedBg:l,optionActiveBg:c,optionPadding:`${(o-t*n)/2}px ${r}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:u,clearBg:u,singleItemHeightLG:f,multipleItemBg:d,multipleItemBorderColor:"transparent",multipleItemHeight:p,multipleItemHeightLG:o,multipleSelectorBgDisabled:h,multipleItemColorDisabled:m,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize)}}),{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}}),dI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};var fI=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:dI}))};const pI=p.forwardRef(fI);const hI="SECRET_COMBOBOX_MODE_DO_NOT_USE",mI=(e,t)=>{var n;const{prefixCls:o,bordered:r,className:i,rootClassName:a,getPopupContainer:s,popupClassName:l,dropdownClassName:c,listHeight:u=256,placement:d,listItemHeight:f,size:h,disabled:m,notFoundContent:g,status:v,builtinPlacements:b,dropdownMatchSelectWidth:y,popupMatchSelectWidth:x,direction:w,style:C,allowClear:S,variant:E,dropdownStyle:k,transitionName:$,tagRender:_,maxCount:O}=e,j=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount"]),{getPopupContainer:M,getPrefixCls:P,renderEmpty:I,direction:N,virtual:T,popupMatchSelectWidth:R,popupOverflow:A,select:D}=p.useContext(He),[,B]=Oa(),L=null!=f?f:null==B?void 0:B.controlHeight,z=P("select",o),F=P(),H=null!=w?w:N,{compactSize:V,compactItemClassnames:W}=wc(z,H),[K,q]=vk(E,r),U=Ws(z),[G,X,Y]=uI(z,U),Z=p.useMemo((()=>{const{mode:t}=e;if("combobox"!==t)return t===hI?"combobox":t}),[e.mode]),Q="multiple"===Z||"tags"===Z,J=function(e,t){return void 0!==t?t:null!==e}(e.suffixIcon,e.showArrow),ee=null!==(n=null!=x?x:y)&&void 0!==n?n:R,{status:te,hasFeedback:ne,isFormItemInput:oe,feedbackIcon:re}=p.useContext(bf),ie=zE(te,v);let ae;ae=void 0!==g?g:"combobox"===Z?null:(null==I?void 0:I("Select"))||p.createElement(kP,{componentName:"Select"});const{suffixIcon:se,itemIcon:le,removeIcon:ce,clearIcon:ue}=function(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:o,removeIcon:r,loading:i,multiple:a,hasFeedback:s,prefixCls:l,showSuffixIcon:c,feedbackIcon:u,showArrow:d,componentName:f}=e;const h=null!=n?n:p.createElement(bs,null),m=e=>null!==t||s||d?p.createElement(p.Fragment,null,!1!==c&&e,s&&u):null;let g=null;if(void 0!==t)g=m(t);else if(i)g=m(p.createElement(Ms,{spin:!0}));else{const e=`${l}-suffix`;g=t=>{let{open:n,showSearch:o}=t;return m(n&&o?p.createElement(c$,{className:e}):p.createElement(pI,{className:e}))}}let v=null;v=void 0!==o?o:a?p.createElement(rE,null):null;let b=null;return b=void 0!==r?r:p.createElement(ws,null),{clearIcon:h,suffixIcon:g,itemIcon:v,removeIcon:b}}(Object.assign(Object.assign({},j),{multiple:Q,hasFeedback:ne,feedbackIcon:re,showSuffixIcon:J,prefixCls:z,componentName:"Select"})),de=!0===S?{clearIcon:ue}:S,fe=Jl(j,["suffixIcon","itemIcon"]),pe=oi()(l||c,{[`${z}-dropdown-${H}`]:"rtl"===H},a,Y,U,X),he=pc((e=>{var t;return null!==(t=null!=h?h:V)&&void 0!==t?t:e})),me=p.useContext(Xr),ge=null!=m?m:me,ve=oi()({[`${z}-lg`]:"large"===he,[`${z}-sm`]:"small"===he,[`${z}-rtl`]:"rtl"===H,[`${z}-${K}`]:q,[`${z}-in-form-item`]:oe},LE(z,ie,ne),W,null==D?void 0:D.className,i,a,Y,U,X),be=p.useMemo((()=>void 0!==d?d:"rtl"===H?"bottomRight":"bottomLeft"),[d,H]),[ye]=Ys("SelectLike",null==k?void 0:k.zIndex);return G(p.createElement(gP,Object.assign({ref:t,virtual:T,showSearch:null==D?void 0:D.showSearch},fe,{style:Object.assign(Object.assign({},null==D?void 0:D.style),C),dropdownMatchSelectWidth:ee,transitionName:Yl(F,"slide-up",$),builtinPlacements:$P(b,A),listHeight:u,listItemHeight:L,mode:Z,prefixCls:z,placement:be,direction:H,suffixIcon:se,menuItemSelectedIcon:le,removeIcon:ce,allowClear:de,notFoundContent:ae,className:ve,getPopupContainer:s||M,dropdownClassName:pe,disabled:ge,dropdownStyle:Object.assign(Object.assign({},k),{zIndex:ye}),maxCount:Q?O:void 0,tagRender:Q?_:void 0})))},gI=p.forwardRef(mI),vI=fp(gI);gI.SECRET_COMBOBOX_MODE_DO_NOT_USE=hI,gI.Option=AM,gI.OptGroup=TM,gI._InternalPanelDoNotUseOrYouWillBeFired=vI;const bI=gI;var yI=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],xI=p.forwardRef((function(e,t){var n,o=e.prefixCls,r=void 0===o?"rc-switch":o,i=e.className,a=e.checked,s=e.defaultChecked,l=e.disabled,c=e.loadingIcon,u=e.checkedChildren,d=e.unCheckedChildren,f=e.onClick,h=e.onChange,m=e.onKeyDown,g=di(e,yI),v=Ge(rl(!1,{value:a,defaultValue:s}),2),b=v[0],y=v[1];function x(e,t){var n=b;return l||(y(n=e),null==h||h(n,t)),n}var w=oi()(r,i,(Ee(n={},"".concat(r,"-checked"),b),Ee(n,"".concat(r,"-disabled"),l),n));return p.createElement("button",hn({},g,{type:"button",role:"switch","aria-checked":b,disabled:l,className:w,ref:t,onKeyDown:function(e){e.which===Is.LEFT?x(!1,e):e.which===Is.RIGHT&&x(!0,e),null==m||m(e)},onClick:function(e){var t=x(!b,e);null==f||f(t,e)}}),c,p.createElement("span",{className:"".concat(r,"-inner")},p.createElement("span",{className:"".concat(r,"-inner-checked")},u),p.createElement("span",{className:"".concat(r,"-inner-unchecked")},d)))}));xI.displayName="Switch";const wI=xI,CI=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:o,trackMinWidthSM:r,innerMinMarginSM:i,innerMaxMarginSM:a,handleSizeSM:s,calc:l}=e,c=`${t}-inner`,u=qt(l(s).add(l(o).mul(2)).equal()),d=qt(l(a).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:r,height:n,lineHeight:qt(n),[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${c}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:l(l(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${qt(l(s).add(o).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(e.marginXXS).div(2).equal(),marginInlineEnd:l(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:l(e.marginXXS).div(2).equal()}}}}}}},SI=e=>{const{componentCls:t,handleSize:n,calc:o}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:o(o(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},EI=e=>{const{componentCls:t,trackPadding:n,handleBg:o,handleShadow:r,handleSize:i,calc:a}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:n,insetInlineStart:n,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:o,borderRadius:a(i).div(2).equal(),boxShadow:r,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${qt(a(i).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},kI=e=>{const{componentCls:t,trackHeight:n,trackPadding:o,innerMinMargin:r,innerMaxMargin:i,handleSize:a,calc:s}=e,l=`${t}-inner`,c=qt(s(a).add(s(o).mul(2)).equal()),u=qt(s(i).mul(2).equal());return{[t]:{[l]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:r,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${l}-checked, ${l}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${c} - ${u})`,marginInlineEnd:`calc(100% - ${c} + ${u})`},[`${l}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:r,paddingInlineEnd:i,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${c} + ${u})`,marginInlineEnd:`calc(-100% + ${c} - ${u})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:s(o).mul(2).equal(),marginInlineEnd:s(o).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:s(o).mul(-1).mul(2).equal(),marginInlineEnd:s(o).mul(2).equal()}}}}}},$I=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:o}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ia(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:o,height:n,lineHeight:`${qt(n)}`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),Aa(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},_I=hl("Switch",(e=>{const t=Js(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[$I(t),kI(t),EI(t),SI(t),CI(t)]}),(e=>{const{fontSize:t,lineHeight:n,controlHeight:o,colorWhite:r}=e,i=t*n,a=o/2,s=i-4,l=a-4;return{trackHeight:i,trackHeightSM:a,trackMinWidth:2*s+8,trackMinWidthSM:2*l+4,trackPadding:2,handleBg:r,handleSize:s,handleSizeSM:l,handleShadow:`0 2px 4px 0 ${new Dr("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+2+4,innerMinMarginSM:l/2,innerMaxMarginSM:l+2+4}}));const OI=p.forwardRef(((e,t)=>{const{prefixCls:n,size:o,disabled:r,loading:i,className:a,rootClassName:s,style:l,checked:c,value:u,defaultChecked:d,defaultValue:f,onChange:h}=e,m=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[g,v]=rl(!1,{value:null!=c?c:u,defaultValue:null!=d?d:f}),{getPrefixCls:b,direction:y,switch:x}=p.useContext(He),w=p.useContext(Xr),C=(null!=r?r:w)||i,S=b("switch",n),E=p.createElement("div",{className:`${S}-handle`},i&&p.createElement(Ms,{className:`${S}-loading-icon`})),[k,$,_]=_I(S),O=pc(o),j=oi()(null==x?void 0:x.className,{[`${S}-small`]:"small"===O,[`${S}-loading`]:i,[`${S}-rtl`]:"rtl"===y},a,s,$,_),M=Object.assign(Object.assign({},null==x?void 0:x.style),l);return k(p.createElement(fc,{component:"Switch"},p.createElement(wI,Object.assign({},m,{checked:g,onChange:function(){v(arguments.length<=0?void 0:arguments[0]),null==h||h.apply(void 0,arguments)},prefixCls:S,className:j,style:M,disabled:C,ref:t,loadingIcon:E}))))}));OI.__ANT_SWITCH=!0;const jI=OI,MI=({settings:e,onChange:t})=>{const{url:n="",headers:o=[{}],body:r=[{}],show_empty_fields:i=!1,method:s=null,body_format:c=null}=e,{properties:u}=DI("webhook"),{ntfmSiteUrl:d}=eE,f=(e,n)=>{t({[e]:n})};return(0,a.jsxs)(Np,{vertical:!0,gap:10,children:[(0,a.jsx)(Yk.Title,{level:5,className:"ntfm-custom-title",children:(0,l.__)("Webhook Settings","notification-master")}),(0,a.jsxs)(Yk.Text,{type:"secondary",children:[(0,l.__)("Read the documentation to learn more about how to setup webhooks.","notification-master")," ",(0,a.jsx)("a",{href:`${d}/docs/webhook/`,target:"_blank",children:(0,l.__)("Find out more","notification-master")})]}),(0,a.jsxs)("div",{className:"notification-master__integration--settings",children:[(0,a.jsxs)("div",{className:oi()("notification-master__integration--settings__field",{required:u.url.required}),children:[(0,a.jsx)(Yk.Title,{level:5,className:"notification-master__integration--settings__field__title",children:(0,l.__)("URL","notification-master")}),(0,a.jsx)(Yk.Text,{type:"secondary",style:{fontSize:"12px"},className:"notification-master__integration--settings__field__description",children:(0,l.__)("You can use any URL Merge Tags.")}),(0,a.jsx)(p$,{value:n,onChange:e=>f("url",e.target.value),addonAfter:(0,a.jsx)(Tj,{}),placeholder:"https://example.com/webhook"})]}),(0,a.jsxs)("div",{className:oi()("notification-master__integration--settings__field",{required:u.method.required}),children:[(0,a.jsx)(Yk.Title,{level:5,className:"notification-master__integration--settings__field__title",children:(0,l.__)("Method","notification-master")}),(0,a.jsx)(bI,{value:s,onChange:e=>f("method",e),placeholder:"Select Method",options:[{label:"GET",value:"GET"},{label:"POST",value:"POST"},{label:"PUT",value:"PUT"},{label:"PATCH",value:"PATCH"},{label:"DELETE",value:"DELETE"}],style:{width:"100%"}})]}),(0,a.jsxs)("div",{className:oi()("notification-master__integration--settings__field",{required:u.headers.required}),children:[(0,a.jsx)(Yk.Title,{level:5,className:"notification-master__integration--settings__field__title",children:(0,l.__)("Headers","notification-master")}),(0,a.jsxs)("div",{className:"notification-master__integration--settings__field__list",children:[(0,Up.map)(o,((e,t)=>(0,a.jsxs)("div",{className:"notification-master__integration--settings__field__list__item",children:[(0,a.jsx)(p$,{value:e.key,onChange:e=>f("headers",o.map(((n,o)=>o===t?{...n,key:e.target.value}:n))),placeholder:(0,l.__)("Key","notification-master"),className:"notification-master__integration--settings__field__list__item__input",addonAfter:(0,a.jsx)(Tj,{})}),(0,a.jsx)(p$,{value:e.value,onChange:e=>f("headers",o.map(((n,o)=>o===t?{...n,value:e.target.value}:n))),placeholder:(0,l.__)("Value","notification-master"),className:"notification-master__integration--settings__field__list__item__input",addonAfter:(0,a.jsx)(Tj,{})}),(0,a.jsx)(gu,{type:"link",danger:!0,icon:(0,a.jsx)(j$,{}),onClick:()=>f("headers",o.filter(((e,n)=>n!==t)))})]},t))),(0,a.jsx)(gu,{onClick:()=>f("headers",[...o,{key:"",value:""}]),block:!0,type:"dashed",size:"large",children:(0,l.__)("Add Header","notification-master")})]})]}),(0,a.jsxs)("div",{className:oi()("notification-master__integration--settings__field",{required:u.body.required}),children:[(0,a.jsx)(Yk.Title,{level:5,className:"notification-master__integration--settings__field__title",children:(0,l.__)("Body","notification-master")}),(0,a.jsxs)("div",{className:"notification-master__integration--settings__field__list",children:[(0,Up.map)(r,((e,t)=>(0,a.jsxs)("div",{className:"notification-master__integration--settings__field__list__item",children:[(0,a.jsx)(p$,{value:e.key,onChange:e=>f("body",r.map(((n,o)=>o===t?{...n,key:e.target.value}:n))),placeholder:(0,l.__)("Key","notification-master"),className:"notification-master__integration--settings__field__list__item__input",addonAfter:(0,a.jsx)(Tj,{})}),(0,a.jsx)(p$,{value:e.value,onChange:e=>f("body",r.map(((n,o)=>o===t?{...n,value:e.target.value}:n))),placeholder:(0,l.__)("Value","notification-master"),className:"notification-master__integration--settings__field__list__item__input",addonAfter:(0,a.jsx)(Tj,{})}),(0,a.jsx)(gu,{type:"link",danger:!0,icon:(0,a.jsx)(j$,{}),onClick:()=>f("body",r.filter(((e,n)=>n!==t)))})]},t))),(0,a.jsx)(gu,{onClick:()=>f("body",[...r,{key:"",value:""}]),block:!0,type:"dashed",size:"large",children:(0,l.__)("Add Field","notification-master")})]})]}),["POST","PUT","PATCH"].includes(s)&&(0,a.jsxs)("div",{className:oi()("notification-master__integration--settings__field",{required:u.body_format.required}),children:[(0,a.jsx)(Yk.Title,{level:5,className:"notification-master__integration--settings__field__title",children:(0,l.__)("Format","notification-master")}),(0,a.jsx)(bI,{value:c,onChange:e=>f("body_format",e),placeholder:(0,l.__)("Select Format","notification-master"),options:[{label:"JSON",value:"json"},{label:"Form Data",value:"form-data"}],style:{width:"100%"}})]}),(0,a.jsxs)("div",{className:oi()("notification-master__integration--settings__field",{required:u.show_empty_fields.required,inline:!0}),children:[(0,a.jsx)(Yk.Title,{level:5,className:"notification-master__integration--settings__field__title",children:(0,l.__)("Show Empty Fields","notification-master")}),(0,a.jsx)(jI,{checked:i,onChange:e=>f("show_empty_fields",e)})]})]})]})};(0,c.addFilter)("NotificationMaster.Integration","NotificationMaster.WebhookIntegration",((e,t)=>"webhook"===t?{...e,component:MI,available:!0}:e));const PI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.3 506.3L781.7 405.6a7.23 7.23 0 00-11.7 5.7V476H548V254h64.8c6 0 9.4-7 5.7-11.7L517.7 114.7a7.14 7.14 0 00-11.3 0L405.6 242.3a7.23 7.23 0 005.7 11.7H476v222H254v-64.8c0-6-7-9.4-11.7-5.7L114.7 506.3a7.14 7.14 0 000 11.3l127.5 100.8c4.7 3.7 11.7.4 11.7-5.7V548h222v222h-64.8c-6 0-9.4 7-5.7 11.7l100.8 127.5c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H548V548h222v64.8c0 6 7 9.4 11.7 5.7l127.5-100.8a7.3 7.3 0 00.1-11.4z"}}]},name:"drag",theme:"outlined"};var II=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:PI}))};const NI=p.forwardRef(II);var TI=n(901);const RI=({settings:e,onChange:t})=>{const{url:n="",message:o={title:"",title_link:"",description:"",content:"",author:{name:"",url:"",icon_url:""},fields:[{name:"",value:"",inline:!0}]}}=e,{properties:r}=DI("discord"),{toggleMergeTags:i}=(0,u.useDispatch)("notification-master/core"),{ntfmSiteUrl:s}=eE,c=(e,n)=>{t({message:{...o,[e]:n}})},d=(e,t,n)=>{const r=[...o.fields];r[e]={...r[e],[t]:n},c("fields",r)};return(0,a.jsxs)(Np,{vertical:!0,gap:10,children:[(0,a.jsx)(Yk.Title,{level:5,className:"ntfm-custom-title",children:(0,l.__)("Discord Settings","notification-master")}),(0,a.jsxs)(Yk.Text,{type:"secondary",children:[(0,l.__)("Read the documentation to learn more about how to setup Discord Webhook.","notification-master")," ",(0,a.jsx)("a",{href:`${s}/docs/discord/`,target:"_blank",children:(0,l.__)("Find out more","notification-master")})]}),(0,a.jsxs)("div",{className:"notification-master__integration--settings",children:[(0,a.jsxs)("div",{className:oi()("notification-master__integration--settings__field",{required:r.url.required}),children:[(0,a.jsx)(Yk.Title,{level:5,className:"notification-master__integration--settings__field__title",children:(0,l.__)("URL","notification-master")}),(0,a.jsx)(p$,{value:n,onChange:e=>{return"url",n=e.target.value,void t({url:n});var n},placeholder:"https://example.com/webhook"})]}),(0,a.jsxs)("div",{style:{width:"100%"},children:[(0,a.jsx)(Yk.Title,{level:5,className:"notification-master__integration--settings__field__title required",children:(0,l.__)("Message","notification-master")}),(0,a.jsxs)("div",{style:{padding:"10px 20px"},children:[(0,a.jsxs)("div",{className:"notification-master__integration--settings__field",children:[(0,a.jsx)(Yk.Title,{level:5,className:"notification-master__integration--settings__field__title",children:(0,l.__)("Title","notification-master")}),(0,a.jsx)(p$,{value:o.title,onChange:e=>c("title",e.target.value),placeholder:(0,l.__)("Title","notification-master"),addonAfter:(0,a.jsx)(Tj,{})})]}),(0,a.jsxs)("div",{className:"notification-master__integration--settings__field",children:[(0,a.jsx)(Yk.Title,{level:5,className:"notification-master__integration--settings__field__title",children:(0,l.__)("Title Link","notification-master")}),(0,a.jsx)(p$,{value:o.title_link,onChange:e=>c("title_link",e.target.value),placeholder:(0,l.__)("Title Link","notification-master"),addonAfter:(0,a.jsx)(Tj,{})})]}),(0,a.jsxs)("div",{className:"notification-master__integration--settings__field",children:[(0,a.jsx)(Yk.Title,{level:5,className:"notification-master__integration--settings__field__title",children:(0,l.__)("Description","notification-master")}),(0,a.jsx)(p$,{value:o.description,onChange:e=>c("description",e.target.value),placeholder:(0,l.__)("Description","notification-master"),addonAfter:(0,a.jsx)(Tj,{})})]}),(0,a.jsxs)("div",{className:"notification-master__integration--settings__field",children:[(0,a.jsx)(Yk.Title,{level:5,className:"notification-master__integration--settings__field__title",children:(0,l.__)("Content","notification-master")}),(0,a.jsx)(Yk.Text,{type:"secondary",style:{fontSize:"12px"},children:(0,l.__)("This will be the main content of the message.","notification-master")}),(0,a.jsx)(p$,{value:o.content,onChange:e=>c("content",e.target.value),placeholder:(0,l.__)("Content","notification-master"),addonAfter:(0,a.jsx)(Tj,{})})]}),(0,a.jsxs)("div",{className:"notification-master__integration--settings__field",children:[(0,a.jsx)(Yk.Title,{level:5,className:"notification-master__integration--settings__field__title",children:(0,l.__)("Author","notification-master")}),(0,a.jsxs)("div",{className:"notification-master__integration--settings__field__list",children:[(0,a.jsxs)("div",{className:"notification-master__integration--settings__field__list__item",style:{flexDirection:"column",alignItems:"flex-start",gap:"5px"},children:[(0,a.jsx)(gu,{onClick:()=>i(!0),children:(0,l.__)("Merge Tags","notification-master")}),(0,a.jsx)(Yk.Text,{type:"secondary",style:{fontSize:"12px"},children:(0,l.__)("Allows you to add dynamic content to the author.","notification-master")})]}),(0,a.jsxs)("div",{className:"notification-master__integration--settings__field__list__item",children:[(0,a.jsx)(p$,{value:o.author.name,onChange:e=>c("author",{...o.author,name:e.target.value}),placeholder:(0,l.__)("Name","notification-master")}),(0,a.jsx)(p$,{value:o.author.url,onChange:e=>c("author",{...o.author,url:e.target.value}),placeholder:(0,l.__)("URL","notification-master")}),(0,a.jsx)(p$,{value:o.author.icon_url,onChange:e=>c("author",{...o.author,icon_url:e.target.value}),placeholder:(0,l.__)("Icon URL","notification-master")})]})]}),(0,a.jsxs)("div",{className:"notification-master__integration--settings__field",children:[(0,a.jsx)(Yk.Title,{level:5,className:"notification-master__integration--settings__field__title",children:(0,l.__)("Fields","notification-master")}),(0,a.jsxs)("div",{className:"notification-master__integration--settings__field__list",children:[(0,a.jsx)(gu,{onClick:()=>i(!0),style:{marginBottom:"10px",alignSelf:"flex-end"},children:(0,l.__)("Merge Tags","notification-master")}),(0,a.jsx)(TI.ReactSortable,{list:o.fields,setList:e=>c("fields",e),animation:200,children:(0,Up.map)(o.fields,((e,t)=>(0,a.jsxs)("div",{className:"notification-master__integration--settings__field__list__item",style:{backgroundColor:"#fff",padding:"10px",borderRadius:"5px",marginBottom:"10px"},children:[(0,a.jsx)(NI,{}),(0,a.jsx)(p$,{value:e.name,onChange:e=>d(t,"name",e.target.value),placeholder:(0,l.__)("Label","notification-master"),className:"notification-master__integration--settings__field__list__item__input"}),(0,a.jsx)(p$,{value:e.value,onChange:e=>d(t,"value",e.target.value),placeholder:(0,l.__)("Value","notification-master"),className:"notification-master__integration--settings__field__list__item__input"}),(0,a.jsxs)(Np,{gap:5,className:"notification-master__integration--settings__field__list__item__input",children:[(0,a.jsx)(jI,{checked:e.inline,onChange:e=>d(t,"inline",e)}),(0,a.jsx)(Yk.Text,{children:(0,l.__)("Inline","notification-master")})]}),(0,a.jsx)(gu,{onClick:()=>c("fields",[...o.fields.filter(((e,n)=>n!==t))]),danger:!0,type:"link",icon:(0,a.jsx)(j$,{})})]},t)))}),(0,a.jsx)(gu,{onClick:()=>c("fields",[...o.fields,{type:"text",value:"",inline:!0}]),block:!0,type:"dashed",size:"large",children:(0,l.__)("Add Field","notification-master")})]})]})]})]})]})]})]})};(0,c.addFilter)("NotificationMaster.Integration","NotificationMaster.DiscordIntegration",((e,t)=>"discord"===t?{...e,component:RI,available:!0}:e));const AI=({settings:e,onChange:t})=>{const{title:n,message:o,icon:r,image:i,url:s,urgency:c}=e,{properties:d}=DI("webpush"),{toggleMergeTags:f}=(0,u.useDispatch)("notification-master/core"),{ntfmSiteUrl:p}=eE,h=(e,n)=>{t({[e]:n})};return(0,a.jsxs)(Np,{vertical:!0,gap:10,children:[(0,a.jsx)(Yk.Title,{level:5,className:"ntfm-custom-title",children:(0,l.__)("Notification Settings","notification-master")}),(0,a.jsxs)(Yk.Text,{type:"secondary",children:[(0,l.__)("Read the documentation to learn more about how to setup webpush notifications.","notification-master")," ",(0,a.jsx)("a",{href:`${p}/docs/web-push/`,target:"_blank",children:(0,l.__)("Find out more","notification-master")})]}),(0,a.jsxs)("div",{className:"notification-master__integration--settings",children:[(0,a.jsxs)("div",{className:oi()("notification-master__integration--settings__field",{required:d.title.required}),children:[(0,a.jsx)(Yk.Title,{level:5,className:"notification-master__integration--settings__field__title",children:(0,l.__)("Title","notification-master")}),(0,a.jsx)(p$,{value:n,onChange:e=>h("title",e.target.value),placeholder:(0,l.__)("Enter the title of the notification","notification-master"),addonAfter:(0,a.jsx)(Tj,{})})]}),(0,a.jsxs)("div",{className:oi()("notification-master__integration--settings__field",{required:d.message.required}),children:[(0,a.jsx)(Yk.Title,{level:5,className:"notification-master__integration--settings__field__title",children:(0,l.__)("Message","notification-master")}),(0,a.jsx)(gu,{onClick:()=>f(!0),style:{margin:"10px 0"},className:"notification-master__integration--settings__field__input__button",children:(0,l.__)("Merge Tags","notification-master")}),(0,a.jsx)(p$.TextArea,{value:o,onChange:e=>h("message",e.target.value),placeholder:(0,l.__)("Enter the message of the notification","notification-master"),autoSize:{minRows:4}})]}),(0,a.jsxs)("div",{className:oi()("notification-master__integration--settings__field",{required:d.icon.required}),children:[(0,a.jsx)(Yk.Title,{level:5,className:"notification-master__integration--settings__field__title",children:(0,l.__)("Icon","notification-master")}),(0,a.jsx)(p$,{value:r,onChange:e=>h("icon",e.target.value),placeholder:(0,l.__)("Enter the icon URL of the notification","notification-master"),addonAfter:(0,a.jsx)(Tj,{})})]}),(0,a.jsxs)("div",{className:oi()("notification-master__integration--settings__field",{required:d.image.required}),children:[(0,a.jsx)(Yk.Title,{level:5,className:"notification-master__integration--settings__field__title",children:(0,l.__)("Image","notification-master")}),(0,a.jsx)(p$,{value:i,onChange:e=>h("image",e.target.value),placeholder:(0,l.__)("Enter the image URL of the notification","notification-master"),addonAfter:(0,a.jsx)(Tj,{})})]}),(0,a.jsxs)("div",{className:oi()("notification-master__integration--settings__field",{required:d.url.required}),children:[(0,a.jsx)(Yk.Title,{level:5,className:"notification-master__integration--settings__field__title",children:(0,l.__)("URL","notification-master")}),(0,a.jsx)(p$,{value:s,onChange:e=>h("url",e.target.value),placeholder:(0,l.__)("Enter the URL of the notification","notification-master"),addonAfter:(0,a.jsx)(Tj,{})})]}),(0,a.jsxs)("div",{className:oi()("notification-master__integration--settings__field",{required:d.urgency.required}),children:[(0,a.jsx)(Yk.Title,{level:5,className:"notification-master__integration--settings__field__title",children:(0,l.__)("Urgency","notification-master")}),(0,a.jsx)(bI,{value:c,onChange:e=>h("urgency",e),placeholder:(0,l.__)("Select the urgency of the notification","notification-master"),options:[{value:"very-low",label:(0,l.__)("Very Low","notification-master")},{value:"low",label:(0,l.__)("Low","notification-master")},{value:"normal",label:(0,l.__)("Normal","notification-master")},{value:"high",label:(0,l.__)("High","notification-master")}]})]})]})]})};(0,c.addFilter)("NotificationMaster.Integration","NotificationMaster.WebPushIntegration",((e,t)=>{if("webpush"===t){const{webpushConfigured:t}=window.NotificationsMasterConfig||{};return{...e,component:AI,configured:t,available:!0}}return e}));const DI=e=>window.NotificationMasterIntegrations[e],BI=eE.integrations;var LI;(0,Up.map)((0,Up.keys)(BI),(e=>{var t,n;t=BI[e],n=e,window.NotificationMasterIntegrations=window.NotificationMasterIntegrations||{},window.NotificationMasterIntegrations[n]=(0,c.applyFilters)("NotificationMaster.Integration",{name:t.name,description:t.description,icon:t.icon||null,component:()=>null,properties:t.properties||{},available:eE.isPro,configured:!0},n)})),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(LI||(LI={}));var zI="beforeunload";function FI(e){e.preventDefault(),e.returnValue=""}function HI(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter((function(e){return e!==t}))}},call:function(t){e.forEach((function(e){return e&&e(t)}))}}}var VI=n(373);let WI;function KI(){if(!WI){const e=function(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,o=n.history;function r(){var e=n.location,t=e.pathname,r=e.search,i=e.hash,a=o.state||{};return[a.idx,{pathname:t,search:r,hash:i,state:a.usr||null,key:a.key||"default"}]}var i=null;n.addEventListener("popstate",(function(){if(i)d.call(i),i=null;else{var e=LI.Pop,t=r(),n=t[0],o=t[1];if(d.length){if(null!=n){var a=l-n;a&&(i={action:e,location:o,retry:function(){v(-1*a)}},v(a))}}else g(e)}}));var a=LI.Pop,s=r(),l=s[0],c=s[1],u=HI(),d=HI();function f(e){return"string"==typeof e?e:function(e){var t=e.pathname,n=void 0===t?"/":t,o=e.search,r=void 0===o?"":o,i=e.hash,a=void 0===i?"":i;return r&&"?"!==r&&(n+="?"===r.charAt(0)?r:"?"+r),a&&"#"!==a&&(n+="#"===a.charAt(0)?a:"#"+a),n}(e)}function p(e,t){return void 0===t&&(t=null),hn({pathname:c.pathname,hash:"",search:""},"string"==typeof e?function(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var o=e.indexOf("?");o>=0&&(t.search=e.substr(o),e=e.substr(0,o)),e&&(t.pathname=e)}return t}(e):e,{state:t,key:Math.random().toString(36).substr(2,8)})}function h(e,t){return[{usr:e.state,key:e.key,idx:t},f(e)]}function m(e,t,n){return!d.length||(d.call({action:e,location:t,retry:n}),!1)}function g(e){a=e;var t=r();l=t[0],c=t[1],u.call({action:a,location:c})}function v(e){o.go(e)}null==l&&(l=0,o.replaceState(hn({},o.state,{idx:l}),""));var b={get action(){return a},get location(){return c},createHref:f,push:function e(t,r){var i=LI.Push,a=p(t,r);if(m(i,a,(function(){e(t,r)}))){var s=h(a,l+1),c=s[0],u=s[1];try{o.pushState(c,"",u)}catch(e){n.location.assign(u)}g(i)}},replace:function e(t,n){var r=LI.Replace,i=p(t,n);if(m(r,i,(function(){e(t,n)}))){var a=h(i,l),s=a[0],c=a[1];o.replaceState(s,"",c),g(r)}},go:v,back:function(){v(-1)},forward:function(){v(1)},listen:function(e){return u.push(e)},block:function(e){var t=d.push(e);return 1===d.length&&n.addEventListener(zI,FI),function(){t(),d.length||n.removeEventListener(zI,FI)}}};return b}();WI={get action(){return e.action},get location(){const{location:t}=e,n=(0,VI.parse)(t.search.substring(1));let o;return n&&"string"==typeof n.page?(o=n.page.replace("ntfm-",""),o="home"===o?"/":`/${o}`,"string"==typeof n.id&&(o+="/"+n.id),"string"==typeof n.tab&&(o+="/"+n.tab)):o="/",{...t,pathname:o}},createHref:e.createHref,push:e.push,replace:e.replace,go:e.go,back:e.back,forward:e.forward,block:e.block,listen(t){return e.listen((()=>{t({action:this.action,location:this.location})}))}}}return WI}(0,a.jsxs)("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 286 188",children:[(0,a.jsxs)("defs",{children:[(0,a.jsx)("style",{children:"\n\t\t\t\t\t\t\t.cls-1 {\n\t\t\t\t\t\t\tfill: url(#linear-gradient);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t.cls-1, .cls-2, .cls-3, .cls-4 {\n\t\t\t\t\t\t\tstroke-width: 0px;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t.cls-2 {\n\t\t\t\t\t\t\tfill: url(#linear-gradient-2);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t.cls-3 {\n\t\t\t\t\t\t\tfill: url(#linear-gradient-3);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t.cls-4 {\n\t\t\t\t\t\t\tfill: url(#linear-gradient-4);\n\t\t\t\t\t\t} \n\t\t\t\t\t"}),(0,a.jsxs)("linearGradient",{id:"linear-gradient",x1:"195.66",y1:"95",x2:"286",y2:"95",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{offset:"0","stop-color":"#8f3164"}),(0,a.jsx)("stop",{offset:".23","stop-color":"#923662"}),(0,a.jsx)("stop",{offset:".51","stop-color":"#9e445e"}),(0,a.jsx)("stop",{offset:".81","stop-color":"#b05c57"}),(0,a.jsx)("stop",{offset:"1","stop-color":"#c07052"})]}),(0,a.jsxs)("linearGradient",{id:"linear-gradient-2",x1:"5.28",y1:"142.83",x2:"280.72",y2:"142.83",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{offset:".5","stop-color":"#8f3164"}),(0,a.jsx)("stop",{offset:".62","stop-color":"#923562"}),(0,a.jsx)("stop",{offset:".75","stop-color":"#9c425e"}),(0,a.jsx)("stop",{offset:".89","stop-color":"#ad5858"}),(0,a.jsx)("stop",{offset:"1","stop-color":"#c07052"})]}),(0,a.jsxs)("linearGradient",{id:"linear-gradient-3",x1:"0",y1:"95",x2:"90.34",y2:"95",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{offset:"1","stop-color":"#8f3164"}),(0,a.jsx)("stop",{offset:"1","stop-color":"#963a61"}),(0,a.jsx)("stop",{offset:"1","stop-color":"#ab5559"}),(0,a.jsx)("stop",{offset:"1","stop-color":"#c07052"})]}),(0,a.jsxs)("linearGradient",{id:"linear-gradient-4",x1:"5.29",y1:"66.71",x2:"280.71",y2:"66.71",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{offset:".51","stop-color":"#8f3164"}),(0,a.jsx)("stop",{offset:".75","stop-color":"#903263"}),(0,a.jsx)("stop",{offset:".84","stop-color":"#953961"}),(0,a.jsx)("stop",{offset:".9","stop-color":"#9e455e"}),(0,a.jsx)("stop",{offset:".95","stop-color":"#ab5659"}),(0,a.jsx)("stop",{offset:".99","stop-color":"#bc6b53"}),(0,a.jsx)("stop",{offset:"1","stop-color":"#c07052"})]})]}),(0,a.jsx)("path",{className:"cls-1",d:"m195.66,95l87.17,87.17c1.17,1.17,3.17.34,3.17-1.31V9.14c0-1.66-2-2.49-3.17-1.31l-87.17,87.17Z"}),(0,a.jsx)("path",{className:"cls-2",d:"m280.18,184.83l-87.18-87.18-32.54,32.54c-4.66,4.66-10.86,7.23-17.46,7.23s-12.8-2.57-17.46-7.23l-32.54-32.54L5.83,184.83c-1.17,1.17-.34,3.17,1.31,3.17h271.72c1.66,0,2.49-2,1.31-3.17Z"}),(0,a.jsx)("path",{className:"cls-3",d:"m90.34,94.99L3.17,7.82c-1.17-1.17-3.17-.34-3.17,1.31v171.71c0,1.66,2,2.49,3.17,1.31l87.17-87.17Z"}),(0,a.jsx)("path",{className:"cls-4",d:"m130.93,128.27c2.96,2.96,6.86,4.88,11.04,5.13,4.84.29,9.44-1.46,12.83-4.86L280.17,3.17c1.17-1.17.34-3.17-1.31-3.17H7.15c-1.66,0-2.49,2-1.31,3.17l125.09,125.09Z"})]});const qI=(e=null,t=null,n=null)=>{const o=(()=>{const e=document.location.pathname;return e.substring(0,e.lastIndexOf("/"))})();let r=`${o}/admin.php`;return e&&(r+=`?page=ntfm-${e}`),t&&(r+=`&id=${t}`),n&&(r+=`&tab=${n}`),r},UI=(e,t)=>{let n=!0;for(const o in e){const r=e[o];if(r.required&&(0,Up.isEmpty)(t[o])){n=!1;break}if("object"===r.type&&(n=UI(r.properties,t[o]),!n))break}return n},GI=e=>{const t=eE.triggersGroups;for(const n in t){const o=t[n];if((0,Up.keys)(o.triggers).includes(e))return o.triggers[e].name}return""},XI=e=>{const t=eE.triggersGroups;for(const n in t){const o=t[n];if((0,Up.keys)(o.triggers).includes(e))return!0}return!1},YI=e=>{let t=new Date(e);return isNaN(t.getTime())&&(t=new Date(`${e}Z`)),isNaN(t.getTime())?e:t.toLocaleDateString(void 0,{year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0})},ZI=()=>{const e=Q(),t=(0,p.useCallback)((e=>{const t=document.querySelector(`.wp-submenu-wrap a[href*="ntfm-${e}"]`);if(!t)return;const n=t.parentElement;n?.classList.add("current"),Array.from(n?.parentElement?.children||[]).forEach((e=>{e!==n&&e.classList.remove("current")}))}),[]);return(0,a.jsx)("nav",{className:"notification-master__nav",children:(0,a.jsxs)("div",{className:"notification-master__nav-inner",children:[(0,a.jsx)("div",{className:"notification-master__nav-logo",children:(0,a.jsx)("img",{className:"notification-master__nav-logo-image\r\n\t\t\t\t\t",src:eE.assetsUrl+"logo.png",alt:"Notification Master"})}),(0,a.jsxs)("ul",{className:"notification-master__nav-list",children:[uJ.map(((n,o)=>{if(n.hidden)return null;const r=qI(n.slug),i="/notifications"===n.path||"/integrations"===n.path?Y(`${n.path}/*`):Y(n.path);return(0,a.jsx)("a",{className:oi()("notification-master__nav-item",{"notification-master__nav-item--active":i}),href:r,onClick:o=>{o.preventDefault(),e(r),t(n.slug)},children:n.title},o)})),(0,a.jsxs)("a",{className:"notification-master__nav-item",href:`${eE.ntfmSiteUrl}/docs/getting-started`,target:"_blank",rel:"noreferrer",children:[(0,l.__)("Documentation","notification-master"),(0,a.jsx)("span",{className:"ntfm-icon",children:(0,a.jsx)("svg",{stroke:"currentColor",fill:"currentColor","stroke-width":"0",viewBox:"0 0 24 24",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M18.25 15.5a.75.75 0 0 1-.75-.75V7.56L7.28 17.78a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L16.44 6.5H9.25a.75.75 0 0 1 0-1.5h9a.75.75 0 0 1 .75.75v9a.75.75 0 0 1-.75.75Z"})})})]})]})]})})},QI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"};var JI=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:QI}))};const eN=p.forwardRef(JI),tN=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:o,padding:r,paddingXL:i,paddingXS:a,paddingLG:s,marginXS:l,lineHeight:c}=e;return{[t]:{padding:`${qt(e.calc(s).mul(2).equal())} ${qt(i)}`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:s,textAlign:"center",[`& > ${o}`]:{fontSize:e.iconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.titleFontSize,lineHeight:n,marginBlock:l,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.subtitleFontSize,lineHeight:c,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:s,padding:`${qt(s)} ${qt(e.calc(r).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:a,"&:last-child":{marginInlineEnd:0}}}}},nN=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-success ${t}-icon > ${n}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${n}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${n}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${n}`]:{color:e.resultWarningIconColor}}},oN=e=>(e=>[tN(e),nN(e)])(e),rN=hl("Result",(e=>{const t=Js(e,{resultInfoIconColor:e.colorInfo,resultErrorIconColor:e.colorError,resultSuccessIconColor:e.colorSuccess,resultWarningIconColor:e.colorWarning,imageWidth:250,imageHeight:295});return[oN(t)]}),(e=>({titleFontSize:e.fontSizeHeading3,subtitleFontSize:e.fontSize,iconFontSize:3*e.fontSizeHeading3,extraMargin:`${e.paddingLG}px 0 0 0`}))),iN={success:ms,error:bs,info:Es,warning:eN},aN={404:()=>p.createElement("svg",{width:"252",height:"294"},p.createElement("defs",null,p.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),p.createElement("g",{fill:"none",fillRule:"evenodd"},p.createElement("g",{transform:"translate(0 .012)"},p.createElement("mask",{fill:"#fff"}),p.createElement("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"})),p.createElement("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"}),p.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),p.createElement("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"}),p.createElement("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"}),p.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),p.createElement("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"}),p.createElement("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF",strokeWidth:"2"}),p.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"}),p.createElement("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"}),p.createElement("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1677ff"}),p.createElement("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"}),p.createElement("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"}),p.createElement("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"}),p.createElement("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"}),p.createElement("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"}),p.createElement("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"}),p.createElement("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"}),p.createElement("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"}),p.createElement("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"}),p.createElement("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"}),p.createElement("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"}),p.createElement("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"}),p.createElement("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"}),p.createElement("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"}),p.createElement("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"}),p.createElement("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"}),p.createElement("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"}),p.createElement("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"}),p.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),p.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"}),p.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),p.createElement("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"}),p.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),p.createElement("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"}),p.createElement("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"}),p.createElement("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"}),p.createElement("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"}),p.createElement("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"}),p.createElement("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"}),p.createElement("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"}),p.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),500:()=>p.createElement("svg",{width:"254",height:"294"},p.createElement("defs",null,p.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),p.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),p.createElement("g",{fill:"none",fillRule:"evenodd"},p.createElement("g",{transform:"translate(0 .067)"},p.createElement("mask",{fill:"#fff"}),p.createElement("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"})),p.createElement("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"}),p.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),p.createElement("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"}),p.createElement("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"}),p.createElement("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"}),p.createElement("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"}),p.createElement("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"}),p.createElement("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"}),p.createElement("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"}),p.createElement("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"}),p.createElement("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"}),p.createElement("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"}),p.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),p.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7",strokeWidth:"1.136",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"}),p.createElement("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"}),p.createElement("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"}),p.createElement("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"}),p.createElement("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"}),p.createElement("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"}),p.createElement("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"}),p.createElement("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"}),p.createElement("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"}),p.createElement("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"}),p.createElement("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"}),p.createElement("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"}),p.createElement("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"}),p.createElement("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"}),p.createElement("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"}),p.createElement("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"}),p.createElement("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"}),p.createElement("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"}),p.createElement("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"}),p.createElement("mask",{fill:"#fff"}),p.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),p.createElement("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"}),p.createElement("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),p.createElement("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"}),p.createElement("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),p.createElement("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),p.createElement("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"}),p.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),p.createElement("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"}),p.createElement("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"}),p.createElement("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"}))),403:()=>p.createElement("svg",{width:"251",height:"294"},p.createElement("g",{fill:"none",fillRule:"evenodd"},p.createElement("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"}),p.createElement("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"}),p.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),p.createElement("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"}),p.createElement("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"}),p.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),p.createElement("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"}),p.createElement("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF",strokeWidth:"2"}),p.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"}),p.createElement("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"}),p.createElement("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"}),p.createElement("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"}),p.createElement("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"}),p.createElement("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"}),p.createElement("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"}),p.createElement("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"}),p.createElement("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"}),p.createElement("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"}),p.createElement("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"}),p.createElement("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"}),p.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7",strokeWidth:".932",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"}),p.createElement("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"}),p.createElement("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"}),p.createElement("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"}),p.createElement("path",{stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"}),p.createElement("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"}),p.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"}),p.createElement("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552",strokeWidth:"1.526",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"}),p.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"}),p.createElement("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"}),p.createElement("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"}),p.createElement("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"}),p.createElement("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"}),p.createElement("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"}),p.createElement("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"}),p.createElement("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"}),p.createElement("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"}),p.createElement("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"}),p.createElement("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"})))},sN=Object.keys(aN),lN=e=>{let{prefixCls:t,icon:n,status:o}=e;const r=oi()(`${t}-icon`);if(sN.includes(`${o}`)){const e=aN[o];return p.createElement("div",{className:`${r} ${t}-image`},p.createElement(e,null))}const i=p.createElement(iN[o]);return null===n||!1===n?null:p.createElement("div",{className:r},n||i)},cN=e=>{let{prefixCls:t,extra:n}=e;return n?p.createElement("div",{className:`${t}-extra`},n):null},uN=e=>{let{prefixCls:t,className:n,rootClassName:o,subTitle:r,title:i,style:a,children:s,status:l="info",icon:c,extra:u}=e;const{getPrefixCls:d,direction:f,result:h}=p.useContext(He),m=d("result",t),[g,v,b]=rN(m),y=oi()(m,`${m}-${l}`,n,null==h?void 0:h.className,o,{[`${m}-rtl`]:"rtl"===f},v,b),x=Object.assign(Object.assign({},null==h?void 0:h.style),a);return g(p.createElement("div",{className:y,style:x},p.createElement(lN,{prefixCls:m,status:l,icon:c}),p.createElement("div",{className:`${m}-title`},i),r&&p.createElement("div",{className:`${m}-subtitle`},r),p.createElement(cN,{prefixCls:m,extra:u}),s&&p.createElement("div",{className:`${m}-content`},s)))};uN.PRESENTED_IMAGE_403=aN[403],uN.PRESENTED_IMAGE_404=aN[404],uN.PRESENTED_IMAGE_500=aN[500];const dN=uN,fN=()=>(0,a.jsx)(dN,{icon:(0,a.jsx)("img",{src:`${eE.assetsUrl}/images/logo.gif`,alt:"",style:{width:100}}),title:[(0,a.jsx)(Yk.Title,{level:3,style:{textTransform:"capitalize"},children:(0,l.__)("Unlock Premium Features & Get 99% Off Lifetime Plans 🎉🔥","notification-master")},"title"),(0,a.jsx)(Yk.Text,{children:(0,l.__)("Upgrade to Notification Master Pro and unlock exclusive features, powerful integrations, and enhanced notification capabilities 🚀. Take advantage of our limited-time offer and get 99% off Lifetime plans! 💥 Offer valid until the end of the year 🎁.","notification-master")},"text")],extra:(0,a.jsx)(gu,{type:"primary",style:{backgroundColor:"#E67A18",fontWeight:600,borderRadius:5,textTransform:"uppercase"},size:"large",onClick:()=>{window.open(`${eE.ntfmSiteUrl}/pricing`,"_blank")},children:(0,l.__)("Upgrade to Pro","notification-master")})});function pN(e){return e+.5|0}const hN=(e,t,n)=>Math.max(Math.min(e,n),t);function mN(e){return hN(pN(2.55*e),0,255)}function gN(e){return hN(pN(255*e),0,255)}function vN(e){return hN(pN(e/2.55)/100,0,1)}function bN(e){return hN(pN(100*e),0,100)}const yN={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},xN=[..."0123456789ABCDEF"],wN=e=>xN[15&e],CN=e=>xN[(240&e)>>4]+xN[15&e],SN=e=>(240&e)>>4==(15&e);const EN=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function kN(e,t,n){const o=t*Math.min(n,1-n),r=(t,r=(t+e/30)%12)=>n-o*Math.max(Math.min(r-3,9-r,1),-1);return[r(0),r(8),r(4)]}function $N(e,t,n){const o=(o,r=(o+e/60)%6)=>n-n*t*Math.max(Math.min(r,4-r,1),0);return[o(5),o(3),o(1)]}function _N(e,t,n){const o=kN(e,1,.5);let r;for(t+n>1&&(r=1/(t+n),t*=r,n*=r),r=0;r<3;r++)o[r]*=1-t-n,o[r]+=t;return o}function ON(e){const t=e.r/255,n=e.g/255,o=e.b/255,r=Math.max(t,n,o),i=Math.min(t,n,o),a=(r+i)/2;let s,l,c;return r!==i&&(c=r-i,l=a>.5?c/(2-r-i):c/(r+i),s=function(e,t,n,o,r){return e===r?(t-n)/o+(t<n?6:0):t===r?(n-e)/o+2:(e-t)/o+4}(t,n,o,c,r),s=60*s+.5),[0|s,l||0,a]}function jN(e,t,n,o){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,o)).map(gN)}function MN(e,t,n){return jN(kN,e,t,n)}function PN(e){return(e%360+360)%360}const IN={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},NN={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let TN;const RN=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,AN=e=>e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,DN=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function BN(e,t,n){if(e){let o=ON(e);o[t]=Math.max(0,Math.min(o[t]+o[t]*n,0===t?360:1)),o=MN(o),e.r=o[0],e.g=o[1],e.b=o[2]}}function LN(e,t){return e?Object.assign(t||{},e):e}function zN(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=gN(e[3]))):(t=LN(e,{r:0,g:0,b:0,a:1})).a=gN(t.a),t}function FN(e){return"r"===e.charAt(0)?function(e){const t=RN.exec(e);let n,o,r,i=255;if(t){if(t[7]!==n){const e=+t[7];i=t[8]?mN(e):hN(255*e,0,255)}return n=+t[1],o=+t[3],r=+t[5],n=255&(t[2]?mN(n):hN(n,0,255)),o=255&(t[4]?mN(o):hN(o,0,255)),r=255&(t[6]?mN(r):hN(r,0,255)),{r:n,g:o,b:r,a:i}}}(e):function(e){const t=EN.exec(e);let n,o=255;if(!t)return;t[5]!==n&&(o=t[6]?mN(+t[5]):gN(+t[5]));const r=PN(+t[2]),i=+t[3]/100,a=+t[4]/100;return n="hwb"===t[1]?function(e,t,n){return jN(_N,e,t,n)}(r,i,a):"hsv"===t[1]?function(e,t,n){return jN($N,e,t,n)}(r,i,a):MN(r,i,a),{r:n[0],g:n[1],b:n[2],a:o}}(e)}class HN{constructor(e){if(e instanceof HN)return e;const t=typeof e;let n;var o,r,i;"object"===t?n=zN(e):"string"===t&&(i=(o=e).length,"#"===o[0]&&(4===i||5===i?r={r:255&17*yN[o[1]],g:255&17*yN[o[2]],b:255&17*yN[o[3]],a:5===i?17*yN[o[4]]:255}:7!==i&&9!==i||(r={r:yN[o[1]]<<4|yN[o[2]],g:yN[o[3]]<<4|yN[o[4]],b:yN[o[5]]<<4|yN[o[6]],a:9===i?yN[o[7]]<<4|yN[o[8]]:255})),n=r||function(e){TN||(TN=function(){const e={},t=Object.keys(NN),n=Object.keys(IN);let o,r,i,a,s;for(o=0;o<t.length;o++){for(a=s=t[o],r=0;r<n.length;r++)i=n[r],s=s.replace(i,IN[i]);i=parseInt(NN[a],16),e[s]=[i>>16&255,i>>8&255,255&i]}return e}(),TN.transparent=[0,0,0,0]);const t=TN[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}(e)||FN(e)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var e=LN(this._rgb);return e&&(e.a=vN(e.a)),e}set rgb(e){this._rgb=zN(e)}rgbString(){return this._valid?(e=this._rgb)&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${vN(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`):void 0;var e}hexString(){return this._valid?(e=this._rgb,t=(e=>SN(e.r)&&SN(e.g)&&SN(e.b)&&SN(e.a))(e)?wN:CN,e?"#"+t(e.r)+t(e.g)+t(e.b)+((e,t)=>e<255?t(e):"")(e.a,t):void 0):void 0;var e,t}hslString(){return this._valid?function(e){if(!e)return;const t=ON(e),n=t[0],o=bN(t[1]),r=bN(t[2]);return e.a<255?`hsla(${n}, ${o}%, ${r}%, ${vN(e.a)})`:`hsl(${n}, ${o}%, ${r}%)`}(this._rgb):void 0}mix(e,t){if(e){const n=this.rgb,o=e.rgb;let r;const i=t===r?.5:t,a=2*i-1,s=n.a-o.a,l=((a*s==-1?a:(a+s)/(1+a*s))+1)/2;r=1-l,n.r=255&l*n.r+r*o.r+.5,n.g=255&l*n.g+r*o.g+.5,n.b=255&l*n.b+r*o.b+.5,n.a=i*n.a+(1-i)*o.a,this.rgb=n}return this}interpolate(e,t){return e&&(this._rgb=function(e,t,n){const o=DN(vN(e.r)),r=DN(vN(e.g)),i=DN(vN(e.b));return{r:gN(AN(o+n*(DN(vN(t.r))-o))),g:gN(AN(r+n*(DN(vN(t.g))-r))),b:gN(AN(i+n*(DN(vN(t.b))-i))),a:e.a+n*(t.a-e.a)}}(this._rgb,e._rgb,t)),this}clone(){return new HN(this.rgb)}alpha(e){return this._rgb.a=gN(e),this}clearer(e){return this._rgb.a*=1-e,this}greyscale(){const e=this._rgb,t=pN(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}opaquer(e){return this._rgb.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return BN(this._rgb,2,e),this}darken(e){return BN(this._rgb,2,-e),this}saturate(e){return BN(this._rgb,1,e),this}desaturate(e){return BN(this._rgb,1,-e),this}rotate(e){return function(e,t){var n=ON(e);n[0]=PN(n[0]+t),n=MN(n),e.r=n[0],e.g=n[1],e.b=n[2]}(this._rgb,e),this}}function VN(){}const WN=(()=>{let e=0;return()=>e++})();function KN(e){return null==e}function qN(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return"[object"===t.slice(0,7)&&"Array]"===t.slice(-6)}function UN(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function GN(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)}function XN(e,t){return GN(e)?e:t}function YN(e,t){return void 0===e?t:e}function ZN(e,t,n){if(e&&"function"==typeof e.call)return e.apply(n,t)}function QN(e,t,n,o){let r,i,a;if(qN(e))if(i=e.length,o)for(r=i-1;r>=0;r--)t.call(n,e[r],r);else for(r=0;r<i;r++)t.call(n,e[r],r);else if(UN(e))for(a=Object.keys(e),i=a.length,r=0;r<i;r++)t.call(n,e[a[r]],a[r])}function JN(e,t){let n,o,r,i;if(!e||!t||e.length!==t.length)return!1;for(n=0,o=e.length;n<o;++n)if(r=e[n],i=t[n],r.datasetIndex!==i.datasetIndex||r.index!==i.index)return!1;return!0}function eT(e){if(qN(e))return e.map(eT);if(UN(e)){const t=Object.create(null),n=Object.keys(e),o=n.length;let r=0;for(;r<o;++r)t[n[r]]=eT(e[n[r]]);return t}return e}function tT(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function nT(e,t,n,o){if(!tT(e))return;const r=t[e],i=n[e];UN(r)&&UN(i)?oT(r,i,o):t[e]=eT(i)}function oT(e,t,n){const o=qN(t)?t:[t],r=o.length;if(!UN(e))return e;const i=(n=n||{}).merger||nT;let a;for(let t=0;t<r;++t){if(a=o[t],!UN(a))continue;const r=Object.keys(a);for(let t=0,o=r.length;t<o;++t)i(r[t],e,a,n)}return e}function rT(e,t){return oT(e,t,{merger:iT})}function iT(e,t,n){if(!tT(e))return;const o=t[e],r=n[e];UN(o)&&UN(r)?rT(o,r):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=eT(r))}const aT={"":e=>e,x:e=>e.x,y:e=>e.y};function sT(e,t){const n=aT[t]||(aT[t]=function(e){const t=function(e){const t=e.split("."),n=[];let o="";for(const e of t)o+=e,o.endsWith("\\")?o=o.slice(0,-1)+".":(n.push(o),o="");return n}(e);return e=>{for(const n of t){if(""===n)break;e=e&&e[n]}return e}}(t));return n(e)}function lT(e){return e.charAt(0).toUpperCase()+e.slice(1)}const cT=e=>void 0!==e,uT=e=>"function"==typeof e,dT=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0},fT=Math.PI,pT=2*fT,hT=pT+fT,mT=Number.POSITIVE_INFINITY,gT=fT/180,vT=fT/2,bT=fT/4,yT=2*fT/3,xT=Math.log10,wT=Math.sign;function CT(e,t,n){return Math.abs(e-t)<n}function ST(e){const t=Math.round(e);e=CT(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(xT(e))),o=e/n;return(o<=1?1:o<=2?2:o<=5?5:10)*n}function ET(e){return!isNaN(parseFloat(e))&&isFinite(e)}function kT(e){return e*(fT/180)}function $T(e){if(!GN(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function _T(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function OT(e,t){return(e-t+hT)%pT-fT}function jT(e){return(e%pT+pT)%pT}function MT(e,t,n,o){const r=jT(e),i=jT(t),a=jT(n),s=jT(i-r),l=jT(a-r),c=jT(r-i),u=jT(r-a);return r===i||r===a||o&&i===a||s>l&&c<u}function PT(e,t,n){return Math.max(t,Math.min(n,e))}function IT(e,t,n,o=1e-6){return e>=Math.min(t,n)-o&&e<=Math.max(t,n)+o}function NT(e,t,n){n=n||(n=>e[n]<t);let o,r=e.length-1,i=0;for(;r-i>1;)o=i+r>>1,n(o)?i=o:r=o;return{lo:i,hi:r}}const TT=(e,t,n,o)=>NT(e,n,o?o=>{const r=e[o][t];return r<n||r===n&&e[o+1][t]===n}:o=>e[o][t]<n),RT=(e,t,n)=>NT(e,n,(o=>e[o][t]>=n)),AT=["push","pop","shift","splice","unshift"];function DT(e,t){const n=e._chartjs;if(!n)return;const o=n.listeners,r=o.indexOf(t);-1!==r&&o.splice(r,1),o.length>0||(AT.forEach((t=>{delete e[t]})),delete e._chartjs)}const BT="undefined"==typeof window?function(e){return e()}:window.requestAnimationFrame;function LT(e,t){let n=[],o=!1;return function(...r){n=r,o||(o=!0,BT.call(window,(()=>{o=!1,e.apply(t,n)})))}}const zT=e=>"start"===e?"left":"end"===e?"right":"center",FT=(e,t,n)=>"start"===e?t:"end"===e?n:(t+n)/2;const HT=e=>0===e||1===e,VT=(e,t,n)=>-Math.pow(2,10*(e-=1))*Math.sin((e-t)*pT/n),WT=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*pT/n)+1,KT={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>1-Math.cos(e*vT),easeOutSine:e=>Math.sin(e*vT),easeInOutSine:e=>-.5*(Math.cos(fT*e)-1),easeInExpo:e=>0===e?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>HT(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(2-Math.pow(2,-10*(2*e-1))),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>HT(e)?e:VT(e,.075,.3),easeOutElastic:e=>HT(e)?e:WT(e,.075,.3),easeInOutElastic(e){const t=.1125;return HT(e)?e:e<.5?.5*VT(2*e,t,.45):.5+.5*WT(2*e-1,t,.45)},easeInBack(e){const t=1.70158;return e*e*((t+1)*e-t)},easeOutBack(e){const t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:e=>1-KT.easeOutBounce(1-e),easeOutBounce(e){const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},easeInOutBounce:e=>e<.5?.5*KT.easeInBounce(2*e):.5*KT.easeOutBounce(2*e-1)+.5};function qT(e){if(e&&"object"==typeof e){const t=e.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function UT(e){return qT(e)?e:new HN(e)}function GT(e){return qT(e)?e:new HN(e).saturate(.5).darken(.1).hexString()}const XT=["x","y","borderWidth","radius","tension"],YT=["color","borderColor","backgroundColor"],ZT=new Map;function QT(e,t,n){return function(e,t){t=t||{};const n=e+JSON.stringify(t);let o=ZT.get(n);return o||(o=new Intl.NumberFormat(e,t),ZT.set(n,o)),o}(t,n).format(e)}const JT={values:e=>qN(e)?e:""+e,numeric(e,t,n){if(0===e)return"0";const o=this.chart.options.locale;let r,i=e;if(n.length>1){const t=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(t<1e-4||t>1e15)&&(r="scientific"),i=function(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}(e,n)}const a=xT(Math.abs(i)),s=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:r,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),QT(e,o,l)},logarithmic(e,t,n){if(0===e)return"0";const o=n[t].significand||e/Math.pow(10,Math.floor(xT(e)));return[1,2,3,5,10,15].includes(o)||t>.8*n.length?JT.numeric.call(this,e,t,n):""}};var eR={formatters:JT};const tR=Object.create(null),nR=Object.create(null);function oR(e,t){if(!t)return e;const n=t.split(".");for(let t=0,o=n.length;t<o;++t){const o=n[t];e=e[o]||(e[o]=Object.create(null))}return e}function rR(e,t,n){return"string"==typeof t?oT(oR(e,t),n):oT(oR(e,""),t)}class iR{constructor(e,t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=e=>e.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,t)=>GT(t.backgroundColor),this.hoverBorderColor=(e,t)=>GT(t.borderColor),this.hoverColor=(e,t)=>GT(t.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(t)}set(e,t){return rR(this,e,t)}get(e){return oR(this,e)}describe(e,t){return rR(nR,e,t)}override(e,t){return rR(tR,e,t)}route(e,t,n,o){const r=oR(this,e),i=oR(this,n),a="_"+t;Object.defineProperties(r,{[a]:{value:r[t],writable:!0},[t]:{enumerable:!0,get(){const e=this[a],t=i[o];return UN(e)?Object.assign({},t,e):YN(e,t)},set(e){this[a]=e}}})}apply(e){e.forEach((e=>e(this)))}}var aR=new iR({_scriptable:e=>!e.startsWith("on"),_indexable:e=>"events"!==e,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}),e.set("animations",{colors:{type:"color",properties:YT},numbers:{type:"number",properties:XT}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>0|e}}}})},function(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:eR.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e,_indexable:e=>"borderDash"!==e&&"tickBorderDash"!==e&&"dash"!==e}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:e=>"backdropPadding"!==e&&"callback"!==e,_indexable:e=>"backdropPadding"!==e})}]);function sR(e,t,n,o,r){let i=t[r];return i||(i=t[r]=e.measureText(r).width,n.push(r)),i>o&&(o=i),o}function lR(e,t,n){const o=e.currentDevicePixelRatio,r=0!==n?Math.max(n/2,.5):0;return Math.round((t-r)*o)/o+r}function cR(e,t){(t=t||e.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore()}function uR(e,t,n,o){!function(e,t,n,o,r){let i,a,s,l,c,u,d,f;const p=t.pointStyle,h=t.rotation,m=t.radius;let g=(h||0)*gT;if(p&&"object"==typeof p&&(i=p.toString(),"[object HTMLImageElement]"===i||"[object HTMLCanvasElement]"===i))return e.save(),e.translate(n,o),e.rotate(g),e.drawImage(p,-p.width/2,-p.height/2,p.width,p.height),void e.restore();if(!(isNaN(m)||m<=0)){switch(e.beginPath(),p){default:r?e.ellipse(n,o,r/2,m,0,0,pT):e.arc(n,o,m,0,pT),e.closePath();break;case"triangle":u=r?r/2:m,e.moveTo(n+Math.sin(g)*u,o-Math.cos(g)*m),g+=yT,e.lineTo(n+Math.sin(g)*u,o-Math.cos(g)*m),g+=yT,e.lineTo(n+Math.sin(g)*u,o-Math.cos(g)*m),e.closePath();break;case"rectRounded":c=.516*m,l=m-c,a=Math.cos(g+bT)*l,d=Math.cos(g+bT)*(r?r/2-c:l),s=Math.sin(g+bT)*l,f=Math.sin(g+bT)*(r?r/2-c:l),e.arc(n-d,o-s,c,g-fT,g-vT),e.arc(n+f,o-a,c,g-vT,g),e.arc(n+d,o+s,c,g,g+vT),e.arc(n-f,o+a,c,g+vT,g+fT),e.closePath();break;case"rect":if(!h){l=Math.SQRT1_2*m,u=r?r/2:l,e.rect(n-u,o-l,2*u,2*l);break}g+=bT;case"rectRot":d=Math.cos(g)*(r?r/2:m),a=Math.cos(g)*m,s=Math.sin(g)*m,f=Math.sin(g)*(r?r/2:m),e.moveTo(n-d,o-s),e.lineTo(n+f,o-a),e.lineTo(n+d,o+s),e.lineTo(n-f,o+a),e.closePath();break;case"crossRot":g+=bT;case"cross":d=Math.cos(g)*(r?r/2:m),a=Math.cos(g)*m,s=Math.sin(g)*m,f=Math.sin(g)*(r?r/2:m),e.moveTo(n-d,o-s),e.lineTo(n+d,o+s),e.moveTo(n+f,o-a),e.lineTo(n-f,o+a);break;case"star":d=Math.cos(g)*(r?r/2:m),a=Math.cos(g)*m,s=Math.sin(g)*m,f=Math.sin(g)*(r?r/2:m),e.moveTo(n-d,o-s),e.lineTo(n+d,o+s),e.moveTo(n+f,o-a),e.lineTo(n-f,o+a),g+=bT,d=Math.cos(g)*(r?r/2:m),a=Math.cos(g)*m,s=Math.sin(g)*m,f=Math.sin(g)*(r?r/2:m),e.moveTo(n-d,o-s),e.lineTo(n+d,o+s),e.moveTo(n+f,o-a),e.lineTo(n-f,o+a);break;case"line":a=r?r/2:Math.cos(g)*m,s=Math.sin(g)*m,e.moveTo(n-a,o-s),e.lineTo(n+a,o+s);break;case"dash":e.moveTo(n,o),e.lineTo(n+Math.cos(g)*(r?r/2:m),o+Math.sin(g)*m);break;case!1:e.closePath()}e.fill(),t.borderWidth>0&&e.stroke()}}(e,t,n,o,null)}function dR(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function fR(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function pR(e){e.restore()}function hR(e,t,n,o,r){if(!t)return e.lineTo(n.x,n.y);if("middle"===r){const o=(t.x+n.x)/2;e.lineTo(o,t.y),e.lineTo(o,n.y)}else"after"===r!=!!o?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function mR(e,t,n,o){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(o?t.cp1x:t.cp2x,o?t.cp1y:t.cp2y,o?n.cp2x:n.cp1x,o?n.cp2y:n.cp1y,n.x,n.y)}function gR(e,t,n,o,r){if(r.strikethrough||r.underline){const i=e.measureText(o),a=t-i.actualBoundingBoxLeft,s=t+i.actualBoundingBoxRight,l=n-i.actualBoundingBoxAscent,c=n+i.actualBoundingBoxDescent,u=r.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=r.decorationWidth||2,e.moveTo(a,u),e.lineTo(s,u),e.stroke()}}function vR(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function bR(e,t,n,o,r,i={}){const a=qN(t)?t:[t],s=i.strokeWidth>0&&""!==i.strokeColor;let l,c;for(e.save(),e.font=r.string,function(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),KN(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}(e,i),l=0;l<a.length;++l)c=a[l],i.backdrop&&vR(e,i.backdrop),s&&(i.strokeColor&&(e.strokeStyle=i.strokeColor),KN(i.strokeWidth)||(e.lineWidth=i.strokeWidth),e.strokeText(c,n,o,i.maxWidth)),e.fillText(c,n,o,i.maxWidth),gR(e,n,o,c,i),o+=Number(r.lineHeight);e.restore()}function yR(e,t){const{x:n,y:o,w:r,h:i,radius:a}=t;e.arc(n+a.topLeft,o+a.topLeft,a.topLeft,1.5*fT,fT,!0),e.lineTo(n,o+i-a.bottomLeft),e.arc(n+a.bottomLeft,o+i-a.bottomLeft,a.bottomLeft,fT,vT,!0),e.lineTo(n+r-a.bottomRight,o+i),e.arc(n+r-a.bottomRight,o+i-a.bottomRight,a.bottomRight,vT,0,!0),e.lineTo(n+r,o+a.topRight),e.arc(n+r-a.topRight,o+a.topRight,a.topRight,0,-vT,!0),e.lineTo(n+a.topLeft,o)}const xR=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,wR=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function CR(e,t){const n=(""+e).match(xR);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e}const SR=e=>+e||0;function ER(e,t){const n={},o=UN(t),r=o?Object.keys(t):t,i=UN(e)?o?n=>YN(e[n],e[t[n]]):t=>e[t]:()=>e;for(const e of r)n[e]=SR(i(e));return n}function kR(e){return ER(e,["topLeft","topRight","bottomLeft","bottomRight"])}function $R(e){const t=function(e){return ER(e,{top:"y",right:"x",bottom:"y",left:"x"})}(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function _R(e,t){e=e||{},t=t||aR.font;let n=YN(e.size,t.size);"string"==typeof n&&(n=parseInt(n,10));let o=YN(e.style,t.style);o&&!(""+o).match(wR)&&(console.warn('Invalid font style specified: "'+o+'"'),o=void 0);const r={family:YN(e.family,t.family),lineHeight:CR(YN(e.lineHeight,t.lineHeight),n),size:n,style:o,weight:YN(e.weight,t.weight),string:""};return r.string=function(e){return!e||KN(e.size)||KN(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(r),r}function OR(e,t,n,o){let r,i,a,s=!0;for(r=0,i=e.length;r<i;++r)if(a=e[r],void 0!==a&&(void 0!==t&&"function"==typeof a&&(a=a(t),s=!1),void 0!==n&&qN(a)&&(a=a[n%a.length],s=!1),void 0!==a))return o&&!s&&(o.cacheable=!1),a}function jR(e,t){return Object.assign(Object.create(e),t)}function MR(e,t=[""],n,o,r=(()=>e[0])){const i=n||e;void 0===o&&(o=FR("_fallback",e));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:i,_fallback:o,_getTarget:r,override:n=>MR([n,...e],t,i,o)};return new Proxy(a,{deleteProperty:(t,n)=>(delete t[n],delete t._keys,delete e[0][n],!0),get:(n,o)=>RR(n,o,(()=>function(e,t,n,o){let r;for(const i of t)if(r=FR(NR(i,e),n),void 0!==r)return TR(e,r)?LR(n,o,e,r):r}(o,t,e,n))),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e._scopes[0],t),getPrototypeOf:()=>Reflect.getPrototypeOf(e[0]),has:(e,t)=>HR(e).includes(t),ownKeys:e=>HR(e),set(e,t,n){const o=e._storage||(e._storage=r());return e[t]=o[t]=n,delete e._keys,!0}})}function PR(e,t,n,o){const r={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:IR(e,o),setContext:t=>PR(e,t,n,o),override:r=>PR(e.override(r),t,n,o)};return new Proxy(r,{deleteProperty:(t,n)=>(delete t[n],delete e[n],!0),get:(e,t,n)=>RR(e,t,(()=>function(e,t,n){const{_proxy:o,_context:r,_subProxy:i,_descriptors:a}=e;let s=o[t];return uT(s)&&a.isScriptable(t)&&(s=function(e,t,n,o){const{_proxy:r,_context:i,_subProxy:a,_stack:s}=n;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e);let l=t(i,a||o);return s.delete(e),TR(e,l)&&(l=LR(r._scopes,r,e,l)),l}(t,s,e,n)),qN(s)&&s.length&&(s=function(e,t,n,o){const{_proxy:r,_context:i,_subProxy:a,_descriptors:s}=n;if(void 0!==i.index&&o(e))return t[i.index%t.length];if(UN(t[0])){const n=t,o=r._scopes.filter((e=>e!==n));t=[];for(const l of n){const n=LR(o,r,e,l);t.push(PR(n,i,a&&a[e],s))}}return t}(t,s,e,a.isIndexable)),TR(t,s)&&(s=PR(s,r,i&&i[t],a)),s}(e,t,n))),getOwnPropertyDescriptor:(t,n)=>t._descriptors.allKeys?Reflect.has(e,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,n),getPrototypeOf:()=>Reflect.getPrototypeOf(e),has:(t,n)=>Reflect.has(e,n),ownKeys:()=>Reflect.ownKeys(e),set:(t,n,o)=>(e[n]=o,delete t[n],!0)})}function IR(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:o=t.indexable,_allKeys:r=t.allKeys}=e;return{allKeys:r,scriptable:n,indexable:o,isScriptable:uT(n)?n:()=>n,isIndexable:uT(o)?o:()=>o}}const NR=(e,t)=>e?e+lT(t):t,TR=(e,t)=>UN(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object);function RR(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const o=n();return e[t]=o,o}function AR(e,t,n){return uT(e)?e(t,n):e}const DR=(e,t)=>!0===e?t:"string"==typeof e?sT(t,e):void 0;function BR(e,t,n,o,r){for(const i of t){const t=DR(n,i);if(t){e.add(t);const i=AR(t._fallback,n,r);if(void 0!==i&&i!==n&&i!==o)return i}else if(!1===t&&void 0!==o&&n!==o)return null}return!1}function LR(e,t,n,o){const r=t._rootScopes,i=AR(t._fallback,n,o),a=[...e,...r],s=new Set;s.add(o);let l=zR(s,a,n,i||n,o);return null!==l&&(void 0===i||i===n||(l=zR(s,a,i,l,o),null!==l))&&MR(Array.from(s),[""],r,i,(()=>function(e,t,n){const o=e._getTarget();t in o||(o[t]={});const r=o[t];return qN(r)&&UN(n)?n:r||{}}(t,n,o)))}function zR(e,t,n,o,r){for(;n;)n=BR(e,t,n,o,r);return n}function FR(e,t){for(const n of t){if(!n)continue;const t=n[e];if(void 0!==t)return t}}function HR(e){let t=e._keys;return t||(t=e._keys=function(e){const t=new Set;for(const n of e)for(const e of Object.keys(n).filter((e=>!e.startsWith("_"))))t.add(e);return Array.from(t)}(e._scopes)),t}const VR=Number.EPSILON||1e-14,WR=(e,t)=>t<e.length&&!e[t].skip&&e[t],KR=e=>"x"===e?"y":"x";function qR(e,t,n,o){const r=e.skip?t:e,i=t,a=n.skip?t:n,s=_T(i,r),l=_T(a,i);let c=s/(s+l),u=l/(s+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=o*c,f=o*u;return{previous:{x:i.x-d*(a.x-r.x),y:i.y-d*(a.y-r.y)},next:{x:i.x+f*(a.x-r.x),y:i.y+f*(a.y-r.y)}}}function UR(e,t,n){return Math.max(Math.min(e,n),t)}function GR(e,t,n,o,r){let i,a,s,l;if(t.spanGaps&&(e=e.filter((e=>!e.skip))),"monotone"===t.cubicInterpolationMode)!function(e,t="x"){const n=KR(t),o=e.length,r=Array(o).fill(0),i=Array(o);let a,s,l,c=WR(e,0);for(a=0;a<o;++a)if(s=l,l=c,c=WR(e,a+1),l){if(c){const e=c[t]-l[t];r[a]=0!==e?(c[n]-l[n])/e:0}i[a]=s?c?wT(r[a-1])!==wT(r[a])?0:(r[a-1]+r[a])/2:r[a-1]:r[a]}!function(e,t,n){const o=e.length;let r,i,a,s,l,c=WR(e,0);for(let u=0;u<o-1;++u)l=c,c=WR(e,u+1),l&&c&&(CT(t[u],0,VR)?n[u]=n[u+1]=0:(r=n[u]/t[u],i=n[u+1]/t[u],s=Math.pow(r,2)+Math.pow(i,2),s<=9||(a=3/Math.sqrt(s),n[u]=r*a*t[u],n[u+1]=i*a*t[u])))}(e,r,i),function(e,t,n="x"){const o=KR(n),r=e.length;let i,a,s,l=WR(e,0);for(let c=0;c<r;++c){if(a=s,s=l,l=WR(e,c+1),!s)continue;const r=s[n],u=s[o];a&&(i=(r-a[n])/3,s[`cp1${n}`]=r-i,s[`cp1${o}`]=u-i*t[c]),l&&(i=(l[n]-r)/3,s[`cp2${n}`]=r+i,s[`cp2${o}`]=u+i*t[c])}}(e,i,t)}(e,r);else{let n=o?e[e.length-1]:e[0];for(i=0,a=e.length;i<a;++i)s=e[i],l=qR(n,s,e[Math.min(i+1,a-(o?0:1))%a],t.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,n=s}t.capBezierPoints&&function(e,t){let n,o,r,i,a,s=dR(e[0],t);for(n=0,o=e.length;n<o;++n)a=i,i=s,s=n<o-1&&dR(e[n+1],t),i&&(r=e[n],a&&(r.cp1x=UR(r.cp1x,t.left,t.right),r.cp1y=UR(r.cp1y,t.top,t.bottom)),s&&(r.cp2x=UR(r.cp2x,t.left,t.right),r.cp2y=UR(r.cp2y,t.top,t.bottom)))}(e,n)}function XR(){return"undefined"!=typeof window&&"undefined"!=typeof document}function YR(e){let t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function ZR(e,t,n){let o;return"string"==typeof e?(o=parseInt(e,10),-1!==e.indexOf("%")&&(o=o/100*t.parentNode[n])):o=e,o}const QR=e=>e.ownerDocument.defaultView.getComputedStyle(e,null),JR=["top","right","bottom","left"];function eA(e,t,n){const o={};n=n?"-"+n:"";for(let r=0;r<4;r++){const i=JR[r];o[i]=parseFloat(e[t+"-"+i+n])||0}return o.width=o.left+o.right,o.height=o.top+o.bottom,o}const tA=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function nA(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:o}=t,r=QR(n),i="border-box"===r.boxSizing,a=eA(r,"padding"),s=eA(r,"border","width"),{x:l,y:c,box:u}=function(e,t){const n=e.touches,o=n&&n.length?n[0]:e,{offsetX:r,offsetY:i}=o;let a,s,l=!1;if(tA(r,i,e.target))a=r,s=i;else{const e=t.getBoundingClientRect();a=o.clientX-e.left,s=o.clientY-e.top,l=!0}return{x:a,y:s,box:l}}(e,n),d=a.left+(u&&s.left),f=a.top+(u&&s.top);let{width:p,height:h}=t;return i&&(p-=a.width+s.width,h-=a.height+s.height),{x:Math.round((l-d)/p*n.width/o),y:Math.round((c-f)/h*n.height/o)}}const oA=e=>Math.round(10*e)/10;function rA(e,t,n){const o=t||1,r=Math.floor(e.height*o),i=Math.floor(e.width*o);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${e.height}px`,a.style.width=`${e.width}px`),(e.currentDevicePixelRatio!==o||a.height!==r||a.width!==i)&&(e.currentDevicePixelRatio=o,a.height=r,a.width=i,e.ctx.setTransform(o,0,0,o,0,0),!0)}const iA=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};XR()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch(e){}return e}();function aA(e,t){const n=function(e,t){return QR(e).getPropertyValue(t)}(e,t),o=n&&n.match(/^(\d+)(\.\d+)?px$/);return o?+o[1]:void 0}function sA(e,t,n,o){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function lA(e,t,n,o){return{x:e.x+n*(t.x-e.x),y:"middle"===o?n<.5?e.y:t.y:"after"===o?n<1?e.y:t.y:n>0?t.y:e.y}}function cA(e,t,n,o){const r={x:e.cp2x,y:e.cp2y},i={x:t.cp1x,y:t.cp1y},a=sA(e,r,n),s=sA(r,i,n),l=sA(i,t,n),c=sA(a,s,n),u=sA(s,l,n);return sA(c,u,n)}function uA(e,t,n){return e?function(e,t){return{x:n=>e+e+t-n,setWidth(e){t=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,t)=>e-t,leftForLtr:(e,t)=>e-t}}(t,n):{x:e=>e,setWidth(e){},textAlign:e=>e,xPlus:(e,t)=>e+t,leftForLtr:(e,t)=>e}}function dA(e){return"angle"===e?{between:MT,compare:OT,normalize:jT}:{between:IT,compare:(e,t)=>e-t,normalize:e=>e}}function fA({start:e,end:t,count:n,loop:o,style:r}){return{start:e%n,end:t%n,loop:o&&(t-e+1)%n==0,style:r}}function pA(e,t,n){if(!n)return[e];const{property:o,start:r,end:i}=n,a=t.length,{compare:s,between:l,normalize:c}=dA(o),{start:u,end:d,loop:f,style:p}=function(e,t,n){const{property:o,start:r,end:i}=n,{between:a,normalize:s}=dA(o),l=t.length;let c,u,{start:d,end:f,loop:p}=e;if(p){for(d+=l,f+=l,c=0,u=l;c<u&&a(s(t[d%l][o]),r,i);++c)d--,f--;d%=l,f%=l}return f<d&&(f+=l),{start:d,end:f,loop:p,style:e.style}}(e,t,n),h=[];let m,g,v,b=!1,y=null;for(let e=u,n=u;e<=d;++e)g=t[e%a],g.skip||(m=c(g[o]),m!==v&&(b=l(m,r,i),null===y&&(b||l(r,v,m)&&0!==s(r,v))&&(y=0===s(m,r)?e:n),null!==y&&(!b||0===s(i,m)||l(i,v,m))&&(h.push(fA({start:y,end:e,loop:f,count:a,style:p})),y=null),n=e,v=m));return null!==y&&h.push(fA({start:y,end:d,loop:f,count:a,style:p})),h}function hA(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function mA(e,t){if(!t)return!1;const n=[],o=function(e,t){return qT(t)?(n.includes(t)||n.push(t),n.indexOf(t)):t};return JSON.stringify(e,o)!==JSON.stringify(t,o)}class gA{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,t,n,o){const r=t.listeners[o],i=t.duration;r.forEach((o=>o({chart:e,initial:t.initial,numSteps:i,currentStep:Math.min(n-t.start,i)})))}_refresh(){this._request||(this._running=!0,this._request=BT.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(e=Date.now()){let t=0;this._charts.forEach(((n,o)=>{if(!n.running||!n.items.length)return;const r=n.items;let i,a=r.length-1,s=!1;for(;a>=0;--a)i=r[a],i._active?(i._total>n.duration&&(n.duration=i._total),i.tick(e),s=!0):(r[a]=r[r.length-1],r.pop());s&&(o.draw(),this._notify(o,n,e,"progress")),r.length||(n.running=!1,this._notify(o,n,e,"complete"),n.initial=!1),t+=r.length})),this._lastDate=e,0===t&&(this._running=!1)}_getAnims(e){const t=this._charts;let n=t.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,n)),n}listen(e,t,n){this._getAnims(e).listeners[t].push(n)}add(e,t){t&&t.length&&this._getAnims(e).items.push(...t)}has(e){return this._getAnims(e).items.length>0}start(e){const t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce(((e,t)=>Math.max(e,t._duration)),0),this._refresh())}running(e){if(!this._running)return!1;const t=this._charts.get(e);return!!(t&&t.running&&t.items.length)}stop(e){const t=this._charts.get(e);if(!t||!t.items.length)return;const n=t.items;let o=n.length-1;for(;o>=0;--o)n[o].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var vA=new gA;const bA="transparent",yA={boolean:(e,t,n)=>n>.5?t:e,color(e,t,n){const o=UT(e||bA),r=o.valid&&UT(t||bA);return r&&r.valid?r.mix(o,n).hexString():t},number:(e,t,n)=>e+(t-e)*n};class xA{constructor(e,t,n,o){const r=t[n];o=OR([e.to,o,r,e.from]);const i=OR([e.from,r,o]);this._active=!0,this._fn=e.fn||yA[e.type||typeof i],this._easing=KT[e.easing]||KT.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=t,this._prop=n,this._from=i,this._to=o,this._promises=void 0}active(){return this._active}update(e,t,n){if(this._active){this._notify(!1);const o=this._target[this._prop],r=n-this._start,i=this._duration-r;this._start=n,this._duration=Math.floor(Math.max(i,e.duration)),this._total+=r,this._loop=!!e.loop,this._to=OR([e.to,t,o,e.from]),this._from=OR([e.from,o,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const t=e-this._start,n=this._duration,o=this._prop,r=this._from,i=this._loop,a=this._to;let s;if(this._active=r!==a&&(i||t<n),!this._active)return this._target[o]=a,void this._notify(!0);t<0?this._target[o]=r:(s=t/n%2,s=i&&s>1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[o]=this._fn(r,a,s))}wait(){const e=this._promises||(this._promises=[]);return new Promise(((t,n)=>{e.push({res:t,rej:n})}))}_notify(e){const t=e?"res":"rej",n=this._promises||[];for(let e=0;e<n.length;e++)n[e][t]()}}class wA{constructor(e,t){this._chart=e,this._properties=new Map,this.configure(t)}configure(e){if(!UN(e))return;const t=Object.keys(aR.animation),n=this._properties;Object.getOwnPropertyNames(e).forEach((o=>{const r=e[o];if(!UN(r))return;const i={};for(const e of t)i[e]=r[e];(qN(r.properties)&&r.properties||[o]).forEach((e=>{e!==o&&n.has(e)||n.set(e,i)}))}))}_animateOptions(e,t){const n=t.options,o=function(e,t){if(!t)return;let n=e.options;if(n)return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n;e.options=t}(e,n);if(!o)return[];const r=this._createAnimations(o,n);return n.$shared&&function(e,t){const n=[],o=Object.keys(t);for(let t=0;t<o.length;t++){const r=e[o[t]];r&&r.active()&&n.push(r.wait())}return Promise.all(n)}(e.options.$animations,n).then((()=>{e.options=n}),(()=>{})),r}_createAnimations(e,t){const n=this._properties,o=[],r=e.$animations||(e.$animations={}),i=Object.keys(t),a=Date.now();let s;for(s=i.length-1;s>=0;--s){const l=i[s];if("$"===l.charAt(0))continue;if("options"===l){o.push(...this._animateOptions(e,t));continue}const c=t[l];let u=r[l];const d=n.get(l);if(u){if(d&&u.active()){u.update(d,c,a);continue}u.cancel()}d&&d.duration?(r[l]=u=new xA(d,e,l,c),o.push(u)):e[l]=c}return o}update(e,t){if(0===this._properties.size)return void Object.assign(e,t);const n=this._createAnimations(e,t);return n.length?(vA.add(this._chart,n),!0):void 0}}function CA(e,t){const n=e&&e.options||{},o=n.reverse,r=void 0===n.min?t:0,i=void 0===n.max?t:0;return{start:o?i:r,end:o?r:i}}function SA(e,t){const n=[],o=e._getSortedDatasetMetas(t);let r,i;for(r=0,i=o.length;r<i;++r)n.push(o[r].index);return n}function EA(e,t,n,o={}){const r=e.keys,i="single"===o.mode;let a,s,l,c;if(null!==t){for(a=0,s=r.length;a<s;++a){if(l=+r[a],l===n){if(o.all)continue;break}c=e.values[l],GN(c)&&(i||0===t||wT(t)===wT(c))&&(t+=c)}return t}}function kA(e,t){const n=e&&e.options.stacked;return n||void 0===n&&void 0!==t.stack}function $A(e,t,n){const o=e[t]||(e[t]={});return o[n]||(o[n]={})}function _A(e,t,n,o){for(const r of t.getMatchingVisibleMetas(o).reverse()){const t=e[r.index];if(n&&t>0||!n&&t<0)return r.index}return null}function OA(e,t){const{chart:n,_cachedMeta:o}=e,r=n._stacks||(n._stacks={}),{iScale:i,vScale:a,index:s}=o,l=i.axis,c=a.axis,u=function(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}(i,a,o),d=t.length;let f;for(let e=0;e<d;++e){const n=t[e],{[l]:i,[c]:d}=n;f=(n._stacks||(n._stacks={}))[c]=$A(r,u,i),f[s]=d,f._top=_A(f,a,!0,o.type),f._bottom=_A(f,a,!1,o.type),(f._visualValues||(f._visualValues={}))[s]=d}}function jA(e,t){const n=e.scales;return Object.keys(n).filter((e=>n[e].axis===t)).shift()}function MA(e,t){const n=e.controller.index,o=e.vScale&&e.vScale.axis;if(o){t=t||e._parsed;for(const e of t){const t=e._stacks;if(!t||void 0===t[o]||void 0===t[o][n])return;delete t[o][n],void 0!==t[o]._visualValues&&void 0!==t[o]._visualValues[n]&&delete t[o]._visualValues[n]}}}const PA=e=>"reset"===e||"none"===e,IA=(e,t)=>t?e:Object.assign({},e);class NA{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(e,t){this.chart=e,this._ctx=e.ctx,this.index=t,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=kA(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&MA(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,t=this._cachedMeta,n=this.getDataset(),o=(e,t,n,o)=>"x"===e?t:"r"===e?o:n,r=t.xAxisID=YN(n.xAxisID,jA(e,"x")),i=t.yAxisID=YN(n.yAxisID,jA(e,"y")),a=t.rAxisID=YN(n.rAxisID,jA(e,"r")),s=t.indexAxis,l=t.iAxisID=o(s,r,i,a),c=t.vAxisID=o(s,i,r,a);t.xScale=this.getScaleForId(r),t.yScale=this.getScaleForId(i),t.rScale=this.getScaleForId(a),t.iScale=this.getScaleForId(l),t.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&DT(this._data,this),e._stacked&&MA(e)}_dataCheck(){const e=this.getDataset(),t=e.data||(e.data=[]),n=this._data;if(UN(t))this._data=function(e){const t=Object.keys(e),n=new Array(t.length);let o,r,i;for(o=0,r=t.length;o<r;++o)i=t[o],n[o]={x:i,y:e[i]};return n}(t);else if(n!==t){if(n){DT(n,this);const e=this._cachedMeta;MA(e),e._parsed=[]}t&&Object.isExtensible(t)&&(r=this,(o=t)._chartjs?o._chartjs.listeners.push(r):(Object.defineProperty(o,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[r]}}),AT.forEach((e=>{const t="_onData"+lT(e),n=o[e];Object.defineProperty(o,e,{configurable:!0,enumerable:!1,value(...e){const r=n.apply(this,e);return o._chartjs.listeners.forEach((n=>{"function"==typeof n[t]&&n[t](...e)})),r}})})))),this._syncList=[],this._data=t}var o,r}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const t=this._cachedMeta,n=this.getDataset();let o=!1;this._dataCheck();const r=t._stacked;t._stacked=kA(t.vScale,t),t.stack!==n.stack&&(o=!0,MA(t),t.stack=n.stack),this._resyncElements(e),(o||r!==t._stacked)&&OA(this,t._parsed)}configure(){const e=this.chart.config,t=e.datasetScopeKeys(this._type),n=e.getOptionScopes(this.getDataset(),t,!0);this.options=e.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,t){const{_cachedMeta:n,_data:o}=this,{iScale:r,_stacked:i}=n,a=r.axis;let s,l,c,u=0===e&&t===o.length||n._sorted,d=e>0&&n._parsed[e-1];if(!1===this._parsing)n._parsed=o,n._sorted=!0,c=o;else{c=qN(o[e])?this.parseArrayData(n,o,e,t):UN(o[e])?this.parseObjectData(n,o,e,t):this.parsePrimitiveData(n,o,e,t);const r=()=>null===l[a]||d&&l[a]<d[a];for(s=0;s<t;++s)n._parsed[s+e]=l=c[s],u&&(r()&&(u=!1),d=l);n._sorted=u}i&&OA(this,c)}parsePrimitiveData(e,t,n,o){const{iScale:r,vScale:i}=e,a=r.axis,s=i.axis,l=r.getLabels(),c=r===i,u=new Array(o);let d,f,p;for(d=0,f=o;d<f;++d)p=d+n,u[d]={[a]:c||r.parse(l[p],p),[s]:i.parse(t[p],p)};return u}parseArrayData(e,t,n,o){const{xScale:r,yScale:i}=e,a=new Array(o);let s,l,c,u;for(s=0,l=o;s<l;++s)c=s+n,u=t[c],a[s]={x:r.parse(u[0],c),y:i.parse(u[1],c)};return a}parseObjectData(e,t,n,o){const{xScale:r,yScale:i}=e,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,l=new Array(o);let c,u,d,f;for(c=0,u=o;c<u;++c)d=c+n,f=t[d],l[c]={x:r.parse(sT(f,a),d),y:i.parse(sT(f,s),d)};return l}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,t,n){const o=this.chart,r=this._cachedMeta,i=t[e.axis];return EA({keys:SA(o,!0),values:t._stacks[e.axis]._visualValues},i,r.index,{mode:n})}updateRangeFromParsed(e,t,n,o){const r=n[t.axis];let i=null===r?NaN:r;const a=o&&n._stacks[t.axis];o&&a&&(o.values=a,i=EA(o,r,this._cachedMeta.index)),e.min=Math.min(e.min,i),e.max=Math.max(e.max,i)}getMinMax(e,t){const n=this._cachedMeta,o=n._parsed,r=n._sorted&&e===n.iScale,i=o.length,a=this._getOtherScale(e),s=((e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:SA(n,!0),values:null})(t,n,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:u}=function(e){const{min:t,max:n,minDefined:o,maxDefined:r}=e.getUserBounds();return{min:o?t:Number.NEGATIVE_INFINITY,max:r?n:Number.POSITIVE_INFINITY}}(a);let d,f;function p(){f=o[d];const t=f[a.axis];return!GN(f[e.axis])||c>t||u<t}for(d=0;d<i&&(p()||(this.updateRangeFromParsed(l,e,f,s),!r));++d);if(r)for(d=i-1;d>=0;--d)if(!p()){this.updateRangeFromParsed(l,e,f,s);break}return l}getAllParsedValues(e){const t=this._cachedMeta._parsed,n=[];let o,r,i;for(o=0,r=t.length;o<r;++o)i=t[o][e.axis],GN(i)&&n.push(i);return n}getMaxOverflow(){return!1}getLabelAndValue(e){const t=this._cachedMeta,n=t.iScale,o=t.vScale,r=this.getParsed(e);return{label:n?""+n.getLabelForValue(r[n.axis]):"",value:o?""+o.getLabelForValue(r[o.axis]):""}}_update(e){const t=this._cachedMeta;this.update(e||"default"),t._clip=function(e){let t,n,o,r;return UN(e)?(t=e.top,n=e.right,o=e.bottom,r=e.left):t=n=o=r=e,{top:t,right:n,bottom:o,left:r,disabled:!1===e}}(YN(this.options.clip,function(e,t,n){if(!1===n)return!1;const o=CA(e,n),r=CA(t,n);return{top:r.end,right:o.end,bottom:r.start,left:o.start}}(t.xScale,t.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,t=this.chart,n=this._cachedMeta,o=n.data||[],r=t.chartArea,i=[],a=this._drawStart||0,s=this._drawCount||o.length-a,l=this.options.drawActiveElementsOnTop;let c;for(n.dataset&&n.dataset.draw(e,r,a,s),c=a;c<a+s;++c){const t=o[c];t.hidden||(t.active&&l?i.push(t):t.draw(e,r))}for(c=0;c<i.length;++c)i[c].draw(e,r)}getStyle(e,t){const n=t?"active":"default";return void 0===e&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(e||0,n)}getContext(e,t,n){const o=this.getDataset();let r;if(e>=0&&e<this._cachedMeta.data.length){const t=this._cachedMeta.data[e];r=t.$context||(t.$context=function(e,t,n){return jR(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}(this.getContext(),e,t)),r.parsed=this.getParsed(e),r.raw=o.data[e],r.index=r.dataIndex=e}else r=this.$context||(this.$context=function(e,t){return jR(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),r.dataset=o,r.index=r.datasetIndex=this.index;return r.active=!!t,r.mode=n,r}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,t){return this._resolveElementOptions(this.dataElementType.id,t,e)}_resolveElementOptions(e,t="default",n){const o="active"===t,r=this._cachedDataOpts,i=e+"-"+t,a=r[i],s=this.enableOptionSharing&&cT(n);if(a)return IA(a,s);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,e),u=o?[`${e}Hover`,"hover",e,""]:[e,""],d=l.getOptionScopes(this.getDataset(),c),f=Object.keys(aR.elements[e]),p=l.resolveNamedOptions(d,f,(()=>this.getContext(n,o,t)),u);return p.$shared&&(p.$shared=s,r[i]=Object.freeze(IA(p,s))),p}_resolveAnimations(e,t,n){const o=this.chart,r=this._cachedDataOpts,i=`animation-${t}`,a=r[i];if(a)return a;let s;if(!1!==o.options.animation){const o=this.chart.config,r=o.datasetAnimationScopeKeys(this._type,t),i=o.getOptionScopes(this.getDataset(),r);s=o.createResolver(i,this.getContext(e,n,t))}const l=new wA(o,s&&s.animations);return s&&s._cacheable&&(r[i]=Object.freeze(l)),l}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,t){return!t||PA(e)||this.chart._animationsDisabled}_getSharedOptions(e,t){const n=this.resolveDataElementOptions(e,t),o=this._sharedOptions,r=this.getSharedOptions(n),i=this.includeOptions(t,r)||r!==o;return this.updateSharedOptions(r,t,n),{sharedOptions:r,includeOptions:i}}updateElement(e,t,n,o){PA(o)?Object.assign(e,n):this._resolveAnimations(t,o).update(e,n)}updateSharedOptions(e,t,n){e&&!PA(t)&&this._resolveAnimations(void 0,t).update(e,n)}_setStyle(e,t,n,o){e.active=o;const r=this.getStyle(t,o);this._resolveAnimations(t,n,o).update(e,{options:!o&&this.getSharedOptions(r)||r})}removeHoverStyle(e,t,n){this._setStyle(e,n,"active",!1)}setHoverStyle(e,t,n){this._setStyle(e,n,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const t=this._data,n=this._cachedMeta.data;for(const[e,t,n]of this._syncList)this[e](t,n);this._syncList=[];const o=n.length,r=t.length,i=Math.min(r,o);i&&this.parse(0,i),r>o?this._insertElements(o,r-o,e):r<o&&this._removeElements(r,o-r)}_insertElements(e,t,n=!0){const o=this._cachedMeta,r=o.data,i=e+t;let a;const s=e=>{for(e.length+=t,a=e.length-1;a>=i;a--)e[a]=e[a-t]};for(s(r),a=e;a<i;++a)r[a]=new this.dataElementType;this._parsing&&s(o._parsed),this.parse(e,t),n&&this.updateElements(r,e,t,"reset")}updateElements(e,t,n,o){}_removeElements(e,t){const n=this._cachedMeta;if(this._parsing){const o=n._parsed.splice(e,t);n._stacked&&MA(n,o)}n.data.splice(e,t)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[t,n,o]=e;this[t](n,o)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,t){t&&this._sync(["_removeElements",e,t]);const n=arguments.length-2;n&&this._sync(["_insertElements",e,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function TA(e){const t=e.iScale,n=function(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let o=[];for(let t=0,r=n.length;t<r;t++)o=o.concat(n[t].controller.getAllParsedValues(e));e._cache.$bar=function(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}(o.sort(((e,t)=>e-t)))}return e._cache.$bar}(t,e.type);let o,r,i,a,s=t._length;const l=()=>{32767!==i&&-32768!==i&&(cT(a)&&(s=Math.min(s,Math.abs(i-a)||s)),a=i)};for(o=0,r=n.length;o<r;++o)i=t.getPixelForValue(n[o]),l();for(a=void 0,o=0,r=t.ticks.length;o<r;++o)i=t.getPixelForTick(o),l();return s}function RA(e,t,n,o){return qN(e)?function(e,t,n,o){const r=n.parse(e[0],o),i=n.parse(e[1],o),a=Math.min(r,i),s=Math.max(r,i);let l=a,c=s;Math.abs(a)>Math.abs(s)&&(l=s,c=a),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:r,end:i,min:a,max:s}}(e,t,n,o):t[n.axis]=n.parse(e,o),t}function AA(e,t,n,o){const r=e.iScale,i=e.vScale,a=r.getLabels(),s=r===i,l=[];let c,u,d,f;for(c=n,u=n+o;c<u;++c)f=t[c],d={},d[r.axis]=s||r.parse(a[c],c),l.push(RA(f,d,i,c));return l}function DA(e){return e&&void 0!==e.barStart&&void 0!==e.barEnd}function BA(e,t,n,o){let r=t.borderSkipped;const i={};if(!r)return void(e.borderSkipped=i);if(!0===r)return void(e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:a,end:s,reverse:l,top:c,bottom:u}=function(e){let t,n,o,r,i;return e.horizontal?(t=e.base>e.x,n="left",o="right"):(t=e.base<e.y,n="bottom",o="top"),t?(r="end",i="start"):(r="start",i="end"),{start:n,end:o,reverse:t,top:r,bottom:i}}(e);"middle"===r&&n&&(e.enableBorderRadius=!0,(n._top||0)===o?r=c:(n._bottom||0)===o?r=u:(i[LA(u,a,s,l)]=!0,r=c)),i[LA(r,a,s,l)]=!0,e.borderSkipped=i}function LA(e,t,n,o){var r,i,a;return o?(a=n,e=zA(e=(r=e)===(i=t)?a:r===a?i:r,n,t)):e=zA(e,t,n),e}function zA(e,t,n){return"start"===e?t:"end"===e?n:e}function FA(e,{inflateAmount:t},n){e.inflateAmount="auto"===t?1===n?.33:0:t}class HA extends NA{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(e,t,n,o){return AA(e,t,n,o)}parseArrayData(e,t,n,o){return AA(e,t,n,o)}parseObjectData(e,t,n,o){const{iScale:r,vScale:i}=e,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,l="x"===r.axis?a:s,c="x"===i.axis?a:s,u=[];let d,f,p,h;for(d=n,f=n+o;d<f;++d)h=t[d],p={},p[r.axis]=r.parse(sT(h,l),d),u.push(RA(sT(h,c),p,i,d));return u}updateRangeFromParsed(e,t,n,o){super.updateRangeFromParsed(e,t,n,o);const r=n._custom;r&&t===this._cachedMeta.vScale&&(e.min=Math.min(e.min,r.min),e.max=Math.max(e.max,r.max))}getMaxOverflow(){return 0}getLabelAndValue(e){const t=this._cachedMeta,{iScale:n,vScale:o}=t,r=this.getParsed(e),i=r._custom,a=DA(i)?"["+i.start+", "+i.end+"]":""+o.getLabelForValue(r[o.axis]);return{label:""+n.getLabelForValue(r[n.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize(),this._cachedMeta.stack=this.getDataset().stack}update(e){const t=this._cachedMeta;this.updateElements(t.data,0,t.data.length,e)}updateElements(e,t,n,o){const r="reset"===o,{index:i,_cachedMeta:{vScale:a}}=this,s=a.getBasePixel(),l=a.isHorizontal(),c=this._getRuler(),{sharedOptions:u,includeOptions:d}=this._getSharedOptions(t,o);for(let f=t;f<t+n;f++){const t=this.getParsed(f),n=r||KN(t[a.axis])?{base:s,head:s}:this._calculateBarValuePixels(f),p=this._calculateBarIndexPixels(f,c),h=(t._stacks||{})[a.axis],m={horizontal:l,base:n.base,enableBorderRadius:!h||DA(t._custom)||i===h._top||i===h._bottom,x:l?n.head:p.center,y:l?p.center:n.head,height:l?p.size:Math.abs(n.size),width:l?Math.abs(n.size):p.size};d&&(m.options=u||this.resolveDataElementOptions(f,e[f].active?"active":o));const g=m.options||e[f].options;BA(m,g,h,i),FA(m,g,c.ratio),this.updateElement(e[f],f,m,o)}}_getStacks(e,t){const{iScale:n}=this._cachedMeta,o=n.getMatchingVisibleMetas(this._type).filter((e=>e.controller.options.grouped)),r=n.options.stacked,i=[],a=e=>{const n=e.controller.getParsed(t),o=n&&n[e.vScale.axis];if(KN(o)||isNaN(o))return!0};for(const n of o)if((void 0===t||!a(n))&&((!1===r||-1===i.indexOf(n.stack)||void 0===r&&void 0===n.stack)&&i.push(n.stack),n.index===e))break;return i.length||i.push(void 0),i}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,t,n){const o=this._getStacks(e,n),r=void 0!==t?o.indexOf(t):-1;return-1===r?o.length-1:r}_getRuler(){const e=this.options,t=this._cachedMeta,n=t.iScale,o=[];let r,i;for(r=0,i=t.data.length;r<i;++r)o.push(n.getPixelForValue(this.getParsed(r)[n.axis],r));const a=e.barThickness;return{min:a||TA(t),pixels:o,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:e.grouped,ratio:a?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:t,_stacked:n,index:o},options:{base:r,minBarLength:i}}=this,a=r||0,s=this.getParsed(e),l=s._custom,c=DA(l);let u,d,f=s[t.axis],p=0,h=n?this.applyStack(t,s,n):f;h!==f&&(p=h-f,h=f),c&&(f=l.barStart,h=l.barEnd-l.barStart,0!==f&&wT(f)!==wT(l.barEnd)&&(p=0),p+=f);const m=KN(r)||c?p:r;let g=t.getPixelForValue(m);if(u=this.chart.getDataVisibility(e)?t.getPixelForValue(p+h):g,d=u-g,Math.abs(d)<i){d=function(e,t,n){return 0!==e?wT(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}(d,t,a)*i,f===a&&(g-=d/2);const e=t.getPixelForDecimal(0),r=t.getPixelForDecimal(1),l=Math.min(e,r),p=Math.max(e,r);g=Math.max(Math.min(g,p),l),u=g+d,n&&!c&&(s._stacks[t.axis]._visualValues[o]=t.getValueForPixel(u)-t.getValueForPixel(g))}if(g===t.getPixelForValue(a)){const e=wT(d)*t.getLineWidthForValue(a)/2;g+=e,d-=e}return{size:d,base:g,head:u,center:u+d/2}}_calculateBarIndexPixels(e,t){const n=t.scale,o=this.options,r=o.skipNull,i=YN(o.maxBarThickness,1/0);let a,s;if(t.grouped){const n=r?this._getStackCount(e):t.stackCount,l="flex"===o.barThickness?function(e,t,n,o){const r=t.pixels,i=r[e];let a=e>0?r[e-1]:null,s=e<r.length-1?r[e+1]:null;const l=n.categoryPercentage;null===a&&(a=i-(null===s?t.end-t.start:s-i)),null===s&&(s=i+i-a);const c=i-(i-Math.min(a,s))/2*l;return{chunk:Math.abs(s-a)/2*l/o,ratio:n.barPercentage,start:c}}(e,t,o,n):function(e,t,n,o){const r=n.barThickness;let i,a;return KN(r)?(i=t.min*n.categoryPercentage,a=n.barPercentage):(i=r*o,a=1),{chunk:i/o,ratio:a,start:t.pixels[e]-i/2}}(e,t,o,n),c=this._getStackIndex(this.index,this._cachedMeta.stack,r?e:void 0);a=l.start+l.chunk*c+l.chunk/2,s=Math.min(i,l.chunk*l.ratio)}else a=n.getPixelForValue(this.getParsed(e)[n.axis],e),s=Math.min(i,t.min*t.ratio);return{base:a-s/2,head:a+s/2,center:a,size:s}}draw(){const e=this._cachedMeta,t=e.vScale,n=e.data,o=n.length;let r=0;for(;r<o;++r)null!==this.getParsed(r)[t.axis]&&n[r].draw(this._ctx)}}function VA(e,t,n,o){const{controller:r,data:i,_sorted:a}=e,s=r._cachedMeta.iScale;if(s&&t===s.axis&&"r"!==t&&a&&i.length){const e=s._reversePixels?RT:TT;if(!o)return e(i,t,n);if(r._sharedOptions){const o=i[0],r="function"==typeof o.getRange&&o.getRange(t);if(r){const o=e(i,t,n-r),a=e(i,t,n+r);return{lo:o.lo,hi:a.hi}}}}return{lo:0,hi:i.length-1}}function WA(e,t,n,o,r){const i=e.getSortedVisibleDatasetMetas(),a=n[t];for(let e=0,n=i.length;e<n;++e){const{index:n,data:s}=i[e],{lo:l,hi:c}=VA(i[e],t,a,r);for(let e=l;e<=c;++e){const t=s[e];t.skip||o(t,n,e)}}}function KA(e,t,n,o,r){const i=[];return r||e.isPointInArea(t)?(WA(e,n,t,(function(n,a,s){(r||dR(n,e.chartArea,0))&&n.inRange(t.x,t.y,o)&&i.push({element:n,datasetIndex:a,index:s})}),!0),i):i}function qA(e,t,n,o,r,i){return i||e.isPointInArea(t)?"r"!==n||o?function(e,t,n,o,r,i){let a=[];const s=function(e){const t=-1!==e.indexOf("x"),n=-1!==e.indexOf("y");return function(e,o){const r=t?Math.abs(e.x-o.x):0,i=n?Math.abs(e.y-o.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(i,2))}}(n);let l=Number.POSITIVE_INFINITY;return WA(e,n,t,(function(n,c,u){const d=n.inRange(t.x,t.y,r);if(o&&!d)return;const f=n.getCenterPoint(r);if(!i&&!e.isPointInArea(f)&&!d)return;const p=s(t,f);p<l?(a=[{element:n,datasetIndex:c,index:u}],l=p):p===l&&a.push({element:n,datasetIndex:c,index:u})})),a}(e,t,n,o,r,i):function(e,t,n,o){let r=[];return WA(e,n,t,(function(e,n,i){const{startAngle:a,endAngle:s}=e.getProps(["startAngle","endAngle"],o),{angle:l}=function(e,t){const n=t.x-e.x,o=t.y-e.y,r=Math.sqrt(n*n+o*o);let i=Math.atan2(o,n);return i<-.5*fT&&(i+=pT),{angle:i,distance:r}}(e,{x:t.x,y:t.y});MT(l,a,s)&&r.push({element:e,datasetIndex:n,index:i})})),r}(e,t,n,r):[]}function UA(e,t,n,o,r){const i=[],a="x"===n?"inXRange":"inYRange";let s=!1;return WA(e,n,t,((e,o,l)=>{e[a](t[n],r)&&(i.push({element:e,datasetIndex:o,index:l}),s=s||e.inRange(t.x,t.y,r))})),o&&!s?[]:i}var GA={evaluateInteractionItems:WA,modes:{index(e,t,n,o){const r=nA(t,e),i=n.axis||"x",a=n.includeInvisible||!1,s=n.intersect?KA(e,r,i,o,a):qA(e,r,i,!1,o,a),l=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach((e=>{const t=s[0].index,n=e.data[t];n&&!n.skip&&l.push({element:n,datasetIndex:e.index,index:t})})),l):[]},dataset(e,t,n,o){const r=nA(t,e),i=n.axis||"xy",a=n.includeInvisible||!1;let s=n.intersect?KA(e,r,i,o,a):qA(e,r,i,!1,o,a);if(s.length>0){const t=s[0].datasetIndex,n=e.getDatasetMeta(t).data;s=[];for(let e=0;e<n.length;++e)s.push({element:n[e],datasetIndex:t,index:e})}return s},point:(e,t,n,o)=>KA(e,nA(t,e),n.axis||"xy",o,n.includeInvisible||!1),nearest(e,t,n,o){const r=nA(t,e),i=n.axis||"xy",a=n.includeInvisible||!1;return qA(e,r,i,n.intersect,o,a)},x:(e,t,n,o)=>UA(e,nA(t,e),"x",n.intersect,o),y:(e,t,n,o)=>UA(e,nA(t,e),"y",n.intersect,o)}};const XA=["left","top","right","bottom"];function YA(e,t){return e.filter((e=>e.pos===t))}function ZA(e,t){return e.filter((e=>-1===XA.indexOf(e.pos)&&e.box.axis===t))}function QA(e,t){return e.sort(((e,n)=>{const o=t?n:e,r=t?e:n;return o.weight===r.weight?o.index-r.index:o.weight-r.weight}))}function JA(e,t,n,o){return Math.max(e[n],t[n])+Math.max(e[o],t[o])}function eD(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function tD(e,t,n,o){const{pos:r,box:i}=n,a=e.maxPadding;if(!UN(r)){n.size&&(e[r]-=n.size);const t=o[n.stack]||{size:0,count:1};t.size=Math.max(t.size,n.horizontal?i.height:i.width),n.size=t.size/t.count,e[r]+=n.size}i.getPadding&&eD(a,i.getPadding());const s=Math.max(0,t.outerWidth-JA(a,e,"left","right")),l=Math.max(0,t.outerHeight-JA(a,e,"top","bottom")),c=s!==e.w,u=l!==e.h;return e.w=s,e.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function nD(e,t){const n=t.maxPadding;return function(e){const o={left:0,top:0,right:0,bottom:0};return e.forEach((e=>{o[e]=Math.max(t[e],n[e])})),o}(e?["left","right"]:["top","bottom"])}function oD(e,t,n,o){const r=[];let i,a,s,l,c,u;for(i=0,a=e.length,c=0;i<a;++i){s=e[i],l=s.box,l.update(s.width||t.w,s.height||t.h,nD(s.horizontal,t));const{same:a,other:d}=tD(t,n,s,o);c|=a&&r.length,u=u||d,l.fullSize||r.push(s)}return c&&oD(r,t,n,o)||u}function rD(e,t,n,o,r){e.top=n,e.left=t,e.right=t+o,e.bottom=n+r,e.width=o,e.height=r}function iD(e,t,n,o){const r=n.padding;let{x:i,y:a}=t;for(const s of e){const e=s.box,l=o[s.stack]||{count:1,placed:0,weight:1},c=s.stackWeight/l.weight||1;if(s.horizontal){const o=t.w*c,i=l.size||e.height;cT(l.start)&&(a=l.start),e.fullSize?rD(e,r.left,a,n.outerWidth-r.right-r.left,i):rD(e,t.left+l.placed,a,o,i),l.start=a,l.placed+=o,a=e.bottom}else{const o=t.h*c,a=l.size||e.width;cT(l.start)&&(i=l.start),e.fullSize?rD(e,i,r.top,a,n.outerHeight-r.bottom-r.top):rD(e,i,t.top+l.placed,a,o),l.start=i,l.placed+=o,i=e.right}}t.x=i,t.y=a}var aD={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(e){t.draw(e)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,o){if(!e)return;const r=$R(e.options.layout.padding),i=Math.max(t-r.width,0),a=Math.max(n-r.height,0),s=function(e){const t=function(e){const t=[];let n,o,r,i,a,s;for(n=0,o=(e||[]).length;n<o;++n)r=e[n],({position:i,options:{stack:a,stackWeight:s=1}}=r),t.push({index:n,box:r,pos:i,horizontal:r.isHorizontal(),weight:r.weight,stack:a&&i+a,stackWeight:s});return t}(e),n=QA(t.filter((e=>e.box.fullSize)),!0),o=QA(YA(t,"left"),!0),r=QA(YA(t,"right")),i=QA(YA(t,"top"),!0),a=QA(YA(t,"bottom")),s=ZA(t,"x"),l=ZA(t,"y");return{fullSize:n,leftAndTop:o.concat(i),rightAndBottom:r.concat(l).concat(a).concat(s),chartArea:YA(t,"chartArea"),vertical:o.concat(r).concat(l),horizontal:i.concat(a).concat(s)}}(e.boxes),l=s.vertical,c=s.horizontal;QN(e.boxes,(e=>{"function"==typeof e.beforeLayout&&e.beforeLayout()}));const u=l.reduce(((e,t)=>t.box.options&&!1===t.box.options.display?e:e+1),0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:r,availableWidth:i,availableHeight:a,vBoxMaxWidth:i/2/u,hBoxMaxHeight:a/2}),f=Object.assign({},r);eD(f,$R(o));const p=Object.assign({maxPadding:f,w:i,h:a,x:r.left,y:r.top},r),h=function(e,t){const n=function(e){const t={};for(const n of e){const{stack:e,pos:o,stackWeight:r}=n;if(!e||!XA.includes(o))continue;const i=t[e]||(t[e]={count:0,placed:0,weight:0,size:0});i.count++,i.weight+=r}return t}(e),{vBoxMaxWidth:o,hBoxMaxHeight:r}=t;let i,a,s;for(i=0,a=e.length;i<a;++i){s=e[i];const{fullSize:a}=s.box,l=n[s.stack],c=l&&s.stackWeight/l.weight;s.horizontal?(s.width=c?c*o:a&&t.availableWidth,s.height=r):(s.width=o,s.height=c?c*r:a&&t.availableHeight)}return n}(l.concat(c),d);oD(s.fullSize,p,d,h),oD(l,p,d,h),oD(c,p,d,h)&&oD(l,p,d,h),function(e){const t=e.maxPadding;function n(n){const o=Math.max(t[n]-e[n],0);return e[n]+=o,o}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}(p),iD(s.leftAndTop,p,d,h),p.x+=p.w,p.y+=p.h,iD(s.rightAndBottom,p,d,h),e.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},QN(s.chartArea,(t=>{const n=t.box;Object.assign(n,e.chartArea),n.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})}))}};class sD{acquireContext(e,t){}releaseContext(e){return!1}addEventListener(e,t,n){}removeEventListener(e,t,n){}getDevicePixelRatio(){return 1}getMaximumSize(e,t,n,o){return t=Math.max(0,t||e.width),n=n||e.height,{width:t,height:Math.max(0,o?Math.floor(t/o):n)}}isAttached(e){return!0}updateConfig(e){}}class lD extends sD{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const cD="$chartjs",uD={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},dD=e=>null===e||""===e,fD=!!iA&&{passive:!0};function pD(e,t,n){e.canvas.removeEventListener(t,n,fD)}function hD(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function mD(e,t,n){const o=e.canvas,r=new MutationObserver((e=>{let t=!1;for(const n of e)t=t||hD(n.addedNodes,o),t=t&&!hD(n.removedNodes,o);t&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}function gD(e,t,n){const o=e.canvas,r=new MutationObserver((e=>{let t=!1;for(const n of e)t=t||hD(n.removedNodes,o),t=t&&!hD(n.addedNodes,o);t&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}const vD=new Map;let bD=0;function yD(){const e=window.devicePixelRatio;e!==bD&&(bD=e,vD.forEach(((t,n)=>{n.currentDevicePixelRatio!==e&&t()})))}function xD(e,t,n){const o=e.canvas,r=o&&YR(o);if(!r)return;const i=LT(((e,t)=>{const o=r.clientWidth;n(e,t),o<r.clientWidth&&n()}),window),a=new ResizeObserver((e=>{const t=e[0],n=t.contentRect.width,o=t.contentRect.height;0===n&&0===o||i(n,o)}));return a.observe(r),function(e,t){vD.size||window.addEventListener("resize",yD),vD.set(e,t)}(e,i),a}function wD(e,t,n){n&&n.disconnect(),"resize"===t&&function(e){vD.delete(e),vD.size||window.removeEventListener("resize",yD)}(e)}function CD(e,t,n){const o=e.canvas,r=LT((t=>{null!==e.ctx&&n(function(e,t){const n=uD[e.type]||e.type,{x:o,y:r}=nA(e,t);return{type:n,chart:t,native:e,x:void 0!==o?o:null,y:void 0!==r?r:null}}(t,e))}),e);return function(e,t,n){e.addEventListener(t,n,fD)}(o,t,r),r}class SD extends sD{acquireContext(e,t){const n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(function(e,t){const n=e.style,o=e.getAttribute("height"),r=e.getAttribute("width");if(e[cD]={initial:{height:o,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",dD(r)){const t=aA(e,"width");void 0!==t&&(e.width=t)}if(dD(o))if(""===e.style.height)e.height=e.width/(t||2);else{const t=aA(e,"height");void 0!==t&&(e.height=t)}}(e,t),n):null}releaseContext(e){const t=e.canvas;if(!t[cD])return!1;const n=t[cD].initial;["height","width"].forEach((e=>{const o=n[e];KN(o)?t.removeAttribute(e):t.setAttribute(e,o)}));const o=n.style||{};return Object.keys(o).forEach((e=>{t.style[e]=o[e]})),t.width=t.width,delete t[cD],!0}addEventListener(e,t,n){this.removeEventListener(e,t);const o=e.$proxies||(e.$proxies={}),r={attach:mD,detach:gD,resize:xD}[t]||CD;o[t]=r(e,t,n)}removeEventListener(e,t){const n=e.$proxies||(e.$proxies={}),o=n[t];o&&(({attach:wD,detach:wD,resize:wD}[t]||pD)(e,t,o),n[t]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,n,o){return function(e,t,n,o){const r=QR(e),i=eA(r,"margin"),a=ZR(r.maxWidth,e,"clientWidth")||mT,s=ZR(r.maxHeight,e,"clientHeight")||mT,l=function(e,t,n){let o,r;if(void 0===t||void 0===n){const i=YR(e);if(i){const e=i.getBoundingClientRect(),a=QR(i),s=eA(a,"border","width"),l=eA(a,"padding");t=e.width-l.width-s.width,n=e.height-l.height-s.height,o=ZR(a.maxWidth,i,"clientWidth"),r=ZR(a.maxHeight,i,"clientHeight")}else t=e.clientWidth,n=e.clientHeight}return{width:t,height:n,maxWidth:o||mT,maxHeight:r||mT}}(e,t,n);let{width:c,height:u}=l;if("content-box"===r.boxSizing){const e=eA(r,"border","width"),t=eA(r,"padding");c-=t.width+e.width,u-=t.height+e.height}return c=Math.max(0,c-i.width),u=Math.max(0,o?c/o:u-i.height),c=oA(Math.min(c,a,l.maxWidth)),u=oA(Math.min(u,s,l.maxHeight)),c&&!u&&(u=oA(c/2)),(void 0!==t||void 0!==n)&&o&&l.height&&u>l.height&&(u=l.height,c=oA(Math.floor(u*o))),{width:c,height:u}}(e,t,n,o)}isAttached(e){const t=YR(e);return!(!t||!t.isConnected)}}class ED{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(e){const{x:t,y:n}=this.getProps(["x","y"],e);return{x:t,y:n}}hasValue(){return ET(this.x)&&ET(this.y)}getProps(e,t){const n=this.$animations;if(!t||!n)return this;const o={};return e.forEach((e=>{o[e]=n[e]&&n[e].active()?n[e]._to:this[e]})),o}}function kD(e,t,n,o,r){const i=YN(o,0),a=Math.min(YN(r,e.length),e.length);let s,l,c,u=0;for(n=Math.ceil(n),r&&(s=r-o,n=s/Math.floor(s/n)),c=i;c<0;)u++,c=Math.round(i+u*n);for(l=Math.max(i,0);l<a;l++)l===c&&(t.push(e[l]),u++,c=Math.round(i+u*n))}const $D=(e,t,n)=>"top"===t||"left"===t?e[t]+n:e[t]-n,_D=(e,t)=>Math.min(t||e,e);function OD(e,t){const n=[],o=e.length/t,r=e.length;let i=0;for(;i<r;i+=o)n.push(e[Math.floor(i)]);return n}function jD(e,t,n){const o=e.ticks.length,r=Math.min(t,o-1),i=e._startPixel,a=e._endPixel,s=1e-6;let l,c=e.getPixelForTick(r);if(!(n&&(l=1===o?Math.max(c-i,a-c):0===t?(e.getPixelForTick(1)-c)/2:(c-e.getPixelForTick(r-1))/2,c+=r<t?l:-l,c<i-s||c>a+s)))return c}function MD(e){return e.drawTicks?e.tickLength:0}function PD(e,t){if(!e.display)return 0;const n=_R(e.font,t),o=$R(e.padding);return(qN(e.text)?e.text.length:1)*n.lineHeight+o.height}function ID(e,t,n){let o=zT(e);return(n&&"right"!==t||!n&&"right"===t)&&(o=(e=>"left"===e?"right":"right"===e?"left":e)(o)),o}class ND extends ED{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,t){return e}getUserBounds(){let{_userMin:e,_userMax:t,_suggestedMin:n,_suggestedMax:o}=this;return e=XN(e,Number.POSITIVE_INFINITY),t=XN(t,Number.NEGATIVE_INFINITY),n=XN(n,Number.POSITIVE_INFINITY),o=XN(o,Number.NEGATIVE_INFINITY),{min:XN(e,n),max:XN(t,o),minDefined:GN(e),maxDefined:GN(t)}}getMinMax(e){let t,{min:n,max:o,minDefined:r,maxDefined:i}=this.getUserBounds();if(r&&i)return{min:n,max:o};const a=this.getMatchingVisibleMetas();for(let s=0,l=a.length;s<l;++s)t=a[s].controller.getMinMax(this,e),r||(n=Math.min(n,t.min)),i||(o=Math.max(o,t.max));return n=i&&n>o?o:n,o=r&&n>o?n:o,{min:XN(n,XN(o,n)),max:XN(o,XN(n,o))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){ZN(this.options.beforeUpdate,[this])}update(e,t,n){const{beginAtZero:o,grace:r,ticks:i}=this.options,a=i.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=t,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(e,t,n){const{min:o,max:r}=e,i=(l=(r-o)/2,"string"==typeof(s=t)&&s.endsWith("%")?parseFloat(s)/100*l:+s),a=(e,t)=>n&&0===e?0:e+t;var s,l;return{min:a(o,-Math.abs(i)),max:a(r,i)}}(this,r,o),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const s=a<this.ticks.length;this._convertTicksToLabels(s?OD(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),i.display&&(i.autoSkip||"auto"===i.source)&&(this.ticks=function(e,t){const n=e.options.ticks,o=function(e){const t=e.options.offset,n=e._tickSize(),o=e._length/n+(t?0:1),r=e._maxLength/n;return Math.floor(Math.min(o,r))}(e),r=Math.min(n.maxTicksLimit||o,o),i=n.major.enabled?function(e){const t=[];let n,o;for(n=0,o=e.length;n<o;n++)e[n].major&&t.push(n);return t}(t):[],a=i.length,s=i[0],l=i[a-1],c=[];if(a>r)return function(e,t,n,o){let r,i=0,a=n[0];for(o=Math.ceil(o),r=0;r<e.length;r++)r===a&&(t.push(e[r]),i++,a=n[i*o])}(t,c,i,a/r),c;const u=function(e,t,n){const o=function(e){const t=e.length;let n,o;if(t<2)return!1;for(o=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==o)return!1;return o}(e),r=t.length/n;if(!o)return Math.max(r,1);const i=function(e){const t=[],n=Math.sqrt(e);let o;for(o=1;o<n;o++)e%o==0&&(t.push(o),t.push(e/o));return n===(0|n)&&t.push(n),t.sort(((e,t)=>e-t)).pop(),t}(o);for(let e=0,t=i.length-1;e<t;e++){const t=i[e];if(t>r)return t}return Math.max(r,1)}(i,t,r);if(a>0){let e,n;const o=a>1?Math.round((l-s)/(a-1)):null;for(kD(t,c,u,KN(o)?0:s-o,s),e=0,n=a-1;e<n;e++)kD(t,c,u,i[e],i[e+1]);return kD(t,c,u,l,KN(o)?t.length:l+o),c}return kD(t,c,u),c}(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),s&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e,t,n=this.options.reverse;this.isHorizontal()?(e=this.left,t=this.right):(e=this.top,t=this.bottom,n=!n),this._startPixel=e,this._endPixel=t,this._reversePixels=n,this._length=t-e,this._alignToPixels=this.options.alignToPixels}afterUpdate(){ZN(this.options.afterUpdate,[this])}beforeSetDimensions(){ZN(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){ZN(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),ZN(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){ZN(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const t=this.options.ticks;let n,o,r;for(n=0,o=e.length;n<o;n++)r=e[n],r.label=ZN(t.callback,[r.value,n,e],this)}afterTickToLabelConversion(){ZN(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){ZN(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,t=e.ticks,n=_D(this.ticks.length,e.ticks.maxTicksLimit),o=t.minRotation||0,r=t.maxRotation;let i,a,s,l=o;if(!this._isVisible()||!t.display||o>=r||n<=1||!this.isHorizontal())return void(this.labelRotation=o);const c=this._getLabelSizes(),u=c.widest.width,d=c.highest.height,f=PT(this.chart.width-u,0,this.maxWidth);i=e.offset?this.maxWidth/n:f/(n-1),u+6>i&&(i=f/(n-(e.offset?.5:1)),a=this.maxHeight-MD(e.grid)-t.padding-PD(e.title,this.chart.options.font),s=Math.sqrt(u*u+d*d),l=Math.min(Math.asin(PT((c.highest.height+6)/i,-1,1)),Math.asin(PT(a/s,-1,1))-Math.asin(PT(d/s,-1,1)))*(180/fT),l=Math.max(o,Math.min(r,l))),this.labelRotation=l}afterCalculateLabelRotation(){ZN(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){ZN(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:t,options:{ticks:n,title:o,grid:r}}=this,i=this._isVisible(),a=this.isHorizontal();if(i){const i=PD(o,t.options.font);if(a?(e.width=this.maxWidth,e.height=MD(r)+i):(e.height=this.maxHeight,e.width=MD(r)+i),n.display&&this.ticks.length){const{first:t,last:o,widest:r,highest:i}=this._getLabelSizes(),s=2*n.padding,l=kT(this.labelRotation),c=Math.cos(l),u=Math.sin(l);if(a){const t=n.mirror?0:u*r.width+c*i.height;e.height=Math.min(this.maxHeight,e.height+t+s)}else{const t=n.mirror?0:c*r.width+u*i.height;e.width=Math.min(this.maxWidth,e.width+t+s)}this._calculatePadding(t,o,u,c)}}this._handleMargins(),a?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,t,n,o){const{ticks:{align:r,padding:i},position:a}=this.options,s=0!==this.labelRotation,l="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const a=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let u=0,d=0;s?l?(u=o*e.width,d=n*t.height):(u=n*e.height,d=o*t.width):"start"===r?d=t.width:"end"===r?u=e.width:"inner"!==r&&(u=e.width/2,d=t.width/2),this.paddingLeft=Math.max((u-a+i)*this.width/(this.width-a),0),this.paddingRight=Math.max((d-c+i)*this.width/(this.width-c),0)}else{let n=t.height/2,o=e.height/2;"start"===r?(n=0,o=e.height):"end"===r&&(n=t.height,o=0),this.paddingTop=n+i,this.paddingBottom=o+i}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){ZN(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:t}=this.options;return"top"===t||"bottom"===t||"x"===e}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){let t,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(e),t=0,n=e.length;t<n;t++)KN(e[t].label)&&(e.splice(t,1),n--,t--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const t=this.options.ticks.sampleSize;let n=this.ticks;t<n.length&&(n=OD(n,t)),this._labelSizes=e=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,t,n){const{ctx:o,_longestTextCache:r}=this,i=[],a=[],s=Math.floor(t/_D(t,n));let l,c,u,d,f,p,h,m,g,v,b,y=0,x=0;for(l=0;l<t;l+=s){if(d=e[l].label,f=this._resolveTickFontOptions(l),o.font=p=f.string,h=r[p]=r[p]||{data:{},gc:[]},m=f.lineHeight,g=v=0,KN(d)||qN(d)){if(qN(d))for(c=0,u=d.length;c<u;++c)b=d[c],KN(b)||qN(b)||(g=sR(o,h.data,h.gc,g,b),v+=m)}else g=sR(o,h.data,h.gc,g,d),v=m;i.push(g),a.push(v),y=Math.max(g,y),x=Math.max(v,x)}!function(e,t){QN(e,(e=>{const n=e.gc,o=n.length/2;let r;if(o>t){for(r=0;r<o;++r)delete e.data[n[r]];n.splice(0,o)}}))}(r,t);const w=i.indexOf(y),C=a.indexOf(x),S=e=>({width:i[e]||0,height:a[e]||0});return{first:S(0),last:S(t-1),widest:S(w),highest:S(C),widths:i,heights:a}}getLabelForValue(e){return e}getPixelForValue(e,t){return NaN}getValueForPixel(e){}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const t=this._startPixel+e*this._length;return PT(this._alignToPixels?lR(this.chart,t,0):t,-32768,32767)}getDecimalForPixel(e){const t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:t}=this;return e<0&&t<0?t:e>0&&t>0?e:0}getContext(e){const t=this.ticks||[];if(e>=0&&e<t.length){const n=t[e];return n.$context||(n.$context=function(e,t,n){return jR(e,{tick:n,index:t,type:"tick"})}(this.getContext(),e,n))}return this.$context||(this.$context=function(e,t){return jR(e,{scale:t,type:"scale"})}(this.chart.getContext(),this))}_tickSize(){const e=this.options.ticks,t=kT(this.labelRotation),n=Math.abs(Math.cos(t)),o=Math.abs(Math.sin(t)),r=this._getLabelSizes(),i=e.autoSkipPadding||0,a=r?r.widest.width+i:0,s=r?r.highest.height+i:0;return this.isHorizontal()?s*n>a*o?a/n:s/o:s*o<a*n?s/n:a/o}_isVisible(){const e=this.options.display;return"auto"!==e?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const t=this.axis,n=this.chart,o=this.options,{grid:r,position:i,border:a}=o,s=r.offset,l=this.isHorizontal(),c=this.ticks.length+(s?1:0),u=MD(r),d=[],f=a.setContext(this.getContext()),p=f.display?f.width:0,h=p/2,m=function(e){return lR(n,e,p)};let g,v,b,y,x,w,C,S,E,k,$,_;if("top"===i)g=m(this.bottom),w=this.bottom-u,S=g-h,k=m(e.top)+h,_=e.bottom;else if("bottom"===i)g=m(this.top),k=e.top,_=m(e.bottom)-h,w=g+h,S=this.top+u;else if("left"===i)g=m(this.right),x=this.right-u,C=g-h,E=m(e.left)+h,$=e.right;else if("right"===i)g=m(this.left),E=e.left,$=m(e.right)-h,x=g+h,C=this.left+u;else if("x"===t){if("center"===i)g=m((e.top+e.bottom)/2+.5);else if(UN(i)){const e=Object.keys(i)[0],t=i[e];g=m(this.chart.scales[e].getPixelForValue(t))}k=e.top,_=e.bottom,w=g+h,S=w+u}else if("y"===t){if("center"===i)g=m((e.left+e.right)/2);else if(UN(i)){const e=Object.keys(i)[0],t=i[e];g=m(this.chart.scales[e].getPixelForValue(t))}x=g-h,C=x-u,E=e.left,$=e.right}const O=YN(o.ticks.maxTicksLimit,c),j=Math.max(1,Math.ceil(c/O));for(v=0;v<c;v+=j){const e=this.getContext(v),t=r.setContext(e),o=a.setContext(e),i=t.lineWidth,c=t.color,u=o.dash||[],f=o.dashOffset,p=t.tickWidth,h=t.tickColor,m=t.tickBorderDash||[],g=t.tickBorderDashOffset;b=jD(this,v,s),void 0!==b&&(y=lR(n,b,i),l?x=C=E=$=y:w=S=k=_=y,d.push({tx1:x,ty1:w,tx2:C,ty2:S,x1:E,y1:k,x2:$,y2:_,width:i,color:c,borderDash:u,borderDashOffset:f,tickWidth:p,tickColor:h,tickBorderDash:m,tickBorderDashOffset:g}))}return this._ticksLength=c,this._borderValue=g,d}_computeLabelItems(e){const t=this.axis,n=this.options,{position:o,ticks:r}=n,i=this.isHorizontal(),a=this.ticks,{align:s,crossAlign:l,padding:c,mirror:u}=r,d=MD(n.grid),f=d+c,p=u?-c:f,h=-kT(this.labelRotation),m=[];let g,v,b,y,x,w,C,S,E,k,$,_,O="middle";if("top"===o)w=this.bottom-p,C=this._getXAxisLabelAlignment();else if("bottom"===o)w=this.top+p,C=this._getXAxisLabelAlignment();else if("left"===o){const e=this._getYAxisLabelAlignment(d);C=e.textAlign,x=e.x}else if("right"===o){const e=this._getYAxisLabelAlignment(d);C=e.textAlign,x=e.x}else if("x"===t){if("center"===o)w=(e.top+e.bottom)/2+f;else if(UN(o)){const e=Object.keys(o)[0],t=o[e];w=this.chart.scales[e].getPixelForValue(t)+f}C=this._getXAxisLabelAlignment()}else if("y"===t){if("center"===o)x=(e.left+e.right)/2-f;else if(UN(o)){const e=Object.keys(o)[0],t=o[e];x=this.chart.scales[e].getPixelForValue(t)}C=this._getYAxisLabelAlignment(d).textAlign}"y"===t&&("start"===s?O="top":"end"===s&&(O="bottom"));const j=this._getLabelSizes();for(g=0,v=a.length;g<v;++g){b=a[g],y=b.label;const e=r.setContext(this.getContext(g));S=this.getPixelForTick(g)+r.labelOffset,E=this._resolveTickFontOptions(g),k=E.lineHeight,$=qN(y)?y.length:1;const t=$/2,n=e.color,s=e.textStrokeColor,c=e.textStrokeWidth;let d,f=C;if(i?(x=S,"inner"===C&&(f=g===v-1?this.options.reverse?"left":"right":0===g?this.options.reverse?"right":"left":"center"),_="top"===o?"near"===l||0!==h?-$*k+k/2:"center"===l?-j.highest.height/2-t*k+k:-j.highest.height+k/2:"near"===l||0!==h?k/2:"center"===l?j.highest.height/2-t*k:j.highest.height-$*k,u&&(_*=-1),0===h||e.showLabelBackdrop||(x+=k/2*Math.sin(h))):(w=S,_=(1-$)*k/2),e.showLabelBackdrop){const t=$R(e.backdropPadding),n=j.heights[g],o=j.widths[g];let r=_-t.top,i=0-t.left;switch(O){case"middle":r-=n/2;break;case"bottom":r-=n}switch(C){case"center":i-=o/2;break;case"right":i-=o;break;case"inner":g===v-1?i-=o:g>0&&(i-=o/2)}d={left:i,top:r,width:o+t.width,height:n+t.height,color:e.backdropColor}}m.push({label:y,font:E,textOffset:_,options:{rotation:h,color:n,strokeColor:s,strokeWidth:c,textAlign:f,textBaseline:O,translation:[x,w],backdrop:d}})}return m}_getXAxisLabelAlignment(){const{position:e,ticks:t}=this.options;if(-kT(this.labelRotation))return"top"===e?"left":"right";let n="center";return"start"===t.align?n="left":"end"===t.align?n="right":"inner"===t.align&&(n="inner"),n}_getYAxisLabelAlignment(e){const{position:t,ticks:{crossAlign:n,mirror:o,padding:r}}=this.options,i=e+r,a=this._getLabelSizes().widest.width;let s,l;return"left"===t?o?(l=this.right+r,"near"===n?s="left":"center"===n?(s="center",l+=a/2):(s="right",l+=a)):(l=this.right-i,"near"===n?s="right":"center"===n?(s="center",l-=a/2):(s="left",l=this.left)):"right"===t?o?(l=this.left+r,"near"===n?s="right":"center"===n?(s="center",l-=a/2):(s="left",l-=a)):(l=this.left+i,"near"===n?s="left":"center"===n?(s="center",l+=a/2):(s="right",l=this.right)):s="right",{textAlign:s,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,t=this.options.position;return"left"===t||"right"===t?{top:0,left:this.left,bottom:e.height,right:this.right}:"top"===t||"bottom"===t?{top:this.top,left:0,bottom:this.bottom,right:e.width}:void 0}drawBackground(){const{ctx:e,options:{backgroundColor:t},left:n,top:o,width:r,height:i}=this;t&&(e.save(),e.fillStyle=t,e.fillRect(n,o,r,i),e.restore())}getLineWidthForValue(e){const t=this.options.grid;if(!this._isVisible()||!t.display)return 0;const n=this.ticks.findIndex((t=>t.value===e));return n>=0?t.setContext(this.getContext(n)).lineWidth:0}drawGrid(e){const t=this.options.grid,n=this.ctx,o=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let r,i;const a=(e,t,o)=>{o.width&&o.color&&(n.save(),n.lineWidth=o.width,n.strokeStyle=o.color,n.setLineDash(o.borderDash||[]),n.lineDashOffset=o.borderDashOffset,n.beginPath(),n.moveTo(e.x,e.y),n.lineTo(t.x,t.y),n.stroke(),n.restore())};if(t.display)for(r=0,i=o.length;r<i;++r){const e=o[r];t.drawOnChartArea&&a({x:e.x1,y:e.y1},{x:e.x2,y:e.y2},e),t.drawTicks&&a({x:e.tx1,y:e.ty1},{x:e.tx2,y:e.ty2},{color:e.tickColor,width:e.tickWidth,borderDash:e.tickBorderDash,borderDashOffset:e.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:t,options:{border:n,grid:o}}=this,r=n.setContext(this.getContext()),i=n.display?r.width:0;if(!i)return;const a=o.setContext(this.getContext(0)).lineWidth,s=this._borderValue;let l,c,u,d;this.isHorizontal()?(l=lR(e,this.left,i)-i/2,c=lR(e,this.right,a)+a/2,u=d=s):(u=lR(e,this.top,i)-i/2,d=lR(e,this.bottom,a)+a/2,l=c=s),t.save(),t.lineWidth=r.width,t.strokeStyle=r.color,t.beginPath(),t.moveTo(l,u),t.lineTo(c,d),t.stroke(),t.restore()}drawLabels(e){if(!this.options.ticks.display)return;const t=this.ctx,n=this._computeLabelArea();n&&fR(t,n);const o=this.getLabelItems(e);for(const e of o){const n=e.options,o=e.font;bR(t,e.label,0,e.textOffset,o,n)}n&&pR(t)}drawTitle(){const{ctx:e,options:{position:t,title:n,reverse:o}}=this;if(!n.display)return;const r=_R(n.font),i=$R(n.padding),a=n.align;let s=r.lineHeight/2;"bottom"===t||"center"===t||UN(t)?(s+=i.bottom,qN(n.text)&&(s+=r.lineHeight*(n.text.length-1))):s+=i.top;const{titleX:l,titleY:c,maxWidth:u,rotation:d}=function(e,t,n,o){const{top:r,left:i,bottom:a,right:s,chart:l}=e,{chartArea:c,scales:u}=l;let d,f,p,h=0;const m=a-r,g=s-i;if(e.isHorizontal()){if(f=FT(o,i,s),UN(n)){const e=Object.keys(n)[0],o=n[e];p=u[e].getPixelForValue(o)+m-t}else p="center"===n?(c.bottom+c.top)/2+m-t:$D(e,n,t);d=s-i}else{if(UN(n)){const e=Object.keys(n)[0],o=n[e];f=u[e].getPixelForValue(o)-g+t}else f="center"===n?(c.left+c.right)/2-g+t:$D(e,n,t);p=FT(o,a,r),h="left"===n?-vT:vT}return{titleX:f,titleY:p,maxWidth:d,rotation:h}}(this,s,t,a);bR(e,n.text,0,0,r,{color:n.color,maxWidth:u,rotation:d,textAlign:ID(a,t,o),textBaseline:"middle",translation:[l,c]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,t=e.ticks&&e.ticks.z||0,n=YN(e.grid&&e.grid.z,-1),o=YN(e.border&&e.border.z,0);return this._isVisible()&&this.draw===ND.prototype.draw?[{z:n,draw:e=>{this.drawBackground(),this.drawGrid(e),this.drawTitle()}},{z:o,draw:()=>{this.drawBorder()}},{z:t,draw:e=>{this.drawLabels(e)}}]:[{z:t,draw:e=>{this.draw(e)}}]}getMatchingVisibleMetas(e){const t=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",o=[];let r,i;for(r=0,i=t.length;r<i;++r){const i=t[r];i[n]!==this.id||e&&i.type!==e||o.push(i)}return o}_resolveTickFontOptions(e){return _R(this.options.ticks.setContext(this.getContext(e)).font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class TD{constructor(e,t,n){this.type=e,this.scope=t,this.override=n,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const t=Object.getPrototypeOf(e);let n;(function(e){return"id"in e&&"defaults"in e})(t)&&(n=this.register(t));const o=this.items,r=e.id,i=this.scope+"."+r;if(!r)throw new Error("class does not have id: "+e);return r in o||(o[r]=e,function(e,t,n){const o=oT(Object.create(null),[n?aR.get(n):{},aR.get(t),e.defaults]);aR.set(t,o),e.defaultRoutes&&function(e,t){Object.keys(t).forEach((n=>{const o=n.split("."),r=o.pop(),i=[e].concat(o).join("."),a=t[n].split("."),s=a.pop(),l=a.join(".");aR.route(i,r,l,s)}))}(t,e.defaultRoutes),e.descriptors&&aR.describe(t,e.descriptors)}(e,i,n),this.override&&aR.override(e.id,e.overrides)),i}get(e){return this.items[e]}unregister(e){const t=this.items,n=e.id,o=this.scope;n in t&&delete t[n],o&&n in aR[o]&&(delete aR[o][n],this.override&&delete tR[n])}}class RD{constructor(){this.controllers=new TD(NA,"datasets",!0),this.elements=new TD(ED,"elements"),this.plugins=new TD(Object,"plugins"),this.scales=new TD(ND,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,t,n){[...t].forEach((t=>{const o=n||this._getRegistryForType(t);n||o.isForType(t)||o===this.plugins&&t.id?this._exec(e,o,t):QN(t,(t=>{const o=n||this._getRegistryForType(t);this._exec(e,o,t)}))}))}_exec(e,t,n){const o=lT(e);ZN(n["before"+o],[],n),t[e](n),ZN(n["after"+o],[],n)}_getRegistryForType(e){for(let t=0;t<this._typedRegistries.length;t++){const n=this._typedRegistries[t];if(n.isForType(e))return n}return this.plugins}_get(e,t,n){const o=t.get(e);if(void 0===o)throw new Error('"'+e+'" is not a registered '+n+".");return o}}var AD=new RD;class DD{constructor(){this._init=[]}notify(e,t,n,o){"beforeInit"===t&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));const r=o?this._descriptors(e).filter(o):this._descriptors(e),i=this._notify(r,e,t,n);return"afterDestroy"===t&&(this._notify(r,e,"stop"),this._notify(this._init,e,"uninstall")),i}_notify(e,t,n,o){o=o||{};for(const r of e){const e=r.plugin;if(!1===ZN(e[n],[t,o,r.options],e)&&o.cancelable)return!1}return!0}invalidate(){KN(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const t=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),t}_createDescriptors(e,t){const n=e&&e.config,o=YN(n.options&&n.options.plugins,{}),r=function(e){const t={},n=[],o=Object.keys(AD.plugins.items);for(let e=0;e<o.length;e++)n.push(AD.getPlugin(o[e]));const r=e.plugins||[];for(let e=0;e<r.length;e++){const o=r[e];-1===n.indexOf(o)&&(n.push(o),t[o.id]=!0)}return{plugins:n,localIds:t}}(n);return!1!==o||t?function(e,{plugins:t,localIds:n},o,r){const i=[],a=e.getContext();for(const s of t){const t=s.id,l=BD(o[t],r);null!==l&&i.push({plugin:s,options:LD(e.config,{plugin:s,local:n[t]},l,a)})}return i}(e,r,o,t):[]}_notifyStateChanges(e){const t=this._oldCache||[],n=this._cache,o=(e,t)=>e.filter((e=>!t.some((t=>e.plugin.id===t.plugin.id))));this._notify(o(t,n),e,"stop"),this._notify(o(n,t),e,"start")}}function BD(e,t){return t||!1!==e?!0===e?{}:e:null}function LD(e,{plugin:t,local:n},o,r){const i=e.pluginScopeKeys(t),a=e.getOptionScopes(o,i);return n&&t.defaults&&a.push(t.defaults),e.createResolver(a,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function zD(e,t){const n=aR.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function FD(e){if("x"===e||"y"===e||"r"===e)return e}function HD(e){return"top"===e||"bottom"===e?"x":"left"===e||"right"===e?"y":void 0}function VD(e,...t){if(FD(e))return e;for(const n of t){const t=n.axis||HD(n.position)||e.length>1&&FD(e[0].toLowerCase());if(t)return t}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function WD(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function KD(e){const t=e.options||(e.options={});t.plugins=YN(t.plugins,{}),t.scales=function(e,t){const n=tR[e.type]||{scales:{}},o=t.scales||{},r=zD(e.type,t),i=Object.create(null);return Object.keys(o).forEach((t=>{const a=o[t];if(!UN(a))return console.error(`Invalid scale configuration for scale: ${t}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);const s=VD(t,a,function(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter((t=>t.xAxisID===e||t.yAxisID===e));if(n.length)return WD(e,"x",n[0])||WD(e,"y",n[0])}return{}}(t,e),aR.scales[a.type]),l=function(e,t){return e===t?"_index_":"_value_"}(s,r),c=n.scales||{};i[t]=rT(Object.create(null),[{axis:s},a,c[s],c[l]])})),e.data.datasets.forEach((n=>{const r=n.type||e.type,a=n.indexAxis||zD(r,t),s=(tR[r]||{}).scales||{};Object.keys(s).forEach((e=>{const t=function(e,t){let n=e;return"_index_"===e?n=t:"_value_"===e&&(n="x"===t?"y":"x"),n}(e,a),r=n[t+"AxisID"]||t;i[r]=i[r]||Object.create(null),rT(i[r],[{axis:t},o[r],s[e]])}))})),Object.keys(i).forEach((e=>{const t=i[e];rT(t,[aR.scales[t.type],aR.scale])})),i}(e,t)}function qD(e){return(e=e||{}).datasets=e.datasets||[],e.labels=e.labels||[],e}const UD=new Map,GD=new Set;function XD(e,t){let n=UD.get(e);return n||(n=t(),UD.set(e,n),GD.add(n)),n}const YD=(e,t,n)=>{const o=sT(t,n);void 0!==o&&e.add(o)};class ZD{constructor(e){this._config=function(e){return(e=e||{}).data=qD(e.data),KD(e),e}(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=qD(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),KD(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return XD(e,(()=>[[`datasets.${e}`,""]]))}datasetAnimationScopeKeys(e,t){return XD(`${e}.transition.${t}`,(()=>[[`datasets.${e}.transitions.${t}`,`transitions.${t}`],[`datasets.${e}`,""]]))}datasetElementScopeKeys(e,t){return XD(`${e}-${t}`,(()=>[[`datasets.${e}.elements.${t}`,`datasets.${e}`,`elements.${t}`,""]]))}pluginScopeKeys(e){const t=e.id;return XD(`${this.type}-plugin-${t}`,(()=>[[`plugins.${t}`,...e.additionalOptionScopes||[]]]))}_cachedScopes(e,t){const n=this._scopeCache;let o=n.get(e);return o&&!t||(o=new Map,n.set(e,o)),o}getOptionScopes(e,t,n){const{options:o,type:r}=this,i=this._cachedScopes(e,n),a=i.get(t);if(a)return a;const s=new Set;t.forEach((t=>{e&&(s.add(e),t.forEach((t=>YD(s,e,t)))),t.forEach((e=>YD(s,o,e))),t.forEach((e=>YD(s,tR[r]||{},e))),t.forEach((e=>YD(s,aR,e))),t.forEach((e=>YD(s,nR,e)))}));const l=Array.from(s);return 0===l.length&&l.push(Object.create(null)),GD.has(t)&&i.set(t,l),l}chartOptionScopes(){const{options:e,type:t}=this;return[e,tR[t]||{},aR.datasets[t]||{},{type:t},aR,nR]}resolveNamedOptions(e,t,n,o=[""]){const r={$shared:!0},{resolver:i,subPrefixes:a}=QD(this._resolverCache,e,o);let s=i;(function(e,t){const{isScriptable:n,isIndexable:o}=IR(e);for(const r of t){const t=n(r),i=o(r),a=(i||t)&&e[r];if(t&&(uT(a)||JD(a))||i&&qN(a))return!0}return!1})(i,t)&&(r.$shared=!1,s=PR(i,n=uT(n)?n():n,this.createResolver(e,n,a)));for(const e of t)r[e]=s[e];return r}createResolver(e,t,n=[""],o){const{resolver:r}=QD(this._resolverCache,e,n);return UN(t)?PR(r,t,void 0,o):r}}function QD(e,t,n){let o=e.get(t);o||(o=new Map,e.set(t,o));const r=n.join();let i=o.get(r);return i||(i={resolver:MR(t,n),subPrefixes:n.filter((e=>!e.toLowerCase().includes("hover")))},o.set(r,i)),i}const JD=e=>UN(e)&&Object.getOwnPropertyNames(e).some((t=>uT(e[t]))),eB=["top","bottom","left","right","chartArea"];function tB(e,t){return"top"===e||"bottom"===e||-1===eB.indexOf(e)&&"x"===t}function nB(e,t){return function(n,o){return n[e]===o[e]?n[t]-o[t]:n[e]-o[e]}}function oB(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),ZN(n&&n.onComplete,[e],t)}function rB(e){const t=e.chart,n=t.options.animation;ZN(n&&n.onProgress,[e],t)}function iB(e){return XR()&&"string"==typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const aB={},sB=e=>{const t=iB(e);return Object.values(aB).filter((e=>e.canvas===t)).pop()};function lB(e,t,n){const o=Object.keys(e);for(const r of o){const o=+r;if(o>=t){const i=e[r];delete e[r],(n>0||o>t)&&(e[o+n]=i)}}}function cB(e,t,n){return e.options.clip?e[n]:t[n]}class uB{static defaults=aR;static instances=aB;static overrides=tR;static registry=AD;static version="4.4.1";static getChart=sB;static register(...e){AD.add(...e),dB()}static unregister(...e){AD.remove(...e),dB()}constructor(e,t){const n=this.config=new ZD(t),o=iB(e),r=sB(o);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas with ID '"+r.canvas.id+"' can be reused.");const i=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(e){return!XR()||"undefined"!=typeof OffscreenCanvas&&e instanceof OffscreenCanvas?lD:SD}(o)),this.platform.updateConfig(n);const a=this.platform.acquireContext(o,i.aspectRatio),s=a&&a.canvas,l=s&&s.height,c=s&&s.width;this.id=WN(),this.ctx=a,this.canvas=s,this.width=c,this.height=l,this._options=i,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new DD,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(e,t){let n;return function(...o){return t?(clearTimeout(n),n=setTimeout(e,t,o)):e.apply(this,o),t}}((e=>this.update(e)),i.resizeDelay||0),this._dataChanges=[],aB[this.id]=this,a&&s?(vA.listen(this,"complete",oB),vA.listen(this,"progress",rB),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:t},width:n,height:o,_aspectRatio:r}=this;return KN(e)?t&&r?r:o?n/o:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return AD}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():rA(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return cR(this.canvas,this.ctx),this}stop(){return vA.stop(this),this}resize(e,t){vA.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){const n=this.options,o=this.canvas,r=n.maintainAspectRatio&&this.aspectRatio,i=this.platform.getMaximumSize(o,e,t,r),a=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=i.width,this.height=i.height,this._aspectRatio=this.aspectRatio,rA(this,a,!0)&&(this.notifyPlugins("resize",{size:i}),ZN(n.onResize,[this,i],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){QN(this.options.scales||{},((e,t)=>{e.id=t}))}buildOrUpdateScales(){const e=this.options,t=e.scales,n=this.scales,o=Object.keys(n).reduce(((e,t)=>(e[t]=!1,e)),{});let r=[];t&&(r=r.concat(Object.keys(t).map((e=>{const n=t[e],o=VD(e,n),r="r"===o,i="x"===o;return{options:n,dposition:r?"chartArea":i?"bottom":"left",dtype:r?"radialLinear":i?"category":"linear"}})))),QN(r,(t=>{const r=t.options,i=r.id,a=VD(i,r),s=YN(r.type,t.dtype);void 0!==r.position&&tB(r.position,a)===tB(t.dposition)||(r.position=t.dposition),o[i]=!0;let l=null;i in n&&n[i].type===s?l=n[i]:(l=new(AD.getScale(s))({id:i,type:s,ctx:this.ctx,chart:this}),n[l.id]=l),l.init(r,e)})),QN(o,((e,t)=>{e||delete n[t]})),QN(n,(e=>{aD.configure(this,e,e.options),aD.addBox(this,e)}))}_updateMetasets(){const e=this._metasets,t=this.data.datasets.length,n=e.length;if(e.sort(((e,t)=>e.index-t.index)),n>t){for(let e=t;e<n;++e)this._destroyDatasetMeta(e);e.splice(t,n-t)}this._sortedMetasets=e.slice(0).sort(nB("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:t}}=this;e.length>t.length&&delete this._stacks,e.forEach(((e,n)=>{0===t.filter((t=>t===e._dataset)).length&&this._destroyDatasetMeta(n)}))}buildOrUpdateControllers(){const e=[],t=this.data.datasets;let n,o;for(this._removeUnreferencedMetasets(),n=0,o=t.length;n<o;n++){const o=t[n];let r=this.getDatasetMeta(n);const i=o.type||this.config.type;if(r.type&&r.type!==i&&(this._destroyDatasetMeta(n),r=this.getDatasetMeta(n)),r.type=i,r.indexAxis=o.indexAxis||zD(i,this.options),r.order=o.order||0,r.index=n,r.label=""+o.label,r.visible=this.isDatasetVisible(n),r.controller)r.controller.updateIndex(n),r.controller.linkScales();else{const t=AD.getController(i),{datasetElementType:o,dataElementType:a}=aR.datasets[i];Object.assign(t,{dataElementType:AD.getElement(a),datasetElementType:o&&AD.getElement(o)}),r.controller=new t(this,n),e.push(r.controller)}}return this._updateMetasets(),e}_resetElements(){QN(this.data.datasets,((e,t)=>{this.getDatasetMeta(t).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const t=this.config;t.update();const n=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0}))return;const r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let i=0;for(let e=0,t=this.data.datasets.length;e<t;e++){const{controller:t}=this.getDatasetMeta(e),n=!o&&-1===r.indexOf(t);t.buildOrUpdateElements(n),i=Math.max(+t.getMaxOverflow(),i)}i=this._minPadding=n.layout.autoPadding?i:0,this._updateLayout(i),o||QN(r,(e=>{e.reset()})),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(nB("z","_idx"));const{_active:a,_lastEvent:s}=this;s?this._eventHandler(s,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){QN(this.scales,(e=>{aD.removeBox(this,e)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,t=new Set(Object.keys(this._listeners)),n=new Set(e.events);dT(t,n)&&!!this._responsiveListeners===e.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,t=this._getUniformDataChanges()||[];for(const{method:n,start:o,count:r}of t)lB(e,o,"_removeElements"===n?-r:r)}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const t=this.data.datasets.length,n=t=>new Set(e.filter((e=>e[0]===t)).map(((e,t)=>t+","+e.splice(1).join(",")))),o=n(0);for(let e=1;e<t;e++)if(!dT(o,n(e)))return;return Array.from(o).map((e=>e.split(","))).map((e=>({method:e[1],start:+e[2],count:+e[3]})))}_updateLayout(e){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;aD.update(this,this.width,this.height,e);const t=this.chartArea,n=t.width<=0||t.height<=0;this._layers=[],QN(this.boxes,(e=>{n&&"chartArea"===e.position||(e.configure&&e.configure(),this._layers.push(...e._layers()))}),this),this._layers.forEach(((e,t)=>{e._idx=t})),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})){for(let e=0,t=this.data.datasets.length;e<t;++e)this.getDatasetMeta(e).controller.configure();for(let t=0,n=this.data.datasets.length;t<n;++t)this._updateDataset(t,uT(e)?e({datasetIndex:t}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,t){const n=this.getDatasetMeta(e),o={meta:n,index:e,mode:t,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",o)&&(n.controller._update(t),o.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",o))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(vA.has(this)?this.attached&&!vA.running(this)&&vA.start(this):(this.draw(),oB({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:e,height:t}=this._resizeBeforeDraw;this._resize(e,t),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const t=this._layers;for(e=0;e<t.length&&t[e].z<=0;++e)t[e].draw(this.chartArea);for(this._drawDatasets();e<t.length;++e)t[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const t=this._sortedMetasets,n=[];let o,r;for(o=0,r=t.length;o<r;++o){const r=t[o];e&&!r.visible||n.push(r)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const e=this.getSortedVisibleDatasetMetas();for(let t=e.length-1;t>=0;--t)this._drawDataset(e[t]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const t=this.ctx,n=e._clip,o=!n.disabled,r=function(e,t){const{xScale:n,yScale:o}=e;return n&&o?{left:cB(n,t,"left"),right:cB(n,t,"right"),top:cB(o,t,"top"),bottom:cB(o,t,"bottom")}:t}(e,this.chartArea),i={meta:e,index:e.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",i)&&(o&&fR(t,{left:!1===n.left?0:r.left-n.left,right:!1===n.right?this.width:r.right+n.right,top:!1===n.top?0:r.top-n.top,bottom:!1===n.bottom?this.height:r.bottom+n.bottom}),e.controller.draw(),o&&pR(t),i.cancelable=!1,this.notifyPlugins("afterDatasetDraw",i))}isPointInArea(e){return dR(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,t,n,o){const r=GA.modes[t];return"function"==typeof r?r(this,e,n,o):[]}getDatasetMeta(e){const t=this.data.datasets[e],n=this._metasets;let o=n.filter((e=>e&&e._dataset===t)).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},n.push(o)),o}getContext(){return this.$context||(this.$context=jR(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const t=this.data.datasets[e];if(!t)return!1;const n=this.getDatasetMeta(e);return"boolean"==typeof n.hidden?!n.hidden:!t.hidden}setDatasetVisibility(e,t){this.getDatasetMeta(e).hidden=!t}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,t,n){const o=n?"show":"hide",r=this.getDatasetMeta(e),i=r.controller._resolveAnimations(void 0,o);cT(t)?(r.data[t].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),i.update(r,{visible:n}),this.update((t=>t.datasetIndex===e?o:void 0)))}hide(e,t){this._updateVisibility(e,t,!1)}show(e,t){this._updateVisibility(e,t,!0)}_destroyDatasetMeta(e){const t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}_stop(){let e,t;for(this.stop(),vA.remove(this),e=0,t=this.data.datasets.length;e<t;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:t}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),cR(e,t),this.platform.releaseContext(t),this.canvas=null,this.ctx=null),delete aB[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,t=this.platform,n=(n,o)=>{t.addEventListener(this,n,o),e[n]=o},o=(e,t,n)=>{e.offsetX=t,e.offsetY=n,this._eventHandler(e)};QN(this.options.events,(e=>n(e,o)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,t=this.platform,n=(n,o)=>{t.addEventListener(this,n,o),e[n]=o},o=(n,o)=>{e[n]&&(t.removeEventListener(this,n,o),delete e[n])},r=(e,t)=>{this.canvas&&this.resize(e,t)};let i;const a=()=>{o("attach",a),this.attached=!0,this.resize(),n("resize",r),n("detach",i)};i=()=>{this.attached=!1,o("resize",r),this._stop(),this._resize(0,0),n("attach",a)},t.isAttached(this.canvas)?a():i()}unbindEvents(){QN(this._listeners,((e,t)=>{this.platform.removeEventListener(this,t,e)})),this._listeners={},QN(this._responsiveListeners,((e,t)=>{this.platform.removeEventListener(this,t,e)})),this._responsiveListeners=void 0}updateHoverStyle(e,t,n){const o=n?"set":"remove";let r,i,a,s;for("dataset"===t&&(r=this.getDatasetMeta(e[0].datasetIndex),r.controller["_"+o+"DatasetHoverStyle"]()),a=0,s=e.length;a<s;++a){i=e[a];const t=i&&this.getDatasetMeta(i.datasetIndex).controller;t&&t[o+"HoverStyle"](i.element,i.datasetIndex,i.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const t=this._active||[],n=e.map((({datasetIndex:e,index:t})=>{const n=this.getDatasetMeta(e);if(!n)throw new Error("No dataset found at index "+e);return{datasetIndex:e,element:n.data[t],index:t}}));!JN(n,t)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,t))}notifyPlugins(e,t,n){return this._plugins.notify(this,e,t,n)}isPluginEnabled(e){return 1===this._plugins._cache.filter((t=>t.plugin.id===e)).length}_updateHoverStyles(e,t,n){const o=this.options.hover,r=(e,t)=>e.filter((e=>!t.some((t=>e.datasetIndex===t.datasetIndex&&e.index===t.index)))),i=r(t,e),a=n?e:r(e,t);i.length&&this.updateHoverStyle(i,o.mode,!1),a.length&&o.mode&&this.updateHoverStyle(a,o.mode,!0)}_eventHandler(e,t){const n={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},o=t=>(t.options.events||this.options.events).includes(e.native.type);if(!1===this.notifyPlugins("beforeEvent",n,o))return;const r=this._handleEvent(e,t,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,o),(r||n.changed)&&this.render(),this}_handleEvent(e,t,n){const{_active:o=[],options:r}=this,i=t,a=this._getActiveElements(e,o,n,i),s=function(e){return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type}(e),l=function(e,t,n,o){return n&&"mouseout"!==e.type?o?t:e:null}(e,this._lastEvent,n,s);n&&(this._lastEvent=null,ZN(r.onHover,[e,a,this],this),s&&ZN(r.onClick,[e,a,this],this));const c=!JN(a,o);return(c||t)&&(this._active=a,this._updateHoverStyles(a,o,t)),this._lastEvent=l,c}_getActiveElements(e,t,n,o){if("mouseout"===e.type)return[];if(!n)return t;const r=this.options.hover;return this.getElementsAtEventForMode(e,r.mode,r,o)}}function dB(){return QN(uB.instances,(e=>e._plugins.invalidate()))}function fB(e,t,n=t){e.lineCap=YN(n.borderCapStyle,t.borderCapStyle),e.setLineDash(YN(n.borderDash,t.borderDash)),e.lineDashOffset=YN(n.borderDashOffset,t.borderDashOffset),e.lineJoin=YN(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=YN(n.borderWidth,t.borderWidth),e.strokeStyle=YN(n.borderColor,t.borderColor)}function pB(e,t,n){e.lineTo(n.x,n.y)}function hB(e,t,n={}){const o=e.length,{start:r=0,end:i=o-1}=n,{start:a,end:s}=t,l=Math.max(r,a),c=Math.min(i,s),u=r<a&&i<a||r>s&&i>s;return{count:o,start:l,loop:t.loop,ilen:c<l&&!u?o+c-l:c-l}}function mB(e,t,n,o){const{points:r,options:i}=t,{count:a,start:s,loop:l,ilen:c}=hB(r,n,o),u=function(e){return e.stepped?hR:e.tension||"monotone"===e.cubicInterpolationMode?mR:pB}(i);let d,f,p,{move:h=!0,reverse:m}=o||{};for(d=0;d<=c;++d)f=r[(s+(m?c-d:d))%a],f.skip||(h?(e.moveTo(f.x,f.y),h=!1):u(e,p,f,m,i.stepped),p=f);return l&&(f=r[(s+(m?c:0))%a],u(e,p,f,m,i.stepped)),!!l}function gB(e,t,n,o){const r=t.points,{count:i,start:a,ilen:s}=hB(r,n,o),{move:l=!0,reverse:c}=o||{};let u,d,f,p,h,m,g=0,v=0;const b=e=>(a+(c?s-e:e))%i,y=()=>{p!==h&&(e.lineTo(g,h),e.lineTo(g,p),e.lineTo(g,m))};for(l&&(d=r[b(0)],e.moveTo(d.x,d.y)),u=0;u<=s;++u){if(d=r[b(u)],d.skip)continue;const t=d.x,n=d.y,o=0|t;o===f?(n<p?p=n:n>h&&(h=n),g=(v*g+t)/++v):(y(),e.lineTo(t,n),f=o,v=0,p=h=n),m=n}y()}function vB(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return e._decimated||e._loop||t.tension||"monotone"===t.cubicInterpolationMode||t.stepped||n?mB:gB}const bB="function"==typeof Path2D;function yB(e,t,n,o){const r=e.options,{[n]:i}=e.getProps([n],o);return Math.abs(t-i)<r.radius+r.hitRadius}class xB extends ED{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t){const n=this.options;if(this.left=0,this.top=0,!n.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=e,this.height=this.bottom=t;const o=qN(n.text)?n.text.length:1;this._padding=$R(n.padding);const r=o*_R(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=r:this.width=r}isHorizontal(){const e=this.options.position;return"top"===e||"bottom"===e}_drawArgs(e){const{top:t,left:n,bottom:o,right:r,options:i}=this,a=i.align;let s,l,c,u=0;return this.isHorizontal()?(l=FT(a,n,r),c=t+e,s=r-n):("left"===i.position?(l=n+e,c=FT(a,o,t),u=-.5*fT):(l=r-e,c=FT(a,t,o),u=.5*fT),s=o-t),{titleX:l,titleY:c,maxWidth:s,rotation:u}}draw(){const e=this.ctx,t=this.options;if(!t.display)return;const n=_R(t.font),o=n.lineHeight/2+this._padding.top,{titleX:r,titleY:i,maxWidth:a,rotation:s}=this._drawArgs(o);bR(e,t.text,0,0,n,{color:t.color,maxWidth:a,rotation:s,textAlign:zT(t.align),textBaseline:"middle",translation:[r,i]})}}var wB={id:"title",_element:xB,start(e,t,n){!function(e,t){const n=new xB({ctx:e.ctx,options:t,chart:e});aD.configure(e,n,t),aD.addBox(e,n),e.titleBlock=n}(e,n)},stop(e){const t=e.titleBlock;aD.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const o=e.titleBlock;aD.configure(e,o,n),o.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};new WeakMap;const CB={average(e){if(!e.length)return!1;let t,n,o=0,r=0,i=0;for(t=0,n=e.length;t<n;++t){const n=e[t].element;if(n&&n.hasValue()){const e=n.tooltipPosition();o+=e.x,r+=e.y,++i}}return{x:o/i,y:r/i}},nearest(e,t){if(!e.length)return!1;let n,o,r,i=t.x,a=t.y,s=Number.POSITIVE_INFINITY;for(n=0,o=e.length;n<o;++n){const o=e[n].element;if(o&&o.hasValue()){const e=_T(t,o.getCenterPoint());e<s&&(s=e,r=o)}}if(r){const e=r.tooltipPosition();i=e.x,a=e.y}return{x:i,y:a}}};function SB(e,t){return t&&(qN(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function EB(e){return("string"==typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function kB(e,t){const{element:n,datasetIndex:o,index:r}=t,i=e.getDatasetMeta(o).controller,{label:a,value:s}=i.getLabelAndValue(r);return{chart:e,label:a,parsed:i.getParsed(r),raw:e.data.datasets[o].data[r],formattedValue:s,dataset:i.getDataset(),dataIndex:r,datasetIndex:o,element:n}}function $B(e,t){const n=e.chart.ctx,{body:o,footer:r,title:i}=e,{boxWidth:a,boxHeight:s}=t,l=_R(t.bodyFont),c=_R(t.titleFont),u=_R(t.footerFont),d=i.length,f=r.length,p=o.length,h=$R(t.padding);let m=h.height,g=0,v=o.reduce(((e,t)=>e+t.before.length+t.lines.length+t.after.length),0);v+=e.beforeBody.length+e.afterBody.length,d&&(m+=d*c.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),v&&(m+=p*(t.displayColors?Math.max(s,l.lineHeight):l.lineHeight)+(v-p)*l.lineHeight+(v-1)*t.bodySpacing),f&&(m+=t.footerMarginTop+f*u.lineHeight+(f-1)*t.footerSpacing);let b=0;const y=function(e){g=Math.max(g,n.measureText(e).width+b)};return n.save(),n.font=c.string,QN(e.title,y),n.font=l.string,QN(e.beforeBody.concat(e.afterBody),y),b=t.displayColors?a+2+t.boxPadding:0,QN(o,(e=>{QN(e.before,y),QN(e.lines,y),QN(e.after,y)})),b=0,n.font=u.string,QN(e.footer,y),n.restore(),g+=h.width,{width:g,height:m}}function _B(e,t,n,o){const{x:r,width:i}=n,{width:a,chartArea:{left:s,right:l}}=e;let c="center";return"center"===o?c=r<=(s+l)/2?"left":"right":r<=i/2?c="left":r>=a-i/2&&(c="right"),function(e,t,n,o){const{x:r,width:i}=o,a=n.caretSize+n.caretPadding;return"left"===e&&r+i+a>t.width||"right"===e&&r-i-a<0||void 0}(c,e,t,n)&&(c="center"),c}function OB(e,t,n){const o=n.yAlign||t.yAlign||function(e,t){const{y:n,height:o}=t;return n<o/2?"top":n>e.height-o/2?"bottom":"center"}(e,n);return{xAlign:n.xAlign||t.xAlign||_B(e,t,n,o),yAlign:o}}function jB(e,t,n,o){const{caretSize:r,caretPadding:i,cornerRadius:a}=e,{xAlign:s,yAlign:l}=n,c=r+i,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:p}=kR(a);let h=function(e,t){let{x:n,width:o}=e;return"right"===t?n-=o:"center"===t&&(n-=o/2),n}(t,s);const m=function(e,t,n){let{y:o,height:r}=e;return"top"===t?o+=n:o-="bottom"===t?r+n:r/2,o}(t,l,c);return"center"===l?"left"===s?h+=c:"right"===s&&(h-=c):"left"===s?h-=Math.max(u,f)+r:"right"===s&&(h+=Math.max(d,p)+r),{x:PT(h,0,o.width-t.width),y:PT(m,0,o.height-t.height)}}function MB(e,t,n){const o=$R(n.padding);return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-o.right:e.x+o.left}function PB(e){return SB([],EB(e))}function IB(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const NB={beforeTitle:VN,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,o=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return t.dataset.label||"";if(t.label)return t.label;if(o>0&&t.dataIndex<o)return n[t.dataIndex]}return""},afterTitle:VN,beforeBody:VN,beforeLabel:VN,label(e){if(this&&this.options&&"dataset"===this.options.mode)return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return KN(n)||(t+=n),t},labelColor(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:VN,afterBody:VN,beforeFooter:VN,footer:VN,afterFooter:VN};function TB(e,t,n,o){const r=e[t].call(n,o);return void 0===r?NB[t].call(n,o):r}class RB extends ED{static positioners=CB;constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const t=this.chart,n=this.options.setContext(this.getContext()),o=n.enabled&&t.options.animation&&n.animations,r=new wA(this.chart,o);return o._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=(this,jR(this.chart.getContext(),{tooltip:this,tooltipItems:this._tooltipItems,type:"tooltip"})))}getTitle(e,t){const{callbacks:n}=t,o=TB(n,"beforeTitle",this,e),r=TB(n,"title",this,e),i=TB(n,"afterTitle",this,e);let a=[];return a=SB(a,EB(o)),a=SB(a,EB(r)),a=SB(a,EB(i)),a}getBeforeBody(e,t){return PB(TB(t.callbacks,"beforeBody",this,e))}getBody(e,t){const{callbacks:n}=t,o=[];return QN(e,(e=>{const t={before:[],lines:[],after:[]},r=IB(n,e);SB(t.before,EB(TB(r,"beforeLabel",this,e))),SB(t.lines,TB(r,"label",this,e)),SB(t.after,EB(TB(r,"afterLabel",this,e))),o.push(t)})),o}getAfterBody(e,t){return PB(TB(t.callbacks,"afterBody",this,e))}getFooter(e,t){const{callbacks:n}=t,o=TB(n,"beforeFooter",this,e),r=TB(n,"footer",this,e),i=TB(n,"afterFooter",this,e);let a=[];return a=SB(a,EB(o)),a=SB(a,EB(r)),a=SB(a,EB(i)),a}_createItems(e){const t=this._active,n=this.chart.data,o=[],r=[],i=[];let a,s,l=[];for(a=0,s=t.length;a<s;++a)l.push(kB(this.chart,t[a]));return e.filter&&(l=l.filter(((t,o,r)=>e.filter(t,o,r,n)))),e.itemSort&&(l=l.sort(((t,o)=>e.itemSort(t,o,n)))),QN(l,(t=>{const n=IB(e.callbacks,t);o.push(TB(n,"labelColor",this,t)),r.push(TB(n,"labelPointStyle",this,t)),i.push(TB(n,"labelTextColor",this,t))})),this.labelColors=o,this.labelPointStyles=r,this.labelTextColors=i,this.dataPoints=l,l}update(e,t){const n=this.options.setContext(this.getContext()),o=this._active;let r,i=[];if(o.length){const e=CB[n.position].call(this,o,this._eventPosition);i=this._createItems(n),this.title=this.getTitle(i,n),this.beforeBody=this.getBeforeBody(i,n),this.body=this.getBody(i,n),this.afterBody=this.getAfterBody(i,n),this.footer=this.getFooter(i,n);const t=this._size=$B(this,n),a=Object.assign({},e,t),s=OB(this.chart,n,a),l=jB(n,a,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,r={opacity:1,x:l.x,y:l.y,width:t.width,height:t.height,caretX:e.x,caretY:e.y}}else 0!==this.opacity&&(r={opacity:0});this._tooltipItems=i,this.$context=void 0,r&&this._resolveAnimations().update(this,r),e&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:t})}drawCaret(e,t,n,o){const r=this.getCaretPosition(e,n,o);t.lineTo(r.x1,r.y1),t.lineTo(r.x2,r.y2),t.lineTo(r.x3,r.y3)}getCaretPosition(e,t,n){const{xAlign:o,yAlign:r}=this,{caretSize:i,cornerRadius:a}=n,{topLeft:s,topRight:l,bottomLeft:c,bottomRight:u}=kR(a),{x:d,y:f}=e,{width:p,height:h}=t;let m,g,v,b,y,x;return"center"===r?(y=f+h/2,"left"===o?(m=d,g=m-i,b=y+i,x=y-i):(m=d+p,g=m+i,b=y-i,x=y+i),v=m):(g="left"===o?d+Math.max(s,c)+i:"right"===o?d+p-Math.max(l,u)-i:this.caretX,"top"===r?(b=f,y=b-i,m=g-i,v=g+i):(b=f+h,y=b+i,m=g+i,v=g-i),x=b),{x1:m,x2:g,x3:v,y1:b,y2:y,y3:x}}drawTitle(e,t,n){const o=this.title,r=o.length;let i,a,s;if(r){const l=uA(n.rtl,this.x,this.width);for(e.x=MB(this,n.titleAlign,n),t.textAlign=l.textAlign(n.titleAlign),t.textBaseline="middle",i=_R(n.titleFont),a=n.titleSpacing,t.fillStyle=n.titleColor,t.font=i.string,s=0;s<r;++s)t.fillText(o[s],l.x(e.x),e.y+i.lineHeight/2),e.y+=i.lineHeight+a,s+1===r&&(e.y+=n.titleMarginBottom-a)}}_drawColorBox(e,t,n,o,r){const i=this.labelColors[n],a=this.labelPointStyles[n],{boxHeight:s,boxWidth:l}=r,c=_R(r.bodyFont),u=MB(this,"left",r),d=o.x(u),f=s<c.lineHeight?(c.lineHeight-s)/2:0,p=t.y+f;if(r.usePointStyle){const t={radius:Math.min(l,s)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},n=o.leftForLtr(d,l)+l/2,c=p+s/2;e.strokeStyle=r.multiKeyBackground,e.fillStyle=r.multiKeyBackground,uR(e,t,n,c),e.strokeStyle=i.borderColor,e.fillStyle=i.backgroundColor,uR(e,t,n,c)}else{e.lineWidth=UN(i.borderWidth)?Math.max(...Object.values(i.borderWidth)):i.borderWidth||1,e.strokeStyle=i.borderColor,e.setLineDash(i.borderDash||[]),e.lineDashOffset=i.borderDashOffset||0;const t=o.leftForLtr(d,l),n=o.leftForLtr(o.xPlus(d,1),l-2),a=kR(i.borderRadius);Object.values(a).some((e=>0!==e))?(e.beginPath(),e.fillStyle=r.multiKeyBackground,yR(e,{x:t,y:p,w:l,h:s,radius:a}),e.fill(),e.stroke(),e.fillStyle=i.backgroundColor,e.beginPath(),yR(e,{x:n,y:p+1,w:l-2,h:s-2,radius:a}),e.fill()):(e.fillStyle=r.multiKeyBackground,e.fillRect(t,p,l,s),e.strokeRect(t,p,l,s),e.fillStyle=i.backgroundColor,e.fillRect(n,p+1,l-2,s-2))}e.fillStyle=this.labelTextColors[n]}drawBody(e,t,n){const{body:o}=this,{bodySpacing:r,bodyAlign:i,displayColors:a,boxHeight:s,boxWidth:l,boxPadding:c}=n,u=_R(n.bodyFont);let d=u.lineHeight,f=0;const p=uA(n.rtl,this.x,this.width),h=function(n){t.fillText(n,p.x(e.x+f),e.y+d/2),e.y+=d+r},m=p.textAlign(i);let g,v,b,y,x,w,C;for(t.textAlign=i,t.textBaseline="middle",t.font=u.string,e.x=MB(this,m,n),t.fillStyle=n.bodyColor,QN(this.beforeBody,h),f=a&&"right"!==m?"center"===i?l/2+c:l+2+c:0,y=0,w=o.length;y<w;++y){for(g=o[y],v=this.labelTextColors[y],t.fillStyle=v,QN(g.before,h),b=g.lines,a&&b.length&&(this._drawColorBox(t,e,y,p,n),d=Math.max(u.lineHeight,s)),x=0,C=b.length;x<C;++x)h(b[x]),d=u.lineHeight;QN(g.after,h)}f=0,d=u.lineHeight,QN(this.afterBody,h),e.y-=r}drawFooter(e,t,n){const o=this.footer,r=o.length;let i,a;if(r){const s=uA(n.rtl,this.x,this.width);for(e.x=MB(this,n.footerAlign,n),e.y+=n.footerMarginTop,t.textAlign=s.textAlign(n.footerAlign),t.textBaseline="middle",i=_R(n.footerFont),t.fillStyle=n.footerColor,t.font=i.string,a=0;a<r;++a)t.fillText(o[a],s.x(e.x),e.y+i.lineHeight/2),e.y+=i.lineHeight+n.footerSpacing}}drawBackground(e,t,n,o){const{xAlign:r,yAlign:i}=this,{x:a,y:s}=e,{width:l,height:c}=n,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:p}=kR(o.cornerRadius);t.fillStyle=o.backgroundColor,t.strokeStyle=o.borderColor,t.lineWidth=o.borderWidth,t.beginPath(),t.moveTo(a+u,s),"top"===i&&this.drawCaret(e,t,n,o),t.lineTo(a+l-d,s),t.quadraticCurveTo(a+l,s,a+l,s+d),"center"===i&&"right"===r&&this.drawCaret(e,t,n,o),t.lineTo(a+l,s+c-p),t.quadraticCurveTo(a+l,s+c,a+l-p,s+c),"bottom"===i&&this.drawCaret(e,t,n,o),t.lineTo(a+f,s+c),t.quadraticCurveTo(a,s+c,a,s+c-f),"center"===i&&"left"===r&&this.drawCaret(e,t,n,o),t.lineTo(a,s+u),t.quadraticCurveTo(a,s,a+u,s),t.closePath(),t.fill(),o.borderWidth>0&&t.stroke()}_updateAnimationTarget(e){const t=this.chart,n=this.$animations,o=n&&n.x,r=n&&n.y;if(o||r){const n=CB[e.position].call(this,this._active,this._eventPosition);if(!n)return;const i=this._size=$B(this,e),a=Object.assign({},n,this._size),s=OB(t,e,a),l=jB(e,a,s,t);o._to===l.x&&r._to===l.y||(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=i.width,this.height=i.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(e){const t=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(t);const o={width:this.width,height:this.height},r={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const i=$R(t.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;t.enabled&&a&&(e.save(),e.globalAlpha=n,this.drawBackground(r,e,o,t),function(e,t){let n,o;"ltr"!==t&&"rtl"!==t||(n=e.canvas.style,o=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=o)}(e,t.textDirection),r.y+=i.top,this.drawTitle(r,e,t),this.drawBody(r,e,t),this.drawFooter(r,e,t),function(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}(e,t.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,t){const n=this._active,o=e.map((({datasetIndex:e,index:t})=>{const n=this.chart.getDatasetMeta(e);if(!n)throw new Error("Cannot find a dataset at index "+e);return{datasetIndex:e,element:n.data[t],index:t}})),r=!JN(n,o),i=this._positionChanged(o,t);(r||i)&&(this._active=o,this._eventPosition=t,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,t,n=!0){if(t&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const o=this.options,r=this._active||[],i=this._getActiveElements(e,r,t,n),a=this._positionChanged(i,e),s=t||!JN(i,r)||a;return s&&(this._active=i,(o.enabled||o.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,t))),s}_getActiveElements(e,t,n,o){const r=this.options;if("mouseout"===e.type)return[];if(!o)return t.filter((e=>this.chart.data.datasets[e.datasetIndex]&&void 0!==this.chart.getDatasetMeta(e.datasetIndex).controller.getParsed(e.index)));const i=this.chart.getElementsAtEventForMode(e,r.mode,r,n);return r.reverse&&i.reverse(),i}_positionChanged(e,t){const{caretX:n,caretY:o,options:r}=this,i=CB[r.position].call(this,e,t);return!1!==i&&(n!==i.x||o!==i.y)}}var AB={id:"tooltip",_element:RB,positioners:CB,afterInit(e,t,n){n&&(e.tooltip=new RB({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(!1===e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0}))return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:NB},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>"filter"!==e&&"itemSort"!==e&&"external"!==e,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};function DB(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}function BB(e,t,{horizontal:n,minRotation:o}){const r=kT(o),i=(n?Math.sin(r):Math.cos(r))||.001,a=.75*t*(""+e).length;return Math.min(t/i,a)}class LB extends ND{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,t){return KN(e)||("number"==typeof e||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:o,max:r}=this;const i=e=>o=t?o:e,a=e=>r=n?r:e;if(e){const e=wT(o),t=wT(r);e<0&&t<0?a(0):e>0&&t>0&&i(0)}if(o===r){let t=0===r?1:Math.abs(.05*r);a(r+t),e||i(o-t)}this.min=o,this.max=r}getTickLimit(){const e=this.options.ticks;let t,{maxTicksLimit:n,stepSize:o}=e;return o?(t=Math.ceil(this.max/o)-Math.floor(this.min/o)+1,t>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${o} would result generating up to ${t} ticks. Limiting to 1000.`),t=1e3)):(t=this.computeTickLimit(),n=n||11),n&&(t=Math.min(n,t)),t}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,t=e.ticks;let n=this.getTickLimit();n=Math.max(2,n);const o=function(e,t){const n=[],{bounds:o,step:r,min:i,max:a,precision:s,count:l,maxTicks:c,maxDigits:u,includeBounds:d}=e,f=r||1,p=c-1,{min:h,max:m}=t,g=!KN(i),v=!KN(a),b=!KN(l),y=(m-h)/(u+1);let x,w,C,S,E=ST((m-h)/p/f)*f;if(E<1e-14&&!g&&!v)return[{value:h},{value:m}];S=Math.ceil(m/E)-Math.floor(h/E),S>p&&(E=ST(S*E/p/f)*f),KN(s)||(x=Math.pow(10,s),E=Math.ceil(E*x)/x),"ticks"===o?(w=Math.floor(h/E)*E,C=Math.ceil(m/E)*E):(w=h,C=m),g&&v&&r&&function(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}((a-i)/r,E/1e3)?(S=Math.round(Math.min((a-i)/E,c)),E=(a-i)/S,w=i,C=a):b?(w=g?i:w,C=v?a:C,S=l-1,E=(C-w)/S):(S=(C-w)/E,S=CT(S,Math.round(S),E/1e3)?Math.round(S):Math.ceil(S));const k=Math.max($T(E),$T(w));x=Math.pow(10,KN(s)?k:s),w=Math.round(w*x)/x,C=Math.round(C*x)/x;let $=0;for(g&&(d&&w!==i?(n.push({value:i}),w<i&&$++,CT(Math.round((w+$*E)*x)/x,i,BB(i,y,e))&&$++):w<i&&$++);$<S;++$){const e=Math.round((w+$*E)*x)/x;if(v&&e>a)break;n.push({value:e})}return v&&d&&C!==a?n.length&&CT(n[n.length-1].value,a,BB(a,y,e))?n[n.length-1].value=a:n.push({value:a}):v&&C!==a||n.push({value:C}),n}({maxTicks:n,bounds:e.bounds,min:e.min,max:e.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:!1!==t.includeBounds},this._range||this);return"ticks"===e.bounds&&function(e,t,n){let o,r,i;for(o=0,r=e.length;o<r;o++)i=e[o][n],isNaN(i)||(t.min=Math.min(t.min,i),t.max=Math.max(t.max,i))}(o,this,"value"),e.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const e=this.ticks;let t=this.min,n=this.max;if(super.configure(),this.options.offset&&e.length){const o=(n-t)/Math.max(e.length-1,1)/2;t-=o,n+=o}this._startValue=t,this._endValue=n,this._valueRange=n-t}getLabelForValue(e){return QT(e,this.chart.options.locale,this.options.ticks.format)}}class zB extends LB{static id="linear";static defaults={ticks:{callback:eR.formatters.numeric}};determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=GN(e)?e:0,this.max=GN(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),t=e?this.width:this.height,n=kT(this.options.ticks.minRotation),o=(e?Math.sin(n):Math.cos(n))||.001,r=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,r.lineHeight/o))}getPixelForValue(e){return null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}eR.formatters.logarithmic,eR.formatters.numeric;const FB="label";function HB(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function VB(e,t){e.labels=t}function WB(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:FB;const o=[];e.datasets=t.map((t=>{const r=e.datasets.find((e=>e[n]===t[n]));return r&&t.data&&!o.includes(r)?(o.push(r),Object.assign(r,t),r):{...t}}))}function KB(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:FB;const n={labels:[],datasets:[]};return VB(n,e.labels),WB(n,e.datasets,t),n}function qB(e,t){const{height:n=150,width:o=300,redraw:r=!1,datasetIdKey:i,type:a,data:s,options:l,plugins:c=[],fallbackContent:u,updateMode:d,...f}=e,h=(0,p.useRef)(null),m=(0,p.useRef)(),g=()=>{h.current&&(m.current=new uB(h.current,{type:a,data:KB(s,i),options:l&&{...l},plugins:c}),HB(t,m.current))},v=()=>{HB(t,null),m.current&&(m.current.destroy(),m.current=null)};return(0,p.useEffect)((()=>{!r&&m.current&&l&&function(e,t){const n=e.options;n&&t&&Object.assign(n,t)}(m.current,l)}),[r,l]),(0,p.useEffect)((()=>{!r&&m.current&&VB(m.current.config.data,s.labels)}),[r,s.labels]),(0,p.useEffect)((()=>{!r&&m.current&&s.datasets&&WB(m.current.config.data,s.datasets,i)}),[r,s.datasets]),(0,p.useEffect)((()=>{m.current&&(r?(v(),setTimeout(g)):m.current.update(d))}),[r,l,s.labels,s.datasets,d]),(0,p.useEffect)((()=>{m.current&&(v(),setTimeout(g))}),[a]),(0,p.useEffect)((()=>(g(),()=>v())),[]),p.createElement("canvas",Object.assign({ref:h,role:"img",height:n,width:o},f),u)}const UB=(0,p.forwardRef)(qB);function GB(e,t){return uB.register(t),(0,p.forwardRef)(((t,n)=>p.createElement(UB,Object.assign({},t,{ref:n,type:e}))))}const XB=GB("bar",HA),YB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-600-80h56c4.4 0 8-3.6 8-8V560c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V384c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v320c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V462c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v242c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v400c0 4.4 3.6 8 8 8z"}}]},name:"bar-chart",theme:"outlined"};var ZB=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:YB}))};const QB=p.forwardRef(ZB);var JB={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},eL=0,tL=Qe();var nL=function(e){var t=e.bg,n=e.children;return p.createElement("div",{style:{width:"100%",height:"100%",background:t}},n)};function oL(e,t){return Object.keys(e).map((function(n){var o=parseFloat(n),r="".concat(Math.floor(o*t),"%");return"".concat(e[n]," ").concat(r)}))}var rL=p.forwardRef((function(e,t){var n=e.prefixCls,o=e.color,r=e.gradientId,i=e.radius,a=e.style,s=e.ptg,l=e.strokeLinecap,c=e.strokeWidth,u=e.size,d=e.gapDegree,f=o&&"object"===ye(o),h=f?"#FFF":void 0,m=u/2,g=p.createElement("circle",{className:"".concat(n,"-circle-path"),r:i,cx:m,cy:m,stroke:h,strokeLinecap:l,strokeWidth:c,opacity:0===s?0:1,style:a,ref:t});if(!f)return g;var v="".concat(r,"-conic"),b=d?"".concat(180+d/2,"deg"):"0deg",y=oL(o,(360-d)/360),x=oL(o,1),w="conic-gradient(from ".concat(b,", ").concat(y.join(", "),")"),C="linear-gradient(to ".concat(d?"bottom":"top",", ").concat(x.join(", "),")");return p.createElement(p.Fragment,null,p.createElement("mask",{id:v},g),p.createElement("foreignObject",{x:0,y:0,width:u,height:u,mask:"url(#".concat(v,")")},p.createElement(nL,{bg:C},p.createElement(nL,{bg:w}))))}));const iL=rL;var aL=function(e,t,n,o,r,i,a,s,l,c){var u=arguments.length>10&&void 0!==arguments[10]?arguments[10]:0,d=n/100*360*((360-i)/360),f=0===i?0:{bottom:0,top:180,left:90,right:-90}[a],p=(100-o)/100*t;return"round"===l&&100!==o&&(p+=c/2)>=t&&(p=t-.01),{stroke:"string"==typeof s?s:void 0,strokeDasharray:"".concat(t,"px ").concat(e),strokeDashoffset:p+u,transform:"rotate(".concat(r+d+f,"deg)"),transformOrigin:"".concat(50,"px ").concat(50,"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}},sL=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function lL(e){var t=null!=e?e:[];return Array.isArray(t)?t:[t]}const cL=function(e){var t,n,o,r,i,a=$e($e({},JB),e),s=a.id,l=a.prefixCls,c=a.steps,u=a.strokeWidth,d=a.trailWidth,f=a.gapDegree,h=void 0===f?0:f,m=a.gapPosition,g=a.trailColor,v=a.strokeLinecap,b=a.style,y=a.className,x=a.strokeColor,w=a.percent,C=di(a,sL),S=function(e){var t=Ge(p.useState(),2),n=t[0],o=t[1];return p.useEffect((function(){var e;o("rc_progress_".concat((tL?(e=eL,eL+=1):e="TEST_OR_SSR",e)))}),[]),e||n}(s),E="".concat(S,"-gradient"),k=50-u/2,$=2*Math.PI*k,_=h>0?90+h/2:-90,O=$*((360-h)/360),j="object"===ye(c)?c:{count:c,space:2},M=j.count,P=j.space,I=lL(w),N=lL(x),T=N.find((function(e){return e&&"object"===ye(e)})),R=T&&"object"===ye(T)?"butt":v,A=aL($,O,0,100,_,h,m,g,R,u),D=(r=(0,p.useRef)([]),i=(0,p.useRef)(null),(0,p.useEffect)((function(){var e=Date.now(),t=!1;r.current.forEach((function(n){if(n){t=!0;var o=n.style;o.transitionDuration=".3s, .3s, .3s, .06s",i.current&&e-i.current<100&&(o.transitionDuration="0s, 0s")}})),t&&(i.current=Date.now())})),r.current);return p.createElement("svg",hn({className:oi()("".concat(l,"-circle"),y),viewBox:"0 0 ".concat(100," ").concat(100),style:b,id:s,role:"presentation"},C),!M&&p.createElement("circle",{className:"".concat(l,"-circle-trail"),r:k,cx:50,cy:50,stroke:g,strokeLinecap:R,strokeWidth:d||u,style:A}),M?(t=Math.round(M*(I[0]/100)),n=100/M,o=0,new Array(M).fill(null).map((function(e,r){var i=r<=t-1?N[0]:g,a=i&&"object"===ye(i)?"url(#".concat(E,")"):void 0,s=aL($,O,o,n,_,h,m,i,"butt",u,P);return o+=100*(O-s.strokeDashoffset+P)/O,p.createElement("circle",{key:r,className:"".concat(l,"-circle-path"),r:k,cx:50,cy:50,stroke:a,strokeWidth:u,opacity:1,style:s,ref:function(e){D[r]=e}})}))):function(){var e=0;return I.map((function(t,n){var o=N[n]||N[N.length-1],r=aL($,O,e,t,_,h,m,o,R,u);return e+=t,p.createElement(iL,{key:n,color:o,ptg:t,radius:k,prefixCls:l,gradientId:E,style:r,strokeLinecap:R,strokeWidth:u,gapDegree:h,ref:function(e){D[n]=e},size:100})})).reverse()}())};function uL(e){return!e||e<0?0:e>100?100:e}function dL(e){let{success:t,successPercent:n}=e,o=n;return t&&"progress"in t&&(o=t.progress),t&&"percent"in t&&(o=t.percent),o}const fL=e=>{let{percent:t,success:n,successPercent:o}=e;const r=uL(dL({success:n,successPercent:o}));return[r,uL(uL(t)-r)]},pL=(e,t,n)=>{var o,r,i,a;let s=-1,l=-1;if("step"===t){const t=n.steps,o=n.strokeWidth;"string"==typeof e||void 0===e?(s="small"===e?2:14,l=null!=o?o:8):"number"==typeof e?[s,l]=[e,e]:[s=14,l=8]=e,s*=t}else if("line"===t){const t=null==n?void 0:n.strokeWidth;"string"==typeof e||void 0===e?l=t||("small"===e?6:8):"number"==typeof e?[s,l]=[e,e]:[s=-1,l=8]=e}else"circle"!==t&&"dashboard"!==t||("string"==typeof e||void 0===e?[s,l]="small"===e?[60,60]:[120,120]:"number"==typeof e?[s,l]=[e,e]:(s=null!==(r=null!==(o=e[0])&&void 0!==o?o:e[1])&&void 0!==r?r:120,l=null!==(a=null!==(i=e[0])&&void 0!==i?i:e[1])&&void 0!==a?a:120));return[s,l]},hL=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:o="round",gapPosition:r,gapDegree:i,width:a=120,type:s,children:l,success:c,size:u=a}=e,[d,f]=pL(u,"circle");let{strokeWidth:h}=e;void 0===h&&(h=Math.max((e=>3/e*100)(d),6));const m={width:d,height:f,fontSize:.15*d+6},g=p.useMemo((()=>i||0===i?i:"dashboard"===s?75:void 0),[i,s]),v=r||"dashboard"===s&&"bottom"||void 0,b="[object Object]"===Object.prototype.toString.call(e.strokeColor),y=(e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:o}=t;return[o||Mr.green,n||null]})({success:c,strokeColor:e.strokeColor}),x=oi()(`${t}-inner`,{[`${t}-circle-gradient`]:b}),w=p.createElement(cL,{percent:fL(e),strokeWidth:h,trailWidth:h,strokeColor:y,strokeLinecap:o,trailColor:n,prefixCls:t,gapDegree:g,gapPosition:v});return p.createElement("div",{className:x,style:m},d<=20?p.createElement(NS,{title:l},p.createElement("span",null,w)):p.createElement(p.Fragment,null,w,l))},mL="--progress-line-stroke-color",gL="--progress-percent",vL=e=>{const t=e?"100%":"-100%";return new _o(`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}})},bL=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},Ia(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-block",width:"100%"},[`&${t}-show-info`]:{[`${t}-outer`]:{marginInlineEnd:`calc(-2em - ${qt(e.marginXS)})`,paddingInlineEnd:`calc(2em + ${qt(e.paddingXS)})`}},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",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}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${mL})`]},height:"100%",width:`calc(1 / var(${gL}) * 100%)`,display:"block"}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:vL(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:vL(!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}}})}},yL=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"}}}},xL=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}}}}}},wL=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},CL=hl("Progress",(e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=Js(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[bL(n),yL(n),xL(n),wL(n)]}),(e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:e.fontSize/e.fontSizeSM+"em"})));const SL=(e,t)=>{const{from:n=Mr.blue,to:o=Mr.blue,direction:r=("rtl"===t?"to left":"to right")}=e,i=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["from","to","direction"]);if(0!==Object.keys(i).length){const e=(e=>{let t=[];return Object.keys(e).forEach((n=>{const o=parseFloat(n.replace(/%/g,""));isNaN(o)||t.push({key:o,value:e[n]})})),t=t.sort(((e,t)=>e.key-t.key)),t.map((e=>{let{key:t,value:n}=e;return`${n} ${t}%`})).join(", ")})(i),t=`linear-gradient(${r}, ${e})`;return{background:t,[mL]:t}}const a=`linear-gradient(${r}, ${n}, ${o})`;return{background:a,[mL]:a}},EL=e=>{const{prefixCls:t,direction:n,percent:o,size:r,strokeWidth:i,strokeColor:a,strokeLinecap:s="round",children:l,trailColor:c=null,success:u}=e,d=a&&"string"!=typeof a?SL(a,n):{[mL]:a,background:a},f="square"===s||"butt"===s?0:void 0,h=null!=r?r:[-1,i||("small"===r?6:8)],[m,g]=pL(h,"line",{strokeWidth:i}),v={backgroundColor:c||void 0,borderRadius:f},b=Object.assign(Object.assign({width:`${uL(o)}%`,height:g,borderRadius:f},d),{[gL]:uL(o)/100}),y=dL(e),x={width:`${uL(y)}%`,height:g,borderRadius:f,backgroundColor:null==u?void 0:u.strokeColor},w={width:m<0?"100%":m,height:g};return p.createElement(p.Fragment,null,p.createElement("div",{className:`${t}-outer`,style:w},p.createElement("div",{className:`${t}-inner`,style:v},p.createElement("div",{className:`${t}-bg`,style:b}),void 0!==y?p.createElement("div",{className:`${t}-success-bg`,style:x}):null)),l)},kL=e=>{const{size:t,steps:n,percent:o=0,strokeWidth:r=8,strokeColor:i,trailColor:a=null,prefixCls:s,children:l}=e,c=Math.round(n*(o/100)),u=null!=t?t:["small"===t?2:14,r],[d,f]=pL(u,"step",{steps:n,strokeWidth:r}),h=d/n,m=new Array(n);for(let e=0;e<n;e++){const t=Array.isArray(i)?i[e]:i;m[e]=p.createElement("div",{key:e,className:oi()(`${s}-steps-item`,{[`${s}-steps-item-active`]:e<=c-1}),style:{backgroundColor:e<=c-1?t:a,width:h,height:f}})}return p.createElement("div",{className:`${s}-steps-outer`},m,l)};const $L=["normal","exception","active","success"],_L=p.forwardRef(((e,t)=>{const{prefixCls:n,className:o,rootClassName:r,steps:i,strokeColor:a,percent:s=0,size:l="default",showInfo:c=!0,type:u="line",status:d,format:f,style:h}=e,m=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),g=p.useMemo((()=>{var t,n;const o=dL(e);return parseInt(void 0!==o?null===(t=null!=o?o:0)||void 0===t?void 0:t.toString():null===(n=null!=s?s:0)||void 0===n?void 0:n.toString(),10)}),[s,e.success,e.successPercent]),v=p.useMemo((()=>!$L.includes(d)&&g>=100?"success":d||"normal"),[d,g]),{getPrefixCls:b,direction:y,progress:x}=p.useContext(He),w=b("progress",n),[C,S,E]=CL(w),k=p.useMemo((()=>{if(!c)return null;const t=dL(e);let n;const o="line"===u;return f||"exception"!==v&&"success"!==v?n=(f||(e=>`${e}%`))(uL(s),uL(t)):"exception"===v?n=o?p.createElement(bs,null):p.createElement(ws,null):"success"===v&&(n=o?p.createElement(ms,null):p.createElement(rE,null)),p.createElement("span",{className:`${w}-text`,title:"string"==typeof n?n:void 0},n)}),[c,s,g,v,u,w,f]),$=Array.isArray(a)?a[0]:a,_="string"==typeof a||Array.isArray(a)?a:void 0;let O;"line"===u?O=i?p.createElement(kL,Object.assign({},e,{strokeColor:_,prefixCls:w,steps:i}),k):p.createElement(EL,Object.assign({},e,{strokeColor:$,prefixCls:w,direction:y}),k):"circle"!==u&&"dashboard"!==u||(O=p.createElement(hL,Object.assign({},e,{strokeColor:$,prefixCls:w,progressStatus:v}),k));const j=oi()(w,`${w}-status-${v}`,`${w}-${("dashboard"===u?"circle":i&&"steps")||u}`,{[`${w}-inline-circle`]:"circle"===u&&pL(l,"circle")[0]<=20,[`${w}-show-info`]:c,[`${w}-${l}`]:"string"==typeof l,[`${w}-rtl`]:"rtl"===y},null==x?void 0:x.className,o,r,S,E);return C(p.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},null==x?void 0:x.style),h),className:j,role:"progressbar","aria-valuenow":g},Jl(m,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),O))})),OL=_L;var jL={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function ML(e){var t=function(e){if("number"==typeof e)return{value:e,unit:"px"};var t,n=(e.match(/^[0-9.]*/)||"").toString();t=n.includes(".")?parseFloat(n):parseInt(n,10);var o=(e.match(/[^0-9]*$/)||"").toString();return jL[o]?{value:t,unit:o}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}(e);return"".concat(t.value).concat(t.unit)}var PL=function(){return PL=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},PL.apply(this,arguments)},IL=function(e,t,n){var o="react-spinners-".concat("BeatLoader","-").concat("beat");if("undefined"==typeof window||!window.document)return o;var r=document.createElement("style");document.head.appendChild(r);var i=r.sheet,a="\n    @keyframes ".concat(o," {\n      ").concat("50% {transform: scale(0.75);opacity: 0.2} 100% {transform: scale(1);opacity: 1}","\n    }\n  ");return i&&i.insertRule(a,0),o}();const NL=function(e){var t=e.loading,n=void 0===t||t,o=e.color,r=void 0===o?"#000000":o,i=e.speedMultiplier,a=void 0===i?1:i,s=e.cssOverride,l=void 0===s?{}:s,c=e.size,u=void 0===c?15:c,d=e.margin,f=void 0===d?2:d,h=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["loading","color","speedMultiplier","cssOverride","size","margin"]),m=PL({display:"inherit"},l),g=function(e){return{display:"inline-block",backgroundColor:r,width:ML(u),height:ML(u),margin:ML(f),borderRadius:"100%",animation:"".concat(IL," ").concat(.7/a,"s ").concat(e%2?"0s":"".concat(.35/a,"s")," infinite linear"),animationFillMode:"both"}};return n?p.createElement("span",PL({style:m},h),p.createElement("span",{style:g(1)}),p.createElement("span",{style:g(2)}),p.createElement("span",{style:g(3)})):null};const TL=window.wp.coreData,RL=e=>{(0,p.useEffect)((()=>{document.title=e}),[e])};uB.register(class extends NA{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const t=this._cachedMeta,{dataset:n,data:o=[],_dataset:r}=t,i=this.chart._animationsDisabled;let{start:a,count:s}=function(e,t,n){const o=t.length;let r=0,i=o;if(e._sorted){const{iScale:a,_parsed:s}=e,l=a.axis,{min:c,max:u,minDefined:d,maxDefined:f}=a.getUserBounds();d&&(r=PT(Math.min(TT(s,l,c).lo,n?o:TT(t,l,a.getPixelForValue(c)).lo),0,o-1)),i=f?PT(Math.max(TT(s,a.axis,u,!0).hi+1,n?0:TT(t,l,a.getPixelForValue(u),!0).hi+1),r,o)-r:o-r}return{start:r,count:i}}(t,o,i);this._drawStart=a,this._drawCount=s,function(e){const{xScale:t,yScale:n,_scaleRanges:o}=e,r={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!o)return e._scaleRanges=r,!0;const i=o.xmin!==t.min||o.xmax!==t.max||o.ymin!==n.min||o.ymax!==n.max;return Object.assign(o,r),i}(t)&&(a=0,s=o.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!r._decimated,n.points=o;const l=this.resolveDatasetElementOptions(e);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(n,void 0,{animated:!i,options:l},e),this.updateElements(o,a,s,e)}updateElements(e,t,n,o){const r="reset"===o,{iScale:i,vScale:a,_stacked:s,_dataset:l}=this._cachedMeta,{sharedOptions:c,includeOptions:u}=this._getSharedOptions(t,o),d=i.axis,f=a.axis,{spanGaps:p,segment:h}=this.options,m=ET(p)?p:Number.POSITIVE_INFINITY,g=this.chart._animationsDisabled||r||"none"===o,v=t+n,b=e.length;let y=t>0&&this.getParsed(t-1);for(let n=0;n<b;++n){const p=e[n],b=g?p:{};if(n<t||n>=v){b.skip=!0;continue}const x=this.getParsed(n),w=KN(x[f]),C=b[d]=i.getPixelForValue(x[d],n),S=b[f]=r||w?a.getBasePixel():a.getPixelForValue(s?this.applyStack(a,x,s):x[f],n);b.skip=isNaN(C)||isNaN(S)||w,b.stop=n>0&&Math.abs(x[d]-y[d])>m,h&&(b.parsed=x,b.raw=l.data[n]),u&&(b.options=c||this.resolveDataElementOptions(n,p.active?"active":o)),g||this.updateElement(p,n,b,o),y=x}}getMaxOverflow(){const e=this._cachedMeta,t=e.dataset,n=t.options&&t.options.borderWidth||0,o=e.data||[];if(!o.length)return n;const r=o[0].size(this.resolveDataElementOptions(0)),i=o[o.length-1].size(this.resolveDataElementOptions(o.length-1));return Math.max(n,r,i)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}},class extends ED{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:e=>"borderDash"!==e&&"fill"!==e};constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,t){const n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){const o=n.spanGaps?this._loop:this._fullLoop;GR(this._points,n,e,o,t),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(e,t){const n=e.points,o=e.options.spanGaps,r=n.length;if(!r)return[];const i=!!e._loop,{start:a,end:s}=function(e,t,n,o){let r=0,i=t-1;if(n&&!o)for(;r<t&&!e[r].skip;)r++;for(;r<t&&e[r].skip;)r++;for(r%=t,n&&(i+=r);i>r&&e[i%t].skip;)i--;return i%=t,{start:r,end:i}}(n,r,i,o);return function(e,t,n,o){return o&&o.setContext&&n?function(e,t,n,o){const r=e._chart.getContext(),i=hA(e.options),{_datasetIndex:a,options:{spanGaps:s}}=e,l=n.length,c=[];let u=i,d=t[0].start,f=d;function p(e,t,o,r){const i=s?-1:1;if(e!==t){for(e+=l;n[e%l].skip;)e-=i;for(;n[t%l].skip;)t+=i;e%l!=t%l&&(c.push({start:e%l,end:t%l,loop:o,style:r}),u=r,d=t%l)}}for(const e of t){d=s?d:e.start;let t,i=n[d%l];for(f=d+1;f<=e.end;f++){const s=n[f%l];t=hA(o.setContext(jR(r,{type:"segment",p0:i,p1:s,p0DataIndex:(f-1)%l,p1DataIndex:f%l,datasetIndex:a}))),mA(t,u)&&p(d,f-1,e.loop,u),i=s,u=t}d<f-1&&p(d,f-1,e.loop,u)}return c}(e,t,n,o):t}(e,!0===o?[{start:a,end:s,loop:i}]:function(e,t,n,o){const r=e.length,i=[];let a,s=t,l=e[t];for(a=t+1;a<=n;++a){const n=e[a%r];n.skip||n.stop?l.skip||(o=!1,i.push({start:t%r,end:(a-1)%r,loop:o}),t=s=n.stop?a:null):(s=a,l.skip&&(t=a)),l=n}return null!==s&&i.push({start:t%r,end:s%r,loop:o}),i}(n,a,s<a?s+r:s,!!e._fullLoop&&0===a&&s===r-1),n,t)}(this,this.options.segment))}first(){const e=this.segments,t=this.points;return e.length&&t[e[0].start]}last(){const e=this.segments,t=this.points,n=e.length;return n&&t[e[n-1].end]}interpolate(e,t){const n=this.options,o=e[t],r=this.points,i=function(e,t){const n=[],o=e.segments;for(let r=0;r<o.length;r++){const i=pA(o[r],e.points,t);i.length&&n.push(...i)}return n}(this,{property:t,start:o,end:o});if(!i.length)return;const a=[],s=function(e){return e.stepped?lA:e.tension||"monotone"===e.cubicInterpolationMode?cA:sA}(n);let l,c;for(l=0,c=i.length;l<c;++l){const{start:c,end:u}=i[l],d=r[c],f=r[u];if(d===f){a.push(d);continue}const p=s(d,f,Math.abs((o-d[t])/(f[t]-d[t])),n.stepped);p[t]=e[t],a.push(p)}return 1===a.length?a[0]:a}pathSegment(e,t,n){return vB(this)(e,this,t,n)}path(e,t,n){const o=this.segments,r=vB(this);let i=this._loop;t=t||0,n=n||this.points.length-t;for(const a of o)i&=r(e,this,a,{start:t,end:t+n-1});return!!i}draw(e,t,n,o){const r=this.options||{};(this.points||[]).length&&r.borderWidth&&(e.save(),function(e,t,n,o){bB&&!t.options.segment?function(e,t,n,o){let r=t._path;r||(r=t._path=new Path2D,t.path(r,n,o)&&r.closePath()),fB(e,t.options),e.stroke(r)}(e,t,n,o):function(e,t,n,o){const{segments:r,options:i}=t,a=vB(t);for(const s of r)fB(e,i,s.style),e.beginPath(),a(e,t,s,{start:n,end:n+o-1})&&e.closePath(),e.stroke()}(e,t,n,o)}(e,this,n,o),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}},class extends ED{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,t,n){const o=this.options,{x:r,y:i}=this.getProps(["x","y"],n);return Math.pow(e-r,2)+Math.pow(t-i,2)<Math.pow(o.hitRadius+o.radius,2)}inXRange(e,t){return yB(this,e,"x",t)}inYRange(e,t){return yB(this,e,"y",t)}getCenterPoint(e){const{x:t,y:n}=this.getProps(["x","y"],e);return{x:t,y:n}}size(e){let t=(e=e||this.options||{}).radius||0;return t=Math.max(t,t&&e.hoverRadius||0),2*(t+(t&&e.borderWidth||0))}draw(e,t){const n=this.options;this.skip||n.radius<.1||!dR(this,t,this.size(n)/2)||(e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.fillStyle=n.backgroundColor,uR(e,n,this.x,this.y))}getRange(){const e=this.options||{};return e.radius+e.hitRadius}},zB,wB,class extends ND{static id="category";static defaults={ticks:{callback:DB}};constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const t=this._addedLabels;if(t.length){const e=this.getLabels();for(const{index:n,label:o}of t)e[n]===o&&e.splice(n,1);this._addedLabels=[]}super.init(e)}parse(e,t){if(KN(e))return null;const n=this.getLabels();return((e,t)=>null===e?null:PT(Math.round(e),0,t))(t=isFinite(t)&&n[t]===e?t:function(e,t,n,o){const r=e.indexOf(t);return-1===r?((e,t,n,o)=>("string"==typeof t?(n=e.push(t)-1,o.unshift({index:n,label:t})):isNaN(t)&&(n=null),n))(e,t,n,o):r!==e.lastIndexOf(t)?n:r}(n,e,YN(t,e),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let{min:n,max:o}=this.getMinMax(!0);"ticks"===this.options.bounds&&(e||(n=0),t||(o=this.getLabels().length-1)),this.min=n,this.max=o}buildTicks(){const e=this.min,t=this.max,n=this.options.offset,o=[];let r=this.getLabels();r=0===e&&t===r.length-1?r:r.slice(e,t+1),this._valueRange=Math.max(r.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let n=e;n<=t;n++)o.push({value:n});return o}getLabelForValue(e){return DB.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return"number"!=typeof e&&(e=this.parse(e)),null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}},AB);const AL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"};var DL=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:AL}))};const BL=p.forwardRef(DL),LL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M848 359.3H627.7L825.8 109c4.1-5.3.4-13-6.3-13H436c-2.8 0-5.5 1.5-6.9 4L170 547.5c-3.1 5.3.7 12 6.9 12h174.4l-89.4 357.6c-1.9 7.8 7.5 13.3 13.3 7.7L853.5 373c5.2-4.9 1.7-13.7-5.5-13.7zM378.2 732.5l60.3-241H281.1l189.6-327.4h224.6L487 427.4h211L378.2 732.5z"}}]},name:"thunderbolt",theme:"outlined"};var zL=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:LL}))};const FL=p.forwardRef(zL),HL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M816 768h-24V428c0-141.1-104.3-257.7-240-277.1V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.9c-135.7 19.4-240 136-240 277.1v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48zM304 768V428c0-55.6 21.6-107.8 60.9-147.1S456.4 220 512 220c55.6 0 107.8 21.6 147.1 60.9S720 372.4 720 428v340H304z"}}]},name:"bell",theme:"outlined"};var VL=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:HL}))};const WL=p.forwardRef(VL),KL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"};var qL=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:KL}))};const UL=p.forwardRef(qL),GL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};var XL=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:GL}))};const YL=p.forwardRef(XL),ZL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};var QL=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:ZL}))};const JL=p.forwardRef(QL),ez=(0,p.createContext)(null);var tz={width:0,height:0,left:0,top:0};function nz(e,t){var n=p.useRef(e),o=Ge(p.useState({}),2)[1];return[n.current,function(e){var r="function"==typeof e?e(n.current):e;r!==n.current&&t(r,n.current),n.current=r,o({})}]}var oz=Math.pow(.995,20);function rz(e){var t=Ge((0,p.useState)(0),2),n=t[0],o=t[1],r=(0,p.useRef)(0),i=(0,p.useRef)();return i.current=e,Jt((function(){var e;null===(e=i.current)||void 0===e||e.call(i)}),[n]),function(){r.current===n&&(r.current+=1,o(r.current))}}var iz={width:0,height:0,left:0,top:0,right:0};function az(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function sz(e){return String(e).replace(/"/g,"TABS_DQ")}function lz(e,t,n,o){return!(!n||o||!1===e||void 0===e&&(!1===t||null===t))}var cz=p.forwardRef((function(e,t){var n=e.prefixCls,o=e.editable,r=e.locale,i=e.style;return o&&!1!==o.showAdd?p.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(null==r?void 0:r.addAriaLabel)||"Add tab",onClick:function(e){o.onEdit("add",{event:e})}},o.addIcon||"+"):null}));const uz=cz;var dz=p.forwardRef((function(e,t){var n,o=e.position,r=e.prefixCls,i=e.extra;if(!i)return null;var a={};return"object"!==ye(i)||p.isValidElement(i)?a.right=i:a=i,"right"===o&&(n=a.right),"left"===o&&(n=a.left),n?p.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},n):null}));const fz=dz;var pz=Is.ESC,hz=Is.TAB;const mz=(0,p.forwardRef)((function(e,t){var n=e.overlay,o=e.arrow,r=e.prefixCls,i=(0,p.useMemo)((function(){return"function"==typeof n?n():n}),[n]),a=li(t,null==i?void 0:i.ref);return h().createElement(h().Fragment,null,o&&h().createElement("div",{className:"".concat(r,"-arrow")}),h().cloneElement(i,{ref:ui(i)?a:void 0}))}));var gz={adjustX:1,adjustY:1},vz=[0,0];const bz={topLeft:{points:["bl","tl"],overflow:gz,offset:[0,-4],targetOffset:vz},top:{points:["bc","tc"],overflow:gz,offset:[0,-4],targetOffset:vz},topRight:{points:["br","tr"],overflow:gz,offset:[0,-4],targetOffset:vz},bottomLeft:{points:["tl","bl"],overflow:gz,offset:[0,4],targetOffset:vz},bottom:{points:["tc","bc"],overflow:gz,offset:[0,4],targetOffset:vz},bottomRight:{points:["tr","br"],overflow:gz,offset:[0,4],targetOffset:vz}};var yz=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function xz(e,t){var n,o=e.arrow,r=void 0!==o&&o,i=e.prefixCls,a=void 0===i?"rc-dropdown":i,s=e.transitionName,l=e.animation,c=e.align,u=e.placement,d=void 0===u?"bottomLeft":u,f=e.placements,m=void 0===f?bz:f,g=e.getPopupContainer,v=e.showAction,b=e.hideAction,y=e.overlayClassName,x=e.overlayStyle,w=e.visible,C=e.trigger,S=void 0===C?["hover"]:C,E=e.autoFocus,k=e.overlay,$=e.children,_=e.onVisibleChange,O=di(e,yz),j=Ge(h().useState(),2),M=j[0],P=j[1],I="visible"in e?w:M,N=h().useRef(null),T=h().useRef(null),R=h().useRef(null);h().useImperativeHandle(t,(function(){return N.current}));var A=function(e){P(e),null==_||_(e)};!function(e){var t=e.visible,n=e.triggerRef,o=e.onVisibleChange,r=e.autoFocus,i=e.overlayRef,a=p.useRef(!1),s=function(){var e,r;t&&(null===(e=n.current)||void 0===e||null===(r=e.focus)||void 0===r||r.call(e),null==o||o(!1))},l=function(){var e;return!(null===(e=i.current)||void 0===e||!e.focus||(i.current.focus(),a.current=!0,0))},c=function(e){switch(e.keyCode){case pz:s();break;case hz:var t=!1;a.current||(t=l()),t?e.preventDefault():s()}};p.useEffect((function(){return t?(window.addEventListener("keydown",c),r&&na(l,3),function(){window.removeEventListener("keydown",c),a.current=!1}):function(){a.current=!1}}),[t])}({visible:I,triggerRef:R,onVisibleChange:A,autoFocus:E,overlayRef:T});var D,B,L,z=function(){return h().createElement(mz,{ref:T,overlay:k,prefixCls:a,arrow:r})},F=h().cloneElement($,{className:oi()(null===(n=$.props)||void 0===n?void 0:n.className,I&&(D=e.openClassName,void 0!==D?D:"".concat(a,"-open"))),ref:ui($)?li(R,$.ref):void 0}),H=b;return H||-1===S.indexOf("contextMenu")||(H=["click"]),h().createElement(uS,hn({builtinPlacements:m},O,{prefixCls:a,ref:N,popupClassName:oi()(y,Ee({},"".concat(a,"-show-arrow"),r)),popupStyle:x,action:S,showAction:v,hideAction:H,popupPlacement:d,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:I,stretch:(B=e.minOverlayWidthMatchTrigger,L=e.alignPoint,("minOverlayWidthMatchTrigger"in e?B:!L)?"minWidth":""),popup:"function"==typeof k?z:z(),onPopupVisibleChange:A,onPopupClick:function(t){var n=e.onOverlayClick;P(!1),n&&n(t)},getPopupContainer:g}),F)}const wz=h().forwardRef(xz);var Cz=p.createContext(null);function Sz(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function Ez(e){return Sz(p.useContext(Cz),e)}var kz=["children","locked"],$z=p.createContext(null);function _z(e){var t=e.children,n=e.locked,o=di(e,kz),r=p.useContext($z),i=dt((function(){return function(e,t){var n=$e({},e);return Object.keys(t).forEach((function(e){var o=t[e];void 0!==o&&(n[e]=o)})),n}(r,o)}),[r,o],(function(e,t){return!(n||e[0]===t[0]&&yt(e[1],t[1],!0))}));return p.createElement($z.Provider,{value:i},t)}var Oz=[],jz=p.createContext(null);function Mz(){return p.useContext(jz)}var Pz=p.createContext(Oz);function Iz(e){var t=p.useContext(Pz);return p.useMemo((function(){return void 0!==e?[].concat(Ye(t),[e]):t}),[t,e])}var Nz=p.createContext(null);const Tz=p.createContext({});function Rz(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(ec(e)){var n=e.nodeName.toLowerCase(),o=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),r=e.getAttribute("tabindex"),i=Number(r),a=null;return r&&!Number.isNaN(i)?a=i:o&&null===a&&(a=0),o&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}var Az=Is.LEFT,Dz=Is.RIGHT,Bz=Is.UP,Lz=Is.DOWN,zz=Is.ENTER,Fz=Is.ESC,Hz=Is.HOME,Vz=Is.END,Wz=[Bz,Lz,Az,Dz];function Kz(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Ye(e.querySelectorAll("*")).filter((function(e){return Rz(e,t)}));return Rz(e,t)&&n.unshift(e),n}(e,!0).filter((function(e){return t.has(e)}))}function qz(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var r=Kz(e,t),i=r.length,a=r.findIndex((function(e){return n===e}));return o<0?-1===a?a=i-1:a-=1:o>0&&(a+=1),r[a=(a+i)%i]}var Uz=function(e,t){var n=new Set,o=new Map,r=new Map;return e.forEach((function(e){var i=document.querySelector("[data-menu-id='".concat(Sz(t,e),"']"));i&&(n.add(i),r.set(i,e),o.set(e,i))})),{elements:n,key2element:o,element2key:r}};var Gz="__RC_UTIL_PATH_SPLIT__",Xz=function(e){return e.join(Gz)},Yz="rc-menu-more";function Zz(){var e=Ge(p.useState({}),2)[1],t=(0,p.useRef)(new Map),n=(0,p.useRef)(new Map),o=Ge(p.useState([]),2),r=o[0],i=o[1],a=(0,p.useRef)(0),s=(0,p.useRef)(!1),l=(0,p.useCallback)((function(o,r){var i=Xz(r);n.current.set(i,o),t.current.set(o,i),a.current+=1;var l=a.current;Promise.resolve().then((function(){l===a.current&&(s.current||e({}))}))}),[]),c=(0,p.useCallback)((function(e,o){var r=Xz(o);n.current.delete(r),t.current.delete(e)}),[]),u=(0,p.useCallback)((function(e){i(e)}),[]),d=(0,p.useCallback)((function(e,n){var o=(t.current.get(e)||"").split(Gz);return n&&r.includes(o[0])&&o.unshift(Yz),o}),[r]),f=(0,p.useCallback)((function(e,t){return e.some((function(e){return d(e,!0).includes(t)}))}),[d]),h=(0,p.useCallback)((function(e){var o="".concat(t.current.get(e)).concat(Gz),r=new Set;return Ye(n.current.keys()).forEach((function(e){e.startsWith(o)&&r.add(n.current.get(e))})),r}),[]);return p.useEffect((function(){return function(){s.current=!0}}),[]),{registerPath:l,unregisterPath:c,refreshOverflowKeys:u,isSubPathKey:f,getKeyPath:d,getKeys:function(){var e=Ye(t.current.keys());return r.length&&e.push(Yz),e},getSubPathKeys:h}}function Qz(e){var t=p.useRef(e);t.current=e;var n=p.useCallback((function(){for(var e,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(o))}),[]);return e?n:void 0}var Jz=Math.random().toFixed(5).toString().slice(2),eF=0;function tF(e,t,n,o){var r=p.useContext($z),i=r.activeKey,a=r.onActive,s=r.onInactive,l={active:i===e};return t||(l.onMouseEnter=function(t){null==n||n({key:e,domEvent:t}),a(e)},l.onMouseLeave=function(t){null==o||o({key:e,domEvent:t}),s(e)}),l}function nF(e){var t=p.useContext($z),n=t.mode,o=t.rtl,r=t.inlineIndent;return"inline"!==n?null:o?{paddingRight:e*r}:{paddingLeft:e*r}}function oF(e){var t,n=e.icon,o=e.props,r=e.children;return null===n||!1===n?null:("function"==typeof n?t=p.createElement(n,$e({},o)):"boolean"!=typeof n&&(t=n),t||r||null)}var rF=["item"];function iF(e){var t=e.item,n=di(e,rF);return Object.defineProperty(n,"item",{get:function(){return bt(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var aF=["title","attribute","elementRef"],sF=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],lF=["active"],cF=function(e){gi(n,e);var t=wi(n);function n(){return xt(this,n),t.apply(this,arguments)}return Ct(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,o=e.elementRef,r=Jl(di(e,aF),["eventKey","popupClassName","popupOffset","onTitleClick"]);return bt(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),p.createElement(lM.Item,hn({},n,{title:"string"==typeof t?t:void 0},r,{ref:o}))}}]),n}(p.Component),uF=p.forwardRef((function(e,t){var n,o=e.style,r=e.className,i=e.eventKey,a=(e.warnKey,e.disabled),s=e.itemIcon,l=e.children,c=e.role,u=e.onMouseEnter,d=e.onMouseLeave,f=e.onClick,h=e.onKeyDown,m=e.onFocus,g=di(e,sF),v=Ez(i),b=p.useContext($z),y=b.prefixCls,x=b.onItemClick,w=b.disabled,C=b.overflowDisabled,S=b.itemIcon,E=b.selectedKeys,k=b.onActive,$=p.useContext(Tz)._internalRenderMenuItem,_="".concat(y,"-item"),O=p.useRef(),j=p.useRef(),M=w||a,P=ci(t,j),I=Iz(i),N=function(e){return{key:i,keyPath:Ye(I).reverse(),item:O.current,domEvent:e}},T=s||S,R=tF(i,M,u,d),A=R.active,D=di(R,lF),B=E.includes(i),L=nF(I.length),z={};"option"===e.role&&(z["aria-selected"]=B);var F=p.createElement(cF,hn({ref:O,elementRef:P,role:null===c?"none":c||"menuitem",tabIndex:a?null:-1,"data-menu-id":C&&v?null:v},g,D,z,{component:"li","aria-disabled":a,style:$e($e({},L),o),className:oi()(_,(n={},Ee(n,"".concat(_,"-active"),A),Ee(n,"".concat(_,"-selected"),B),Ee(n,"".concat(_,"-disabled"),M),n),r),onClick:function(e){if(!M){var t=N(e);null==f||f(iF(t)),x(t)}},onKeyDown:function(e){if(null==h||h(e),e.which===Is.ENTER){var t=N(e);null==f||f(iF(t)),x(t)}},onFocus:function(e){k(i),null==m||m(e)}}),l,p.createElement(oF,{props:$e($e({},e),{},{isSelected:B}),icon:T}));return $&&(F=$(F,e,{selected:B})),F}));function dF(e,t){var n=e.eventKey,o=Mz(),r=Iz(n);return p.useEffect((function(){if(o)return o.registerPath(n,r),function(){o.unregisterPath(n,r)}}),[r]),o?null:p.createElement(uF,hn({},e,{ref:t}))}const fF=p.forwardRef(dF);var pF=["className","children"],hF=function(e,t){var n=e.className,o=e.children,r=di(e,pF),i=p.useContext($z),a=i.prefixCls,s=i.mode,l=i.rtl;return p.createElement("ul",hn({className:oi()(a,l&&"".concat(a,"-rtl"),"".concat(a,"-sub"),"".concat(a,"-").concat("inline"===s?"inline":"vertical"),n),role:"menu"},r,{"data-menu-list":!0,ref:t}),o)},mF=p.forwardRef(hF);mF.displayName="SubMenuList";const gF=mF;function vF(e,t){return hc(e).map((function(e,n){if(p.isValidElement(e)){var o,r,i=e.key,a=null!==(o=null===(r=e.props)||void 0===r?void 0:r.eventKey)&&void 0!==o?o:i;null==a&&(a="tmp_key-".concat([].concat(Ye(t),[n]).join("-")));var s={key:a,eventKey:a};return p.cloneElement(e,s)}return e}))}var bF={adjustX:1,adjustY:1},yF={topLeft:{points:["bl","tl"],overflow:bF},topRight:{points:["br","tr"],overflow:bF},bottomLeft:{points:["tl","bl"],overflow:bF},bottomRight:{points:["tr","br"],overflow:bF},leftTop:{points:["tr","tl"],overflow:bF},leftBottom:{points:["br","bl"],overflow:bF},rightTop:{points:["tl","tr"],overflow:bF},rightBottom:{points:["bl","br"],overflow:bF}},xF={topLeft:{points:["bl","tl"],overflow:bF},topRight:{points:["br","tr"],overflow:bF},bottomLeft:{points:["tl","bl"],overflow:bF},bottomRight:{points:["tr","br"],overflow:bF},rightTop:{points:["tr","tl"],overflow:bF},rightBottom:{points:["br","bl"],overflow:bF},leftTop:{points:["tl","tr"],overflow:bF},leftBottom:{points:["bl","br"],overflow:bF}};function wF(e,t,n){return t||(n?n[e]||n.other:void 0)}var CF={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function SF(e){var t=e.prefixCls,n=e.visible,o=e.children,r=e.popup,i=e.popupStyle,a=e.popupClassName,s=e.popupOffset,l=e.disabled,c=e.mode,u=e.onVisibleChange,d=p.useContext($z),f=d.getPopupContainer,h=d.rtl,m=d.subMenuOpenDelay,g=d.subMenuCloseDelay,v=d.builtinPlacements,b=d.triggerSubMenuAction,y=d.forceSubMenuRender,x=d.rootClassName,w=d.motion,C=d.defaultMotions,S=Ge(p.useState(!1),2),E=S[0],k=S[1],$=$e($e({},h?xF:yF),v),_=CF[c],O=wF(c,w,C),j=p.useRef(O);"inline"!==c&&(j.current=O);var M=$e($e({},j.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),P=p.useRef();return p.useEffect((function(){return P.current=na((function(){k(n)})),function(){na.cancel(P.current)}}),[n]),p.createElement(uS,{prefixCls:t,popupClassName:oi()("".concat(t,"-popup"),Ee({},"".concat(t,"-rtl"),h),a,x),stretch:"horizontal"===c?"minWidth":null,getPopupContainer:f,builtinPlacements:$,popupPlacement:_,popupVisible:E,popup:r,popupStyle:i,popupAlign:s&&{offset:s},action:l?[]:[b],mouseEnterDelay:m,mouseLeaveDelay:g,onPopupVisibleChange:u,forceRender:y,popupMotion:M,fresh:!0},o)}function EF(e){var t=e.id,n=e.open,o=e.keyPath,r=e.children,i="inline",a=p.useContext($z),s=a.prefixCls,l=a.forceSubMenuRender,c=a.motion,u=a.defaultMotions,d=a.mode,f=p.useRef(!1);f.current=d===i;var h=Ge(p.useState(!f.current),2),m=h[0],g=h[1],v=!!f.current&&n;p.useEffect((function(){f.current&&g(!1)}),[d]);var b=$e({},wF(i,c,u));o.length>1&&(b.motionAppear=!1);var y=b.onVisibleChanged;return b.onVisibleChanged=function(e){return f.current||e||g(!0),null==y?void 0:y(e)},m?null:p.createElement(_z,{mode:i,locked:!f.current},p.createElement(va,hn({visible:v},b,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),(function(e){var n=e.className,o=e.style;return p.createElement(gF,{id:t,className:n,style:o},r)})))}var kF=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],$F=["active"],_F=function(e){var t,n=e.style,o=e.className,r=e.title,i=e.eventKey,a=(e.warnKey,e.disabled),s=e.internalPopupClose,l=e.children,c=e.itemIcon,u=e.expandIcon,d=e.popupClassName,f=e.popupOffset,h=e.popupStyle,m=e.onClick,g=e.onMouseEnter,v=e.onMouseLeave,b=e.onTitleClick,y=e.onTitleMouseEnter,x=e.onTitleMouseLeave,w=di(e,kF),C=Ez(i),S=p.useContext($z),E=S.prefixCls,k=S.mode,$=S.openKeys,_=S.disabled,O=S.overflowDisabled,j=S.activeKey,M=S.selectedKeys,P=S.itemIcon,I=S.expandIcon,N=S.onItemClick,T=S.onOpenChange,R=S.onActive,A=p.useContext(Tz)._internalRenderSubMenuItem,D=p.useContext(Nz).isSubPathKey,B=Iz(),L="".concat(E,"-submenu"),z=_||a,F=p.useRef(),H=p.useRef(),V=null!=c?c:P,W=null!=u?u:I,K=$.includes(i),q=!O&&K,U=D(M,i),G=tF(i,z,y,x),X=G.active,Y=di(G,$F),Z=Ge(p.useState(!1),2),Q=Z[0],J=Z[1],ee=function(e){z||J(e)},te=p.useMemo((function(){return X||"inline"!==k&&(Q||D([j],i))}),[k,X,j,Q,i,D]),ne=nF(B.length),oe=Qz((function(e){null==m||m(iF(e)),N(e)})),re=C&&"".concat(C,"-popup"),ie=p.createElement("div",hn({role:"menuitem",style:ne,className:"".concat(L,"-title"),tabIndex:z?null:-1,ref:F,title:"string"==typeof r?r:null,"data-menu-id":O&&C?null:C,"aria-expanded":q,"aria-haspopup":!0,"aria-controls":re,"aria-disabled":z,onClick:function(e){z||(null==b||b({key:i,domEvent:e}),"inline"===k&&T(i,!K))},onFocus:function(){R(i)}},Y),r,p.createElement(oF,{icon:"horizontal"!==k?W:void 0,props:$e($e({},e),{},{isOpen:q,isSubMenu:!0})},p.createElement("i",{className:"".concat(L,"-arrow")}))),ae=p.useRef(k);if("inline"!==k&&B.length>1?ae.current="vertical":ae.current=k,!O){var se=ae.current;ie=p.createElement(SF,{mode:se,prefixCls:L,visible:!s&&q&&"inline"!==k,popupClassName:d,popupOffset:f,popupStyle:h,popup:p.createElement(_z,{mode:"horizontal"===se?"vertical":se},p.createElement(gF,{id:re,ref:H},l)),disabled:z,onVisibleChange:function(e){"inline"!==k&&T(i,e)}},ie)}var le=p.createElement(lM.Item,hn({role:"none"},w,{component:"li",style:n,className:oi()(L,"".concat(L,"-").concat(k),o,(t={},Ee(t,"".concat(L,"-open"),q),Ee(t,"".concat(L,"-active"),te),Ee(t,"".concat(L,"-selected"),U),Ee(t,"".concat(L,"-disabled"),z),t)),onMouseEnter:function(e){ee(!0),null==g||g({key:i,domEvent:e})},onMouseLeave:function(e){ee(!1),null==v||v({key:i,domEvent:e})}}),ie,!O&&p.createElement(EF,{id:re,open:q,keyPath:B},l));return A&&(le=A(le,e,{selected:U,active:te,open:q,disabled:z})),p.createElement(_z,{onItemClick:oe,mode:"horizontal"===k?"vertical":k,itemIcon:V,expandIcon:W},le)};function OF(e){var t,n=e.eventKey,o=e.children,r=Iz(n),i=vF(o,r),a=Mz();return p.useEffect((function(){if(a)return a.registerPath(n,r),function(){a.unregisterPath(n,r)}}),[r]),t=a?i:p.createElement(_F,e,i),p.createElement(Pz.Provider,{value:r},t)}var jF=["className","title","eventKey","children"],MF=["children"],PF=function(e){var t=e.className,n=e.title,o=(e.eventKey,e.children),r=di(e,jF),i=p.useContext($z).prefixCls,a="".concat(i,"-item-group");return p.createElement("li",hn({role:"presentation"},r,{onClick:function(e){return e.stopPropagation()},className:oi()(a,t)}),p.createElement("div",{role:"presentation",className:"".concat(a,"-title"),title:"string"==typeof n?n:void 0},n),p.createElement("ul",{role:"group",className:"".concat(a,"-list")},o))};function IF(e){var t=e.children,n=di(e,MF),o=vF(t,Iz(n.eventKey));return Mz()?o:p.createElement(PF,Jl(n,["warnKey"]),o)}function NF(e){var t=e.className,n=e.style,o=p.useContext($z).prefixCls;return Mz()?null:p.createElement("li",{role:"separator",className:oi()("".concat(o,"-item-divider"),t),style:n})}var TF=["label","children","key","type"];function RF(e){return(e||[]).map((function(e,t){if(e&&"object"===ye(e)){var n=e,o=n.label,r=n.children,i=n.key,a=n.type,s=di(n,TF),l=null!=i?i:"tmp-".concat(t);return r||"group"===a?"group"===a?p.createElement(IF,hn({key:l},s,{title:o}),RF(r)):p.createElement(OF,hn({key:l},s,{title:o}),RF(r)):"divider"===a?p.createElement(NF,hn({key:l},s)):p.createElement(fF,hn({key:l},s),o)}return null})).filter((function(e){return e}))}function AF(e,t,n){var o=e;return t&&(o=RF(t)),vF(o,n)}var DF=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],BF=[],LF=p.forwardRef((function(e,t){var n,o,r=e,i=r.prefixCls,a=void 0===i?"rc-menu":i,s=r.rootClassName,l=r.style,c=r.className,u=r.tabIndex,d=void 0===u?0:u,f=r.items,h=r.children,m=r.direction,g=r.id,v=r.mode,b=void 0===v?"vertical":v,y=r.inlineCollapsed,x=r.disabled,w=r.disabledOverflow,C=r.subMenuOpenDelay,S=void 0===C?.1:C,E=r.subMenuCloseDelay,k=void 0===E?.1:E,$=r.forceSubMenuRender,_=r.defaultOpenKeys,O=r.openKeys,j=r.activeKey,M=r.defaultActiveFirst,P=r.selectable,I=void 0===P||P,N=r.multiple,T=void 0!==N&&N,R=r.defaultSelectedKeys,A=r.selectedKeys,D=r.onSelect,B=r.onDeselect,L=r.inlineIndent,z=void 0===L?24:L,F=r.motion,H=r.defaultMotions,V=r.triggerSubMenuAction,W=void 0===V?"hover":V,K=r.builtinPlacements,q=r.itemIcon,U=r.expandIcon,G=r.overflowedIndicator,X=void 0===G?"...":G,Y=r.overflowedIndicatorPopupClassName,Z=r.getPopupContainer,Q=r.onClick,J=r.onOpenChange,ee=r.onKeyDown,te=(r.openAnimation,r.openTransitionName,r._internalRenderMenuItem),ne=r._internalRenderSubMenuItem,oe=di(r,DF),re=p.useMemo((function(){return AF(h,f,BF)}),[h,f]),ie=Ge(p.useState(!1),2),ae=ie[0],se=ie[1],le=p.useRef(),ce=function(e){var t=Ge(rl(e,{value:e}),2),n=t[0],o=t[1];return p.useEffect((function(){eF+=1;var e="".concat(Jz,"-").concat(eF);o("rc-menu-uuid-".concat(e))}),[]),n}(g),ue="rtl"===m,de=rl(_,{value:O,postState:function(e){return e||BF}}),fe=Ge(de,2),he=fe[0],me=fe[1],ge=function(e){function t(){me(e),null==J||J(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(0,pe.flushSync)(t):t()},ve=Ge(p.useState(he),2),be=ve[0],ye=ve[1],xe=p.useRef(!1),we=Ge(p.useMemo((function(){return"inline"!==b&&"vertical"!==b||!y?[b,!1]:["vertical",y]}),[b,y]),2),Ce=we[0],Se=we[1],ke="inline"===Ce,_e=Ge(p.useState(Ce),2),Oe=_e[0],je=_e[1],Me=Ge(p.useState(Se),2),Pe=Me[0],Ie=Me[1];p.useEffect((function(){je(Ce),Ie(Se),xe.current&&(ke?me(be):ge(BF))}),[Ce,Se]);var Ne=Ge(p.useState(0),2),Te=Ne[0],Re=Ne[1],Ae=Te>=re.length-1||"horizontal"!==Oe||w;p.useEffect((function(){ke&&ye(he)}),[he]),p.useEffect((function(){return xe.current=!0,function(){xe.current=!1}}),[]);var De=Zz(),Be=De.registerPath,Le=De.unregisterPath,ze=De.refreshOverflowKeys,Fe=De.isSubPathKey,He=De.getKeyPath,Ve=De.getKeys,We=De.getSubPathKeys,Ke=p.useMemo((function(){return{registerPath:Be,unregisterPath:Le}}),[Be,Le]),qe=p.useMemo((function(){return{isSubPathKey:Fe}}),[Fe]);p.useEffect((function(){ze(Ae?BF:re.slice(Te+1).map((function(e){return e.key})))}),[Te,Ae]);var Ue=Ge(rl(j||M&&(null===(n=re[0])||void 0===n?void 0:n.key),{value:j}),2),Xe=Ue[0],Ze=Ue[1],Qe=Qz((function(e){Ze(e)})),Je=Qz((function(){Ze(void 0)}));(0,p.useImperativeHandle)(t,(function(){return{list:le.current,focus:function(e){var t,n,o=Ve(),r=Uz(o,ce),i=r.elements,a=r.key2element,s=r.element2key,l=Kz(le.current,i),c=null!=Xe?Xe:l[0]?s.get(l[0]):null===(t=re.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key,u=a.get(c);c&&u&&(null==u||null===(n=u.focus)||void 0===n||n.call(u,e))}}}));var et=rl(R||[],{value:A,postState:function(e){return Array.isArray(e)?e:null==e?BF:[e]}}),tt=Ge(et,2),nt=tt[0],ot=tt[1],rt=Qz((function(e){null==Q||Q(iF(e)),function(e){if(I){var t,n=e.key,o=nt.includes(n);t=T?o?nt.filter((function(e){return e!==n})):[].concat(Ye(nt),[n]):[n],ot(t);var r=$e($e({},e),{},{selectedKeys:t});o?null==B||B(r):null==D||D(r)}!T&&he.length&&"inline"!==Oe&&ge(BF)}(e)})),it=Qz((function(e,t){var n=he.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==Oe){var o=We(e);n=n.filter((function(e){return!o.has(e)}))}yt(he,n,!0)||ge(n,!0)})),at=function(e,t,n,o,r,i,a,s,l,c){var u=p.useRef(),d=p.useRef();d.current=t;var f=function(){na.cancel(u.current)};return p.useEffect((function(){return function(){f()}}),[]),function(p){var h=p.which;if([].concat(Wz,[zz,Fz,Hz,Vz]).includes(h)){var m=i(),g=Uz(m,o),v=g,b=v.elements,y=v.key2element,x=v.element2key,w=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(y.get(t),b),C=x.get(w),S=function(e,t,n,o){var r,i,a,s,l="prev",c="next",u="children",d="parent";if("inline"===e&&o===zz)return{inlineTrigger:!0};var f=(Ee(r={},Bz,l),Ee(r,Lz,c),r),p=(Ee(i={},Az,n?c:l),Ee(i,Dz,n?l:c),Ee(i,Lz,u),Ee(i,zz,u),i),h=(Ee(a={},Bz,l),Ee(a,Lz,c),Ee(a,zz,u),Ee(a,Fz,d),Ee(a,Az,n?u:d),Ee(a,Dz,n?d:u),a);switch(null===(s={inline:f,horizontal:p,vertical:h,inlineSub:f,horizontalSub:h,verticalSub:h}["".concat(e).concat(t?"":"Sub")])||void 0===s?void 0:s[o]){case l:return{offset:-1,sibling:!0};case c:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}(e,1===a(C,!0).length,n,h);if(!S&&h!==Hz&&h!==Vz)return;(Wz.includes(h)||[Hz,Vz].includes(h))&&p.preventDefault();var E=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var o=x.get(e);s(o),f(),u.current=na((function(){d.current===o&&t.focus()}))}};if([Hz,Vz].includes(h)||S.sibling||!w){var k,$,_=Kz(k=w&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(w):r.current,b);$=h===Hz?_[0]:h===Vz?_[_.length-1]:qz(k,b,w,S.offset),E($)}else if(S.inlineTrigger)l(C);else if(S.offset>0)l(C,!0),f(),u.current=na((function(){g=Uz(m,o);var e=w.getAttribute("aria-controls"),t=qz(document.getElementById(e),g.elements);E(t)}),5);else if(S.offset<0){var O=a(C,!0),j=O[O.length-2],M=y.get(j);l(j,!1),E(M)}}null==c||c(p)}}(Oe,Xe,ue,ce,le,Ve,He,Ze,(function(e,t){var n=null!=t?t:!he.includes(e);it(e,n)}),ee);p.useEffect((function(){se(!0)}),[]);var st=p.useMemo((function(){return{_internalRenderMenuItem:te,_internalRenderSubMenuItem:ne}}),[te,ne]),lt="horizontal"!==Oe||w?re:re.map((function(e,t){return p.createElement(_z,{key:e.key,overflowDisabled:t>Te},e)})),ct=p.createElement(lM,hn({id:g,ref:le,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:fF,className:oi()(a,"".concat(a,"-root"),"".concat(a,"-").concat(Oe),c,(o={},Ee(o,"".concat(a,"-inline-collapsed"),Pe),Ee(o,"".concat(a,"-rtl"),ue),o),s),dir:m,style:l,role:"menu",tabIndex:d,data:lt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?re.slice(-t):null;return p.createElement(OF,{eventKey:Yz,title:X,disabled:Ae,internalPopupClose:0===t,popupClassName:Y},n)},maxCount:"horizontal"!==Oe||w?lM.INVALIDATE:lM.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){Re(e)},onKeyDown:at},oe));return p.createElement(Tz.Provider,{value:st},p.createElement(Cz.Provider,{value:ce},p.createElement(_z,{prefixCls:a,rootClassName:s,mode:Oe,openKeys:he,rtl:ue,disabled:x,motion:ae?F:null,defaultMotions:ae?H:null,activeKey:Xe,onActive:Qe,onInactive:Je,selectedKeys:nt,inlineIndent:z,subMenuOpenDelay:S,subMenuCloseDelay:k,forceSubMenuRender:$,builtinPlacements:K,triggerSubMenuAction:W,getPopupContainer:Z,itemIcon:q,expandIcon:U,onItemClick:rt,onOpenChange:it},p.createElement(Nz.Provider,{value:qe},ct),p.createElement("div",{style:{display:"none"},"aria-hidden":!0},p.createElement(jz.Provider,{value:Ke},re)))))})),zF=LF;zF.Item=fF,zF.SubMenu=OF,zF.ItemGroup=IF,zF.Divider=NF;const FF=zF;var HF=p.forwardRef((function(e,t){var n=e.prefixCls,o=e.id,r=e.tabs,i=e.locale,a=e.mobile,s=e.moreIcon,l=void 0===s?"More":s,c=e.moreTransitionName,u=e.style,d=e.className,f=e.editable,h=e.tabBarGutter,m=e.rtl,g=e.removeAriaLabel,v=e.onTabClick,b=e.getPopupContainer,y=e.popupClassName,x=Ge((0,p.useState)(!1),2),w=x[0],C=x[1],S=Ge((0,p.useState)(null),2),E=S[0],k=S[1],$="".concat(o,"-more-popup"),_="".concat(n,"-dropdown"),O=null!==E?"".concat($,"-").concat(E):null,j=null==i?void 0:i.dropdownAriaLabel,M=p.createElement(FF,{onClick:function(e){var t=e.key,n=e.domEvent;v(t,n),C(!1)},prefixCls:"".concat(_,"-menu"),id:$,tabIndex:-1,role:"listbox","aria-activedescendant":O,selectedKeys:[E],"aria-label":void 0!==j?j:"expanded dropdown"},r.map((function(e){var t=e.closable,n=e.disabled,r=e.closeIcon,i=e.key,a=e.label,s=lz(t,r,f,n);return p.createElement(fF,{key:i,id:"".concat($,"-").concat(i),role:"option","aria-controls":o&&"".concat(o,"-panel-").concat(i),disabled:n},p.createElement("span",null,a),s&&p.createElement("button",{type:"button","aria-label":g||"remove",tabIndex:0,className:"".concat(_,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),f.onEdit("remove",{key:t,event:e})}(e,i)}},r||f.removeIcon||"×"))})));function P(e){for(var t=r.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===E}))||0,o=t.length,i=0;i<o;i+=1){var a=t[n=(n+e+o)%o];if(!a.disabled)return void k(a.key)}}(0,p.useEffect)((function(){var e=document.getElementById(O);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),[E]),(0,p.useEffect)((function(){w||k(null)}),[w]);var I=Ee({},m?"marginRight":"marginLeft",h);r.length||(I.visibility="hidden",I.order=1);var N=oi()(Ee({},"".concat(_,"-rtl"),m)),T=a?null:p.createElement(wz,{prefixCls:_,overlay:M,trigger:["hover"],visible:!!r.length&&w,transitionName:c,onVisibleChange:C,overlayClassName:oi()(N,y),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:b},p.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:I,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":$,id:"".concat(o,"-more"),"aria-expanded":w,onKeyDown:function(e){var t=e.which;if(w)switch(t){case Is.UP:P(-1),e.preventDefault();break;case Is.DOWN:P(1),e.preventDefault();break;case Is.ESC:C(!1);break;case Is.SPACE:case Is.ENTER:null!==E&&v(E,e)}else[Is.DOWN,Is.SPACE,Is.ENTER].includes(t)&&(C(!0),e.preventDefault())}},l));return p.createElement("div",{className:oi()("".concat(n,"-nav-operations"),d),style:u,ref:t},T,p.createElement(uz,{prefixCls:n,locale:i,editable:f}))}));const VF=p.memo(HF,(function(e,t){return t.tabMoving})),WF=function(e){var t=e.prefixCls,n=e.id,o=e.active,r=e.tab,i=r.key,a=r.label,s=r.disabled,l=r.closeIcon,c=r.icon,u=e.closable,d=e.renderWrapper,f=e.removeAriaLabel,h=e.editable,m=e.onClick,g=e.onFocus,v=e.style,b="".concat(t,"-tab"),y=lz(u,l,h,s);function x(e){s||m(e)}var w=p.useMemo((function(){return c&&"string"==typeof a?p.createElement("span",null,a):a}),[a,c]),C=p.createElement("div",{key:i,"data-node-key":sz(i),className:oi()(b,Ee(Ee(Ee({},"".concat(b,"-with-remove"),y),"".concat(b,"-active"),o),"".concat(b,"-disabled"),s)),style:v,onClick:x},p.createElement("div",{role:"tab","aria-selected":o,id:n&&"".concat(n,"-tab-").concat(i),className:"".concat(b,"-btn"),"aria-controls":n&&"".concat(n,"-panel-").concat(i),"aria-disabled":s,tabIndex:s?null:0,onClick:function(e){e.stopPropagation(),x(e)},onKeyDown:function(e){[Is.SPACE,Is.ENTER].includes(e.which)&&(e.preventDefault(),x(e))},onFocus:g},c&&p.createElement("span",{className:"".concat(b,"-icon")},c),a&&w),y&&p.createElement("button",{type:"button","aria-label":f||"remove",tabIndex:0,className:"".concat(b,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),h.onEdit("remove",{key:i,event:t})}},l||h.removeIcon||"×"));return d?d(C):C};var KF=function(e){var t=e.current||{},n=t.offsetWidth,o=void 0===n?0:n,r=t.offsetHeight,i=void 0===r?0:r;if(e.current){var a=e.current.getBoundingClientRect(),s=a.width,l=a.height;if(Math.abs(s-o)<1)return[s,l]}return[o,i]},qF=function(e,t){return e[t?0:1]},UF=p.forwardRef((function(e,t){var n,o,r,i,a,s=e.className,l=e.style,c=e.id,u=e.animated,d=e.activeKey,f=e.rtl,m=e.extra,g=e.editable,v=e.locale,b=e.tabPosition,y=e.tabBarGutter,x=e.children,w=e.onTabClick,C=e.onTabScroll,S=e.indicator,E=p.useContext(ez),k=E.prefixCls,$=E.tabs,_=(0,p.useRef)(null),O=(0,p.useRef)(null),j=(0,p.useRef)(null),M=(0,p.useRef)(null),P=(0,p.useRef)(null),I=(0,p.useRef)(null),N=(0,p.useRef)(null),T="top"===b||"bottom"===b,R=nz(0,(function(e,t){T&&C&&C({direction:e>t?"left":"right"})})),A=Ge(R,2),D=A[0],B=A[1],L=nz(0,(function(e,t){!T&&C&&C({direction:e>t?"top":"bottom"})})),z=Ge(L,2),F=z[0],H=z[1],V=Ge((0,p.useState)([0,0]),2),W=V[0],K=V[1],q=Ge((0,p.useState)([0,0]),2),U=q[0],G=q[1],X=Ge((0,p.useState)([0,0]),2),Y=X[0],Z=X[1],Q=Ge((0,p.useState)([0,0]),2),J=Q[0],ee=Q[1],te=(n=new Map,o=(0,p.useRef)([]),r=Ge((0,p.useState)({}),2)[1],i=(0,p.useRef)("function"==typeof n?n():n),a=rz((function(){var e=i.current;o.current.forEach((function(t){e=t(e)})),o.current=[],i.current=e,r({})})),[i.current,function(e){o.current.push(e),a()}]),ne=Ge(te,2),oe=ne[0],re=ne[1],ie=function(e,t,n){return(0,p.useMemo)((function(){for(var n,o=new Map,r=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||tz,i=r.left+r.width,a=0;a<e.length;a+=1){var s,l=e[a].key,c=t.get(l);c||(c=t.get(null===(s=e[a-1])||void 0===s?void 0:s.key)||tz);var u=o.get(l)||$e({},c);u.right=i-u.left-u.width,o.set(l,u)}return o}),[e.map((function(e){return e.key})).join("_"),t,n])}($,oe,U[0]),ae=qF(W,T),se=qF(U,T),le=qF(Y,T),ce=qF(J,T),ue=ae<se+le,de=ue?ae-ce:ae-le,fe="".concat(k,"-nav-operations-hidden"),pe=0,he=0;function me(e){return e<pe?pe:e>he?he:e}T&&f?(pe=0,he=Math.max(0,se-de)):(pe=Math.min(0,de-se),he=0);var ge=(0,p.useRef)(null),ve=Ge((0,p.useState)(),2),be=ve[0],ye=ve[1];function xe(){ye(Date.now())}function we(){ge.current&&clearTimeout(ge.current)}!function(e,t){var n=Ge((0,p.useState)(),2),o=n[0],r=n[1],i=Ge((0,p.useState)(0),2),a=i[0],s=i[1],l=Ge((0,p.useState)(0),2),c=l[0],u=l[1],d=Ge((0,p.useState)(),2),f=d[0],h=d[1],m=(0,p.useRef)(),g=(0,p.useRef)(),v=(0,p.useRef)(null);v.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,o=t.screenY;r({x:n,y:o}),window.clearInterval(m.current)},onTouchMove:function(e){if(o){e.preventDefault();var n=e.touches[0],i=n.screenX,l=n.screenY;r({x:i,y:l});var c=i-o.x,d=l-o.y;t(c,d);var f=Date.now();s(f),u(f-a),h({x:c,y:d})}},onTouchEnd:function(){if(o&&(r(null),h(null),f)){var e=f.x/c,n=f.y/c,i=Math.abs(e),a=Math.abs(n);if(Math.max(i,a)<.1)return;var s=e,l=n;m.current=window.setInterval((function(){Math.abs(s)<.01&&Math.abs(l)<.01?window.clearInterval(m.current):t(20*(s*=oz),20*(l*=oz))}),20)}},onWheel:function(e){var n=e.deltaX,o=e.deltaY,r=0,i=Math.abs(n),a=Math.abs(o);i===a?r="x"===g.current?n:o:i>a?(r=n,g.current="x"):(r=o,g.current="y"),t(-r,-r)&&e.preventDefault()}},p.useEffect((function(){function t(e){v.current.onTouchMove(e)}function n(e){v.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!1}),e.current.addEventListener("touchstart",(function(e){v.current.onTouchStart(e)}),{passive:!1}),e.current.addEventListener("wheel",(function(e){v.current.onWheel(e)})),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(M,(function(e,t){function n(e,t){e((function(e){return me(e+t)}))}return!!ue&&(T?n(B,e):n(H,t),we(),xe(),!0)})),(0,p.useEffect)((function(){return we(),be&&(ge.current=setTimeout((function(){ye(0)}),100)),we}),[be]);var Ce=function(e,t,n,o,r,i,a){var s,l,c,u=a.tabs,d=a.tabPosition,f=a.rtl;return["top","bottom"].includes(d)?(s="width",l=f?"right":"left",c=Math.abs(n)):(s="height",l="top",c=-n),(0,p.useMemo)((function(){if(!u.length)return[0,0];for(var n=u.length,o=n,r=0;r<n;r+=1){var i=e.get(u[r].key)||iz;if(i[l]+i[s]>c+t){o=r-1;break}}for(var a=0,d=n-1;d>=0;d-=1)if((e.get(u[d].key)||iz)[l]<c){a=d+1;break}return a>=o?[0,0]:[a,o]}),[e,t,o,r,i,c,d,u.map((function(e){return e.key})).join("_"),f])}(ie,de,T?D:F,se,le,ce,$e($e({},e),{},{tabs:$})),Se=Ge(Ce,2),ke=Se[0],_e=Se[1],Oe=nl((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=ie.get(e)||{width:0,height:0,left:0,right:0,top:0};if(T){var n=D;f?t.right<D?n=t.right:t.right+t.width>D+de&&(n=t.right+t.width-de):t.left<-D?n=-t.left:t.left+t.width>-D+de&&(n=-(t.left+t.width-de)),H(0),B(me(n))}else{var o=F;t.top<-F?o=-t.top:t.top+t.height>-F+de&&(o=-(t.top+t.height-de)),B(0),H(me(o))}})),je={};"top"===b||"bottom"===b?je[f?"marginRight":"marginLeft"]=y:je.marginTop=y;var Me=$.map((function(e,t){var n=e.key;return p.createElement(WF,{id:c,prefixCls:k,key:n,tab:e,style:0===t?void 0:je,closable:e.closable,editable:g,active:n===d,renderWrapper:x,removeAriaLabel:null==v?void 0:v.removeAriaLabel,onClick:function(e){w(n,e)},onFocus:function(){Oe(n),xe(),M.current&&(f||(M.current.scrollLeft=0),M.current.scrollTop=0)}})})),Pe=function(){return re((function(){var e,t=new Map,n=null===(e=P.current)||void 0===e?void 0:e.getBoundingClientRect();return $.forEach((function(e){var o,r=e.key,i=null===(o=P.current)||void 0===o?void 0:o.querySelector('[data-node-key="'.concat(sz(r),'"]'));if(i){var a=function(e,t){var n=e.offsetWidth,o=e.offsetHeight,r=e.offsetTop,i=e.offsetLeft,a=e.getBoundingClientRect(),s=a.width,l=a.height,c=a.x,u=a.y;return Math.abs(s-n)<1?[s,l,c-t.x,u-t.y]:[n,o,i,r]}(i,n),s=Ge(a,4),l=s[0],c=s[1],u=s[2],d=s[3];t.set(r,{width:l,height:c,left:u,top:d})}})),t}))};(0,p.useEffect)((function(){Pe()}),[$.map((function(e){return e.key})).join("_")]);var Ie=rz((function(){var e=KF(_),t=KF(O),n=KF(j);K([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var o=KF(N);Z(o);var r=KF(I);ee(r);var i=KF(P);G([i[0]-o[0],i[1]-o[1]]),Pe()})),Ne=$.slice(0,ke),Te=$.slice(_e+1),Re=[].concat(Ye(Ne),Ye(Te)),Ae=ie.get(d),De=function(e){var t=e.activeTabOffset,n=e.horizontal,o=e.rtl,r=e.indicator,i=void 0===r?{}:r,a=i.size,s=i.align,l=void 0===s?"center":s,c=Ge((0,p.useState)(),2),u=c[0],d=c[1],f=(0,p.useRef)(),m=h().useCallback((function(e){return"function"==typeof a?a(e):"number"==typeof a?a:e}),[a]);function g(){na.cancel(f.current)}return(0,p.useEffect)((function(){var e={};if(t)if(n){e.width=m(t.width);var r=o?"right":"left";"start"===l&&(e[r]=t[r]),"center"===l&&(e[r]=t[r]+t.width/2,e.transform=o?"translateX(50%)":"translateX(-50%)"),"end"===l&&(e[r]=t[r]+t.width,e.transform="translateX(-100%)")}else e.height=m(t.height),"start"===l&&(e.top=t.top),"center"===l&&(e.top=t.top+t.height/2,e.transform="translateY(-50%)"),"end"===l&&(e.top=t.top+t.height,e.transform="translateY(-100%)");return g(),f.current=na((function(){d(e)})),g}),[t,n,o,l,m]),{style:u}}({activeTabOffset:Ae,horizontal:T,indicator:S,rtl:f}).style;(0,p.useEffect)((function(){Oe()}),[d,pe,he,az(Ae),az(ie),T]),(0,p.useEffect)((function(){Ie()}),[f]);var Be,Le,ze,Fe,He=!!Re.length,Ve="".concat(k,"-nav-wrap");return T?f?(Le=D>0,Be=D!==he):(Be=D<0,Le=D!==pe):(ze=F<0,Fe=F!==pe),p.createElement(LC,{onResize:Ie},p.createElement("div",{ref:ci(t,_),role:"tablist",className:oi()("".concat(k,"-nav"),s),style:l,onKeyDown:function(){xe()}},p.createElement(fz,{ref:O,position:"left",extra:m,prefixCls:k}),p.createElement(LC,{onResize:Ie},p.createElement("div",{className:oi()(Ve,Ee(Ee(Ee(Ee({},"".concat(Ve,"-ping-left"),Be),"".concat(Ve,"-ping-right"),Le),"".concat(Ve,"-ping-top"),ze),"".concat(Ve,"-ping-bottom"),Fe)),ref:M},p.createElement(LC,{onResize:Ie},p.createElement("div",{ref:P,className:"".concat(k,"-nav-list"),style:{transform:"translate(".concat(D,"px, ").concat(F,"px)"),transition:be?"none":void 0}},Me,p.createElement(uz,{ref:N,prefixCls:k,locale:v,editable:g,style:$e($e({},0===Me.length?void 0:je),{},{visibility:He?"hidden":null})}),p.createElement("div",{className:oi()("".concat(k,"-ink-bar"),Ee({},"".concat(k,"-ink-bar-animated"),u.inkBar)),style:De}))))),p.createElement(VF,hn({},e,{removeAriaLabel:null==v?void 0:v.removeAriaLabel,ref:I,prefixCls:k,tabs:Re,className:!He&&fe,tabMoving:!!be})),p.createElement(fz,{ref:j,position:"right",extra:m,prefixCls:k})))}));const GF=UF;var XF=p.forwardRef((function(e,t){var n=e.prefixCls,o=e.className,r=e.style,i=e.id,a=e.active,s=e.tabKey,l=e.children;return p.createElement("div",{id:i&&"".concat(i,"-panel-").concat(s),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(s),"aria-hidden":!a,style:r,className:oi()(n,a&&"".concat(n,"-active"),o),ref:t},l)}));const YF=XF;var ZF=["renderTabBar"],QF=["label","key"];const JF=function(e){var t=e.renderTabBar,n=di(e,ZF),o=p.useContext(ez).tabs;if(t){var r=$e($e({},n),{},{panes:o.map((function(e){var t=e.label,n=e.key,o=di(e,QF);return p.createElement(YF,hn({tab:t,key:n,tabKey:n},o))}))});return t(r,GF)}return p.createElement(GF,n)};var eH=["key","forceRender","style","className","destroyInactiveTabPane"];const tH=function(e){var t=e.id,n=e.activeKey,o=e.animated,r=e.tabPosition,i=e.destroyInactiveTabPane,a=p.useContext(ez),s=a.prefixCls,l=a.tabs,c=o.tabPane,u="".concat(s,"-tabpane");return p.createElement("div",{className:oi()("".concat(s,"-content-holder"))},p.createElement("div",{className:oi()("".concat(s,"-content"),"".concat(s,"-content-").concat(r),Ee({},"".concat(s,"-content-animated"),c))},l.map((function(e){var r=e.key,a=e.forceRender,s=e.style,l=e.className,d=e.destroyInactiveTabPane,f=di(e,eH),h=r===n;return p.createElement(va,hn({key:r,visible:h,forceRender:a,removeOnLeave:!(!i&&!d),leavedClassName:"".concat(u,"-hidden")},o.tabPaneMotion),(function(e,n){var o=e.style,i=e.className;return p.createElement(YF,hn({},f,{prefixCls:u,id:t,tabKey:r,animated:c,active:h,style:$e($e({},s),o),className:oi()(l,i),ref:n}))}))}))))};var nH=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],oH=0,rH=p.forwardRef((function(e,t){var n=e.id,o=e.prefixCls,r=void 0===o?"rc-tabs":o,i=e.className,a=e.items,s=e.direction,l=e.activeKey,c=e.defaultActiveKey,u=e.editable,d=e.animated,f=e.tabPosition,h=void 0===f?"top":f,m=e.tabBarGutter,g=e.tabBarStyle,v=e.tabBarExtraContent,b=e.locale,y=e.moreIcon,x=e.moreTransitionName,w=e.destroyInactiveTabPane,C=e.renderTabBar,S=e.onChange,E=e.onTabClick,k=e.onTabScroll,$=e.getPopupContainer,_=e.popupClassName,O=e.indicator,j=di(e,nH),M=p.useMemo((function(){return(a||[]).filter((function(e){return e&&"object"===ye(e)&&"key"in e}))}),[a]),P="rtl"===s,I=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:$e({inkBar:!0},"object"===ye(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(d),N=Ge((0,p.useState)(!1),2),T=N[0],R=N[1];(0,p.useEffect)((function(){R(zC())}),[]);var A=Ge(rl((function(){var e;return null===(e=M[0])||void 0===e?void 0:e.key}),{value:l,defaultValue:c}),2),D=A[0],B=A[1],L=Ge((0,p.useState)((function(){return M.findIndex((function(e){return e.key===D}))})),2),z=L[0],F=L[1];(0,p.useEffect)((function(){var e,t=M.findIndex((function(e){return e.key===D}));-1===t&&(t=Math.max(0,Math.min(z,M.length-1)),B(null===(e=M[t])||void 0===e?void 0:e.key)),F(t)}),[M.map((function(e){return e.key})).join("_"),D,z]);var H=Ge(rl(null,{value:n}),2),V=H[0],W=H[1];(0,p.useEffect)((function(){n||(W("rc-tabs-".concat(oH)),oH+=1)}),[]);var K={id:V,activeKey:D,animated:I,tabPosition:h,rtl:P,mobile:T},q=$e($e({},K),{},{editable:u,locale:b,moreIcon:y,moreTransitionName:x,tabBarGutter:m,onTabClick:function(e,t){null==E||E(e,t);var n=e!==D;B(e),n&&(null==S||S(e))},onTabScroll:k,extra:v,style:g,panes:null,getPopupContainer:$,popupClassName:_,indicator:O});return p.createElement(ez.Provider,{value:{tabs:M,prefixCls:r}},p.createElement("div",hn({ref:t,id:n,className:oi()(r,"".concat(r,"-").concat(h),Ee(Ee(Ee({},"".concat(r,"-mobile"),T),"".concat(r,"-editable"),u),"".concat(r,"-rtl"),P),i)},j),p.createElement(JF,hn({},q,{renderTabBar:C})),p.createElement(tH,hn({destroyInactiveTabPane:w},K,{animated:I}))))}));const iH=rH,aH={motionAppear:!1,motionEnter:!0,motionLeave:!0};const sH=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[AP(e,"slide-up"),AP(e,"slide-down")]]},lH=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:o,cardGutter:r,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:o,border:`${qt(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:qt(r)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${qt(e.borderRadiusLG)} ${qt(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${qt(e.borderRadiusLG)} ${qt(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:qt(r)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${qt(e.borderRadiusLG)} 0 0 ${qt(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${qt(e.borderRadiusLG)} ${qt(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},cH=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:o}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Ia(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${qt(o)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Pa),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${qt(e.paddingXXS)} ${qt(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},uH=e=>{const{componentCls:t,margin:n,colorBorderSecondary:o,horizontalMargin:r,verticalItemPadding:i,verticalItemMargin:a,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:r,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${qt(e.lineWidth)} ${e.lineType} ${o}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n            right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n        > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:qt(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${qt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${qt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},dH=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:o,horizontalItemPaddingSM:r,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${qt(e.borderRadius)} ${qt(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${qt(e.borderRadius)} ${qt(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${qt(e.borderRadius)} ${qt(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${qt(e.borderRadius)} 0 0 ${qt(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o}}}}}},fH=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:o,iconCls:r,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:s,itemColor:l}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},Aa(e)),"&-btn":{outline:"none",transition:"all 0.3s",[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:o},[`&${c}-active ${c}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${r}`]:{margin:0},[`${r}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:i}}}},pH=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:o,cardGutter:r,calc:i}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[o]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:qt(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:qt(e.marginXS)},marginLeft:{_skip_check_:!0,value:qt(i(e.marginXXS).mul(-1).equal())},[o]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:r},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},hH=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:o,cardGutter:r,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ia(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:o,minHeight:o,marginLeft:{_skip_check_:!0,value:r},padding:`0 ${qt(e.paddingXS)}`,background:"transparent",border:`${qt(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${qt(e.borderRadiusLG)} ${qt(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},Aa(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),fH(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},mH=hl("Tabs",(e=>{const t=Js(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${qt(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${qt(e.horizontalItemGutter)}`});return[dH(t),pH(t),uH(t),cH(t),lH(t),hH(t),sH(t)]}),(e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${1.5*e.paddingXXS}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${1.5*e.paddingXXS}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}));const gH=e=>{var t,n,o,r,i,a,s;const{type:l,className:c,rootClassName:u,size:d,onEdit:f,hideAdd:h,centered:m,addIcon:g,moreIcon:v,popupClassName:b,children:y,items:x,animated:w,style:C,indicatorSize:S,indicator:E}=e,k=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","moreIcon","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:$}=k,{direction:_,tabs:O,getPrefixCls:j,getPopupContainer:M}=p.useContext(He),P=j("tabs",$),I=Ws(P),[N,T,R]=mH(P,I);let A;"editable-card"===l&&(A={onEdit:(e,t)=>{let{key:n,event:o}=t;null==f||f("add"===e?o:n,e)},removeIcon:p.createElement(ws,null),addIcon:(null!=g?g:null==O?void 0:O.addIcon)||p.createElement(JL,null),showAdd:!0!==h});const D=j(),B=pc(d),L=function(e,t){if(e)return e;const n=hc(t).map((e=>{if(p.isValidElement(e)){const{key:t,props:n}=e,o=n||{},{tab:r}=o,i=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(o,["tab"]);return Object.assign(Object.assign({key:String(t)},i),{label:r})}return null}));return function(e){return e.filter((e=>e))}(n)}(x,y),z=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof n?n:{}),t.tabPane&&(t.tabPaneMotion=Object.assign(Object.assign({},aH),{motionName:Yl(e,"switch")})),t}(P,w),F=Object.assign(Object.assign({},null==O?void 0:O.style),C),H={align:null!==(t=null==E?void 0:E.align)&&void 0!==t?t:null===(n=null==O?void 0:O.indicator)||void 0===n?void 0:n.align,size:null!==(a=null!==(r=null!==(o=null==E?void 0:E.size)&&void 0!==o?o:S)&&void 0!==r?r:null===(i=null==O?void 0:O.indicator)||void 0===i?void 0:i.size)&&void 0!==a?a:null==O?void 0:O.indicatorSize};return N(p.createElement(iH,Object.assign({direction:_,getPopupContainer:M,moreTransitionName:`${D}-slide-up`},k,{items:L,className:oi()({[`${P}-${B}`]:B,[`${P}-card`]:["card","editable-card"].includes(l),[`${P}-editable-card`]:"editable-card"===l,[`${P}-centered`]:m},null==O?void 0:O.className,c,u,T,R,I),popupClassName:oi()(b,T,R,I),style:F,editable:A,moreIcon:null!==(s=null!=v?v:null==O?void 0:O.moreIcon)&&void 0!==s?s:p.createElement(YL,null),prefixCls:P,animated:z,indicator:H})))};gH.TabPane=()=>null;const vH=gH,bH=()=>{const{settings:e}=(0,u.useSelect)((e=>{const{hasFinishedResolution:t,getSettings:n}=e("notification-master/core"),o=n();return{isResolving:!t("getSettings"),settings:o}}),[]),{updateSetting:t,toggleProAlert:n}=(0,u.useDispatch)("notification-master/core"),o=eE.postTypes,r=eE.taxonomies,i=eE.commentTypes;return(0,a.jsxs)(a.Fragment,{children:[!eE.isPro&&(0,a.jsx)(lC.Ribbon,{text:(0,l.__)("Pro","notification-master"),children:(0,a.jsxs)("div",{className:oi()("notification-master__settings--item"),onClick:()=>n(!0),children:[(0,a.jsxs)("div",{className:"notification-master__settings--item--title",children:[(0,a.jsx)(Yk.Title,{level:5,children:(0,l.__)("WooCommerce","notification-master")}),(0,a.jsx)(Yk.Text,{children:(0,l.__)("If enabled, will be able to add notifications when the WooCommerce product, review, or order changes.","notification-master")})]}),(0,a.jsx)("div",{className:"notification-master__settings--item--switch",children:(0,a.jsx)(jI,{title:(0,l.__)("Enable","notification-master"),checkedChildren:(0,l.__)("On","notification-master"),unCheckedChildren:(0,l.__)("Off","notification-master"),checked:!1,onChange:()=>{n(!0)}})})]})}),eE.isPro&&(0,a.jsxs)("div",{className:oi()("notification-master__settings--item"),children:[(0,a.jsxs)("div",{className:"notification-master__settings--item--title",children:[(0,a.jsx)(Yk.Title,{level:5,children:(0,l.__)("WooCommerce","notification-master")}),(0,a.jsx)(Yk.Text,{children:(0,l.__)("If enabled, will be able to add notifications when the WooCommerce product, review, or order changes.","notification-master")})]}),(0,a.jsx)("div",{className:"notification-master__settings--item--switch",children:(0,a.jsx)(jI,{title:(0,l.__)("Enable","notification-master"),checkedChildren:(0,l.__)("On","notification-master"),unCheckedChildren:(0,l.__)("Off","notification-master"),checked:e.woocommerce_change_trigger||!0,onChange:e=>{t("woocommerce_change_trigger",e)}})})]}),(0,a.jsxs)("div",{className:oi()("notification-master__settings--item",{"notification-master__settings--item--has-subitem":e.post_status_change_trigger}),children:[(0,a.jsxs)("div",{className:"notification-master__settings--item--title",children:[(0,a.jsx)(Yk.Title,{level:5,children:(0,l.__)("Post status change","notification-master")}),(0,a.jsx)(Yk.Text,{children:(0,l.__)("If enabled, will be able to add notifications when the post status changes.","notification-master")})]}),(0,a.jsx)("div",{className:"notification-master__settings--item--switch",children:(0,a.jsx)(jI,{title:(0,l.__)("Enable","notification-master"),checkedChildren:(0,l.__)("On","notification-master"),unCheckedChildren:(0,l.__)("Off","notification-master"),checked:e.post_status_change_trigger,onChange:e=>{t("post_status_change_trigger",e)}})})]}),e.post_status_change_trigger&&(0,a.jsxs)("div",{className:"notification-master__settings--item notification-master__settings--item--block",children:[(0,a.jsxs)("div",{className:"notification-master__settings--item--title",children:[(0,a.jsx)(Yk.Title,{level:5,children:(0,l.__)("Post types","notification-master")}),(0,a.jsx)(Yk.Text,{children:(0,l.__)("Select the post types for which you want to send notifications when the post status changes.","notification-master")})]}),(0,a.jsx)("div",{className:"notification-master__settings--item--select",children:(0,a.jsx)(bI,{mode:"multiple",size:"large",placeholder:(0,l.__)("Select post types","notification-master"),options:o,value:e.post_types,onChange:e=>{t("post_types",e)},style:{width:"100%"}})})]}),(0,a.jsxs)("div",{className:oi()("notification-master__settings--item",{"notification-master__settings--item--has-subitem":e.taxonomy_term_change_trigger}),children:[(0,a.jsxs)("div",{className:"notification-master__settings--item--title",children:[(0,a.jsx)(Yk.Title,{level:5,children:(0,l.__)("Taxonomy term change","notification-master")}),(0,a.jsx)(Yk.Text,{children:(0,l.__)("If enabled, will be able to add notifications when the taxonomy term changes.","notification-master")})]}),(0,a.jsx)("div",{className:"notification-master__settings--item--switch",children:(0,a.jsx)(jI,{title:(0,l.__)("Enable","notification-master"),checkedChildren:(0,l.__)("On","notification-master"),unCheckedChildren:(0,l.__)("Off","notification-master"),checked:e.taxonomy_term_change_trigger,onChange:e=>{t("taxonomy_term_change_trigger",e)}})})]}),e.taxonomy_term_change_trigger&&(0,a.jsxs)("div",{className:"notification-master__settings--item notification-master__settings--item--block",children:[(0,a.jsxs)("div",{className:"notification-master__settings--item--title",children:[(0,a.jsx)(Yk.Title,{level:5,children:(0,l.__)("Taxonomies","notification-master")}),(0,a.jsx)(Yk.Text,{children:(0,l.__)("Select the taxonomies for which you want to send notifications when the taxonomy term changes.","notification-master")})]}),(0,a.jsx)("div",{className:"notification-master__settings--item--select",children:(0,a.jsx)(bI,{mode:"multiple",size:"large",placeholder:(0,l.__)("Select taxonomies","notification-master"),options:r,value:e.taxonomies,onChange:e=>{t("taxonomies",e)},style:{width:"100%"}})})]}),(0,a.jsxs)("div",{className:oi()("notification-master__settings--item",{"notification-master__settings--item--has-subitem":e.comment_change_trigger}),children:[(0,a.jsxs)("div",{className:"notification-master__settings--item--title",children:[(0,a.jsx)(Yk.Title,{level:5,children:(0,l.__)("Comment change","notification-master")}),(0,a.jsx)(Yk.Text,{children:(0,l.__)("If enabled, will be able to add notifications when the comment status changes.","notification-master")})]}),(0,a.jsx)("div",{className:"notification-master__settings--item--switch",children:(0,a.jsx)(jI,{title:(0,l.__)("Enable","notification-master"),checkedChildren:(0,l.__)("On","notification-master"),unCheckedChildren:(0,l.__)("Off","notification-master"),checked:e.comment_change_trigger,onChange:e=>{t("comment_change_trigger",e)}})})]}),e.comment_change_trigger&&(0,a.jsxs)("div",{className:"notification-master__settings--item notification-master__settings--item--block",children:[(0,a.jsxs)("div",{className:"notification-master__settings--item--title",children:[(0,a.jsx)(Yk.Title,{level:5,children:(0,l.__)("Comment types","notification-master")}),(0,a.jsx)(Yk.Text,{children:(0,l.__)("Select the comment types for which you want to send notifications when the comment status changes.","notification-master")})]}),(0,a.jsx)("div",{className:"notification-master__settings--item--select",children:(0,a.jsx)(bI,{mode:"multiple",size:"large",placeholder:(0,l.__)("Select comment types","notification-master"),options:i,value:e.comment_types,onChange:e=>{t("comment_types",e)},style:{width:"100%"}})})]}),(0,a.jsxs)("div",{className:oi()("notification-master__settings--item"),children:[(0,a.jsxs)("div",{className:"notification-master__settings--item--title",children:[(0,a.jsx)(Yk.Title,{level:5,children:(0,l.__)("Media change","notification-master")}),(0,a.jsx)(Yk.Text,{children:(0,l.__)("If enabled, will be able to add notifications when the media changes.","notification-master")})]}),(0,a.jsx)("div",{className:"notification-master__settings--item--switch",children:(0,a.jsx)(jI,{title:(0,l.__)("Enable","notification-master"),checkedChildren:(0,l.__)("On","notification-master"),unCheckedChildren:(0,l.__)("Off","notification-master"),checked:e.media_change_trigger,onChange:e=>{t("media_change_trigger",e)}})})]}),(0,a.jsxs)("div",{className:oi()("notification-master__settings--item"),children:[(0,a.jsxs)("div",{className:"notification-master__settings--item--title",children:[(0,a.jsx)(Yk.Title,{level:5,children:(0,l.__)("User change","notification-master")}),(0,a.jsx)(Yk.Text,{children:(0,l.__)("If enabled, will be able to add notifications when the user changes.","notification-master")})]}),(0,a.jsx)("div",{className:"notification-master__settings--item--switch",children:(0,a.jsx)(jI,{title:(0,l.__)("Enable","notification-master"),checkedChildren:(0,l.__)("On","notification-master"),unCheckedChildren:(0,l.__)("Off","notification-master"),checked:e.user_change_trigger,onChange:e=>{t("user_change_trigger",e)}})})]}),(0,a.jsxs)("div",{className:oi()("notification-master__settings--item"),children:[(0,a.jsxs)("div",{className:"notification-master__settings--item--title",children:[(0,a.jsx)(Yk.Title,{level:5,children:(0,l.__)("Theme change","notification-master")}),(0,a.jsx)(Yk.Text,{children:(0,l.__)("If enabled, will be able to add notifications when the theme changes.","notification-master")})]}),(0,a.jsx)("div",{className:"notification-master__settings--item--switch",children:(0,a.jsx)(jI,{title:(0,l.__)("Enable","notification-master"),checkedChildren:(0,l.__)("On","notification-master"),unCheckedChildren:(0,l.__)("Off","notification-master"),checked:e.theme_change_trigger,onChange:e=>{t("theme_change_trigger",e)}})})]}),(0,a.jsxs)("div",{className:oi()("notification-master__settings--item"),children:[(0,a.jsxs)("div",{className:"notification-master__settings--item--title",children:[(0,a.jsx)(Yk.Title,{level:5,children:(0,l.__)("Plugin change","notification-master")}),(0,a.jsx)(Yk.Text,{children:(0,l.__)("If enabled, will be able to add notifications when the plugin changes.","notification-master")})]}),(0,a.jsx)("div",{className:"notification-master__settings--item--switch",children:(0,a.jsx)(jI,{title:(0,l.__)("Enable","notification-master"),checkedChildren:(0,l.__)("On","notification-master"),unCheckedChildren:(0,l.__)("Off","notification-master"),checked:e.plugin_change_trigger,onChange:e=>{t("plugin_change_trigger",e)}})})]}),(0,a.jsxs)("div",{className:oi()("notification-master__settings--item"),children:[(0,a.jsx)("div",{className:"notification-master__settings--item--title",children:(0,a.jsx)(Yk.Title,{level:5,children:(0,l.__)("Privacy","notification-master")})}),(0,a.jsx)("div",{className:"notification-master__settings--item--switch",children:(0,a.jsx)(jI,{title:(0,l.__)("Enable","notification-master"),checkedChildren:(0,l.__)("On","notification-master"),unCheckedChildren:(0,l.__)("Off","notification-master"),checked:e.privacy_trigger,onChange:e=>{t("privacy_trigger",e)}})})]})]})},yH=()=>{const{settings:e}=(0,u.useSelect)((e=>{const{hasFinishedResolution:t,getSettings:n}=e("notification-master/core"),o=n();return{isResolving:!t("getSettings"),settings:o}}),[]),{updateSetting:t}=(0,u.useDispatch)("notification-master/core");return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"notification-master__settings--item",children:[(0,a.jsxs)("div",{className:"notification-master__settings--item--title",children:[(0,a.jsx)(Yk.Title,{level:5,children:(0,l.__)("Process notifications in the background","notification-master")}),(0,a.jsx)(Yk.Text,{children:(0,l.__)("If enabled, notifications will be processed in the background. This will improve the performance of your website.","notification-master")})]}),(0,a.jsx)("div",{className:"notification-master__settings--item--switch",children:(0,a.jsx)(jI,{title:(0,l.__)("Enable","notification-master"),checkedChildren:(0,l.__)("On","notification-master"),unCheckedChildren:(0,l.__)("Off","notification-master"),checked:e.enable_background_processing,onChange:e=>{t("enable_background_processing",e)}})})]}),(0,a.jsxs)("div",{className:oi()("notification-master__settings--item"),children:[(0,a.jsxs)("div",{className:"notification-master__settings--item--title",children:[(0,a.jsx)(Yk.Title,{level:5,children:(0,l.__)("Delete Notification Logs Older Than: ","notification-master")}),(0,a.jsx)(Yk.Text,{children:
     1(()=>{var e,t={75:(e,t,n)=>{"use strict";var o=n(453),r=n(487),i=r(o("String.prototype.indexOf"));e.exports=function(e,t){var n=o(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?r(n):n}},487:(e,t,n)=>{"use strict";var o=n(743),r=n(453),i=n(897),a=n(675),s=r("%Function.prototype.apply%"),l=r("%Function.prototype.call%"),c=r("%Reflect.apply%",!0)||o.call(l,s),u=n(655),d=r("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new a("a function is required");var t=c(o,l,arguments);return i(t,1+d(0,e.length-(arguments.length-1)),!0)};var f=function(){return c(o,s,arguments)};u?u(e.exports,"apply",{value:f}):e.exports.apply=f},965:(e,t,n)=>{"use strict";var o=n(426),r={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,a,s,l,c,u=!1;t||(t={}),n=t.debug||!1;try{if(a=o(),s=document.createRange(),l=document.getSelection(),(c=document.createElement("span")).textContent=e,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(o){if(o.stopPropagation(),t.format)if(o.preventDefault(),void 0===o.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=r[t.format]||r.default;window.clipboardData.setData(i,e)}else o.clipboardData.clearData(),o.clipboardData.setData(t.format,e);t.onCopy&&(o.preventDefault(),t.onCopy(o.clipboardData))})),document.body.appendChild(c),s.selectNodeContents(c),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(o){n&&console.error("unable to copy using execCommand: ",o),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(o){n&&console.error("unable to copy using clipboardData: ",o),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),c&&document.body.removeChild(c),a()}return u}},41:(e,t,n)=>{"use strict";var o=n(655),r=n(68),i=n(675),a=n(795);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new i("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],d=!!a&&a(e,t);if(o)o(e,t,{configurable:null===c&&d?d.configurable:!c,enumerable:null===s&&d?d.enumerable:!s,value:n,writable:null===l&&d?d.writable:!l});else{if(!u&&(s||l||c))throw new r("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},655:(e,t,n)=>{"use strict";var o=n(453)("%Object.defineProperty%",!0)||!1;if(o)try{o({},"a",{value:1})}catch(e){o=!1}e.exports=o},237:e=>{"use strict";e.exports=EvalError},383:e=>{"use strict";e.exports=Error},290:e=>{"use strict";e.exports=RangeError},538:e=>{"use strict";e.exports=ReferenceError},68:e=>{"use strict";e.exports=SyntaxError},675:e=>{"use strict";e.exports=TypeError},345:e=>{"use strict";e.exports=URIError},353:e=>{"use strict";var t=Object.prototype.toString,n=Math.max,o=function(e,t){for(var n=[],o=0;o<e.length;o+=1)n[o]=e[o];for(var r=0;r<t.length;r+=1)n[r+e.length]=t[r];return n};e.exports=function(e){var r=this;if("function"!=typeof r||"[object Function]"!==t.apply(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var i,a=function(e,t){for(var n=[],o=1,r=0;o<e.length;o+=1,r+=1)n[r]=e[o];return n}(arguments),s=n(0,r.length-a.length),l=[],c=0;c<s;c++)l[c]="$"+c;if(i=Function("binder","return function ("+function(e,t){for(var n="",o=0;o<e.length;o+=1)n+=e[o],o+1<e.length&&(n+=",");return n}(l)+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var t=r.apply(this,o(a,arguments));return Object(t)===t?t:this}return r.apply(e,o(a,arguments))})),r.prototype){var u=function(){};u.prototype=r.prototype,i.prototype=new u,u.prototype=null}return i}},743:(e,t,n)=>{"use strict";var o=n(353);e.exports=Function.prototype.bind||o},453:(e,t,n)=>{"use strict";var o,r=n(383),i=n(237),a=n(290),s=n(538),l=n(68),c=n(675),u=n(345),d=Function,f=function(e){try{return d('"use strict"; return ('+e+").constructor;")()}catch(e){}},p=Object.getOwnPropertyDescriptor;if(p)try{p({},"")}catch(e){p=null}var h=function(){throw new c},m=p?function(){try{return h}catch(e){try{return p(arguments,"callee").get}catch(e){return h}}}():h,g=n(39)(),v=n(24)(),b=Object.getPrototypeOf||(v?function(e){return e.__proto__}:null),y={},x="undefined"!=typeof Uint8Array&&b?b(Uint8Array):o,w={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?o:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?o:ArrayBuffer,"%ArrayIteratorPrototype%":g&&b?b([][Symbol.iterator]()):o,"%AsyncFromSyncIteratorPrototype%":o,"%AsyncFunction%":y,"%AsyncGenerator%":y,"%AsyncGeneratorFunction%":y,"%AsyncIteratorPrototype%":y,"%Atomics%":"undefined"==typeof Atomics?o:Atomics,"%BigInt%":"undefined"==typeof BigInt?o:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?o:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?o:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?o:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"==typeof Float32Array?o:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?o:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?o:FinalizationRegistry,"%Function%":d,"%GeneratorFunction%":y,"%Int8Array%":"undefined"==typeof Int8Array?o:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?o:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?o:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g&&b?b(b([][Symbol.iterator]())):o,"%JSON%":"object"==typeof JSON?JSON:o,"%Map%":"undefined"==typeof Map?o:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&g&&b?b((new Map)[Symbol.iterator]()):o,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?o:Promise,"%Proxy%":"undefined"==typeof Proxy?o:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":"undefined"==typeof Reflect?o:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?o:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&g&&b?b((new Set)[Symbol.iterator]()):o,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?o:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&b?b(""[Symbol.iterator]()):o,"%Symbol%":g?Symbol:o,"%SyntaxError%":l,"%ThrowTypeError%":m,"%TypedArray%":x,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?o:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?o:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?o:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?o:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"==typeof WeakMap?o:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?o:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?o:WeakSet};if(b)try{null.error}catch(e){var C=b(b(e));w["%Error.prototype%"]=C}var S=function e(t){var n;if("%AsyncFunction%"===t)n=f("async function () {}");else if("%GeneratorFunction%"===t)n=f("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=f("async function* () {}");else if("%AsyncGenerator%"===t){var o=e("%AsyncGeneratorFunction%");o&&(n=o.prototype)}else if("%AsyncIteratorPrototype%"===t){var r=e("%AsyncGenerator%");r&&b&&(n=b(r.prototype))}return w[t]=n,n},E={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},k=n(743),$=n(957),_=k.call(Function.call,Array.prototype.concat),O=k.call(Function.apply,Array.prototype.splice),j=k.call(Function.call,String.prototype.replace),M=k.call(Function.call,String.prototype.slice),P=k.call(Function.call,RegExp.prototype.exec),I=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,N=/\\(\\)?/g,T=function(e,t){var n,o=e;if($(E,o)&&(o="%"+(n=E[o])[0]+"%"),$(w,o)){var r=w[o];if(r===y&&(r=S(o)),void 0===r&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:o,value:r}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===P(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=M(e,0,1),n=M(e,-1);if("%"===t&&"%"!==n)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var o=[];return j(e,I,(function(e,t,n,r){o[o.length]=n?j(r,N,"$1"):t||e})),o}(e),o=n.length>0?n[0]:"",r=T("%"+o+"%",t),i=r.name,a=r.value,s=!1,u=r.alias;u&&(o=u[0],O(n,_([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var h=n[d],m=M(h,0,1),g=M(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===g||"'"===g||"`"===g)&&m!==g)throw new l("property names with quotes must have matching quotes");if("constructor"!==h&&f||(s=!0),$(w,i="%"+(o+="."+h)+"%"))a=w[i];else if(null!=a){if(!(h in a)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(p&&d+1>=n.length){var v=p(a,h);a=(f=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:a[h]}else f=$(a,h),a=a[h];f&&!s&&(w[i]=a)}}return a}},795:(e,t,n)=>{"use strict";var o=n(453)("%Object.getOwnPropertyDescriptor%",!0);if(o)try{o([],"length")}catch(e){o=null}e.exports=o},592:(e,t,n)=>{"use strict";var o=n(655),r=function(){return!!o};r.hasArrayLengthDefineBug=function(){if(!o)return null;try{return 1!==o([],"length",{value:1}).length}catch(e){return!0}},e.exports=r},24:e=>{"use strict";var t={__proto__:null,foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!(t instanceof n)}},39:(e,t,n)=>{"use strict";var o="undefined"!=typeof Symbol&&Symbol,r=n(333);e.exports=function(){return"function"==typeof o&&"function"==typeof Symbol&&"symbol"==typeof o("foo")&&"symbol"==typeof Symbol("bar")&&r()}},333:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var r=Object.getOwnPropertyDescriptor(e,t);if(42!==r.value||!0!==r.enumerable)return!1}return!0}},957:(e,t,n)=>{"use strict";var o=Function.prototype.call,r=Object.prototype.hasOwnProperty,i=n(743);e.exports=i.call(o,r)},146:(e,t,n)=>{"use strict";var o=n(404),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return o.isMemo(e)?a:s[e.$$typeof]||r}s[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[o.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,o){if("string"!=typeof n){if(h){var r=p(n);r&&r!==h&&e(t,r,o)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),g=0;g<a.length;++g){var v=a[g];if(!(i[v]||o&&o[v]||m&&m[v]||s&&s[v])){var b=f(n,v);try{c(t,v,b)}catch(e){}}}}return t}},72:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,o=n?Symbol.for("react.element"):60103,r=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case u:case d:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case g:case m:case l:return e;default:return t}}case r:return t}}}function C(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=o,t.ForwardRef=f,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=r,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return C(e)||w(e)===u},t.isConcurrentMode=C,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===r},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===b||e.$$typeof===y||e.$$typeof===x||e.$$typeof===v)},t.typeOf=w},404:(e,t,n)=>{"use strict";e.exports=n(72)},859:(e,t,n)=>{var o="function"==typeof Map&&Map.prototype,r=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=o&&r&&"function"==typeof r.get?r.get:null,a=o&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&l&&"function"==typeof l.get?l.get:null,u=s&&Set.prototype.forEach,d="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,m=Object.prototype.toString,g=Function.prototype.toString,v=String.prototype.match,b=String.prototype.slice,y=String.prototype.replace,x=String.prototype.toUpperCase,w=String.prototype.toLowerCase,C=RegExp.prototype.test,S=Array.prototype.concat,E=Array.prototype.join,k=Array.prototype.slice,$=Math.floor,_="function"==typeof BigInt?BigInt.prototype.valueOf:null,O=Object.getOwnPropertySymbols,j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,M="function"==typeof Symbol&&"object"==typeof Symbol.iterator,P="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,I=Object.prototype.propertyIsEnumerable,N=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function T(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||C.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var o=e<0?-$(-e):$(e);if(o!==e){var r=String(o),i=b.call(t,r.length+1);return y.call(r,n,"$&_")+"."+y.call(y.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return y.call(t,n,"$&_")}var R=n(634),A=R.custom,D=H(A)?A:null;function B(e,t,n){var o="double"===(n.quoteStyle||t)?'"':"'";return o+e+o}function L(e){return y.call(String(e),/"/g,"&quot;")}function z(e){return!("[object Array]"!==K(e)||P&&"object"==typeof e&&P in e)}function F(e){return!("[object RegExp]"!==K(e)||P&&"object"==typeof e&&P in e)}function H(e){if(M)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!j)return!1;try{return j.call(e),!0}catch(e){}return!1}e.exports=function e(t,o,r,s){var l=o||{};if(W(l,"quoteStyle")&&"single"!==l.quoteStyle&&"double"!==l.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(W(l,"maxStringLength")&&("number"==typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!W(l,"customInspect")||l.customInspect;if("boolean"!=typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(W(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(W(l,"numericSeparator")&&"boolean"!=typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var x=l.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return U(t,l);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var C=String(t);return x?T(t,C):C}if("bigint"==typeof t){var $=String(t)+"n";return x?T(t,$):$}var O=void 0===l.depth?5:l.depth;if(void 0===r&&(r=0),r>=O&&O>0&&"object"==typeof t)return z(t)?"[Array]":"[Object]";var A,V=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=E.call(Array(e.indent+1)," ")}return{base:n,prev:E.call(Array(t+1),n)}}(l,r);if(void 0===s)s=[];else if(q(s,t)>=0)return"[Circular]";function G(t,n,o){if(n&&(s=k.call(s)).push(n),o){var i={depth:l.depth};return W(l,"quoteStyle")&&(i.quoteStyle=l.quoteStyle),e(t,i,r+1,s)}return e(t,l,r+1,s)}if("function"==typeof t&&!F(t)){var ee=function(e){if(e.name)return e.name;var t=v.call(g.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),te=J(t,G);return"[Function"+(ee?": "+ee:" (anonymous)")+"]"+(te.length>0?" { "+E.call(te,", ")+" }":"")}if(H(t)){var ne=M?y.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):j.call(t);return"object"!=typeof t||M?ne:X(ne)}if((A=t)&&"object"==typeof A&&("undefined"!=typeof HTMLElement&&A instanceof HTMLElement||"string"==typeof A.nodeName&&"function"==typeof A.getAttribute)){for(var oe="<"+w.call(String(t.nodeName)),re=t.attributes||[],ie=0;ie<re.length;ie++)oe+=" "+re[ie].name+"="+B(L(re[ie].value),"double",l);return oe+=">",t.childNodes&&t.childNodes.length&&(oe+="..."),oe+"</"+w.call(String(t.nodeName))+">"}if(z(t)){if(0===t.length)return"[]";var ae=J(t,G);return V&&!function(e){for(var t=0;t<e.length;t++)if(q(e[t],"\n")>=0)return!1;return!0}(ae)?"["+Q(ae,V)+"]":"[ "+E.call(ae,", ")+" ]"}if(function(e){return!("[object Error]"!==K(e)||P&&"object"==typeof e&&P in e)}(t)){var se=J(t,G);return"cause"in Error.prototype||!("cause"in t)||I.call(t,"cause")?0===se.length?"["+String(t)+"]":"{ ["+String(t)+"] "+E.call(se,", ")+" }":"{ ["+String(t)+"] "+E.call(S.call("[cause]: "+G(t.cause),se),", ")+" }"}if("object"==typeof t&&m){if(D&&"function"==typeof t[D]&&R)return R(t,{depth:O-r});if("symbol"!==m&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var le=[];return a&&a.call(t,(function(e,n){le.push(G(n,t,!0)+" => "+G(e,t))})),Z("Map",i.call(t),le,V)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ce=[];return u&&u.call(t,(function(e){ce.push(G(e,t))})),Z("Set",c.call(t),ce,V)}if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Y("WeakMap");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Y("WeakSet");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{return p.call(e),!0}catch(e){}return!1}(t))return Y("WeakRef");if(function(e){return!("[object Number]"!==K(e)||P&&"object"==typeof e&&P in e)}(t))return X(G(Number(t)));if(function(e){if(!e||"object"!=typeof e||!_)return!1;try{return _.call(e),!0}catch(e){}return!1}(t))return X(G(_.call(t)));if(function(e){return!("[object Boolean]"!==K(e)||P&&"object"==typeof e&&P in e)}(t))return X(h.call(t));if(function(e){return!("[object String]"!==K(e)||P&&"object"==typeof e&&P in e)}(t))return X(G(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if(t===n.g)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==K(e)||P&&"object"==typeof e&&P in e)}(t)&&!F(t)){var ue=J(t,G),de=N?N(t)===Object.prototype:t instanceof Object||t.constructor===Object,fe=t instanceof Object?"":"null prototype",pe=!de&&P&&Object(t)===t&&P in t?b.call(K(t),8,-1):fe?"Object":"",he=(de||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(pe||fe?"["+E.call(S.call([],pe||[],fe||[]),": ")+"] ":"");return 0===ue.length?he+"{}":V?he+"{"+Q(ue,V)+"}":he+"{ "+E.call(ue,", ")+" }"}return String(t)};var V=Object.prototype.hasOwnProperty||function(e){return e in this};function W(e,t){return V.call(e,t)}function K(e){return m.call(e)}function q(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1}function U(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,o="... "+n+" more character"+(n>1?"s":"");return U(b.call(e,0,t.maxStringLength),t)+o}return B(y.call(y.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,G),"single",t)}function G(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+x.call(t.toString(16))}function X(e){return"Object("+e+")"}function Y(e){return e+" { ? }"}function Z(e,t,n,o){return e+" ("+t+") {"+(o?Q(n,o):E.call(n,", "))+"}"}function Q(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+E.call(e,","+n)+"\n"+t.prev}function J(e,t){var n=z(e),o=[];if(n){o.length=e.length;for(var r=0;r<e.length;r++)o[r]=W(e,r)?t(e[r],e):""}var i,a="function"==typeof O?O(e):[];if(M){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var l in e)W(e,l)&&(n&&String(Number(l))===l&&l<e.length||M&&i["$"+l]instanceof Symbol||(C.call(/[^\w$]/,l)?o.push(t(l,e)+": "+t(e[l],e)):o.push(l+": "+t(e[l],e))));if("function"==typeof O)for(var c=0;c<a.length;c++)I.call(e,a[c])&&o.push("["+t(a[c])+"]: "+t(e[a[c]],e));return o}},765:e=>{"use strict";var t=String.prototype.replace,n=/%20/g,o="RFC3986";e.exports={default:o,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:o}},373:(e,t,n)=>{"use strict";var o=n(636),r=n(642),i=n(765);e.exports={formats:i,parse:r,stringify:o}},642:(e,t,n)=>{"use strict";var o=n(339),r=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:o.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t,n,o){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(i),c=s?i.slice(0,s.index):i,u=[];if(c){if(!n.plainObjects&&r.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}for(var d=0;n.depth>0&&null!==(s=a.exec(i))&&d<n.depth;){if(d+=1,!n.plainObjects&&r.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(s[1])}return s&&u.push("["+i.slice(s.index)+"]"),function(e,t,n,o){for(var r=o?t:l(t,n),i=e.length-1;i>=0;--i){var a,s=e[i];if("[]"===s&&n.parseArrays)a=[].concat(r);else{a=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(c,10);n.parseArrays||""!==c?!isNaN(u)&&s!==c&&String(u)===c&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(a=[])[u]=r:"__proto__"!==c&&(a[c]=r):a={0:r}}r=a}return r}(u,t,n,o)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||o.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var n,c={__proto__:null},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,d=t.parameterLimit===1/0?void 0:t.parameterLimit,f=u.split(t.delimiter,d),p=-1,h=t.charset;if(t.charsetSentinel)for(n=0;n<f.length;++n)0===f[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[n]?h="utf-8":"utf8=%26%2310003%3B"===f[n]&&(h="iso-8859-1"),p=n,n=f.length);for(n=0;n<f.length;++n)if(n!==p){var m,g,v=f[n],b=v.indexOf("]="),y=-1===b?v.indexOf("="):b+1;-1===y?(m=t.decoder(v,a.decoder,h,"key"),g=t.strictNullHandling?null:""):(m=t.decoder(v.slice(0,y),a.decoder,h,"key"),g=o.maybeMap(l(v.slice(y+1),t),(function(e){return t.decoder(e,a.decoder,h,"value")}))),g&&t.interpretNumericEntities&&"iso-8859-1"===h&&(g=s(g)),v.indexOf("[]=")>-1&&(g=i(g)?[g]:g),r.call(c,m)?c[m]=o.combine(c[m],g):c[m]=g}return c}(e,n):e,d=n.plainObjects?Object.create(null):{},f=Object.keys(u),p=0;p<f.length;++p){var h=f[p],m=c(h,u[h],n,"string"==typeof e);d=o.merge(d,m,n)}return!0===n.allowSparse?d:o.compact(d)}},636:(e,t,n)=>{"use strict";var o=n(920),r=n(339),i=n(765),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,l(t)?t:[t])},d=Date.prototype.toISOString,f=i.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:f,formatter:i.formatters[f],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},h={},m=function e(t,n,i,a,s,c,d,f,m,g,v,b,y,x,w,C){for(var S,E=t,k=C,$=0,_=!1;void 0!==(k=k.get(h))&&!_;){var O=k.get(t);if($+=1,void 0!==O){if(O===$)throw new RangeError("Cyclic object value");_=!0}void 0===k.get(h)&&($=0)}if("function"==typeof f?E=f(n,E):E instanceof Date?E=v(E):"comma"===i&&l(E)&&(E=r.maybeMap(E,(function(e){return e instanceof Date?v(e):e}))),null===E){if(s)return d&&!x?d(n,p.encoder,w,"key",b):n;E=""}if("string"==typeof(S=E)||"number"==typeof S||"boolean"==typeof S||"symbol"==typeof S||"bigint"==typeof S||r.isBuffer(E))return d?[y(x?n:d(n,p.encoder,w,"key",b))+"="+y(d(E,p.encoder,w,"value",b))]:[y(n)+"="+y(String(E))];var j,M=[];if(void 0===E)return M;if("comma"===i&&l(E))x&&d&&(E=r.maybeMap(E,d)),j=[{value:E.length>0?E.join(",")||null:void 0}];else if(l(f))j=f;else{var P=Object.keys(E);j=m?P.sort(m):P}for(var I=a&&l(E)&&1===E.length?n+"[]":n,N=0;N<j.length;++N){var T=j[N],R="object"==typeof T&&void 0!==T.value?T.value:E[T];if(!c||null!==R){var A=l(E)?"function"==typeof i?i(I,T):I:I+(g?"."+T:"["+T+"]");C.set(t,$);var D=o();D.set(h,C),u(M,e(R,A,i,a,s,c,"comma"===i&&x&&l(E)?null:d,f,m,g,v,b,y,x,w,D))}}return M};e.exports=function(e,t){var n,r=e,c=function(e){if(!e)return p;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if(void 0!==e.format){if(!a.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o=i.formatters[n],r=p.filter;return("function"==typeof e.filter||l(e.filter))&&(r=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:void 0===e.allowDots?p.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,delimiter:void 0===e.delimiter?p.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:p.encode,encoder:"function"==typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:r,format:n,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}}(t);"function"==typeof c.filter?r=(0,c.filter)("",r):l(c.filter)&&(n=c.filter);var d,f=[];if("object"!=typeof r||null===r)return"";d=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var h=s[d];if(t&&"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var g="comma"===h&&t&&t.commaRoundTrip;n||(n=Object.keys(r)),c.sort&&n.sort(c.sort);for(var v=o(),b=0;b<n.length;++b){var y=n[b];c.skipNulls&&null===r[y]||u(f,m(r[y],y,h,g,c.strictNullHandling,c.skipNulls,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,v))}var x=f.join(c.delimiter),w=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?w+="utf8=%26%2310003%3B&":w+="utf8=%E2%9C%93&"),x.length>0?w+x:""}},339:(e,t,n)=>{"use strict";var o=n(765),r=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},o=0;o<e.length;++o)void 0!==e[o]&&(n[o]=e[o]);return n};e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],o=0;o<t.length;++o)for(var r=t[o],a=r.obj[r.prop],s=Object.keys(a),l=0;l<s.length;++l){var c=s[l],u=a[c];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:a,prop:c}),n.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var o=[],r=0;r<n.length;++r)void 0!==n[r]&&o.push(n[r]);t.obj[t.prop]=o}}}(t),e},decode:function(e,t,n){var o=e.replace(/\+/g," ");if("iso-8859-1"===n)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(e){return o}},encode:function(e,t,n,r,i){if(0===e.length)return e;var s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var l="",c=0;c<s.length;++c){var u=s.charCodeAt(c);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||i===o.RFC1738&&(40===u||41===u)?l+=s.charAt(c):u<128?l+=a[u]:u<2048?l+=a[192|u>>6]+a[128|63&u]:u<55296||u>=57344?l+=a[224|u>>12]+a[128|u>>6&63]+a[128|63&u]:(c+=1,u=65536+((1023&u)<<10|1023&s.charCodeAt(c)),l+=a[240|u>>18]+a[128|u>>12&63]+a[128|u>>6&63]+a[128|63&u])}return l},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var n=[],o=0;o<e.length;o+=1)n.push(t(e[o]));return n}return t(e)},merge:function e(t,n,o){if(!n)return t;if("object"!=typeof n){if(i(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(o&&(o.plainObjects||o.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return i(t)&&!i(n)&&(a=s(t,o)),i(t)&&i(n)?(n.forEach((function(n,i){if(r.call(t,i)){var a=t[i];a&&"object"==typeof a&&n&&"object"==typeof n?t[i]=e(a,n,o):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var a=n[i];return r.call(t,i)?t[i]=e(t[i],a,o):t[i]=a,t}),a)}}},799:(e,t)=>{"use strict";var n=Symbol.for("react.element"),o=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy");Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case r:case a:case i:case d:case f:return e;default:switch(e=e&&e.$$typeof){case c:case l:case u:case h:case p:case s:return e;default:return t}}case o:return t}}}Symbol.for("react.module.reference"),t.ForwardRef=u,t.isFragment=function(e){return m(e)===r},t.isMemo=function(e){return m(e)===p}},363:(e,t,n)=>{"use strict";e.exports=n(799)},901:(e,t,n)=>{var o=n(246),r=n(720),i=n(609),a=n(997);function s(e){return e&&e.__esModule?e.default:e}function l(e,t,n,o){Object.defineProperty(e,t,{get:n,set:o,enumerable:!0,configurable:!0})}function c(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function u(e){e.forEach((e=>c(e.element)))}function d(e){e.forEach((e=>{!function(e,t,n){const o=e.children[n]||null;e.insertBefore(t,o)}(e.parentElement,e.element,e.oldIndex)}))}function f(e,t){const n=m(e),o={parentElement:e.from};let r=[];switch(n){case"normal":r=[{element:e.item,newIndex:e.newIndex,oldIndex:e.oldIndex,parentElement:e.from}];break;case"swap":r=[{element:e.item,oldIndex:e.oldIndex,newIndex:e.newIndex,...o},{element:e.swapItem,oldIndex:e.newIndex,newIndex:e.oldIndex,...o}];break;case"multidrag":r=e.oldIndicies.map(((t,n)=>({element:t.multiDragElement,oldIndex:t.index,newIndex:e.newIndicies[n].index,...o})))}const i=function(e,t){return e.map((e=>({...e,item:t[e.oldIndex]}))).sort(((e,t)=>e.oldIndex-t.oldIndex))}(r,t);return i}function p(e,t){const n=[...t];return e.concat().reverse().forEach((e=>n.splice(e.oldIndex,1))),n}function h(e,t,n,o){const r=[...t];return e.forEach((e=>{const t=o&&n&&o(e.item,n);r.splice(e.newIndex,0,t||e.item)})),r}function m(e){return e.oldIndicies&&e.oldIndicies.length>0?"multidrag":e.swapItem?"swap":"normal"}l(e.exports,"Sortable",(()=>$882b6d93070905b3$re_export$Sortable)),l(e.exports,"Direction",(()=>$882b6d93070905b3$re_export$Direction)),l(e.exports,"DOMRect",(()=>$882b6d93070905b3$re_export$DOMRect)),l(e.exports,"GroupOptions",(()=>$882b6d93070905b3$re_export$GroupOptions)),l(e.exports,"MoveEvent",(()=>$882b6d93070905b3$re_export$MoveEvent)),l(e.exports,"Options",(()=>$882b6d93070905b3$re_export$Options)),l(e.exports,"PullResult",(()=>$882b6d93070905b3$re_export$PullResult)),l(e.exports,"PutResult",(()=>$882b6d93070905b3$re_export$PutResult)),l(e.exports,"SortableEvent",(()=>$882b6d93070905b3$re_export$SortableEvent)),l(e.exports,"SortableOptions",(()=>$882b6d93070905b3$re_export$SortableOptions)),l(e.exports,"Utils",(()=>$882b6d93070905b3$re_export$Utils)),l(e.exports,"ReactSortable",(()=>v));const g={dragging:null};class v extends i.Component{static defaultProps={clone:e=>e};constructor(e){super(e),this.ref=(0,i.createRef)();const t=[...e.list].map((e=>Object.assign(e,{chosen:!1,selected:!1})));e.setList(t,this.sortable,g),s(a)(!e.plugins,'\nPlugins prop is no longer supported.\nInstead, mount it with "Sortable.mount(new MultiDrag())"\nPlease read the updated README.md at https://github.com/SortableJS/react-sortablejs.\n      ')}componentDidMount(){if(null===this.ref.current)return;const e=this.makeOptions();s(o).create(this.ref.current,e)}componentDidUpdate(e){e.disabled!==this.props.disabled&&this.sortable&&this.sortable.option("disabled",this.props.disabled)}render(){const{tag:e,style:t,className:n,id:o}=this.props,r={style:t,className:n,id:o},a=e&&null!==e?e:"div";return(0,i.createElement)(a,{ref:this.ref,...r},this.getChildren())}getChildren(){const{children:e,dataIdAttr:t,selectedClass:n="sortable-selected",chosenClass:o="sortable-chosen",dragClass:a="sortable-drag",fallbackClass:l="sortable-falback",ghostClass:c="sortable-ghost",swapClass:u="sortable-swap-highlight",filter:d="sortable-filter",list:f}=this.props;if(!e||null==e)return null;const p=t||"data-id";return i.Children.map(e,((e,t)=>{if(void 0===e)return;const a=f[t]||{},{className:l}=e.props,c="string"==typeof d&&{[d.replace(".","")]:!!a.filtered},u=s(r)(l,{[n]:a.selected,[o]:a.chosen,...c});return(0,i.cloneElement)(e,{[p]:e.key,className:u})}))}get sortable(){const e=this.ref.current;if(null===e)return null;const t=Object.keys(e).find((e=>e.includes("Sortable")));return t?e[t]:null}makeOptions(){const e=function(e){const{list:t,setList:n,children:o,tag:r,style:i,className:a,clone:s,onAdd:l,onChange:c,onChoose:u,onClone:d,onEnd:f,onFilter:p,onRemove:h,onSort:m,onStart:g,onUnchoose:v,onUpdate:b,onMove:y,onSpill:x,onSelect:w,onDeselect:C,...S}=e;return S}(this.props);return["onAdd","onChoose","onDeselect","onEnd","onRemove","onSelect","onSpill","onStart","onUnchoose","onUpdate"].forEach((t=>e[t]=this.prepareOnHandlerPropAndDOM(t))),["onChange","onClone","onFilter","onSort"].forEach((t=>e[t]=this.prepareOnHandlerProp(t))),{...e,onMove:(e,t)=>{const{onMove:n}=this.props,o=e.willInsertAfter||-1;if(!n)return o;const r=n(e,t,this.sortable,g);return void 0!==r&&r}}}prepareOnHandlerPropAndDOM(e){return t=>{this.callOnHandlerProp(t,e),this[e](t)}}prepareOnHandlerProp(e){return t=>{this.callOnHandlerProp(t,e)}}callOnHandlerProp(e,t){const n=this.props[t];n&&n(e,this.sortable,g)}onAdd(e){const{list:t,setList:n,clone:o}=this.props,r=f(e,[...g.dragging.props.list]);u(r),n(h(r,t,e,o).map((e=>Object.assign(e,{selected:!1}))),this.sortable,g)}onRemove(e){const{list:t,setList:n}=this.props,o=m(e),r=f(e,t);d(r);let i=[...t];if("clone"!==e.pullMode)i=p(r,i);else{let t=r;switch(o){case"multidrag":t=r.map(((t,n)=>({...t,element:e.clones[n]})));break;case"normal":t=r.map((t=>({...t,element:e.clone})));break;default:s(a)(!0,`mode "${o}" cannot clone. Please remove "props.clone" from <ReactSortable/> when using the "${o}" plugin`)}u(t),r.forEach((t=>{const n=t.oldIndex,o=this.props.clone(t.item,e);i.splice(n,1,o)}))}i=i.map((e=>Object.assign(e,{selected:!1}))),n(i,this.sortable,g)}onUpdate(e){const{list:t,setList:n}=this.props,o=f(e,t);return u(o),d(o),n(function(e,t){return h(e,p(e,t))}(o,t),this.sortable,g)}onStart(){g.dragging=this}onEnd(){g.dragging=null}onChoose(e){const{list:t,setList:n}=this.props;n(t.map(((t,n)=>{let o=t;return n===e.oldIndex&&(o=Object.assign(t,{chosen:!0})),o})),this.sortable,g)}onUnchoose(e){const{list:t,setList:n}=this.props;n(t.map(((t,n)=>{let o=t;return n===e.oldIndex&&(o=Object.assign(o,{chosen:!1})),o})),this.sortable,g)}onSpill(e){const{removeOnSpill:t,revertOnSpill:n}=this.props;t&&!n&&c(e.item)}onSelect(e){const{list:t,setList:n}=this.props,o=t.map((e=>Object.assign(e,{selected:!1})));e.newIndicies.forEach((t=>{const n=t.index;if(-1===n)return console.log(`"${e.type}" had indice of "${t.index}", which is probably -1 and doesn't usually happen here.`),void console.log(e);o[n].selected=!0})),n(o,this.sortable,g)}onDeselect(e){const{list:t,setList:n}=this.props,o=t.map((e=>Object.assign(e,{selected:!1})));e.newIndicies.forEach((e=>{const t=e.index;-1!==t&&(o[t].selected=!0)})),n(o,this.sortable,g)}}var b,y;b=e.exports,y={},Object.keys(y).forEach((function(e){"default"===e||"__esModule"===e||b.hasOwnProperty(e)||Object.defineProperty(b,e,{enumerable:!0,get:function(){return y[e]}})}))},720:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=r.apply(null,n);a&&e.push(a)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var s in n)o.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},20:(e,t,n)=>{"use strict";var o=n(609),r=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var o,i={},c=null,u=null;for(o in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,o)&&!l.hasOwnProperty(o)&&(i[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===i[o]&&(i[o]=t[o]);return{$$typeof:r,type:e,key:c,ref:u,props:i,_owner:s.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},848:(e,t,n)=>{"use strict";e.exports=n(20)},897:(e,t,n)=>{"use strict";var o=n(453),r=n(41),i=n(592)(),a=n(795),s=n(675),l=o("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||l(t)!==t)throw new s("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],o=!0,c=!0;if("length"in e&&a){var u=a(e,"length");u&&!u.configurable&&(o=!1),u&&!u.writable&&(c=!1)}return(o||c||!n)&&(i?r(e,"length",t,!0,!0):r(e,"length",t)),e}},920:(e,t,n)=>{"use strict";var o=n(453),r=n(75),i=n(859),a=n(675),s=o("%WeakMap%",!0),l=o("%Map%",!0),c=r("WeakMap.prototype.get",!0),u=r("WeakMap.prototype.set",!0),d=r("WeakMap.prototype.has",!0),f=r("Map.prototype.get",!0),p=r("Map.prototype.set",!0),h=r("Map.prototype.has",!0),m=function(e,t){for(var n,o=e;null!==(n=o.next);o=n)if(n.key===t)return o.next=n.next,n.next=e.next,e.next=n,n};e.exports=function(){var e,t,n,o={assert:function(e){if(!o.has(e))throw new a("Side channel does not contain "+i(e))},get:function(o){if(s&&o&&("object"==typeof o||"function"==typeof o)){if(e)return c(e,o)}else if(l){if(t)return f(t,o)}else if(n)return function(e,t){var n=m(e,t);return n&&n.value}(n,o)},has:function(o){if(s&&o&&("object"==typeof o||"function"==typeof o)){if(e)return d(e,o)}else if(l){if(t)return h(t,o)}else if(n)return function(e,t){return!!m(e,t)}(n,o);return!1},set:function(o,r){s&&o&&("object"==typeof o||"function"==typeof o)?(e||(e=new s),u(e,o,r)):l?(t||(t=new l),p(t,o,r)):(n||(n={key:{},next:null}),function(e,t,n){var o=m(e,t);o?o.value=n:e.next={key:t,next:e.next,value:n}}(n,o,r))}};return o}},246:(e,t,n)=>{"use strict";function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},s.apply(this,arguments)}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function c(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}n.r(t),n.d(t,{MultiDrag:()=>xt,Sortable:()=>Fe,Swap:()=>ct,default:()=>St});var u=c(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),d=c(/Edge/i),f=c(/firefox/i),p=c(/safari/i)&&!c(/chrome/i)&&!c(/android/i),h=c(/iP(ad|od|hone)/i),m=c(/chrome/i)&&c(/android/i),g={capture:!1,passive:!1};function v(e,t,n){e.addEventListener(t,n,!u&&g)}function b(e,t,n){e.removeEventListener(t,n,!u&&g)}function y(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function x(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function w(e,t,n,o){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&y(e,t):y(e,t))||o&&e===n)return e;if(e===n)break}while(e=x(e))}return null}var C,S=/\s+/g;function E(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var o=(" "+e.className+" ").replace(S," ").replace(" "+t+" "," ");e.className=(o+(n?" "+t:"")).replace(S," ")}}function k(e,t,n){var o=e&&e.style;if(o){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in o||-1!==t.indexOf("webkit")||(t="-webkit-"+t),o[t]=n+("string"==typeof n?"":"px")}}function $(e,t){var n="";if("string"==typeof e)n=e;else do{var o=k(e,"transform");o&&"none"!==o&&(n=o+" "+n)}while(!t&&(e=e.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function _(e,t,n){if(e){var o=e.getElementsByTagName(t),r=0,i=o.length;if(n)for(;r<i;r++)n(o[r],r);return o}return[]}function O(){return document.scrollingElement||document.documentElement}function j(e,t,n,o,r){if(e.getBoundingClientRect||e===window){var i,a,s,l,c,d,f;if(e!==window&&e.parentNode&&e!==O()?(a=(i=e.getBoundingClientRect()).top,s=i.left,l=i.bottom,c=i.right,d=i.height,f=i.width):(a=0,s=0,l=window.innerHeight,c=window.innerWidth,d=window.innerHeight,f=window.innerWidth),(t||n)&&e!==window&&(r=r||e.parentNode,!u))do{if(r&&r.getBoundingClientRect&&("none"!==k(r,"transform")||n&&"static"!==k(r,"position"))){var p=r.getBoundingClientRect();a-=p.top+parseInt(k(r,"border-top-width")),s-=p.left+parseInt(k(r,"border-left-width")),l=a+i.height,c=s+i.width;break}}while(r=r.parentNode);if(o&&e!==window){var h=$(r||e),m=h&&h.a,g=h&&h.d;h&&(l=(a/=g)+(d/=g),c=(s/=m)+(f/=m))}return{top:a,left:s,bottom:l,right:c,width:f,height:d}}}function M(e,t,n){for(var o=R(e,!0),r=j(e)[t];o;){var i=j(o)[n];if(!("top"===n||"left"===n?r>=i:r<=i))return o;if(o===O())break;o=R(o,!1)}return!1}function P(e,t,n,o){for(var r=0,i=0,a=e.children;i<a.length;){if("none"!==a[i].style.display&&a[i]!==Fe.ghost&&(o||a[i]!==Fe.dragged)&&w(a[i],n.draggable,e,!1)){if(r===t)return a[i];r++}i++}return null}function I(e,t){for(var n=e.lastElementChild;n&&(n===Fe.ghost||"none"===k(n,"display")||t&&!y(n,t));)n=n.previousElementSibling;return n||null}function N(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===Fe.clone||t&&!y(e,t)||n++;return n}function T(e){var t=0,n=0,o=O();if(e)do{var r=$(e),i=r.a,a=r.d;t+=e.scrollLeft*i,n+=e.scrollTop*a}while(e!==o&&(e=e.parentNode));return[t,n]}function R(e,t){if(!e||!e.getBoundingClientRect)return O();var n=e,o=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var r=k(n);if(n.clientWidth<n.scrollWidth&&("auto"==r.overflowX||"scroll"==r.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==r.overflowY||"scroll"==r.overflowY)){if(!n.getBoundingClientRect||n===document.body)return O();if(o||t)return n;o=!0}}}while(n=n.parentNode);return O()}function A(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function D(e,t){return function(){if(!C){var n=arguments;1===n.length?e.call(this,n[0]):e.apply(this,n),C=setTimeout((function(){C=void 0}),t)}}}function B(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function L(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function z(e,t){k(e,"position","absolute"),k(e,"top",t.top),k(e,"left",t.left),k(e,"width",t.width),k(e,"height",t.height)}function F(e){k(e,"position",""),k(e,"top",""),k(e,"left",""),k(e,"width",""),k(e,"height","")}function H(e,t,n){var o={};return Array.from(e.children).forEach((function(r){var i,a,s,l;if(w(r,t.draggable,e,!1)&&!r.animated&&r!==n){var c=j(r);o.left=Math.min(null!==(i=o.left)&&void 0!==i?i:1/0,c.left),o.top=Math.min(null!==(a=o.top)&&void 0!==a?a:1/0,c.top),o.right=Math.max(null!==(s=o.right)&&void 0!==s?s:-1/0,c.right),o.bottom=Math.max(null!==(l=o.bottom)&&void 0!==l?l:-1/0,c.bottom)}})),o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}var V="Sortable"+(new Date).getTime();var W=[],K={initializeByDefault:!0},q={mount:function(e){for(var t in K)K.hasOwnProperty(t)&&!(t in e)&&(e[t]=K[t]);W.forEach((function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")})),W.push(e)},pluginEvent:function(e,t,n){var o=this;this.eventCanceled=!1,n.cancel=function(){o.eventCanceled=!0};var i=e+"Global";W.forEach((function(o){t[o.pluginName]&&(t[o.pluginName][i]&&t[o.pluginName][i](r({sortable:t},n)),t.options[o.pluginName]&&t[o.pluginName][e]&&t[o.pluginName][e](r({sortable:t},n)))}))},initializePlugins:function(e,t,n,o){for(var r in W.forEach((function(o){var r=o.pluginName;if(e.options[r]||o.initializeByDefault){var i=new o(e,t,e.options);i.sortable=e,i.options=e.options,e[r]=i,s(n,i.defaults)}})),e.options)if(e.options.hasOwnProperty(r)){var i=this.modifyOption(e,r,e.options[r]);void 0!==i&&(e.options[r]=i)}},getEventProperties:function(e,t){var n={};return W.forEach((function(o){"function"==typeof o.eventProperties&&s(n,o.eventProperties.call(t[o.pluginName],e))})),n},modifyOption:function(e,t,n){var o;return W.forEach((function(r){e[r.pluginName]&&r.optionListeners&&"function"==typeof r.optionListeners[t]&&(o=r.optionListeners[t].call(e[r.pluginName],n))})),o}};function U(e){var t=e.sortable,n=e.rootEl,o=e.name,i=e.targetEl,a=e.cloneEl,s=e.toEl,l=e.fromEl,c=e.oldIndex,f=e.newIndex,p=e.oldDraggableIndex,h=e.newDraggableIndex,m=e.originalEvent,g=e.putSortable,v=e.extraEventProperties;if(t=t||n&&n[V]){var b,y=t.options,x="on"+o.charAt(0).toUpperCase()+o.substr(1);!window.CustomEvent||u||d?(b=document.createEvent("Event")).initEvent(o,!0,!0):b=new CustomEvent(o,{bubbles:!0,cancelable:!0}),b.to=s||n,b.from=l||n,b.item=i||n,b.clone=a,b.oldIndex=c,b.newIndex=f,b.oldDraggableIndex=p,b.newDraggableIndex=h,b.originalEvent=m,b.pullMode=g?g.lastPutMode:void 0;var w=r(r({},v),q.getEventProperties(o,t));for(var C in w)b[C]=w[C];n&&n.dispatchEvent(b),y[x]&&y[x].call(t,b)}}var G=["evt"],X=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.evt,i=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(n,G);q.pluginEvent.bind(Fe)(e,t,r({dragEl:Z,parentEl:Q,ghostEl:J,rootEl:ee,nextEl:te,lastDownEl:ne,cloneEl:oe,cloneHidden:re,dragStarted:ve,putSortable:ue,activeSortable:Fe.active,originalEvent:o,oldIndex:ie,oldDraggableIndex:se,newIndex:ae,newDraggableIndex:le,hideGhostForTarget:De,unhideGhostForTarget:Be,cloneNowHidden:function(){re=!0},cloneNowShown:function(){re=!1},dispatchSortableEvent:function(e){Y({sortable:t,name:e,originalEvent:o})}},i))};function Y(e){U(r({putSortable:ue,cloneEl:oe,targetEl:Z,rootEl:ee,oldIndex:ie,oldDraggableIndex:se,newIndex:ae,newDraggableIndex:le},e))}var Z,Q,J,ee,te,ne,oe,re,ie,ae,se,le,ce,ue,de,fe,pe,he,me,ge,ve,be,ye,xe,we,Ce=!1,Se=!1,Ee=[],ke=!1,$e=!1,_e=[],Oe=!1,je=[],Me="undefined"!=typeof document,Pe=h,Ie=d||u?"cssFloat":"float",Ne=Me&&!m&&!h&&"draggable"in document.createElement("div"),Te=function(){if(Me){if(u)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Re=function(e,t){var n=k(e),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=P(e,0,t),i=P(e,1,t),a=r&&k(r),s=i&&k(i),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+j(r).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+j(i).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a.float&&"none"!==a.float){var u="left"===a.float?"left":"right";return!i||"both"!==s.clear&&s.clear!==u?"horizontal":"vertical"}return r&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||l>=o&&"none"===n[Ie]||i&&"none"===n[Ie]&&l+c>o)?"vertical":"horizontal"},Ae=function(e){function t(e,n){return function(o,r,i,a){var s=o.options.group.name&&r.options.group.name&&o.options.group.name===r.options.group.name;if(null==e&&(n||s))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(o,r,i,a),n)(o,r,i,a);var l=(n?o:r).options.group.name;return!0===e||"string"==typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var n={},o=e.group;o&&"object"==i(o)||(o={name:o}),n.name=o.name,n.checkPull=t(o.pull,!0),n.checkPut=t(o.put),n.revertClone=o.revertClone,e.group=n},De=function(){!Te&&J&&k(J,"display","none")},Be=function(){!Te&&J&&k(J,"display","")};Me&&!m&&document.addEventListener("click",(function(e){if(Se)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Se=!1,!1}),!0);var Le=function(e){if(Z){e=e.touches?e.touches[0]:e;var t=(r=e.clientX,i=e.clientY,Ee.some((function(e){var t=e[V].options.emptyInsertThreshold;if(t&&!I(e)){var n=j(e),o=r>=n.left-t&&r<=n.right+t,s=i>=n.top-t&&i<=n.bottom+t;return o&&s?a=e:void 0}})),a);if(t){var n={};for(var o in e)e.hasOwnProperty(o)&&(n[o]=e[o]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[V]._onDragOver(n)}}var r,i,a},ze=function(e){Z&&Z.parentNode[V]._isOutsideThisEl(e.target)};function Fe(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=s({},t),e[V]=this;var n,o,i={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Re(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Fe.supportPointer&&"PointerEvent"in window&&!p,emptyInsertThreshold:5};for(var a in q.initializePlugins(this,e,i),i)!(a in t)&&(t[a]=i[a]);for(var l in Ae(t),this)"_"===l.charAt(0)&&"function"==typeof this[l]&&(this[l]=this[l].bind(this));this.nativeDraggable=!t.forceFallback&&Ne,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?v(e,"pointerdown",this._onTapStart):(v(e,"mousedown",this._onTapStart),v(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(v(e,"dragover",this),v(e,"dragenter",this)),Ee.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),s(this,(o=[],{captureAnimationState:function(){o=[],this.options.animation&&[].slice.call(this.el.children).forEach((function(e){if("none"!==k(e,"display")&&e!==Fe.ghost){o.push({target:e,rect:j(e)});var t=r({},o[o.length-1].rect);if(e.thisAnimationDuration){var n=$(e,!0);n&&(t.top-=n.f,t.left-=n.e)}e.fromRect=t}}))},addAnimationState:function(e){o.push(e)},removeAnimationState:function(e){o.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var o in t)if(t.hasOwnProperty(o)&&t[o]===e[n][o])return Number(n);return-1}(o,{target:e}),1)},animateAll:function(e){var t=this;if(!this.options.animation)return clearTimeout(n),void("function"==typeof e&&e());var r=!1,i=0;o.forEach((function(e){var n=0,o=e.target,a=o.fromRect,s=j(o),l=o.prevFromRect,c=o.prevToRect,u=e.rect,d=$(o,!0);d&&(s.top-=d.f,s.left-=d.e),o.toRect=s,o.thisAnimationDuration&&A(l,s)&&!A(a,s)&&(u.top-s.top)/(u.left-s.left)==(a.top-s.top)/(a.left-s.left)&&(n=function(e,t,n,o){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*o.animation}(u,l,c,t.options)),A(s,a)||(o.prevFromRect=a,o.prevToRect=s,n||(n=t.options.animation),t.animate(o,u,s,n)),n&&(r=!0,i=Math.max(i,n),clearTimeout(o.animationResetTimer),o.animationResetTimer=setTimeout((function(){o.animationTime=0,o.prevFromRect=null,o.fromRect=null,o.prevToRect=null,o.thisAnimationDuration=null}),n),o.thisAnimationDuration=n)})),clearTimeout(n),r?n=setTimeout((function(){"function"==typeof e&&e()}),i):"function"==typeof e&&e(),o=[]},animate:function(e,t,n,o){if(o){k(e,"transition",""),k(e,"transform","");var r=$(this.el),i=r&&r.a,a=r&&r.d,s=(t.left-n.left)/(i||1),l=(t.top-n.top)/(a||1);e.animatingX=!!s,e.animatingY=!!l,k(e,"transform","translate3d("+s+"px,"+l+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),k(e,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),k(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){k(e,"transition",""),k(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),o)}}}))}function He(e,t,n,o,r,i,a,s){var l,c,f=e[V],p=f.options.onMove;return!window.CustomEvent||u||d?(l=document.createEvent("Event")).initEvent("move",!0,!0):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=n,l.draggedRect=o,l.related=r||t,l.relatedRect=i||j(t),l.willInsertAfter=s,l.originalEvent=a,e.dispatchEvent(l),p&&(c=p.call(f,l,a)),c}function Ve(e){e.draggable=!1}function We(){Oe=!1}function Ke(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,o=0;n--;)o+=t.charCodeAt(n);return o.toString(36)}function qe(e){return setTimeout(e,0)}function Ue(e){return clearTimeout(e)}Fe.prototype={constructor:Fe,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(be=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,Z):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,o=this.options,r=o.preventOnFilter,i=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,s=(a||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,c=o.filter;if(function(e){je.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var o=t[n];o.checked&&je.push(o)}}(n),!Z&&!(/mousedown|pointerdown/.test(i)&&0!==e.button||o.disabled)&&!l.isContentEditable&&(this.nativeDraggable||!p||!s||"SELECT"!==s.tagName.toUpperCase())&&!((s=w(s,o.draggable,n,!1))&&s.animated||ne===s)){if(ie=N(s),se=N(s,o.draggable),"function"==typeof c){if(c.call(this,e,s,this))return Y({sortable:t,rootEl:l,name:"filter",targetEl:s,toEl:n,fromEl:n}),X("filter",t,{evt:e}),void(r&&e.cancelable&&e.preventDefault())}else if(c&&(c=c.split(",").some((function(o){if(o=w(l,o.trim(),n,!1))return Y({sortable:t,rootEl:o,name:"filter",targetEl:s,fromEl:n,toEl:n}),X("filter",t,{evt:e}),!0}))))return void(r&&e.cancelable&&e.preventDefault());o.handle&&!w(l,o.handle,n,!1)||this._prepareDragStart(e,a,s)}}},_prepareDragStart:function(e,t,n){var o,r=this,i=r.el,a=r.options,s=i.ownerDocument;if(n&&!Z&&n.parentNode===i){var l=j(n);if(ee=i,Q=(Z=n).parentNode,te=Z.nextSibling,ne=n,ce=a.group,Fe.dragged=Z,de={target:Z,clientX:(t||e).clientX,clientY:(t||e).clientY},me=de.clientX-l.left,ge=de.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,Z.style["will-change"]="all",o=function(){X("delayEnded",r,{evt:e}),Fe.eventCanceled?r._onDrop():(r._disableDelayedDragEvents(),!f&&r.nativeDraggable&&(Z.draggable=!0),r._triggerDragStart(e,t),Y({sortable:r,name:"choose",originalEvent:e}),E(Z,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){_(Z,e.trim(),Ve)})),v(s,"dragover",Le),v(s,"mousemove",Le),v(s,"touchmove",Le),v(s,"mouseup",r._onDrop),v(s,"touchend",r._onDrop),v(s,"touchcancel",r._onDrop),f&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Z.draggable=!0),X("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(d||u))o();else{if(Fe.eventCanceled)return void this._onDrop();v(s,"mouseup",r._disableDelayedDrag),v(s,"touchend",r._disableDelayedDrag),v(s,"touchcancel",r._disableDelayedDrag),v(s,"mousemove",r._delayedDragTouchMoveHandler),v(s,"touchmove",r._delayedDragTouchMoveHandler),a.supportPointer&&v(s,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(o,a.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Z&&Ve(Z),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;b(e,"mouseup",this._disableDelayedDrag),b(e,"touchend",this._disableDelayedDrag),b(e,"touchcancel",this._disableDelayedDrag),b(e,"mousemove",this._delayedDragTouchMoveHandler),b(e,"touchmove",this._delayedDragTouchMoveHandler),b(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?v(document,"pointermove",this._onTouchMove):v(document,t?"touchmove":"mousemove",this._onTouchMove):(v(Z,"dragend",this),v(ee,"dragstart",this._onDragStart));try{document.selection?qe((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(Ce=!1,ee&&Z){X("dragStarted",this,{evt:t}),this.nativeDraggable&&v(document,"dragover",ze);var n=this.options;!e&&E(Z,n.dragClass,!1),E(Z,n.ghostClass,!0),Fe.active=this,e&&this._appendGhost(),Y({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(fe){this._lastX=fe.clientX,this._lastY=fe.clientY,De();for(var e=document.elementFromPoint(fe.clientX,fe.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(fe.clientX,fe.clientY))!==t;)t=e;if(Z.parentNode[V]._isOutsideThisEl(e),t)do{if(t[V]&&t[V]._onDragOver({clientX:fe.clientX,clientY:fe.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break;e=t}while(t=t.parentNode);Be()}},_onTouchMove:function(e){if(de){var t=this.options,n=t.fallbackTolerance,o=t.fallbackOffset,r=e.touches?e.touches[0]:e,i=J&&$(J,!0),a=J&&i&&i.a,s=J&&i&&i.d,l=Pe&&we&&T(we),c=(r.clientX-de.clientX+o.x)/(a||1)+(l?l[0]-_e[0]:0)/(a||1),u=(r.clientY-de.clientY+o.y)/(s||1)+(l?l[1]-_e[1]:0)/(s||1);if(!Fe.active&&!Ce){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(J){i?(i.e+=c-(pe||0),i.f+=u-(he||0)):i={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");k(J,"webkitTransform",d),k(J,"mozTransform",d),k(J,"msTransform",d),k(J,"transform",d),pe=c,he=u,fe=r}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!J){var e=this.options.fallbackOnBody?document.body:ee,t=j(Z,!0,Pe,!0,e),n=this.options;if(Pe){for(we=e;"static"===k(we,"position")&&"none"===k(we,"transform")&&we!==document;)we=we.parentNode;we!==document.body&&we!==document.documentElement?(we===document&&(we=O()),t.top+=we.scrollTop,t.left+=we.scrollLeft):we=O(),_e=T(we)}E(J=Z.cloneNode(!0),n.ghostClass,!1),E(J,n.fallbackClass,!0),E(J,n.dragClass,!0),k(J,"transition",""),k(J,"transform",""),k(J,"box-sizing","border-box"),k(J,"margin",0),k(J,"top",t.top),k(J,"left",t.left),k(J,"width",t.width),k(J,"height",t.height),k(J,"opacity","0.8"),k(J,"position",Pe?"absolute":"fixed"),k(J,"zIndex","100000"),k(J,"pointerEvents","none"),Fe.ghost=J,e.appendChild(J),k(J,"transform-origin",me/parseInt(J.style.width)*100+"% "+ge/parseInt(J.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,o=e.dataTransfer,r=n.options;X("dragStart",this,{evt:e}),Fe.eventCanceled?this._onDrop():(X("setupClone",this),Fe.eventCanceled||((oe=L(Z)).removeAttribute("id"),oe.draggable=!1,oe.style["will-change"]="",this._hideClone(),E(oe,this.options.chosenClass,!1),Fe.clone=oe),n.cloneId=qe((function(){X("clone",n),Fe.eventCanceled||(n.options.removeCloneOnHide||ee.insertBefore(oe,Z),n._hideClone(),Y({sortable:n,name:"clone"}))})),!t&&E(Z,r.dragClass,!0),t?(Se=!0,n._loopId=setInterval(n._emulateDragOver,50)):(b(document,"mouseup",n._onDrop),b(document,"touchend",n._onDrop),b(document,"touchcancel",n._onDrop),o&&(o.effectAllowed="move",r.setData&&r.setData.call(n,o,Z)),v(document,"drop",n),k(Z,"transform","translateZ(0)")),Ce=!0,n._dragStartId=qe(n._dragStarted.bind(n,t,e)),v(document,"selectstart",n),ve=!0,p&&k(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,o,i,a=this.el,s=e.target,l=this.options,c=l.group,u=Fe.active,d=ce===c,f=l.sort,p=ue||u,h=this,m=!1;if(!Oe){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),s=w(s,l.draggable,a,!0),L("dragOver"),Fe.eventCanceled)return m;if(Z.contains(e.target)||s.animated&&s.animatingX&&s.animatingY||h._ignoreWhileAnimating===s)return F(!1);if(Se=!1,u&&!l.disabled&&(d?f||(o=Q!==ee):ue===this||(this.lastPutMode=ce.checkPull(this,u,Z,e))&&c.checkPut(this,u,Z,e))){if(i="vertical"===this._getDirection(e,s),t=j(Z),L("dragOverValid"),Fe.eventCanceled)return m;if(o)return Q=ee,z(),this._hideClone(),L("revert"),Fe.eventCanceled||(te?ee.insertBefore(Z,te):ee.appendChild(Z)),F(!0);var g=I(a,l.draggable);if(!g||function(e,t,n){var o=j(I(n.el,n.options.draggable)),r=H(n.el,n.options,J);return t?e.clientX>r.right+10||e.clientY>o.bottom&&e.clientX>o.left:e.clientY>r.bottom+10||e.clientX>o.right&&e.clientY>o.top}(e,i,this)&&!g.animated){if(g===Z)return F(!1);if(g&&a===e.target&&(s=g),s&&(n=j(s)),!1!==He(ee,a,Z,t,s,n,e,!!s))return z(),g&&g.nextSibling?a.insertBefore(Z,g.nextSibling):a.appendChild(Z),Q=a,W(),F(!0)}else if(g&&function(e,t,n){var o=j(P(n.el,0,n.options,!0)),r=H(n.el,n.options,J);return t?e.clientX<r.left-10||e.clientY<o.top&&e.clientX<o.right:e.clientY<r.top-10||e.clientY<o.bottom&&e.clientX<o.left}(e,i,this)){var v=P(a,0,l,!0);if(v===Z)return F(!1);if(n=j(s=v),!1!==He(ee,a,Z,t,s,n,e,!1))return z(),a.insertBefore(Z,v),Q=a,W(),F(!0)}else if(s.parentNode===a){n=j(s);var b,y,x,C=Z.parentNode!==a,S=!function(e,t,n){var o=n?e.left:e.top,r=n?e.right:e.bottom,i=n?e.width:e.height,a=n?t.left:t.top,s=n?t.right:t.bottom,l=n?t.width:t.height;return o===a||r===s||o+i/2===a+l/2}(Z.animated&&Z.toRect||t,s.animated&&s.toRect||n,i),$=i?"top":"left",_=M(s,"top","top")||M(Z,"top","top"),O=_?_.scrollTop:void 0;if(be!==s&&(y=n[$],ke=!1,$e=!S&&l.invertSwap||C),b=function(e,t,n,o,r,i,a,s){var l=o?e.clientY:e.clientX,c=o?n.height:n.width,u=o?n.top:n.left,d=o?n.bottom:n.right,f=!1;if(!a)if(s&&xe<c*r){if(!ke&&(1===ye?l>u+c*i/2:l<d-c*i/2)&&(ke=!0),ke)f=!0;else if(1===ye?l<u+xe:l>d-xe)return-ye}else if(l>u+c*(1-r)/2&&l<d-c*(1-r)/2)return function(e){return N(Z)<N(e)?1:-1}(t);return(f=f||a)&&(l<u+c*i/2||l>d-c*i/2)?l>u+c/2?1:-1:0}(e,s,n,i,S?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,$e,be===s),0!==b){var T=N(Z);do{T-=b,x=Q.children[T]}while(x&&("none"===k(x,"display")||x===J))}if(0===b||x===s)return F(!1);be=s,ye=b;var R=s.nextElementSibling,A=!1,D=He(ee,a,Z,t,s,n,e,A=1===b);if(!1!==D)return 1!==D&&-1!==D||(A=1===D),Oe=!0,setTimeout(We,30),z(),A&&!R?a.appendChild(Z):s.parentNode.insertBefore(Z,A?R:s),_&&B(_,0,O-_.scrollTop),Q=Z.parentNode,void 0===y||$e||(xe=Math.abs(y-j(s)[$])),W(),F(!0)}if(a.contains(Z))return F(!1)}return!1}function L(l,c){X(l,h,r({evt:e,isOwner:d,axis:i?"vertical":"horizontal",revert:o,dragRect:t,targetRect:n,canSort:f,fromSortable:p,target:s,completed:F,onMove:function(n,o){return He(ee,a,Z,t,n,j(n),e,o)},changed:W},c))}function z(){L("dragOverAnimationCapture"),h.captureAnimationState(),h!==p&&p.captureAnimationState()}function F(t){return L("dragOverCompleted",{insertion:t}),t&&(d?u._hideClone():u._showClone(h),h!==p&&(E(Z,ue?ue.options.ghostClass:u.options.ghostClass,!1),E(Z,l.ghostClass,!0)),ue!==h&&h!==Fe.active?ue=h:h===Fe.active&&ue&&(ue=null),p===h&&(h._ignoreWhileAnimating=s),h.animateAll((function(){L("dragOverAnimationComplete"),h._ignoreWhileAnimating=null})),h!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(s===Z&&!Z.animated||s===a&&!s.animated)&&(be=null),l.dragoverBubble||e.rootEl||s===document||(Z.parentNode[V]._isOutsideThisEl(e.target),!t&&Le(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function W(){ae=N(Z),le=N(Z,l.draggable),Y({sortable:h,name:"change",toEl:a,newIndex:ae,newDraggableIndex:le,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){b(document,"mousemove",this._onTouchMove),b(document,"touchmove",this._onTouchMove),b(document,"pointermove",this._onTouchMove),b(document,"dragover",Le),b(document,"mousemove",Le),b(document,"touchmove",Le)},_offUpEvents:function(){var e=this.el.ownerDocument;b(e,"mouseup",this._onDrop),b(e,"touchend",this._onDrop),b(e,"pointerup",this._onDrop),b(e,"touchcancel",this._onDrop),b(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;ae=N(Z),le=N(Z,n.draggable),X("drop",this,{evt:e}),Q=Z&&Z.parentNode,ae=N(Z),le=N(Z,n.draggable),Fe.eventCanceled||(Ce=!1,$e=!1,ke=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Ue(this.cloneId),Ue(this._dragStartId),this.nativeDraggable&&(b(document,"drop",this),b(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),p&&k(document.body,"user-select",""),k(Z,"transform",""),e&&(ve&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),J&&J.parentNode&&J.parentNode.removeChild(J),(ee===Q||ue&&"clone"!==ue.lastPutMode)&&oe&&oe.parentNode&&oe.parentNode.removeChild(oe),Z&&(this.nativeDraggable&&b(Z,"dragend",this),Ve(Z),Z.style["will-change"]="",ve&&!Ce&&E(Z,ue?ue.options.ghostClass:this.options.ghostClass,!1),E(Z,this.options.chosenClass,!1),Y({sortable:this,name:"unchoose",toEl:Q,newIndex:null,newDraggableIndex:null,originalEvent:e}),ee!==Q?(ae>=0&&(Y({rootEl:Q,name:"add",toEl:Q,fromEl:ee,originalEvent:e}),Y({sortable:this,name:"remove",toEl:Q,originalEvent:e}),Y({rootEl:Q,name:"sort",toEl:Q,fromEl:ee,originalEvent:e}),Y({sortable:this,name:"sort",toEl:Q,originalEvent:e})),ue&&ue.save()):ae!==ie&&ae>=0&&(Y({sortable:this,name:"update",toEl:Q,originalEvent:e}),Y({sortable:this,name:"sort",toEl:Q,originalEvent:e})),Fe.active&&(null!=ae&&-1!==ae||(ae=ie,le=se),Y({sortable:this,name:"end",toEl:Q,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){X("nulling",this),ee=Z=Q=J=te=oe=ne=re=de=fe=ve=ae=le=ie=se=be=ye=ue=ce=Fe.dragged=Fe.ghost=Fe.clone=Fe.active=null,je.forEach((function(e){e.checked=!0})),je.length=pe=he=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":Z&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,o=0,r=n.length,i=this.options;o<r;o++)w(e=n[o],i.draggable,this.el,!1)&&t.push(e.getAttribute(i.dataIdAttr)||Ke(e));return t},sort:function(e,t){var n={},o=this.el;this.toArray().forEach((function(e,t){var r=o.children[t];w(r,this.options.draggable,o,!1)&&(n[e]=r)}),this),t&&this.captureAnimationState(),e.forEach((function(e){n[e]&&(o.removeChild(n[e]),o.appendChild(n[e]))})),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return w(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var o=q.modifyOption(this,e,t);n[e]=void 0!==o?o:t,"group"===e&&Ae(n)},destroy:function(){X("destroy",this);var e=this.el;e[V]=null,b(e,"mousedown",this._onTapStart),b(e,"touchstart",this._onTapStart),b(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(b(e,"dragover",this),b(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Ee.splice(Ee.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!re){if(X("hideClone",this),Fe.eventCanceled)return;k(oe,"display","none"),this.options.removeCloneOnHide&&oe.parentNode&&oe.parentNode.removeChild(oe),re=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(re){if(X("showClone",this),Fe.eventCanceled)return;Z.parentNode!=ee||this.options.group.revertClone?te?ee.insertBefore(oe,te):ee.appendChild(oe):ee.insertBefore(oe,Z),this.options.group.revertClone&&this.animate(Z,oe),k(oe,"display",""),re=!1}}else this._hideClone()}},Me&&v(document,"touchmove",(function(e){(Fe.active||Ce)&&e.cancelable&&e.preventDefault()})),Fe.utils={on:v,off:b,css:k,find:_,is:function(e,t){return!!w(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:D,closest:w,toggleClass:E,clone:L,index:N,nextTick:qe,cancelNextTick:Ue,detectDirection:Re,getChild:P},Fe.get=function(e){return e[V]},Fe.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(Fe.utils=r(r({},Fe.utils),e.utils)),q.mount(e)}))},Fe.create=function(e,t){return new Fe(e,t)},Fe.version="1.15.2";var Ge,Xe,Ye,Ze,Qe,Je,et=[],tt=!1;function nt(){et.forEach((function(e){clearInterval(e.pid)})),et=[]}function ot(){clearInterval(Je)}var rt,it=D((function(e,t,n,o){if(t.scroll){var r,i=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,l=t.scrollSpeed,c=O(),u=!1;Xe!==n&&(Xe=n,nt(),Ge=t.scroll,r=t.scrollFn,!0===Ge&&(Ge=R(n,!0)));var d=0,f=Ge;do{var p=f,h=j(p),m=h.top,g=h.bottom,v=h.left,b=h.right,y=h.width,x=h.height,w=void 0,C=void 0,S=p.scrollWidth,E=p.scrollHeight,$=k(p),_=p.scrollLeft,M=p.scrollTop;p===c?(w=y<S&&("auto"===$.overflowX||"scroll"===$.overflowX||"visible"===$.overflowX),C=x<E&&("auto"===$.overflowY||"scroll"===$.overflowY||"visible"===$.overflowY)):(w=y<S&&("auto"===$.overflowX||"scroll"===$.overflowX),C=x<E&&("auto"===$.overflowY||"scroll"===$.overflowY));var P=w&&(Math.abs(b-i)<=s&&_+y<S)-(Math.abs(v-i)<=s&&!!_),I=C&&(Math.abs(g-a)<=s&&M+x<E)-(Math.abs(m-a)<=s&&!!M);if(!et[d])for(var N=0;N<=d;N++)et[N]||(et[N]={});et[d].vx==P&&et[d].vy==I&&et[d].el===p||(et[d].el=p,et[d].vx=P,et[d].vy=I,clearInterval(et[d].pid),0==P&&0==I||(u=!0,et[d].pid=setInterval(function(){o&&0===this.layer&&Fe.active._onTouchMove(Qe);var t=et[this.layer].vy?et[this.layer].vy*l:0,n=et[this.layer].vx?et[this.layer].vx*l:0;"function"==typeof r&&"continue"!==r.call(Fe.dragged.parentNode[V],n,t,e,Qe,et[this.layer].el)||B(et[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&f!==c&&(f=R(f,!1)));tt=u}}),30),at=function(e){var t=e.originalEvent,n=e.putSortable,o=e.dragEl,r=e.activeSortable,i=e.dispatchSortableEvent,a=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var l=n||r;a();var c=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,u=document.elementFromPoint(c.clientX,c.clientY);s(),l&&!l.el.contains(u)&&(i("spill"),this.onSpill({dragEl:o,putSortable:n}))}};function st(){}function lt(){}function ct(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){var t=e.dragEl;rt=t},dragOverValid:function(e){var t=e.completed,n=e.target,o=e.onMove,r=e.activeSortable,i=e.changed,a=e.cancel;if(r.options.swap){var s=this.sortable.el,l=this.options;if(n&&n!==s){var c=rt;!1!==o(n)?(E(n,l.swapClass,!0),rt=n):rt=null,c&&c!==rt&&E(c,l.swapClass,!1)}i(),t(!0),a()}},drop:function(e){var t,n,o,r,i,a,s=e.activeSortable,l=e.putSortable,c=e.dragEl,u=l||this.sortable,d=this.options;rt&&E(rt,d.swapClass,!1),rt&&(d.swap||l&&l.options.swap)&&c!==rt&&(u.captureAnimationState(),u!==s&&s.captureAnimationState(),n=rt,i=(t=c).parentNode,a=n.parentNode,i&&a&&!i.isEqualNode(n)&&!a.isEqualNode(t)&&(o=N(t),r=N(n),i.isEqualNode(a)&&o<r&&r++,i.insertBefore(n,i.children[o]),a.insertBefore(t,a.children[r])),u.animateAll(),u!==s&&s.animateAll())},nulling:function(){rt=null}},s(e,{pluginName:"swap",eventProperties:function(){return{swapItem:rt}}})}st.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var o=P(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(t,o):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:at},s(st,{pluginName:"revertOnSpill"}),lt.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:at},s(lt,{pluginName:"removeOnSpill"});var ut,dt,ft,pt,ht,mt=[],gt=[],vt=!1,bt=!1,yt=!1;function xt(){function e(e){for(var t in this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this));e.options.avoidImplicitDeselect||(e.options.supportPointer?v(document,"pointerup",this._deselectMultiDrag):(v(document,"mouseup",this._deselectMultiDrag),v(document,"touchend",this._deselectMultiDrag))),v(document,"keydown",this._checkKeyDown),v(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,avoidImplicitDeselect:!1,setData:function(t,n){var o="";mt.length&&dt===e?mt.forEach((function(e,t){o+=(t?", ":"")+e.textContent})):o=n.textContent,t.setData("Text",o)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){var t=e.dragEl;ft=t},delayEnded:function(){this.isMultiDrag=~mt.indexOf(ft)},setupClone:function(e){var t=e.sortable,n=e.cancel;if(this.isMultiDrag){for(var o=0;o<mt.length;o++)gt.push(L(mt[o])),gt[o].sortableIndex=mt[o].sortableIndex,gt[o].draggable=!1,gt[o].style["will-change"]="",E(gt[o],this.options.selectedClass,!1),mt[o]===ft&&E(gt[o],this.options.chosenClass,!1);t._hideClone(),n()}},clone:function(e){var t=e.sortable,n=e.rootEl,o=e.dispatchSortableEvent,r=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||mt.length&&dt===t&&(wt(!0,n),o("clone"),r()))},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl,o=e.cancel;this.isMultiDrag&&(wt(!1,n),gt.forEach((function(e){k(e,"display","")})),t(),ht=!1,o())},hideClone:function(e){var t=this,n=(e.sortable,e.cloneNowHidden),o=e.cancel;this.isMultiDrag&&(gt.forEach((function(e){k(e,"display","none"),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)})),n(),ht=!0,o())},dragStartGlobal:function(e){e.sortable,!this.isMultiDrag&&dt&&dt.multiDrag._deselectMultiDrag(),mt.forEach((function(e){e.sortableIndex=N(e)})),mt=mt.sort((function(e,t){return e.sortableIndex-t.sortableIndex})),yt=!0},dragStarted:function(e){var t=this,n=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){mt.forEach((function(e){e!==ft&&k(e,"position","absolute")}));var o=j(ft,!1,!0,!0);mt.forEach((function(e){e!==ft&&z(e,o)})),bt=!0,vt=!0}n.animateAll((function(){bt=!1,vt=!1,t.options.animation&&mt.forEach((function(e){F(e)})),t.options.sort&&Ct()}))}},dragOver:function(e){var t=e.target,n=e.completed,o=e.cancel;bt&&~mt.indexOf(t)&&(n(!1),o())},revert:function(e){var t=e.fromSortable,n=e.rootEl,o=e.sortable,r=e.dragRect;mt.length>1&&(mt.forEach((function(e){o.addAnimationState({target:e,rect:bt?j(e):r}),F(e),e.fromRect=r,t.removeAnimationState(e)})),bt=!1,function(e,t){mt.forEach((function(n,o){var r=t.children[n.sortableIndex+(e?Number(o):0)];r?t.insertBefore(n,r):t.appendChild(n)}))}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,o=e.insertion,r=e.activeSortable,i=e.parentEl,a=e.putSortable,s=this.options;if(o){if(n&&r._hideClone(),vt=!1,s.animation&&mt.length>1&&(bt||!n&&!r.options.sort&&!a)){var l=j(ft,!1,!0,!0);mt.forEach((function(e){e!==ft&&(z(e,l),i.appendChild(e))})),bt=!0}if(!n)if(bt||Ct(),mt.length>1){var c=ht;r._showClone(t),r.options.animation&&!ht&&c&&gt.forEach((function(e){r.addAnimationState({target:e,rect:pt}),e.fromRect=pt,e.thisAnimationDuration=null}))}else r._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,o=e.activeSortable;if(mt.forEach((function(e){e.thisAnimationDuration=null})),o.options.animation&&!n&&o.multiDrag.isMultiDrag){pt=s({},t);var r=$(ft,!0);pt.top-=r.f,pt.left-=r.e}},dragOverAnimationComplete:function(){bt&&(bt=!1,Ct())},drop:function(e){var t=e.originalEvent,n=e.rootEl,o=e.parentEl,r=e.sortable,i=e.dispatchSortableEvent,a=e.oldIndex,s=e.putSortable,l=s||this.sortable;if(t){var c=this.options,u=o.children;if(!yt)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),E(ft,c.selectedClass,!~mt.indexOf(ft)),~mt.indexOf(ft))mt.splice(mt.indexOf(ft),1),ut=null,U({sortable:r,rootEl:n,name:"deselect",targetEl:ft,originalEvent:t});else{if(mt.push(ft),U({sortable:r,rootEl:n,name:"select",targetEl:ft,originalEvent:t}),t.shiftKey&&ut&&r.el.contains(ut)){var d,f,p=N(ut),h=N(ft);if(~p&&~h&&p!==h)for(h>p?(f=p,d=h):(f=h,d=p+1);f<d;f++)~mt.indexOf(u[f])||(E(u[f],c.selectedClass,!0),mt.push(u[f]),U({sortable:r,rootEl:n,name:"select",targetEl:u[f],originalEvent:t}))}else ut=ft;dt=l}if(yt&&this.isMultiDrag){if(bt=!1,(o[V].options.sort||o!==n)&&mt.length>1){var m=j(ft),g=N(ft,":not(."+this.options.selectedClass+")");if(!vt&&c.animation&&(ft.thisAnimationDuration=null),l.captureAnimationState(),!vt&&(c.animation&&(ft.fromRect=m,mt.forEach((function(e){if(e.thisAnimationDuration=null,e!==ft){var t=bt?j(e):m;e.fromRect=t,l.addAnimationState({target:e,rect:t})}}))),Ct(),mt.forEach((function(e){u[g]?o.insertBefore(e,u[g]):o.appendChild(e),g++})),a===N(ft))){var v=!1;mt.forEach((function(e){e.sortableIndex===N(e)||(v=!0)})),v&&(i("update"),i("sort"))}mt.forEach((function(e){F(e)})),l.animateAll()}dt=l}(n===o||s&&"clone"!==s.lastPutMode)&&gt.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=yt=!1,gt.length=0},destroyGlobal:function(){this._deselectMultiDrag(),b(document,"pointerup",this._deselectMultiDrag),b(document,"mouseup",this._deselectMultiDrag),b(document,"touchend",this._deselectMultiDrag),b(document,"keydown",this._checkKeyDown),b(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(void 0!==yt&&yt||dt!==this.sortable||e&&w(e.target,this.options.draggable,this.sortable.el,!1)||e&&0!==e.button))for(;mt.length;){var t=mt[0];E(t,this.options.selectedClass,!1),mt.shift(),U({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvent:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},s(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[V];t&&t.options.multiDrag&&!~mt.indexOf(e)&&(dt&&dt!==t&&(dt.multiDrag._deselectMultiDrag(),dt=t),E(e,t.options.selectedClass,!0),mt.push(e))},deselect:function(e){var t=e.parentNode[V],n=mt.indexOf(e);t&&t.options.multiDrag&&~n&&(E(e,t.options.selectedClass,!1),mt.splice(n,1))}},eventProperties:function(){var e,t=this,n=[],o=[];return mt.forEach((function(e){var r;n.push({multiDragElement:e,index:e.sortableIndex}),r=bt&&e!==ft?-1:bt?N(e,":not(."+t.options.selectedClass+")"):N(e),o.push({multiDragElement:e,index:r})})),{items:(e=mt,function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),clones:[].concat(gt),oldIndicies:n,newIndicies:o}},optionListeners:{multiDragKey:function(e){return"ctrl"===(e=e.toLowerCase())?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function wt(e,t){gt.forEach((function(n,o){var r=t.children[n.sortableIndex+(e?Number(o):0)];r?t.insertBefore(n,r):t.appendChild(n)}))}function Ct(){mt.forEach((function(e){e!==ft&&e.parentNode&&e.parentNode.removeChild(e)}))}Fe.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?v(document,"dragover",this._handleAutoScroll):this.options.supportPointer?v(document,"pointermove",this._handleFallbackAutoScroll):t.touches?v(document,"touchmove",this._handleFallbackAutoScroll):v(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?b(document,"dragover",this._handleAutoScroll):(b(document,"pointermove",this._handleFallbackAutoScroll),b(document,"touchmove",this._handleFallbackAutoScroll),b(document,"mousemove",this._handleFallbackAutoScroll)),ot(),nt(),clearTimeout(C),C=void 0},nulling:function(){Qe=Xe=Ge=tt=Je=Ye=Ze=null,et.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,o=(e.touches?e.touches[0]:e).clientX,r=(e.touches?e.touches[0]:e).clientY,i=document.elementFromPoint(o,r);if(Qe=e,t||this.options.forceAutoScrollFallback||d||u||p){it(e,this.options,i,t);var a=R(i,!0);!tt||Je&&o===Ye&&r===Ze||(Je&&ot(),Je=setInterval((function(){var i=R(document.elementFromPoint(o,r),!0);i!==a&&(a=i,nt()),it(e,n.options,i,t)}),10),Ye=o,Ze=r)}else{if(!this.options.bubbleScroll||R(i,!0)===O())return void nt();it(e,this.options,R(i,!1),!1)}}},s(e,{pluginName:"scroll",initializeByDefault:!0})}),Fe.mount(lt,st);const St=Fe},997:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var o=!0,r="Invariant failed";function i(e,t){if(!e){if(o)throw new Error(r);var n="function"==typeof t?t():t;throw new Error(n?r+": "+n:r)}}},426:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],o=0;o<e.rangeCount;o++)n.push(e.getRangeAt(o));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},868:(e,t,n)=>{"use strict";var o={};n.r(o),n.d(o,{addNotice:()=>EJ,deleteNotice:()=>kJ,setSettings:()=>CJ,setTotalNotifications:()=>$J,toggleMergeTags:()=>OJ,toggleProAlert:()=>_J,updateSetting:()=>SJ});var r={};n.r(r),n.d(r,{getMergeTags:()=>TJ,getNoticeById:()=>PJ,getNotices:()=>MJ,getProAlert:()=>NJ,getSettings:()=>jJ,getTotalNotifications:()=>IJ});var i={};n.r(i),n.d(i,{getIntegration:()=>AJ,getSettings:()=>RJ,getTotalNotifications:()=>DJ});var a=n(848);const s=window.wp.element,l=window.wp.i18n,c=window.wp.hooks,u=window.wp.data;var d,f,p=n(609),h=n.n(p);function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},m.apply(this,arguments)}function g(e,t){if(!1===e||null==e)throw new Error(t)}function v(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function b(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let o=e.indexOf("?");o>=0&&(t.search=e.substr(o),e=e.substr(0,o)),e&&(t.pathname=e)}return t}function y(e,t,n){void 0===n&&(n="/");let o=N(("string"==typeof t?b(t):t).pathname||"/",n);if(null==o)return null;let r=x(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(r);let i=null;for(let e=0;null==i&&e<r.length;++e){let t=I(o);i=M(r[e],t)}return i}function x(e,t,n,o){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===o&&(o="");let r=(e,r,i)=>{let a={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:r,route:e};a.relativePath.startsWith("/")&&(g(a.relativePath.startsWith(o),'Absolute route path "'+a.relativePath+'" nested under path "'+o+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(o.length));let s=R([o,a.relativePath]),l=n.concat(a);e.children&&e.children.length>0&&(g(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),x(e.children,t,l,s)),(null!=e.path||e.index)&&t.push({path:s,score:j(s,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of w(e.path))r(e,t,n);else r(e,t)})),t}function w(e){let t=e.split("/");if(0===t.length)return[];let[n,...o]=t,r=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===o.length)return r?[i,""]:[i];let a=w(o.join("/")),s=[];return s.push(...a.map((e=>""===e?i:[i,e].join("/")))),r&&s.push(...a),s.map((t=>e.startsWith("/")&&""===t?"/":t))}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(d||(d={})),function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(f||(f={})),new Set(["lazy","caseSensitive","path","id","index","children"]);const C=/^:[\w-]+$/,S=3,E=2,k=1,$=10,_=-2,O=e=>"*"===e;function j(e,t){let n=e.split("/"),o=n.length;return n.some(O)&&(o+=_),t&&(o+=E),n.filter((e=>!O(e))).reduce(((e,t)=>e+(C.test(t)?S:""===t?k:$)),o)}function M(e,t){let{routesMeta:n}=e,o={},r="/",i=[];for(let e=0;e<n.length;++e){let a=n[e],s=e===n.length-1,l="/"===r?t:t.slice(r.length)||"/",c=P({path:a.relativePath,caseSensitive:a.caseSensitive,end:s},l);if(!c)return null;Object.assign(o,c.params);let u=a.route;i.push({params:o,pathname:R([r,c.pathname]),pathnameBase:A(R([r,c.pathnameBase])),route:u}),"/"!==c.pathnameBase&&(r=R([r,c.pathnameBase]))}return i}function P(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,o]=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!0),v("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let o=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(o.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(o.push({paramName:"*"}),r+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":""!==e&&"/"!==e&&(r+="(?:(?=\\/|$))"),[new RegExp(r,t?void 0:"i"),o]}(e.path,e.caseSensitive,e.end),r=t.match(n);if(!r)return null;let i=r[0],a=i.replace(/(.)\/+$/,"$1"),s=r.slice(1),l=o.reduce(((e,t,n)=>{let{paramName:o,isOptional:r}=t;if("*"===o){let e=s[n]||"";a=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const l=s[n];return e[o]=r&&!l?void 0:(l||"").replace(/%2F/g,"/"),e}),{});return{params:l,pathname:i,pathnameBase:a,pattern:e}}function I(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return v(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function N(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,o=e.charAt(n);return o&&"/"!==o?null:e.slice(n)||"/"}function T(e,t,n,o){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(o)+"].  Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}const R=e=>e.join("/").replace(/\/\/+/g,"/"),A=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),D=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",B=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;const L=["post","put","patch","delete"],z=(new Set(L),["get",...L]);function F(){return F=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},F.apply(this,arguments)}new Set(z),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred");const H=p.createContext(null),V=p.createContext(null),W=p.createContext(null),K=p.createContext(null),q=p.createContext({outlet:null,matches:[],isDataRoute:!1}),U=p.createContext(null);function G(){return null!=p.useContext(K)}function X(){return G()||g(!1),p.useContext(K).location}function Y(e){G()||g(!1);let{pathname:t}=X();return p.useMemo((()=>P(e,t)),[t,e])}function Z(e){p.useContext(W).static||p.useLayoutEffect(e)}function Q(){let{isDataRoute:e}=p.useContext(q);return e?function(){let{router:e}=function(e){let t=p.useContext(H);return t||g(!1),t}(ie.UseNavigateStable),t=se(ae.UseNavigateStable),n=p.useRef(!1);Z((()=>{n.current=!0}));let o=p.useCallback((function(o,r){void 0===r&&(r={}),n.current&&("number"==typeof o?e.navigate(o):e.navigate(o,F({fromRouteId:t},r)))}),[e,t]);return o}():function(){G()||g(!1);let e=p.useContext(H),{basename:t,future:n,navigator:o}=p.useContext(W),{matches:r}=p.useContext(q),{pathname:i}=X(),a=JSON.stringify(function(e,t){let n=function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(e);return t?n.map(((t,n)=>n===e.length-1?t.pathname:t.pathnameBase)):n.map((e=>e.pathnameBase))}(r,n.v7_relativeSplatPath)),s=p.useRef(!1);Z((()=>{s.current=!0}));let l=p.useCallback((function(n,r){if(void 0===r&&(r={}),!s.current)return;if("number"==typeof n)return void o.go(n);let l=function(e,t,n,o){let r;void 0===o&&(o=!1),"string"==typeof e?r=b(e):(r=m({},e),g(!r.pathname||!r.pathname.includes("?"),T("?","pathname","search",r)),g(!r.pathname||!r.pathname.includes("#"),T("#","pathname","hash",r)),g(!r.search||!r.search.includes("#"),T("#","search","hash",r)));let i,a=""===e||""===r.pathname,s=a?"/":r.pathname;if(null==s)i=n;else{let e=t.length-1;if(!o&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;r.pathname=t.join("/")}i=e>=0?t[e]:"/"}let l=function(e,t){void 0===t&&(t="/");let{pathname:n,search:o="",hash:r=""}="string"==typeof e?b(e):e,i=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:i,search:D(o),hash:B(r)}}(r,i),c=s&&"/"!==s&&s.endsWith("/"),u=(a||"."===s)&&n.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}(n,JSON.parse(a),i,"path"===r.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:R([t,l.pathname])),(r.replace?o.replace:o.push)(l,r.state,r)}),[t,o,a,i,e]);return l}()}function J(){let{matches:e}=p.useContext(q),t=e[e.length-1];return t?t.params:{}}function ee(e,t,n,o){G()||g(!1);let{navigator:r}=p.useContext(W),{matches:i}=p.useContext(q),a=i[i.length-1],s=a?a.params:{},l=(a&&a.pathname,a?a.pathnameBase:"/");a&&a.route;let c,u=X();if(t){var f;let e="string"==typeof t?b(t):t;"/"===l||(null==(f=e.pathname)?void 0:f.startsWith(l))||g(!1),c=e}else c=u;let h=c.pathname||"/",m=h;if("/"!==l){let e=l.replace(/^\//,"").split("/");m="/"+h.replace(/^\//,"").split("/").slice(e.length).join("/")}let v=y(e,{pathname:m}),x=function(e,t,n,o){var r;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===o&&(o=null),null==e){var i;if(null==(i=n)||!i.errors)return null;e=n.matches}let a=e,s=null==(r=n)?void 0:r.errors;if(null!=s){let e=a.findIndex((e=>e.route.id&&(null==s?void 0:s[e.route.id])));e>=0||g(!1),a=a.slice(0,Math.min(a.length,e+1))}let l=!1,c=-1;if(n&&o&&o.v7_partialHydration)for(let e=0;e<a.length;e++){let t=a[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(c=e),t.route.id){let{loaderData:e,errors:o}=n,r=t.route.loader&&void 0===e[t.route.id]&&(!o||void 0===o[t.route.id]);if(t.route.lazy||r){l=!0,a=c>=0?a.slice(0,c+1):[a[0]];break}}}return a.reduceRight(((e,o,r)=>{let i,u=!1,d=null,f=null;var h;n&&(i=s&&o.route.id?s[o.route.id]:void 0,d=o.route.errorElement||ne,l&&(c<0&&0===r?(le[h="route-fallback"]||(le[h]=!0),u=!0,f=null):c===r&&(u=!0,f=o.route.hydrateFallbackElement||null)));let m=t.concat(a.slice(0,r+1)),g=()=>{let t;return t=i?d:u?f:o.route.Component?p.createElement(o.route.Component,null):o.route.element?o.route.element:e,p.createElement(re,{match:o,routeContext:{outlet:e,matches:m,isDataRoute:null!=n},children:t})};return n&&(o.route.ErrorBoundary||o.route.errorElement||0===r)?p.createElement(oe,{location:n.location,revalidation:n.revalidation,component:d,error:i,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()}),null)}(v&&v.map((e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:R([l,r.encodeLocation?r.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?l:R([l,r.encodeLocation?r.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),i,n,o);return t&&x?p.createElement(K.Provider,{value:{location:F({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:d.Pop}},x):x}function te(){let e=function(){var e;let t=p.useContext(U),n=function(e){let t=p.useContext(V);return t||g(!1),t}(ae.UseRouteError),o=se(ae.UseRouteError);return void 0!==t?t:null==(e=n.errors)?void 0:e[o]}(),t=function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),n?p.createElement("pre",{style:o},n):null,null)}const ne=p.createElement(te,null);class oe extends p.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?p.createElement(q.Provider,{value:this.props.routeContext},p.createElement(U.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function re(e){let{routeContext:t,match:n,children:o}=e,r=p.useContext(H);return r&&r.static&&r.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=n.route.id),p.createElement(q.Provider,{value:t},o)}var ie=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(ie||{}),ae=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ae||{});function se(e){let t=function(e){let t=p.useContext(q);return t||g(!1),t}(),n=t.matches[t.matches.length-1];return n.route.id||g(!1),n.route.id}const le={};function ce(e){g(!1)}function ue(e){let{basename:t="/",children:n=null,location:o,navigationType:r=d.Pop,navigator:i,static:a=!1,future:s}=e;G()&&g(!1);let l=t.replace(/^\/*/,"/"),c=p.useMemo((()=>({basename:l,navigator:i,static:a,future:F({v7_relativeSplatPath:!1},s)})),[l,s,i,a]);"string"==typeof o&&(o=b(o));let{pathname:u="/",search:f="",hash:h="",state:m=null,key:v="default"}=o,y=p.useMemo((()=>{let e=N(u,l);return null==e?null:{location:{pathname:e,search:f,hash:h,state:m,key:v},navigationType:r}}),[l,u,f,h,m,v,r]);return null==y?null:p.createElement(W.Provider,{value:c},p.createElement(K.Provider,{children:n,value:y}))}function de(e){let{children:t,location:n}=e;return ee(fe(t),n)}function fe(e,t){void 0===t&&(t=[]);let n=[];return p.Children.forEach(e,((e,o)=>{if(!p.isValidElement(e))return;let r=[...t,o];if(e.type===p.Fragment)return void n.push.apply(n,fe(e.props.children,r));e.type!==ce&&g(!1),e.props.index&&e.props.children&&g(!1);let i={id:e.props.id||r.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(i.children=fe(e.props.children,r)),n.push(i)})),n}p.startTransition,new Promise((()=>{})),p.Component;const pe=window.ReactDOM;var he=n.n(pe);new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(iO){}new Map;const me=p.startTransition;function ge(e){let{basename:t,children:n,future:o,history:r}=e,[i,a]=p.useState({action:r.action,location:r.location}),{v7_startTransition:s}=o||{},l=p.useCallback((e=>{s&&me?me((()=>a(e))):a(e)}),[a,s]);return p.useLayoutEffect((()=>r.listen(l)),[r,l]),p.createElement(ue,{basename:t,children:n,location:i.location,navigationType:i.action,navigator:r,future:o})}var ve,be;function ye(e){return ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ye(e)}function xe(){xe=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,o){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),s=new M(o||[]);return r(a,"_invoke",{value:$(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",g={};function v(){}function b(){}function y(){}var x={};c(x,a,(function(){return this}));var w=Object.getPrototypeOf,C=w&&w(w(P([])));C&&C!==n&&o.call(C,a)&&(x=C);var S=y.prototype=v.prototype=Object.create(x);function E(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(r,i,a,s){var l=d(e[r],e,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==ye(u)&&o.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var i;r(this,"_invoke",{value:function(e,o){function r(){return new t((function(t,r){n(e,o,t,r)}))}return i=i?i.then(r,r):r()}})}function $(t,n,o){var r=f;return function(i,a){if(r===h)throw Error("Generator is already running");if(r===m){if("throw"===i)throw a;return{value:e,done:!0}}for(o.method=i,o.arg=a;;){var s=o.delegate;if(s){var l=_(s,o);if(l){if(l===g)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(r===f)throw r=m,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);r=h;var c=d(t,n,o);if("normal"===c.type){if(r=o.done?m:p,c.arg===g)continue;return{value:c.arg,done:o.done}}"throw"===c.type&&(r=m,o.method="throw",o.arg=c.arg)}}}function _(t,n){var o=n.method,r=t.iterator[o];if(r===e)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=e,_(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),g;var i=d(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function P(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(o.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(ye(t)+" is not iterable")}return b.prototype=y,r(S,"constructor",{value:y,configurable:!0}),r(y,"constructor",{value:b,configurable:!0}),b.displayName=c(y,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,l,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},E(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,n,o,r,i){void 0===i&&(i=Promise);var a=new k(u(e,n,o,r),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(S),c(S,l,"Generator"),c(S,a,(function(){return this})),c(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var o in t)n.push(o);return n.reverse(),function e(){for(;n.length;){var o=n.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},t.values=P,M.prototype={constructor:M,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(o,r){return s.type="throw",s.arg=t,n.next=o,r&&(n.method="next",n.arg=e),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;j(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:P(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),g}},t}function we(e,t,n,o,r,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(o,r)}function Ce(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){we(i,o,r,a,s,"next",e)}function s(e){we(i,o,r,a,s,"throw",e)}a(void 0)}))}}function Se(e){var t=function(e,t){if("object"!=ye(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=ye(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ye(t)?t:t+""}function Ee(e,t,n){return(t=Se(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function $e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ke(Object(n),!0).forEach((function(t){Ee(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}pe.flushSync,p.useId,"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"}(ve||(ve={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(be||(be={}));var _e,Oe=$e({},pe),je=Oe.version,Me=Oe.render,Pe=Oe.unmountComponentAtNode;try{Number((je||"").split(".")[0])>=18&&(_e=Oe.createRoot)}catch(iO){}function Ie(e){var t=Oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===ye(t)&&(t.usingClientEntryPoint=e)}var Ne="__rc_react_root__";function Te(e,t){_e?function(e,t){Ie(!0);var n=t[Ne]||_e(t);Ie(!1),n.render(e),t[Ne]=n}(e,t):function(e,t){Me(e,t)}(e,t)}function Re(_x){return Ae.apply(this,arguments)}function Ae(){return(Ae=Ce(xe().mark((function e(t){return xe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[Ne])||void 0===e||e.unmount(),delete t[Ne]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function De(e){Pe(e)}function Be(e){return Le.apply(this,arguments)}function Le(){return(Le=Ce(xe().mark((function e(t){return xe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===_e){e.next=2;break}return e.abrupt("return",Re(t));case 2:De(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}const ze=h().createContext({}),Fe="anticon",He=p.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:Fe}),{Consumer:Ve}=He;function We(e){if(Array.isArray(e))return e}function Ke(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function qe(e,t){if(e){if("string"==typeof e)return Ke(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ke(e,t):void 0}}function Ue(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ge(e,t){return We(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(o=i.call(n)).done)&&(s.push(o.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||qe(e,t)||Ue()}function Xe(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Ye(e){return function(e){if(Array.isArray(e))return Ke(e)}(e)||Xe(e)||qe(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const Ze=function(e){for(var t,n=0,o=0,r=e.length;r>=4;++o,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};function Qe(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function Je(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 et="data-rc-order",tt="data-rc-priority",nt="rc-util-key",ot=new Map;function rt(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):nt}function it(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function at(e){return Array.from((ot.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function st(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Qe())return null;var n=t.csp,o=t.prepend,r=t.priority,i=void 0===r?0:r,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(o),s="prependQueue"===a,l=document.createElement("style");l.setAttribute(et,a),s&&i&&l.setAttribute(tt,"".concat(i)),null!=n&&n.nonce&&(l.nonce=null==n?void 0:n.nonce),l.innerHTML=e;var c=it(t),u=c.firstChild;if(o){if(s){var d=(t.styles||at(c)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(et)))return!1;var t=Number(e.getAttribute(tt)||0);return i>=t}));if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function lt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=it(t);return(t.styles||at(n)).find((function(n){return n.getAttribute(rt(t))===e}))}function ct(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=lt(e,t);n&&it(t).removeChild(n)}function ut(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=it(n),r=at(o),i=$e($e({},n),{},{styles:r});!function(e,t){var n=ot.get(e);if(!n||!Je(document,n)){var o=st("",t),r=o.parentNode;ot.set(e,r),e.removeChild(o)}}(o,i);var a,s,l,c=lt(t,i);if(c)return null!==(a=i.csp)&&void 0!==a&&a.nonce&&c.nonce!==(null===(s=i.csp)||void 0===s?void 0:s.nonce)&&(c.nonce=null===(l=i.csp)||void 0===l?void 0:l.nonce),c.innerHTML!==e&&(c.innerHTML=e),c;var u=st(e,i);return u.setAttribute(rt(i),t),u}function dt(e,t,n){var o=p.useRef({});return"value"in o.current&&!n(o.current.condition,t)||(o.current.value=e(),o.current.condition=t),o.current.value}var ft={},pt=[];function ht(e,t){}function mt(e,t){}function gt(e,t,n){t||ft[n]||(e(!1,n),ft[n]=!0)}function vt(e,t){gt(ht,e,t)}vt.preMessage=function(e){pt.push(e)},vt.resetWarned=function(){ft={}},vt.noteOnce=function(e,t){gt(mt,e,t)};const bt=vt,yt=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=new Set;return function e(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=o.has(t);if(bt(!a,"Warning: There may be circular references"),a)return!1;if(t===r)return!0;if(n&&i>1)return!1;o.add(t);var s=i+1;if(Array.isArray(t)){if(!Array.isArray(r)||t.length!==r.length)return!1;for(var l=0;l<t.length;l++)if(!e(t[l],r[l],s))return!1;return!0}if(t&&r&&"object"===ye(t)&&"object"===ye(r)){var c=Object.keys(t);return c.length===Object.keys(r).length&&c.every((function(n){return e(t[n],r[n],s)}))}return!1}(e,t)};function xt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Se(o.key),o)}}function Ct(e,t,n){return t&&wt(e.prototype,t),n&&wt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var St="%";function Et(e){return e.join(St)}var kt=function(){function e(t){xt(this,e),Ee(this,"instanceId",void 0),Ee(this,"cache",new Map),this.instanceId=t}return Ct(e,[{key:"get",value:function(e){return this.opGet(Et(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(Et(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}();const $t=kt;var _t="data-token-hash",Ot="data-css-hash",jt="__cssinjs_instance__";var Mt=p.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Ot,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[jt]=t[jt]||e,t[jt]===e&&document.head.insertBefore(t,n)}));var o={};Array.from(document.querySelectorAll("style[".concat(Ot,"]"))).forEach((function(t){var n,r=t.getAttribute(Ot);o[r]?t[jt]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):o[r]=!0}))}return new $t(e)}(),defaultCache:!0});const Pt=Mt;var It=function(){function e(){xt(this,e),Ee(this,"cache",void 0),Ee(this,"keys",void 0),Ee(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Ct(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r={map:this.cache};return e.forEach((function(e){var t;r=r?null===(t=r)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):void 0})),null!==(t=r)&&void 0!==t&&t.value&&o&&(r.value[1]=this.cacheCallTimes++),null===(n=r)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var o=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var r=this.keys.reduce((function(e,t){var n=Ge(e,2)[1];return o.internalGet(t)[1]<n?[t,o.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]),i=Ge(r,1)[0];this.delete(i)}this.keys.push(t)}var a=this.cache;t.forEach((function(e,r){if(r===t.length-1)a.set(e,{value:[n,o.cacheCallTimes++]});else{var i=a.get(e);i?i.map||(i.map=new Map):a.set(e,{map:new Map}),a=a.get(e).map}}))}},{key:"deleteByPath",value:function(e,t){var n,o=e.get(t[0]);if(1===t.length)return o.map?e.set(t[0],{map:o.map}):e.delete(t[0]),null===(n=o.value)||void 0===n?void 0:n[0];var r=this.deleteByPath(o.map,t.slice(1));return o.map&&0!==o.map.size||o.value||e.delete(t[0]),r}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter((function(t){return!function(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}(t,e)})),this.deleteByPath(this.cache,e)}}]),e}();Ee(It,"MAX_CACHE_SIZE",20),Ee(It,"MAX_CACHE_OFFSET",5);var Nt=0,Tt=function(){function e(t){xt(this,e),Ee(this,"derivatives",void 0),Ee(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Nt,0===t.length&&t.length,Nt+=1}return Ct(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),Rt=new It;function At(e){var t=Array.isArray(e)?e:[e];return Rt.has(t)||Rt.set(t,new Tt(t)),Rt.get(t)}var Dt=new WeakMap,Bt={},Lt=new WeakMap;function zt(e){var t=Lt.get(e)||"";return t||(Object.keys(e).forEach((function(n){var o=e[n];t+=n,o instanceof Tt?t+=o.id:o&&"object"===ye(o)?t+=zt(o):t+=o})),Lt.set(e,t)),t}function Ft(e,t){return Ze("".concat(t,"_").concat(zt(e)))}var Ht="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),Vt="_bAmBoO_";var Wt=void 0,Kt=Qe();function qt(e){return"number"==typeof e?"".concat(e,"px"):e}function Ut(e,t,n){var o;if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var r=$e($e({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},(Ee(o={},_t,t),Ee(o,Ot,n),o)),i=Object.keys(r).map((function(e){var t=r[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"<style ".concat(i,">").concat(e,"</style>")}var Gt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).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()},Xt=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map((function(e){var t=Ge(e,2),n=t[0],o=t[1];return"".concat(n,":").concat(o,";")})).join(""),"}"):""},Yt=function(e,t,n){var o={},r={};return Object.entries(e).forEach((function(e){var t,i,a=Ge(e,2),s=a[0],l=a[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[s])r[s]=l;else if(!("string"!=typeof l&&"number"!=typeof l||null!=n&&null!==(i=n.ignore)&&void 0!==i&&i[s])){var c,u=Gt(s,null==n?void 0:n.prefix);o[u]="number"!=typeof l||null!=n&&null!==(c=n.unitless)&&void 0!==c&&c[s]?String(l):"".concat(l,"px"),r[s]="var(".concat(u,")")}})),[r,Xt(o,t,{scope:null==n?void 0:n.scope})]},Zt=Qe()?p.useLayoutEffect:p.useEffect,Qt=function(e,t){var n=p.useRef(!0);Zt((function(){return e(n.current)}),t),Zt((function(){return n.current=!1,function(){n.current=!0}}),[])},Jt=function(e,t){Qt((function(t){if(!t)return e()}),t)};const en=Qt;var tn=$e({},p).useInsertionEffect;const nn=tn?function(e,t,n){return tn((function(){return e(),t()}),n)}:function(e,t,n){p.useMemo(e,n),en((function(){return t(!0)}),n)},on=void 0!==$e({},p).useInsertionEffect?function(e){var t=[],n=!1;return p.useEffect((function(){return n=!1,function(){n=!0,t.length&&t.forEach((function(e){return e()}))}}),e),function(e){n||t.push(e)}}:function(){return function(e){e()}},rn=function(){return!1};function an(e,t,n,o,r){var i=p.useContext(Pt).cache,a=Et([e].concat(Ye(t))),s=on([a]),l=(rn(),function(e){i.opUpdate(a,(function(t){var o=Ge(t||[void 0,void 0],2),r=o[0],i=[void 0===r?0:r,o[1]||n()];return e?e(i):i}))});p.useMemo((function(){l()}),[a]);var c=i.opGet(a)[1];return nn((function(){null==r||r(c)}),(function(e){return l((function(t){var n=Ge(t,2),o=n[0],i=n[1];return e&&0===o&&(null==r||r(c)),[o+1,i]})),function(){i.opUpdate(a,(function(t){var n=Ge(t||[],2),r=n[0],l=void 0===r?0:r,c=n[1];return 0==l-1?(s((function(){!e&&i.opGet(a)||null==o||o(c,!1)})),null):[l-1,c]}))}}),[a]),c}var sn={},ln="css",cn=new Map,un=0;var dn=function(e,t,n,o){var r=$e($e({},n.getDerivativeToken(e)),t);return o&&(r=o(r)),r},fn="token";function pn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(0,p.useContext)(Pt),r=o.cache.instanceId,i=o.container,a=n.salt,s=void 0===a?"":a,l=n.override,c=void 0===l?sn:l,u=n.formatToken,d=n.getComputedToken,f=n.cssVar,h=function(e,n){for(var o=Dt,r=0;r<n.length;r+=1){var i=n[r];o.has(i)||o.set(i,new WeakMap),o=o.get(i)}return o.has(Bt)||o.set(Bt,Object.assign.apply(Object,[{}].concat(Ye(t)))),o.get(Bt)}(0,t),m=zt(h),g=zt(c),v=f?zt(f):"",b=an(fn,[s,e.id,m,g,v],(function(){var t,n=d?d(h,c,e):dn(h,c,e,u),o=$e({},n),r="";if(f){var i=Ge(Yt(n,f.key,{prefix:f.prefix,ignore:f.ignore,unitless:f.unitless,preserve:f.preserve}),2);n=i[0],r=i[1]}var a=Ft(n,s);n._tokenKey=a,o._tokenKey=Ft(o,s);var l=null!==(t=null==f?void 0:f.key)&&void 0!==t?t:a;n._themeKey=l,function(e){cn.set(e,(cn.get(e)||0)+1)}(l);var p="".concat(ln,"-").concat(Ze(a));return n._hashId=p,[n,p,o,r,(null==f?void 0:f.key)||""]}),(function(e){!function(e,t){cn.set(e,(cn.get(e)||0)-1);var n=Array.from(cn.keys()),o=n.filter((function(e){return(cn.get(e)||0)<=0}));n.length-o.length>un&&o.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(_t,'="').concat(e,'"]')).forEach((function(e){var n;e[jt]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),cn.delete(e)}))}(e[0]._themeKey,r)}),(function(e){var t=Ge(e,4),n=t[0],o=t[3];if(f&&o){var a=ut(o,Ze("css-variables-".concat(n._themeKey)),{mark:Ot,prepend:"queue",attachTo:i,priority:-999});a[jt]=r,a.setAttribute(_t,n._themeKey)}}));return b}function hn(){return hn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},hn.apply(null,arguments)}const mn={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};var gn="-ms-",vn="-moz-",bn="-webkit-",yn="comm",xn="rule",wn="decl",Cn="@import",Sn="@keyframes",En="@layer",kn=Math.abs,$n=String.fromCharCode,On=Object.assign;function jn(e){return e.trim()}function Mn(e,t,n){return e.replace(t,n)}function Pn(e,t){return e.indexOf(t)}function In(e,t){return 0|e.charCodeAt(t)}function Nn(e,t,n){return e.slice(t,n)}function Tn(e){return e.length}function Rn(e){return e.length}function An(e,t){return t.push(e),e}function Dn(e,t){for(var n="",o=Rn(e),r=0;r<o;r++)n+=t(e[r],r,e,t)||"";return n}function Bn(e,t,n,o){switch(e.type){case En:if(e.children.length)break;case Cn:case wn:return e.return=e.return||e.value;case yn:return"";case Sn:return e.return=e.value+"{"+Dn(e.children,o)+"}";case xn:e.value=e.props.join(",")}return Tn(n=Dn(e.children,o))?e.return=e.value+"{"+n+"}":""}var Ln=1,zn=1,Fn=0,Hn=0,Vn=0,Wn="";function Kn(e,t,n,o,r,i,a){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:Ln,column:zn,length:a,return:""}}function qn(e,t){return On(Kn("",null,null,"",null,null,0),e,{length:-e.length},t)}function Un(){return Vn=Hn>0?In(Wn,--Hn):0,zn--,10===Vn&&(zn=1,Ln--),Vn}function Gn(){return Vn=Hn<Fn?In(Wn,Hn++):0,zn++,10===Vn&&(zn=1,Ln++),Vn}function Xn(){return In(Wn,Hn)}function Yn(){return Hn}function Zn(e,t){return Nn(Wn,e,t)}function Qn(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 Jn(e){return Ln=zn=1,Fn=Tn(Wn=e),Hn=0,[]}function eo(e){return Wn="",e}function to(e){return jn(Zn(Hn-1,ro(91===e?e+2:40===e?e+1:e)))}function no(e){for(;(Vn=Xn())&&Vn<33;)Gn();return Qn(e)>2||Qn(Vn)>3?"":" "}function oo(e,t){for(;--t&&Gn()&&!(Vn<48||Vn>102||Vn>57&&Vn<65||Vn>70&&Vn<97););return Zn(e,Yn()+(t<6&&32==Xn()&&32==Gn()))}function ro(e){for(;Gn();)switch(Vn){case e:return Hn;case 34:case 39:34!==e&&39!==e&&ro(Vn);break;case 40:41===e&&ro(e);break;case 92:Gn()}return Hn}function io(e,t){for(;Gn()&&e+Vn!==57&&(e+Vn!==84||47!==Xn()););return"/*"+Zn(t,Hn-1)+"*"+$n(47===e?e:Gn())}function ao(e){for(;!Qn(Xn());)Gn();return Zn(e,Hn)}function so(e){return eo(lo("",null,null,null,[""],e=Jn(e),0,[0],e))}function lo(e,t,n,o,r,i,a,s,l){for(var c=0,u=0,d=a,f=0,p=0,h=0,m=1,g=1,v=1,b=0,y="",x=r,w=i,C=o,S=y;g;)switch(h=b,b=Gn()){case 40:if(108!=h&&58==In(S,d-1)){-1!=Pn(S+=Mn(to(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:S+=to(b);break;case 9:case 10:case 13:case 32:S+=no(h);break;case 92:S+=oo(Yn()-1,7);continue;case 47:switch(Xn()){case 42:case 47:An(uo(io(Gn(),Yn()),t,n),l);break;default:S+="/"}break;case 123*m:s[c++]=Tn(S)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==v&&(S=Mn(S,/\f/g,"")),p>0&&Tn(S)-d&&An(p>32?fo(S+";",o,n,d-1):fo(Mn(S," ","")+";",o,n,d-2),l);break;case 59:S+=";";default:if(An(C=co(S,t,n,c,u,r,s,y,x=[],w=[],d),i),123===b)if(0===u)lo(S,t,C,C,x,i,d,s,w);else switch(99===f&&110===In(S,3)?100:f){case 100:case 108:case 109:case 115:lo(e,C,C,o&&An(co(e,C,C,0,0,r,s,y,r,x=[],d),w),r,w,d,s,o?x:w);break;default:lo(S,C,C,C,[""],w,0,s,w)}}c=u=p=0,m=v=1,y=S="",d=a;break;case 58:d=1+Tn(S),p=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==Un())continue;switch(S+=$n(b),b*m){case 38:v=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(Tn(S)-1)*v,v=1;break;case 64:45===Xn()&&(S+=to(Gn())),f=Xn(),u=d=Tn(y=S+=ao(Yn())),b++;break;case 45:45===h&&2==Tn(S)&&(m=0)}}return i}function co(e,t,n,o,r,i,a,s,l,c,u){for(var d=r-1,f=0===r?i:[""],p=Rn(f),h=0,m=0,g=0;h<o;++h)for(var v=0,b=Nn(e,d+1,d=kn(m=a[h])),y=e;v<p;++v)(y=jn(m>0?f[v]+" "+b:Mn(b,/&\f/g,f[v])))&&(l[g++]=y);return Kn(e,t,n,0===r?xn:s,l,c,u)}function uo(e,t,n){return Kn(e,t,n,yn,$n(Vn),Nn(e,2,-2),0)}function fo(e,t,n,o){return Kn(e,t,n,wn,Nn(e,0,o),Nn(e,o+1,-1),o)}var po,ho="data-ant-cssinjs-cache-path",mo="_FILE_STYLE__",go=!0;var vo="_multi_value_";function bo(e){return Dn(so(e),Bn).replace(/\{%%%\:[^;];}/g,";")}var yo=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},r=o.root,i=o.injectHash,a=o.parentSelectors,s=n.hashId,l=n.layer,c=(n.path,n.hashPriority),u=n.transformers,d=void 0===u?[]:u,f=(n.linters,""),p={};function h(t){var o=t.getName(s);if(!p[o]){var r=Ge(e(t.style,n,{root:!1,parentSelectors:a}),1)[0];p[o]="@keyframes ".concat(t.getName(s)).concat(r)}}var m=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((function(t){Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(t)?t:[t]);if(m.forEach((function(t){var o="string"!=typeof t||r?t:{};if("string"==typeof o)f+="".concat(o,"\n");else if(o._keyframe)h(o);else{var l=d.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),o);Object.keys(l).forEach((function(t){var o=l[t];if("object"!==ye(o)||!o||"animationName"===t&&o._keyframe||function(e){return"object"===ye(e)&&e&&("_skip_check_"in e||vo in e)}(o)){var u;function w(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),o=t;mn[e]||"number"!=typeof o||0===o||(o="".concat(o,"px")),"animationName"===e&&null!=t&&t._keyframe&&(h(t),o=t.getName(s)),f+="".concat(n,":").concat(o,";")}var d=null!==(u=null==o?void 0:o.value)&&void 0!==u?u:o;"object"===ye(o)&&null!=o&&o[vo]&&Array.isArray(d)?d.forEach((function(e){w(t,e)})):w(t,d)}else{var m=!1,g=t.trim(),v=!1;(r||i)&&s?g.startsWith("@")?m=!0:g=function(e,t,n){if(!t)return e;var o=".".concat(t),r="low"===n?":where(".concat(o,")"):o;return e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),o=n[0]||"",i=(null===(t=o.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[o="".concat(i).concat(r).concat(o.slice(i.length))].concat(Ye(n.slice(1))).join(" ")})).join(",")}(t,s,c):!r||s||"&"!==g&&""!==g||(g="",v=!0);var b=Ge(e(o,n,{root:v,injectHash:m,parentSelectors:[].concat(Ye(a),[g])}),2),y=b[0],x=b[1];p=$e($e({},p),x),f+="".concat(g).concat(y)}}))}})),r){if(l&&(void 0===Wt&&(Wt=function(e,t,n){if(Qe()){var o,r;ut(e,Ht);var i=document.createElement("div");i.style.position="fixed",i.style.left="0",i.style.top="0",null==t||t(i),document.body.appendChild(i);var a=n?n(i):null===(o=getComputedStyle(i).content)||void 0===o?void 0:o.includes(Vt);return null===(r=i.parentNode)||void 0===r||r.removeChild(i),ct(Ht),a}return!1}("@layer ".concat(Ht," { .").concat(Ht,' { content: "').concat(Vt,'"!important; } }'),(function(e){e.className=Ht}))),Wt)){var g=l.split(","),v=g[g.length-1].trim();f="@layer ".concat(v," {").concat(f,"}"),g.length>1&&(f="@layer ".concat(l,"{%%%:%}").concat(f))}}else f="{".concat(f,"}");return[f,p]};function xo(e,t){return Ze("".concat(e.join("%")).concat(t))}function wo(){return null}var Co="style";function So(e,t){var n=e.token,o=e.path,r=e.hashId,i=e.layer,a=e.nonce,s=e.clientOnly,l=e.order,c=void 0===l?0:l,u=p.useContext(Pt),d=u.autoClear,f=(u.mock,u.defaultCache),h=u.hashPriority,m=u.container,g=u.ssrInline,v=u.transformers,b=u.linters,y=u.cache,x=n._tokenKey,w=[x].concat(Ye(o)),C=Kt,S=an(Co,w,(function(){var e=w.join("|");if(function(e){return function(){if(!po&&(po={},Qe())){var e=document.createElement("div");e.className=ho,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(/"$/,"")).split(";").forEach((function(e){var t=Ge(e.split(":"),2),n=t[0],o=t[1];po[n]=o}));var n,o=document.querySelector("style[".concat(ho,"]"));o&&(go=!1,null===(n=o.parentNode)||void 0===n||n.removeChild(o)),document.body.removeChild(e)}}(),!!po[e]}(e)){var n=function(e){var t=po[e],n=null;if(t&&Qe())if(go)n=mo;else{var o=document.querySelector("style[".concat(Ot,'="').concat(po[e],'"]'));o?n=o.innerHTML:delete po[e]}return[n,t]}(e),a=Ge(n,2),l=a[0],u=a[1];if(l)return[l,x,u,{},s,c]}var d=t(),f=Ge(yo(d,{hashId:r,hashPriority:h,layer:i,path:o.join("-"),transformers:v,linters:b}),2),p=f[0],m=f[1],g=bo(p),y=xo(w,g);return[g,x,y,m,s,c]}),(function(e,t){var n=Ge(e,3)[2];(t||d)&&Kt&&ct(n,{mark:Ot})}),(function(e){var t=Ge(e,4),n=t[0],o=(t[1],t[2]),r=t[3];if(C&&n!==mo){var i={mark:Ot,prepend:"queue",attachTo:m,priority:c},s="function"==typeof a?a():a;s&&(i.csp={nonce:s});var l=ut(n,o,i);l[jt]=y.instanceId,l.setAttribute(_t,x),Object.keys(r).forEach((function(e){ut(bo(r[e]),"_effect-".concat(e),i)}))}})),E=Ge(S,3),k=E[0],$=E[1],_=E[2];return function(e){var t,n;return t=g&&!C&&f?p.createElement("style",hn({},(Ee(n={},_t,$),Ee(n,Ot,_),n),{dangerouslySetInnerHTML:{__html:k}})):p.createElement(wo,null),p.createElement(p.Fragment,null,t,e)}}var Eo="cssVar";var ko;Ee(ko={},Co,(function(e,t,n){var o=Ge(e,6),r=o[0],i=o[1],a=o[2],s=o[3],l=o[4],c=o[5],u=(n||{}).plain;if(l)return null;var d=r,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)};return d=Ut(r,i,a,f,u),s&&Object.keys(s).forEach((function(e){if(!t[e]){t[e]=!0;var n=bo(s[e]);d+=Ut(n,i,"_effect-".concat(e),f,u)}})),[c,a,d]})),Ee(ko,fn,(function(e,t,n){var o=Ge(e,5),r=o[2],i=o[3],a=o[4],s=(n||{}).plain;if(!i)return null;var l=r._tokenKey;return[-999,l,Ut(i,a,l,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]})),Ee(ko,Eo,(function(e,t,n){var o=Ge(e,4),r=o[1],i=o[2],a=o[3],s=(n||{}).plain;return r?[-999,i,Ut(r,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]:null}));var $o=function(){function e(t,n){xt(this,e),Ee(this,"name",void 0),Ee(this,"style",void 0),Ee(this,"_keyframe",!0),this.name=t,this.style=n}return Ct(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();const _o=$o;function Oo(e){return e.notSplit=!0,e}Oo(["borderTop","borderBottom"]),Oo(["borderTop"]),Oo(["borderBottom"]),Oo(["borderLeft","borderRight"]),Oo(["borderLeft"]),Oo(["borderRight"]);const jo=(0,p.createContext)({});function Mo(e){return We(e)||Xe(e)||qe(e)||Ue()}function Po(e,t){for(var n=e,o=0;o<t.length;o+=1){if(null==n)return;n=n[t[o]]}return n}function Io(e,t,n,o){if(!t.length)return n;var r,i=Mo(t),a=i[0],s=i.slice(1);return r=e||"number"!=typeof a?Array.isArray(e)?Ye(e):$e({},e):[],o&&void 0===n&&1===s.length?delete r[a][s[0]]:r[a]=Io(r[a],s,n,o),r}function No(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&o&&void 0===n&&!Po(e,t.slice(0,-1))?e:Io(e,t,n,o)}function To(e){return Array.isArray(e)?[]:{}}var Ro="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function Ao(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=To(t[0]);return t.forEach((function(e){!function t(n,r){var i,a=new Set(r),s=Po(e,n),l=Array.isArray(s);if(l||"object"===ye(i=s)&&null!==i&&Object.getPrototypeOf(i)===Object.prototype){if(!a.has(s)){a.add(s);var c=Po(o,n);l?o=No(o,n,[]):c&&"object"===ye(c)||(o=No(o,n,To(s))),Ro(s).forEach((function(e){t([].concat(Ye(n),[e]),a)}))}}else o=No(o,n,s)}([])})),o}function Do(){}const Bo=p.createContext({}),Lo=()=>{const e=()=>{};return e.deprecated=Do,e},zo=(0,p.createContext)(void 0),Fo={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"},Ho={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Vo={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,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"}),timePickerLocale:Object.assign({},Ho)},Wo="${label} is not a valid ${type}",Ko={locale:"en",Pagination:Fo,DatePicker:Vo,TimePicker:Ho,Calendar:Vo,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",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"},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:Wo,method:Wo,array:Wo,object:Wo,number:Wo,date:Wo,boolean:Wo,integer:Wo,float:Wo,regexp:Wo,email:Wo,url:Wo,hex:Wo},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty"}};let qo=Object.assign({},Ko.Modal),Uo=[];const Go=()=>Uo.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),Ko.Modal);function Xo(){return qo}const Yo=(0,p.createContext)(void 0),Zo=e=>{const{locale:t={},children:n,_ANT_MARK__:o}=e;p.useEffect((()=>{const e=function(e){if(e){const t=Object.assign({},e);return Uo.push(t),qo=Go(),()=>{Uo=Uo.filter((e=>e!==t)),qo=Go()}}qo=Object.assign({},Ko.Modal)}(t&&t.Modal);return e}),[t]);const r=p.useMemo((()=>Object.assign(Object.assign({},t),{exist:!0})),[t]);return p.createElement(Yo.Provider,{value:r},n)};function Qo(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function Jo(e){return Math.min(1,Math.max(0,e))}function er(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function tr(e){return e<=1?"".concat(100*Number(e),"%"):e}function nr(e){return 1===e.length?"0"+e:String(e)}function or(e,t,n){e=Qo(e,255),t=Qo(t,255),n=Qo(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),i=0,a=0,s=(o+r)/2;if(o===r)a=0,i=0;else{var l=o-r;switch(a=s>.5?l/(2-o-r):l/(o+r),o){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4}i/=6}return{h:i,s:a,l:s}}function rr(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ir(e,t,n){e=Qo(e,255),t=Qo(t,255),n=Qo(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),i=0,a=o,s=o-r,l=0===o?0:s/o;if(o===r)i=0;else{switch(o){case e:i=(t-n)/s+(t<n?6:0);break;case t:i=(n-e)/s+2;break;case n:i=(e-t)/s+4}i/=6}return{h:i,s:l,v:a}}function ar(e,t,n,o){var r=[nr(Math.round(e).toString(16)),nr(Math.round(t).toString(16)),nr(Math.round(n).toString(16))];return o&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function sr(e){return lr(e)/255}function lr(e){return parseInt(e,16)}var cr={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function ur(e){var t,n,o,r={r:0,g:0,b:0},i=1,a=null,s=null,l=null,c=!1,u=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(cr[e])e=cr[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=hr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=hr.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=hr.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=hr.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=hr.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=hr.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=hr.hex8.exec(e))?{r:lr(n[1]),g:lr(n[2]),b:lr(n[3]),a:sr(n[4]),format:t?"name":"hex8"}:(n=hr.hex6.exec(e))?{r:lr(n[1]),g:lr(n[2]),b:lr(n[3]),format:t?"name":"hex"}:(n=hr.hex4.exec(e))?{r:lr(n[1]+n[1]),g:lr(n[2]+n[2]),b:lr(n[3]+n[3]),a:sr(n[4]+n[4]),format:t?"name":"hex8"}:!!(n=hr.hex3.exec(e))&&{r:lr(n[1]+n[1]),g:lr(n[2]+n[2]),b:lr(n[3]+n[3]),format:t?"name":"hex"}}(e)),"object"==typeof e&&(mr(e.r)&&mr(e.g)&&mr(e.b)?(t=e.r,n=e.g,o=e.b,r={r:255*Qo(t,255),g:255*Qo(n,255),b:255*Qo(o,255)},c=!0,u="%"===String(e.r).substr(-1)?"prgb":"rgb"):mr(e.h)&&mr(e.s)&&mr(e.v)?(a=tr(e.s),s=tr(e.v),r=function(e,t,n){e=6*Qo(e,360),t=Qo(t,100),n=Qo(n,100);var o=Math.floor(e),r=e-o,i=n*(1-t),a=n*(1-r*t),s=n*(1-(1-r)*t),l=o%6;return{r:255*[n,a,i,i,s,n][l],g:255*[s,n,n,a,i,i][l],b:255*[i,i,s,n,n,a][l]}}(e.h,a,s),c=!0,u="hsv"):mr(e.h)&&mr(e.s)&&mr(e.l)&&(a=tr(e.s),l=tr(e.l),r=function(e,t,n){var o,r,i;if(e=Qo(e,360),t=Qo(t,100),n=Qo(n,100),0===t)r=n,i=n,o=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;o=rr(s,a,e+1/3),r=rr(s,a,e),i=rr(s,a,e-1/3)}return{r:255*o,g:255*r,b:255*i}}(e.h,a,l),c=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(i=e.a)),i=er(i),{ok:c,format:e.format||u,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:i}}var dr="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),fr="[\\s|\\(]+(".concat(dr,")[,|\\s]+(").concat(dr,")[,|\\s]+(").concat(dr,")\\s*\\)?"),pr="[\\s|\\(]+(".concat(dr,")[,|\\s]+(").concat(dr,")[,|\\s]+(").concat(dr,")[,|\\s]+(").concat(dr,")\\s*\\)?"),hr={CSS_UNIT:new RegExp(dr),rgb:new RegExp("rgb"+fr),rgba:new RegExp("rgba"+pr),hsl:new RegExp("hsl"+fr),hsla:new RegExp("hsla"+pr),hsv:new RegExp("hsv"+fr),hsva:new RegExp("hsva"+pr),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function mr(e){return Boolean(hr.CSS_UNIT.exec(String(e)))}var gr=2,vr=.16,br=.05,yr=.05,xr=.15,wr=5,Cr=4,Sr=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function Er(e){var t=ir(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function kr(e){var t=e.r,n=e.g,o=e.b;return"#".concat(ar(t,n,o,!1))}function $r(e,t,n){var o;return(o=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-gr*t:Math.round(e.h)+gr*t:n?Math.round(e.h)+gr*t:Math.round(e.h)-gr*t)<0?o+=360:o>=360&&(o-=360),o}function _r(e,t,n){return 0===e.h&&0===e.s?e.s:((o=n?e.s-vr*t:t===Cr?e.s+vr:e.s+br*t)>1&&(o=1),n&&t===wr&&o>.1&&(o=.1),o<.06&&(o=.06),Number(o.toFixed(2)));var o}function Or(e,t,n){var o;return(o=n?e.v+yr*t:e.v-xr*t)>1&&(o=1),Number(o.toFixed(2))}function jr(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],o=ur(e),r=wr;r>0;r-=1){var i=Er(o),a=kr(ur({h:$r(i,r,!0),s:_r(i,r,!0),v:Or(i,r,!0)}));n.push(a)}n.push(kr(o));for(var s=1;s<=Cr;s+=1){var l=Er(o),c=kr(ur({h:$r(l,s),s:_r(l,s),v:Or(l,s)}));n.push(c)}return"dark"===t.theme?Sr.map((function(e){var o,r,i,a=e.index,s=e.opacity;return kr((o=ur(t.backgroundColor||"#141414"),i=100*s/100,{r:((r=ur(n[a])).r-o.r)*i+o.r,g:(r.g-o.g)*i+o.g,b:(r.b-o.b)*i+o.b}))})):n}var Mr={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"},Pr={},Ir={};Object.keys(Mr).forEach((function(e){Pr[e]=jr(Mr[e]),Pr[e].primary=Pr[e][5],Ir[e]=jr(Mr[e],{theme:"dark",backgroundColor:"#141414"}),Ir[e].primary=Ir[e][5]})),Pr.red,Pr.volcano;var Nr=Pr.gold,Tr=(Pr.orange,Pr.yellow,Pr.lime,Pr.green,Pr.cyan,Pr.blue);Pr.geekblue,Pr.purple,Pr.magenta,Pr.grey,Pr.grey;const Rr={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"},Ar=Object.assign(Object.assign({},Rr),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'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});var Dr=function(){function e(t,n){var o;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var r=ur(t);this.originalInput=t,this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(o=n.format)&&void 0!==o?o:r.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=r.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,o=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=er(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=ir(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=ir(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=or(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=or(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),ar(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,o,r){var i,a=[nr(Math.round(e).toString(16)),nr(Math.round(t).toString(16)),nr(Math.round(n).toString(16)),nr((i=o,Math.round(255*parseFloat(i)).toString(16)))];return r&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*Qo(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*Qo(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+ar(this.r,this.g,this.b,!1),t=0,n=Object.entries(cr);t<n.length;t++){var o=n[t],r=o[0];if(e===o[1])return r}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!=e?e:this.format;var n=!1,o=this.a<1&&this.a>=0;return t||!o||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Jo(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Jo(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Jo(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Jo(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),o=(n.h+t)%360;return n.h=o<0?360+o:o,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var o=this.toRgb(),r=new e(t).toRgb(),i=n/100;return new e({r:(r.r-o.r)*i+o.r,g:(r.g-o.g)*i+o.g,b:(r.b-o.b)*i+o.b,a:(r.a-o.a)*i+o.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var o=this.toHsl(),r=360/n,i=[this];for(o.h=(o.h-(r*t>>1)+720)%360;--t;)o.h=(o.h+r)%360,i.push(new e(o));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),o=n.h,r=n.s,i=n.v,a=[],s=1/t;t--;)a.push(new e({h:o,s:r,v:i})),i=(i+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),o=new e(t).toRgb(),r=n.a+o.a*(1-n.a);return new e({r:(n.r*n.a+o.r*o.a*(1-n.a))/r,g:(n.g*n.a+o.g*o.a*(1-n.a))/r,b:(n.b*n.a+o.b*o.a*(1-n.a))/r,a:r})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),o=n.h,r=[this],i=360/t,a=1;a<t;a++)r.push(new e({h:(o+a*i)%360,s:n.s,l:n.l}));return r},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();const Br=(e,t)=>new Dr(e).setAlpha(t).toRgbString(),Lr=(e,t)=>new Dr(e).darken(t).toHexString(),zr=e=>{const t=jr(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]}},Fr=(e,t)=>{const n=e||"#fff",o=t||"#000";return{colorBgBase:n,colorTextBase:o,colorText:Br(o,.88),colorTextSecondary:Br(o,.65),colorTextTertiary:Br(o,.45),colorTextQuaternary:Br(o,.25),colorFill:Br(o,.15),colorFillSecondary:Br(o,.06),colorFillTertiary:Br(o,.04),colorFillQuaternary:Br(o,.02),colorBgLayout:Lr(n,4),colorBgContainer:Lr(n,0),colorBgElevated:Lr(n,0),colorBgSpotlight:Br(o,.85),colorBgBlur:"transparent",colorBorder:Lr(n,15),colorBorderSecondary:Lr(n,6)}};function Hr(e){return(e+8)/e}const Vr=At((function(e){const t=Object.keys(Rr).map((t=>{const n=jr(e[t]);return new Array(10).fill(1).reduce(((e,o,r)=>(e[`${t}-${r+1}`]=n[r],e[`${t}${r+1}`]=n[r],e)),{})})).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:o}=t;const{colorSuccess:r,colorWarning:i,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,d=n(l),f=n(r),p=n(i),h=n(a),m=n(s),g=o(c,u),v=n(e.colorLink||e.colorInfo);return Object.assign(Object.assign({},g),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg: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:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:v[4],colorLink:v[6],colorLinkActive:v[7],colorBgMask:new Dr("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:zr,generateNeutralColorPalettes:Fr})),(e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const o=n-1,r=e*Math.pow(2.71828,o/5),i=n>1?Math.floor(r):Math.ceil(r);return 2*Math.floor(i/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:Hr(e)})))}(e),n=t.map((e=>e.size)),o=t.map((e=>e.lineHeight)),r=n[1],i=n[0],a=n[2],s=o[1],l=o[0],c=o[2];return{fontSizeSM:i,fontSize:r,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*r),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*i),lineHeightHeading1:o[6],lineHeightHeading2:o[5],lineHeightHeading3:o[4],lineHeightHeading4:o[3],lineHeightHeading5:o[2]}})(e.fontSize)),function(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)}}(e)),(e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}})(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:o,lineWidth:r}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:r+1},(e=>{let t=e,n=e,o=e,r=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?o=1:e>=6&&(o=2),e>4&&e<8?r=4:e>=8&&(r=6),{borderRadius:e,borderRadiusXS:o,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:r}})(o))}(e))})),Wr={token:Ar,override:{override:Ar},hashed:!0},Kr=h().createContext(Wr),qr=`-ant-${Date.now()}-${Math.random()}`;const Ur=p.createContext(!1),Gr=e=>{let{children:t,disabled:n}=e;const o=p.useContext(Ur);return p.createElement(Ur.Provider,{value:null!=n?n:o},t)},Xr=Ur,Yr=p.createContext(void 0),Zr=e=>{let{children:t,size:n}=e;const o=p.useContext(Yr);return p.createElement(Yr.Provider,{value:n||o},t)},Qr=Yr,Jr=Object.assign({},p),{useId:ei}=Jr,ti=void 0===ei?()=>"":ei;var ni=n(942),oi=n.n(ni);function ri(e){return e instanceof HTMLElement||e instanceof SVGElement}function ii(e){return ri(e)?e:e instanceof h().Component?he().findDOMNode(e):null}var ai=n(363);function si(e,t){"function"==typeof e?e(t):"object"===ye(e)&&e&&"current"in e&&(e.current=t)}function li(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t.filter((function(e){return e}));return o.length<=1?o[0]:function(e){t.forEach((function(t){si(t,e)}))}}function ci(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return dt((function(){return li.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))}function ui(e){var t,n,o=(0,ai.isMemo)(e)?e.type.type:e.type;return!!("function"!=typeof o||null!==(t=o.prototype)&&void 0!==t&&t.render||o.$$typeof===ai.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===ai.ForwardRef)}function di(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.includes(o))continue;n[o]=e[o]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var fi=["children"],pi=p.createContext({});function hi(e){var t=e.children,n=di(e,fi);return p.createElement(pi.Provider,{value:n},t)}function mi(e,t){return mi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},mi(e,t)}function gi(e,t){if("function"!=typeof t&&null!==t)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&&mi(e,t)}function vi(e){return vi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},vi(e)}function bi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(bi=function(){return!!e})()}function yi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xi(e,t){if(t&&("object"==ye(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return yi(e)}function wi(e){var t=bi();return function(){var n,o=vi(e);if(t){var r=vi(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return xi(this,n)}}const Ci=function(e){gi(n,e);var t=wi(n);function n(){return xt(this,n),t.apply(this,arguments)}return Ct(n,[{key:"render",value:function(){return this.props.children}}]),n}(p.Component);function Si(e){var t=p.useRef(!1),n=Ge(p.useState(e),2),o=n[0],r=n[1];return p.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[o,function(e,n){n&&t.current||r(e)}]}var Ei="none",ki="appear",$i="enter",_i="leave",Oi="none",ji="prepare",Mi="start",Pi="active",Ii="end",Ni="prepared";function Ti(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}var Ri,Ai,Di,Bi=(Ri=Qe(),Ai="undefined"!=typeof window?window:{},Di={animationend:Ti("Animation","AnimationEnd"),transitionend:Ti("Transition","TransitionEnd")},Ri&&("AnimationEvent"in Ai||delete Di.animationend.animation,"TransitionEvent"in Ai||delete Di.transitionend.transition),Di),Li={};if(Qe()){var zi=document.createElement("div");Li=zi.style}var Fi={};function Hi(e){if(Fi[e])return Fi[e];var t=Bi[e];if(t)for(var n=Object.keys(t),o=n.length,r=0;r<o;r+=1){var i=n[r];if(Object.prototype.hasOwnProperty.call(t,i)&&i in Li)return Fi[e]=t[i],Fi[e]}return""}var Vi=Hi("animationend"),Wi=Hi("transitionend"),Ki=!(!Vi||!Wi),qi=Vi||"animationend",Ui=Wi||"transitionend";function Gi(e,t){return e?"object"===ye(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}const Xi=Qe()?p.useLayoutEffect:p.useEffect;var Yi=function(e){return+setTimeout(e,16)},Zi=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(Yi=function(e){return window.requestAnimationFrame(e)},Zi=function(e){return window.cancelAnimationFrame(e)});var Qi=0,Ji=new Map;function ea(e){Ji.delete(e)}var ta=function(e){var t=Qi+=1;return function n(o){if(0===o)ea(t),e();else{var r=Yi((function(){n(o-1)}));Ji.set(t,r)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};ta.cancel=function(e){var t=Ji.get(e);return ea(e),Zi(t)};const na=ta;var oa=[ji,Mi,Pi,Ii],ra=[ji,Ni];function ia(e){return e===Pi||e===Ii}const aa=function(e){var t=e;"object"===ye(e)&&(t=e.transitionSupport);var n=p.forwardRef((function(e,n){var o=e.visible,r=void 0===o||o,i=e.removeOnLeave,a=void 0===i||i,s=e.forceRender,l=e.children,c=e.motionName,u=e.leavedClassName,d=e.eventProps,f=function(e,n){return!(!e.motionName||!t||!1===n)}(e,p.useContext(pi).motion),h=(0,p.useRef)(),m=(0,p.useRef)(),g=function(e,t,n,o){var r=o.motionEnter,i=void 0===r||r,a=o.motionAppear,s=void 0===a||a,l=o.motionLeave,c=void 0===l||l,u=o.motionDeadline,d=o.motionLeaveImmediately,f=o.onAppearPrepare,h=o.onEnterPrepare,m=o.onLeavePrepare,g=o.onAppearStart,v=o.onEnterStart,b=o.onLeaveStart,y=o.onAppearActive,x=o.onEnterActive,w=o.onLeaveActive,C=o.onAppearEnd,S=o.onEnterEnd,E=o.onLeaveEnd,k=o.onVisibleChanged,$=Ge(Si(),2),_=$[0],O=$[1],j=Ge(Si(Ei),2),M=j[0],P=j[1],I=Ge(Si(null),2),N=I[0],T=I[1],R=(0,p.useRef)(!1),A=(0,p.useRef)(null);function D(){return n()}var B=(0,p.useRef)(!1);function L(){P(Ei,!0),T(null,!0)}function z(e){var t=D();if(!e||e.deadline||e.target===t){var n,o=B.current;M===ki&&o?n=null==C?void 0:C(t,e):M===$i&&o?n=null==S?void 0:S(t,e):M===_i&&o&&(n=null==E?void 0:E(t,e)),M!==Ei&&o&&!1!==n&&L()}}var F=Ge(function(e){var t=(0,p.useRef)(),n=(0,p.useRef)(e);n.current=e;var o=p.useCallback((function(e){n.current(e)}),[]);function r(e){e&&(e.removeEventListener(Ui,o),e.removeEventListener(qi,o))}return p.useEffect((function(){return function(){r(t.current)}}),[]),[function(e){t.current&&t.current!==e&&r(t.current),e&&e!==t.current&&(e.addEventListener(Ui,o),e.addEventListener(qi,o),t.current=e)},r]}(z),1)[0],H=function(e){var t,n,o;switch(e){case ki:return Ee(t={},ji,f),Ee(t,Mi,g),Ee(t,Pi,y),t;case $i:return Ee(n={},ji,h),Ee(n,Mi,v),Ee(n,Pi,x),n;case _i:return Ee(o={},ji,m),Ee(o,Mi,b),Ee(o,Pi,w),o;default:return{}}},V=p.useMemo((function(){return H(M)}),[M]),W=Ge(function(e,t,n){var o=Ge(Si(Oi),2),r=o[0],i=o[1],a=function(){var e=p.useRef(null);function t(){na.cancel(e.current)}return p.useEffect((function(){return function(){t()}}),[]),[function n(o){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=na((function(){r<=1?o({isCanceled:function(){return i!==e.current}}):n(o,r-1)}));e.current=i},t]}(),s=Ge(a,2),l=s[0],c=s[1],u=t?ra:oa;return Xi((function(){if(r!==Oi&&r!==Ii){var e=u.indexOf(r),t=u[e+1],o=n(r);!1===o?i(t,!0):t&&l((function(e){function n(){e.isCanceled()||i(t,!0)}!0===o?n():Promise.resolve(o).then(n)}))}}),[e,r]),p.useEffect((function(){return function(){c()}}),[]),[function(){i(ji,!0)},r]}(M,!e,(function(e){if(e===ji){var t=V[ji];return!!t&&t(D())}var n;return q in V&&T((null===(n=V[q])||void 0===n?void 0:n.call(V,D(),null))||null),q===Pi&&(F(D()),u>0&&(clearTimeout(A.current),A.current=setTimeout((function(){z({deadline:!0})}),u))),q===Ni&&L(),true})),2),K=W[0],q=W[1],U=ia(q);B.current=U,Xi((function(){O(t);var n,o=R.current;R.current=!0,!o&&t&&s&&(n=ki),o&&t&&i&&(n=$i),(o&&!t&&c||!o&&d&&!t&&c)&&(n=_i);var r=H(n);n&&(e||r[ji])?(P(n),K()):P(Ei)}),[t]),(0,p.useEffect)((function(){(M===ki&&!s||M===$i&&!i||M===_i&&!c)&&P(Ei)}),[s,i,c]),(0,p.useEffect)((function(){return function(){R.current=!1,clearTimeout(A.current)}}),[]);var G=p.useRef(!1);(0,p.useEffect)((function(){_&&(G.current=!0),void 0!==_&&M===Ei&&((G.current||_)&&(null==k||k(_)),G.current=!0)}),[_,M]);var X=N;return V[ji]&&q===Mi&&(X=$e({transition:"none"},X)),[M,q,X,null!=_?_:t]}(f,r,(function(){try{return h.current instanceof HTMLElement?h.current:ii(m.current)}catch(e){return null}}),e),v=Ge(g,4),b=v[0],y=v[1],x=v[2],w=v[3],C=p.useRef(w);w&&(C.current=!0);var S,E=p.useCallback((function(e){h.current=e,si(n,e)}),[n]),k=$e($e({},d),{},{visible:r});if(l)if(b===Ei)S=w?l($e({},k),E):!a&&C.current&&u?l($e($e({},k),{},{className:u}),E):s||!a&&!u?l($e($e({},k),{},{style:{display:"none"}}),E):null;else{var $,_;y===ji?_="prepare":ia(y)?_="active":y===Mi&&(_="start");var O=Gi(c,"".concat(b,"-").concat(_));S=l($e($e({},k),{},{className:oi()(Gi(c,b),($={},Ee($,O,O&&_),Ee($,c,"string"==typeof c),$)),style:x}),E)}else S=null;return p.isValidElement(S)&&ui(S)&&(S.ref||(S=p.cloneElement(S,{ref:E}))),p.createElement(Ci,{ref:m},S)}));return n.displayName="CSSMotion",n}(Ki);var sa="add",la="keep",ca="remove",ua="removed";function da(e){var t;return $e($e({},t=e&&"object"===ye(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function fa(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(da)}var pa=["component","children","onVisibleChanged","onAllRemoved"],ha=["status"],ma=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];const ga=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:aa,n=function(e){gi(o,e);var n=wi(o);function o(){var e;xt(this,o);for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return Ee(yi(e=n.call.apply(n,[this].concat(r))),"state",{keyEntities:[]}),Ee(yi(e),"removeKey",(function(t){var n=e.state.keyEntities.map((function(e){return e.key!==t?e:$e($e({},e),{},{status:ua})}));return e.setState({keyEntities:n}),n.filter((function(e){return e.status!==ua})).length})),e}return Ct(o,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,o=this.props,r=o.component,i=o.children,a=o.onVisibleChanged,s=o.onAllRemoved,l=di(o,pa),c=r||p.Fragment,u={};return ma.forEach((function(e){u[e]=l[e],delete l[e]})),delete l.keys,p.createElement(c,l,n.map((function(n,o){var r=n.status,l=di(n,ha),c=r===sa||r===la;return p.createElement(t,hn({},u,{key:l.key,visible:c,eventProps:l,onVisibleChanged:function(t){null==a||a(t,{key:l.key}),t||0===e.removeKey(l.key)&&s&&s()}}),(function(e,t){return i($e($e({},e),{},{index:o}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,o=t.keyEntities,r=fa(n),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],o=0,r=t.length,i=fa(e),a=fa(t);i.forEach((function(e){for(var t=!1,i=o;i<r;i+=1){var s=a[i];if(s.key===e.key){o<i&&(n=n.concat(a.slice(o,i).map((function(e){return $e($e({},e),{},{status:sa})}))),o=i),n.push($e($e({},s),{},{status:la})),o+=1,t=!0;break}}t||n.push($e($e({},e),{},{status:ca}))})),o<r&&(n=n.concat(a.slice(o).map((function(e){return $e($e({},e),{},{status:sa})}))));var s={};return n.forEach((function(e){var t=e.key;s[t]=(s[t]||0)+1})),Object.keys(s).filter((function(e){return s[e]>1})).forEach((function(e){n=n.filter((function(t){var n=t.key,o=t.status;return n!==e||o!==ca})),n.forEach((function(t){t.key===e&&(t.status=la)}))})),n}(o,r);return{keyEntities:i.filter((function(e){var t=o.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==ua||e.status!==ca}))}}}]),o}(p.Component);return Ee(n,"defaultProps",{component:"div"}),n}(Ki),va=aa,ba="5.14.2";function ya(e){return e>=0&&e<=255}const xa=function(e,t){const{r:n,g:o,b:r,a:i}=new Dr(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new Dr(t).toRgb();for(let e=.01;e<=1;e+=.01){const t=Math.round((n-a*(1-e))/e),i=Math.round((o-s*(1-e))/e),c=Math.round((r-l*(1-e))/e);if(ya(t)&&ya(i)&&ya(c))return new Dr({r:t,g:i,b:c,a:Math.round(100*e)/100}).toRgbString()}return new Dr({r:n,g:o,b:r,a:1}).toRgbString()};var wa=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function Ca(e){const{override:t}=e,n=wa(e,["override"]),o=Object.assign({},t);Object.keys(Ar).forEach((e=>{delete o[e]}));const r=Object.assign(Object.assign({},n),o);if(!1===r.motion){const e="0s";r.motionDurationFast=e,r.motionDurationMid=e,r.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},r),{colorFillContent:r.colorFillSecondary,colorFillContentHover:r.colorFill,colorFillAlter:r.colorFillQuaternary,colorBgContainerDisabled:r.colorFillTertiary,colorBorderBg:r.colorBgContainer,colorSplit:xa(r.colorBorderSecondary,r.colorBgContainer),colorTextPlaceholder:r.colorTextQuaternary,colorTextDisabled:r.colorTextQuaternary,colorTextHeading:r.colorText,colorTextLabel:r.colorTextSecondary,colorTextDescription:r.colorTextTertiary,colorTextLightSolid:r.colorWhite,colorHighlight:r.colorError,colorBgTextHover:r.colorFillSecondary,colorBgTextActive:r.colorFill,colorIcon:r.colorTextTertiary,colorIconHover:r.colorText,colorErrorOutline:xa(r.colorErrorBg,r.colorBgContainer),colorWarningOutline:xa(r.colorWarningBg,r.colorBgContainer),fontSizeIcon:r.fontSizeSM,lineWidthFocus:4*r.lineWidth,lineWidth:r.lineWidth,controlOutlineWidth:2*r.lineWidth,controlInteractiveSize:r.controlHeight/2,controlItemBgHover:r.colorFillTertiary,controlItemBgActive:r.colorPrimaryBg,controlItemBgActiveHover:r.colorPrimaryBgHover,controlItemBgActiveDisabled:r.colorFill,controlTmpOutline:r.colorFillQuaternary,controlOutline:xa(r.colorPrimaryBg,r.colorBgContainer),lineType:r.lineType,borderRadius:r.borderRadius,borderRadiusXS:r.borderRadiusXS,borderRadiusSM:r.borderRadiusSM,borderRadiusLG:r.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:r.sizeXXS,paddingXS:r.sizeXS,paddingSM:r.sizeSM,padding:r.size,paddingMD:r.sizeMD,paddingLG:r.sizeLG,paddingXL:r.sizeXL,paddingContentHorizontalLG:r.sizeLG,paddingContentVerticalLG:r.sizeMS,paddingContentHorizontal:r.sizeMS,paddingContentVertical:r.sizeSM,paddingContentHorizontalSM:r.size,paddingContentVerticalSM:r.sizeXS,marginXXS:r.sizeXXS,marginXS:r.sizeXS,marginSM:r.sizeSM,margin:r.size,marginMD:r.sizeMD,marginLG:r.sizeLG,marginXL:r.sizeXL,marginXXL:r.sizeXXL,boxShadow:"\n      0 6px 16px 0 rgba(0, 0, 0, 0.08),\n      0 3px 6px -4px rgba(0, 0, 0, 0.12),\n      0 9px 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowSecondary:"\n      0 6px 16px 0 rgba(0, 0, 0, 0.08),\n      0 3px 6px -4px rgba(0, 0, 0, 0.12),\n      0 9px 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowTertiary:"\n      0 1px 2px 0 rgba(0, 0, 0, 0.03),\n      0 1px 6px -1px rgba(0, 0, 0, 0.02),\n      0 2px 4px 0 rgba(0, 0, 0, 0.02)\n    ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:1200,screenXLMin:1200,screenXLMax:1599,screenXXL:1600,screenXXLMin:1600,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n      0 1px 2px -2px ${new Dr("rgba(0, 0, 0, 0.16)").toRgbString()},\n      0 3px 6px 0 ${new Dr("rgba(0, 0, 0, 0.12)").toRgbString()},\n      0 5px 12px 4px ${new Dr("rgba(0, 0, 0, 0.09)").toRgbString()}\n    `,boxShadowDrawerRight:"\n      -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n      -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n      -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowDrawerLeft:"\n      6px 0 16px 0 rgba(0, 0, 0, 0.08),\n      3px 0 6px -4px rgba(0, 0, 0, 0.12),\n      9px 0 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowDrawerUp:"\n      0 6px 16px 0 rgba(0, 0, 0, 0.08),\n      0 3px 6px -4px rgba(0, 0, 0, 0.12),\n      0 9px 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowDrawerDown:"\n      0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n      0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n      0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n    ",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)"}),o)}var Sa=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Ea={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0},ka={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},$a={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},_a=(e,t,n)=>{const o=n.getDerivativeToken(e),{override:r}=t,i=Sa(t,["override"]);let a=Object.assign(Object.assign({},o),{override:r});return a=Ca(a),i&&Object.entries(i).forEach((e=>{let[t,n]=e;const{theme:o}=n,r=Sa(n,["theme"]);let i=r;o&&(i=_a(Object.assign(Object.assign({},a),r),{override:r},o)),a[t]=i})),a};function Oa(){const{token:e,hashed:t,theme:n,override:o,cssVar:r}=h().useContext(Kr),i=`${ba}-${t||""}`,a=n||Vr,[s,l,c]=pn(a,[Ar,e],{salt:i,override:o,getComputedToken:_a,formatToken:Ca,cssVar:r&&{prefix:r.prefix,key:r.key,unitless:Ea,ignore:ka,preserve:$a}});return[a,c,t?l:"",s,r]}function ja(e){const{children:t}=e,[,n]=Oa(),{motion:o}=n,r=p.useRef(!1);return r.current=r.current||!1===o,r.current?p.createElement(hi,{motion:o},t):t}const Ma=()=>null,Pa={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Ia=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},Na=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,\n  &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),Ta=(e,t,n)=>{const{fontFamily:o,fontSize:r}=e,i=`[class^="${t}"], [class*=" ${t}"]`;return{[n?`.${n}`:i]:{fontFamily:o,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[i]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},Ra=e=>({outline:`${qt(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Aa=e=>({"&:focus-visible":Object.assign({},Ra(e))}),Da=(e,t)=>{const[n,o]=Oa();return So({theme:n,token:o,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce},(()=>[{[`.${e}`]:Object.assign(Object.assign({},{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"}}),{[`.${e} .${e}-icon`]:{display:"block"}})}]))};const Ba=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let La,za,Fa,Ha;function Va(){return La||"ant"}function Wa(){return za||Fe}const Ka=()=>({getPrefixCls:(e,t)=>t||(e?`${Va()}-${e}`:Va()),getIconPrefixCls:Wa,getRootPrefixCls:()=>La||Va(),getTheme:()=>Fa,holderRender:Ha}),qa=e=>{const{children:t,csp:n,autoInsertSpaceInButton:o,alert:r,anchor:i,form:a,locale:s,componentSize:l,direction:c,space:u,virtual:d,dropdownMatchSelectWidth:f,popupMatchSelectWidth:h,popupOverflow:m,legacyLocale:g,parentContext:v,iconPrefixCls:b,theme:y,componentDisabled:x,segmented:w,statistic:C,spin:S,calendar:E,carousel:k,cascader:$,collapse:_,typography:O,checkbox:j,descriptions:M,divider:P,drawer:I,skeleton:N,steps:T,image:R,layout:A,list:D,mentions:B,modal:L,progress:z,result:F,slider:H,breadcrumb:V,menu:W,pagination:K,input:q,empty:U,badge:G,radio:X,rate:Y,switch:Z,transfer:Q,avatar:J,message:ee,tag:te,table:ne,card:oe,tabs:re,timeline:ie,timePicker:ae,upload:se,notification:le,tree:ce,colorPicker:ue,datePicker:de,rangePicker:fe,flex:pe,wave:he,dropdown:me,warning:ge,tour:ve}=e,be=p.useCallback(((t,n)=>{const{prefixCls:o}=e;if(n)return n;const r=o||v.getPrefixCls("");return t?`${r}-${t}`:r}),[v.getPrefixCls,e.prefixCls]),ye=b||v.iconPrefixCls||Fe,xe=n||v.csp;Da(ye,xe);const we=function(e,t){var n;Lo();const o=e||{},r=!1!==o.inherit&&t?t:Object.assign(Object.assign({},Wr),{hashed:null!==(n=null==t?void 0:t.hashed)&&void 0!==n?n:Wr.hashed,cssVar:null==t?void 0:t.cssVar}),i=ti();return dt((()=>{var n,a;if(!e)return t;const s=Object.assign({},r.components);Object.keys(e.components||{}).forEach((t=>{s[t]=Object.assign(Object.assign({},s[t]),e.components[t])}));const l=`css-var-${i.replace(/:/g,"")}`,c=(null!==(n=o.cssVar)&&void 0!==n?n:r.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:"ant"},"object"==typeof r.cssVar?r.cssVar:{}),"object"==typeof o.cssVar?o.cssVar:{}),{key:"object"==typeof o.cssVar&&(null===(a=o.cssVar)||void 0===a?void 0:a.key)||l});return Object.assign(Object.assign(Object.assign({},r),o),{token:Object.assign(Object.assign({},r.token),o.token),components:s,cssVar:c})}),[o,r],((e,t)=>e.some(((e,n)=>{const o=t[n];return!yt(e,o,!0)}))))}(y,v.theme),Ce={csp:xe,autoInsertSpaceInButton:o,alert:r,anchor:i,locale:s||g,direction:c,space:u,virtual:d,popupMatchSelectWidth:null!=h?h:f,popupOverflow:m,getPrefixCls:be,iconPrefixCls:ye,theme:we,segmented:w,statistic:C,spin:S,calendar:E,carousel:k,cascader:$,collapse:_,typography:O,checkbox:j,descriptions:M,divider:P,drawer:I,skeleton:N,steps:T,image:R,input:q,layout:A,list:D,mentions:B,modal:L,progress:z,result:F,slider:H,breadcrumb:V,menu:W,pagination:K,empty:U,badge:G,radio:X,rate:Y,switch:Z,transfer:Q,avatar:J,message:ee,tag:te,table:ne,card:oe,tabs:re,timeline:ie,timePicker:ae,upload:se,notification:le,tree:ce,colorPicker:ue,datePicker:de,rangePicker:fe,flex:pe,wave:he,dropdown:me,warning:ge,tour:ve},Se=Object.assign({},v);Object.keys(Ce).forEach((e=>{void 0!==Ce[e]&&(Se[e]=Ce[e])})),Ba.forEach((t=>{const n=e[t];n&&(Se[t]=n)}));const Ee=dt((()=>Se),Se,((e,t)=>{const n=Object.keys(e),o=Object.keys(t);return n.length!==o.length||n.some((n=>e[n]!==t[n]))})),ke=p.useMemo((()=>({prefixCls:ye,csp:xe})),[ye,xe]);let $e=p.createElement(p.Fragment,null,p.createElement(Ma,{dropdownMatchSelectWidth:f}),t);const _e=p.useMemo((()=>{var e,t,n,o;return Ao((null===(e=Ko.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=Ee.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(o=Ee.form)||void 0===o?void 0:o.validateMessages)||{},(null==a?void 0:a.validateMessages)||{})}),[Ee,null==a?void 0:a.validateMessages]);Object.keys(_e).length>0&&($e=p.createElement(zo.Provider,{value:_e},$e)),s&&($e=p.createElement(Zo,{locale:s,_ANT_MARK__:"internalMark"},$e)),(ye||xe)&&($e=p.createElement(jo.Provider,{value:ke},$e)),l&&($e=p.createElement(Zr,{size:l},$e)),$e=p.createElement(ja,null,$e);const Oe=p.useMemo((()=>{const e=we||{},{algorithm:t,token:n,components:o,cssVar:r}=e,i=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["algorithm","token","components","cssVar"]),a=t&&(!Array.isArray(t)||t.length>0)?At(t):Vr,s={};Object.entries(o||{}).forEach((e=>{let[t,n]=e;const o=Object.assign({},n);"algorithm"in o&&(!0===o.algorithm?o.theme=a:(Array.isArray(o.algorithm)||"function"==typeof o.algorithm)&&(o.theme=At(o.algorithm)),delete o.algorithm),s[t]=o}));const l=Object.assign(Object.assign({},Ar),n);return Object.assign(Object.assign({},i),{theme:a,token:l,components:s,override:Object.assign({override:l},s),cssVar:r})}),[we]);return y&&($e=p.createElement(Kr.Provider,{value:Oe},$e)),Ee.warning&&($e=p.createElement(Bo.Provider,{value:Ee.warning},$e)),void 0!==x&&($e=p.createElement(Gr,{disabled:x},$e)),p.createElement(He.Provider,{value:Ee},$e)},Ua=e=>{const t=p.useContext(He),n=p.useContext(Yo);return p.createElement(qa,Object.assign({parentContext:t,legacyLocale:n},e))};Ua.ConfigContext=He,Ua.SizeContext=Qr,Ua.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:o,holderRender:r}=e;void 0!==t&&(La=t),void 0!==n&&(za=n),"holderRender"in e&&(Ha=r),o&&(function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(o)?function(e,t){const n=function(e,t){const n={},o=(e,t)=>{let n=e.clone();return n=(null==t?void 0:t(n))||n,n.toRgbString()},r=(e,t)=>{const r=new Dr(e),i=jr(r.toRgbString());n[`${t}-color`]=o(r),n[`${t}-color-disabled`]=i[1],n[`${t}-color-hover`]=i[4],n[`${t}-color-active`]=i[6],n[`${t}-color-outline`]=r.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=i[0],n[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){r(t.primaryColor,"primary");const e=new Dr(t.primaryColor),i=jr(e.toRgbString());i.forEach(((e,t)=>{n[`primary-${t+1}`]=e})),n["primary-color-deprecated-l-35"]=o(e,(e=>e.lighten(35))),n["primary-color-deprecated-l-20"]=o(e,(e=>e.lighten(20))),n["primary-color-deprecated-t-20"]=o(e,(e=>e.tint(20))),n["primary-color-deprecated-t-50"]=o(e,(e=>e.tint(50))),n["primary-color-deprecated-f-12"]=o(e,(e=>e.setAlpha(.12*e.getAlpha())));const a=new Dr(i[0]);n["primary-color-active-deprecated-f-30"]=o(a,(e=>e.setAlpha(.3*e.getAlpha()))),n["primary-color-active-deprecated-d-02"]=o(a,(e=>e.darken(2)))}return t.successColor&&r(t.successColor,"success"),t.warningColor&&r(t.warningColor,"warning"),t.errorColor&&r(t.errorColor,"error"),t.infoColor&&r(t.infoColor,"info"),`\n  :root {\n    ${Object.keys(n).map((t=>`--${e}-${t}: ${n[t]};`)).join("\n")}\n  }\n  `.trim()}(e,t);Qe()&&ut(n,`${qr}-dynamic-theme`)}(Va(),o):Fa=o)},Ua.useConfig=function(){return{componentDisabled:(0,p.useContext)(Xr),componentSize:(0,p.useContext)(Qr)}},Object.defineProperty(Ua,"SizeContext",{get:()=>Qr});const Ga=Ua,Xa={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 Ya(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function Za(e){return function(e){return Ya(e)instanceof ShadowRoot}(e)?Ya(e):null}function Qa(e,t){bt(e,"[@ant-design/icons] ".concat(t))}function Ja(e){return"object"===ye(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===ye(e.icon)||"function"==typeof e.icon)}function es(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var o=e[n];return"class"===n?(t.className=o,delete t.class):(delete t[n],t[function(e){return e.replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))}(n)]=o),t}),{})}function ts(e,t,n){return n?h().createElement(e.tag,$e($e({key:t},es(e.attrs)),n),(e.children||[]).map((function(n,o){return ts(n,"".concat(t,"-").concat(e.tag,"-").concat(o))}))):h().createElement(e.tag,$e({key:t},es(e.attrs)),(e.children||[]).map((function(n,o){return ts(n,"".concat(t,"-").concat(e.tag,"-").concat(o))})))}function ns(e){return jr(e)[0]}function os(e){return e?Array.isArray(e)?e:[e]:[]}var rs={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},is=function(e){var t=(0,p.useContext)(jo),n=t.csp,o=t.prefixCls,r="\n.anticon {\n  display: inline-block;\n  color: inherit;\n  font-style: normal;\n  line-height: 0;\n  text-align: center;\n  text-transform: none;\n  vertical-align: -0.125em;\n  text-rendering: optimizeLegibility;\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n  line-height: 1;\n}\n\n.anticon svg {\n  display: inline-block;\n}\n\n.anticon::before {\n  display: none;\n}\n\n.anticon .anticon-icon {\n  display: block;\n}\n\n.anticon[tabindex] {\n  cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n  display: inline-block;\n  -webkit-animation: loadingCircle 1s infinite linear;\n  animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n  100% {\n    -webkit-transform: rotate(360deg);\n    transform: rotate(360deg);\n  }\n}\n\n@keyframes loadingCircle {\n  100% {\n    -webkit-transform: rotate(360deg);\n    transform: rotate(360deg);\n  }\n}\n";o&&(r=r.replace(/anticon/g,o)),(0,p.useEffect)((function(){var t=Za(e.current);ut(r,"@ant-design-icons",{prepend:!0,csp:n,attachTo:t})}),[])},as=["icon","className","onClick","style","primaryColor","secondaryColor"],ss={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},ls=function(e){var t=e.icon,n=e.className,o=e.onClick,r=e.style,i=e.primaryColor,a=e.secondaryColor,s=di(e,as),l=p.useRef(),c=ss;if(i&&(c={primaryColor:i,secondaryColor:a||ns(i)}),is(l),Qa(Ja(t),"icon should be icon definiton, but got ".concat(t)),!Ja(t))return null;var u=t;return u&&"function"==typeof u.icon&&(u=$e($e({},u),{},{icon:u.icon(c.primaryColor,c.secondaryColor)})),ts(u.icon,"svg-".concat(u.name),$e($e({className:n,onClick:o,style:r,"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s),{},{ref:l}))};ls.displayName="IconReact",ls.getTwoToneColors=function(){return $e({},ss)},ls.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;ss.primaryColor=t,ss.secondaryColor=n||ns(t),ss.calculated=!!n};const cs=ls;function us(e){var t=Ge(os(e),2),n=t[0],o=t[1];return cs.setTwoToneColors({primaryColor:n,secondaryColor:o})}var ds=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];us(Tr.primary);var fs=p.forwardRef((function(e,t){var n=e.className,o=e.icon,r=e.spin,i=e.rotate,a=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=di(e,ds),u=p.useContext(jo),d=u.prefixCls,f=void 0===d?"anticon":d,h=u.rootClassName,m=oi()(h,f,Ee(Ee({},"".concat(f,"-").concat(o.name),!!o.name),"".concat(f,"-spin"),!!r||"loading"===o.name),n),g=a;void 0===g&&s&&(g=-1);var v=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,b=Ge(os(l),2),y=b[0],x=b[1];return p.createElement("span",hn({role:"img","aria-label":o.name},c,{ref:t,tabIndex:g,onClick:s,className:m}),p.createElement(cs,{icon:o,primaryColor:y,secondaryColor:x,style:v}))}));fs.displayName="AntdIcon",fs.getTwoToneColor=function(){var e=cs.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},fs.setTwoToneColor=us;const ps=fs;var hs=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:Xa}))};const ms=p.forwardRef(hs),gs={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"};var vs=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:gs}))};const bs=p.forwardRef(vs),ys={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"};var xs=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:ys}))};const ws=p.forwardRef(xs),Cs={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"};var Ss=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:Cs}))};const Es=p.forwardRef(Ss),ks={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"};var $s=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:ks}))};const _s=p.forwardRef($s),Os={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"};var js=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:Os}))};const Ms=p.forwardRef(js);var Ps={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=Ps.F1&&t<=Ps.F12)return!1;switch(t){case Ps.ALT:case Ps.CAPS_LOCK:case Ps.CONTEXT_MENU:case Ps.CTRL:case Ps.DOWN:case Ps.END:case Ps.ESC:case Ps.HOME:case Ps.INSERT:case Ps.LEFT:case Ps.MAC_FF_META:case Ps.META:case Ps.NUMLOCK:case Ps.NUM_CENTER:case Ps.PAGE_DOWN:case Ps.PAGE_UP:case Ps.PAUSE:case Ps.PRINT_SCREEN:case Ps.RIGHT:case Ps.SHIFT:case Ps.UP:case Ps.WIN_KEY:case Ps.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Ps.ZERO&&e<=Ps.NINE)return!0;if(e>=Ps.NUM_ZERO&&e<=Ps.NUM_MULTIPLY)return!0;if(e>=Ps.A&&e<=Ps.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case Ps.SPACE:case Ps.QUESTION_MARK:case Ps.NUM_PLUS:case Ps.NUM_MINUS:case Ps.NUM_PERIOD:case Ps.NUM_DIVISION:case Ps.SEMICOLON:case Ps.DASH:case Ps.EQUALS:case Ps.COMMA:case Ps.PERIOD:case Ps.SLASH:case Ps.APOSTROPHE:case Ps.SINGLE_QUOTE:case Ps.OPEN_SQUARE_BRACKET:case Ps.BACKSLASH:case Ps.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const Is=Ps;var Ns=p.forwardRef((function(e,t){var n=e.prefixCls,o=e.style,r=e.className,i=e.duration,a=void 0===i?4.5:i,s=e.eventKey,l=e.content,c=e.closable,u=e.closeIcon,d=void 0===u?"x":u,f=e.props,h=e.onClick,m=e.onNoticeClose,g=e.times,v=e.hovering,b=Ge(p.useState(!1),2),y=b[0],x=b[1],w=v||y,C=function(){m(s)};p.useEffect((function(){if(!w&&a>0){var e=setTimeout((function(){C()}),1e3*a);return function(){clearTimeout(e)}}}),[a,w,g]);var S="".concat(n,"-notice");return p.createElement("div",hn({},f,{ref:t,className:oi()(S,r,Ee({},"".concat(S,"-closable"),c)),style:o,onMouseEnter:function(e){var t;x(!0),null==f||null===(t=f.onMouseEnter)||void 0===t||t.call(f,e)},onMouseLeave:function(e){var t;x(!1),null==f||null===(t=f.onMouseLeave)||void 0===t||t.call(f,e)},onClick:h}),p.createElement("div",{className:"".concat(S,"-content")},l),c&&p.createElement("a",{tabIndex:0,className:"".concat(S,"-close"),onKeyDown:function(e){"Enter"!==e.key&&"Enter"!==e.code&&e.keyCode!==Is.ENTER||C()},onClick:function(e){e.preventDefault(),e.stopPropagation(),C()}},d))}));const Ts=Ns;var Rs=h().createContext({});const As=function(e){var t=e.children,n=e.classNames;return h().createElement(Rs.Provider,{value:{classNames:n}},t)};var Ds=["className","style","classNames","styles"];const Bs=function(e){var t,n=e.configList,o=e.placement,r=e.prefixCls,i=e.className,a=e.style,s=e.motion,l=e.onAllNoticeRemoved,c=e.onNoticeClose,u=e.stack,d=(0,p.useContext)(Rs).classNames,f=(0,p.useRef)({}),m=Ge((0,p.useState)(null),2),g=m[0],v=m[1],b=Ge((0,p.useState)([]),2),y=b[0],x=b[1],w=n.map((function(e){return{config:e,key:String(e.key)}})),C=Ge(function(e){var t,n,o,r={offset:8,threshold:3,gap:16};return e&&"object"===ye(e)&&(r.offset=null!==(t=e.offset)&&void 0!==t?t:8,r.threshold=null!==(n=e.threshold)&&void 0!==n?n:3,r.gap=null!==(o=e.gap)&&void 0!==o?o:16),[!!e,r]}(u),2),S=C[0],E=C[1],k=E.offset,$=E.threshold,_=E.gap,O=S&&(y.length>0||w.length<=$),j="function"==typeof s?s(o):s;return(0,p.useEffect)((function(){S&&y.length>1&&x((function(e){return e.filter((function(e){return w.some((function(t){var n=t.key;return e===n}))}))}))}),[y,w,S]),(0,p.useEffect)((function(){var e,t;S&&f.current[null===(e=w[w.length-1])||void 0===e?void 0:e.key]&&v(f.current[null===(t=w[w.length-1])||void 0===t?void 0:t.key])}),[w,S]),h().createElement(ga,hn({key:o,className:oi()(r,"".concat(r,"-").concat(o),null==d?void 0:d.list,i,(t={},Ee(t,"".concat(r,"-stack"),!!S),Ee(t,"".concat(r,"-stack-expanded"),O),t)),style:a,keys:w,motionAppear:!0},j,{onAllRemoved:function(){l(o)}}),(function(e,t){var n=e.config,i=e.className,a=e.style,s=e.index,l=n,u=l.key,p=l.times,m=String(u),v=n,b=v.className,C=v.style,E=v.classNames,$=v.styles,j=di(v,Ds),M=w.findIndex((function(e){return e.key===m})),P={};if(S){var I=w.length-1-(M>-1?M:s-1),N="top"===o||"bottom"===o?"-50%":"0";if(I>0){var T,R,A;P.height=O?null===(T=f.current[m])||void 0===T?void 0:T.offsetHeight:null==g?void 0:g.offsetHeight;for(var D=0,B=0;B<I;B++){var L;D+=(null===(L=f.current[w[w.length-1-B].key])||void 0===L?void 0:L.offsetHeight)+_}var z=(O?D:I*k)*(o.startsWith("top")?1:-1),F=!O&&null!=g&&g.offsetWidth&&null!==(R=f.current[m])&&void 0!==R&&R.offsetWidth?((null==g?void 0:g.offsetWidth)-2*k*(I<3?I:3))/(null===(A=f.current[m])||void 0===A?void 0:A.offsetWidth):1;P.transform="translate3d(".concat(N,", ").concat(z,"px, 0) scaleX(").concat(F,")")}else P.transform="translate3d(".concat(N,", 0, 0)")}return h().createElement("div",{ref:t,className:oi()("".concat(r,"-notice-wrapper"),i,null==E?void 0:E.wrapper),style:$e($e($e({},a),P),null==$?void 0:$.wrapper),onMouseEnter:function(){return x((function(e){return e.includes(m)?e:[].concat(Ye(e),[m])}))},onMouseLeave:function(){return x((function(e){return e.filter((function(e){return e!==m}))}))}},h().createElement(Ts,hn({},j,{ref:function(e){M>-1?f.current[m]=e:delete f.current[m]},prefixCls:r,classNames:E,styles:$,className:oi()(b,null==d?void 0:d.notice),style:C,times:p,key:u,eventKey:u,onNoticeClose:c,hovering:S&&y.length>0})))}))};var Ls=p.forwardRef((function(e,t){var n=e.prefixCls,o=void 0===n?"rc-notification":n,r=e.container,i=e.motion,a=e.maxCount,s=e.className,l=e.style,c=e.onAllRemoved,u=e.stack,d=e.renderNotifications,f=Ge(p.useState([]),2),h=f[0],m=f[1],g=function(e){var t,n=h.find((function(t){return t.key===e}));null==n||null===(t=n.onClose)||void 0===t||t.call(n),m((function(t){return t.filter((function(t){return t.key!==e}))}))};p.useImperativeHandle(t,(function(){return{open:function(e){m((function(t){var n,o=Ye(t),r=o.findIndex((function(t){return t.key===e.key})),i=$e({},e);return r>=0?(i.times=((null===(n=t[r])||void 0===n?void 0:n.times)||0)+1,o[r]=i):(i.times=0,o.push(i)),a>0&&o.length>a&&(o=o.slice(-a)),o}))},close:function(e){g(e)},destroy:function(){m([])}}}));var v=Ge(p.useState({}),2),b=v[0],y=v[1];p.useEffect((function(){var e={};h.forEach((function(t){var n=t.placement,o=void 0===n?"topRight":n;o&&(e[o]=e[o]||[],e[o].push(t))})),Object.keys(b).forEach((function(t){e[t]=e[t]||[]})),y(e)}),[h]);var x=function(e){y((function(t){var n=$e({},t);return(n[e]||[]).length||delete n[e],n}))},w=p.useRef(!1);if(p.useEffect((function(){Object.keys(b).length>0?w.current=!0:w.current&&(null==c||c(),w.current=!1)}),[b]),!r)return null;var C=Object.keys(b);return(0,pe.createPortal)(p.createElement(p.Fragment,null,C.map((function(e){var t=b[e],n=p.createElement(Bs,{key:e,configList:t,placement:e,prefixCls:o,className:null==s?void 0:s(e),style:null==l?void 0:l(e),motion:i,onNoticeClose:g,onAllNoticeRemoved:x,stack:u});return d?d(n,{prefixCls:o,key:e}):n}))),r)}));const zs=Ls;var Fs=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],Hs=function(){return document.body},Vs=0;const Ws=e=>{const[,,,,t]=Oa();return t?`${e}-css-var`:""},Ks=h().createContext(void 0),qs=100,Us=1e3,Gs={Modal:qs,Drawer:qs,Popover:qs,Popconfirm:qs,Tooltip:qs,Tour:qs},Xs={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function Ys(e,t){const[,n]=Oa(),o=h().useContext(Ks),r=function(e){return e in Gs}(e);if(void 0!==t)return[t,t];let i=null!=o?o:0;return r?(i+=(o?0:n.zIndexPopupBase)+Gs[e],i=Math.min(i,n.zIndexPopupBase+Us)):i+=Xs[e],[void 0===o?t:i,i]}const Zs="undefined"!=typeof CSSINJS_STATISTIC;let Qs=!0;function Js(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!Zs)return Object.assign.apply(Object,[{}].concat(t));Qs=!1;const o={};return t.forEach((e=>{Object.keys(e).forEach((t=>{Object.defineProperty(o,t,{configurable:!0,enumerable:!0,get:()=>e[t]})}))})),Qs=!0,o}const el={};function tl(){}function nl(e){var t=p.useRef();t.current=e;var n=p.useCallback((function(){for(var e,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(o))}),[]);return n}function ol(e){return void 0!==e}function rl(e,t){var n=t||{},o=n.defaultValue,r=n.value,i=n.onChange,a=n.postState,s=Ge(Si((function(){return ol(r)?r:ol(o)?"function"==typeof o?o():o:"function"==typeof e?e():e})),2),l=s[0],c=s[1],u=void 0!==r?r:l,d=a?a(u):u,f=nl(i),p=Ge(Si([u]),2),h=p[0],m=p[1];return Jt((function(){var e=h[0];l!==e&&f(l,e)}),[h]),Jt((function(){ol(r)||c(r)}),[r]),[d,nl((function(e,t){c(e,t),m([u],t)}))]}const il=Ct((function e(){xt(this,e)}));let al=function(e){function t(e){var n,o,r,i;return xt(this,t),o=this,r=vi(r=t),(n=xi(o,bi()?Reflect.construct(r,[],vi(o).constructor):r.apply(o,i))).result=0,e instanceof t?n.result=e.result:"number"==typeof e&&(n.result=e),n}return gi(t,e),Ct(t,[{key:"add",value:function(e){return e instanceof t?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof t?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof t?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof t?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),t}(il);const sl="CALC_UNIT";function ll(e){return"number"==typeof e?`${e}${sl}`:e}let cl=function(e){function t(e){var n,o,r,i;return xt(this,t),o=this,r=vi(r=t),(n=xi(o,bi()?Reflect.construct(r,[],vi(o).constructor):r.apply(o,i))).result="",e instanceof t?n.result=`(${e.result})`:"number"==typeof e?n.result=ll(e):"string"==typeof e&&(n.result=e),n}return gi(t,e),Ct(t,[{key:"add",value:function(e){return e instanceof t?this.result=`${this.result} + ${e.getResult()}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} + ${ll(e)}`),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof t?this.result=`${this.result} - ${e.getResult()}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} - ${ll(e)}`),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof t?this.result=`${this.result} * ${e.getResult(!0)}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} * ${e}`),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof t?this.result=`${this.result} / ${e.getResult(!0)}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} / ${e}`),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?`(${this.result})`:this.result}},{key:"equal",value:function(e){const{unit:t=!0}=e||{},n=new RegExp(`${sl}`,"g");return this.result=this.result.replace(n,t?"px":""),void 0!==this.lowPriority?`calc(${this.result})`:this.result}}]),t}(il);const ul=(e,t,n)=>{var o;return"function"==typeof n?n(Js(t,null!==(o=t[e])&&void 0!==o?o:{})):null!=n?n:{}},dl=(e,t,n,o)=>{const r=Object.assign({},t[e]);if(null==o?void 0:o.deprecatedTokens){const{deprecatedTokens:e}=o;e.forEach((e=>{let[t,n]=e;var o;((null==r?void 0:r[t])||(null==r?void 0:r[n]))&&(null!==(o=r[n])&&void 0!==o||(r[n]=null==r?void 0:r[t]))}))}const i=Object.assign(Object.assign({},n),r);return Object.keys(i).forEach((e=>{i[e]===t[e]&&delete i[e]})),i};function fl(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const r=Array.isArray(e)?e:[e,e],[i]=r,a=r.join("-");return function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const[s,l,c,u,d]=Oa(),{getPrefixCls:f,iconPrefixCls:h,csp:m}=(0,p.useContext)(He),g=f(),v=d?"css":"js",b=(e=>{const t="css"===e?cl:al;return e=>new t(e)})(v),{max:y,min:x}=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return`max(${t.map((e=>qt(e))).join(",")})`},min:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return`min(${t.map((e=>qt(e))).join(",")})`}}}(v),w={theme:s,token:u,hashId:c,nonce:()=>null==m?void 0:m.nonce,clientOnly:o.clientOnly,order:o.order||-999};So(Object.assign(Object.assign({},w),{clientOnly:!1,path:["Shared",g]}),(()=>[{"&":Na(u)}])),Da(h,m);const C=So(Object.assign(Object.assign({},w),{path:[a,e,h]}),(()=>{if(!1===o.injectStyle)return[];const{token:a,flush:s}=(e=>{let t,n=e,o=tl;return Zs&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(Qs&&t.add(n),e[n])}),o=(e,n)=>{var o;el[e]={global:Array.from(t),component:Object.assign(Object.assign({},null===(o=el[e])||void 0===o?void 0:o.component),n)}}),{token:n,keys:t,flush:o}})(u),f=ul(i,l,n),p=`.${e}`,m=dl(i,l,f,{deprecatedTokens:o.deprecatedTokens});d&&Object.keys(f).forEach((e=>{f[e]=`var(${Gt(e,((e,t)=>`${[t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`)(i,d.prefix))})`}));const v=Js(a,{componentCls:p,prefixCls:e,iconCls:`.${h}`,antCls:`.${g}`,calc:b,max:y,min:x},d?f:m),w=t(v,{hashId:c,prefixCls:e,rootPrefixCls:g,iconPrefixCls:h});return s(i,m),[!1===o.resetStyle?null:Ta(v,e,r),w]}));return[C,c]}}const pl=(e,t,n,o)=>{const r=fl(e,t,n,Object.assign({resetStyle:!1,order:-998},o));return e=>{let{prefixCls:t,rootCls:n=t}=e;return r(t,n),null}},hl=(e,t,n,o)=>{const r=fl(e,t,n,o),i=((e,t,n)=>{function o(t){return`${e}${t.slice(0,1).toUpperCase()}${t.slice(1)}`}const{unitless:r={},injectStyle:i=!0}=null!=n?n:{},a={[o("zIndexPopup")]:!0};Object.keys(r).forEach((e=>{a[o(e)]=r[e]}));const s=r=>{let{rootCls:i,cssVar:s}=r;const[,l]=Oa();return function(e,t){var n=e.key,o=e.prefix,r=e.unitless,i=e.ignore,a=e.token,s=e.scope,l=void 0===s?"":s,c=(0,p.useContext)(Pt),u=c.cache.instanceId,d=c.container,f=a._tokenKey,h=[].concat(Ye(e.path),[n,l,f]),m=an(Eo,h,(function(){var e=t(),a=Ge(Yt(e,n,{prefix:o,unitless:r,ignore:i,scope:l}),2),s=a[0],c=a[1];return[s,c,xo(h,c),n]}),(function(e){var t=Ge(e,3)[2];Kt&&ct(t,{mark:Ot})}),(function(e){var t=Ge(e,3),o=t[1],r=t[2];if(o){var i=ut(o,r,{mark:Ot,prepend:"queue",attachTo:d,priority:-999});i[jt]=u,i.setAttribute(_t,n)}}))}({path:[e],prefix:s.prefix,key:null==s?void 0:s.key,unitless:Object.assign(Object.assign({},Ea),a),ignore:ka,token:l,scope:i},(()=>{const r=ul(e,l,t),i=dl(e,l,r,{deprecatedTokens:null==n?void 0:n.deprecatedTokens});return Object.keys(r).forEach((e=>{i[o(e)]=i[e],delete i[e]})),i})),null};return t=>{const[,,,,n]=Oa();return[o=>i&&n?h().createElement(h().Fragment,null,h().createElement(s,{rootCls:t,cssVar:n,component:e}),o):o,null==n?void 0:n.key]}})(Array.isArray(e)?e[0]:e,n,o);return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const[,n]=r(e,t),[o,a]=i(t);return[o,n,a]}},ml=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:o}=e,r=`${t}-notice`,i=new _o("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[r]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new _o("antNotificationTopFadeIn",{"0%":{top:-o,opacity:0},"100%":{top:0,opacity:1}})}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new _o("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(o).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}})}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[r]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new _o("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}})}}}}},gl=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],vl={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},bl=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},yl=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},t)},xl=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},bl(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},yl(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},gl.map((t=>((e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[vl[t]]:{value:0,_skip_check_:!0}}}}})(e,t))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{}))},wl=e=>{const{iconCls:t,componentCls:n,boxShadow:o,fontSizeLG:r,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:s,colorInfo:l,colorWarning:c,colorError:u,colorTextHeading:d,notificationBg:f,notificationPadding:p,notificationMarginEdge:h,fontSize:m,lineHeight:g,width:v,notificationIconSize:b,colorText:y}=e,x=`${n}-notice`;return{position:"relative",marginBottom:i,marginInlineStart:"auto",background:f,borderRadius:a,boxShadow:o,[x]:{padding:p,width:v,maxWidth:`calc(100vw - ${qt(e.calc(h).mul(2).equal())})`,overflow:"hidden",lineHeight:g,wordWrap:"break-word"},[`${n}-close-icon`]:{fontSize:m,cursor:"pointer"},[`${x}-message`]:{marginBottom:e.marginXS,color:d,fontSize:r,lineHeight:e.lineHeightLG},[`${x}-description`]:{fontSize:m,color:y},[`${x}-closable ${x}-message`]:{paddingInlineEnd:e.paddingLG},[`${x}-with-icon ${x}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(b).equal(),fontSize:r},[`${x}-with-icon ${x}-description`]:{marginInlineStart:e.calc(e.marginSM).add(b).equal(),fontSize:m},[`${x}-icon`]:{position:"absolute",fontSize:b,lineHeight:1,[`&-success${t}`]:{color:s},[`&-info${t}`]:{color:l},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${x}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.closeBtnHoverBg}},[`${x}-btn`]:{float:"right",marginTop:e.marginSM}}},Cl=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:o,motionDurationMid:r,motionEaseInOut:i}=e,a=`${t}-notice`,s=new _o("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},Ia(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:o,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:i,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:i,animationFillMode:"both",animationDuration:r,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:s,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${a}-btn`]:{float:"left"}}})},{[t]:{[`${a}-wrapper`]:Object.assign({},wl(e))}}]},Sl=e=>({zIndexPopup:e.zIndexPopupBase+Us+50,width:384,closeBtnHoverBg:e.wireframe?"transparent":e.colorFillContent}),El=e=>{const t=e.paddingMD,n=e.paddingLG;return Js(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${qt(e.paddingMD)} ${qt(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3})},kl=hl("Notification",(e=>{const t=El(e);return[Cl(t),ml(t),xl(t)]}),Sl),$l=pl(["Notification","PurePanel"],(e=>{const t=`${e.componentCls}-notice`,n=El(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},wl(n)),{width:n.width,maxWidth:`calc(100vw - ${qt(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0})}}),Sl);function _l(e,t){return null===t||!1===t?null:t||p.createElement("span",{className:`${e}-close-x`},p.createElement(ws,{className:`${e}-close-icon`}))}const Ol={success:ms,info:_s,error:bs,warning:Es},jl=e=>{const{prefixCls:t,icon:n,type:o,message:r,description:i,btn:a,role:s="alert"}=e;let l=null;return n?l=p.createElement("span",{className:`${t}-icon`},n):o&&(l=p.createElement(Ol[o]||null,{className:oi()(`${t}-icon`,`${t}-icon-${o}`)})),p.createElement("div",{className:oi()({[`${t}-with-icon`]:l}),role:s},l,p.createElement("div",{className:`${t}-message`},r),p.createElement("div",{className:`${t}-description`},i),a&&p.createElement("div",{className:`${t}-btn`},a))};const Ml=e=>{let{children:t,prefixCls:n}=e;const o=Ws(n),[r,i,a]=kl(n,o);return r(h().createElement(As,{classNames:{list:oi()(i,a,o)}},t))},Pl=(e,t)=>{let{prefixCls:n,key:o}=t;return h().createElement(Ml,{prefixCls:n,key:o},e)},Il=h().forwardRef(((e,t)=>{const{top:n,bottom:o,prefixCls:r,getContainer:i,maxCount:a,rtl:s,onAllRemoved:l,stack:c,duration:u}=e,{getPrefixCls:d,getPopupContainer:f,notification:m,direction:g}=(0,p.useContext)(He),[,v]=Oa(),b=r||d("notification"),[y,x]=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getContainer,n=void 0===t?Hs:t,o=e.motion,r=e.prefixCls,i=e.maxCount,a=e.className,s=e.style,l=e.onAllRemoved,c=e.stack,u=e.renderNotifications,d=di(e,Fs),f=Ge(p.useState(),2),h=f[0],m=f[1],g=p.useRef(),v=p.createElement(zs,{container:h,ref:g,prefixCls:r,motion:o,maxCount:i,className:a,style:s,onAllRemoved:l,stack:c,renderNotifications:u}),b=Ge(p.useState([]),2),y=b[0],x=b[1],w=p.useMemo((function(){return{open:function(e){var t=function(){for(var e={},t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return n.forEach((function(t){t&&Object.keys(t).forEach((function(n){var o=t[n];void 0!==o&&(e[n]=o)}))})),e}(d,e);null!==t.key&&void 0!==t.key||(t.key="rc-notification-".concat(Vs),Vs+=1),x((function(e){return[].concat(Ye(e),[{type:"open",config:t}])}))},close:function(e){x((function(t){return[].concat(Ye(t),[{type:"close",key:e}])}))},destroy:function(){x((function(e){return[].concat(Ye(e),[{type:"destroy"}])}))}}}),[]);return p.useEffect((function(){m(n())})),p.useEffect((function(){g.current&&y.length&&(y.forEach((function(e){switch(e.type){case"open":g.current.open(e.config);break;case"close":g.current.close(e.key);break;case"destroy":g.current.destroy()}})),x((function(e){return e.filter((function(e){return!y.includes(e)}))})))}),[y]),[w,v]}({prefixCls:b,style:e=>function(e,t,n){let o;switch(e){case"top":o={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":o={left:0,top:t,bottom:"auto"};break;case"topRight":o={right:0,top:t,bottom:"auto"};break;case"bottom":o={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":o={left:0,top:"auto",bottom:n};break;default:o={right:0,top:"auto",bottom:n}}return o}(e,null!=n?n:24,null!=o?o:24),className:()=>oi()({[`${b}-rtl`]:null!=s?s:"rtl"===g}),motion:()=>function(e){return{motionName:`${e}-fade`}}(b),closable:!0,closeIcon:_l(b),duration:null!=u?u:4.5,getContainer:()=>(null==i?void 0:i())||(null==f?void 0:f())||document.body,maxCount:a,onAllRemoved:l,renderNotifications:Pl,stack:!1!==c&&{threshold:"object"==typeof c?null==c?void 0:c.threshold:void 0,offset:8,gap:v.margin}});return h().useImperativeHandle(t,(()=>Object.assign(Object.assign({},y),{prefixCls:b,notification:m}))),x}));function Nl(e){const t=h().useRef(null),n=(Lo(),h().useMemo((()=>{const n=n=>{var o;if(!t.current)return;const{open:r,prefixCls:i,notification:a}=t.current,s=`${i}-notice`,{message:l,description:c,icon:u,type:d,btn:f,className:p,style:m,role:g="alert",closeIcon:v}=n,b=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(n,["message","description","icon","type","btn","className","style","role","closeIcon"]),y=_l(s,void 0!==v?v:null==a?void 0:a.closeIcon);return r(Object.assign(Object.assign({placement:null!==(o=null==e?void 0:e.placement)&&void 0!==o?o:"topRight"},b),{content:h().createElement(jl,{prefixCls:s,icon:u,type:d,message:l,description:c,btn:f,role:g}),className:oi()(d&&`${s}-${d}`,p,null==a?void 0:a.className),style:Object.assign(Object.assign({},null==a?void 0:a.style),m),closeIcon:y,closable:!!y}))},o={open:n,destroy:e=>{var n,o;void 0!==e?null===(n=t.current)||void 0===n||n.close(e):null===(o=t.current)||void 0===o||o.destroy()}};return["success","info","warning","error"].forEach((e=>{o[e]=t=>n(Object.assign(Object.assign({},t),{type:e}))})),o}),[]));return[n,h().createElement(Il,Object.assign({key:"notification-holder"},e,{ref:t}))]}let Tl=null,Rl=e=>e(),Al=[],Dl={};function Bl(){const{getContainer:e,rtl:t,maxCount:n,top:o,bottom:r}=Dl,i=(null==e?void 0:e())||document.body;return{getContainer:()=>i,rtl:t,maxCount:n,top:o,bottom:r}}const Ll=h().forwardRef(((e,t)=>{const{notificationConfig:n,sync:o}=e,{getPrefixCls:r}=(0,p.useContext)(He),i=Dl.prefixCls||r("notification"),a=(0,p.useContext)(ze),[s,l]=Nl(Object.assign(Object.assign(Object.assign({},n),{prefixCls:i}),a.notification));return h().useEffect(o,[]),h().useImperativeHandle(t,(()=>{const e=Object.assign({},s);return Object.keys(e).forEach((t=>{e[t]=function(){return o(),s[t].apply(s,arguments)}})),{instance:e,sync:o}})),l})),zl=h().forwardRef(((e,t)=>{const[n,o]=h().useState(Bl),r=()=>{o(Bl)};h().useEffect(r,[]);const i=Ka(),a=i.getRootPrefixCls(),s=i.getIconPrefixCls(),l=i.getTheme(),c=h().createElement(Ll,{ref:t,sync:r,notificationConfig:n});return h().createElement(Ga,{prefixCls:a,iconPrefixCls:s,theme:l},i.holderRender?i.holderRender(c):c)}));function Fl(){if(!Tl){const e=document.createDocumentFragment(),t={fragment:e};return Tl=t,void Rl((()=>{Te(h().createElement(zl,{ref:e=>{const{instance:n,sync:o}=e||{};Promise.resolve().then((()=>{!t.instance&&n&&(t.instance=n,t.sync=o,Fl())}))}}),e)}))}Tl.instance&&(Al.forEach((e=>{switch(e.type){case"open":Rl((()=>{Tl.instance.open(Object.assign(Object.assign({},Dl),e.config))}));break;case"destroy":Rl((()=>{null==Tl||Tl.instance.destroy(e.key)}))}})),Al=[])}function Hl(e){Ka(),Al.push({type:"open",config:e}),Fl()}const Vl={open:Hl,destroy:function(e){Al.push({type:"destroy",key:e}),Fl()},config:function(e){Dl=Object.assign(Object.assign({},Dl),e),Rl((()=>{var e;null===(e=null==Tl?void 0:Tl.sync)||void 0===e||e.call(Tl)}))},useNotification:function(e){return Nl(e)},_InternalPanelDoNotUseOrYouWillBeFired:e=>{const{prefixCls:t,className:n,icon:o,type:r,message:i,description:a,btn:s,closable:l=!0,closeIcon:c,className:u}=e,d=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon","className"]),{getPrefixCls:f}=p.useContext(He),h=t||f("notification"),m=`${h}-notice`,g=Ws(h),[v,b,y]=kl(h,g);return v(p.createElement("div",{className:oi()(`${m}-pure-panel`,b,n,y,g)},p.createElement($l,{prefixCls:h}),p.createElement(Ts,Object.assign({},d,{prefixCls:h,eventKey:"pure",duration:null,closable:l,className:oi()({notificationClassName:u}),closeIcon:_l(h,c),content:p.createElement(jl,{prefixCls:m,icon:o,type:r,message:i,description:a,btn:s})}))))}},Wl=Vl;["success","info","warning","error"].forEach((e=>{Wl[e]=t=>Hl(Object.assign(Object.assign({},t),{type:e}))}));const Kl=Wl,ql=()=>({height:0,opacity:0}),Ul=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},Gl=e=>({height:e?e.offsetHeight:0}),Xl=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,Yl=(e,t,n)=>void 0!==n?n:`${e}-${t}`,Zl=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ant"}-motion-collapse`,onAppearStart:ql,onEnterStart:ql,onAppearActive:Ul,onEnterActive:Ul,onLeaveStart:Gl,onLeaveActive:ql,onAppearEnd:Xl,onEnterEnd:Xl,onLeaveEnd:Xl,motionDeadline:500}},Ql=(e,t)=>{const n=p.useContext(Yo);return[p.useMemo((()=>{var o;const r=t||Ko[e],i=null!==(o=null==n?void 0:n[e])&&void 0!==o?o:{};return Object.assign(Object.assign({},"function"==typeof r?r():r),i||{})}),[e,t,n]),p.useMemo((()=>{const e=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!e?Ko.locale:e}),[n])]};function Jl(e,t){var n=$e({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}const ec=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,o=t.height;if(n||o)return!0}if(e.getBoundingClientRect){var r=e.getBoundingClientRect(),i=r.width,a=r.height;if(i||a)return!0}}return!1},{isValidElement:tc}=p;function nc(e){return e&&tc(e)&&e.type===p.Fragment}function oc(e,t,n){return tc(e)?p.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t}function rc(e,t){return oc(e,e,t)}const ic=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 0.3s ${e.motionEaseInOut}`,`opacity 0.35s ${e.motionEaseInOut}`].join(",")}}}}},ac=fl("Wave",(e=>[ic(e)]));function sc(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3]&&t[1]===t[2]&&t[2]===t[3])}(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}const lc="ant-wave-target";function cc(e){return Number.isNaN(e)?0:e}const uc=e=>{const{className:t,target:n,component:o}=e,r=p.useRef(null),[i,a]=p.useState(null),[s,l]=p.useState([]),[c,u]=p.useState(0),[d,f]=p.useState(0),[h,m]=p.useState(0),[g,v]=p.useState(0),[b,y]=p.useState(!1),x={left:c,top:d,width:h,height:g,borderRadius:s.map((e=>`${e}px`)).join(" ")};function w(){const e=getComputedStyle(n);a(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:o}=getComputedStyle(e);return sc(t)?t:sc(n)?n:sc(o)?o:null}(n));const t="static"===e.position,{borderLeftWidth:o,borderTopWidth:r}=e;u(t?n.offsetLeft:cc(-parseFloat(o))),f(t?n.offsetTop:cc(-parseFloat(r))),m(n.offsetWidth),v(n.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:s,borderBottomLeftRadius:c,borderBottomRightRadius:d}=e;l([i,s,d,c].map((e=>cc(parseFloat(e)))))}if(i&&(x["--wave-color"]=i),p.useEffect((()=>{if(n){const e=na((()=>{w(),y(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(w),t.observe(n)),()=>{na.cancel(e),null==t||t.disconnect()}}}),[]),!b)return null;const C=("Checkbox"===o||"Radio"===o)&&(null==n?void 0:n.classList.contains(lc));return p.createElement(va,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=r.current)||void 0===n?void 0:n.parentElement;Be(e).then((()=>{null==e||e.remove()}))}return!1}},(e=>{let{className:n}=e;return p.createElement("div",{ref:r,className:oi()(t,{"wave-quick":C},n),style:x})}))},dc=(e,t)=>{var n;const{component:o}=t;if("Checkbox"===o&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;const r=document.createElement("div");r.style.position="absolute",r.style.left="0px",r.style.top="0px",null==e||e.insertBefore(r,null==e?void 0:e.firstChild),Te(p.createElement(uc,Object.assign({},t,{target:e})),r)},fc=e=>{const{children:t,disabled:n,component:o}=e,{getPrefixCls:r}=(0,p.useContext)(He),i=(0,p.useRef)(null),a=r("wave"),[,s]=ac(a),l=function(e,t,n){const{wave:o}=p.useContext(He),[,r,i]=Oa(),a=nl((a=>{const s=e.current;if((null==o?void 0:o.disabled)||!s)return;const l=s.querySelector(`.${lc}`)||s,{showEffect:c}=o||{};(c||dc)(l,{className:t,token:r,component:n,event:a,hashId:i})})),s=p.useRef();return e=>{na.cancel(s.current),s.current=na((()=>{a(e)}))}}(i,oi()(a,s),o);return h().useEffect((()=>{const e=i.current;if(!e||1!==e.nodeType||n)return;const t=t=>{!ec(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||l(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[n]),h().isValidElement(t)?rc(t,{ref:ui(t)?li(t.ref,i):i}):null!=t?t:null},pc=e=>{const t=h().useContext(Qr);return h().useMemo((()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t),[e,t])};function hc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return h().Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(hc(e)):(0,ai.isFragment)(e)&&e.props?n=n.concat(hc(e.props.children,t)):n.push(e))})),n}const mc=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},gc=e=>{const{componentCls:t}=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"}}}},vc=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}}}},bc=hl("Space",(e=>{const t=Js(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[gc(t),vc(t),mc(t)]}),(()=>({})),{resetStyle:!1});var yc=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const xc=p.createContext(null),wc=(e,t)=>{const n=p.useContext(xc),o=p.useMemo((()=>{if(!n)return"";const{compactDirection:o,isFirstItem:r,isLastItem:i}=n,a="vertical"===o?"-vertical-":"-";return oi()(`${e}-compact${a}item`,{[`${e}-compact${a}first-item`]:r,[`${e}-compact${a}last-item`]:i,[`${e}-compact${a}item-rtl`]:"rtl"===t})}),[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:o}},Cc=e=>{let{children:t}=e;return p.createElement(xc.Provider,{value:null},t)},Sc=e=>{var{children:t}=e,n=yc(e,["children"]);return p.createElement(xc.Provider,{value:n},t)};const Ec=p.createContext(void 0),kc=/^[\u4e00-\u9fa5]{2}$/,$c=kc.test.bind(kc);function _c(e){return"danger"===e?{danger:!0}:{type:e}}function Oc(e){return"string"==typeof e}function jc(e){return"text"===e||"link"===e}const Mc=(0,p.forwardRef)(((e,t)=>{const{className:n,style:o,children:r,prefixCls:i}=e,a=oi()(`${i}-icon`,n);return h().createElement("span",{ref:t,className:a,style:o},r)})),Pc=Mc,Ic=(0,p.forwardRef)(((e,t)=>{let{prefixCls:n,className:o,style:r,iconClassName:i}=e;const a=oi()(`${n}-loading-icon`,o);return h().createElement(Pc,{prefixCls:n,className:a,style:r,ref:t},h().createElement(Ms,{className:i}))})),Nc=()=>({width:0,opacity:0,transform:"scale(0)"}),Tc=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Rc=e=>{const{prefixCls:t,loading:n,existIcon:o,className:r,style:i}=e,a=!!n;return o?h().createElement(Ic,{prefixCls:t,className:r,style:i}):h().createElement(va,{visible:a,motionName:`${t}-loading-icon-motion`,motionLeave:a,removeOnLeave:!0,onAppearStart:Nc,onAppearActive:Tc,onEnterStart:Nc,onEnterActive:Tc,onLeaveStart:Tc,onLeaveActive:Nc},((e,n)=>{let{className:o,style:a}=e;return h().createElement(Ic,{prefixCls:t,className:r,style:Object.assign(Object.assign({},i),a),ref:n,iconClassName:o})}))},Ac=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Dc=e=>{const{componentCls:t,fontSize:n,lineWidth:o,groupBorderColor:r,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(o).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n          &:focus,\n          &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Ac(`${t}-primary`,r),Ac(`${t}-danger`,i)]}},Bc=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:o}=e;return Js(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:o,buttonIconOnlyFontSize:n})},Lc=e=>{var t,n,o,r,i,a;const s=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,l=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,c=null!==(o=e.contentFontSizeLG)&&void 0!==o?o:e.fontSizeLG,u=null!==(r=e.contentLineHeight)&&void 0!==r?r:Hr(s),d=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:Hr(l),f=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:Hr(c);return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,contentFontSize:s,contentFontSizeSM: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)}},zc=e=>{const{componentCls:t,iconCls:n,fontWeight:o}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:o,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${qt(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},Aa(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${t}-compact-item`]:{flex:"none"}}}},Fc=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),Hc=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),Vc=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),Wc=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Kc=(e,t,n,o,r,i,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:o||void 0,boxShadow:"none"},Fc(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:i||void 0}})}),qc=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},Wc(e))}),Uc=e=>Object.assign({},qc(e)),Gc=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Xc=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Uc(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),Fc(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Kc(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},Fc(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Kc(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),qc(e))}),Yc=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Uc(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),Fc(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),Kc(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},Fc(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),Kc(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),qc(e))}),Zc=e=>Object.assign(Object.assign({},Xc(e)),{borderStyle:"dashed"}),Qc=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},Fc(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Gc(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Fc(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),Gc(e))}),Jc=e=>Object.assign(Object.assign(Object.assign({},Fc(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),Gc(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Gc(e)),Fc(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBg}))}),eu=e=>{const{componentCls:t}=e;return{[`${t}-default`]:Xc(e),[`${t}-primary`]:Yc(e),[`${t}-dashed`]:Zc(e),[`${t}-link`]:Qc(e),[`${t}-text`]:Jc(e),[`${t}-ghost`]:Kc(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},tu=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,controlHeight:o,fontSize:r,lineHeight:i,borderRadius:a,buttonPaddingHorizontal:s,iconCls:l,buttonPaddingVertical:c}=e,u=`${n}-icon-only`;return[{[`${t}`]:{fontSize:r,lineHeight:i,height:o,padding:`${qt(c)} ${qt(s)}`,borderRadius:a,[`&${u}`]:{width:o,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},[l]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:Hc(e)},{[`${n}${n}-round${t}`]:Vc(e)}]},nu=e=>{const t=Js(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return tu(t,e.componentCls)},ou=e=>{const t=Js(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return tu(t,`${e.componentCls}-sm`)},ru=e=>{const t=Js(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return tu(t,`${e.componentCls}-lg`)},iu=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},au=hl("Button",(e=>{const t=Bc(e);return[zc(t),nu(t),ou(t),ru(t),iu(t),eu(t),Dc(t)]}),Lc,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function su(e,t,n){const{focusElCls:o,focus:r,borderElCls:i}=n,a=i?"> *":"",s=["hover",r?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${a}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},o?{[`&${o}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function lu(e,t,n){const{borderElCls:o}=n,r=o?`> ${o}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${r}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function cu(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,o=`${n}-compact`;return{[o]:Object.assign(Object.assign({},su(e,o,t)),lu(n,o,t))}}function uu(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 du(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},uu(e,t)),(n=e.componentCls,o=t,{[`&-item:not(${o}-first-item):not(${o}-last-item)`]:{borderRadius:0},[`&-item${o}-first-item:not(${o}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${o}-last-item:not(${o}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,o}const fu=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${qt(e.lineWidth)} * 2)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${qt(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},pu=pl(["Button","compact"],(e=>{const t=Bc(e);return[cu(t),du(t),fu(t)]}),Lc);const hu=(e,t)=>{var n,o;const{loading:r=!1,prefixCls:i,type:a="default",danger:s,shape:l="default",size:c,styles:u,disabled:d,className:f,rootClassName:m,children:g,icon:v,ghost:b=!1,block:y=!1,htmlType:x="button",classNames:w,style:C={}}=e,S=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:E,autoInsertSpaceInButton:k,direction:$,button:_}=(0,p.useContext)(He),O=E("btn",i),[j,M,P]=au(O),I=(0,p.useContext)(Xr),N=null!=d?d:I,T=(0,p.useContext)(Ec),R=(0,p.useMemo)((()=>function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return t=Number.isNaN(t)||"number"!=typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(r)),[r]),[A,D]=(0,p.useState)(R.loading),[B,L]=(0,p.useState)(!1),z=li(t,(0,p.createRef)()),F=1===p.Children.count(g)&&!v&&!jc(a);(0,p.useEffect)((()=>{let e=null;return R.delay>0?e=setTimeout((()=>{e=null,D(!0)}),R.delay):D(R.loading),function(){e&&(clearTimeout(e),e=null)}}),[R]),(0,p.useEffect)((()=>{if(!z||!z.current||!1===k)return;const e=z.current.textContent;F&&$c(e)?B||L(!0):B&&L(!1)}),[z]);const H=t=>{const{onClick:n}=e;A||N?t.preventDefault():null==n||n(t)},V=!1!==k,{compactSize:W,compactItemClassnames:K}=wc(O,$),q=pc((e=>{var t,n;return null!==(n=null!==(t=null!=c?c:W)&&void 0!==t?t:T)&&void 0!==n?n:e})),U=q&&{large:"lg",small:"sm",middle:void 0}[q]||"",G=A?"loading":v,X=Jl(S,["navigate"]),Y=oi()(O,M,P,{[`${O}-${l}`]:"default"!==l&&l,[`${O}-${a}`]:a,[`${O}-${U}`]:U,[`${O}-icon-only`]:!g&&0!==g&&!!G,[`${O}-background-ghost`]:b&&!jc(a),[`${O}-loading`]:A,[`${O}-two-chinese-chars`]:B&&V&&!A,[`${O}-block`]:y,[`${O}-dangerous`]:!!s,[`${O}-rtl`]:"rtl"===$},K,f,m,null==_?void 0:_.className),Z=Object.assign(Object.assign({},null==_?void 0:_.style),C),Q=oi()(null==w?void 0:w.icon,null===(n=null==_?void 0:_.classNames)||void 0===n?void 0:n.icon),J=Object.assign(Object.assign({},(null==u?void 0:u.icon)||{}),(null===(o=null==_?void 0:_.styles)||void 0===o?void 0:o.icon)||{}),ee=v&&!A?h().createElement(Pc,{prefixCls:O,className:Q,style:J},v):h().createElement(Rc,{existIcon:!!v,prefixCls:O,loading:!!A}),te=g||0===g?function(e,t){let n=!1;const o=[];return h().Children.forEach(e,(e=>{const t=typeof e,r="string"===t||"number"===t;if(n&&r){const t=o.length-1,n=o[t];o[t]=`${n}${e}`}else o.push(e);n=r})),h().Children.map(o,(e=>function(e,t){if(null==e)return;const n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&Oc(e.type)&&$c(e.props.children)?rc(e,{children:e.props.children.split("").join(n)}):Oc(e)?$c(e)?h().createElement("span",null,e.split("").join(n)):h().createElement("span",null,e):nc(e)?h().createElement("span",null,e):e}(e,t)))}(g,F&&V):null;if(void 0!==X.href)return j(h().createElement("a",Object.assign({},X,{className:oi()(Y,{[`${O}-disabled`]:N}),href:N?void 0:X.href,style:Z,onClick:H,ref:z,tabIndex:N?-1:0}),ee,te));let ne=h().createElement("button",Object.assign({},S,{type:x,className:Y,style:Z,onClick:H,disabled:N,ref:z}),ee,te,!!K&&h().createElement(pu,{key:"compact",prefixCls:O}));return jc(a)||(ne=h().createElement(fc,{component:"Button",disabled:!!A},ne)),j(ne)},mu=(0,p.forwardRef)(hu);mu.Group=e=>{const{getPrefixCls:t,direction:n}=p.useContext(He),{prefixCls:o,size:r,className:i}=e,a=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","size","className"]),s=t("btn-group",o),[,,l]=Oa();let c="";switch(r){case"large":c="lg";break;case"small":c="sm"}const u=oi()(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:"rtl"===n},i,l);return p.createElement(Ec.Provider,{value:r},p.createElement("div",Object.assign({},a,{className:u})))},mu.__ANT_BUTTON=!0;const gu=mu;function vu(e){return!(!e||!e.then)}const bu=e=>{const{type:t,children:n,prefixCls:o,buttonProps:r,close:i,autoFocus:a,emitEvent:s,isSilent:l,quitOnNullishReturnValue:c,actionFn:u}=e,d=p.useRef(!1),f=p.useRef(null),[h,m]=Si(!1),g=function(){null==i||i.apply(void 0,arguments)};return p.useEffect((()=>{let e=null;return a&&(e=setTimeout((()=>{var e;null===(e=f.current)||void 0===e||e.focus()}))),()=>{e&&clearTimeout(e)}}),[]),p.createElement(gu,Object.assign({},_c(t),{onClick:e=>{if(d.current)return;if(d.current=!0,!u)return void g();let t;if(s){if(t=u(e),c&&!vu(t))return d.current=!1,void g(e)}else if(u.length)t=u(i),d.current=!1;else if(t=u(),!t)return void g();(e=>{vu(e)&&(m(!0),e.then((function(){m(!1,!0),g.apply(void 0,arguments),d.current=!1}),(e=>{if(m(!1,!0),d.current=!1,!(null==l?void 0:l()))return Promise.reject(e)})))})(t)},loading:h,prefixCls:o},r,{ref:f}),n)},yu=h().createContext({}),{Provider:xu}=yu,wu=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:o,mergedOkCancel:r,rootPrefixCls:i,close:a,onCancel:s,onConfirm:l}=(0,p.useContext)(yu);return r?h().createElement(bu,{isSilent:o,actionFn:s,close:function(){null==a||a.apply(void 0,arguments),null==l||l(!1)},autoFocus:"cancel"===e,buttonProps:t,prefixCls:`${i}-btn`},n):null},Cu=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:o,rootPrefixCls:r,okTextLocale:i,okType:a,onConfirm:s,onOk:l}=(0,p.useContext)(yu);return h().createElement(bu,{isSilent:n,type:a||"primary",actionFn:l,close:function(){null==t||t.apply(void 0,arguments),null==s||s(!0)},autoFocus:"ok"===e,buttonProps:o,prefixCls:`${r}-btn`},i)},Su=p.createContext(null);var Eu,ku=[];function $u(e){if("undefined"==typeof document)return 0;if(e||void 0===Eu){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),o=n.style;o.position="absolute",o.top="0",o.left="0",o.pointerEvents="none",o.visibility="hidden",o.width="200px",o.height="150px",o.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var r=t.offsetWidth;n.style.overflow="scroll";var i=t.offsetWidth;r===i&&(i=n.clientWidth),document.body.removeChild(n),Eu=r-i}return Eu}function _u(e){var t=e.match(/^(.*)px$/),n=Number(null==t?void 0:t[1]);return Number.isNaN(n)?$u():n}function Ou(e){if(!("undefined"!=typeof document&&e&&e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),n=t.width,o=t.height;return{width:_u(n),height:_u(o)}}var ju="rc-util-locker-".concat(Date.now()),Mu=0;var Pu=!1,Iu=function(e){return!1!==e&&(Qe()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},Nu=p.forwardRef((function(e,t){var n=e.open,o=e.autoLock,r=e.getContainer,i=(e.debug,e.autoDestroy),a=void 0===i||i,s=e.children,l=Ge(p.useState(n),2),c=l[0],u=l[1],d=c||n;p.useEffect((function(){(a||n)&&u(n)}),[n,a]);var f=Ge(p.useState((function(){return Iu(r)})),2),h=f[0],m=f[1];p.useEffect((function(){var e=Iu(r);m(null!=e?e:null)}));var g=function(e,t){var n=Ge(p.useState((function(){return Qe()?document.createElement("div"):null})),1)[0],o=p.useRef(!1),r=p.useContext(Su),i=Ge(p.useState(ku),2),a=i[0],s=i[1],l=r||(o.current?void 0:function(e){s((function(t){return[e].concat(Ye(t))}))});function c(){n.parentElement||document.body.appendChild(n),o.current=!0}function u(){var e;null===(e=n.parentElement)||void 0===e||e.removeChild(n),o.current=!1}return en((function(){return e?r?r(c):c():u(),u}),[e]),en((function(){a.length&&(a.forEach((function(e){return e()})),s(ku))}),[a]),[n,l]}(d&&!h),v=Ge(g,2),b=v[0],y=v[1],x=null!=h?h:b;!function(e){var t=!!e,n=Ge(p.useState((function(){return Mu+=1,"".concat(ju,"_").concat(Mu)})),1)[0];en((function(){if(t){var e=Ou(document.body).width,o=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;ut("\nhtml body {\n  overflow-y: hidden;\n  ".concat(o?"width: calc(100% - ".concat(e,"px);"):"","\n}"),n)}else ct(n);return function(){ct(n)}}),[t,n])}(o&&n&&Qe()&&(x===b||x===document.body));var w=null;s&&ui(s)&&t&&(w=s.ref);var C=ci(w,t);if(!d||!Qe()||void 0===h)return null;var S=!1===x||Pu,E=s;return t&&(E=p.cloneElement(s,{ref:C})),p.createElement(Su.Provider,{value:y},S?E:(0,pe.createPortal)(E,x))}));const Tu=Nu;var Ru=p.createContext({}),Au=0,Du=$e({},p).useId;const Bu=Du?function(e){var t=Du();return e||t}:function(e){var t=Ge(p.useState("ssr-id"),2),n=t[0],o=t[1];return p.useEffect((function(){var e=Au;Au+=1,o("rc_unique_".concat(e))}),[]),e||n};var Lu="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n    alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n    charSet checked classID className colSpan cols content contentEditable contextMenu\n    controls coords crossOrigin data dateTime default defer dir disabled download draggable\n    encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n    headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n    is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n    mediaGroup method min minLength multiple muted name noValidate nonce open\n    optimum pattern placeholder poster preload radioGroup readOnly rel required\n    reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n    shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n    summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n    onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n    onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n    onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n    onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n    onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n    onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/),zu="aria-",Fu="data-";function Hu(e,t){return 0===e.indexOf(t)}function Vu(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:$e({},n);var o={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||Hu(n,zu))||t.data&&Hu(n,Fu)||t.attr&&Lu.includes(n))&&(o[n]=e[n])})),o}function Wu(e,t,n){var o=t;return!o&&n&&(o="".concat(e,"-").concat(n)),o}function Ku(e,t){var n=e["page".concat(t?"Y":"X","Offset")],o="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var r=e.document;"number"!=typeof(n=r.documentElement[o])&&(n=r.body[o])}return n}const qu=p.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate}));var Uu={width:0,height:0,overflow:"hidden",outline:"none"},Gu=h().forwardRef((function(e,t){var n=e.prefixCls,o=e.className,r=e.style,i=e.title,a=e.ariaId,s=e.footer,l=e.closable,c=e.closeIcon,u=e.onClose,d=e.children,f=e.bodyStyle,m=e.bodyProps,g=e.modalRender,v=e.onMouseDown,b=e.onMouseUp,y=e.holderRef,x=e.visible,w=e.forceRender,C=e.width,S=e.height,E=e.classNames,k=e.styles,$=ci(y,h().useContext(Ru).panel),_=(0,p.useRef)(),O=(0,p.useRef)();h().useImperativeHandle(t,(function(){return{focus:function(){var e;null===(e=_.current)||void 0===e||e.focus()},changeActive:function(e){var t=document.activeElement;e&&t===O.current?_.current.focus():e||t!==_.current||O.current.focus()}}}));var j,M,P,I={};void 0!==C&&(I.width=C),void 0!==S&&(I.height=S),s&&(j=h().createElement("div",{className:oi()("".concat(n,"-footer"),null==E?void 0:E.footer),style:$e({},null==k?void 0:k.footer)},s)),i&&(M=h().createElement("div",{className:oi()("".concat(n,"-header"),null==E?void 0:E.header),style:$e({},null==k?void 0:k.header)},h().createElement("div",{className:"".concat(n,"-title"),id:a},i))),l&&(P=h().createElement("button",{type:"button",onClick:u,"aria-label":"Close",className:"".concat(n,"-close")},c||h().createElement("span",{className:"".concat(n,"-close-x")})));var N=h().createElement("div",{className:oi()("".concat(n,"-content"),null==E?void 0:E.content),style:null==k?void 0:k.content},P,M,h().createElement("div",hn({className:oi()("".concat(n,"-body"),null==E?void 0:E.body),style:$e($e({},f),null==k?void 0:k.body)},m),d),j);return h().createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?a:null,"aria-modal":"true",ref:$,style:$e($e({},r),I),className:oi()(n,o),onMouseDown:v,onMouseUp:b},h().createElement("div",{tabIndex:0,ref:_,style:Uu,"aria-hidden":"true"}),h().createElement(qu,{shouldUpdate:x||w},g?g(N):N),h().createElement("div",{tabIndex:0,ref:O,style:Uu,"aria-hidden":"true"}))}));const Xu=Gu;var Yu=p.forwardRef((function(e,t){var n=e.prefixCls,o=e.title,r=e.style,i=e.className,a=e.visible,s=e.forceRender,l=e.destroyOnClose,c=e.motionName,u=e.ariaId,d=e.onVisibleChanged,f=e.mousePosition,h=(0,p.useRef)(),m=Ge(p.useState(),2),g=m[0],v=m[1],b={};function y(){var e=function(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},o=e.ownerDocument,r=o.defaultView||o.parentWindow;return n.left+=Ku(r),n.top+=Ku(r,!0),n}(h.current);v(f?"".concat(f.x-e.left,"px ").concat(f.y-e.top,"px"):"")}return g&&(b.transformOrigin=g),p.createElement(va,{visible:a,onVisibleChanged:d,onAppearPrepare:y,onEnterPrepare:y,forceRender:s,motionName:c,removeOnLeave:l,ref:h},(function(a,s){var l=a.className,c=a.style;return p.createElement(Xu,hn({},e,{ref:t,title:o,ariaId:u,prefixCls:n,holderRef:s,style:$e($e($e({},c),r),b),className:oi()(i,l)}))}))}));Yu.displayName="Content";const Zu=Yu;function Qu(e){var t=e.prefixCls,n=e.style,o=e.visible,r=e.maskProps,i=e.motionName,a=e.className;return p.createElement(va,{key:"mask",visible:o,motionName:i,leavedClassName:"".concat(t,"-mask-hidden")},(function(e,o){var i=e.className,s=e.style;return p.createElement("div",hn({ref:o,style:$e($e({},s),n),className:oi()("".concat(t,"-mask"),i,a)},r))}))}function Ju(e){var t=e.prefixCls,n=void 0===t?"rc-dialog":t,o=e.zIndex,r=e.visible,i=void 0!==r&&r,a=e.keyboard,s=void 0===a||a,l=e.focusTriggerAfterClose,c=void 0===l||l,u=e.wrapStyle,d=e.wrapClassName,f=e.wrapProps,h=e.onClose,m=e.afterOpenChange,g=e.afterClose,v=e.transitionName,b=e.animation,y=e.closable,x=void 0===y||y,w=e.mask,C=void 0===w||w,S=e.maskTransitionName,E=e.maskAnimation,k=e.maskClosable,$=void 0===k||k,_=e.maskStyle,O=e.maskProps,j=e.rootClassName,M=e.classNames,P=e.styles,I=(0,p.useRef)(),N=(0,p.useRef)(),T=(0,p.useRef)(),R=Ge(p.useState(i),2),A=R[0],D=R[1],B=Bu();function L(e){null==h||h(e)}var z=(0,p.useRef)(!1),F=(0,p.useRef)(),H=null;return $&&(H=function(e){z.current?z.current=!1:N.current===e.target&&L(e)}),(0,p.useEffect)((function(){i&&(D(!0),Je(N.current,document.activeElement)||(I.current=document.activeElement))}),[i]),(0,p.useEffect)((function(){return function(){clearTimeout(F.current)}}),[]),p.createElement("div",hn({className:oi()("".concat(n,"-root"),j)},Vu(e,{data:!0})),p.createElement(Qu,{prefixCls:n,visible:C&&i,motionName:Wu(n,S,E),style:$e($e({zIndex:o},_),null==P?void 0:P.mask),maskProps:O,className:null==M?void 0:M.mask}),p.createElement("div",hn({tabIndex:-1,onKeyDown:function(e){if(s&&e.keyCode===Is.ESC)return e.stopPropagation(),void L(e);i&&e.keyCode===Is.TAB&&T.current.changeActive(!e.shiftKey)},className:oi()("".concat(n,"-wrap"),d,null==M?void 0:M.wrapper),ref:N,onClick:H,style:$e($e($e({zIndex:o},u),null==P?void 0:P.wrapper),{},{display:A?null:"none"})},f),p.createElement(Zu,hn({},e,{onMouseDown:function(){clearTimeout(F.current),z.current=!0},onMouseUp:function(){F.current=setTimeout((function(){z.current=!1}))},ref:T,closable:x,ariaId:B,prefixCls:n,visible:i&&A,onClose:L,onVisibleChanged:function(e){if(e)Je(N.current,document.activeElement)||null===(t=T.current)||void 0===t||t.focus();else{if(D(!1),C&&I.current&&c){try{I.current.focus({preventScroll:!0})}catch(e){}I.current=null}A&&(null==g||g())}var t;null==m||m(e)},motionName:Wu(n,v,b)}))))}var ed=function(e){var t=e.visible,n=e.getContainer,o=e.forceRender,r=e.destroyOnClose,i=void 0!==r&&r,a=e.afterClose,s=e.panelRef,l=Ge(p.useState(t),2),c=l[0],u=l[1],d=p.useMemo((function(){return{panel:s}}),[s]);return p.useEffect((function(){t&&u(!0)}),[t]),o||!i||c?p.createElement(Ru.Provider,{value:d},p.createElement(Tu,{open:t||o||c,autoDestroy:!1,getContainer:n,autoLock:t||c},p.createElement(Ju,hn({},e,{destroyOnClose:i,afterClose:function(){null==a||a(),u(!1)}})))):null};ed.displayName="Dialog";const td=ed;var nd="RC_FORM_INTERNAL_HOOKS",od=function(){bt(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")};const rd=p.createContext({getFieldValue:od,getFieldsValue:od,getFieldError:od,getFieldWarning:od,getFieldsError:od,isFieldsTouched:od,isFieldTouched:od,isFieldValidating:od,isFieldsValidating:od,resetFields:od,setFields:od,setFieldValue:od,setFieldsValue:od,validateFields:od,submit:od,getInternalHooks:function(){return od(),{dispatch:od,initEntityValue:od,registerField:od,useSubscribe:od,setInitialValues:od,destroyForm:od,setCallbacks:od,registerWatch:od,getFields:od,setValidateMessages:od,setPreserve:od,getInitialValue:od}}}),id=p.createContext(null);function ad(e){return null==e?[]:Array.isArray(e)?e:[e]}function sd(){return sd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},sd.apply(this,arguments)}function ld(e){return ld=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ld(e)}function cd(e,t){return cd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},cd(e,t)}function ud(e,t,n){return ud=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct.bind():function(e,t,n){var o=[null];o.push.apply(o,t);var r=new(Function.bind.apply(e,o));return n&&cd(r,n.prototype),r},ud.apply(null,arguments)}function dd(e){var t="function"==typeof Map?new Map:void 0;return dd=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,o)}function o(){return ud(e,arguments,ld(this).constructor)}return o.prototype=Object.create(e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),cd(o,e)},dd(e)}var fd=/%[sdj%]/g;function pd(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function hd(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r=0,i=n.length;return"function"==typeof e?e.apply(null,n):"string"==typeof e?e.replace(fd,(function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}break;default:return e}})):e}function md(e,t){return null==e||!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e)}function gd(e,t,n){var o=0,r=e.length;!function i(a){if(a&&a.length)n(a);else{var s=o;o+=1,s<r?t(e[s],i):n([])}}([])}"undefined"!=typeof process&&process.env;var vd=function(e){var t,n;function o(t,n){var o;return(o=e.call(this,"Async Validation Error")||this).errors=t,o.fields=n,o}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,cd(t,n),o}(dd(Error));function bd(e,t){return function(n){var o,r;return o=e.fullFields?function(e,t){for(var n=e,o=0;o<t.length;o++){if(null==n)return n;n=n[t[o]]}return n}(t,e.fullFields):t[n.field||e.fullField],(r=n)&&void 0!==r.message?(n.field=n.field||e.fullField,n.fieldValue=o,n):{message:"function"==typeof n?n():n,fieldValue:o,field:n.field||e.fullField}}}function yd(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];"object"==typeof o&&"object"==typeof e[n]?e[n]=sd({},e[n],o):e[n]=o}return e}var xd,wd=function(e,t,n,o,r,i){!e.required||n.hasOwnProperty(e.field)&&!md(t,i||e.type)||o.push(hd(r.messages.required,e.fullField))},Cd=/^(([^<>()\[\]\\.,;:\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,}))$/,Sd=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,Ed={integer:function(e){return Ed.number(e)&&parseInt(e,10)===e},float:function(e){return Ed.number(e)&&!Ed.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"==typeof e&&!Ed.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(Cd)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(xd)return xd;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+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}",o="[a-fA-F\\d]{1,4}",r=("\n(?:\n(?:"+o+":){7}(?:"+o+"|:)|                                    // 1:2:3:4:5:6:7::  1:2:3:4:5:6:7:8\n(?:"+o+":){6}(?:"+n+"|:"+o+"|:)|                             // 1:2:3:4:5:6::    1:2:3:4:5:6::8   1:2:3:4:5:6::8  1:2:3:4:5:6::1.2.3.4\n(?:"+o+":){5}(?::"+n+"|(?::"+o+"){1,2}|:)|                   // 1:2:3:4:5::      1:2:3:4:5::7:8   1:2:3:4:5::8    1:2:3:4:5::7:1.2.3.4\n(?:"+o+":){4}(?:(?::"+o+"){0,1}:"+n+"|(?::"+o+"){1,3}|:)| // 1:2:3:4::        1:2:3:4::6:7:8   1:2:3:4::8      1:2:3:4::6:7:1.2.3.4\n(?:"+o+":){3}(?:(?::"+o+"){0,2}:"+n+"|(?::"+o+"){1,4}|:)| // 1:2:3::          1:2:3::5:6:7:8   1:2:3::8        1:2:3::5:6:7:1.2.3.4\n(?:"+o+":){2}(?:(?::"+o+"){0,3}:"+n+"|(?::"+o+"){1,5}|:)| // 1:2::            1:2::4:5:6:7:8   1:2::8          1:2::4:5:6:7:1.2.3.4\n(?:"+o+":){1}(?:(?::"+o+"){0,4}:"+n+"|(?::"+o+"){1,6}|:)| // 1::              1::3:4:5:6:7:8   1::8            1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::"+o+"){0,5}:"+n+"|(?::"+o+"){1,7}|:))             // ::2:3:4:5:6:7:8  ::2:3:4:5:6:7:8  ::8             ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})?                                             // %eth0            %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+n+"$)|(?:^"+r+"$)"),a=new RegExp("^"+n+"$"),s=new RegExp("^"+r+"$"),l=function(e){return e&&e.exact?i:new RegExp("(?:"+t(e)+n+t(e)+")|(?:"+t(e)+r+t(e)+")","g")};l.v4=function(e){return e&&e.exact?a:new RegExp(""+t(e)+n+t(e),"g")},l.v6=function(e){return e&&e.exact?s:new RegExp(""+t(e)+r+t(e),"g")};var c=l.v4().source,u=l.v6().source;return xd=new RegExp("(?:^(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|"+c+"|"+u+'|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?$)',"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(Sd)}},kd="enum",$d=wd,_d=function(e,t,n,o,r){(/^\s+$/.test(t)||""===t)&&o.push(hd(r.messages.whitespace,e.fullField))},Od=function(e,t,n,o,r){if(e.required&&void 0===t)wd(e,t,n,o,r);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?Ed[i](t)||o.push(hd(r.messages.types[i],e.fullField,e.type)):i&&typeof t!==e.type&&o.push(hd(r.messages.types[i],e.fullField,e.type))}},jd=function(e,t,n,o,r){var i="number"==typeof e.len,a="number"==typeof e.min,s="number"==typeof e.max,l=t,c=null,u="number"==typeof t,d="string"==typeof t,f=Array.isArray(t);if(u?c="number":d?c="string":f&&(c="array"),!c)return!1;f&&(l=t.length),d&&(l=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?l!==e.len&&o.push(hd(r.messages[c].len,e.fullField,e.len)):a&&!s&&l<e.min?o.push(hd(r.messages[c].min,e.fullField,e.min)):s&&!a&&l>e.max?o.push(hd(r.messages[c].max,e.fullField,e.max)):a&&s&&(l<e.min||l>e.max)&&o.push(hd(r.messages[c].range,e.fullField,e.min,e.max))},Md=function(e,t,n,o,r){e[kd]=Array.isArray(e[kd])?e[kd]:[],-1===e[kd].indexOf(t)&&o.push(hd(r.messages[kd],e.fullField,e[kd].join(", ")))},Pd=function(e,t,n,o,r){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||o.push(hd(r.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"==typeof e.pattern&&(new RegExp(e.pattern).test(t)||o.push(hd(r.messages.pattern.mismatch,e.fullField,t,e.pattern))))},Id=function(e,t,n,o,r){var i=e.type,a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(md(t,i)&&!e.required)return n();$d(e,t,o,a,r,i),md(t,i)||Od(e,t,o,a,r)}n(a)},Nd={string:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(md(t,"string")&&!e.required)return n();$d(e,t,o,i,r,"string"),md(t,"string")||(Od(e,t,o,i,r),jd(e,t,o,i,r),Pd(e,t,o,i,r),!0===e.whitespace&&_d(e,t,o,i,r))}n(i)},method:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(md(t)&&!e.required)return n();$d(e,t,o,i,r),void 0!==t&&Od(e,t,o,i,r)}n(i)},number:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(""===t&&(t=void 0),md(t)&&!e.required)return n();$d(e,t,o,i,r),void 0!==t&&(Od(e,t,o,i,r),jd(e,t,o,i,r))}n(i)},boolean:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(md(t)&&!e.required)return n();$d(e,t,o,i,r),void 0!==t&&Od(e,t,o,i,r)}n(i)},regexp:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(md(t)&&!e.required)return n();$d(e,t,o,i,r),md(t)||Od(e,t,o,i,r)}n(i)},integer:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(md(t)&&!e.required)return n();$d(e,t,o,i,r),void 0!==t&&(Od(e,t,o,i,r),jd(e,t,o,i,r))}n(i)},float:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(md(t)&&!e.required)return n();$d(e,t,o,i,r),void 0!==t&&(Od(e,t,o,i,r),jd(e,t,o,i,r))}n(i)},array:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();$d(e,t,o,i,r,"array"),null!=t&&(Od(e,t,o,i,r),jd(e,t,o,i,r))}n(i)},object:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(md(t)&&!e.required)return n();$d(e,t,o,i,r),void 0!==t&&Od(e,t,o,i,r)}n(i)},enum:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(md(t)&&!e.required)return n();$d(e,t,o,i,r),void 0!==t&&Md(e,t,o,i,r)}n(i)},pattern:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(md(t,"string")&&!e.required)return n();$d(e,t,o,i,r),md(t,"string")||Pd(e,t,o,i,r)}n(i)},date:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(md(t,"date")&&!e.required)return n();var a;$d(e,t,o,i,r),md(t,"date")||(a=t instanceof Date?t:new Date(t),Od(e,a,o,i,r),a&&jd(e,a.getTime(),o,i,r))}n(i)},url:Id,hex:Id,email:Id,required:function(e,t,n,o,r){var i=[],a=Array.isArray(t)?"array":typeof t;$d(e,t,o,i,r,a),n(i)},any:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(md(t)&&!e.required)return n();$d(e,t,o,i,r)}n(i)}};function Td(){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 e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var Rd=Td(),Ad=function(){function e(e){this.rules=null,this._messages=Rd,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var o=e[n];t.rules[n]=Array.isArray(o)?o:[o]}))},t.messages=function(e){return e&&(this._messages=yd(Td(),e)),this._messages},t.validate=function(t,n,o){var r=this;void 0===n&&(n={}),void 0===o&&(o=function(){});var i=t,a=n,s=o;if("function"==typeof a&&(s=a,a={}),!this.rules||0===Object.keys(this.rules).length)return s&&s(null,i),Promise.resolve(i);if(a.messages){var l=this.messages();l===Rd&&(l=Td()),yd(l,a.messages),a.messages=l}else a.messages=this.messages();var c={};(a.keys||Object.keys(this.rules)).forEach((function(e){var n=r.rules[e],o=i[e];n.forEach((function(n){var a=n;"function"==typeof a.transform&&(i===t&&(i=sd({},i)),o=i[e]=a.transform(o)),(a="function"==typeof a?{validator:a}:sd({},a)).validator=r.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=r.getType(a),c[e]=c[e]||[],c[e].push({rule:a,value:o,source:i,field:e}))}))}));var u={};return function(e,t,n,o,r){if(t.first){var i=new Promise((function(t,i){var a=function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n]||[])})),t}(e);gd(a,n,(function(e){return o(e),e.length?i(new vd(e,pd(e))):t(r)}))}));return i.catch((function(e){return e})),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],d=new Promise((function(t,i){var d=function(e){if(u.push.apply(u,e),++c===l)return o(u),u.length?i(new vd(u,pd(u))):t(r)};s.length||(o(u),t(r)),s.forEach((function(t){var o=e[t];-1!==a.indexOf(t)?gd(o,n,d):function(e,t,n){var o=[],r=0,i=e.length;function a(e){o.push.apply(o,e||[]),++r===i&&n(o)}e.forEach((function(e){t(e,a)}))}(o,n,d)}))}));return d.catch((function(e){return e})),d}(c,a,(function(t,n){var o,r=t.rule,s=!("object"!==r.type&&"array"!==r.type||"object"!=typeof r.fields&&"object"!=typeof r.defaultField);function l(e,t){return sd({},t,{fullField:r.fullField+"."+e,fullFields:r.fullFields?[].concat(r.fullFields,[e]):[e]})}function c(o){void 0===o&&(o=[]);var c=Array.isArray(o)?o:[o];!a.suppressWarning&&c.length&&e.warning("async-validator:",c),c.length&&void 0!==r.message&&(c=[].concat(r.message));var d=c.map(bd(r,i));if(a.first&&d.length)return u[r.field]=1,n(d);if(s){if(r.required&&!t.value)return void 0!==r.message?d=[].concat(r.message).map(bd(r,i)):a.error&&(d=[a.error(r,hd(a.messages.required,r.field))]),n(d);var f={};r.defaultField&&Object.keys(t.value).map((function(e){f[e]=r.defaultField})),f=sd({},f,t.rule.fields);var p={};Object.keys(f).forEach((function(e){var t=f[e],n=Array.isArray(t)?t:[t];p[e]=n.map(l.bind(null,e))}));var h=new e(p);h.messages(a.messages),t.rule.options&&(t.rule.options.messages=a.messages,t.rule.options.error=a.error),h.validate(t.value,t.rule.options||a,(function(e){var t=[];d&&d.length&&t.push.apply(t,d),e&&e.length&&t.push.apply(t,e),n(t.length?t:null)}))}else n(d)}if(s=s&&(r.required||!r.required&&t.value),r.field=t.field,r.asyncValidator)o=r.asyncValidator(r,t.value,c,t.source,a);else if(r.validator){try{o=r.validator(r,t.value,c,t.source,a)}catch(e){null==console.error||console.error(e),a.suppressValidatorError||setTimeout((function(){throw e}),0),c(e.message)}!0===o?c():!1===o?c("function"==typeof r.message?r.message(r.fullField||r.field):r.message||(r.fullField||r.field)+" fails"):o instanceof Array?c(o):o instanceof Error&&c(o.message)}o&&o.then&&o.then((function(){return c()}),(function(e){return c(e)}))}),(function(e){!function(e){for(var t,n,o=[],r={},a=0;a<e.length;a++)t=e[a],n=void 0,Array.isArray(t)?o=(n=o).concat.apply(n,t):o.push(t);o.length?(r=pd(o),s(o,r)):s(null,i)}(e)}),i)},t.getType=function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!Nd.hasOwnProperty(e.type))throw new Error(hd("Unknown rule type %s",e.type));return e.type||"string"},t.getValidationMethod=function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?Nd.required:Nd[this.getType(e)]||void 0},e}();Ad.register=function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");Nd[e]=t},Ad.warning=function(){},Ad.messages=Rd,Ad.validators=Nd;var Dd="'${name}' is not a valid ${type}",Bd={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:Dd,method:Dd,array:Dd,object:Dd,number:Dd,date:Dd,boolean:Dd,integer:Dd,float:Dd,regexp:Dd,email:Dd,url:Dd,hex:Dd},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}"}},Ld=Ad;function zd(e,t){return e.replace(/\$\{\w+\}/g,(function(e){var n=e.slice(2,-1);return t[n]}))}var Fd="CODE_LOGIC_ERROR";function Hd(_x,e,t,n,o){return Vd.apply(this,arguments)}function Vd(){return Vd=Ce(xe().mark((function e(t,n,o,r,i){var a,s,l,c,u,d,f,h,m;return xe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete(a=$e({},o)).ruleIndex,Ld.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(Fd)}}),l=null,a&&"array"===a.type&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new Ld(Ee({},t,[a])),u=Ao(Bd,r.validateMessages),c.messages(u),d=[],e.prev=10,e.next=13,Promise.resolve(c.validate(Ee({},t,n),$e({},r)));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(10),e.t0.errors&&(d=e.t0.errors.map((function(e,t){var n=e.message,o=n===Fd?u.default:n;return p.isValidElement(o)?p.cloneElement(o,{key:"error_".concat(t)}):o})));case 18:if(d.length||!l){e.next=23;break}return e.next=21,Promise.all(n.map((function(e,n){return Hd("".concat(t,".").concat(n),e,l,r,i)})));case 21:return f=e.sent,e.abrupt("return",f.reduce((function(e,t){return[].concat(Ye(e),Ye(t))}),[]));case 23:return h=$e($e({},o),{},{name:t,enum:(o.enum||[]).join(", ")},i),m=d.map((function(e){return"string"==typeof e?zd(e,h):e})),e.abrupt("return",m);case 26:case"end":return e.stop()}}),e,null,[[10,15]])}))),Vd.apply(this,arguments)}function Wd(e,t,n,o,r,i){var a,s=e.join("."),l=n.map((function(e,t){var n=e.validator,o=$e($e({},e),{},{ruleIndex:t});return n&&(o.validator=function(e,t,o){var r=!1,i=n(e,t,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then((function(){bt(!r,"Your validator function has already return a promise. `callback` will be ignored."),r||o.apply(void 0,t)}))}));r=i&&"function"==typeof i.then&&"function"==typeof i.catch,bt(r,"`callback` is deprecated. Please return a promise instead."),r&&i.then((function(){o()})).catch((function(e){o(e||" ")}))}),o})).sort((function(e,t){var n=e.warningOnly,o=e.ruleIndex,r=t.warningOnly,i=t.ruleIndex;return!!n==!!r?o-i:n?1:-1}));if(!0===r)a=new Promise(function(){var e=Ce(xe().mark((function e(n,r){var a,c,u;return xe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=0;case 1:if(!(a<l.length)){e.next=12;break}return c=l[a],e.next=5,Hd(s,t,c,o,i);case 5:if(!(u=e.sent).length){e.next=9;break}return r([{errors:u,rule:c}]),e.abrupt("return");case 9:a+=1,e.next=1;break;case 12:n([]);case 13:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}());else{var c=l.map((function(e){return Hd(s,t,e,o,i).then((function(t){return{errors:t,rule:e}}))}));a=(r?function(e){return qd.apply(this,arguments)}(c):function(e){return Kd.apply(this,arguments)}(c)).then((function(e){return Promise.reject(e)}))}return a.catch((function(e){return e})),a}function Kd(){return(Kd=Ce(xe().mark((function e(t){return xe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then((function(e){var t;return(t=[]).concat.apply(t,Ye(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function qd(){return qd=Ce(xe().mark((function e(t){var n;return xe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise((function(e){t.forEach((function(o){o.then((function(o){o.errors.length&&e([o]),(n+=1)===t.length&&e([])}))}))})));case 2:case"end":return e.stop()}}),e)}))),qd.apply(this,arguments)}function Ud(e){return ad(e)}function Gd(e,t){var n={};return t.forEach((function(t){var o=Po(e,t);n=No(n,t,o)})),n}function Xd(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return Yd(t,e,n)}))}function Yd(e,t){return!(!e||!t)&&!(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&e.length!==t.length)&&t.every((function(t,n){return e[n]===t}))}function Zd(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===ye(t.target)&&e in t.target?t.target[e]:t}function Qd(e,t,n){var o=e.length;if(t<0||t>=o||n<0||n>=o)return e;var r=e[t],i=t-n;return i>0?[].concat(Ye(e.slice(0,n)),[r],Ye(e.slice(n,t)),Ye(e.slice(t+1,o))):i<0?[].concat(Ye(e.slice(0,t)),Ye(e.slice(t+1,n+1)),[r],Ye(e.slice(n+1,o))):e}var Jd=["name"],ef=[];function tf(e,t,n,o,r,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):o!==r}var nf=function(e){gi(n,e);var t=wi(n);function n(e){var o;return xt(this,n),Ee(yi(o=t.call(this,e)),"state",{resetCount:0}),Ee(yi(o),"cancelRegisterFunc",null),Ee(yi(o),"mounted",!1),Ee(yi(o),"touched",!1),Ee(yi(o),"dirty",!1),Ee(yi(o),"validatePromise",void 0),Ee(yi(o),"prevValidating",void 0),Ee(yi(o),"errors",ef),Ee(yi(o),"warnings",ef),Ee(yi(o),"cancelRegister",(function(){var e=o.props,t=e.preserve,n=e.isListField,r=e.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(n,t,Ud(r)),o.cancelRegisterFunc=null})),Ee(yi(o),"getNamePath",(function(){var e=o.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(Ye(void 0===n?[]:n),Ye(t)):[]})),Ee(yi(o),"getRules",(function(){var e=o.props,t=e.rules,n=void 0===t?[]:t,r=e.fieldContext;return n.map((function(e){return"function"==typeof e?e(r):e}))})),Ee(yi(o),"refresh",(function(){o.mounted&&o.setState((function(e){return{resetCount:e.resetCount+1}}))})),Ee(yi(o),"metaCache",null),Ee(yi(o),"triggerMetaEvent",(function(e){var t=o.props.onMetaChange;if(t){var n=$e($e({},o.getMeta()),{},{destroy:e});yt(o.metaCache,n)||t(n),o.metaCache=n}else o.metaCache=null})),Ee(yi(o),"onStoreChange",(function(e,t,n){var r=o.props,i=r.shouldUpdate,a=r.dependencies,s=void 0===a?[]:a,l=r.onReset,c=n.store,u=o.getNamePath(),d=o.getValue(e),f=o.getValue(c),p=t&&Xd(t,u);switch("valueUpdate"===n.type&&"external"===n.source&&d!==f&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=ef,o.warnings=ef,o.triggerMetaEvent()),n.type){case"reset":if(!t||p)return o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=ef,o.warnings=ef,o.triggerMetaEvent(),null==l||l(),void o.refresh();break;case"remove":if(i)return void o.reRender();break;case"setField":var h=n.data;if(p)return"touched"in h&&(o.touched=h.touched),"validating"in h&&!("originRCField"in h)&&(o.validatePromise=h.validating?Promise.resolve([]):null),"errors"in h&&(o.errors=h.errors||ef),"warnings"in h&&(o.warnings=h.warnings||ef),o.dirty=!0,o.triggerMetaEvent(),void o.reRender();if("value"in h&&Xd(t,u,!0))return void o.reRender();if(i&&!u.length&&tf(i,e,c,d,f,n))return void o.reRender();break;case"dependenciesUpdate":if(s.map(Ud).some((function(e){return Xd(n.relatedFields,e)})))return void o.reRender();break;default:if(p||(!s.length||u.length||i)&&tf(i,e,c,d,f,n))return void o.reRender()}!0===i&&o.reRender()})),Ee(yi(o),"validateRules",(function(e){var t=o.getNamePath(),n=o.getValue(),r=e||{},i=r.triggerName,a=r.validateOnly,s=void 0!==a&&a,l=Promise.resolve().then(Ce(xe().mark((function r(){var a,s,c,u,d,f,p;return xe().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o.mounted){r.next=2;break}return r.abrupt("return",[]);case 2:if(a=o.props,s=a.validateFirst,c=void 0!==s&&s,u=a.messageVariables,d=a.validateDebounce,f=o.getRules(),i&&(f=f.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||ad(t).includes(i)}))),!d||!i){r.next=10;break}return r.next=8,new Promise((function(e){setTimeout(e,d)}));case 8:if(o.validatePromise===l){r.next=10;break}return r.abrupt("return",[]);case 10:return(p=Wd(t,n,f,e,c,u)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ef;if(o.validatePromise===l){var t;o.validatePromise=null;var n=[],r=[];null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,o=e.errors,i=void 0===o?ef:o;t?r.push.apply(r,Ye(i)):n.push.apply(n,Ye(i))})),o.errors=n,o.warnings=r,o.triggerMetaEvent(),o.reRender()}})),r.abrupt("return",p);case 13:case"end":return r.stop()}}),r)}))));return s||(o.validatePromise=l,o.dirty=!0,o.errors=ef,o.warnings=ef,o.triggerMetaEvent(),o.reRender()),l})),Ee(yi(o),"isFieldValidating",(function(){return!!o.validatePromise})),Ee(yi(o),"isFieldTouched",(function(){return o.touched})),Ee(yi(o),"isFieldDirty",(function(){return!(!o.dirty&&void 0===o.props.initialValue)||void 0!==(0,o.props.fieldContext.getInternalHooks(nd).getInitialValue)(o.getNamePath())})),Ee(yi(o),"getErrors",(function(){return o.errors})),Ee(yi(o),"getWarnings",(function(){return o.warnings})),Ee(yi(o),"isListField",(function(){return o.props.isListField})),Ee(yi(o),"isList",(function(){return o.props.isList})),Ee(yi(o),"isPreserve",(function(){return o.props.preserve})),Ee(yi(o),"getMeta",(function(){return o.prevValidating=o.isFieldValidating(),{touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:null===o.validatePromise}})),Ee(yi(o),"getOnlyChild",(function(e){if("function"==typeof e){var t=o.getMeta();return $e($e({},o.getOnlyChild(e(o.getControlled(),t,o.props.fieldContext))),{},{isFunction:!0})}var n=hc(e);return 1===n.length&&p.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}})),Ee(yi(o),"getValue",(function(e){var t=o.props.fieldContext.getFieldsValue,n=o.getNamePath();return Po(e||t(!0),n)})),Ee(yi(o),"getControlled",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=o.props,n=t.trigger,r=t.validateTrigger,i=t.getValueFromEvent,a=t.normalize,s=t.valuePropName,l=t.getValueProps,c=t.fieldContext,u=void 0!==r?r:c.validateTrigger,d=o.getNamePath(),f=c.getInternalHooks,p=c.getFieldsValue,h=f(nd).dispatch,m=o.getValue(),g=l||function(e){return Ee({},s,e)},v=e[n],b=$e($e({},e),g(m));return b[n]=function(){var e;o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e=i?i.apply(void 0,n):Zd.apply(void 0,[s].concat(n)),a&&(e=a(e,m,p(!0))),h({type:"updateValue",namePath:d,value:e}),v&&v.apply(void 0,n)},ad(u||[]).forEach((function(e){var t=b[e];b[e]=function(){t&&t.apply(void 0,arguments);var n=o.props.rules;n&&n.length&&h({type:"validateField",namePath:d,triggerName:e})}})),b})),e.fieldContext&&(0,(0,e.fieldContext.getInternalHooks)(nd).initEntityValue)(yi(o)),o}return Ct(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var o=(0,n.getInternalHooks)(nd).registerField;this.cancelRegisterFunc=o(this)}!0===t&&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 e,t=this.state.resetCount,n=this.props.children,o=this.getOnlyChild(n),r=o.child;return o.isFunction?e=r:p.isValidElement(r)?e=p.cloneElement(r,this.getControlled(r.props)):(bt(!r,"`children` of Field is not validate ReactElement."),e=r),p.createElement(p.Fragment,{key:t},e)}}]),n}(p.Component);Ee(nf,"contextType",rd),Ee(nf,"defaultProps",{trigger:"onChange",valuePropName:"value"});const of=function(e){var t=e.name,n=di(e,Jd),o=p.useContext(rd),r=p.useContext(id),i=void 0!==t?Ud(t):void 0,a="keep";return n.isListField||(a="_".concat((i||[]).join("_"))),p.createElement(nf,hn({key:a,name:i,isListField:!!r},n,{fieldContext:o}))};var rf="__@field_split__";function af(e){return e.map((function(e){return"".concat(ye(e),":").concat(e)})).join(rf)}var sf=function(){function e(){xt(this,e),Ee(this,"kvs",new Map)}return Ct(e,[{key:"set",value:function(e,t){this.kvs.set(af(e),t)}},{key:"get",value:function(e){return this.kvs.get(af(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(af(e))}},{key:"map",value:function(e){return Ye(this.kvs.entries()).map((function(t){var n=Ge(t,2),o=n[0],r=n[1],i=o.split(rf);return e({key:i.map((function(e){var t=Ge(e.match(/^([^:]*):(.*)$/),3),n=t[1],o=t[2];return"number"===n?Number(o):o})),value:r})}))}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.key,o=t.value;return e[n.join(".")]=o,null})),e}}]),e}();const lf=sf;var cf=["name"],uf=Ct((function e(t){var n=this;xt(this,e),Ee(this,"formHooked",!1),Ee(this,"forceRootUpdate",void 0),Ee(this,"subscribable",!0),Ee(this,"store",{}),Ee(this,"fieldEntities",[]),Ee(this,"initialValues",{}),Ee(this,"callbacks",{}),Ee(this,"validateMessages",null),Ee(this,"preserve",null),Ee(this,"lastValidatePromise",null),Ee(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}})),Ee(this,"getInternalHooks",(function(e){return e===nd?(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}):(bt(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),Ee(this,"useSubscribe",(function(e){n.subscribable=e})),Ee(this,"prevWithoutPreserves",null),Ee(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var o,r=Ao(e,n.store);null===(o=n.prevWithoutPreserves)||void 0===o||o.map((function(t){var n=t.key;r=No(r,n,Po(e,n))})),n.prevWithoutPreserves=null,n.updateStore(r)}})),Ee(this,"destroyForm",(function(){var e=new lf;n.getFieldEntities(!0).forEach((function(t){n.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)})),n.prevWithoutPreserves=e})),Ee(this,"getInitialValue",(function(e){var t=Po(n.initialValues,e);return e.length?Ao(t):t})),Ee(this,"setCallbacks",(function(e){n.callbacks=e})),Ee(this,"setValidateMessages",(function(e){n.validateMessages=e})),Ee(this,"setPreserve",(function(e){n.preserve=e})),Ee(this,"watchList",[]),Ee(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),Ee(this,"notifyWatch",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),o=n.getFieldsValue(!0);n.watchList.forEach((function(n){n(t,o,e)}))}})),Ee(this,"timeoutId",null),Ee(this,"warningUnhooked",(function(){})),Ee(this,"updateStore",(function(e){n.store=e})),Ee(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),Ee(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new lf;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),Ee(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=Ud(e);return t.get(n)||{INVALIDATE_NAME_PATH:Ud(e)}}))})),Ee(this,"getFieldsValue",(function(e,t){var o,r,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(o=e,r=t):e&&"object"===ye(e)&&(i=e.strict,r=e.filter),!0===o&&!r)return n.store;var a=n.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),s=[];return a.forEach((function(e){var t,n,a,l,c="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!==(a=(l=e).isList)&&void 0!==a&&a.call(l))return}else if(!o&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(r){var u="getMeta"in e?e.getMeta():null;r(u)&&s.push(c)}else s.push(c)})),Gd(n.store,s.map(Ud))})),Ee(this,"getFieldValue",(function(e){n.warningUnhooked();var t=Ud(e);return Po(n.store,t)})),Ee(this,"getFieldsError",(function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map((function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:Ud(e[n]),errors:[],warnings:[]}}))})),Ee(this,"getFieldError",(function(e){n.warningUnhooked();var t=Ud(e);return n.getFieldsError([t])[0].errors})),Ee(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=Ud(e);return n.getFieldsError([t])[0].warnings})),Ee(this,"isFieldsTouched",(function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var r,i=t[0],a=t[1],s=!1;0===t.length?r=null:1===t.length?Array.isArray(i)?(r=i.map(Ud),s=!1):(r=null,s=i):(r=i.map(Ud),s=a);var l=n.getFieldEntities(!0),c=function(e){return e.isFieldTouched()};if(!r)return s?l.every(c):l.some(c);var u=new lf;r.forEach((function(e){u.set(e,[])})),l.forEach((function(e){var t=e.getNamePath();r.forEach((function(n){n.every((function(e,n){return t[n]===e}))&&u.update(n,(function(t){return[].concat(Ye(t),[e])}))}))}));var d=function(e){return e.some(c)},f=u.map((function(e){return e.value}));return s?f.every(d):f.some(d)})),Ee(this,"isFieldTouched",(function(e){return n.warningUnhooked(),n.isFieldsTouched([e])})),Ee(this,"isFieldsValidating",(function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some((function(e){return e.isFieldValidating()}));var o=e.map(Ud);return t.some((function(e){var t=e.getNamePath();return Xd(o,t)&&e.isFieldValidating()}))})),Ee(this,"isFieldValidating",(function(e){return n.warningUnhooked(),n.isFieldsValidating([e])})),Ee(this,"resetWithFieldInitialValue",(function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=new lf,r=n.getFieldEntities(!0);r.forEach((function(e){var t=e.props.initialValue,n=e.getNamePath();if(void 0!==t){var r=o.get(n)||new Set;r.add({entity:e,value:t}),o.set(n,r)}})),t.entities?e=t.entities:t.namePathList?(e=[],t.namePathList.forEach((function(t){var n,r=o.get(t);r&&(n=e).push.apply(n,Ye(Ye(r).map((function(e){return e.entity}))))}))):e=r,e.forEach((function(e){if(void 0!==e.props.initialValue){var r=e.getNamePath();if(void 0!==n.getInitialValue(r))bt(!1,"Form already set 'initialValues' with path '".concat(r.join("."),"'. Field can not overwrite it."));else{var i=o.get(r);if(i&&i.size>1)bt(!1,"Multiple Field with path '".concat(r.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=n.getFieldValue(r);e.isListField()||t.skipExist&&void 0!==a||n.updateStore(No(n.store,r,Ye(i)[0].value))}}}}))})),Ee(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(Ao(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var o=e.map(Ud);o.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(No(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(t,o,{type:"reset"}),n.notifyWatch(o)})),Ee(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,o=[];e.forEach((function(e){var r=e.name,i=di(e,cf),a=Ud(r);o.push(a),"value"in i&&n.updateStore(No(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})})),n.notifyWatch(o)})),Ee(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),o=$e($e({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(o,"originRCField",{value:!0}),o}))})),Ee(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var o=e.getNamePath();void 0===Po(n.store,o)&&n.updateStore(No(n.store,o,t))}})),Ee(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),Ee(this,"registerField",(function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var o=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(o,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(o,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!n.isMergedPreserve(r)&&(!o||i.length>1)){var a=o?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every((function(e){return!Yd(e.getNamePath(),t)}))){var s=n.store;n.updateStore(No(s,t,a,!0)),n.notifyObservers(s,[t],{type:"remove"}),n.triggerDependenciesUpdate(s,t)}}n.notifyWatch([t])}})),Ee(this,"dispatch",(function(e){switch(e.type){case"updateValue":var t=e.namePath,o=e.value;n.updateValue(t,o);break;case"validateField":var r=e.namePath,i=e.triggerName;n.validateFields([r],{triggerName:i})}})),Ee(this,"notifyObservers",(function(e,t,o){if(n.subscribable){var r=$e($e({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,r)}))}else n.forceRootUpdate()})),Ee(this,"triggerDependenciesUpdate",(function(e,t){var o=n.getDependencyChildrenFields(t);return o.length&&n.validateFields(o),n.notifyObservers(e,o,{type:"dependenciesUpdate",relatedFields:[t].concat(Ye(o))}),o})),Ee(this,"updateValue",(function(e,t){var o=Ud(e),r=n.store;n.updateStore(No(n.store,o,t)),n.notifyObservers(r,[o],{type:"valueUpdate",source:"internal"}),n.notifyWatch([o]);var i=n.triggerDependenciesUpdate(r,o),a=n.callbacks.onValuesChange;a&&a(Gd(n.store,[o]),n.getFieldsValue()),n.triggerOnFieldsChange([o].concat(Ye(i)))})),Ee(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var o=Ao(n.store,e);n.updateStore(o)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),Ee(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t}])})),Ee(this,"getDependencyChildrenFields",(function(e){var t=new Set,o=[],r=new lf;return n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=Ud(t);r.update(n,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))})),function e(n){(r.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var r=n.getNamePath();n.isFieldDirty()&&r.length&&(o.push(r),e(r))}}))}(e),o})),Ee(this,"triggerOnFieldsChange",(function(e,t){var o=n.callbacks.onFieldsChange;if(o){var r=n.getFields();if(t){var i=new lf;t.forEach((function(e){var t=e.name,n=e.errors;i.set(t,n)})),r.forEach((function(e){e.errors=i.get(e.name)||e.errors}))}var a=r.filter((function(t){var n=t.name;return Xd(e,n)}));a.length&&o(a,r)}})),Ee(this,"validateFields",(function(e,t){var o,r;n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(o=e,r=t):r=e;var i=!!o,a=i?o.map(Ud):[],s=[],l=String(Date.now()),c=new Set,u=r||{},d=u.recursive,f=u.dirty;n.getFieldEntities(!0).forEach((function(e){if(i||a.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!f||e.isFieldDirty())){var t=e.getNamePath();if(c.add(t.join(l)),!i||Xd(a,t,d)){var o=e.validateRules($e({validateMessages:$e($e({},Bd),n.validateMessages)},r));s.push(o.then((function(){return{name:t,errors:[],warnings:[]}})).catch((function(e){var n,o=[],r=[];return null===(n=e.forEach)||void 0===n||n.call(e,(function(e){var t=e.rule.warningOnly,n=e.errors;t?r.push.apply(r,Ye(n)):o.push.apply(o,Ye(n))})),o.length?Promise.reject({name:t,errors:o,warnings:r}):{name:t,errors:o,warnings:r}})))}}}));var p=function(e){var t=!1,n=e.length,o=[];return e.length?new Promise((function(r,i){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,o[a]=e,n>0||(t&&i(o),r(o))}))}))})):Promise.resolve([])}(s);n.lastValidatePromise=p,p.catch((function(e){return e})).then((function(e){var t=e.map((function(e){return e.name}));n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)}));var h=p.then((function(){return n.lastValidatePromise===p?Promise.resolve(n.getFieldsValue(a)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(a),errorFields:t,outOfDate:n.lastValidatePromise!==p})}));h.catch((function(e){return e}));var m=a.filter((function(e){return c.has(e.join(l))}));return n.triggerOnFieldsChange(m),h})),Ee(this,"submit",(function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))})),this.forceRootUpdate=t}));const df=function(e){var t=p.useRef(),n=Ge(p.useState({}),2)[1];if(!t.current)if(e)t.current=e;else{var o=new uf((function(){n({})}));t.current=o.getForm()}return[t.current]};var ff=p.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}});const pf=ff;var hf=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"];const mf=function(e,t){var n=e.name,o=e.initialValues,r=e.fields,i=e.form,a=e.preserve,s=e.children,l=e.component,c=void 0===l?"form":l,u=e.validateMessages,d=e.validateTrigger,f=void 0===d?"onChange":d,h=e.onValuesChange,m=e.onFieldsChange,g=e.onFinish,v=e.onFinishFailed,b=di(e,hf),y=p.useContext(pf),x=Ge(df(i),1)[0],w=x.getInternalHooks(nd),C=w.useSubscribe,S=w.setInitialValues,E=w.setCallbacks,k=w.setValidateMessages,$=w.setPreserve,_=w.destroyForm;p.useImperativeHandle(t,(function(){return x})),p.useEffect((function(){return y.registerForm(n,x),function(){y.unregisterForm(n)}}),[y,x,n]),k($e($e({},y.validateMessages),u)),E({onValuesChange:h,onFieldsChange:function(e){if(y.triggerFormChange(n,e),m){for(var t=arguments.length,o=new Array(t>1?t-1:0),r=1;r<t;r++)o[r-1]=arguments[r];m.apply(void 0,[e].concat(o))}},onFinish:function(e){y.triggerFormFinish(n,e),g&&g(e)},onFinishFailed:v}),$(a);var O,j=p.useRef(null);S(o,!j.current),j.current||(j.current=!0),p.useEffect((function(){return _}),[]);var M="function"==typeof s;O=M?s(x.getFieldsValue(!0),x):s,C(!M);var P=p.useRef();p.useEffect((function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==ye(e)||"object"!==ye(t))return!1;var n=Object.keys(e),o=Object.keys(t);return Ye(new Set([].concat(n,o))).every((function(n){var o=e[n],r=t[n];return"function"==typeof o&&"function"==typeof r||o===r}))})(P.current||[],r||[])||x.setFields(r||[]),P.current=r}),[r,x]);var I=p.useMemo((function(){return $e($e({},x),{},{validateTrigger:f})}),[x,f]),N=p.createElement(id.Provider,{value:null},p.createElement(rd.Provider,{value:I},O));return!1===c?N:p.createElement(c,hn({},b,{onSubmit:function(e){e.preventDefault(),e.stopPropagation(),x.submit()},onReset:function(e){var t;e.preventDefault(),x.resetFields(),null===(t=b.onReset)||void 0===t||t.call(b,e)}}),N)};function gf(e){try{return JSON.stringify(e)}catch(e){return Math.random()}}var vf=p.forwardRef(mf);vf.FormProvider=function(e){var t=e.validateMessages,n=e.onFormChange,o=e.onFormFinish,r=e.children,i=p.useContext(ff),a=p.useRef({});return p.createElement(ff.Provider,{value:$e($e({},i),{},{validateMessages:$e($e({},i.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:a.current}),i.triggerFormChange(e,t)},triggerFormFinish:function(e,t){o&&o(e,{values:t,forms:a.current}),i.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(a.current=$e($e({},a.current),{},Ee({},e,t))),i.registerForm(e,t)},unregisterForm:function(e){var t=$e({},a.current);delete t[e],a.current=t,i.unregisterForm(e)}})},r)},vf.Field=of,vf.List=function(e){var t=e.name,n=e.initialValue,o=e.children,r=e.rules,i=e.validateTrigger,a=e.isListField,s=p.useContext(rd),l=p.useContext(id),c=p.useRef({keys:[],id:0}).current,u=p.useMemo((function(){var e=Ud(s.prefixName)||[];return[].concat(Ye(e),Ye(Ud(t)))}),[s.prefixName,t]),d=p.useMemo((function(){return $e($e({},s),{},{prefixName:u})}),[s,u]),f=p.useMemo((function(){return{getKey:function(e){var t=u.length,n=e[t];return[c.keys[n],e.slice(t+1)]}}}),[u]);return"function"!=typeof o?(bt(!1,"Form.List only accepts function as children."),null):p.createElement(id.Provider,{value:f},p.createElement(rd.Provider,{value:d},p.createElement(of,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:r,validateTrigger:i,initialValue:n,isList:!0,isListField:null!=a?a:!!l},(function(e,t){var n=e.value,r=void 0===n?[]:n,i=e.onChange,a=s.getFieldValue,l=function(){return a(u||[])||[]},d={add:function(e,t){var n=l();t>=0&&t<=n.length?(c.keys=[].concat(Ye(c.keys.slice(0,t)),[c.id],Ye(c.keys.slice(t))),i([].concat(Ye(n.slice(0,t)),[e],Ye(n.slice(t))))):(c.keys=[].concat(Ye(c.keys),[c.id]),i([].concat(Ye(n),[e]))),c.id+=1},remove:function(e){var t=l(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(c.keys=c.keys.filter((function(e,t){return!n.has(t)})),i(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=l();e<0||e>=n.length||t<0||t>=n.length||(c.keys=Qd(c.keys,e,t),i(Qd(n,e,t)))}}},f=r||[];return Array.isArray(f)||(f=[]),o(f.map((function(__,e){var t=c.keys[e];return void 0===t&&(c.keys[e]=c.id,t=c.keys[e],c.id+=1),{name:e,key:t,isListField:!0}})),d,t)}))))},vf.useForm=df,vf.useWatch=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t[0],r=t[1],i=void 0===r?{}:r,a=function(e){return e&&!!e._init}(i)?{form:i}:i,s=a.form,l=Ge((0,p.useState)(),2),c=l[0],u=l[1],d=(0,p.useMemo)((function(){return gf(c)}),[c]),f=(0,p.useRef)(d);f.current=d;var h=(0,p.useContext)(rd),m=s||h,g=m&&m._init,v=Ud(o),b=(0,p.useRef)(v);return b.current=v,(0,p.useEffect)((function(){if(g){var e=m.getFieldsValue,t=(0,m.getInternalHooks)(nd).registerWatch,n=function(e,t){var n=a.preserve?t:e;return"function"==typeof o?o(n):Po(n,b.current)},r=t((function(e,t){var o=n(e,t),r=gf(o);f.current!==r&&(f.current=r,u(o))})),i=n(e(),e(!0));return c!==i&&u(i),r}}),[g]),c};const bf=p.createContext({}),yf=e=>{let{children:t,status:n,override:o}=e;const r=(0,p.useContext)(bf),i=(0,p.useMemo)((()=>{const e=Object.assign({},r);return o&&delete e.isFormItemInput,n&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[n,o,r]);return p.createElement(bf.Provider,{value:i},t)},xf=(0,p.createContext)(void 0);function wf(){}const Cf=p.createContext({add:wf,remove:wf}),Sf=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=(0,p.useContext)(yu);return h().createElement(gu,Object.assign({onClick:n},e),t)},Ef=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:o,onOk:r}=(0,p.useContext)(yu);return h().createElement(gu,Object.assign({},_c(n),{loading:e,onClick:r},t),o)};function kf(e,t){return h().createElement("span",{className:`${e}-close-x`},t||h().createElement(ws,{className:`${e}-close-icon`}))}const $f=e=>{const{okText:t,okType:n="primary",cancelText:o,confirmLoading:r,onOk:i,onCancel:a,okButtonProps:s,cancelButtonProps:l,footer:c}=e,[u]=Ql("Modal",Xo()),d={confirmLoading:r,okButtonProps:s,cancelButtonProps:l,okTextLocale:t||(null==u?void 0:u.okText),cancelTextLocale:o||(null==u?void 0:u.cancelText),okType:n,onOk:i,onCancel:a},f=h().useMemo((()=>d),Ye(Object.values(d)));let p;return"function"==typeof c||void 0===c?(p=h().createElement(h().Fragment,null,h().createElement(Sf,null),h().createElement(Ef,null)),"function"==typeof c&&(p=c(p,{OkBtn:Ef,CancelBtn:Sf})),p=h().createElement(xu,{value:f},p)):p=c,h().createElement(Gr,{disabled:!1},p)},_f=e=>({animationDuration:e,animationFillMode:"both"}),Of=e=>({animationDuration:e,animationFillMode:"both"}),jf=function(e,t,n,o){const r=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n      ${r}${e}-enter,\n      ${r}${e}-appear\n    `]:Object.assign(Object.assign({},_f(o)),{animationPlayState:"paused"}),[`${r}${e}-leave`]:Object.assign(Object.assign({},Of(o)),{animationPlayState:"paused"}),[`\n      ${r}${e}-enter${e}-enter-active,\n      ${r}${e}-appear${e}-appear-active\n    `]:{animationName:t,animationPlayState:"running"},[`${r}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},Mf=new _o("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),Pf=new _o("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),If=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{antCls:n}=e,o=`${n}-fade`,r=t?"&":"";return[jf(o,Mf,Pf,e.motionDurationMid,t),{[`\n        ${r}${o}-enter,\n        ${r}${o}-appear\n      `]:{opacity:0,animationTimingFunction:"linear"},[`${r}${o}-leave`]:{animationTimingFunction:"linear"}}]},Nf=new _o("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Tf=new _o("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Rf=new _o("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Af=new _o("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Df=new _o("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Bf=new _o("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Lf={zoom:{inKeyframes:Nf,outKeyframes:Tf},"zoom-big":{inKeyframes:Rf,outKeyframes:Af},"zoom-big-fast":{inKeyframes:Rf,outKeyframes:Af},"zoom-left":{inKeyframes:new _o("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new _o("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new _o("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new _o("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:Df,outKeyframes:Bf},"zoom-down":{inKeyframes:new _o("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new _o("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},zf=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:i}=Lf[t];return[jf(o,r,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n        ${o}-enter,\n        ${o}-appear\n      `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};function Ff(e){return{position:e,inset:0}}const Hf=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({},Ff("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},Ff("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:If(e)}]},Vf=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:`${qt(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},Ia(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${qt(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:`${qt(e.modalCloseBtnSize)}`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.closeBtnHoverBg,textDecoration:"none"},"&:active":{backgroundColor:e.closeBtnActiveBg}},Aa(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${qt(e.borderRadiusLG)} ${qt(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}-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,\n          ${t}-body,\n          ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},Wf=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},Kf=e=>{const t=e.padding,n=e.fontSizeHeading5,o=e.lineHeightHeading5;return Js(e,{modalHeaderHeight:e.calc(e.calc(o).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalIconHoverColor:e.colorIconHover,modalCloseIconColor:e.colorIcon,modalCloseBtnSize:e.fontHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},qf=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,closeBtnHoverBg:e.wireframe?"transparent":e.colorFillContent,closeBtnActiveBg:e.wireframe?"transparent":e.colorFillContentHover,contentPadding:e.wireframe?0:`${qt(e.paddingMD)} ${qt(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${qt(e.padding)} ${qt(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${qt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${qt(e.paddingXS)} ${qt(e.padding)}`:0,footerBorderTop:e.wireframe?`${qt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${qt(e.borderRadiusLG)} ${qt(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${qt(2*e.padding)} ${qt(2*e.padding)} ${qt(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),Uf=hl("Modal",(e=>{const t=Kf(e);return[Vf(t),Wf(t),Hf(t),zf(t,"zoom")]}),qf,{unitless:{titleLineHeight:!0}});let Gf;Qe()&&window.document.documentElement&&document.documentElement.addEventListener("click",(e=>{Gf={x:e.pageX,y:e.pageY},setTimeout((()=>{Gf=null}),100)}),!0);const Xf=e=>{var t;const{getPopupContainer:n,getPrefixCls:o,direction:r,modal:i}=p.useContext(He),a=t=>{const{onCancel:n}=e;null==n||n(t)},{prefixCls:s,className:l,rootClassName:c,open:u,wrapClassName:d,centered:f,getContainer:m,closeIcon:g,closable:v,focusTriggerAfterClose:b=!0,style:y,visible:x,width:w=520,footer:C,classNames:S,styles:E}=e,k=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","closable","focusTriggerAfterClose","style","visible","width","footer","classNames","styles"]),$=o("modal",s),_=o(),O=Ws($),[j,M,P]=Uf($,O),I=oi()(d,{[`${$}-centered`]:!!f,[`${$}-wrap-rtl`]:"rtl"===r}),N=null!==C&&p.createElement($f,Object.assign({},e,{onOk:t=>{const{onOk:n}=e;null==n||n(t)},onCancel:a})),[T,R]=function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:h().createElement(ws,null);if(!function(e,t,n){return"boolean"==typeof e?e:void 0===t?!!n:!1!==t&&null!==t}(e,t,arguments.length>4&&void 0!==arguments[4]&&arguments[4]))return[!1,null];const r="boolean"==typeof t||null==t?o:t;return[!0,n?n(r):r]}(v,void 0!==g?g:null==i?void 0:i.closeIcon,(e=>kf($,e)),p.createElement(ws,{className:`${$}-close-icon`}),!0),A=function(e){const t=p.useContext(Cf),n=p.useRef();return nl((o=>{if(o){const r=e?o.querySelector(e):o;t.add(r),n.current=r}else t.remove(n.current)}))}(`.${$}-content`),[D,B]=Ys("Modal",k.zIndex);return j(p.createElement(Cc,null,p.createElement(yf,{status:!0,override:!0},p.createElement(Ks.Provider,{value:B},p.createElement(td,Object.assign({width:w},k,{zIndex:D,getContainer:void 0===m?n:m,prefixCls:$,rootClassName:oi()(M,c,P,O),footer:N,visible:null!=u?u:x,mousePosition:null!==(t=k.mousePosition)&&void 0!==t?t:Gf,onClose:a,closable:T,closeIcon:R,focusTriggerAfterClose:b,transitionName:Yl(_,"zoom",e.transitionName),maskTransitionName:Yl(_,"fade",e.maskTransitionName),className:oi()(M,l,null==i?void 0:i.className),style:Object.assign(Object.assign({},null==i?void 0:i.style),y),classNames:Object.assign(Object.assign(Object.assign({},null==i?void 0:i.classNames),S),{wrapper:oi()(I,null==S?void 0:S.wrapper)}),styles:Object.assign(Object.assign({},null==i?void 0:i.styles),E),panelRef:A}))))))},Yf=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:o,modalConfirmIconSize:r,fontSize:i,lineHeight:a,modalTitleHeight:s,fontHeight:l,confirmBodyPadding:c}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`&${t} ${t}-body`]:{padding:c},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:r,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(l).sub(r).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(r).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${qt(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:o},[`${u}-content`]:{color:e.colorText,fontSize:i,lineHeight:a},[`${u}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls},\n        ${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},Zf=pl(["Modal","confirm"],(e=>{const t=Kf(e);return[Yf(t)]}),qf,{order:-1e3});function Qf(e){const{prefixCls:t,icon:n,okText:o,cancelText:r,confirmPrefixCls:i,type:a,okCancel:s,footer:l,locale:c}=e,u=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let d=n;if(!n&&null!==n)switch(a){case"info":d=p.createElement(_s,null);break;case"success":d=p.createElement(ms,null);break;case"error":d=p.createElement(bs,null);break;default:d=p.createElement(Es,null)}const f=null!=s?s:"confirm"===a,h=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),[m]=Ql("Modal"),g=c||m,v=o||(f?null==g?void 0:g.okText:null==g?void 0:g.justOkText),b=r||(null==g?void 0:g.cancelText),y=Object.assign({autoFocusButton:h,cancelTextLocale:b,okTextLocale:v,mergedOkCancel:f},u),x=p.useMemo((()=>y),Ye(Object.values(y))),w=p.createElement(p.Fragment,null,p.createElement(wu,null),p.createElement(Cu,null)),C=void 0!==e.title&&null!==e.title,S=`${i}-body`;return p.createElement("div",{className:`${i}-body-wrapper`},p.createElement("div",{className:oi()(S,{[`${S}-has-title`]:C})},d,p.createElement("div",{className:`${i}-paragraph`},C&&p.createElement("span",{className:`${i}-title`},e.title),p.createElement("div",{className:`${i}-content`},e.content))),void 0===l||"function"==typeof l?p.createElement(xu,{value:x},p.createElement("div",{className:`${i}-btns`},"function"==typeof l?l(w,{OkBtn:Cu,CancelBtn:wu}):w)):l,p.createElement(Zf,{prefixCls:t}))}const Jf=e=>{const{close:t,zIndex:n,afterClose:o,open:r,keyboard:i,centered:a,getContainer:s,maskStyle:l,direction:c,prefixCls:u,wrapClassName:d,rootPrefixCls:f,bodyStyle:h,closable:m=!1,closeIcon:g,modalRender:v,focusTriggerAfterClose:b,onConfirm:y,styles:x}=e,w=`${u}-confirm`,C=e.width||416,S=e.style||{},E=void 0===e.mask||e.mask,k=void 0!==e.maskClosable&&e.maskClosable,$=oi()(w,`${w}-${e.type}`,{[`${w}-rtl`]:"rtl"===c},e.className),[,_]=Oa(),O=p.useMemo((()=>void 0!==n?n:_.zIndexPopupBase+Us),[n,_]);return p.createElement(Xf,{prefixCls:u,className:$,wrapClassName:oi()({[`${w}-centered`]:!!e.centered},d),onCancel:()=>{null==t||t({triggerCancel:!0}),null==y||y(!1)},open:r,title:"",footer:null,transitionName:Yl(f||"","zoom",e.transitionName),maskTransitionName:Yl(f||"","fade",e.maskTransitionName),mask:E,maskClosable:k,style:S,styles:Object.assign({body:h,mask:l},x),width:C,zIndex:O,afterClose:o,keyboard:i,centered:a,getContainer:s,closable:m,closeIcon:g,modalRender:v,focusTriggerAfterClose:b},p.createElement(Qf,Object.assign({},e,{confirmPrefixCls:w})))},ep=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:o,theme:r}=e;return p.createElement(Ga,{prefixCls:t,iconPrefixCls:n,direction:o,theme:r},p.createElement(Jf,Object.assign({},e)))},tp=[];let np="";function op(){return np}const rp=e=>{var t,n;const{prefixCls:o,getContainer:r,direction:i}=e,a=Xo(),s=(0,p.useContext)(He),l=op()||s.getPrefixCls(),c=o||`${l}-modal`;let u=r;return!1===u&&(u=void 0),h().createElement(ep,Object.assign({},e,{rootPrefixCls:l,prefixCls:c,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:null!=i?i:s.direction,locale:null!==(n=null===(t=s.locale)||void 0===t?void 0:t.Modal)&&void 0!==n?n:a,getContainer:u}))};function ip(e){const t=Ka(),n=document.createDocumentFragment();let o,r=Object.assign(Object.assign({},e),{close:s,open:!0});function i(){for(var t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];const i=o.some((e=>e&&e.triggerCancel));e.onCancel&&i&&e.onCancel.apply(e,[()=>{}].concat(Ye(o.slice(1))));for(let e=0;e<tp.length;e++)if(tp[e]===s){tp.splice(e,1);break}Be(n)}function a(e){clearTimeout(o),o=setTimeout((()=>{const o=t.getPrefixCls(void 0,op()),r=t.getIconPrefixCls(),i=t.getTheme(),a=h().createElement(rp,Object.assign({},e));Te(h().createElement(Ga,{prefixCls:o,iconPrefixCls:r,theme:i},t.holderRender?t.holderRender(a):a),n)}))}function s(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];r=Object.assign(Object.assign({},r),{open:!1,afterClose:()=>{"function"==typeof e.afterClose&&e.afterClose(),i.apply(this,n)}}),r.visible&&delete r.visible,a(r)}return a(r),tp.push(s),{destroy:s,update:function(e){r="function"==typeof e?e(r):Object.assign(Object.assign({},r),e),a(r)}}}function ap(e){return Object.assign(Object.assign({},e),{type:"warning"})}function sp(e){return Object.assign(Object.assign({},e),{type:"info"})}function lp(e){return Object.assign(Object.assign({},e),{type:"success"})}function cp(e){return Object.assign(Object.assign({},e),{type:"error"})}function up(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function dp(e){return t=>p.createElement(Ga,{theme:{token:{motion:!1,zIndexPopupBase:0}}},p.createElement(e,Object.assign({},t)))}const fp=(e,t,n,o)=>dp((r=>{const{prefixCls:i,style:a}=r,s=p.useRef(null),[l,c]=p.useState(0),[u,d]=p.useState(0),[f,h]=rl(!1,{value:r.open}),{getPrefixCls:m}=p.useContext(He),g=m(t||"select",i);p.useEffect((()=>{if(h(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver((e=>{const t=e[0].target;c(t.offsetHeight+8),d(t.offsetWidth)})),t=setInterval((()=>{var o;const r=n?`.${n(g)}`:`.${g}-dropdown`,i=null===(o=s.current)||void 0===o?void 0:o.querySelector(r);i&&(clearInterval(t),e.observe(i))}),10);return()=>{clearInterval(t),e.disconnect()}}}),[]);let v=Object.assign(Object.assign({},r),{style:Object.assign(Object.assign({},a),{margin:0}),open:f,visible:f,getPopupContainer:()=>s.current});o&&(v=o(v));const b={paddingBottom:l,position:"relative",minWidth:u};return p.createElement("div",{ref:s,style:b},p.createElement(e,Object.assign({},v)))}));const pp=dp((e=>{const{prefixCls:t,className:n,closeIcon:o,closable:r,type:i,title:a,children:s,footer:l}=e,c=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:u}=p.useContext(He),d=u(),f=t||u("modal"),h=Ws(d),[m,g,v]=Uf(f,h),b=`${f}-confirm`;let y={};return y=i?{closable:null!=r&&r,title:"",footer:"",children:p.createElement(Qf,Object.assign({},e,{prefixCls:f,confirmPrefixCls:b,rootPrefixCls:d,content:s}))}:{closable:null==r||r,title:a,footer:null!==l&&p.createElement($f,Object.assign({},e)),children:s},m(p.createElement(Xu,Object.assign({prefixCls:f,className:oi()(g,`${f}-pure-panel`,i&&b,i&&`${b}-${i}`,n,v,h)},c,{closeIcon:kf(f,o),closable:r},y)))}));const hp=(e,t)=>{var n,{afterClose:o,config:r}=e,i=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["afterClose","config"]);const[a,s]=p.useState(!0),[l,c]=p.useState(r),{direction:u,getPrefixCls:d}=p.useContext(He),f=d("modal"),h=d(),m=function(){s(!1);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const o=t.some((e=>e&&e.triggerCancel));l.onCancel&&o&&l.onCancel.apply(l,[()=>{}].concat(Ye(t.slice(1))))};p.useImperativeHandle(t,(()=>({destroy:m,update:e=>{c((t=>Object.assign(Object.assign({},t),e)))}})));const g=null!==(n=l.okCancel)&&void 0!==n?n:"confirm"===l.type,[v]=Ql("Modal",Ko.Modal);return p.createElement(ep,Object.assign({prefixCls:f,rootPrefixCls:h},l,{close:m,open:a,afterClose:()=>{var e;o(),null===(e=l.afterClose)||void 0===e||e.call(l)},okText:l.okText||(g?null==v?void 0:v.okText:null==v?void 0:v.justOkText),direction:l.direction||u,cancelText:l.cancelText||(null==v?void 0:v.cancelText)},i))},mp=p.forwardRef(hp);let gp=0;const vp=p.memo(p.forwardRef(((e,t)=>{const[n,o]=function(){const[e,t]=p.useState([]);return[e,p.useCallback((e=>(t((t=>[].concat(Ye(t),[e]))),()=>{t((t=>t.filter((t=>t!==e))))})),[])]}();return p.useImperativeHandle(t,(()=>({patchElement:o})),[]),p.createElement(p.Fragment,null,n)})));function bp(e){return ip(ap(e))}const yp=Xf;yp.useModal=function(){const e=p.useRef(null),[t,n]=p.useState([]);p.useEffect((()=>{t.length&&(Ye(t).forEach((e=>{e()})),n([]))}),[t]);const o=p.useCallback((t=>function(o){var r;gp+=1;const i=p.createRef();let a;const s=new Promise((e=>{a=e}));let l,c=!1;const u=p.createElement(mp,{key:`modal-${gp}`,config:t(o),ref:i,afterClose:()=>{null==l||l()},isSilent:()=>c,onConfirm:e=>{a(e)}});l=null===(r=e.current)||void 0===r?void 0:r.patchElement(u),l&&tp.push(l);const d={destroy:()=>{function e(){var e;null===(e=i.current)||void 0===e||e.destroy()}i.current?e():n((t=>[].concat(Ye(t),[e])))},update:e=>{function t(){var t;null===(t=i.current)||void 0===t||t.update(e)}i.current?t():n((e=>[].concat(Ye(e),[t])))},then:e=>(c=!0,s.then(e))};return d}),[]);return[p.useMemo((()=>({info:o(sp),success:o(lp),error:o(cp),warning:o(ap),confirm:o(up)})),[]),p.createElement(vp,{key:"modal-holder",ref:e})]},yp.info=function(e){return ip(sp(e))},yp.success=function(e){return ip(lp(e))},yp.error=function(e){return ip(cp(e))},yp.warning=bp,yp.warn=bp,yp.confirm=function(e){return ip(up(e))},yp.destroyAll=function(){for(;tp.length;){const e=tp.pop();e&&e()}},yp.config=function(e){let{rootPrefixCls:t}=e;np=t},yp._InternalPanelDoNotUseOrYouWillBeFired=pp;const xp=yp;function wp(e){return["small","middle","large"].includes(e)}function Cp(e){return!!e&&"number"==typeof e&&!Number.isNaN(e)}const Sp=["wrap","nowrap","wrap-reverse"],Ep=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],kp=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],$p=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},_p=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},Op=e=>{const{componentCls:t}=e,n={};return Sp.forEach((e=>{n[`${t}-wrap-${e}`]={flexWrap:e}})),n},jp=e=>{const{componentCls:t}=e,n={};return kp.forEach((e=>{n[`${t}-align-${e}`]={alignItems:e}})),n},Mp=e=>{const{componentCls:t}=e,n={};return Ep.forEach((e=>{n[`${t}-justify-${e}`]={justifyContent:e}})),n},Pp=hl("Flex",(e=>{const{paddingXS:t,padding:n,paddingLG:o}=e,r=Js(e,{flexGapSM:t,flexGap:n,flexGapLG:o});return[$p(r),_p(r),Op(r),jp(r),Mp(r)]}),(()=>({})),{resetStyle:!1});const Ip=h().forwardRef(((e,t)=>{const{prefixCls:n,rootClassName:o,className:r,style:i,flex:a,gap:s,children:l,vertical:c=!1,component:u="div"}=e,d=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:f,direction:p,getPrefixCls:m}=h().useContext(He),g=m("flex",n),[v,b,y]=Pp(g),x=null!=c?c:null==f?void 0:f.vertical,w=oi()(r,o,null==f?void 0:f.className,g,b,y,function(e,t){return oi()(Object.assign(Object.assign(Object.assign({},((e,t)=>{const n={};return Sp.forEach((o=>{n[`${e}-wrap-${o}`]=t.wrap===o})),n})(e,t)),((e,t)=>{const n={};return kp.forEach((o=>{n[`${e}-align-${o}`]=t.align===o})),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n})(e,t)),((e,t)=>{const n={};return Ep.forEach((o=>{n[`${e}-justify-${o}`]=t.justify===o})),n})(e,t)))}(g,e),{[`${g}-rtl`]:"rtl"===p,[`${g}-gap-${s}`]:wp(s),[`${g}-vertical`]:x}),C=Object.assign(Object.assign({},null==f?void 0:f.style),i);return a&&(C.flex=a),s&&!wp(s)&&(C.gap=s),v(h().createElement(u,Object.assign({ref:t,className:w,style:C},Jl(d,["justify","wrap","align"])),l))})),Np=Ip,Tp=(e,t,n,o,r)=>({background:e,border:`${qt(o.lineWidth)} ${o.lineType} ${t}`,[`${r}-icon`]:{color:n}}),Rp=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:o,marginSM:r,fontSize:i,fontSizeLG:a,lineHeight:s,borderRadiusLG:l,motionEaseInOutCirc:c,withDescriptionIconSize:u,colorText:d,colorTextHeading:f,withDescriptionPadding:p,defaultPadding:h}=e;return{[t]:Object.assign(Object.assign({},Ia(e)),{position:"relative",display:"flex",alignItems:"center",padding:h,wordWrap:"break-word",borderRadius:l,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:o,lineHeight:0},"&-description":{display:"none",fontSize:i,lineHeight:s},"&-message":{color:f},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${c}, opacity ${n} ${c},\n        padding-top ${n} ${c}, padding-bottom ${n} ${c},\n        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:r,fontSize:u,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:o,color:f,fontSize:a},[`${t}-description`]:{display:"block",color:d}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},Ap=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:o,colorSuccessBg:r,colorWarning:i,colorWarningBorder:a,colorWarningBg:s,colorError:l,colorErrorBorder:c,colorErrorBg:u,colorInfo:d,colorInfoBorder:f,colorInfoBg:p}=e;return{[t]:{"&-success":Tp(r,o,n,e,t),"&-info":Tp(p,f,d,e,t),"&-warning":Tp(s,a,i,e,t),"&-error":Object.assign(Object.assign({},Tp(u,c,l,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},Dp=e=>{const{componentCls:t,iconCls:n,motionDurationMid:o,marginXS:r,fontSizeIcon:i,colorIcon:a,colorIconHover:s}=e;return{[t]:{"&-action":{marginInlineStart:r},[`${t}-close-icon`]:{marginInlineStart:r,padding:0,overflow:"hidden",fontSize:i,lineHeight:qt(i),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:a,transition:`color ${o}`,"&:hover":{color:s}}},"&-close-text":{color:a,transition:`color ${o}`,"&:hover":{color:s}}}}},Bp=hl("Alert",(e=>[Rp(e),Ap(e),Dp(e)]),(e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`})));const Lp={success:ms,info:_s,error:bs,warning:Es},zp=e=>{const{icon:t,prefixCls:n,type:o}=e,r=Lp[o]||null;return t?oc(t,p.createElement("span",{className:`${n}-icon`},t),(()=>({className:oi()(`${n}-icon`,{[t.props.className]:t.props.className})}))):p.createElement(r,{className:`${n}-icon`})},Fp=e=>{const{isClosable:t,prefixCls:n,closeIcon:o,handleClose:r}=e,i=!0===o||void 0===o?p.createElement(ws,null):o;return t?p.createElement("button",{type:"button",onClick:r,className:`${n}-close-icon`,tabIndex:0},i):null},Hp=e=>{const{description:t,prefixCls:n,message:o,banner:r,className:i,rootClassName:a,style:s,onMouseEnter:l,onMouseLeave:c,onClick:u,afterClose:d,showIcon:f,closable:h,closeText:m,closeIcon:g,action:v}=e,b=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action"]),[y,x]=p.useState(!1),w=p.useRef(null),{getPrefixCls:C,direction:S,alert:E}=p.useContext(He),k=C("alert",n),[$,_,O]=Bp(k),j=t=>{var n;x(!0),null===(n=e.onClose)||void 0===n||n.call(e,t)},M=p.useMemo((()=>void 0!==e.type?e.type:r?"warning":"info"),[e.type,r]),P=p.useMemo((()=>!!m||("boolean"==typeof h?h:!1!==g&&null!=g)),[m,g,h]),I=!(!r||void 0!==f)||f,N=oi()(k,`${k}-${M}`,{[`${k}-with-description`]:!!t,[`${k}-no-icon`]:!I,[`${k}-banner`]:!!r,[`${k}-rtl`]:"rtl"===S},null==E?void 0:E.className,i,a,O,_),T=Vu(b,{aria:!0,data:!0});return $(p.createElement(va,{visible:!y,motionName:`${k}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:d},(n=>{let{className:r,style:i}=n;return p.createElement("div",Object.assign({ref:w,"data-show":!y,className:oi()(N,r),style:Object.assign(Object.assign(Object.assign({},null==E?void 0:E.style),s),i),onMouseEnter:l,onMouseLeave:c,onClick:u,role:"alert"},T),I?p.createElement(zp,{description:t,icon:e.icon,prefixCls:k,type:M}):null,p.createElement("div",{className:`${k}-content`},o?p.createElement("div",{className:`${k}-message`},o):null,t?p.createElement("div",{className:`${k}-description`},t):null),v?p.createElement("div",{className:`${k}-action`},v):null,p.createElement(Fp,{isClosable:P,prefixCls:k,closeIcon:m||(null!=g?g:null==E?void 0:E.closeIcon),handleClose:j}))})))};let Vp=function(e){function t(){var e,n,o,r;return xt(this,t),n=this,r=arguments,o=vi(o=t),(e=xi(n,bi()?Reflect.construct(o,r||[],vi(n).constructor):o.apply(n,r))).state={error:void 0,info:{componentStack:""}},e}return gi(t,e),Ct(t,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,info:t})}},{key:"render",value:function(){const{message:e,description:t,children:n}=this.props,{error:o,info:r}=this.state,i=r&&r.componentStack?r.componentStack:null,a=void 0===e?(o||"").toString():e,s=void 0===t?i:t;return o?p.createElement(Hp,{type:"error",message:a,description:p.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},s)}):n}}]),t}(p.Component);const Wp=Vp,Kp=Hp;Kp.ErrorBoundary=Wp;const qp=Kp,Up=window.lodash;function Gp(e){if("undefined"==typeof Proxy)return e;const t=new Map;return new Proxy(((...t)=>e(...t)),{get:(n,o)=>"create"===o?e:(t.has(o)||t.set(o,e(o)),t.get(o))})}function Xp(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}const Yp=e=>Array.isArray(e);function Zp(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let o=0;o<n;o++)if(t[o]!==e[o])return!1;return!0}function Qp(e){return"string"==typeof e||Array.isArray(e)}function Jp(e){const t=[{},{}];return null==e||e.values.forEach(((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()})),t}function eh(e,t,n,o){if("function"==typeof t){const[r,i]=Jp(o);t=t(void 0!==n?n:e.custom,r,i)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){const[r,i]=Jp(o);t=t(void 0!==n?n:e.custom,r,i)}return t}function th(e,t,n){const o=e.getProps();return eh(o,t,void 0!==n?n:o.custom,e)}const nh=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],oh=["initial",...nh],rh=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ih=new Set(rh),ah=e=>1e3*e,sh=e=>e/1e3,lh={type:"spring",stiffness:500,damping:25,restSpeed:10},ch={type:"keyframes",duration:.8},uh={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},dh=(e,{keyframes:t})=>t.length>2?ch:ih.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:lh:uh;function fh(e,t){return e?e[t]||e.default||e:void 0}const ph=e=>null!==e;function hh(e,{repeat:t,repeatType:n="loop"},o){const r=e.filter(ph),i=t&&"loop"!==n&&t%2==1?0:r.length-1;return i&&void 0!==o?o:r[i]}const mh=e=>e,gh=["read","resolveKeyframes","update","preRender","render","postRender"];function vh(e,t){let n=!1,o=!0;const r={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,a=gh.reduce(((e,t)=>(e[t]=function(e){let t=new Set,n=new Set,o=!1,r=!1;const i=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function s(t){i.has(t)&&(l.schedule(t),e()),t(a)}const l={schedule:(e,r=!1,a=!1)=>{const s=a&&o?t:n;return r&&i.add(e),s.has(e)||s.add(e),e},cancel:e=>{n.delete(e),i.delete(e)},process:e=>{a=e,o?r=!0:(o=!0,[t,n]=[n,t],n.clear(),t.forEach(s),o=!1,r&&(r=!1,l.process(e)))}};return l}(i),e)),{}),{read:s,resolveKeyframes:l,update:c,preRender:u,render:d,postRender:f}=a,p=()=>{const i=performance.now();n=!1,r.delta=o?1e3/60:Math.max(Math.min(i-r.timestamp,40),1),r.timestamp=i,r.isProcessing=!0,s.process(r),l.process(r),c.process(r),u.process(r),d.process(r),f.process(r),r.isProcessing=!1,n&&t&&(o=!1,e(p))};return{schedule:gh.reduce(((t,i)=>{const s=a[i];return t[i]=(t,i=!1,a=!1)=>(n||(n=!0,o=!0,r.isProcessing||e(p)),s.schedule(t,i,a)),t}),{}),cancel:e=>{for(let t=0;t<gh.length;t++)a[gh[t]].cancel(e)},state:r,steps:a}}const{schedule:bh,cancel:yh,state:xh,steps:wh}=vh("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:mh,!0),Ch=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function Sh(e,t,n,o){if(e===t&&n===o)return mh;return r=>0===r||1===r?r:Ch(function(e,t,n,o,r){let i,a,s=0;do{a=t+(n-t)/2,i=Ch(a,o,r)-e,i>0?n=a:t=a}while(Math.abs(i)>1e-7&&++s<12);return a}(r,0,1,e,n),t,o)}const Eh=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,kh=e=>t=>1-e(1-t),$h=Sh(.33,1.53,.69,.99),_h=kh($h),Oh=Eh(_h),jh=e=>(e*=2)<1?.5*_h(e):.5*(2-Math.pow(2,-10*(e-1))),Mh=e=>1-Math.sin(Math.acos(e)),Ph=kh(Mh),Ih=Eh(Mh),Nh=e=>/^0[^.\s]+$/u.test(e);let Th=mh,Rh=mh;const Ah=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Dh=e=>t=>"string"==typeof t&&t.startsWith(e),Bh=Dh("--"),Lh=Dh("var(--"),zh=e=>!!Lh(e)&&Fh.test(e.split("/*")[0].trim()),Fh=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Hh=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Vh(e,t,n=1){Rh(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[o,r]=function(e){const t=Hh.exec(e);if(!t)return[,];const[,n,o,r]=t;return[`--${null!=n?n:o}`,r]}(e);if(!o)return;const i=window.getComputedStyle(t).getPropertyValue(o);if(i){const e=i.trim();return Ah(e)?parseFloat(e):e}return zh(r)?Vh(r,t,n+1):r}const Wh=(e,t,n)=>n>t?t:n<e?e:n,Kh={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},qh={...Kh,transform:e=>Wh(0,1,e)},Uh={...Kh,default:1},Gh=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Xh=Gh("deg"),Yh=Gh("%"),Zh=Gh("px"),Qh=Gh("vh"),Jh=Gh("vw"),em={...Yh,parse:e=>Yh.parse(e)/100,transform:e=>Yh.transform(100*e)},tm=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),nm=e=>e===Kh||e===Zh,om=(e,t)=>parseFloat(e.split(", ")[t]),rm=(e,t)=>(n,{transform:o})=>{if("none"===o||!o)return 0;const r=o.match(/^matrix3d\((.+)\)$/u);if(r)return om(r[1],t);{const t=o.match(/^matrix\((.+)\)$/u);return t?om(t[1],e):0}},im=new Set(["x","y","z"]),am=rh.filter((e=>!im.has(e))),sm={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:rm(4,13),y:rm(5,14)};sm.translateX=sm.x,sm.translateY=sm.y;const lm=e=>t=>t.test(e),cm=[Kh,Zh,Yh,Xh,Jh,Qh,{test:e=>"auto"===e,parse:e=>e}],um=e=>cm.find(lm(e)),dm=new Set;let fm=!1,pm=!1;function hm(){if(pm){const e=Array.from(dm).filter((e=>e.needsMeasurement)),t=new Set(e.map((e=>e.element))),n=new Map;t.forEach((e=>{const t=function(e){const t=[];return am.forEach((n=>{const o=e.getValue(n);void 0!==o&&(t.push([n,o.get()]),o.set(n.startsWith("scale")?1:0))})),t}(e);t.length&&(n.set(e,t),e.render())})),e.forEach((e=>e.measureInitialState())),t.forEach((e=>{e.render();const t=n.get(e);t&&t.forEach((([t,n])=>{var o;null===(o=e.getValue(t))||void 0===o||o.set(n)}))})),e.forEach((e=>e.measureEndState())),e.forEach((e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)}))}pm=!1,fm=!1,dm.forEach((e=>e.complete())),dm.clear()}function mm(){dm.forEach((e=>{e.readKeyframes(),e.needsMeasurement&&(pm=!0)}))}class gm{constructor(e,t,n,o,r,i=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=o,this.element=r,this.isAsync=i}scheduleResolve(){this.isScheduled=!0,this.isAsync?(dm.add(this),fm||(fm=!0,bh.read(mm),bh.resolveKeyframes(hm))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:o}=this;for(let r=0;r<e.length;r++)if(null===e[r])if(0===r){const r=null==o?void 0:o.get(),i=e[e.length-1];if(void 0!==r)e[0]=r;else if(n&&t){const o=n.readValue(t,i);null!=o&&(e[0]=o)}void 0===e[0]&&(e[0]=i),o&&void 0===r&&o.set(e[0])}else e[r]=e[r-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),dm.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,dm.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const vm=e=>Math.round(1e5*e)/1e5,bm=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,ym=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,xm=(e,t)=>n=>Boolean("string"==typeof n&&ym.test(n)&&n.startsWith(e)||t&&!function(e){return null==e}(n)&&Object.prototype.hasOwnProperty.call(n,t)),wm=(e,t,n)=>o=>{if("string"!=typeof o)return o;const[r,i,a,s]=o.match(bm);return{[e]:parseFloat(r),[t]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},Cm={...Kh,transform:e=>Math.round((e=>Wh(0,255,e))(e))},Sm={test:xm("rgb","red"),parse:wm("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:o=1})=>"rgba("+Cm.transform(e)+", "+Cm.transform(t)+", "+Cm.transform(n)+", "+vm(qh.transform(o))+")"},Em={test:xm("#"),parse:function(e){let t="",n="",o="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),o=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),o=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,o+=o,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(o,16),alpha:r?parseInt(r,16)/255:1}},transform:Sm.transform},km={test:xm("hsl","hue"),parse:wm("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:o=1})=>"hsla("+Math.round(e)+", "+Yh.transform(vm(t))+", "+Yh.transform(vm(n))+", "+vm(qh.transform(o))+")"},$m={test:e=>Sm.test(e)||Em.test(e)||km.test(e),parse:e=>Sm.test(e)?Sm.parse(e):km.test(e)?km.parse(e):Em.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?Sm.transform(e):km.transform(e)},_m=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Om="number",jm="color",Mm="var",Pm="var(",Im="${}",Nm=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Tm(e){const t=e.toString(),n=[],o={color:[],number:[],var:[]},r=[];let i=0;const a=t.replace(Nm,(e=>($m.test(e)?(o.color.push(i),r.push(jm),n.push($m.parse(e))):e.startsWith(Pm)?(o.var.push(i),r.push(Mm),n.push(e)):(o.number.push(i),r.push(Om),n.push(parseFloat(e))),++i,Im))).split(Im);return{values:n,split:a,indexes:o,types:r}}function Rm(e){return Tm(e).values}function Am(e){const{split:t,types:n}=Tm(e),o=t.length;return e=>{let r="";for(let i=0;i<o;i++)if(r+=t[i],void 0!==e[i]){const t=n[i];r+=t===Om?vm(e[i]):t===jm?$m.transform(e[i]):e[i]}return r}}const Dm=e=>"number"==typeof e?0:e,Bm={test:function(e){var t,n;return isNaN(e)&&"string"==typeof e&&((null===(t=e.match(bm))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(_m))||void 0===n?void 0:n.length)||0)>0},parse:Rm,createTransformer:Am,getAnimatableNone:function(e){const t=Rm(e);return Am(e)(t.map(Dm))}},Lm=new Set(["brightness","contrast","saturate","opacity"]);function zm(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[o]=n.match(bm)||[];if(!o)return e;const r=n.replace(o,"");let i=Lm.has(t)?1:0;return o!==n&&(i*=100),t+"("+i+r+")"}const Fm=/\b([a-z-]*)\(.*?\)/gu,Hm={...Bm,getAnimatableNone:e=>{const t=e.match(Fm);return t?t.map(zm).join(" "):e}},Vm={borderWidth:Zh,borderTopWidth:Zh,borderRightWidth:Zh,borderBottomWidth:Zh,borderLeftWidth:Zh,borderRadius:Zh,radius:Zh,borderTopLeftRadius:Zh,borderTopRightRadius:Zh,borderBottomRightRadius:Zh,borderBottomLeftRadius:Zh,width:Zh,maxWidth:Zh,height:Zh,maxHeight:Zh,top:Zh,right:Zh,bottom:Zh,left:Zh,padding:Zh,paddingTop:Zh,paddingRight:Zh,paddingBottom:Zh,paddingLeft:Zh,margin:Zh,marginTop:Zh,marginRight:Zh,marginBottom:Zh,marginLeft:Zh,backgroundPositionX:Zh,backgroundPositionY:Zh},Wm={rotate:Xh,rotateX:Xh,rotateY:Xh,rotateZ:Xh,scale:Uh,scaleX:Uh,scaleY:Uh,scaleZ:Uh,skew:Xh,skewX:Xh,skewY:Xh,distance:Zh,translateX:Zh,translateY:Zh,translateZ:Zh,x:Zh,y:Zh,z:Zh,perspective:Zh,transformPerspective:Zh,opacity:qh,originX:em,originY:em,originZ:Zh},Km={...Kh,transform:Math.round},qm={...Vm,...Wm,zIndex:Km,size:Zh,fillOpacity:qh,strokeOpacity:qh,numOctaves:Km},Um={...qm,color:$m,backgroundColor:$m,outlineColor:$m,fill:$m,stroke:$m,borderColor:$m,borderTopColor:$m,borderRightColor:$m,borderBottomColor:$m,borderLeftColor:$m,filter:Hm,WebkitFilter:Hm},Gm=e=>Um[e];function Xm(e,t){let n=Gm(e);return n!==Hm&&(n=Bm),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Ym=new Set(["auto","none","0"]);class Zm extends gm{constructor(e,t,n,o,r){super(e,t,n,o,r,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let o=e[n];if("string"==typeof o&&(o=o.trim(),zh(o))){const r=Vh(o,t.current);void 0!==r&&(e[n]=r),n===e.length-1&&(this.finalKeyframe=o)}}if(this.resolveNoneKeyframes(),!tm.has(n)||2!==e.length)return;const[o,r]=e,i=um(o),a=um(r);if(i!==a)if(nm(i)&&nm(a))for(let t=0;t<e.length;t++){const n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)("number"==typeof(o=e[t])?0===o:null===o||"none"===o||"0"===o||Nh(o))&&n.push(t);var o;n.length&&function(e,t,n){let o,r=0;for(;r<e.length&&!o;){const t=e[r];"string"==typeof t&&!Ym.has(t)&&Tm(t).values.length&&(o=e[r]),r++}if(o&&n)for(const r of t)e[r]=Xm(n,o)}(e,n,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=sm[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const o=t[t.length-1];void 0!==o&&e.getValue(n,o).jump(o,!1)}measureEndState(){var e;const{element:t,name:n,unresolvedKeyframes:o}=this;if(!t||!t.current)return;const r=t.getValue(n);r&&r.jump(this.measuredOrigin,!1);const i=o.length-1,a=o[i];o[i]=sm[n](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEach((([e,n])=>{t.getValue(e).set(n)})),this.resolveNoneKeyframes()}}function Qm(e){return"function"==typeof e}let Jm;function eg(){Jm=void 0}const tg={now:()=>(void 0===Jm&&tg.set(xh.isProcessing?xh.timestamp:performance.now()),Jm),set:e=>{Jm=e,queueMicrotask(eg)}},ng=(e,t)=>!("zIndex"===t||"number"!=typeof e&&!Array.isArray(e)&&("string"!=typeof e||!Bm.test(e)&&"0"!==e||e.startsWith("url(")));function og(e,t,n,o){const r=e[0];if(null===r)return!1;if("display"===t||"visibility"===t)return!0;const i=e[e.length-1],a=ng(r,t),s=ng(i,t);return Th(a===s,`You are trying to animate ${t} from "${r}" to "${i}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${i} via the \`style\` property.`),!(!a||!s)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||Qm(n))&&o)}class rg{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:o=0,repeatDelay:r=0,repeatType:i="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=tg.now(),this.options={autoplay:e,delay:t,type:n,repeat:o,repeatDelay:r,repeatType:i,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(mm(),hm()),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=tg.now(),this.hasAttemptedResolve=!0;const{name:n,type:o,velocity:r,delay:i,onComplete:a,onUpdate:s,isGenerator:l}=this.options;if(!l&&!og(e,n,o,r)){if(!i)return null==s||s(hh(e,this.options,t)),null==a||a(),void this.resolveFinishedPromise();this.options.duration=0}const c=this.initPlayback(e,t);!1!==c&&(this._resolved={keyframes:e,finalKeyframe:t,...c},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}updateFinishedPromise(){this.currentFinishedPromise=new Promise((e=>{this.resolveFinishedPromise=e}))}}function ig(e,t){return t?e*(1e3/t):0}const ag=5;function sg(e,t,n){const o=Math.max(t-ag,0);return ig(n-e(o),t-o)}const lg=.001,cg=.01,ug=10,dg=.05,fg=1;const pg=12;function hg(e,t){return e*Math.sqrt(1-t*t)}const mg=["duration","bounce"],gg=["stiffness","damping","mass"];function vg(e,t){return t.some((t=>void 0!==e[t]))}function bg({keyframes:e,restDelta:t,restSpeed:n,...o}){const r=e[0],i=e[e.length-1],a={done:!1,value:r},{stiffness:s,damping:l,mass:c,duration:u,velocity:d,isResolvedFromDuration:f}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!vg(e,gg)&&vg(e,mg)){const n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:o=1}){let r,i;Th(e<=ah(ug),"Spring duration must be 10 seconds or less");let a=1-t;a=Wh(dg,fg,a),e=Wh(cg,ug,sh(e)),a<1?(r=t=>{const o=t*a,r=o*e,i=o-n,s=hg(t,a),l=Math.exp(-r);return lg-i/s*l},i=t=>{const o=t*a*e,i=o*n+n,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-o),c=hg(Math.pow(t,2),a);return(-r(t)+lg>0?-1:1)*((i-s)*l)/c}):(r=t=>Math.exp(-t*e)*((t-n)*e+1)-lg,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let o=n;for(let n=1;n<pg;n++)o-=e(o)/t(o);return o}(r,i,5/e);if(e=ah(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*o;return{stiffness:t,damping:2*a*Math.sqrt(o*t),duration:e}}}(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}({...o,velocity:-sh(o.velocity||0)}),p=d||0,h=l/(2*Math.sqrt(s*c)),m=i-r,g=sh(Math.sqrt(s/c)),v=Math.abs(m)<5;let b;if(n||(n=v?.01:2),t||(t=v?.005:.5),h<1){const e=hg(g,h);b=t=>{const n=Math.exp(-h*g*t);return i-n*((p+h*g*m)/e*Math.sin(e*t)+m*Math.cos(e*t))}}else if(1===h)b=e=>i-Math.exp(-g*e)*(m+(p+g*m)*e);else{const e=g*Math.sqrt(h*h-1);b=t=>{const n=Math.exp(-h*g*t),o=Math.min(e*t,300);return i-n*((p+h*g*m)*Math.sinh(o)+e*m*Math.cosh(o))/e}}return{calculatedDuration:f&&u||null,next:e=>{const o=b(e);if(f)a.done=e>=u;else{let r=0;h<1&&(r=0===e?ah(p):sg(b,e,o));const s=Math.abs(r)<=n,l=Math.abs(i-o)<=t;a.done=s&&l}return a.value=a.done?i:o,a}}}function yg({keyframes:e,velocity:t=0,power:n=.8,timeConstant:o=325,bounceDamping:r=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},p=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l;let h=n*t;const m=d+h,g=void 0===a?m:a(m);g!==m&&(h=g-d);const v=e=>-h*Math.exp(-e/o),b=e=>g+v(e),y=e=>{const t=v(e),n=b(e);f.done=Math.abs(t)<=c,f.value=f.done?g:n};let x,w;const C=e=>{var t;t=f.value,(void 0!==s&&t<s||void 0!==l&&t>l)&&(x=e,w=bg({keyframes:[f.value,p(f.value)],velocity:sg(b,e,f.value),damping:r,stiffness:i,restDelta:c,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return w||void 0!==x||(t=!0,y(e),C(e)),void 0!==x&&e>=x?w.next(e-x):(!t&&y(e),f)}}}const xg=Sh(.42,0,1,1),wg=Sh(0,0,.58,1),Cg=Sh(.42,0,.58,1),Sg=e=>Array.isArray(e)&&"number"==typeof e[0],Eg={linear:mh,easeIn:xg,easeInOut:Cg,easeOut:wg,circIn:Mh,circInOut:Ih,circOut:Ph,backIn:_h,backInOut:Oh,backOut:$h,anticipate:jh},kg=e=>{if(Sg(e)){Rh(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,o,r]=e;return Sh(t,n,o,r)}return"string"==typeof e?(Rh(void 0!==Eg[e],`Invalid easing type '${e}'`),Eg[e]):e},$g=(e,t)=>n=>t(e(n)),_g=(...e)=>e.reduce($g),Og=(e,t,n)=>{const o=t-e;return 0===o?1:(n-e)/o},jg=(e,t,n)=>e+(t-e)*n;function Mg(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Pg(e,t){return n=>n>0?t:e}const Ig=(e,t,n)=>{const o=e*e,r=n*(t*t-o)+o;return r<0?0:Math.sqrt(r)},Ng=[Em,Sm,km];function Tg(e){const t=(n=e,Ng.find((e=>e.test(n))));var n;if(Th(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`),!Boolean(t))return!1;let o=t.parse(e);return t===km&&(o=function({hue:e,saturation:t,lightness:n,alpha:o}){e/=360,n/=100;let r=0,i=0,a=0;if(t/=100){const o=n<.5?n*(1+t):n+t-n*t,s=2*n-o;r=Mg(s,o,e+1/3),i=Mg(s,o,e),a=Mg(s,o,e-1/3)}else r=i=a=n;return{red:Math.round(255*r),green:Math.round(255*i),blue:Math.round(255*a),alpha:o}}(o)),o}const Rg=(e,t)=>{const n=Tg(e),o=Tg(t);if(!n||!o)return Pg(e,t);const r={...n};return e=>(r.red=Ig(n.red,o.red,e),r.green=Ig(n.green,o.green,e),r.blue=Ig(n.blue,o.blue,e),r.alpha=jg(n.alpha,o.alpha,e),Sm.transform(r))},Ag=new Set(["none","hidden"]);function Dg(e,t){return n=>jg(e,t,n)}function Bg(e){return"number"==typeof e?Dg:"string"==typeof e?zh(e)?Pg:$m.test(e)?Rg:Fg:Array.isArray(e)?Lg:"object"==typeof e?$m.test(e)?Rg:zg:Pg}function Lg(e,t){const n=[...e],o=n.length,r=e.map(((e,n)=>Bg(e)(e,t[n])));return e=>{for(let t=0;t<o;t++)n[t]=r[t](e);return n}}function zg(e,t){const n={...e,...t},o={};for(const r in n)void 0!==e[r]&&void 0!==t[r]&&(o[r]=Bg(e[r])(e[r],t[r]));return e=>{for(const t in o)n[t]=o[t](e);return n}}const Fg=(e,t)=>{const n=Bm.createTransformer(t),o=Tm(e),r=Tm(t);return o.indexes.var.length===r.indexes.var.length&&o.indexes.color.length===r.indexes.color.length&&o.indexes.number.length>=r.indexes.number.length?Ag.has(e)&&!r.values.length||Ag.has(t)&&!o.values.length?function(e,t){return Ag.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):_g(Lg(function(e,t){var n;const o=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],s=e.indexes[a][r[a]],l=null!==(n=e.values[s])&&void 0!==n?n:0;o[i]=l,r[a]++}return o}(o,r),r.values),n):(Th(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Pg(e,t))};function Hg(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?jg(e,t,n):Bg(e)(e,t)}function Vg({duration:e=300,keyframes:t,times:n,ease:o="easeInOut"}){const r=(e=>Array.isArray(e)&&"number"!=typeof e[0])(o)?o.map(kg):kg(o),i={done:!1,value:t[0]},a=function(e,t){return e.map((e=>e*t))}(n&&n.length===t.length?n:function(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let o=1;o<=t;o++){const r=Og(0,t,o);e.push(jg(n,1,r))}}(t,e.length-1),t}(t),e),s=function(e,t,{clamp:n=!0,ease:o,mixer:r}={}){const i=e.length;if(Rh(i===t.length,"Both input and output ranges must be the same length"),1===i)return()=>t[0];if(2===i&&e[0]===e[1])return()=>t[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=function(e,t,n){const o=[],r=n||Hg,i=e.length-1;for(let n=0;n<i;n++){let i=r(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||mh:t;i=_g(e,i)}o.push(i)}return o}(t,o,r),s=a.length,l=t=>{let n=0;if(s>1)for(;n<e.length-2&&!(t<e[n+1]);n++);const o=Og(e[n],e[n+1],t);return a[n](o)};return n?t=>l(Wh(e[0],e[i-1],t)):l}(a,t,{ease:Array.isArray(r)?r:(l=t,c=r,l.map((()=>c||Cg)).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(i.value=s(t),i.done=t>=e,i)}}const Wg=e=>{const t=({timestamp:t})=>e(t);return{start:()=>bh.update(t,!0),stop:()=>yh(t),now:()=>xh.isProcessing?xh.timestamp:tg.now()}},Kg={decay:yg,inertia:yg,tween:Vg,keyframes:Vg,spring:bg},qg=e=>e/100;class Ug extends rg{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:e}=this.options;e&&e()};const{name:t,motionValue:n,element:o,keyframes:r}=this.options,i=(null==o?void 0:o.KeyframeResolver)||gm;this.resolver=new i(r,((e,t)=>this.onKeyframesResolved(e,t)),t,n,o),this.resolver.scheduleResolve()}initPlayback(e){const{type:t="keyframes",repeat:n=0,repeatDelay:o=0,repeatType:r,velocity:i=0}=this.options,a=Qm(t)?t:Kg[t]||Vg;let s,l;a!==Vg&&"number"!=typeof e[0]&&(s=_g(qg,Hg(e[0],e[1])),e=[0,100]);const c=a({...this.options,keyframes:e});"mirror"===r&&(l=a({...this.options,keyframes:[...e].reverse(),velocity:-i})),null===c.calculatedDuration&&(c.calculatedDuration=function(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}(c));const{calculatedDuration:u}=c,d=u+o;return{generator:c,mirroredGenerator:l,mapPercentToKeyframes:s,calculatedDuration:u,resolvedDuration:d,totalDuration:d*(n+1)-o}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){const{resolved:n}=this;if(!n){const{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}const{finalKeyframe:o,generator:r,mirroredGenerator:i,mapPercentToKeyframes:a,keyframes:s,calculatedDuration:l,totalDuration:c,resolvedDuration:u}=n;if(null===this.startTime)return r.next(0);const{delay:d,repeat:f,repeatType:p,repeatDelay:h,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const g=this.currentTime-d*(this.speed>=0?1:-1),v=this.speed>=0?g<0:g>c;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=c);let b=this.currentTime,y=r;if(f){const e=Math.min(this.currentTime,c)/u;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,f+1),Boolean(t%2)&&("reverse"===p?(n=1-n,h&&(n-=h/u)):"mirror"===p&&(y=i)),b=Wh(0,1,n)*u}const x=v?{done:!1,value:s[0]}:y.next(b);a&&(x.value=a(x.value));let{done:w}=x;v||null===l||(w=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const C=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return C&&void 0!==o&&(x.value=hh(s,this.options,o)),m&&m(x.value),C&&this.finish(),x}get duration(){const{resolved:e}=this;return e?sh(e.calculatedDuration):0}get time(){return sh(this.currentTime)}set time(e){e=ah(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=sh(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:e=Wg,onPlay:t,startTime:n}=this.options;this.driver||(this.driver=e((e=>this.tick(e)))),t&&t();const o=this.driver.now();null!==this.holdTime?this.startTime=o-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=o):this.startTime=null!=n?n:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;this._resolved?(this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const Gg=new Set(["opacity","clipPath","filter","transform"]),Xg=(e,t)=>{let n="";const o=Math.max(Math.round(t/10),2);for(let t=0;t<o;t++)n+=e(Og(0,o-1,t))+", ";return`linear(${n.substring(0,n.length-2)})`};function Yg(e){let t;return()=>(void 0===t&&(t=e()),t)}const Zg={linearEasing:void 0};function Qg(e,t){const n=Yg(e);return()=>{var e;return null!==(e=Zg[t])&&void 0!==e?e:n()}}const Jg=Qg((()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0}),"linearEasing");function ev(e){return Boolean("function"==typeof e&&Jg()||!e||"string"==typeof e&&(e in nv||Jg())||Sg(e)||Array.isArray(e)&&e.every(ev))}const tv=([e,t,n,o])=>`cubic-bezier(${e}, ${t}, ${n}, ${o})`,nv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tv([0,.65,.55,1]),circOut:tv([.55,0,1,.45]),backIn:tv([.31,.01,.66,-.59]),backOut:tv([.33,1.53,.69,.99])};function ov(e,t){return e?"function"==typeof e&&Jg()?Xg(e,t):Sg(e)?tv(e):Array.isArray(e)?e.map((e=>ov(e,t)||nv.easeOut)):nv[e]:void 0}function rv(e,t,n,{delay:o=0,duration:r=300,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=ov(s,r);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:o,duration:r,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:"reverse"===a?"alternate":"normal"})}function iv(e,t){e.timeline=t,e.onfinish=null}const av=Yg((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),sv={anticipate:jh,backInOut:Oh,circInOut:Ih};class lv extends rg{constructor(e){super(e);const{name:t,motionValue:n,element:o,keyframes:r}=this.options;this.resolver=new Zm(r,((e,t)=>this.onKeyframesResolved(e,t)),t,n,o),this.resolver.scheduleResolve()}initPlayback(e,t){var n;let{duration:o=300,times:r,ease:i,type:a,motionValue:s,name:l,startTime:c}=this.options;if(!(null===(n=s.owner)||void 0===n?void 0:n.current))return!1;if("string"==typeof i&&Jg()&&i in sv&&(i=sv[i]),function(e){return Qm(e.type)||"spring"===e.type||!ev(e.ease)}(this.options)){const{onComplete:t,onUpdate:n,motionValue:s,element:l,...c}=this.options,u=function(e,t){const n=new Ug({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let o={done:!1,value:e[0]};const r=[];let i=0;for(;!o.done&&i<2e4;)o=n.sample(i),r.push(o.value),i+=10;return{times:void 0,keyframes:r,duration:i-10,ease:"linear"}}(e,c);1===(e=u.keyframes).length&&(e[1]=e[0]),o=u.duration,r=u.times,i=u.ease,a="keyframes"}const u=rv(s.owner.current,l,e,{...this.options,duration:o,times:r,ease:i});return u.startTime=null!=c?c:this.calcStartTime(),this.pendingTimeline?(iv(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:n}=this.options;s.set(hh(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:o,times:r,type:a,ease:i,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:t}=e;return sh(t)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:t}=e;return sh(t.currentTime||0)}set time(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.currentTime=ah(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:t}=e;return t.playbackRate}set speed(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:t}=e;return t.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:t}=e;return t.startTime}attachTimeline(e){if(this._resolved){const{resolved:t}=this;if(!t)return mh;const{animation:n}=t;iv(n,e)}else this.pendingTimeline=e;return mh}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:t,keyframes:n,duration:o,type:r,ease:i,times:a}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){const{motionValue:e,onUpdate:t,onComplete:s,element:l,...c}=this.options,u=new Ug({...c,keyframes:n,duration:o,type:r,ease:i,times:a,isGenerator:!0}),d=ah(this.time);e.setWithVelocity(u.sample(d-10).value,u.sample(d).value,10)}const{onStop:s}=this.options;s&&s(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:t,name:n,repeatDelay:o,repeatType:r,damping:i,type:a}=e;return av()&&n&&Gg.has(n)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!o&&"mirror"!==r&&0!==i&&"inertia"!==a}}const cv=Yg((()=>void 0!==window.ScrollTimeline));class uv{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}then(e,t){return Promise.all(this.animations).then(e).catch(t)}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e,t){const n=this.animations.map((n=>cv()&&n.attachTimeline?n.attachTimeline(e):t(n)));return()=>{n.forEach(((e,t)=>{e&&e(),this.animations[t].stop()}))}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach((t=>t[e]()))}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const dv=(e,t,n,o={},r,i)=>a=>{const s=fh(o,e)||{},l=s.delay||o.delay||0;let{elapsed:c=0}=o;c-=ah(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-c,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:i?void 0:r};(function({when:e,delay:t,delayChildren:n,staggerChildren:o,staggerDirection:r,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:c,...u}){return!!Object.keys(u).length})(s)||(u={...u,...dh(e,u)}),u.duration&&(u.duration=ah(u.duration)),u.repeatDelay&&(u.repeatDelay=ah(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let d=!1;if((!1===u.type||0===u.duration&&!u.repeatDelay)&&(u.duration=0,0===u.delay&&(d=!0)),d&&!i&&void 0!==t.get()){const e=hh(u.keyframes,s);if(void 0!==e)return bh.update((()=>{u.onUpdate(e),u.onComplete()})),new uv([])}return!i&&lv.supports(u)?new lv(u):new Ug(u)},fv=e=>Boolean(e&&"object"==typeof e&&e.mix&&e.toValue),pv=e=>Yp(e)?e[e.length-1]||0:e;function hv(e,t){-1===e.indexOf(t)&&e.push(t)}function mv(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class gv{constructor(){this.subscriptions=[]}add(e){return hv(this.subscriptions,e),()=>mv(this.subscriptions,e)}notify(e,t,n){const o=this.subscriptions.length;if(o)if(1===o)this.subscriptions[0](e,t,n);else for(let r=0;r<o;r++){const o=this.subscriptions[r];o&&o(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const vv={current:void 0};class bv{constructor(e,t={}){this.version="11.11.9",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{const n=tg.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){var t;this.current=e,this.updatedAt=tg.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t))))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new gv);const n=this.events[e].add(t);return"change"===e?()=>{n(),bh.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return vv.current&&vv.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=tg.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return ig(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function yv(e,t){return new bv(e,t)}function xv(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,yv(n))}const wv=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Cv="data-"+wv("framerAppearId");function Sv(e){return e.props[Cv]}const Ev=e=>Boolean(e&&e.getVelocity);function kv(e,t){if(!e.applyWillChange)return;const n=e.getValue("willChange");return o=n,Boolean(Ev(o)&&o.add)?n.add(t):void 0;var o}function $v({protectedKeys:e,needsAnimating:t},n){const o=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,o}function _v(e,t,{delay:n=0,transitionOverride:o,type:r}={}){var i;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=t;o&&(a=o);const c=[],u=r&&e.animationState&&e.animationState.getState()[r];for(const t in l){const o=e.getValue(t,null!==(i=e.latestValues[t])&&void 0!==i?i:null),r=l[t];if(void 0===r||u&&$v(u,t))continue;const s={delay:n,...fh(a||{},t)};let d=!1;if(window.MotionHandoffAnimation){const n=Sv(e);if(n){const e=window.MotionHandoffAnimation(n,t,bh);null!==e&&(s.startTime=e,d=!0)}}kv(e,t),o.start(dv(t,o,r,e.shouldReduceMotion&&ih.has(t)?{type:!1}:s,e,d));const f=o.animation;f&&c.push(f)}return s&&Promise.all(c).then((()=>{bh.update((()=>{s&&function(e,t){const n=th(e,t);let{transitionEnd:o={},transition:r={},...i}=n||{};i={...i,...o};for(const t in i)xv(e,t,pv(i[t]))}(e,s)}))})),c}function Ov(e,t,n={}){var o;const r=th(e,t,"exit"===n.type?null===(o=e.presenceContext)||void 0===o?void 0:o.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const a=r?()=>Promise.all(_v(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(o=0)=>{const{delayChildren:r=0,staggerChildren:a,staggerDirection:s}=i;return function(e,t,n=0,o=0,r=1,i){const a=[],s=(e.variantChildren.size-1)*o,l=1===r?(e=0)=>e*o:(e=0)=>s-e*o;return Array.from(e.variantChildren).sort(jv).forEach(((e,o)=>{e.notify("AnimationStart",t),a.push(Ov(e,t,{...i,delay:n+l(o)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(a)}(e,t,r+o,a,s,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[e,t]="beforeChildren"===l?[a,s]:[s,a];return e().then((()=>t()))}return Promise.all([a(),s(n.delay)])}function jv(e,t){return e.sortNodePosition(t)}const Mv=oh.length;function Pv(e){if(!e)return;if(!e.isControllingVariants){const t=e.parent&&Pv(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}const t={};for(let n=0;n<Mv;n++){const o=oh[n],r=e.props[o];(Qp(r)||!1===r)&&(t[o]=r)}return t}const Iv=[...nh].reverse(),Nv=nh.length;function Tv(e){let t=function(e){return t=>Promise.all(t.map((({animation:t,options:n})=>function(e,t,n={}){let o;if(e.notify("AnimationStart",t),Array.isArray(t)){const r=t.map((t=>Ov(e,t,n)));o=Promise.all(r)}else if("string"==typeof t)o=Ov(e,t,n);else{const r="function"==typeof t?th(e,t,n.custom):t;o=Promise.all(_v(e,r,n))}return o.then((()=>{e.notify("AnimationComplete",t)}))}(e,t,n))))}(e),n=Dv(),o=!0;const r=t=>(n,o)=>{var r;const i=th(e,o,"exit"===t?null===(r=e.presenceContext)||void 0===r?void 0:r.custom:void 0);if(i){const{transition:e,transitionEnd:t,...o}=i;n={...n,...o,...t}}return n};function i(i){const{props:a}=e,s=Pv(e.parent)||{},l=[],c=new Set;let u={},d=1/0;for(let t=0;t<Nv;t++){const f=Iv[t],p=n[f],h=void 0!==a[f]?a[f]:s[f],m=Qp(h),g=f===i?p.isActive:null;!1===g&&(d=t);let v=h===s[f]&&h!==a[f]&&m;if(v&&o&&e.manuallyAnimateOnMount&&(v=!1),p.protectedKeys={...u},!p.isActive&&null===g||!h&&!p.prevProp||Xp(h)||"boolean"==typeof h)continue;const b=Rv(p.prevProp,h);let y=b||f===i&&p.isActive&&!v&&m||t>d&&m,x=!1;const w=Array.isArray(h)?h:[h];let C=w.reduce(r(f),{});!1===g&&(C={});const{prevResolvedValues:S={}}=p,E={...S,...C},k=t=>{y=!0,c.has(t)&&(x=!0,c.delete(t)),p.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in E){const t=C[e],n=S[e];if(u.hasOwnProperty(e))continue;let o=!1;o=Yp(t)&&Yp(n)?!Zp(t,n):t!==n,o?null!=t?k(e):c.add(e):void 0!==t&&c.has(e)?k(e):p.protectedKeys[e]=!0}p.prevProp=h,p.prevResolvedValues=C,p.isActive&&(u={...u,...C}),o&&e.blockInitialAnimation&&(y=!1),y&&(!v||!b||x)&&l.push(...w.map((e=>({animation:e,options:{type:f}}))))}if(c.size){const t={};c.forEach((n=>{const o=e.getBaseTarget(n),r=e.getValue(n);r&&(r.liveStyle=!0),t[n]=null!=o?o:null})),l.push({animation:t})}let f=Boolean(l.length);return!o||!1!==a.initial&&a.initial!==a.animate||e.manuallyAnimateOnMount||(f=!1),o=!1,f?t(l):Promise.resolve()}return{animateChanges:i,setActive:function(t,o){var r;if(n[t].isActive===o)return Promise.resolve();null===(r=e.variantChildren)||void 0===r||r.forEach((e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,o)})),n[t].isActive=o;const a=i(t);for(const e in n)n[e].protectedKeys={};return a},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=Dv(),o=!0}}}function Rv(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!Zp(t,e)}function Av(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Dv(){return{animate:Av(!0),whileInView:Av(),whileHover:Av(),whileTap:Av(),whileDrag:Av(),whileFocus:Av(),exit:Av()}}class Bv{constructor(e){this.isMounted=!1,this.node=e}update(){}}let Lv=0;const zv={animation:{Feature:class extends Bv{constructor(e){super(e),e.animationState||(e.animationState=Tv(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Xp(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null===(e=this.unmountControls)||void 0===e||e.call(this)}}},exit:{Feature:class extends Bv{constructor(){super(...arguments),this.id=Lv++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const o=this.node.animationState.setActive("exit",!e);t&&!e&&o.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},Fv=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function Hv(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const Vv=e=>t=>Fv(t)&&e(t,Hv(t));function Wv(e,t,n,o={passive:!0}){return e.addEventListener(t,n,o),()=>e.removeEventListener(t,n)}function Kv(e,t,n,o){return Wv(e,t,Vv(n),o)}const qv=(e,t)=>Math.abs(e-t);class Uv{constructor(e,t,{transformPagePoint:n,contextWindow:o,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=Yv(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=qv(e.x,t.x),o=qv(e.y,t.y);return Math.sqrt(n**2+o**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:o}=e,{timestamp:r}=xh;this.history.push({...o,timestamp:r});const{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Gv(t,this.transformPagePoint),bh.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:n,onSessionEnd:o,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const i=Yv("pointercancel"===e.type?this.lastMoveEventInfo:Gv(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),o&&o(e,i)},!Fv(e))return;this.dragSnapToOrigin=r,this.handlers=t,this.transformPagePoint=n,this.contextWindow=o||window;const i=Gv(Hv(e),this.transformPagePoint),{point:a}=i,{timestamp:s}=xh;this.history=[{...a,timestamp:s}];const{onSessionStart:l}=t;l&&l(e,Yv(i,this.history)),this.removeListeners=_g(Kv(this.contextWindow,"pointermove",this.handlePointerMove),Kv(this.contextWindow,"pointerup",this.handlePointerUp),Kv(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),yh(this.updatePoint)}}function Gv(e,t){return t?{point:t(e.point)}:e}function Xv(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Yv({point:e},t){return{point:e,delta:Xv(e,Qv(t)),offset:Xv(e,Zv(t)),velocity:Jv(t,.1)}}function Zv(e){return e[0]}function Qv(e){return e[e.length-1]}function Jv(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,o=null;const r=Qv(e);for(;n>=0&&(o=e[n],!(r.timestamp-o.timestamp>ah(t)));)n--;if(!o)return{x:0,y:0};const i=sh(r.timestamp-o.timestamp);if(0===i)return{x:0,y:0};const a={x:(r.x-o.x)/i,y:(r.y-o.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function eb(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}const tb=eb("dragHorizontal"),nb=eb("dragVertical");function ob(e){let t=!1;if("y"===e)t=nb();else if("x"===e)t=tb();else{const e=tb(),n=nb();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function rb(){const e=ob(!0);return!e||(e(),!1)}function ib(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}const ab=.9999,sb=1.0001,lb=-.01,cb=.01;function ub(e){return e.max-e.min}function db(e,t,n,o=.5){e.origin=o,e.originPoint=jg(t.min,t.max,e.origin),e.scale=ub(n)/ub(t),e.translate=jg(n.min,n.max,e.origin)-e.originPoint,(e.scale>=ab&&e.scale<=sb||isNaN(e.scale))&&(e.scale=1),(e.translate>=lb&&e.translate<=cb||isNaN(e.translate))&&(e.translate=0)}function fb(e,t,n,o){db(e.x,t.x,n.x,o?o.originX:void 0),db(e.y,t.y,n.y,o?o.originY:void 0)}function pb(e,t,n){e.min=n.min+t.min,e.max=e.min+ub(t)}function hb(e,t,n){e.min=t.min-n.min,e.max=e.min+ub(t)}function mb(e,t,n){hb(e.x,t.x,n.x),hb(e.y,t.y,n.y)}function gb(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function vb(e,t){let n=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,o]=[o,n]),{min:n,max:o}}const bb=.35;function yb(e,t,n){return{min:xb(e,t),max:xb(e,n)}}function xb(e,t){return"number"==typeof e?e:e[t]||0}const wb=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),Cb=()=>({x:{min:0,max:0},y:{min:0,max:0}});function Sb(e){return[e("x"),e("y")]}function Eb({top:e,left:t,right:n,bottom:o}){return{x:{min:t,max:n},y:{min:e,max:o}}}function kb(e){return void 0===e||1===e}function $b({scale:e,scaleX:t,scaleY:n}){return!kb(e)||!kb(t)||!kb(n)}function _b(e){return $b(e)||Ob(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Ob(e){return jb(e.x)||jb(e.y)}function jb(e){return e&&"0%"!==e}function Mb(e,t,n){return n+t*(e-n)}function Pb(e,t,n,o,r){return void 0!==r&&(e=Mb(e,r,o)),Mb(e,n,o)+t}function Ib(e,t=0,n=1,o,r){e.min=Pb(e.min,t,n,o,r),e.max=Pb(e.max,t,n,o,r)}function Nb(e,{x:t,y:n}){Ib(e.x,t.translate,t.scale,t.originPoint),Ib(e.y,n.translate,n.scale,n.originPoint)}const Tb=.999999999999,Rb=1.0000000000001;function Ab(e,t){e.min=e.min+t,e.max=e.max+t}function Db(e,t,n,o,r=.5){Ib(e,t,n,jg(e.min,e.max,r),o)}function Bb(e,t){Db(e.x,t.x,t.scaleX,t.scale,t.originX),Db(e.y,t.y,t.scaleY,t.scale,t.originY)}function Lb(e,t){return Eb(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),o=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:o.y,right:o.x}}(e.getBoundingClientRect(),t))}const zb=({current:e})=>e?e.ownerDocument.defaultView:null,Fb=new WeakMap;class Hb{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Cb(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:o}=this.getProps();this.panSession=new Uv(e,{onSessionStart:e=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(Hv(e,"page").point)},onStart:(e,t)=>{const{drag:n,dragPropagation:o,onDragStart:r}=this.getProps();if(n&&!o&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ob(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Sb((e=>{let t=this.getAxisMotionValue(e).get()||0;if(Yh.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const o=n.layout.layoutBox[e];o&&(t=ub(o)*(parseFloat(t)/100))}}this.originPoint[e]=t})),r&&bh.postRender((()=>r(e,t))),kv(this.visualElement,"transform");const{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:o,onDirectionLock:r,onDrag:i}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:a}=t;if(o&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(a),void(null!==this.currentDirection&&r&&r(this.currentDirection));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>Sb((e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:o,contextWindow:zb(this.visualElement)})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:o}=t;this.startAnimation(o);const{onDragEnd:r}=this.getProps();r&&bh.postRender((()=>r(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:o}=this.getProps();if(!n||!Vb(e,o,this.currentDirection))return;const r=this.getAxisMotionValue(e);let i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:n},o){return void 0!==t&&e<t?e=o?jg(t,e,o.min):Math.max(e,t):void 0!==n&&e>n&&(e=o?jg(n,e,o.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),r.set(i)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:n}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,r=this.constraints;t&&ib(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!o)&&function(e,{top:t,left:n,bottom:o,right:r}){return{x:gb(e.x,n,r),y:gb(e.y,t,o)}}(o.layoutBox,t),this.elastic=function(e=bb){return!1===e?e=0:!0===e&&(e=bb),{x:yb(e,"left","right"),y:yb(e,"top","bottom")}}(n),r!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Sb((e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(o.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!ib(e))return!1;const n=e.current;Rh(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const r=function(e,t,n){const o=Lb(e,n),{scroll:r}=t;return r&&(Ab(o.x,r.offset.x),Ab(o.y,r.offset.y)),o}(n,o.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:vb(e.x,t.x),y:vb(e.y,t.y)}}(o.layout.layoutBox,r);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=Eb(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:o,dragTransition:r,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=Sb((a=>{if(!Vb(a,t,this.currentDirection))return;let l=s&&s[a]||{};i&&(l={min:0,max:0});const c=o?200:1e6,u=o?40:1e7,d={type:"inertia",velocity:n?e[a]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(a,d)}));return Promise.all(l).then(a)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return kv(this.visualElement,e),n.start(dv(e,n,0,t,this.visualElement,!1))}stopAnimation(){Sb((e=>this.getAxisMotionValue(e).stop()))}pauseAnimation(){Sb((e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()}))}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){Sb((t=>{const{drag:n}=this.getProps();if(!Vb(t,n,this.currentDirection))return;const{projection:o}=this.visualElement,r=this.getAxisMotionValue(t);if(o&&o.layout){const{min:n,max:i}=o.layout.layoutBox[t];r.set(e[t]-jg(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!ib(t)||!n||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Sb((e=>{const t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){const n=t.get();o[e]=function(e,t){let n=.5;const o=ub(e),r=ub(t);return r>o?n=Og(t.min,t.max-o,e.min):o>r&&(n=Og(e.min,e.max-r,t.min)),Wh(0,1,n)}({min:n,max:n},this.constraints[e])}}));const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Sb((t=>{if(!Vb(t,e,null))return;const n=this.getAxisMotionValue(t),{min:r,max:i}=this.constraints[t];n.set(jg(r,i,o[t]))}))}addListeners(){if(!this.visualElement.current)return;Fb.set(this.visualElement,this);const e=Kv(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();ib(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,o=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),bh.read(t);const r=Wv(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Sb((t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))})),this.visualElement.render())}));return()=>{r(),e(),o(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:o=!1,dragConstraints:r=!1,dragElastic:i=bb,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:o,dragConstraints:r,dragElastic:i,dragMomentum:a}}}function Vb(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const Wb=e=>(t,n)=>{e&&bh.postRender((()=>e(t,n)))},Kb=(0,p.createContext)(null),qb=(0,p.createContext)({}),Ub=(0,p.createContext)({}),Gb={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Xb(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Yb={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!Zh.test(e))return e;e=parseFloat(e)}return`${Xb(e,t.target.x)}% ${Xb(e,t.target.y)}%`}},Zb={correct:(e,{treeScale:t,projectionDelta:n})=>{const o=e,r=Bm.parse(e);if(r.length>5)return o;const i=Bm.createTransformer(e),a="number"!=typeof r[0]?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;r[0+a]/=s,r[1+a]/=l;const c=jg(s,l,.5);return"number"==typeof r[2+a]&&(r[2+a]/=c),"number"==typeof r[3+a]&&(r[3+a]/=c),i(r)}},Qb={},{schedule:Jb,cancel:ey}=vh(queueMicrotask,!1);class ty extends p.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:o}=this.props,{projection:r}=e;var i;i=oy,Object.assign(Qb,i),r&&(t.group&&t.group.add(r),n&&n.register&&o&&n.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",(()=>{this.safeToRemove()})),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),Gb.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:o,isPresent:r}=this.props,i=n.projection;return i?(i.isPresent=r,o||e.layoutDependency!==t||void 0===t?i.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?i.promote():i.relegate()||bh.postRender((()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Jb.postRender((()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:o}=e;o&&(o.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(o),n&&n.deregister&&n.deregister(o))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function ny(e){const[t,n]=function(){const e=(0,p.useContext)(Kb);if(null===e)return[!0,null];const{isPresent:t,onExitComplete:n,register:o}=e,r=(0,p.useId)();(0,p.useEffect)((()=>o(r)),[]);const i=(0,p.useCallback)((()=>n&&n(r)),[r,n]);return!t&&n?[!1,i]:[!0]}(),o=(0,p.useContext)(qb);return(0,a.jsx)(ty,{...e,layoutGroup:o,switchLayoutGroup:(0,p.useContext)(Ub),isPresent:t,safeToRemove:n})}const oy={borderRadius:{...Yb,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Yb,borderTopRightRadius:Yb,borderBottomLeftRadius:Yb,borderBottomRightRadius:Yb,boxShadow:Zb},ry=["TopLeft","TopRight","BottomLeft","BottomRight"],iy=ry.length,ay=e=>"string"==typeof e?parseFloat(e):e,sy=e=>"number"==typeof e||Zh.test(e);function ly(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const cy=dy(0,.5,Ph),uy=dy(.5,.95,mh);function dy(e,t,n){return o=>o<e?0:o>t?1:n(Og(e,t,o))}function fy(e,t){e.min=t.min,e.max=t.max}function py(e,t){fy(e.x,t.x),fy(e.y,t.y)}function hy(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function my(e,t,n,o,r){return e=Mb(e-=t,1/n,o),void 0!==r&&(e=Mb(e,1/r,o)),e}function gy(e,t,[n,o,r],i,a){!function(e,t=0,n=1,o=.5,r,i=e,a=e){if(Yh.test(t)&&(t=parseFloat(t),t=jg(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let s=jg(i.min,i.max,o);e===i&&(s-=t),e.min=my(e.min,t,n,s,r),e.max=my(e.max,t,n,s,r)}(e,t[n],t[o],t[r],t.scale,i,a)}const vy=["x","scaleX","originX"],by=["y","scaleY","originY"];function yy(e,t,n,o){gy(e.x,t,vy,n?n.x:void 0,o?o.x:void 0),gy(e.y,t,by,n?n.y:void 0,o?o.y:void 0)}function xy(e){return 0===e.translate&&1===e.scale}function wy(e){return xy(e.x)&&xy(e.y)}function Cy(e,t){return e.min===t.min&&e.max===t.max}function Sy(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Ey(e,t){return Sy(e.x,t.x)&&Sy(e.y,t.y)}function ky(e){return ub(e.x)/ub(e.y)}function $y(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class _y{constructor(){this.members=[]}add(e){hv(this.members,e),e.scheduleRender()}remove(e){if(mv(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let n;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:o}=e.options;!1===o&&n.hide()}}exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Oy=(e,t)=>e.depth-t.depth;class jy{constructor(){this.children=[],this.isDirty=!1}add(e){hv(this.children,e),this.isDirty=!0}remove(e){mv(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Oy),this.isDirty=!1,this.children.forEach(e)}}function My(e){const t=Ev(e)?e.get():e;return fv(t)?t.toValue():t}const Py={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Iy="undefined"!=typeof window&&void 0!==window.MotionDebug,Ny=["","X","Y","Z"],Ty={visibility:"hidden"};let Ry=0;function Ay(e,t,n,o){const{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),o&&(o[e]=0))}function Dy(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Sv(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:t,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",bh,!(t||o))}const{parent:o}=e;o&&!o.hasCheckedOptimisedAppear&&Dy(o)}function By({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:o,resetTransform:r}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=Ry++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Iy&&(Py.totalNodes=Py.resolvedTargetDeltas=Py.recalculatedProjection=0),this.nodes.forEach(Fy),this.nodes.forEach(Gy),this.nodes.forEach(Xy),this.nodes.forEach(Hy),Iy&&window.MotionDebug.record(Py)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new jy)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new gv),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;var o;this.isSVG=(o=t)instanceof SVGElement&&"svg"!==o.tagName,this.instance=t;const{layoutId:r,layout:i,visualElement:a}=this.options;if(a&&!a.current&&a.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||r)&&(this.isLayoutDirty=!0),e){let n;const o=()=>this.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=tg.now(),o=({timestamp:r})=>{const i=r-n;i>=t&&(yh(o),e(i-t))};return bh.read(o,!0),()=>yh(o)}(o,250),Gb.hasAnimatedSinceResize&&(Gb.hasAnimatedSinceResize=!1,this.nodes.forEach(Uy))}))}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&a&&(r||i)&&this.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:o})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const r=this.options.transition||a.getDefaultTransition()||tx,{onLayoutAnimationStart:i,onLayoutAnimationComplete:s}=a.getProps(),l=!this.targetLayout||!Ey(this.targetLayout,o)||n,c=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);const t={...fh(r,"layout"),onPlay:i,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||Uy(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=o}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,yh(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Yy),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Dy(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const o=this.getTransformTemplate();this.prevTransformTemplateValue=o?o(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Wy);this.isUpdating||this.nodes.forEach(Ky),this.isUpdating=!1,this.nodes.forEach(qy),this.nodes.forEach(Ly),this.nodes.forEach(zy),this.clearAllSnapshots();const e=tg.now();xh.delta=Wh(0,1e3/60,e-xh.timestamp),xh.timestamp=e,xh.isProcessing=!0,wh.update.process(xh),wh.preRender.process(xh),wh.render.process(xh),xh.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Jb.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Vy),this.sharedNodes.forEach(Zy)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,bh.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){bh.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Cb(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t){const t=o(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!r)return;const e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!wy(this.projectionDelta),n=this.getTransformTemplate(),o=n?n(this.latestValues,""):void 0,i=o!==this.prevTransformTemplateValue;e&&(t||_b(this.latestValues)||i)&&(r(this.instance,o),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),function(e){rx(e.x),rx(e.y)}(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var e;const{visualElement:t}=this.options;if(!t)return Cb();const n=t.measureViewportBox();if(!(null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)&&!this.path.some(ax)){const{scroll:e}=this.root;e&&(Ab(n.x,e.offset.x),Ab(n.y,e.offset.y))}return n}removeElementScroll(e){var t;const n=Cb();if(py(n,e),null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)return n;for(let t=0;t<this.path.length;t++){const o=this.path[t],{scroll:r,options:i}=o;o!==this.root&&r&&i.layoutScroll&&(r.wasRoot&&py(n,e),Ab(n.x,r.offset.x),Ab(n.y,r.offset.y))}return n}applyTransform(e,t=!1){const n=Cb();py(n,e);for(let e=0;e<this.path.length;e++){const o=this.path[e];!t&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Bb(n,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),_b(o.latestValues)&&Bb(n,o.latestValues)}return _b(this.latestValues)&&Bb(n,this.latestValues),n}removeTransform(e){const t=Cb();py(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!_b(n.latestValues))continue;$b(n.latestValues)&&n.updateSnapshot();const o=Cb();py(o,n.measurePageBox()),yy(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,o)}return _b(this.latestValues)&&yy(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==xh.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const o=Boolean(this.resumingFrom)||this!==n;if(!(e||o&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:r,layoutId:i}=this.options;if(this.layout&&(r||i)){if(this.resolvedRelativeTargetAt=xh.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Cb(),this.relativeTargetOrigin=Cb(),mb(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),py(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var a,s,l;if(this.target||(this.target=Cb(),this.targetWithTransforms=Cb()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),a=this.target,s=this.relativeTarget,l=this.relativeParent.target,pb(a.x,s.x,l.x),pb(a.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):py(this.target,this.layout.layoutBox),Nb(this.target,this.targetDelta)):py(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Cb(),this.relativeTargetOrigin=Cb(),mb(this.relativeTargetOrigin,this.target,e.target),py(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Iy&&Py.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!$b(this.parent.latestValues)&&!Ob(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let o=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(o=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(o=!1),this.resolvedRelativeTargetAt===xh.timestamp&&(o=!1),o)return;const{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!r&&!i)return;py(this.layoutCorrected,this.layout.layoutBox);const a=this.treeScale.x,s=this.treeScale.y;!function(e,t,n,o=!1){const r=n.length;if(!r)return;let i,a;t.x=t.y=1;for(let s=0;s<r;s++){i=n[s],a=i.projectionDelta;const{visualElement:r}=i.options;r&&r.props.style&&"contents"===r.props.style.display||(o&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Bb(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,Nb(e,a)),o&&_b(i.latestValues)&&Bb(e,i.latestValues))}t.x<Rb&&t.x>Tb&&(t.x=1),t.y<Rb&&t.y>Tb&&(t.y=1)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox,t.targetWithTransforms=Cb());const{target:l}=t;l?(this.projectionDelta&&this.prevProjectionDelta?(hy(this.prevProjectionDelta.x,this.projectionDelta.x),hy(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),fb(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===a&&this.treeScale.y===s&&$y(this.projectionDelta.x,this.prevProjectionDelta.x)&&$y(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),Iy&&Py.recalculatedProjection++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if(null===(t=this.options.visualElement)||void 0===t||t.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=wb(),this.projectionDelta=wb(),this.projectionDeltaWithTransform=wb()}setAnimationOrigin(e,t=!1){const n=this.snapshot,o=n?n.latestValues:{},r={...this.latestValues},i=wb();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const a=Cb(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(s&&!c&&!0===this.options.crossfade&&!this.path.some(ex));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;var l,f;Qy(i.x,e.x,n),Qy(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(mb(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,o){Jy(e.x,t.x,n.x,o),Jy(e.y,t.y,n.y,o)}(this.relativeTarget,this.relativeTargetOrigin,a,n),d&&(l=this.relativeTarget,f=d,Cy(l.x,f.x)&&Cy(l.y,f.y))&&(this.isProjectionDirty=!1),d||(d=Cb()),py(d,this.relativeTarget)),s&&(this.animationValues=r,function(e,t,n,o,r,i){r?(e.opacity=jg(0,void 0!==n.opacity?n.opacity:1,cy(o)),e.opacityExit=jg(void 0!==t.opacity?t.opacity:1,0,uy(o))):i&&(e.opacity=jg(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,o));for(let r=0;r<iy;r++){const i=`border${ry[r]}Radius`;let a=ly(t,i),s=ly(n,i);void 0===a&&void 0===s||(a||(a=0),s||(s=0),0===a||0===s||sy(a)===sy(s)?(e[i]=Math.max(jg(ay(a),ay(s),o),0),(Yh.test(s)||Yh.test(a))&&(e[i]+="%")):e[i]=s)}(t.rotate||n.rotate)&&(e.rotate=jg(t.rotate||0,n.rotate||0,o))}(r,o,this.latestValues,n,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(yh(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=bh.update((()=>{Gb.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const o=Ev(0)?0:yv(0);return o.start(dv("",o,1e3,n)),o.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:o,latestValues:r}=e;if(t&&n&&o){if(this!==e&&this.layout&&o&&ix(this.options.animationType,this.layout.layoutBox,o.layoutBox)){n=this.target||Cb();const t=ub(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const o=ub(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+o}py(t,n),Bb(t,r),fb(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new _y),this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const o=this.getStack();o&&o.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;const o={};n.z&&Ay("z",e,o,this.animationValues);for(let t=0;t<Ny.length;t++)Ay(`rotate${Ny[t]}`,e,o,this.animationValues),Ay(`skew${Ny[t]}`,e,o,this.animationValues);e.render();for(const t in o)e.setStaticValue(t,o[t]),this.animationValues&&(this.animationValues[t]=o[t]);e.scheduleRender()}getProjectionStyles(e){var t,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Ty;const o={visibility:""},r=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,o.opacity="",o.pointerEvents=My(null==e?void 0:e.pointerEvents)||"",o.transform=r?r(this.latestValues,""):"none",o;const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=My(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!_b(this.latestValues)&&(t.transform=r?r({},""):"none",this.hasProjected=!1),t}const a=i.animationValues||i.latestValues;this.applyTransformsToTarget(),o.transform=function(e,t,n){let o="";const r=e.x.translate/t.x,i=e.y.translate/t.y,a=(null==n?void 0:n.z)||0;if((r||i||a)&&(o=`translate3d(${r}px, ${i}px, ${a}px) `),1===t.x&&1===t.y||(o+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:e,rotate:t,rotateX:r,rotateY:i,skewX:a,skewY:s}=n;e&&(o=`perspective(${e}px) ${o}`),t&&(o+=`rotate(${t}deg) `),r&&(o+=`rotateX(${r}deg) `),i&&(o+=`rotateY(${i}deg) `),a&&(o+=`skewX(${a}deg) `),s&&(o+=`skewY(${s}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return 1===s&&1===l||(o+=`scale(${s}, ${l})`),o||"none"}(this.projectionDeltaWithTransform,this.treeScale,a),r&&(o.transform=r(a,o.transform));const{x:s,y:l}=this.projectionDelta;o.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,i.animationValues?o.opacity=i===this?null!==(n=null!==(t=a.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:o.opacity=i===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const e in Qb){if(void 0===a[e])continue;const{correct:t,applyTo:n}=Qb[e],r="none"===o.transform?a[e]:t(a[e],i);if(n){const e=n.length;for(let t=0;t<e;t++)o[n[t]]=r}else o[e]=r}return this.options.layoutId&&(o.pointerEvents=i===this?My(null==e?void 0:e.pointerEvents)||"":"none"),o}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(Wy),this.root.sharedNodes.clear()}}}function Ly(e){e.updateLayout()}function zy(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:o}=e.layout,{animationType:r}=e.options,i=n.source!==e.layout.source;"size"===r?Sb((e=>{const o=i?n.measuredBox[e]:n.layoutBox[e],r=ub(o);o.min=t[e].min,o.max=o.min+r})):ix(r,n.layoutBox,t)&&Sb((o=>{const r=i?n.measuredBox[o]:n.layoutBox[o],a=ub(t[o]);r.max=r.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[o].max=e.relativeTarget[o].min+a)}));const a=wb();fb(a,t,n.layoutBox);const s=wb();i?fb(s,e.applyTransform(o,!0),n.measuredBox):fb(s,t,n.layoutBox);const l=!wy(a);let c=!1;if(!e.resumeFrom){const o=e.getClosestProjectingParent();if(o&&!o.resumeFrom){const{snapshot:r,layout:i}=o;if(r&&i){const a=Cb();mb(a,n.layoutBox,r.layoutBox);const s=Cb();mb(s,t,i.layoutBox),Ey(a,s)||(c=!0),o.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=o)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Fy(e){Iy&&Py.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Hy(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Vy(e){e.clearSnapshot()}function Wy(e){e.clearMeasurements()}function Ky(e){e.isLayoutDirty=!1}function qy(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Uy(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Gy(e){e.resolveTargetDelta()}function Xy(e){e.calcProjection()}function Yy(e){e.resetSkewAndRotation()}function Zy(e){e.removeLeadSnapshot()}function Qy(e,t,n){e.translate=jg(t.translate,0,n),e.scale=jg(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Jy(e,t,n,o){e.min=jg(t.min,n.min,o),e.max=jg(t.max,n.max,o)}function ex(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const tx={duration:.45,ease:[.4,0,.1,1]},nx=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ox=nx("applewebkit/")&&!nx("chrome/")?Math.round:mh;function rx(e){e.min=ox(e.min),e.max=ox(e.max)}function ix(e,t,n){return"position"===e||"preserve-aspect"===e&&(o=ky(t),r=ky(n),.2,!(Math.abs(o-r)<=.2));var o,r}function ax(e){var t;return e!==e.root&&(null===(t=e.scroll)||void 0===t?void 0:t.wasRoot)}const sx=By({attachResizeListener:(e,t)=>Wv(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),lx={current:void 0},cx=By({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!lx.current){const e=new sx({});e.mount(window),e.setOptions({layoutScroll:!0}),lx.current=e}return lx.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),ux={pan:{Feature:class extends Bv{constructor(){super(...arguments),this.removePointerDownListener=mh}onPointerDown(e){this.session=new Uv(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:zb(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:o}=this.node.getProps();return{onSessionStart:Wb(e),onStart:Wb(t),onMove:n,onEnd:(e,t)=>{delete this.session,o&&bh.postRender((()=>o(e,t)))}}}mount(){this.removePointerDownListener=Kv(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Bv{constructor(e){super(e),this.removeGroupControls=mh,this.removeListeners=mh,this.controls=new Hb(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||mh}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:cx,MeasureLayout:ny}};function dx(e,t){const n=t?"pointerenter":"pointerleave",o=t?"onHoverStart":"onHoverEnd";return Kv(e.current,n,((n,r)=>{if("touch"===n.pointerType||rb())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t);const a=i[o];a&&bh.postRender((()=>a(n,r)))}),{passive:!e.getProps()[o]})}const fx=(e,t)=>!!t&&(e===t||fx(e,t.parentElement));function px(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Hv(n))}const hx=new WeakMap,mx=new WeakMap,gx=e=>{const t=hx.get(e.target);t&&t(e)},vx=e=>{e.forEach(gx)};const bx={some:0,all:1},yx={inView:{Feature:class extends Bv{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:o="some",once:r}=e,i={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof o?o:bx[o]};return function(e,t,n){const o=function({root:e,...t}){const n=e||document;mx.has(n)||mx.set(n,{});const o=mx.get(n),r=JSON.stringify(t);return o[r]||(o[r]=new IntersectionObserver(vx,{root:e,...t})),o[r]}(t);return hx.set(e,n),o.observe(e),()=>{hx.delete(e),o.unobserve(e)}}(this.node.current,i,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,r&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:o}=this.node.getProps(),i=t?n:o;i&&i(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Bv{constructor(){super(...arguments),this.removeStartListeners=mh,this.removeEndListeners=mh,this.removeAccessibleListeners=mh,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),o=Kv(window,"pointerup",((e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:o,globalTapTarget:r}=this.node.getProps(),i=r||fx(this.node.current,e.target)?n:o;i&&bh.update((()=>i(e,t)))}),{passive:!(n.onTap||n.onPointerUp)}),r=Kv(window,"pointercancel",((e,t)=>this.cancelPress(e,t)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=_g(o,r),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=Wv(this.node.current,"keydown",(e=>{"Enter"!==e.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=Wv(this.node.current,"keyup",(e=>{"Enter"===e.key&&this.checkPressEnd()&&px("up",((e,t)=>{const{onTap:n}=this.node.getProps();n&&bh.postRender((()=>n(e,t)))}))})),px("down",((e,t)=>{this.startPress(e,t)})))})),t=Wv(this.node.current,"blur",(()=>{this.isPressing&&px("cancel",((e,t)=>this.cancelPress(e,t)))}));this.removeAccessibleListeners=_g(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:n,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&bh.postRender((()=>n(e,t)))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!rb()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&bh.postRender((()=>n(e,t)))}mount(){const e=this.node.getProps(),t=Kv(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=Wv(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=_g(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Bv{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=_g(Wv(this.node.current,"focus",(()=>this.onFocus())),Wv(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends Bv{mount(){this.unmount=_g(dx(this.node,!0),dx(this.node,!1))}unmount(){}}}},xx={layout:{ProjectionNode:cx,MeasureLayout:ny}},wx=(0,p.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Cx=(0,p.createContext)({}),Sx="undefined"!=typeof window,Ex=Sx?p.useLayoutEffect:p.useEffect,kx=(0,p.createContext)({strict:!1});function $x(e,t,n,o,r){var i,a;const{visualElement:s}=(0,p.useContext)(Cx),l=(0,p.useContext)(kx),c=(0,p.useContext)(Kb),u=(0,p.useContext)(wx).reducedMotion,d=(0,p.useRef)();o=o||l.renderer,!d.current&&o&&(d.current=o(e,{visualState:t,parent:s,props:n,presenceContext:c,blockInitialAnimation:!!c&&!1===c.initial,reducedMotionConfig:u}));const f=d.current,h=(0,p.useContext)(Ub);!f||f.projection||!r||"html"!==f.type&&"svg"!==f.type||function(e,t,n,o){const{layoutId:r,layout:i,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Ox(e.parent)),e.projection.setOptions({layoutId:r,layout:i,alwaysMeasureLayout:Boolean(a)||s&&ib(s),visualElement:e,animationType:"string"==typeof i?i:"both",initialPromotionConfig:o,layoutScroll:l,layoutRoot:c})}(d.current,n,r,h),(0,p.useInsertionEffect)((()=>{f&&f.update(n,c)}));const m=n[Cv],g=(0,p.useRef)(Boolean(m)&&!(null===(i=window.MotionHandoffIsComplete)||void 0===i?void 0:i.call(window,m))&&(null===(a=window.MotionHasOptimisedAnimation)||void 0===a?void 0:a.call(window,m)));return Ex((()=>{f&&(window.MotionIsMounted=!0,f.updateFeatures(),Jb.render(f.render),g.current&&f.animationState&&f.animationState.animateChanges())})),(0,p.useEffect)((()=>{f&&(!g.current&&f.animationState&&f.animationState.animateChanges(),g.current&&(queueMicrotask((()=>{var e;null===(e=window.MotionHandoffMarkAsComplete)||void 0===e||e.call(window,m)})),g.current=!1))})),f}function Ox(e){if(e)return!1!==e.options.allowProjection?e.projection:Ox(e.parent)}function jx(e,t,n){return(0,p.useCallback)((o=>{o&&e.mount&&e.mount(o),t&&(o?t.mount(o):t.unmount()),n&&("function"==typeof n?n(o):ib(n)&&(n.current=o))}),[t])}function Mx(e){return Xp(e.animate)||oh.some((t=>Qp(e[t])))}function Px(e){return Boolean(Mx(e)||e.variants)}function Ix(e){return Array.isArray(e)?e.join(" "):e}const Nx={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Tx={};for(const e in Nx)Tx[e]={isEnabled:t=>Nx[e].some((e=>!!t[e]))};const Rx=Symbol.for("motionComponentSymbol");function Ax({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:o,Component:r}){e&&function(e){for(const t in e)Tx[t]={...Tx[t],...e[t]}}(e);const i=(0,p.forwardRef)((function(e,i){let s;const l={...(0,p.useContext)(wx),...e,layoutId:Dx(e)},{isStatic:c}=l,u=function(e){const{initial:t,animate:n}=function(e,t){if(Mx(e)){const{initial:t,animate:n}=e;return{initial:!1===t||Qp(t)?t:void 0,animate:Qp(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,p.useContext)(Cx));return(0,p.useMemo)((()=>({initial:t,animate:n})),[Ix(t),Ix(n)])}(e),d=o(e,c);if(!c&&Sx){(0,p.useContext)(kx).strict;const e=function(e){const{drag:t,layout:n}=Tx;if(!t&&!n)return{};const o={...t,...n};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==n?void 0:n.isEnabled(e))?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}(l);s=e.MeasureLayout,u.visualElement=$x(r,d,l,t,e.ProjectionNode)}return(0,a.jsxs)(Cx.Provider,{value:u,children:[s&&u.visualElement?(0,a.jsx)(s,{visualElement:u.visualElement,...l}):null,n(r,e,jx(d,u.visualElement,i),d,c,u.visualElement)]})}));return i[Rx]=r,i}function Dx({layoutId:e}){const t=(0,p.useContext)(qb).id;return t&&void 0!==e?t+"-"+e:e}const Bx=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Lx(e){return"string"==typeof e&&!e.includes("-")&&!!(Bx.indexOf(e)>-1||/[A-Z]/u.test(e))}function zx(e,{style:t,vars:n},o,r){Object.assign(e.style,t,r&&r.getProjectionStyles(o));for(const t in n)e.style.setProperty(t,n[t])}const Fx=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Hx(e,t,n,o){zx(e,t,void 0,o);for(const n in t.attrs)e.setAttribute(Fx.has(n)?n:wv(n),t.attrs[n])}function Vx(e,{layout:t,layoutId:n}){return ih.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!Qb[e]||"opacity"===e)}function Wx(e,t,n){var o;const{style:r}=e,i={};for(const a in r)(Ev(r[a])||t.style&&Ev(t.style[a])||Vx(a,e)||void 0!==(null===(o=null==n?void 0:n.getValue(a))||void 0===o?void 0:o.liveStyle))&&(i[a]=r[a]);return n&&r&&"string"==typeof r.willChange&&(n.applyWillChange=!1),i}function Kx(e,t,n){const o=Wx(e,t,n);for(const n in e)(Ev(e[n])||Ev(t[n]))&&(o[-1!==rh.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return o}function qx(e){return ih.has(e)?"transform":Gg.has(e)?wv(e):void 0}const Ux=e=>(t,n)=>{const o=(0,p.useContext)(Cx),r=(0,p.useContext)(Kb),i=()=>function({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:n,onMount:o},r,i,a,s){const l={latestValues:Xx(r,i,a,!s&&e,t),renderState:n()};return o&&(l.mount=e=>o(r,e,l)),l}(e,t,o,r,n);return n?i():function(e){const t=(0,p.useRef)(null);return null===t.current&&(t.current=e()),t.current}(i)};function Gx(e,t,n){const o=Array.isArray(t)?t:[t];for(let t=0;t<o.length;t++){const r=eh(e,o[t]);if(r){const{transitionEnd:e,transition:t,...o}=r;n(o,e)}}}function Xx(e,t,n,o,r){var i;const a={},s=new Set,l=o&&void 0===(null===(i=e.style)||void 0===i?void 0:i.willChange),c=r(e,{});for(const e in c)a[e]=My(c[e]);let{initial:u,animate:d}=e;const f=Mx(e),p=Px(e);t&&p&&!f&&!1!==e.inherit&&(void 0===u&&(u=t.initial),void 0===d&&(d=t.animate));let h=!!n&&!1===n.initial;h=h||!1===u;const m=h?d:u;return m&&"boolean"!=typeof m&&!Xp(m)&&Gx(e,m,((e,t)=>{for(const t in e){let n=e[t];Array.isArray(n)&&(n=n[h?n.length-1:0]),null!==n&&(a[t]=n)}for(const e in t)a[e]=t[e]})),l&&(d&&!1!==u&&!Xp(d)&&Gx(e,d,(e=>{for(const t in e){const e=qx(t);e&&s.add(e)}})),s.size&&(a.willChange=Array.from(s).join(","))),a}const Yx=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Zx=()=>({...Yx(),attrs:{}}),Qx=(e,t)=>t&&"number"==typeof e?t.transform(e):e,Jx={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ew=rh.length;function tw(e,t,n){const{style:o,vars:r,transformOrigin:i}=e;let a=!1,s=!1;for(const e in t){const n=t[e];if(ih.has(e))a=!0;else if(Bh(e))r[e]=n;else{const t=Qx(n,qm[e]);e.startsWith("origin")?(s=!0,i[e]=t):o[e]=t}}if(t.transform||(a||n?o.transform=function(e,t,n){let o="",r=!0;for(let i=0;i<ew;i++){const a=rh[i],s=e[a];if(void 0===s)continue;let l=!0;if(l="number"==typeof s?s===(a.startsWith("scale")?1:0):0===parseFloat(s),!l||n){const e=Qx(s,qm[a]);l||(r=!1,o+=`${Jx[a]||a}(${e}) `),n&&(t[a]=e)}}return o=o.trim(),n?o=n(t,r?"":o):r&&(o="none"),o}(t,e.transform,n):o.transform&&(o.transform="none")),s){const{originX:e="50%",originY:t="50%",originZ:n=0}=i;o.transformOrigin=`${e} ${t} ${n}`}}function nw(e,t,n){return"string"==typeof e?e:Zh.transform(t+n*e)}const ow={offset:"stroke-dashoffset",array:"stroke-dasharray"},rw={offset:"strokeDashoffset",array:"strokeDasharray"};function iw(e,{attrX:t,attrY:n,attrScale:o,originX:r,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...c},u,d){if(tw(e,c,d),u)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:f,style:p,dimensions:h}=e;f.transform&&(h&&(p.transform=f.transform),delete f.transform),h&&(void 0!==r||void 0!==i||p.transform)&&(p.transformOrigin=function(e,t,n){return`${nw(t,e.x,e.width)} ${nw(n,e.y,e.height)}`}(h,void 0!==r?r:.5,void 0!==i?i:.5)),void 0!==t&&(f.x=t),void 0!==n&&(f.y=n),void 0!==o&&(f.scale=o),void 0!==a&&function(e,t,n=1,o=0,r=!0){e.pathLength=1;const i=r?ow:rw;e[i.offset]=Zh.transform(-o);const a=Zh.transform(t),s=Zh.transform(n);e[i.array]=`${a} ${s}`}(f,a,s,l,!1)}const aw=e=>"string"==typeof e&&"svg"===e.toLowerCase(),sw={useVisualState:Ux({scrapeMotionValuesFromProps:Kx,createRenderState:Zx,onMount:(e,t,{renderState:n,latestValues:o})=>{bh.read((()=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}})),bh.render((()=>{iw(n,o,aw(t.tagName),e.transformTemplate),Hx(t,n)}))}})},lw={useVisualState:Ux({applyWillChange:!0,scrapeMotionValuesFromProps:Wx,createRenderState:Yx})};function cw(e,t,n){for(const o in t)Ev(t[o])||Vx(o,n)||(e[o]=t[o])}function uw(e,t){const n={},o=function(e,t){const n={};return cw(n,e.style||{},e),Object.assign(n,function({transformTemplate:e},t){return(0,p.useMemo)((()=>{const n=Yx();return tw(n,t,e),Object.assign({},n.vars,n.style)}),[t])}(e,t)),n}(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=o,n}const dw=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function fw(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||dw.has(e)}let pw=e=>!fw(e);try{(hw=require("@emotion/is-prop-valid").default)&&(pw=e=>e.startsWith("on")?!fw(e):hw(e))}catch(e){}var hw;function mw(e,t,n,o){const r=(0,p.useMemo)((()=>{const n=Zx();return iw(n,t,aw(o),e.transformTemplate),{...n.attrs,style:{...n.style}}}),[t]);if(e.style){const t={};cw(t,e.style,e),r.style={...t,...r.style}}return r}function gw(e=!1){return(t,n,o,{latestValues:r},i)=>{const a=(Lx(t)?mw:uw)(n,r,i,t),s=function(e,t,n){const o={};for(const r in e)"values"===r&&"object"==typeof e.values||(pw(r)||!0===n&&fw(r)||!t&&!fw(r)||e.draggable&&r.startsWith("onDrag"))&&(o[r]=e[r]);return o}(n,"string"==typeof t,e),l=t!==p.Fragment?{...s,...a,ref:o}:{},{children:c}=n,u=(0,p.useMemo)((()=>Ev(c)?c.get():c),[c]);return(0,p.createElement)(t,{...l,children:u})}}function vw(e,t){return function(n,{forwardMotionProps:o}={forwardMotionProps:!1}){return Ax({...Lx(n)?sw:lw,preloadedFeatures:e,useRender:gw(o),createVisualElement:t,Component:n})}}const bw={current:null},yw={current:!1},xw=new WeakMap,ww=[...cm,$m,Bm],Cw=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Sw{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:o,blockInitialAnimation:r,visualState:i},a={}){this.applyWillChange=!1,this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=gm,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const e=tg.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,bh.render(this.render,!1,!0))};const{latestValues:s,renderState:l}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=Boolean(r),this.isControllingVariants=Mx(t),this.isVariantNode=Px(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in u){const t=u[e];void 0!==s[e]&&Ev(t)&&t.set(s[e],!1)}}mount(e){this.current=e,xw.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),yw.current||function(){if(yw.current=!0,Sx)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>bw.current=e.matches;e.addListener(t),t()}else bw.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||bw.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){xw.delete(this.current),this.projection&&this.projection.unmount(),yh(this.notifyUpdate),yh(this.render),this.valueSubscriptions.forEach((e=>e())),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const n=ih.has(e),o=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&bh.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)})),r=t.on("renderRequest",this.scheduleRender);let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,(()=>{o(),r(),i&&i(),t.owner&&t.stop()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in Tx){const t=Tx[e];if(!t)continue;const{isEnabled:n,Feature:o}=t;if(!this.features[e]&&o&&n(this.props)&&(this.features[e]=new o(this)),this.features[e]){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Cb()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Cw.length;t++){const n=Cw[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const o=e["on"+n];o&&(this.propEventSubscriptions[n]=this.on(n,o))}this.prevMotionValues=function(e,t,n){for(const o in t){const r=t[o],i=n[o];if(Ev(r))e.addValue(o,r);else if(Ev(i))e.addValue(o,yv(r,{owner:e}));else if(i!==r)if(e.hasValue(o)){const t=e.getValue(o);!0===t.liveStyle?t.jump(r):t.hasAnimated||t.set(r)}else{const t=e.getStaticValue(o);e.addValue(o,yv(void 0!==t?t:r,{owner:e}))}}for(const o in n)void 0===t[o]&&e.removeValue(o);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=yv(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let o=void 0===this.latestValues[e]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,e))&&void 0!==n?n:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];var r;return null!=o&&("string"==typeof o&&(Ah(o)||Nh(o))?o=parseFloat(o):(r=o,!ww.find(lm(r))&&Bm.test(t)&&(o=Xm(e,t))),this.setBaseTarget(e,Ev(o)?o.get():o)),Ev(o)?o.get():o}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props;let o;if("string"==typeof n||"object"==typeof n){const r=eh(this.props,n,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);r&&(o=r[e])}if(n&&void 0!==o)return o;const r=this.getBaseTargetFromProps(this.props,e);return void 0===r||Ev(r)?void 0!==this.initialValues[e]&&void 0===o?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new gv),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class Ew extends Sw{constructor(){super(...arguments),this.KeyframeResolver=Zm}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}}class kw extends Ew{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=zx}readValueFromInstance(e,t){if(ih.has(t)){const e=Gm(t);return e&&e.default||0}{const o=(n=e,window.getComputedStyle(n)),r=(Bh(t)?o.getPropertyValue(t):o[t])||0;return"string"==typeof r?r.trim():r}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return Lb(e,t)}build(e,t,n){tw(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Wx(e,t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Ev(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}}class $w extends Ew{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Cb}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(ih.has(t)){const e=Gm(t);return e&&e.default||0}return t=Fx.has(t)?t:wv(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Kx(e,t,n)}build(e,t,n){iw(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,o){Hx(e,t,0,o)}mount(e){this.isSVGTag=aw(e.tagName),super.mount(e)}}const _w=(e,t)=>Lx(e)?new $w(t):new kw(t,{allowProjection:e!==p.Fragment}),Ow=Gp(vw({...zv,...yx,...ux,...xx},_w)),jw={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"};var Mw=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:jw}))};const Pw=p.forwardRef(Mw),Iw={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"};var Nw=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:Iw}))};const Tw=p.forwardRef(Nw);function Rw(e){return null!=e&&e===e.window}function Aw(e,t){var n,o;if("undefined"==typeof window)return 0;const r=t?"scrollTop":"scrollLeft";let i=0;return Rw(e)?i=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?i=e.documentElement[r]:(e instanceof HTMLElement||e)&&(i=e[r]),e&&!Rw(e)&&"number"!=typeof i&&(i=null===(o=(null!==(n=e.ownerDocument)&&void 0!==n?n:e).documentElement)||void 0===o?void 0:o[r]),i}function Dw(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{getContainer:n=(()=>window),callback:o,duration:r=450}=t,i=n(),a=Aw(i,!0),s=Date.now(),l=()=>{const t=Date.now()-s,n=function(e,t,n,o){const r=n-t;return(e/=o/2)<1?r/2*e*e*e+t:r/2*((e-=2)*e*e+2)+t}(t>r?r:t,a,e,r);Rw(i)?i.scrollTo(window.pageXOffset,n):i instanceof Document||"HTMLDocument"===i.constructor.name?i.documentElement.scrollTop=n:i.scrollTop=n,t<r?na(l):"function"==typeof o&&o()};na(l)}const Bw=h().createContext(void 0),{Provider:Lw}=Bw,zw=Bw,Fw=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],Hw=Fw.map((e=>`${e}-inverse`));function Vw(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?Fw.includes(e):[].concat(Ye(Hw),Ye(Fw)).includes(e)}function Ww(e,t){return Fw.reduce(((n,o)=>{const r=e[`${o}1`],i=e[`${o}3`],a=e[`${o}6`],s=e[`${o}7`];return Object.assign(Object.assign({},n),t(o,{lightColor:r,lightBorderColor:i,darkColor:a,textColor:s}))}),{})}const Kw=new _o("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),qw=new _o("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),Uw=new _o("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),Gw=new _o("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),Xw=new _o("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),Yw=new _o("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),Zw=e=>{const{fontHeight:t,lineWidth:n,marginXS:o,colorBorderBg:r}=e;return Js(e,{badgeFontHeight:t,badgeShadowSize:n,badgeTextColor:e.colorBgContainer,badgeColor:e.colorError,badgeColorHover:e.colorErrorHover,badgeShadowColor:r,badgeProcessingDuration:"1.2s",badgeRibbonOffset:o,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},Qw=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:o,lineWidth:r}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*r,indicatorHeightSM:t,dotSize:o/2,textFontSize:o,textFontSizeSM:o,textFontWeight:"normal",statusSize:o/2}},Jw=hl("Badge",(e=>(e=>{const{componentCls:t,iconCls:n,antCls:o,badgeShadowSize:r,motionDurationSlow:i,textFontSize:a,textFontSizeSM:s,statusSize:l,dotSize:c,textFontWeight:u,indicatorHeight:d,indicatorHeightSM:f,marginXS:p,calc:h}=e,m=`${o}-scroll-number`,g=Ww(e,((e,n)=>{let{darkColor:o}=n;return{[`&${t} ${t}-color-${e}`]:{background:o,[`&:not(${t}-count)`]:{color:o}}}}));return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ia(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{zIndex:e.indicatorZIndex,minWidth:d,height:d,color:e.badgeTextColor,fontWeight:u,fontSize:a,lineHeight:qt(d),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:h(d).div(2).equal(),boxShadow:`0 0 0 ${qt(r)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:f,height:f,fontSize:s,lineHeight:qt(f),borderRadius:h(f).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${qt(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:c,minWidth:c,height:c,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${qt(r)} ${e.badgeShadowColor}`},[`${t}-dot${m}`]:{transition:`background ${i}`},[`${t}-count, ${t}-dot, ${m}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:Yw,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:l,height:l,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorPrimary,backgroundColor:e.colorPrimary,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:r,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:Kw,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:p,color:e.colorText,fontSize:e.fontSize}}}),g),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:qw,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:Uw,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:Gw,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:Xw,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${m}-custom-component, ${t}-count`]:{transform:"none"},[`${m}-custom-component, ${m}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${m}`]:{overflow:"hidden",[`${m}-only`]:{position:"relative",display:"inline-block",height:d,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${m}-only-unit`]:{height:d,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${m}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${m}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}})(Zw(e))),Qw),eC=hl(["Badge","Ribbon"],(e=>(e=>{const{antCls:t,badgeFontHeight:n,marginXS:o,badgeRibbonOffset:r,calc:i}=e,a=`${t}-ribbon`,s=`${t}-ribbon-wrapper`,l=Ww(e,((e,t)=>{let{darkColor:n}=t;return{[`&${a}-color-${e}`]:{background:n,color:n}}}));return{[`${s}`]:{position:"relative"},[`${a}`]:Object.assign(Object.assign(Object.assign(Object.assign({},Ia(e)),{position:"absolute",top:o,padding:`0 ${qt(e.paddingXS)}`,color:e.colorPrimary,lineHeight:qt(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${a}-text`]:{color:e.colorTextLightSolid},[`${a}-corner`]:{position:"absolute",top:"100%",width:r,height:r,color:"currentcolor",border:`${qt(i(r).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),l),{[`&${a}-placement-end`]:{insetInlineEnd:i(r).mul(-1).equal(),borderEndEndRadius:0,[`${a}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${a}-placement-start`]:{insetInlineStart:i(r).mul(-1).equal(),borderEndStartRadius:0,[`${a}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}})(Zw(e))),Qw);function tC(e){let t,{prefixCls:n,value:o,current:r,offset:i=0}=e;return i&&(t={position:"absolute",top:`${i}00%`,left:0}),p.createElement("span",{style:t,className:oi()(`${n}-only-unit`,{current:r})},o)}function nC(e,t,n){let o=e,r=0;for(;(o+10)%10!==t;)o+=n,r+=n;return r}function oC(e){const{prefixCls:t,count:n,value:o}=e,r=Number(o),i=Math.abs(n),[a,s]=p.useState(r),[l,c]=p.useState(i),u=()=>{s(r),c(i)};let d,f;if(p.useEffect((()=>{const e=setTimeout((()=>{u()}),1e3);return()=>{clearTimeout(e)}}),[r]),a===r||Number.isNaN(r)||Number.isNaN(a))d=[p.createElement(tC,Object.assign({},e,{key:r,current:!0}))],f={transition:"none"};else{d=[];const t=r+10,n=[];for(let e=r;e<=t;e+=1)n.push(e);const o=n.findIndex((e=>e%10===a));d=n.map(((t,n)=>{const r=t%10;return p.createElement(tC,Object.assign({},e,{key:t,value:r,offset:n-o,current:n===o}))})),f={transform:`translateY(${-nC(a,r,l<i?1:-1)}00%)`}}return p.createElement("span",{className:`${t}-only`,style:f,onTransitionEnd:u},d)}const rC=p.forwardRef(((e,t)=>{const{prefixCls:n,count:o,className:r,motionClassName:i,style:a,title:s,show:l,component:c="sup",children:u}=e,d=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:f}=p.useContext(He),h=f("scroll-number",n),m=Object.assign(Object.assign({},d),{"data-show":l,style:a,className:oi()(h,r,i),title:s});let g=o;if(o&&Number(o)%1==0){const e=String(o).split("");g=p.createElement("bdi",null,e.map(((t,n)=>p.createElement(oC,{prefixCls:h,count:Number(o),value:t,key:e.length-n}))))}return a&&a.borderColor&&(m.style=Object.assign(Object.assign({},a),{boxShadow:`0 0 0 1px ${a.borderColor} inset`})),u?rc(u,(e=>({className:oi()(`${h}-custom-component`,null==e?void 0:e.className,i)}))):p.createElement(c,Object.assign({},m,{ref:t}),g)})),iC=rC;const aC=(e,t)=>{var n,o,r,i,a;const{prefixCls:s,scrollNumberPrefixCls:l,children:c,status:u,text:d,color:f,count:h=null,overflowCount:m=99,dot:g=!1,size:v="default",title:b,offset:y,style:x,className:w,rootClassName:C,classNames:S,styles:E,showZero:k=!1}=e,$=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:_,direction:O,badge:j}=p.useContext(He),M=_("badge",s),[P,I,N]=Jw(M),T=h>m?`${m}+`:h,R="0"===T||0===T,A=(null!=u||null!=f)&&(null===h||R&&!k),D=g&&!R,B=D?"":T,L=(0,p.useMemo)((()=>(null==B||""===B||R&&!k)&&!D),[B,R,k,D]),z=(0,p.useRef)(h);L||(z.current=h);const F=z.current,H=(0,p.useRef)(B);L||(H.current=B);const V=H.current,W=(0,p.useRef)(D);L||(W.current=D);const K=(0,p.useMemo)((()=>{if(!y)return Object.assign(Object.assign({},null==j?void 0:j.style),x);const e={marginTop:y[1]};return"rtl"===O?e.left=parseInt(y[0],10):e.right=-parseInt(y[0],10),Object.assign(Object.assign(Object.assign({},e),null==j?void 0:j.style),x)}),[O,y,x,null==j?void 0:j.style]),q=null!=b?b:"string"==typeof F||"number"==typeof F?F:void 0,U=L||!d?null:p.createElement("span",{className:`${M}-status-text`},d),G=F&&"object"==typeof F?rc(F,(e=>({style:Object.assign(Object.assign({},K),e.style)}))):void 0,X=Vw(f,!1),Y=oi()(null==S?void 0:S.indicator,null===(n=null==j?void 0:j.classNames)||void 0===n?void 0:n.indicator,{[`${M}-status-dot`]:A,[`${M}-status-${u}`]:!!u,[`${M}-color-${f}`]:X}),Z={};f&&!X&&(Z.color=f,Z.background=f);const Q=oi()(M,{[`${M}-status`]:A,[`${M}-not-a-wrapper`]:!c,[`${M}-rtl`]:"rtl"===O},w,C,null==j?void 0:j.className,null===(o=null==j?void 0:j.classNames)||void 0===o?void 0:o.root,null==S?void 0:S.root,I,N);if(!c&&A){const e=K.color;return P(p.createElement("span",Object.assign({},$,{className:Q,style:Object.assign(Object.assign(Object.assign({},null==E?void 0:E.root),null===(r=null==j?void 0:j.styles)||void 0===r?void 0:r.root),K)}),p.createElement("span",{className:Y,style:Object.assign(Object.assign(Object.assign({},null==E?void 0:E.indicator),null===(i=null==j?void 0:j.styles)||void 0===i?void 0:i.indicator),Z)}),d&&p.createElement("span",{style:{color:e},className:`${M}-status-text`},d)))}return P(p.createElement("span",Object.assign({ref:t},$,{className:Q,style:Object.assign(Object.assign({},null===(a=null==j?void 0:j.styles)||void 0===a?void 0:a.root),null==E?void 0:E.root)}),c,p.createElement(va,{visible:!L,motionName:`${M}-zoom`,motionAppear:!1,motionDeadline:1e3},(e=>{let{className:t,ref:n}=e;var o,r;const i=_("scroll-number",l),a=W.current,s=oi()(null==S?void 0:S.indicator,null===(o=null==j?void 0:j.classNames)||void 0===o?void 0:o.indicator,{[`${M}-dot`]:a,[`${M}-count`]:!a,[`${M}-count-sm`]:"small"===v,[`${M}-multiple-words`]:!a&&V&&V.toString().length>1,[`${M}-status-${u}`]:!!u,[`${M}-color-${f}`]:X});let c=Object.assign(Object.assign(Object.assign({},null==E?void 0:E.indicator),null===(r=null==j?void 0:j.styles)||void 0===r?void 0:r.indicator),K);return f&&!X&&(c=c||{},c.background=f),p.createElement(iC,{prefixCls:i,show:!L,motionClassName:t,className:s,count:V,title:q,style:c,key:"scrollNumber",ref:n},G)})),U))},sC=p.forwardRef(aC);sC.Ribbon=e=>{const{className:t,prefixCls:n,style:o,color:r,children:i,text:a,placement:s="end",rootClassName:l}=e,{getPrefixCls:c,direction:u}=p.useContext(He),d=c("ribbon",n),f=`${d}-wrapper`,[h,m,g]=eC(d,f),v=Vw(r,!1),b=oi()(d,`${d}-placement-${s}`,{[`${d}-rtl`]:"rtl"===u,[`${d}-color-${r}`]:v},t),y={},x={};return r&&!v&&(y.background=r,x.color=r),h(p.createElement("div",{className:oi()(f,l,m,g)},i,p.createElement("div",{className:oi()(b,m),style:Object.assign(Object.assign({},y),o)},p.createElement("span",{className:`${d}-text`},a),p.createElement("div",{className:`${d}-corner`,style:x}))))};const lC=sC;function cC(e){var t=e.children,n=e.prefixCls,o=e.id,r=e.overlayInnerStyle,i=e.className,a=e.style;return p.createElement("div",{className:oi()("".concat(n,"-content"),i),style:a},p.createElement("div",{className:"".concat(n,"-inner"),id:o,role:"tooltip",style:r},"function"==typeof t?t():t))}var uC=p.createContext(null),dC=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,o){return e[0]===t&&(n=o,!0)})),n}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(t){var n=e(this.__entries__,t),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(t,n){var o=e(this.__entries__,t);~o?this.__entries__[o][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,o=e(n,t);~o&&n.splice(o,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,o=this.__entries__;n<o.length;n++){var r=o[n];e.call(t,r[1],r[0])}},t}()}(),fC="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,pC=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),hC="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(pC):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},mC=["top","right","bottom","left","width","height","size","weight"],gC="undefined"!=typeof MutationObserver,vC=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,o=!1,r=0;function i(){n&&(n=!1,e()),o&&s()}function a(){hC(i)}function s(){var e=Date.now();if(n){if(e-r<2)return;o=!0}else n=!0,o=!1,setTimeout(a,t);r=e}return s}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){fC&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),gC?(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(){fC&&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(e){var t=e.propertyName,n=void 0===t?"":t;mC.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),bC=function(e,t){for(var n=0,o=Object.keys(t);n<o.length;n++){var r=o[n];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},yC=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||pC},xC=kC(0,0,0,0);function wC(e){return parseFloat(e)||0}function CC(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+wC(e["border-"+n+"-width"])}),0)}var SC="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof yC(e).SVGGraphicsElement}:function(e){return e instanceof yC(e).SVGElement&&"function"==typeof e.getBBox};function EC(e){return fC?SC(e)?function(e){var t=e.getBBox();return kC(0,0,t.width,t.height)}(e):function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return xC;var o=yC(e).getComputedStyle(e),r=function(e){for(var t={},n=0,o=["top","right","bottom","left"];n<o.length;n++){var r=o[n],i=e["padding-"+r];t[r]=wC(i)}return t}(o),i=r.left+r.right,a=r.top+r.bottom,s=wC(o.width),l=wC(o.height);if("border-box"===o.boxSizing&&(Math.round(s+i)!==t&&(s-=CC(o,"left","right")+i),Math.round(l+a)!==n&&(l-=CC(o,"top","bottom")+a)),!function(e){return e===yC(e).document.documentElement}(e)){var c=Math.round(s+i)-t,u=Math.round(l+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return kC(r.left,r.top,s,l)}(e):xC}function kC(e,t,n,o){return{x:e,y:t,width:n,height:o}}var $C=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=kC(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=EC(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),_C=function(e,t){var n,o,r,i,a,s,l,c=(o=(n=t).x,r=n.y,i=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),bC(l,{x:o,y:r,width:i,height:a,top:r,right:o+i,bottom:a+r,left:o}),l);bC(this,{target:e,contentRect:c})},OC=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new dC,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof yC(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new $C(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof yC(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new _C(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),jC="undefined"!=typeof WeakMap?new WeakMap:new dC,MC=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=vC.getInstance(),o=new OC(t,n,this);jC.set(this,o)};["observe","unobserve","disconnect"].forEach((function(e){MC.prototype[e]=function(){var t;return(t=jC.get(this))[e].apply(t,arguments)}}));const PC=void 0!==pC.ResizeObserver?pC.ResizeObserver:MC;var IC=new Map,NC=new PC((function(e){e.forEach((function(e){var t,n=e.target;null===(t=IC.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))})),TC=function(e){gi(n,e);var t=wi(n);function n(){return xt(this,n),t.apply(this,arguments)}return Ct(n,[{key:"render",value:function(){return this.props.children}}]),n}(p.Component);function RC(e,t){var n=e.children,o=e.disabled,r=p.useRef(null),i=p.useRef(null),a=p.useContext(uC),s="function"==typeof n,l=s?n(r):n,c=p.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&p.isValidElement(l)&&ui(l),d=ci(u?l.ref:null,r),f=function(){var e;return ii(r.current)||(r.current&&"object"===ye(r.current)?ii(null===(e=r.current)||void 0===e?void 0:e.nativeElement):null)||ii(i.current)};p.useImperativeHandle(t,(function(){return f()}));var h=p.useRef(e);h.current=e;var m=p.useCallback((function(e){var t=h.current,n=t.onResize,o=t.data,r=e.getBoundingClientRect(),i=r.width,s=r.height,l=e.offsetWidth,u=e.offsetHeight,d=Math.floor(i),f=Math.floor(s);if(c.current.width!==d||c.current.height!==f||c.current.offsetWidth!==l||c.current.offsetHeight!==u){var p={width:d,height:f,offsetWidth:l,offsetHeight:u};c.current=p;var m=l===Math.round(i)?i:l,g=u===Math.round(s)?s:u,v=$e($e({},p),{},{offsetWidth:m,offsetHeight:g});null==a||a(v,e,o),n&&Promise.resolve().then((function(){n(v,e)}))}}),[]);return p.useEffect((function(){var e=f();return e&&!o&&function(e,t){IC.has(e)||(IC.set(e,new Set),NC.observe(e)),IC.get(e).add(t)}(e,m),function(){return function(e,t){IC.has(e)&&(IC.get(e).delete(t),IC.get(e).size||(NC.unobserve(e),IC.delete(e)))}(e,m)}}),[r.current,o]),p.createElement(TC,{ref:i},u?p.cloneElement(l,{ref:d}):l)}const AC=p.forwardRef(RC);function DC(e,t){var n=e.children;return("function"==typeof n?[n]:hc(n)).map((function(n,o){var r=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(o);return p.createElement(AC,hn({},e,{key:r,ref:0===o?t:void 0}),n)}))}var BC=p.forwardRef(DC);BC.Collection=function(e){var t=e.children,n=e.onBatchResize,o=p.useRef(0),r=p.useRef([]),i=p.useContext(uC),a=p.useCallback((function(e,t,a){o.current+=1;var s=o.current;r.current.push({size:e,element:t,data:a}),Promise.resolve().then((function(){s===o.current&&(null==n||n(r.current),r.current=[])})),null==i||i(e,t,a)}),[n,i]);return p.createElement(uC.Provider,{value:a},t)};const LC=BC,zC=function(){if("undefined"==typeof navigator||"undefined"==typeof window)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(null==e?void 0:e.substr(0,4))};function FC(e){var t=e.prefixCls,n=e.align,o=e.arrow,r=e.arrowPos,i=o||{},a=i.className,s=i.content,l=r.x,c=void 0===l?0:l,u=r.y,d=void 0===u?0:u,f=p.useRef();if(!n||!n.points)return null;var h={position:"absolute"};if(!1!==n.autoArrow){var m=n.points[0],g=n.points[1],v=m[0],b=m[1],y=g[0],x=g[1];v!==y&&["t","b"].includes(v)?"t"===v?h.top=0:h.bottom=0:h.top=d,b!==x&&["l","r"].includes(b)?"l"===b?h.left=0:h.right=0:h.left=c}return p.createElement("div",{ref:f,className:oi()("".concat(t,"-arrow"),a),style:h},s)}function HC(e){var t=e.prefixCls,n=e.open,o=e.zIndex,r=e.mask,i=e.motion;return r?p.createElement(va,hn({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return p.createElement("div",{style:{zIndex:o},className:oi()("".concat(t,"-mask"),n)})})):null}var VC=p.memo((function(e){return e.children}),(function(e,t){return t.cache}));const WC=VC;var KC=p.forwardRef((function(e,t){var n=e.popup,o=e.className,r=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,h=e.arrow,m=e.arrowPos,g=e.align,v=e.motion,b=e.maskMotion,y=e.forceRender,x=e.getPopupContainer,w=e.autoDestroy,C=e.portal,S=e.zIndex,E=e.onMouseEnter,k=e.onMouseLeave,$=e.onPointerEnter,_=e.ready,O=e.offsetX,j=e.offsetY,M=e.offsetR,P=e.offsetB,I=e.onAlign,N=e.onPrepare,T=e.stretch,R=e.targetWidth,A=e.targetHeight,D="function"==typeof n?n():n,B=l||c,L=(null==x?void 0:x.length)>0,z=Ge(p.useState(!x||!L),2),F=z[0],H=z[1];if(en((function(){!F&&L&&a&&H(!0)}),[F,L,a]),!F)return null;var V="auto",W={left:"-1000vw",top:"-1000vh",right:V,bottom:V};if(_||!l){var K,q=g.points,U=g.dynamicInset||(null===(K=g._experimental)||void 0===K?void 0:K.dynamicInset),G=U&&"r"===q[0][1],X=U&&"b"===q[0][0];G?(W.right=M,W.left=V):(W.left=O,W.right=V),X?(W.bottom=P,W.top=V):(W.top=j,W.bottom=V)}var Y={};return T&&(T.includes("height")&&A?Y.height=A:T.includes("minHeight")&&A&&(Y.minHeight=A),T.includes("width")&&R?Y.width=R:T.includes("minWidth")&&R&&(Y.minWidth=R)),l||(Y.pointerEvents="none"),p.createElement(C,{open:y||B,getContainer:x&&function(){return x(a)},autoDestroy:w},p.createElement(HC,{prefixCls:r,open:l,zIndex:S,mask:f,motion:b}),p.createElement(LC,{onResize:I,disabled:!l},(function(e){return p.createElement(va,hn({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(r,"-hidden")},v,{onAppearPrepare:N,onEnterPrepare:N,visible:l,onVisibleChanged:function(e){var t;null==v||null===(t=v.onVisibleChanged)||void 0===t||t.call(v,e),s(e)}}),(function(n,a){var s=n.className,c=n.style,f=oi()(r,s,o);return p.createElement("div",{ref:li(e,t,a),className:f,style:$e($e($e($e({"--arrow-x":"".concat(m.x||0,"px"),"--arrow-y":"".concat(m.y||0,"px")},W),Y),c),{},{boxSizing:"border-box",zIndex:S},i),onMouseEnter:E,onMouseLeave:k,onPointerEnter:$,onClick:d},h&&p.createElement(FC,{prefixCls:r,arrow:h,arrowPos:m,align:g}),p.createElement(WC,{cache:!l&&!u},D))}))})))}));const qC=KC;var UC=p.forwardRef((function(e,t){var n=e.children,o=e.getTriggerDOMNode,r=ui(n),i=p.useCallback((function(e){si(t,o?o(e):e)}),[o]),a=ci(i,n.ref);return r?p.cloneElement(n,{ref:a}):n}));const GC=UC,XC=p.createContext(null);function YC(e){return e?Array.isArray(e)?e:[e]:[]}function ZC(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function QC(e,t,n,o){return t||(n?{motionName:"".concat(e,"-").concat(n)}:o?{motionName:o}:null)}function JC(e){return e.ownerDocument.defaultView}function eS(e){for(var t=[],n=null==e?void 0:e.parentElement,o=["hidden","scroll","clip","auto"];n;){var r=JC(n).getComputedStyle(n);[r.overflowX,r.overflowY,r.overflow].some((function(e){return o.includes(e)}))&&t.push(n),n=n.parentElement}return t}function tS(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function nS(e){return tS(parseFloat(e),0)}function oS(e,t){var n=$e({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=JC(e).getComputedStyle(e),o=t.overflow,r=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,s=t.borderLeftWidth,l=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,p=e.clientWidth,h=nS(i),m=nS(a),g=nS(s),v=nS(l),b=tS(Math.round(c.width/f*1e3)/1e3),y=tS(Math.round(c.height/u*1e3)/1e3),x=(f-p-g-v)*b,w=(u-d-h-m)*y,C=h*y,S=m*y,E=g*b,k=v*b,$=0,_=0;if("clip"===o){var O=nS(r);$=O*b,_=O*y}var j=c.x+E-$,M=c.y+C-_,P=j+c.width+2*$-E-k-x,I=M+c.height+2*_-C-S-w;n.left=Math.max(n.left,j),n.top=Math.max(n.top,M),n.right=Math.min(n.right,P),n.bottom=Math.min(n.bottom,I)}})),n}function rS(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function iS(e,t){var n=Ge(t||[],2),o=n[0],r=n[1];return[rS(e.width,o),rS(e.height,r)]}function aS(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function sS(e,t){var n,o=t[0],r=t[1];return n="t"===o?e.y:"b"===o?e.y+e.height:e.y+e.height/2,{x:"l"===r?e.x:"r"===r?e.x+e.width:e.x+e.width/2,y:n}}function lS(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,o){return o===t?n[e]||"c":e})).join("")}var cS=["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"];const uS=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Tu,t=p.forwardRef((function(t,n){var o=t.prefixCls,r=void 0===o?"rc-trigger-popup":o,i=t.children,a=t.action,s=void 0===a?"hover":a,l=t.showAction,c=t.hideAction,u=t.popupVisible,d=t.defaultPopupVisible,f=t.onPopupVisibleChange,h=t.afterPopupVisibleChange,m=t.mouseEnterDelay,g=t.mouseLeaveDelay,v=void 0===g?.1:g,b=t.focusDelay,y=t.blurDelay,x=t.mask,w=t.maskClosable,C=void 0===w||w,S=t.getPopupContainer,E=t.forceRender,k=t.autoDestroy,$=t.destroyPopupOnHide,_=t.popup,O=t.popupClassName,j=t.popupStyle,M=t.popupPlacement,P=t.builtinPlacements,I=void 0===P?{}:P,N=t.popupAlign,T=t.zIndex,R=t.stretch,A=t.getPopupClassNameFromAlign,D=t.fresh,B=t.alignPoint,L=t.onPopupClick,z=t.onPopupAlign,F=t.arrow,H=t.popupMotion,V=t.maskMotion,W=t.popupTransitionName,K=t.popupAnimation,q=t.maskTransitionName,U=t.maskAnimation,G=t.className,X=t.getTriggerDOMNode,Y=di(t,cS),Z=k||$||!1,Q=Ge(p.useState(!1),2),J=Q[0],ee=Q[1];en((function(){ee(zC())}),[]);var te=p.useRef({}),ne=p.useContext(XC),oe=p.useMemo((function(){return{registerSubPopup:function(e,t){te.current[e]=t,null==ne||ne.registerSubPopup(e,t)}}}),[ne]),re=Bu(),ie=Ge(p.useState(null),2),ae=ie[0],se=ie[1],le=nl((function(e){ri(e)&&ae!==e&&se(e),null==ne||ne.registerSubPopup(re,e)})),ce=Ge(p.useState(null),2),ue=ce[0],de=ce[1],fe=p.useRef(null),pe=nl((function(e){ri(e)&&ue!==e&&(de(e),fe.current=e)})),he=p.Children.only(i),me=(null==he?void 0:he.props)||{},ge={},ve=nl((function(e){var t,n,o=ue;return(null==o?void 0:o.contains(e))||(null===(t=Za(o))||void 0===t?void 0:t.host)===e||e===o||(null==ae?void 0:ae.contains(e))||(null===(n=Za(ae))||void 0===n?void 0:n.host)===e||e===ae||Object.values(te.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),be=QC(r,H,K,W),ye=QC(r,V,U,q),xe=Ge(p.useState(d||!1),2),we=xe[0],Ce=xe[1],Se=null!=u?u:we,Ee=nl((function(e){void 0===u&&Ce(e)}));en((function(){Ce(u||!1)}),[u]);var ke=p.useRef(Se);ke.current=Se;var _e=p.useRef([]);_e.current=[];var Oe=nl((function(e){var t;Ee(e),(null!==(t=_e.current[_e.current.length-1])&&void 0!==t?t:Se)!==e&&(_e.current.push(e),null==f||f(e))})),je=p.useRef(),Me=function(){clearTimeout(je.current)},Pe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Me(),0===t?Oe(e):je.current=setTimeout((function(){Oe(e)}),1e3*t)};p.useEffect((function(){return Me}),[]);var Ie=Ge(p.useState(!1),2),Ne=Ie[0],Te=Ie[1];en((function(e){e&&!Se||Te(!0)}),[Se]);var Re=Ge(p.useState(null),2),Ae=Re[0],De=Re[1],Be=Ge(p.useState([0,0]),2),Le=Be[0],ze=Be[1],Fe=function(e){ze([e.clientX,e.clientY])},He=function(e,t,n,o,r,i,a){var s=Ge(p.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:r[o]||{}}),2),l=s[0],c=s[1],u=p.useRef(0),d=p.useMemo((function(){return t?eS(t):[]}),[t]),f=p.useRef({});e||(f.current={});var h=nl((function(){if(t&&n&&e){var s,l,u,p=t,h=p.ownerDocument,m=JC(p).getComputedStyle(p),g=m.width,v=m.height,b=m.position,y=p.style.left,x=p.style.top,w=p.style.right,C=p.style.bottom,S=p.style.overflow,E=$e($e({},r[o]),i),k=h.createElement("div");if(null===(s=p.parentElement)||void 0===s||s.appendChild(k),k.style.left="".concat(p.offsetLeft,"px"),k.style.top="".concat(p.offsetTop,"px"),k.style.position=b,k.style.height="".concat(p.offsetHeight,"px"),k.style.width="".concat(p.offsetWidth,"px"),p.style.left="0",p.style.top="0",p.style.right="auto",p.style.bottom="auto",p.style.overflow="hidden",Array.isArray(n))u={x:n[0],y:n[1],width:0,height:0};else{var $=n.getBoundingClientRect();u={x:$.x,y:$.y,width:$.width,height:$.height}}var _=p.getBoundingClientRect(),O=h.documentElement,j=O.clientWidth,M=O.clientHeight,P=O.scrollWidth,I=O.scrollHeight,N=O.scrollTop,T=O.scrollLeft,R=_.height,A=_.width,D=u.height,B=u.width,L={left:0,top:0,right:j,bottom:M},z={left:-T,top:-N,right:P-T,bottom:I-N},F=E.htmlRegion,H="visible",V="visibleFirst";"scroll"!==F&&F!==V&&(F=H);var W=F===V,K=oS(z,d),q=oS(L,d),U=F===H?q:K,G=W?q:U;p.style.left="auto",p.style.top="auto",p.style.right="0",p.style.bottom="0";var X=p.getBoundingClientRect();p.style.left=y,p.style.top=x,p.style.right=w,p.style.bottom=C,p.style.overflow=S,null===(l=p.parentElement)||void 0===l||l.removeChild(k);var Y=tS(Math.round(A/parseFloat(g)*1e3)/1e3),Z=tS(Math.round(R/parseFloat(v)*1e3)/1e3);if(0===Y||0===Z||ri(n)&&!ec(n))return;var Q=E.offset,J=E.targetOffset,ee=Ge(iS(_,Q),2),te=ee[0],ne=ee[1],oe=Ge(iS(u,J),2),re=oe[0],ie=oe[1];u.x-=re,u.y-=ie;var ae=Ge(E.points||[],2),se=ae[0],le=aS(ae[1]),ce=aS(se),ue=sS(u,le),de=sS(_,ce),fe=$e({},E),pe=ue.x-de.x+te,he=ue.y-de.y+ne;function ct(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:U,o=_.x+e,r=_.y+t,i=o+A,a=r+R,s=Math.max(o,n.left),l=Math.max(r,n.top),c=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(c-s)*(u-l))}var me,ge,ve,be,ye=ct(pe,he),xe=ct(pe,he,q),we=sS(u,["t","l"]),Ce=sS(_,["t","l"]),Se=sS(u,["b","r"]),Ee=sS(_,["b","r"]),ke=E.overflow||{},_e=ke.adjustX,Oe=ke.adjustY,je=ke.shiftX,Me=ke.shiftY,Pe=function(e){return"boolean"==typeof e?e:e>=0};function ut(){me=_.y+he,ge=me+R,ve=_.x+pe,be=ve+A}ut();var Ie=Pe(Oe),Ne=ce[0]===le[0];if(Ie&&"t"===ce[0]&&(ge>G.bottom||f.current.bt)){var Te=he;Ne?Te-=R-D:Te=we.y-Ee.y-ne;var Re=ct(pe,Te),Ae=ct(pe,Te,q);Re>ye||Re===ye&&(!W||Ae>=xe)?(f.current.bt=!0,he=Te,ne=-ne,fe.points=[lS(ce,0),lS(le,0)]):f.current.bt=!1}if(Ie&&"b"===ce[0]&&(me<G.top||f.current.tb)){var De=he;Ne?De+=R-D:De=Se.y-Ce.y-ne;var Be=ct(pe,De),Le=ct(pe,De,q);Be>ye||Be===ye&&(!W||Le>=xe)?(f.current.tb=!0,he=De,ne=-ne,fe.points=[lS(ce,0),lS(le,0)]):f.current.tb=!1}var ze=Pe(_e),Fe=ce[1]===le[1];if(ze&&"l"===ce[1]&&(be>G.right||f.current.rl)){var He=pe;Fe?He-=A-B:He=we.x-Ee.x-te;var Ve=ct(He,he),We=ct(He,he,q);Ve>ye||Ve===ye&&(!W||We>=xe)?(f.current.rl=!0,pe=He,te=-te,fe.points=[lS(ce,1),lS(le,1)]):f.current.rl=!1}if(ze&&"r"===ce[1]&&(ve<G.left||f.current.lr)){var Ke=pe;Fe?Ke+=A-B:Ke=Se.x-Ce.x-te;var qe=ct(Ke,he),Ue=ct(Ke,he,q);qe>ye||qe===ye&&(!W||Ue>=xe)?(f.current.lr=!0,pe=Ke,te=-te,fe.points=[lS(ce,1),lS(le,1)]):f.current.lr=!1}ut();var Xe=!0===je?0:je;"number"==typeof Xe&&(ve<q.left&&(pe-=ve-q.left-te,u.x+B<q.left+Xe&&(pe+=u.x-q.left+B-Xe)),be>q.right&&(pe-=be-q.right-te,u.x>q.right-Xe&&(pe+=u.x-q.right+Xe)));var Ye=!0===Me?0:Me;"number"==typeof Ye&&(me<q.top&&(he-=me-q.top-ne,u.y+D<q.top+Ye&&(he+=u.y-q.top+D-Ye)),ge>q.bottom&&(he-=ge-q.bottom-ne,u.y>q.bottom-Ye&&(he+=u.y-q.bottom+Ye)));var Ze=_.x+pe,Qe=Ze+A,Je=_.y+he,et=Je+R,tt=u.x,nt=tt+B,ot=u.y,rt=ot+D,it=(Math.max(Ze,tt)+Math.min(Qe,nt))/2-Ze,at=(Math.max(Je,ot)+Math.min(et,rt))/2-Je;null==a||a(t,fe);var st=X.right-_.x-(pe+_.width),lt=X.bottom-_.y-(he+_.height);c({ready:!0,offsetX:pe/Y,offsetY:he/Z,offsetR:st/Y,offsetB:lt/Z,arrowX:it/Y,arrowY:at/Z,scaleX:Y,scaleY:Z,align:fe})}})),m=function(){c((function(e){return $e($e({},e),{},{ready:!1})}))};return en(m,[o]),en((function(){e||m()}),[e]),[l.ready,l.offsetX,l.offsetY,l.offsetR,l.offsetB,l.arrowX,l.arrowY,l.scaleX,l.scaleY,l.align,function(){u.current+=1;var e=u.current;Promise.resolve().then((function(){u.current===e&&h()}))}]}(Se,ae,B?Le:ue,M,I,N,z),Ve=Ge(He,11),We=Ve[0],Ke=Ve[1],qe=Ve[2],Ue=Ve[3],Xe=Ve[4],Ze=Ve[5],Qe=Ve[6],Je=Ve[7],et=Ve[8],tt=Ve[9],nt=Ve[10],ot=function(e,t,n,o){return p.useMemo((function(){var r=YC(null!=n?n:t),i=YC(null!=o?o:t),a=new Set(r),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,o])}(J,s,l,c),rt=Ge(ot,2),it=rt[0],at=rt[1],st=it.has("click"),lt=at.has("click")||at.has("contextMenu"),ct=nl((function(){Ne||nt()}));!function(e,t,n,o,r){en((function(){if(e&&t&&n){var r=n,i=eS(t),a=eS(r),s=JC(r),l=new Set([s].concat(Ye(i),Ye(a)));function c(){o(),ke.current&&B&&lt&&Pe(!1)}return l.forEach((function(e){e.addEventListener("scroll",c,{passive:!0})})),s.addEventListener("resize",c,{passive:!0}),o(),function(){l.forEach((function(e){e.removeEventListener("scroll",c),s.removeEventListener("resize",c)}))}}}),[e,t,n])}(Se,ue,ae,ct),en((function(){ct()}),[Le,M]),en((function(){!Se||null!=I&&I[M]||ct()}),[JSON.stringify(N)]);var ut=p.useMemo((function(){var e=function(e,t,n,o){for(var r=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s,l=i[a];if(ZC(null===(s=e[l])||void 0===s?void 0:s.points,r,o))return"".concat(t,"-placement-").concat(l)}return""}(I,r,tt,B);return oi()(e,null==A?void 0:A(tt))}),[tt,A,I,r,B]);p.useImperativeHandle(n,(function(){return{nativeElement:fe.current,forceAlign:ct}}));var dt=Ge(p.useState(0),2),ft=dt[0],pt=dt[1],ht=Ge(p.useState(0),2),mt=ht[0],gt=ht[1],vt=function(){if(R&&ue){var e=ue.getBoundingClientRect();pt(e.width),gt(e.height)}};function bt(e,t,n,o){ge[e]=function(r){var i;null==o||o(r),Pe(t,n);for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];null===(i=me[e])||void 0===i||i.call.apply(i,[me,r].concat(s))}}en((function(){Ae&&(nt(),Ae(),De(null))}),[Ae]),(st||lt)&&(ge.onClick=function(e){var t;ke.current&&lt?Pe(!1):!ke.current&&st&&(Fe(e),Pe(!0));for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];null===(t=me.onClick)||void 0===t||t.call.apply(t,[me,e].concat(o))}),function(e,t,n,o,r,i,a,s){var l=p.useRef(e),c=p.useRef(!1);l.current!==e&&(c.current=!0,l.current=e),p.useEffect((function(){var e=na((function(){c.current=!1}));return function(){na.cancel(e)}}),[e]),p.useEffect((function(){if(t&&o&&(!r||i)){var e=function(){var e=!1;return[function(t){var n=t.target;e=a(n)},function(t){var n=t.target;c.current||!l.current||e||a(n)||s(!1)}]},u=Ge(e(),2),d=u[0],f=u[1],p=Ge(e(),2),h=p[0],m=p[1],g=JC(o);g.addEventListener("mousedown",d,!0),g.addEventListener("click",f,!0),g.addEventListener("contextmenu",f,!0);var v=Za(n);return v&&(v.addEventListener("mousedown",h,!0),v.addEventListener("click",m,!0),v.addEventListener("contextmenu",m,!0)),function(){g.removeEventListener("mousedown",d,!0),g.removeEventListener("click",f,!0),g.removeEventListener("contextmenu",f,!0),v&&(v.removeEventListener("mousedown",h,!0),v.removeEventListener("click",m,!0),v.removeEventListener("contextmenu",m,!0))}}}),[t,n,o,r,i])}(Se,lt,ue,ae,x,C,ve,Pe);var yt,xt,wt=it.has("hover"),Ct=at.has("hover");wt&&(bt("onMouseEnter",!0,m,(function(e){Fe(e)})),bt("onPointerEnter",!0,m,(function(e){Fe(e)})),yt=function(e){(Se||Ne)&&null!=ae&&ae.contains(e.target)&&Pe(!0,m)},B&&(ge.onMouseMove=function(e){var t;null===(t=me.onMouseMove)||void 0===t||t.call(me,e)})),Ct&&(bt("onMouseLeave",!1,v),bt("onPointerLeave",!1,v),xt=function(){Pe(!1,v)}),it.has("focus")&&bt("onFocus",!0,b),at.has("focus")&&bt("onBlur",!1,y),it.has("contextMenu")&&(ge.onContextMenu=function(e){var t;ke.current&&at.has("contextMenu")?Pe(!1):(Fe(e),Pe(!0)),e.preventDefault();for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];null===(t=me.onContextMenu)||void 0===t||t.call.apply(t,[me,e].concat(o))}),G&&(ge.className=oi()(me.className,G));var St=$e($e({},me),ge),Et={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){Y[e]&&(Et[e]=function(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];null===(t=St[e])||void 0===t||t.call.apply(t,[St].concat(o)),Y[e].apply(Y,o)})}));var kt=p.cloneElement(he,$e($e({},St),Et)),$t={x:Ze,y:Qe},_t=F?$e({},!0!==F?F:{}):null;return p.createElement(p.Fragment,null,p.createElement(LC,{disabled:!Se,ref:pe,onResize:function(){vt(),ct()}},p.createElement(GC,{getTriggerDOMNode:X},kt)),p.createElement(XC.Provider,{value:oe},p.createElement(qC,{portal:e,ref:le,prefixCls:r,popup:_,className:oi()(O,ut),style:j,target:ue,onMouseEnter:yt,onMouseLeave:xt,onPointerEnter:yt,zIndex:T,open:Se,keepDom:Ne,fresh:D,onClick:L,mask:x,motion:be,maskMotion:ye,onVisibleChanged:function(e){Te(!1),nt(),null==h||h(e)},onPrepare:function(){return new Promise((function(e){vt(),De((function(){return e}))}))},forceRender:E,autoDestroy:Z,getPopupContainer:S,align:tt,arrow:_t,arrowPos:$t,ready:We,offsetX:Ke,offsetY:qe,offsetR:Ue,offsetB:Xe,onAlign:ct,stretch:R,targetWidth:ft/Je,targetHeight:mt/et})))}));return t}(Tu);var dS={shiftX:64,adjustY:1},fS={adjustX:1,shiftY:!0},pS=[0,0],hS={left:{points:["cr","cl"],overflow:fS,offset:[-4,0],targetOffset:pS},right:{points:["cl","cr"],overflow:fS,offset:[4,0],targetOffset:pS},top:{points:["bc","tc"],overflow:dS,offset:[0,-4],targetOffset:pS},bottom:{points:["tc","bc"],overflow:dS,offset:[0,4],targetOffset:pS},topLeft:{points:["bl","tl"],overflow:dS,offset:[0,-4],targetOffset:pS},leftTop:{points:["tr","tl"],overflow:fS,offset:[-4,0],targetOffset:pS},topRight:{points:["br","tr"],overflow:dS,offset:[0,-4],targetOffset:pS},rightTop:{points:["tl","tr"],overflow:fS,offset:[4,0],targetOffset:pS},bottomRight:{points:["tr","br"],overflow:dS,offset:[0,4],targetOffset:pS},rightBottom:{points:["bl","br"],overflow:fS,offset:[4,0],targetOffset:pS},bottomLeft:{points:["tl","bl"],overflow:dS,offset:[0,4],targetOffset:pS},leftBottom:{points:["br","bl"],overflow:fS,offset:[-4,0],targetOffset:pS}},mS=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],gS=function(e,t){var n=e.overlayClassName,o=e.trigger,r=void 0===o?["hover"]:o,i=e.mouseEnterDelay,a=void 0===i?0:i,s=e.mouseLeaveDelay,l=void 0===s?.1:s,c=e.overlayStyle,u=e.prefixCls,d=void 0===u?"rc-tooltip":u,f=e.children,h=e.onVisibleChange,m=e.afterVisibleChange,g=e.transitionName,v=e.animation,b=e.motion,y=e.placement,x=void 0===y?"right":y,w=e.align,C=void 0===w?{}:w,S=e.destroyTooltipOnHide,E=void 0!==S&&S,k=e.defaultVisible,$=e.getTooltipContainer,_=e.overlayInnerStyle,O=(e.arrowContent,e.overlay),j=e.id,M=e.showArrow,P=void 0===M||M,I=di(e,mS),N=(0,p.useRef)(null);(0,p.useImperativeHandle)(t,(function(){return N.current}));var T=$e({},I);return"visible"in e&&(T.popupVisible=e.visible),p.createElement(uS,hn({popupClassName:n,prefixCls:d,popup:function(){return p.createElement(cC,{key:"content",prefixCls:d,id:j,overlayInnerStyle:_},O)},action:r,builtinPlacements:hS,popupPlacement:x,ref:N,popupAlign:C,getPopupContainer:$,onPopupVisibleChange:h,afterPopupVisibleChange:m,popupTransitionName:g,popupAnimation:v,popupMotion:b,defaultPopupVisible:k,autoDestroy:E,mouseLeaveDelay:l,popupStyle:c,mouseEnterDelay:a,arrow:P},T),f)};const vS=(0,p.forwardRef)(gS);function bS(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:o}=e,r=t/2,i=r,a=1*o/Math.sqrt(2),s=r-o*(1-1/Math.sqrt(2)),l=r-n*(1/Math.sqrt(2)),c=o*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),u=2*r-l,d=c,f=2*r-a,p=s,h=2*r-0,m=i,g=r*Math.sqrt(2)+o*(Math.sqrt(2)-2),v=o*(Math.sqrt(2)-1);return{arrowShadowWidth:g,arrowPath:`path('M 0 ${i} A ${o} ${o} 0 0 0 ${a} ${s} L ${l} ${c} A ${n} ${n} 0 0 1 ${u} ${d} L ${f} ${p} A ${o} ${o} 0 0 0 ${h} ${m} Z')`,arrowPolygon:`polygon(${v}px 100%, 50% ${v}px, ${2*r-v}px 100%, ${v}px 100%)`}}const yS=(e,t,n)=>{const{sizePopupArrow:o,arrowPolygon:r,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:o,height:o,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:o,height:l(o).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[r,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${qt(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},xS=8;function wS(e){const{contentRadius:t,limitVerticalRadius:n}=e,o=t>12?t+2:12;return{arrowOffsetHorizontal:o,arrowOffsetVertical:n?xS:o}}function CS(e,t){return e?t:{}}function SS(e,t,n){const{componentCls:o,boxShadowPopoverArrow:r,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[o]:Object.assign(Object.assign(Object.assign(Object.assign({[`${o}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},yS(e,t,r)),{"&:before":{background:t}})]},CS(!!l.top,{[[`&-placement-top > ${o}-arrow`,`&-placement-topLeft > ${o}-arrow`,`&-placement-topRight > ${o}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${o}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${o}-arrow`]:{left:{_skip_check_:!0,value:a}},[`&-placement-topRight > ${o}-arrow`]:{right:{_skip_check_:!0,value:a}}})),CS(!!l.bottom,{[[`&-placement-bottom > ${o}-arrow`,`&-placement-bottomLeft > ${o}-arrow`,`&-placement-bottomRight > ${o}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${o}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft > ${o}-arrow`]:{left:{_skip_check_:!0,value:a}},[`&-placement-bottomRight > ${o}-arrow`]:{right:{_skip_check_:!0,value:a}}})),CS(!!l.left,{[[`&-placement-left > ${o}-arrow`,`&-placement-leftTop > ${o}-arrow`,`&-placement-leftBottom > ${o}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${o}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${o}-arrow`]:{top:i},[`&-placement-leftBottom > ${o}-arrow`]:{bottom:i}})),CS(!!l.right,{[[`&-placement-right > ${o}-arrow`,`&-placement-rightTop > ${o}-arrow`,`&-placement-rightBottom > ${o}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${o}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${o}-arrow`]:{top:i},[`&-placement-rightBottom > ${o}-arrow`]:{bottom:i}}))}}const ES={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"]}},kS={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"]}},$S=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function _S(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:o,offset:r,borderRadius:i,visibleFirst:a}=e,s=t/2,l={};return Object.keys(ES).forEach((e=>{const c=o&&kS[e]||ES[e],u=Object.assign(Object.assign({},c),{offset:[0,0],dynamicInset:!0});switch(l[e]=u,$S.has(e)&&(u.autoArrow=!1),e){case"top":case"topLeft":case"topRight":u.offset[1]=-s-r;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=s+r;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-s-r;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=s+r}const d=wS({contentRadius:i,limitVerticalRadius:!0});if(o)switch(e){case"topLeft":case"bottomLeft":u.offset[0]=-d.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":u.offset[0]=d.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":u.offset[1]=-d.arrowOffsetHorizontal-s;break;case"leftBottom":case"rightBottom":u.offset[1]=d.arrowOffsetHorizontal+s}u.overflow=function(e,t,n,o){if(!1===o)return{adjustX:!1,adjustY:!1};const r=o&&"object"==typeof o?o:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.arrowOffsetHorizontal+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=2*t.arrowOffsetVertical+n,i.shiftX=!0,i.adjustX=!0}const a=Object.assign(Object.assign({},i),r);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,d,t,n),a&&(u.htmlRegion="visibleFirst")})),l}const OS=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:r,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:s,boxShadowSecondary:l,paddingSM:c,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ia(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":r,[`${t}-inner`]:{minWidth:s,minHeight:s,padding:`${qt(e.calc(c).div(2).equal())} ${qt(u)}`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:r,borderRadius:i,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(i,xS)}},[`${t}-content`]:{position:"relative"}}),Ww(e,((e,n)=>{let{darkColor:o}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{"--antd-arrow-background-color":o}}}}))),{"&-rtl":{direction:"rtl"}})},SS(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},jS=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},wS({contentRadius:e.borderRadius,limitVerticalRadius:!0})),bS(Js(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),MS=function(e){const t=hl("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:o}=e,r=Js(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:o});return[OS(r),zf(e,"zoom-big-fast")]}),jS,{resetStyle:!1,injectStyle:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]});return t(e)};function PS(e,t){const n=Vw(t),o=oi()({[`${e}-${t}`]:t&&n}),r={},i={};return t&&!n&&(r.background=t,i["--antd-arrow-background-color"]=t),{className:o,overlayStyle:r,arrowStyle:i}}const IS=p.forwardRef(((e,t)=>{var n,o;const{prefixCls:r,openClassName:i,getTooltipContainer:a,overlayClassName:s,color:l,overlayInnerStyle:c,children:u,afterOpenChange:d,afterVisibleChange:f,destroyTooltipOnHide:h,arrow:m=!0,title:g,overlay:v,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:x=!0}=e,w=!!m,[,C]=Oa(),{getPopupContainer:S,getPrefixCls:E,direction:k}=p.useContext(He),$=Lo(),_=p.useRef(null),O=()=>{var e;null===(e=_.current)||void 0===e||e.forceAlign()};p.useImperativeHandle(t,(()=>({forceAlign:O,forcePopupAlign:()=>{$.deprecated(!1,"forcePopupAlign","forceAlign"),O()}})));const[j,M]=rl(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(o=e.defaultOpen)&&void 0!==o?o:e.defaultVisible}),P=!g&&!v&&0!==g,I=p.useMemo((()=>{var e,t;let n=y;return"object"==typeof m&&(n=null!==(t=null!==(e=m.pointAtCenter)&&void 0!==e?e:m.arrowPointAtCenter)&&void 0!==t?t:y),b||_S({arrowPointAtCenter:n,autoAdjustOverflow:x,arrowWidth:w?C.sizePopupArrow:0,borderRadius:C.borderRadius,offset:C.marginXXS,visibleFirst:!0})}),[y,m,b,C]),N=p.useMemo((()=>0===g?g:v||g||""),[v,g]),T=p.createElement(Cc,null,"function"==typeof N?N():N),{getPopupContainer:R,placement:A="top",mouseEnterDelay:D=.1,mouseLeaveDelay:B=.1,overlayStyle:L,rootClassName:z}=e,F=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),H=E("tooltip",r),V=E(),W=e["data-popover-inject"];let K=j;"open"in e||"visible"in e||!P||(K=!1);const q=tc(u)&&!nc(u)?u:p.createElement("span",null,u),U=q.props,G=U.className&&"string"!=typeof U.className?U.className:oi()(U.className,i||`${H}-open`),[X,Y,Z]=MS(H,!W),Q=PS(H,l),J=Q.arrowStyle,ee=Object.assign(Object.assign({},c),Q.overlayStyle),te=oi()(s,{[`${H}-rtl`]:"rtl"===k},Q.className,z,Y,Z),[ne,oe]=Ys("Tooltip",F.zIndex),re=p.createElement(vS,Object.assign({},F,{zIndex:ne,showArrow:w,placement:A,mouseEnterDelay:D,mouseLeaveDelay:B,prefixCls:H,overlayClassName:te,overlayStyle:Object.assign(Object.assign({},J),L),getTooltipContainer:R||a||S,ref:_,builtinPlacements:I,overlay:T,visible:K,onVisibleChange:t=>{var n,o;M(!P&&t),P||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(o=e.onVisibleChange)||void 0===o||o.call(e,t))},afterVisibleChange:null!=d?d:f,overlayInnerStyle:ee,arrowContent:p.createElement("span",{className:`${H}-arrow-content`}),motion:{motionName:Yl(V,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!h}),K?rc(q,{className:G}):q);return X(p.createElement(Ks.Provider,{value:oe},re))}));IS._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,className:n,placement:o="top",title:r,color:i,overlayInnerStyle:a}=e,{getPrefixCls:s}=p.useContext(He),l=s("tooltip",t),[c,u,d]=MS(l),f=PS(l,i),h=f.arrowStyle,m=Object.assign(Object.assign({},a),f.overlayStyle),g=oi()(u,d,l,`${l}-pure`,`${l}-placement-${o}`,n,f.className);return c(p.createElement("div",{className:g,style:h},p.createElement("div",{className:`${l}-arrow`}),p.createElement(cC,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:m}),r)))};const NS=IS,TS={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"};var RS=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:TS}))};const AS=p.forwardRef(RS),DS=e=>{const{icon:t,description:n,prefixCls:o,className:r}=e,i=h().createElement("div",{className:`${o}-icon`},h().createElement(AS,null));return h().createElement("div",{onClick:e.onClick,onFocus:e.onFocus,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,className:oi()(r,`${o}-content`)},t||n?h().createElement(h().Fragment,null,t&&h().createElement("div",{className:`${o}-icon`},t),n&&h().createElement("div",{className:`${o}-description`},n)):i)},BS=(0,p.memo)(DS),LS=e=>0===e?0:e-Math.sqrt(Math.pow(e,2)/2),zS=e=>{const{componentCls:t,floatButtonSize:n,motionDurationSlow:o,motionEaseInOutCirc:r}=e,i=`${t}-group`,a=new _o("antFloatButtonMoveDownIn",{"0%":{transform:`translate3d(0, ${qt(n)}, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),s=new _o("antFloatButtonMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${qt(n)}, 0)`,transformOrigin:"0 0",opacity:0}});return[{[`${i}-wrap`]:Object.assign({},jf(`${i}-wrap`,a,s,o,!0))},{[`${i}-wrap`]:{[`\n          &${i}-wrap-enter,\n          &${i}-wrap-appear\n        `]:{opacity:0,animationTimingFunction:r},[`&${i}-wrap-leave`]:{animationTimingFunction:r}}}]},FS=e=>{const{antCls:t,componentCls:n,floatButtonSize:o,margin:r,borderRadiusLG:i,borderRadiusSM:a,badgeOffset:s,floatButtonBodyPadding:l,calc:c}=e,u=`${n}-group`;return{[u]:Object.assign(Object.assign({},Ia(e)),{zIndex:99,display:"block",border:"none",position:"fixed",width:o,height:"auto",boxShadow:"none",minHeight:o,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,borderRadius:i,[`${u}-wrap`]:{zIndex:-1,display:"block",position:"relative",marginBottom:r},[`&${u}-rtl`]:{direction:"rtl"},[n]:{position:"static"}}),[`${u}-circle`]:{[`${n}-circle:not(:last-child)`]:{marginBottom:e.margin,[`${n}-body`]:{width:o,height:o,borderRadius:"50%"}}},[`${u}-square`]:{[`${n}-square`]:{borderRadius:0,padding:0,"&:first-child":{borderStartStartRadius:i,borderStartEndRadius:i},"&:last-child":{borderEndStartRadius:i,borderEndEndRadius:i},"&:not(:last-child)":{borderBottom:`${qt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-badge`]:{[`${t}-badge-count`]:{top:c(c(l).add(s)).mul(-1).equal(),insetInlineEnd:c(c(l).add(s)).mul(-1).equal()}}},[`${u}-wrap`]:{display:"block",borderRadius:i,boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",marginTop:0,borderRadius:0,padding:l,"&:first-child":{borderStartStartRadius:i,borderStartEndRadius:i},"&:last-child":{borderEndStartRadius:i,borderEndEndRadius:i},"&:not(:last-child)":{borderBottom:`${qt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize}}}},[`${u}-circle-shadow`]:{boxShadow:"none"},[`${u}-square-shadow`]:{boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",padding:l,[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize,borderRadius:a}}}}},HS=e=>{const{antCls:t,componentCls:n,floatButtonBodyPadding:o,floatButtonIconSize:r,floatButtonSize:i,borderRadiusLG:a,badgeOffset:s,dotOffsetInSquare:l,dotOffsetInCircle:c,calc:u}=e;return{[n]:Object.assign(Object.assign({},Ia(e)),{border:"none",position:"fixed",cursor:"pointer",zIndex:99,display:"block",width:i,height:i,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,boxShadow:e.boxShadowSecondary,"&-pure":{position:"relative",inset:"auto"},"&:empty":{display:"none"},[`${t}-badge`]:{width:"100%",height:"100%",[`${t}-badge-count`]:{transform:"translate(0, 0)",transformOrigin:"center",top:u(s).mul(-1).equal(),insetInlineEnd:u(s).mul(-1).equal()}},[`${n}-body`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",transition:`all ${e.motionDurationMid}`,[`${n}-content`]:{overflow:"hidden",textAlign:"center",minHeight:i,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:`${qt(u(o).div(2).equal())} ${qt(o)}`,[`${n}-icon`]:{textAlign:"center",margin:"auto",width:r,fontSize:r,lineHeight:1}}}}),[`${n}-rtl`]:{direction:"rtl"},[`${n}-circle`]:{height:i,borderRadius:"50%",[`${t}-badge`]:{[`${t}-badge-dot`]:{top:c,insetInlineEnd:c}},[`${n}-body`]:{borderRadius:"50%"}},[`${n}-square`]:{height:"auto",minHeight:i,borderRadius:a,[`${t}-badge`]:{[`${t}-badge-dot`]:{top:l,insetInlineEnd:l}},[`${n}-body`]:{height:"auto",borderRadius:a}},[`${n}-default`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,[`${n}-body`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorFillContent},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorText},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:qt(e.fontSizeLG),color:e.colorText,fontSize:e.fontSizeSM}}}},[`${n}-primary`]:{backgroundColor:e.colorPrimary,[`${n}-body`]:{backgroundColor:e.colorPrimary,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorPrimaryHover},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorTextLightSolid},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:qt(e.fontSizeLG),color:e.colorTextLightSolid,fontSize:e.fontSizeSM}}}}}},VS=hl("FloatButton",(e=>{const{colorTextLightSolid:t,colorBgElevated:n,controlHeightLG:o,marginXXL:r,marginLG:i,fontSize:a,fontSizeIcon:s,controlItemBgHover:l,paddingXXS:c,calc:u}=e,d=Js(e,{floatButtonBackgroundColor:n,floatButtonColor:t,floatButtonHoverBackgroundColor:l,floatButtonFontSize:a,floatButtonIconSize:u(s).mul(1.5).equal(),floatButtonSize:o,floatButtonInsetBlockEnd:r,floatButtonInsetInlineEnd:i,floatButtonBodySize:u(o).sub(u(c).mul(2)).equal(),floatButtonBodyPadding:c,badgeOffset:u(c).mul(1.5).equal()});return[FS(d),HS(d),If(e),zS(d)]}),(e=>({dotOffsetInCircle:LS(e.controlHeightLG/2),dotOffsetInSquare:LS(e.borderRadiusLG)})));const WS="float-btn",KS=h().forwardRef(((e,t)=>{const{prefixCls:n,className:o,rootClassName:r,type:i="default",shape:a="circle",icon:s,description:l,tooltip:c,badge:u={}}=e,d=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","className","rootClassName","type","shape","icon","description","tooltip","badge"]),{getPrefixCls:f,direction:m}=(0,p.useContext)(He),g=(0,p.useContext)(zw),v=f(WS,n),b=Ws(v),[y,x,w]=VS(v,b),C=g||a,S=oi()(x,w,b,v,o,r,`${v}-${i}`,`${v}-${C}`,{[`${v}-rtl`]:"rtl"===m}),E=(0,p.useMemo)((()=>Jl(u,["title","children","status","text"])),[u]),k=(0,p.useMemo)((()=>({prefixCls:v,description:l,icon:s,type:i})),[v,l,s,i]);let $=h().createElement("div",{className:`${v}-body`},h().createElement(BS,Object.assign({},k)));return"badge"in e&&($=h().createElement(lC,Object.assign({},E),$)),"tooltip"in e&&($=h().createElement(NS,{title:c,placement:"rtl"===m?"right":"left"},$)),y(e.href?h().createElement("a",Object.assign({ref:t},d,{className:S}),$):h().createElement("button",Object.assign({ref:t},d,{className:S,type:"button"}),$))})),qS=KS;const US=h().forwardRef(((e,t)=>{const{prefixCls:n,className:o,type:r="default",shape:i="circle",visibilityHeight:a=400,icon:s=h().createElement(Tw,null),target:l,onClick:c,duration:u=450}=e,d=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","className","type","shape","visibilityHeight","icon","target","onClick","duration"]),[f,m]=(0,p.useState)(0===a),g=h().useRef(null);h().useImperativeHandle(t,(()=>({nativeElement:g.current})));const v=()=>g.current&&g.current.ownerDocument?g.current.ownerDocument:window,b=function(e){let t;const n=function(){if(null==t){for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];t=na((n=>()=>{t=null,e.apply(void 0,Ye(n))})(o))}};return n.cancel=()=>{na.cancel(t),t=null},n}((e=>{const t=Aw(e.target,!0);m(t>=a)}));(0,p.useEffect)((()=>{const e=(l||v)();return b({target:e}),null==e||e.addEventListener("scroll",b),()=>{b.cancel(),null==e||e.removeEventListener("scroll",b)}}),[l]);const y=e=>{Dw(0,{getContainer:l||v,duration:u}),null==c||c(e)},{getPrefixCls:x}=(0,p.useContext)(He),w=x(WS,n),C=x(),S=(0,p.useContext)(zw)||i,E=Object.assign({prefixCls:w,icon:s,type:r,shape:S},d);return h().createElement(va,{visible:f,motionName:`${C}-fade`},(e=>{let{className:t}=e;return h().createElement(qS,Object.assign({ref:g},E,{onClick:y,className:oi()(o,t)}))}))})),GS=US;const XS=e=>{const{prefixCls:t,className:n,style:o,shape:r="circle",type:i="default",icon:a=h().createElement(AS,null),closeIcon:s=h().createElement(ws,null),description:l,trigger:c,children:u,onOpenChange:d,open:f}=e,m=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","className","style","shape","type","icon","closeIcon","description","trigger","children","onOpenChange","open"]),{direction:g,getPrefixCls:v}=(0,p.useContext)(He),b=v(WS,t),y=Ws(b),[x,w,C]=VS(b,y),S=`${b}-group`,E=oi()(S,w,C,y,n,{[`${S}-rtl`]:"rtl"===g,[`${S}-${r}`]:r,[`${S}-${r}-shadow`]:!c}),k=oi()(w,`${S}-wrap`),[$,_]=rl(!1,{value:f}),O=h().useRef(null),j=h().useRef(null),M=h().useMemo((()=>"hover"===c?{onMouseEnter(){_(!0),null==d||d(!0)},onMouseLeave(){_(!1),null==d||d(!1)}}:{}),[c]),P=(0,p.useCallback)((e=>{var t,n;(null===(t=O.current)||void 0===t?void 0:t.contains(e.target))?(null===(n=j.current)||void 0===n?void 0:n.contains(e.target))&&_((e=>(null==d||d(!e),!e))):(_(!1),null==d||d(!1))}),[c]);return(0,p.useEffect)((()=>{if("click"===c)return document.addEventListener("click",P),()=>{document.removeEventListener("click",P)}}),[c]),x(h().createElement(Lw,{value:r},h().createElement("div",Object.assign({ref:O,className:E,style:o},M),c&&["click","hover"].includes(c)?h().createElement(h().Fragment,null,h().createElement(va,{visible:$,motionName:`${S}-wrap`},(e=>{let{className:t}=e;return h().createElement("div",{className:oi()(t,k)},u)})),h().createElement(qS,Object.assign({ref:j,type:i,shape:r,icon:$?s:a,description:l,"aria-label":e["aria-label"]},m))):u)))},YS=(0,p.memo)(XS);var ZS=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const QS=e=>{var{backTop:t}=e,n=ZS(e,["backTop"]);return t?p.createElement(GS,Object.assign({},n,{visibilityHeight:0})):p.createElement(qS,Object.assign({},n))};qS.BackTop=GS,qS.Group=YS,qS._InternalPanelDoNotUseOrYouWillBeFired=e=>{var{className:t,items:n}=e,o=ZS(e,["className","items"]);const{prefixCls:r}=o,{getPrefixCls:i}=p.useContext(He),a=`${i(WS,r)}-pure`;return n?p.createElement(YS,Object.assign({className:oi()(t,a)},o),n.map(((e,t)=>p.createElement(QS,Object.assign({key:t},e))))):p.createElement(QS,Object.assign({className:oi()(t,a)},o))};const JS=qS,eE=window.NotificationsMasterConfig||{adminUrl:"",ajaxUrl:"",assetsUrl:"",nonce:"",parentPageSlug:"",postTypes:[],taxonomies:[],commentTypes:[],totalNotifications:0,triggersGroups:{},integrations:{},ntfmSiteUrl:"",isPro:!1,userRoles:{},subscriptionCount:0},tE=window.wp.url,nE={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"};var oE=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:nE}))};const rE=p.forwardRef(oE),iE={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"};var aE=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:iE}))};const sE=p.forwardRef(aE),lE={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"};var cE=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:lE}))};const uE=p.forwardRef(cE);var dE=n(965),fE=n.n(dE),pE=function(e){if(Qe()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some((function(e){return e in n.style}))}return!1},hE=function(e,t){if(!pE(e))return!1;var n=document.createElement("div"),o=n.style[e];return n.style[e]=t,n.style[e]!==o};function mE(e,t){return Array.isArray(e)||void 0===t?pE(e):hE(e,t)}const gE={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},vE=p.forwardRef(((e,t)=>{const{style:n,noStyle:o,disabled:r}=e,i=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["style","noStyle","disabled"]);let a={};return o||(a=Object.assign({},gE)),r&&(a.pointerEvents="none"),a=Object.assign(Object.assign({},a),n),p.createElement("div",Object.assign({role:"button",tabIndex:0,ref:t},i,{onKeyDown:e=>{const{keyCode:t}=e;t===Is.ENTER&&e.preventDefault()},onKeyUp:t=>{const{keyCode:n}=t,{onClick:o}=e;n===Is.ENTER&&o&&o()},style:a}))})),bE=vE,yE={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"};var xE=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:yE}))};const wE=p.forwardRef(xE);function CE(e,t,n,o){if(n){var r=t;if("click"===t.type){var i=e.cloneNode(!0);return r=Object.create(t,{target:{value:i},currentTarget:{value:i}}),i.value="",void n(r)}if("file"!==e.type&&void 0!==o){var a=e.cloneNode(!0);return r=Object.create(t,{target:{value:a},currentTarget:{value:a}}),a.value=o,void n(r)}n(r)}}function SE(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var o=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}const EE=function(e){var t,n,o=e.inputElement,r=e.children,i=e.prefixCls,a=e.prefix,s=e.suffix,l=e.addonBefore,c=e.addonAfter,u=e.className,d=e.style,f=e.disabled,m=e.readOnly,g=e.focused,v=e.triggerFocus,b=e.allowClear,y=e.value,x=e.handleReset,w=e.hidden,C=e.classes,S=e.classNames,E=e.dataAttrs,k=e.styles,$=e.components,_=null!=r?r:o,O=(null==$?void 0:$.affixWrapper)||"span",j=(null==$?void 0:$.groupWrapper)||"span",M=(null==$?void 0:$.wrapper)||"span",P=(null==$?void 0:$.groupAddon)||"span",I=(0,p.useRef)(null),N=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e),T=(0,p.cloneElement)(_,{value:y,className:oi()(_.props.className,!N&&(null==S?void 0:S.variant))||null});if(N){var R,A=null;if(b){var D,B=!f&&!m&&y,L="".concat(i,"-clear-icon"),z="object"===ye(b)&&null!=b&&b.clearIcon?b.clearIcon:"✖";A=h().createElement("span",{onClick:x,onMouseDown:function(e){return e.preventDefault()},className:oi()(L,(D={},Ee(D,"".concat(L,"-hidden"),!B),Ee(D,"".concat(L,"-has-suffix"),!!s),D)),role:"button",tabIndex:-1},z)}var F="".concat(i,"-affix-wrapper"),H=oi()(F,(Ee(R={},"".concat(i,"-disabled"),f),Ee(R,"".concat(F,"-disabled"),f),Ee(R,"".concat(F,"-focused"),g),Ee(R,"".concat(F,"-readonly"),m),Ee(R,"".concat(F,"-input-with-clear-btn"),s&&b&&y),R),null==C?void 0:C.affixWrapper,null==S?void 0:S.affixWrapper,null==S?void 0:S.variant),V=(s||b)&&h().createElement("span",{className:oi()("".concat(i,"-suffix"),null==S?void 0:S.suffix),style:null==k?void 0:k.suffix},A,s);T=h().createElement(O,hn({className:H,style:null==k?void 0:k.affixWrapper,onClick:function(e){var t;null!==(t=I.current)&&void 0!==t&&t.contains(e.target)&&(null==v||v())}},null==E?void 0:E.affixWrapper,{ref:I}),a&&h().createElement("span",{className:oi()("".concat(i,"-prefix"),null==S?void 0:S.prefix),style:null==k?void 0:k.prefix},a),T,V)}if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(e)){var W="".concat(i,"-group"),K="".concat(W,"-addon"),q="".concat(W,"-wrapper"),U=oi()("".concat(i,"-wrapper"),W,null==C?void 0:C.wrapper,null==S?void 0:S.wrapper),G=oi()(q,Ee({},"".concat(q,"-disabled"),f),null==C?void 0:C.group,null==S?void 0:S.groupWrapper);T=h().createElement(j,{className:G},h().createElement(M,{className:U},l&&h().createElement(P,{className:K},l),T,c&&h().createElement(P,{className:K},c)))}return h().cloneElement(T,{className:oi()(null===(t=T.props)||void 0===t?void 0:t.className,u)||null,style:$e($e({},null===(n=T.props)||void 0===n?void 0:n.style),d),hidden:w})};var kE=["show"];function $E(e,t){return p.useMemo((function(){var n={};t&&(n.show="object"===ye(t)&&t.formatter?t.formatter:!!t);var o=n=$e($e({},n),e),r=o.show,i=di(o,kE);return $e($e({},i),{},{show:!!r,showFormatter:"function"==typeof r?r:void 0,strategy:i.strategy||function(e){return e.length}})}),[e,t])}var _E=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],OE=(0,p.forwardRef)((function(e,t){var n=e.autoComplete,o=e.onChange,r=e.onFocus,i=e.onBlur,a=e.onPressEnter,s=e.onKeyDown,l=e.prefixCls,c=void 0===l?"rc-input":l,u=e.disabled,d=e.htmlSize,f=e.className,m=e.maxLength,g=e.suffix,v=e.showCount,b=e.count,y=e.type,x=void 0===y?"text":y,w=e.classes,C=e.classNames,S=e.styles,E=e.onCompositionStart,k=e.onCompositionEnd,$=di(e,_E),_=Ge((0,p.useState)(!1),2),O=_[0],j=_[1],M=(0,p.useRef)(!1),P=(0,p.useRef)(null),I=function(e){P.current&&SE(P.current,e)},N=Ge(rl(e.defaultValue,{value:e.value}),2),T=N[0],R=N[1],A=null==T?"":String(T),D=Ge((0,p.useState)(null),2),B=D[0],L=D[1],z=$E(b,v),F=z.max||m,H=z.strategy(A),V=!!F&&H>F;(0,p.useImperativeHandle)(t,(function(){return{focus:I,blur:function(){var e;null===(e=P.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var o;null===(o=P.current)||void 0===o||o.setSelectionRange(e,t,n)},select:function(){var e;null===(e=P.current)||void 0===e||e.select()},input:P.current}})),(0,p.useEffect)((function(){j((function(e){return(!e||!u)&&e}))}),[u]);var W=function(e,t,n){var r,i,a=t;if(!M.current&&z.exceedFormatter&&z.max&&z.strategy(t)>z.max)t!==(a=z.exceedFormatter(t,{max:z.max}))&&L([(null===(r=P.current)||void 0===r?void 0:r.selectionStart)||0,(null===(i=P.current)||void 0===i?void 0:i.selectionEnd)||0]);else if("compositionEnd"===n.source)return;R(a),P.current&&CE(P.current,e,o,a)};(0,p.useEffect)((function(){var e;B&&(null===(e=P.current)||void 0===e||e.setSelectionRange.apply(e,Ye(B)))}),[B]);var K,q=V&&"".concat(c,"-out-of-range");return h().createElement(EE,hn({},$,{prefixCls:c,className:oi()(f,q),handleReset:function(e){R(""),I(),P.current&&CE(P.current,e,o)},value:A,focused:O,triggerFocus:I,suffix:function(){var e=Number(F)>0;if(g||z.show){var t=z.showFormatter?z.showFormatter({value:A,count:H,maxLength:F}):"".concat(H).concat(e?" / ".concat(F):"");return h().createElement(h().Fragment,null,z.show&&h().createElement("span",{className:oi()("".concat(c,"-show-count-suffix"),Ee({},"".concat(c,"-show-count-has-suffix"),!!g),null==C?void 0:C.count),style:$e({},null==S?void 0:S.count)},t),g)}return null}(),disabled:u,classes:w,classNames:C,styles:S}),(K=Jl(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]),h().createElement("input",hn({autoComplete:n},K,{onChange:function(e){W(e,e.target.value,{source:"change"})},onFocus:function(e){j(!0),null==r||r(e)},onBlur:function(e){j(!1),null==i||i(e)},onKeyDown:function(e){a&&"Enter"===e.key&&a(e),null==s||s(e)},className:oi()(c,Ee({},"".concat(c,"-disabled"),u),null==C?void 0:C.input),style:null==S?void 0:S.input,ref:P,size:d,type:x,onCompositionStart:function(e){M.current=!0,null==E||E(e)},onCompositionEnd:function(e){M.current=!1,W(e,e.currentTarget.value,{source:"compositionEnd"}),null==k||k(e)}}))))}));const jE=OE;var ME,PE=["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"],IE={};var NE=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],TE=p.forwardRef((function(e,t){var n=e,o=n.prefixCls,r=(n.onPressEnter,n.defaultValue),i=n.value,a=n.autoSize,s=n.onResize,l=n.className,c=n.style,u=n.disabled,d=n.onChange,f=(n.onInternalAutoSize,di(n,NE)),h=Ge(rl(r,{value:i,postState:function(e){return null!=e?e:""}}),2),m=h[0],g=h[1],v=p.useRef();p.useImperativeHandle(t,(function(){return{textArea:v.current}}));var b=Ge(p.useMemo((function(){return a&&"object"===ye(a)?[a.minRows,a.maxRows]:[]}),[a]),2),y=b[0],x=b[1],w=!!a,C=Ge(p.useState(2),2),S=C[0],E=C[1],k=Ge(p.useState(),2),$=k[0],_=k[1],O=function(){E(0)};en((function(){w&&O()}),[i,y,x,w]),en((function(){if(0===S)E(1);else if(1===S){var e=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;ME||((ME=document.createElement("textarea")).setAttribute("tab-index","-1"),ME.setAttribute("aria-hidden","true"),document.body.appendChild(ME)),e.getAttribute("wrap")?ME.setAttribute("wrap",e.getAttribute("wrap")):ME.removeAttribute("wrap");var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&IE[n])return IE[n];var o=window.getComputedStyle(e),r=o.getPropertyValue("box-sizing")||o.getPropertyValue("-moz-box-sizing")||o.getPropertyValue("-webkit-box-sizing"),i=parseFloat(o.getPropertyValue("padding-bottom"))+parseFloat(o.getPropertyValue("padding-top")),a=parseFloat(o.getPropertyValue("border-bottom-width"))+parseFloat(o.getPropertyValue("border-top-width")),s={sizingStyle:PE.map((function(e){return"".concat(e,":").concat(o.getPropertyValue(e))})).join(";"),paddingSize:i,borderSize:a,boxSizing:r};return t&&n&&(IE[n]=s),s}(e,t),i=r.paddingSize,a=r.borderSize,s=r.boxSizing,l=r.sizingStyle;ME.setAttribute("style","".concat(l,";").concat("\n  min-height:0 !important;\n  max-height:none !important;\n  height:0 !important;\n  visibility:hidden !important;\n  overflow:hidden !important;\n  position:absolute !important;\n  z-index:-1000 !important;\n  top:0 !important;\n  right:0 !important;\n  pointer-events: none !important;\n")),ME.value=e.value||e.placeholder||"";var c,u=void 0,d=void 0,f=ME.scrollHeight;if("border-box"===s?f+=a:"content-box"===s&&(f-=i),null!==n||null!==o){ME.value=" ";var p=ME.scrollHeight-i;null!==n&&(u=p*n,"border-box"===s&&(u=u+i+a),f=Math.max(u,f)),null!==o&&(d=p*o,"border-box"===s&&(d=d+i+a),c=f>d?"":"hidden",f=Math.min(d,f))}var h={height:f,overflowY:c,resize:"none"};return u&&(h.minHeight=u),d&&(h.maxHeight=d),h}(v.current,!1,y,x);E(2),_(e)}else!function(){try{if(document.activeElement===v.current){var e=v.current,t=e.selectionStart,n=e.selectionEnd,o=e.scrollTop;v.current.setSelectionRange(t,n),v.current.scrollTop=o}}catch(e){}}()}),[S]);var j=p.useRef(),M=function(){na.cancel(j.current)};p.useEffect((function(){return M}),[]);var P=w?$:null,I=$e($e({},c),P);return 0!==S&&1!==S||(I.overflowY="hidden",I.overflowX="hidden"),p.createElement(LC,{onResize:function(e){2===S&&(null==s||s(e),a&&(M(),j.current=na((function(){O()}))))},disabled:!(a||s)},p.createElement("textarea",hn({},f,{ref:v,style:I,className:oi()(o,l,Ee({},"".concat(o,"-disabled"),u)),disabled:u,value:m,onChange:function(e){g(e.target.value),null==d||d(e)}})))}));const RE=TE;var AE=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],DE=h().forwardRef((function(e,t){var n,o,r=e.defaultValue,i=e.value,a=e.onFocus,s=e.onBlur,l=e.onChange,c=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,m=e.suffix,g=e.prefixCls,v=void 0===g?"rc-textarea":g,b=e.showCount,y=e.count,x=e.className,w=e.style,C=e.disabled,S=e.hidden,E=e.classNames,k=e.styles,$=e.onResize,_=di(e,AE),O=Ge(rl(r,{value:i,defaultValue:r}),2),j=O[0],M=O[1],P=null==j?"":String(j),I=Ge(h().useState(!1),2),N=I[0],T=I[1],R=h().useRef(!1),A=Ge(h().useState(null),2),D=A[0],B=A[1],L=(0,p.useRef)(null),z=function(){var e;return null===(e=L.current)||void 0===e?void 0:e.textArea},F=function(){z().focus()};(0,p.useImperativeHandle)(t,(function(){return{resizableTextArea:L.current,focus:F,blur:function(){z().blur()}}})),(0,p.useEffect)((function(){T((function(e){return!C&&e}))}),[C]);var H=Ge(h().useState(null),2),V=H[0],W=H[1];h().useEffect((function(){var e;V&&(e=z()).setSelectionRange.apply(e,Ye(V))}),[V]);var K,q=$E(y,b),U=null!==(n=q.max)&&void 0!==n?n:u,G=Number(U)>0,X=q.strategy(P),Y=!!U&&X>U,Z=function(e,t){var n=t;!R.current&&q.exceedFormatter&&q.max&&q.strategy(t)>q.max&&t!==(n=q.exceedFormatter(t,{max:q.max}))&&W([z().selectionStart||0,z().selectionEnd||0]),M(n),CE(e.currentTarget,e,l,n)},Q=m;q.show&&(K=q.showFormatter?q.showFormatter({value:P,count:X,maxLength:U}):"".concat(X).concat(G?" / ".concat(U):""),Q=h().createElement(h().Fragment,null,Q,h().createElement("span",{className:oi()("".concat(v,"-data-count"),null==E?void 0:E.count),style:null==k?void 0:k.count},K)));var J=!_.autoSize&&!b&&!c;return h().createElement(EE,{value:P,allowClear:c,handleReset:function(e){M(""),F(),CE(z(),e,l)},suffix:Q,prefixCls:v,classNames:$e($e({},E),{},{affixWrapper:oi()(null==E?void 0:E.affixWrapper,(o={},Ee(o,"".concat(v,"-show-count"),b),Ee(o,"".concat(v,"-textarea-allow-clear"),c),o))}),disabled:C,focused:N,className:oi()(x,Y&&"".concat(v,"-out-of-range")),style:$e($e({},w),D&&!J?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof K?K:void 0}},hidden:S},h().createElement(RE,hn({},_,{maxLength:u,onKeyDown:function(e){var t=_.onPressEnter,n=_.onKeyDown;"Enter"===e.key&&t&&t(e),null==n||n(e)},onChange:function(e){Z(e,e.target.value)},onFocus:function(e){T(!0),null==a||a(e)},onBlur:function(e){T(!1),null==s||s(e)},onCompositionStart:function(e){R.current=!0,null==d||d(e)},onCompositionEnd:function(e){R.current=!1,Z(e,e.currentTarget.value),null==f||f(e)},className:oi()(null==E?void 0:E.textarea),style:$e($e({},null==k?void 0:k.textarea),{},{resize:null==w?void 0:w.resize}),disabled:C,prefixCls:v,onResize:function(e){var t;null==$||$(e),null!==(t=z())&&void 0!==t&&t.style.height&&B(!0)},ref:L})))}));const BE=DE;function LE(e,t,n){return oi()({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}const zE=(e,t)=>t||e;function FE(e,t){const n=(0,p.useRef)([]),o=()=>{n.current.push(setTimeout((()=>{var t,n,o,r;(null===(t=e.current)||void 0===t?void 0:t.input)&&"password"===(null===(n=e.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(o=e.current)||void 0===o?void 0:o.input.hasAttribute("value"))&&(null===(r=e.current)||void 0===r||r.input.removeAttribute("value"))})))};return(0,p.useEffect)((()=>(t&&o(),()=>n.current.forEach((e=>{e&&clearTimeout(e)})))),[]),o}function HE(e){return Js(e,{inputAffixPadding:e.paddingXXS})}const VE=e=>{const{controlHeight:t,fontSize:n,lineHeight:o,lineWidth:r,controlHeightSM:i,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:h,controlOutlineWidth:m,controlOutline:g,colorErrorOutline:v,colorWarningOutline:b,colorBgContainer:y}=e;return{paddingBlock:Math.max(Math.round((t-n*o)/2*10)/10-r,0),paddingBlockSM:Math.max(Math.round((i-n*o)/2*10)/10-r,0),paddingBlockLG:Math.ceil((a-s*l)/2*10)/10-r,paddingInline:c-r,paddingInlineSM:u-r,paddingInlineLG:d-r,addonBg:f,activeBorderColor:h,hoverBorderColor:p,activeShadow:`0 0 0 ${m}px ${g}`,errorActiveShadow:`0 0 0 ${m}px ${v}`,warningActiveShadow:`0 0 0 ${m}px ${b}`,hoverBg:y,activeBg:y,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},WE=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),KE=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},WE(Js(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),qE=(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}}),UE=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},qE(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),GE=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},qE(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},KE(e))}),UE(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),UE(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),XE=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),YE=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${qt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},XE(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),XE(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},KE(e))}})}),ZE=(e,t)=>({"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled}},t)}),QE=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null==t?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),JE=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},QE(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),ek=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},QE(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},KE(e))}),JE(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),JE(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),tk=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),nk=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${qt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${qt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},tk(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),tk(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:`${qt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${qt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${qt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${qt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${qt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${qt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),ok=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),rk=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:o,paddingInlineLG:r}=e;return{padding:`${qt(t)} ${qt(r)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:o}},ik=e=>({padding:`${qt(e.paddingBlockSM)} ${qt(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),ak=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${qt(e.paddingBlock)} ${qt(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},ok(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},rk(e)),"&-sm":Object.assign({},ik(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),sk=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({},rk(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},ik(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 ${qt(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${qt(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${qt(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:`${qt(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${qt(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"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`\n        & > ${t}-affix-wrapper,\n        & > ${t}-number-affix-wrapper,\n        & > ${n}-picker-range\n      `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,\n      & > ${n}-select-auto-complete ${t},\n      & > ${n}-cascader-picker ${t},\n      & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n      & > ${n}-select:first-child > ${n}-select-selector,\n      & > ${n}-select-auto-complete:first-child ${t},\n      & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n      & > ${n}-select:last-child > ${n}-select-selector,\n      & > ${n}-cascader-picker:last-child ${t},\n      & > ${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}}}})}},lk=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:o,calc:r}=e,i=r(n).sub(r(o).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ia(e)),ak(e)),GE(e)),ek(e)),ZE(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},ck=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${qt(e.inputAffixPadding)}`}}}},uk=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:o,motionDurationSlow:r,colorIcon:i,colorIconHover:a,iconCls:s}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign({},ak(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0,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:o},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),ck(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${r}`,"&:hover":{color:a}}})}},dk=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:o}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Ia(e)),sk(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:o}}},YE(e)),nk(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}}})})}},fk=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-search`;return{[o]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${o}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal({unit:!1})},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${o}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${o}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${o}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${o}-button`]:{height:e.controlHeightLG},[`&-small ${o}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n        > ${t},\n        ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},pk=e=>{const{componentCls:t,paddingLG:n}=e,o=`${t}-textarea`;return{[o]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${o}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${o}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},hk=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},mk=hl("Input",(e=>{const t=Js(e,HE(e));return[lk(t),pk(t),uk(t),dk(t),fk(t),hk(t),cu(t)]}),VE),gk=["outlined","borderless","filled"],vk=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;const n=(0,p.useContext)(xf);let o;return o=void 0!==e?e:!1===t?"borderless":null!=n?n:"outlined",[o,gk.includes(o)]};const bk=(0,p.forwardRef)(((e,t)=>{var n;const{prefixCls:o,bordered:r=!0,status:i,size:a,disabled:s,onBlur:l,onFocus:c,suffix:u,allowClear:d,addonAfter:f,addonBefore:m,className:g,style:v,styles:b,rootClassName:y,onChange:x,classNames:w,variant:C}=e,S=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:E,direction:k,input:$}=h().useContext(He),_=E("input",o),O=(0,p.useRef)(null),j=Ws(_),[M,P,I]=mk(_,j),{compactSize:N,compactItemClassnames:T}=wc(_,k),R=pc((e=>{var t;return null!==(t=null!=a?a:N)&&void 0!==t?t:e})),A=h().useContext(Xr),D=null!=s?s:A,{status:B,hasFeedback:L,feedbackIcon:z}=(0,p.useContext)(bf),F=zE(B,i),H=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(e)||!!L;(0,p.useRef)(H);const V=FE(O,!0),W=(L||u)&&h().createElement(h().Fragment,null,u,L&&z),K=(e=>{let t;return"object"==typeof e&&(null==e?void 0:e.clearIcon)?t=e:e&&(t={clearIcon:h().createElement(bs,null)}),t})(d),[q,U]=vk(C,r);return M(h().createElement(jE,Object.assign({ref:li(t,O),prefixCls:_,autoComplete:null==$?void 0:$.autoComplete},S,{disabled:D,onBlur:e=>{V(),null==l||l(e)},onFocus:e=>{V(),null==c||c(e)},style:Object.assign(Object.assign({},null==$?void 0:$.style),v),styles:Object.assign(Object.assign({},null==$?void 0:$.styles),b),suffix:W,allowClear:K,className:oi()(g,y,I,j,T,null==$?void 0:$.className),onChange:e=>{V(),null==x||x(e)},addonAfter:f&&h().createElement(Cc,null,h().createElement(yf,{override:!0,status:!0},f)),addonBefore:m&&h().createElement(Cc,null,h().createElement(yf,{override:!0,status:!0},m)),classNames:Object.assign(Object.assign(Object.assign({},w),null==$?void 0:$.classNames),{input:oi()({[`${_}-sm`]:"small"===R,[`${_}-lg`]:"large"===R,[`${_}-rtl`]:"rtl"===k},null==w?void 0:w.input,null===(n=null==$?void 0:$.classNames)||void 0===n?void 0:n.input,P),variant:oi()({[`${_}-${q}`]:U},LE(_,F)),affixWrapper:oi()({[`${_}-affix-wrapper-sm`]:"small"===R,[`${_}-affix-wrapper-lg`]:"large"===R,[`${_}-affix-wrapper-rtl`]:"rtl"===k},P),wrapper:oi()({[`${_}-group-rtl`]:"rtl"===k},P),groupWrapper:oi()({[`${_}-group-wrapper-sm`]:"small"===R,[`${_}-group-wrapper-lg`]:"large"===R,[`${_}-group-wrapper-rtl`]:"rtl"===k,[`${_}-group-wrapper-${q}`]:U},LE(`${_}-group-wrapper`,F,L),P)})})))})),yk=bk;const xk=(0,p.forwardRef)(((e,t)=>{var n;const{prefixCls:o,bordered:r=!0,size:i,disabled:a,status:s,allowClear:l,classNames:c,rootClassName:u,className:d,variant:f}=e,h=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","variant"]),{getPrefixCls:m,direction:g}=p.useContext(He),v=pc(i),b=p.useContext(Xr),y=null!=a?a:b,{status:x,hasFeedback:w,feedbackIcon:C}=p.useContext(bf),S=zE(x,s),E=p.useRef(null);p.useImperativeHandle(t,(()=>{var e;return{resizableTextArea:null===(e=E.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;!function(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const t=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}(null===(n=null===(t=E.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=E.current)||void 0===e?void 0:e.blur()}}}));const k=m("input",o);let $;"object"==typeof l&&(null==l?void 0:l.clearIcon)?$=l:l&&($={clearIcon:p.createElement(bs,null)});const _=Ws(k),[O,j,M]=mk(k,_),[P,I]=vk(f,r);return O(p.createElement(BE,Object.assign({},h,{disabled:y,allowClear:$,className:oi()(M,_,d,u),classNames:Object.assign(Object.assign({},c),{textarea:oi()({[`${k}-sm`]:"small"===v,[`${k}-lg`]:"large"===v},j,null==c?void 0:c.textarea),variant:oi()({[`${k}-${P}`]:I},LE(k,S)),affixWrapper:oi()(`${k}-textarea-affix-wrapper`,{[`${k}-affix-wrapper-rtl`]:"rtl"===g,[`${k}-affix-wrapper-sm`]:"small"===v,[`${k}-affix-wrapper-lg`]:"large"===v,[`${k}-textarea-show-count`]:e.showCount||(null===(n=e.count)||void 0===n?void 0:n.show)},j)}),prefixCls:k,suffix:w&&p.createElement("span",{className:`${k}-textarea-suffix`},C),ref:E})))})),wk=xk,Ck=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),Sk=e=>{const t={};return[1,2,3,4,5].forEach((n=>{t[`\n      h${n}&,\n      div&-h${n},\n      div&-h${n} > textarea,\n      h${n}\n    `]=((e,t,n,o)=>{const{titleMarginBottom:r,fontWeightStrong:i}=o;return{marginBottom:r,color:n,fontWeight:i,fontSize:e,lineHeight:t}})(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)})),t},Ek=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},Ck(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},kk=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:Nr[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),$k=e=>{const{componentCls:t,paddingSM:n}=e,o=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(o).mul(-1).equal(),marginBottom:`calc(1em - ${qt(o)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},_k=e=>({[`${e.componentCls}-copy-success`]:{"\n    &,\n    &:hover,\n    &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),Ok=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n        div&,\n        p\n      ":{marginBottom:"1em"}},Sk(e)),{[`\n      & + h1${t},\n      & + h2${t},\n      & + h3${t},\n      & + h4${t},\n      & + h5${t}\n      `]:{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}}}),kk(e)),Ek(e)),{[`\n        ${t}-expand,\n        ${t}-edit,\n        ${t}-copy\n      `]:Object.assign(Object.assign({},Ck(e)),{marginInlineStart:e.marginXXS})}),$k(e)),_k(e)),{"\n  a&-ellipsis,\n  span&-ellipsis\n  ":{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{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"}}),{"&-rtl":{direction:"rtl"}})}},jk=hl("Typography",(e=>[Ok(e)]),(()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}))),Mk=e=>{const{prefixCls:t,"aria-label":n,className:o,style:r,direction:i,maxLength:a,autoSize:s=!0,value:l,onSave:c,onCancel:u,onEnd:d,component:f,enterIcon:h=p.createElement(wE,null)}=e,m=p.useRef(null),g=p.useRef(!1),v=p.useRef(),[b,y]=p.useState(l);p.useEffect((()=>{y(l)}),[l]),p.useEffect((()=>{if(m.current&&m.current.resizableTextArea){const{textArea:e}=m.current.resizableTextArea;e.focus();const{length:t}=e.value;e.setSelectionRange(t,t)}}),[]);const x=()=>{c(b.trim())},w=f?`${t}-${f}`:"",[C,S,E]=jk(t),k=oi()(t,`${t}-edit-content`,{[`${t}-rtl`]:"rtl"===i},o,w,S,E);return C(p.createElement("div",{className:k,style:r},p.createElement(wk,{ref:m,maxLength:a,value:b,onChange:e=>{let{target:t}=e;y(t.value.replace(/[\n\r]/g,""))},onKeyDown:e=>{let{keyCode:t}=e;g.current||(v.current=t)},onKeyUp:e=>{let{keyCode:t,ctrlKey:n,altKey:o,metaKey:r,shiftKey:i}=e;v.current!==t||g.current||n||o||r||i||(t===Is.ENTER?(x(),null==d||d()):t===Is.ESC&&u())},onCompositionStart:()=>{g.current=!0},onCompositionEnd:()=>{g.current=!1},onBlur:()=>{x()},"aria-label":n,rows:1,autoSize:s}),null!==h?rc(h,{className:`${t}-edit-content-confirm`}):null))};function Pk(e,t){return p.useMemo((()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&"object"==typeof e?e:null)]}),[e])}const Ik=p.forwardRef(((e,t)=>{const{prefixCls:n,component:o="article",className:r,rootClassName:i,setContentRef:a,children:s,direction:l,style:c}=e,u=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:d,direction:f,typography:h}=p.useContext(He),m=null!=l?l:f;let g=t;a&&(g=li(t,a));const v=d("typography",n),[b,y,x]=jk(v),w=oi()(v,null==h?void 0:h.className,{[`${v}-rtl`]:"rtl"===m},r,i,y,x),C=Object.assign(Object.assign({},null==h?void 0:h.style),c);return b(p.createElement(o,Object.assign({className:w,style:C,ref:g},u),s))})),Nk=Ik;function Tk(e){const t=typeof e;return"string"===t||"number"===t}function Rk(e,t){let n=0;const o=[];for(let r=0;r<e.length;r+=1){if(n===t)return o;const i=e[r],a=n+(Tk(i)?String(i).length:1);if(a>t){const e=t-n;return o.push(String(i).slice(0,e)),o}o.push(i),n=a}return e}const Ak=e=>{let{enabledMeasure:t,children:n,text:o,width:r,fontSize:i,rows:a,onEllipsis:s}=e;const[[l,c,u],d]=p.useState([0,0,0]),[f,h]=p.useState(0),[m,g]=p.useState(0),[v,b]=p.useState(0),y=p.useRef(null),x=p.useRef(null),w=p.useMemo((()=>hc(o)),[o]),C=p.useMemo((()=>function(e){let t=0;return e.forEach((e=>{Tk(e)?t+=String(e).length:t+=1})),t}(w)),[w]),S=p.useMemo((()=>t&&3===m?n(Rk(w,c),c<C):f&&4!==m&&t?n(Rk(w,f),f<C):n(w,!1)),[t,m,n,w,c,C]);en((()=>{t&&r&&i&&C&&(g(1),d([0,Math.ceil(C/2),C]))}),[t,r,i,o,C,a]),en((()=>{var e;1===m&&b((null===(e=y.current)||void 0===e?void 0:e.offsetHeight)||0)}),[m]),en((()=>{var e,t;if(v)if(1===m)((null===(e=x.current)||void 0===e?void 0:e.offsetHeight)||0)<=a*v?(g(4),s(!1)):g(2);else if(2===m)if(l!==u){const e=(null===(t=x.current)||void 0===t?void 0:t.offsetHeight)||0;let n=l,o=u;l===u-1?o=l:e<=a*v?n=c:o=c;const r=Math.ceil((n+o)/2);d([n,r,o])}else g(3),h(c),s(!0)}),[m,l,u,a,v]);const E={width:r,whiteSpace:"normal",margin:0,padding:0},k=(e,t,n)=>p.createElement("span",{"aria-hidden":!0,ref:t,style:Object.assign({position:"fixed",display:"block",left:0,top:0,zIndex:-9999,visibility:"hidden",pointerEvents:"none",fontSize:2*Math.ceil(i/2)},n)},e);return p.createElement(p.Fragment,null,S,t&&3!==m&&4!==m&&p.createElement(p.Fragment,null,k("lg",y,{wordBreak:"keep-all",whiteSpace:"nowrap"}),1===m?k(n(w,!1),x,E):((e,t)=>{const o=Rk(w,e);return k(n(o,!0),t,E)})(c,x)))},Dk=e=>{let{enabledEllipsis:t,isEllipsis:n,children:o,tooltipProps:r}=e;return(null==r?void 0:r.title)&&t?p.createElement(NS,Object.assign({open:!!n&&void 0},r),o):o};function Bk(e,t,n){return!0===e||void 0===e?t:e||n&&t}function Lk(e){return!1===e?[!1,!1]:Array.isArray(e)?e:[e]}const zk=p.forwardRef(((e,t)=>{var n,o,r;const{prefixCls:i,className:a,style:s,type:l,disabled:c,children:u,ellipsis:d,editable:f,copyable:h,component:m,title:g}=e,v=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:b,direction:y}=p.useContext(He),[x]=Ql("Text"),w=p.useRef(null),C=p.useRef(null),S=b("typography",i),E=Jl(v,["mark","code","delete","underline","strong","keyboard","italic"]),[k,$]=Pk(f),[_,O]=rl(!1,{value:$.editing}),{triggerType:j=["icon"]}=$,M=e=>{var t;e&&(null===(t=$.onStart)||void 0===t||t.call($)),O(e)};((e,t)=>{const n=p.useRef(!1);p.useEffect((()=>{n.current?e():n.current=!0}),t)})((()=>{var e;_||null===(e=C.current)||void 0===e||e.focus()}),[_]);const P=e=>{null==e||e.preventDefault(),M(!0)},[I,N]=Pk(h),[T,R]=p.useState(!1),A=p.useRef(null),D={};N.format&&(D.format=N.format);const B=()=>{A.current&&clearTimeout(A.current)},L=e=>{var t;null==e||e.preventDefault(),null==e||e.stopPropagation(),fE()(N.text||String(u)||"",D),R(!0),B(),A.current=setTimeout((()=>{R(!1)}),3e3),null===(t=N.onCopy)||void 0===t||t.call(N,e)};p.useEffect((()=>B),[]);const[z,F]=p.useState(!1),[H,V]=p.useState(!1),[W,K]=p.useState(!1),[q,U]=p.useState(!1),[G,X]=p.useState(!1),[Y,Z]=p.useState(!0),[Q,J]=Pk(d,{expandable:!1}),ee=Q&&!W,{rows:te=1}=J,ne=p.useMemo((()=>!ee||void 0!==J.suffix||J.onEllipsis||J.expandable||k||I),[ee,J,k,I]);en((()=>{Q&&!ne&&(F(mE("webkitLineClamp")),V(mE("textOverflow")))}),[ne,Q]);const oe=p.useMemo((()=>!ne&&(1===te?H:z)),[ne,H,z]),re=ee&&(oe?G:q),ie=ee&&1===te&&oe,ae=ee&&te>1&&oe,se=e=>{var t;K(!0),null===(t=J.onExpand)||void 0===t||t.call(J,e)},[le,ce]=p.useState(0),[ue,de]=p.useState(0),fe=e=>{var t;U(e),q!==e&&(null===(t=J.onEllipsis)||void 0===t||t.call(J,e))};p.useEffect((()=>{const e=w.current;if(Q&&oe&&e){const t=ae?e.offsetHeight<e.scrollHeight:e.offsetWidth<e.scrollWidth;G!==t&&X(t)}}),[Q,oe,u,ae,Y,le]),p.useEffect((()=>{const e=w.current;if("undefined"==typeof IntersectionObserver||!e||!oe||!ee)return;const t=new IntersectionObserver((()=>{Z(!!e.offsetParent)}));return t.observe(e),()=>{t.disconnect()}}),[oe,ee]);let pe={};pe=!0===J.tooltip?{title:null!==(n=$.text)&&void 0!==n?n:u}:p.isValidElement(J.tooltip)?{title:J.tooltip}:"object"==typeof J.tooltip?Object.assign({title:null!==(o=$.text)&&void 0!==o?o:u},J.tooltip):{title:J.tooltip};const he=p.useMemo((()=>{const e=e=>["string","number"].includes(typeof e);if(Q&&!oe)return e($.text)?$.text:e(u)?u:e(g)?g:e(pe.title)?pe.title:void 0}),[Q,oe,g,pe.title,re]);if(_)return p.createElement(Mk,{value:null!==(r=$.text)&&void 0!==r?r:"string"==typeof u?u:"",onSave:e=>{var t;null===(t=$.onChange)||void 0===t||t.call($,e),M(!1)},onCancel:()=>{var e;null===(e=$.onCancel)||void 0===e||e.call($),M(!1)},onEnd:$.onEnd,prefixCls:S,className:a,style:s,direction:y,component:m,maxLength:$.maxLength,autoSize:$.autoSize,enterIcon:$.enterIcon});const me=()=>{const{expandable:e,symbol:t}=J;if(!e)return null;let n;return n=t||(null==x?void 0:x.expand),p.createElement("a",{key:"expand",className:`${S}-expand`,onClick:se,"aria-label":null==x?void 0:x.expand},n)},ge=()=>{if(!k)return;const{icon:e,tooltip:t}=$,n=hc(t)[0]||(null==x?void 0:x.edit),o="string"==typeof n?n:"";return j.includes("icon")?p.createElement(NS,{key:"edit",title:!1===t?"":n},p.createElement(bE,{ref:C,className:`${S}-edit`,onClick:P,"aria-label":o},e||p.createElement(uE,{role:"button"}))):null},ve=()=>{if(!I)return null;const{tooltips:e,icon:t}=N,n=Lk(e),o=Lk(t),r=T?Bk(n[1],null==x?void 0:x.copied):Bk(n[0],null==x?void 0:x.copy),i=T?null==x?void 0:x.copied:null==x?void 0:x.copy,a="string"==typeof r?r:i;return p.createElement(NS,{key:"copy",title:r},p.createElement(bE,{className:oi()(`${S}-copy`,{[`${S}-copy-success`]:T,[`${S}-copy-icon-only`]:null==u}),onClick:L,"aria-label":a},T?Bk(o[1],p.createElement(rE,null),!0):Bk(o[0],p.createElement(sE,null),!0)))};return p.createElement(LC,{onResize:(e,t)=>{let{offsetWidth:n}=e;var o;ce(n),de(parseInt(null===(o=window.getComputedStyle)||void 0===o?void 0:o.call(window,t).fontSize,10)||0)},disabled:!ee},(n=>p.createElement(Dk,{tooltipProps:pe,enabledEllipsis:ee,isEllipsis:re},p.createElement(Nk,Object.assign({className:oi()({[`${S}-${l}`]:l,[`${S}-disabled`]:c,[`${S}-ellipsis`]:Q,[`${S}-single-line`]:ee&&1===te,[`${S}-ellipsis-single-line`]:ie,[`${S}-ellipsis-multiple-line`]:ae},a),prefixCls:i,style:Object.assign(Object.assign({},s),{WebkitLineClamp:ae?te:void 0}),component:m,ref:li(n,w,t),direction:y,onClick:j.includes("text")?P:void 0,"aria-label":null==he?void 0:he.toString(),title:g},E),p.createElement(Ak,{enabledMeasure:ee&&!oe,text:u,rows:te,width:le,fontSize:ue,onEllipsis:fe},((t,n)=>{let o=t;t.length&&n&&he&&(o=p.createElement("span",{key:"show-content","aria-hidden":!0},o));const r=function(e,t){let{mark:n,code:o,underline:r,delete:i,strong:a,keyboard:s,italic:l}=e,c=t;function u(e,t){t&&(c=p.createElement(e,{},c))}return u("strong",a),u("u",r),u("del",i),u("code",o),u("mark",n),u("kbd",s),u("i",l),c}(e,p.createElement(p.Fragment,null,o,(e=>{return[e&&p.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),J.suffix,(t=e,[t&&me(),ge(),ve()])];var t})(n)));return r}))))))})),Fk=zk;const Hk=p.forwardRef(((e,t)=>{var{ellipsis:n,rel:o}=e,r=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["ellipsis","rel"]);const i=Object.assign(Object.assign({},r),{rel:void 0===o&&"_blank"===r.target?"noopener noreferrer":o});return delete i.navigate,p.createElement(Fk,Object.assign({},i,{ref:t,ellipsis:!!n,component:"a"}))})),Vk=Hk,Wk=p.forwardRef(((e,t)=>p.createElement(Fk,Object.assign({ref:t},e,{component:"div"}))));const Kk=(e,t)=>{var{ellipsis:n}=e,o=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["ellipsis"]);const r=p.useMemo((()=>n&&"object"==typeof n?Jl(n,["expandable","rows"]):n),[n]);return p.createElement(Fk,Object.assign({ref:t},o,{ellipsis:r,component:"span"}))},qk=p.forwardRef(Kk);const Uk=[1,2,3,4,5],Gk=p.forwardRef(((e,t)=>{const{level:n=1}=e,o=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["level"]);let r;return r=Uk.includes(n)?`h${n}`:"h1",p.createElement(Fk,Object.assign({ref:t},o,{component:r}))})),Xk=Nk;Xk.Text=qk,Xk.Link=Vk,Xk.Title=Gk,Xk.Paragraph=Wk;const Yk=Xk,Zk={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"};var Qk=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:Zk}))};const Jk=p.forwardRef(Qk),e$={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"};var t$=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:e$}))};const n$=p.forwardRef(t$);const o$=e=>e?p.createElement(n$,null):p.createElement(Jk,null),r$={click:"onClick",hover:"onMouseOver"},i$=p.forwardRef(((e,t)=>{const{visibilityToggle:n=!0}=e,o="object"==typeof n&&void 0!==n.visible,[r,i]=(0,p.useState)((()=>!!o&&n.visible)),a=(0,p.useRef)(null);p.useEffect((()=>{o&&i(n.visible)}),[o,n]);const s=FE(a),l=()=>{const{disabled:t}=e;t||(r&&s(),i((e=>{var t;const o=!e;return"object"==typeof n&&(null===(t=n.onVisibleChange)||void 0===t||t.call(n,o)),o})))},{className:c,prefixCls:u,inputPrefixCls:d,size:f}=e,h=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:m}=p.useContext(He),g=m("input",d),v=m("input-password",u),b=n&&(t=>{const{action:n="click",iconRender:o=o$}=e,i=r$[n]||"",a=o(r),s={[i]:l,className:`${t}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return p.cloneElement(p.isValidElement(a)?a:p.createElement("span",null,a),s)})(v),y=oi()(v,c,{[`${v}-${f}`]:!!f}),x=Object.assign(Object.assign({},Jl(h,["suffix","iconRender","visibilityToggle"])),{type:r?"text":"password",className:y,prefixCls:g,suffix:b});return f&&(x.size=f),p.createElement(yk,Object.assign({ref:li(t,a)},x))})),a$=i$,s$={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"};var l$=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:s$}))};const c$=p.forwardRef(l$);const u$=p.forwardRef(((e,t)=>{const{prefixCls:n,inputPrefixCls:o,className:r,size:i,suffix:a,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:d,onChange:f,onCompositionStart:h,onCompositionEnd:m}=e,g=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:v,direction:b}=p.useContext(He),y=p.useRef(!1),x=v("input-search",n),w=v("input",o),{compactSize:C}=wc(x,b),S=pc((e=>{var t;return null!==(t=null!=i?i:C)&&void 0!==t?t:e})),E=p.useRef(null),k=e=>{var t;document.activeElement===(null===(t=E.current)||void 0===t?void 0:t.input)&&e.preventDefault()},$=e=>{var t,n;d&&d(null===(n=null===(t=E.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},_="boolean"==typeof s?p.createElement(c$,null):null,O=`${x}-button`;let j;const M=s||{},P=M.type&&!0===M.type.__ANT_BUTTON;j=P||"button"===M.type?rc(M,Object.assign({onMouseDown:k,onClick:e=>{var t,n;null===(n=null===(t=null==M?void 0:M.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),$(e)},key:"enterButton"},P?{className:O,size:S}:{})):p.createElement(gu,{className:O,type:s?"primary":void 0,size:S,disabled:u,key:"enterButton",onMouseDown:k,onClick:$,loading:c,icon:_},s),l&&(j=[j,rc(l,{key:"addonAfter"})]);const I=oi()(x,{[`${x}-rtl`]:"rtl"===b,[`${x}-${S}`]:!!S,[`${x}-with-button`]:!!s},r);return p.createElement(yk,Object.assign({ref:li(E,t),onPressEnter:e=>{y.current||c||$(e)}},g,{size:S,onCompositionStart:e=>{y.current=!0,null==h||h(e)},onCompositionEnd:e=>{y.current=!1,null==m||m(e)},prefixCls:w,addonAfter:j,suffix:a,onChange:e=>{e&&e.target&&"click"===e.type&&d&&d(e.target.value,e,{source:"clear"}),f&&f(e)},className:I,disabled:u}))})),d$=u$,f$=yk;f$.Group=e=>{const{getPrefixCls:t,direction:n}=(0,p.useContext)(He),{prefixCls:o,className:r}=e,i=t("input-group",o),a=t("input"),[s,l]=mk(a),c=oi()(i,{[`${i}-lg`]:"large"===e.size,[`${i}-sm`]:"small"===e.size,[`${i}-compact`]:e.compact,[`${i}-rtl`]:"rtl"===n},l,r),u=(0,p.useContext)(bf),d=(0,p.useMemo)((()=>Object.assign(Object.assign({},u),{isFormItemInput:!1})),[u]);return s(p.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},p.createElement(bf.Provider,{value:d},e.children)))},f$.Search=d$,f$.TextArea=wk,f$.Password=a$;const p$=f$,h$=e=>e?"function"==typeof e?e():e:null,m$=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:o,fontWeightStrong:r,innerPadding:i,boxShadowSecondary:a,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:c,titleMarginBottom:u,colorBgElevated:d,popoverBg:f,titleBorderBottom:p,innerContentPadding:h,titlePadding:m}=e;return[{[t]:Object.assign(Object.assign({},Ia(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":d,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:f,backgroundClip:"padding-box",borderRadius:l,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:o,marginBottom:u,color:s,fontWeight:r,borderBottom:p,padding:m},[`${t}-inner-content`]:{color:n,padding:h}})},SS(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},g$=e=>{const{componentCls:t}=e;return{[t]:Fw.map((n=>{const o=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":o,[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{background:"transparent"}}}}))}},v$=hl("Popover",(e=>{const{colorBgElevated:t,colorText:n}=e,o=Js(e,{popoverBg:t,popoverColor:n});return[m$(o),g$(o),zf(o,"zoom-big")]}),(e=>{const{lineWidth:t,controlHeight:n,fontHeight:o,padding:r,wireframe:i,zIndexPopupBase:a,borderRadiusLG:s,marginXS:l,lineType:c,colorSplit:u,paddingSM:d}=e,f=n-o,p=f/2,h=f/2-t,m=r;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},bS(e)),wS({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:l,titlePadding:i?`${p}px ${m}px ${h}px`:0,titleBorderBottom:i?`${t}px ${c} ${u}`:"none",innerContentPadding:i?`${d}px ${m}px`:0})}),{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});const b$=e=>{const{hashId:t,prefixCls:n,className:o,style:r,placement:i="top",title:a,content:s,children:l}=e;return p.createElement("div",{className:oi()(t,n,`${n}-pure`,`${n}-placement-${i}`,o),style:r},p.createElement("div",{className:`${n}-arrow`}),p.createElement(cC,Object.assign({},e,{className:t,prefixCls:n}),l||((e,t,n)=>t||n?p.createElement(p.Fragment,null,t&&p.createElement("div",{className:`${e}-title`},h$(t)),p.createElement("div",{className:`${e}-inner-content`},h$(n))):null)(n,a,s)))},y$=e=>{const{prefixCls:t,className:n}=e,o=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","className"]),{getPrefixCls:r}=p.useContext(He),i=r("popover",t),[a,s,l]=v$(i);return a(p.createElement(b$,Object.assign({},o,{prefixCls:i,hashId:s,className:oi()(n,l)})))};const x$=e=>{let{title:t,content:n,prefixCls:o}=e;return p.createElement(p.Fragment,null,t&&p.createElement("div",{className:`${o}-title`},h$(t)),p.createElement("div",{className:`${o}-inner-content`},h$(n)))},w$=p.forwardRef(((e,t)=>{const{prefixCls:n,title:o,content:r,overlayClassName:i,placement:a="top",trigger:s="hover",mouseEnterDelay:l=.1,mouseLeaveDelay:c=.1,overlayStyle:u={}}=e,d=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:f}=p.useContext(He),h=f("popover",n),[m,g,v]=v$(h),b=f(),y=oi()(i,g,v);return m(p.createElement(NS,Object.assign({placement:a,trigger:s,mouseEnterDelay:l,mouseLeaveDelay:c,overlayStyle:u},d,{prefixCls:h,overlayClassName:y,ref:t,overlay:o||r?p.createElement(x$,{prefixCls:h,title:o,content:r}):null,transitionName:Yl(b,"zoom-big",d.transitionName),"data-popover-inject":!0})))}));w$._InternalPanelDoNotUseOrYouWillBeFired=y$;const C$=w$,S$=hl("Popconfirm",(e=>(e=>{const{componentCls:t,iconCls:n,antCls:o,zIndexPopup:r,colorText:i,colorWarning:a,marginXXS:s,marginXS:l,fontSize:c,fontWeightStrong:u,colorTextHeading:d}=e;return{[t]:{zIndex:r,[`&${o}-popover`]:{fontSize:c},[`${t}-message`]:{marginBottom:l,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:a,fontSize:c,lineHeight:1,marginInlineEnd:l},[`${t}-title`]:{fontWeight:u,color:d,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:s,color:i}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:l}}}}})(e)),(e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}}),{resetStyle:!1});const E$=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:o,title:r,description:i,cancelText:a,okText:s,okType:l="primary",icon:c=p.createElement(Es,null),showCancel:u=!0,close:d,onConfirm:f,onCancel:h,onPopupClick:m}=e,{getPrefixCls:g}=p.useContext(He),[v]=Ql("Popconfirm",Ko.Popconfirm),b=h$(r),y=h$(i);return p.createElement("div",{className:`${t}-inner-content`,onClick:m},p.createElement("div",{className:`${t}-message`},c&&p.createElement("span",{className:`${t}-message-icon`},c),p.createElement("div",{className:`${t}-message-text`},b&&p.createElement("div",{className:oi()(`${t}-title`)},b),y&&p.createElement("div",{className:`${t}-description`},y))),p.createElement("div",{className:`${t}-buttons`},u&&p.createElement(gu,Object.assign({onClick:h,size:"small"},o),a||(null==v?void 0:v.cancelText)),p.createElement(bu,{buttonProps:Object.assign(Object.assign({size:"small"},_c(l)),n),actionFn:f,close:d,prefixCls:g("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s||(null==v?void 0:v.okText))))};const k$=p.forwardRef(((e,t)=>{var n,o;const{prefixCls:r,placement:i="top",trigger:a="click",okType:s="primary",icon:l=p.createElement(Es,null),children:c,overlayClassName:u,onOpenChange:d,onVisibleChange:f}=e,h=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:m}=p.useContext(He),[g,v]=rl(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(o=e.defaultOpen)&&void 0!==o?o:e.defaultVisible}),b=(e,t)=>{v(e,!0),null==f||f(e),null==d||d(e,t)},y=m("popconfirm",r),x=oi()(y,u),[w]=S$(y);return w(p.createElement(C$,Object.assign({},Jl(h,["title"]),{trigger:a,placement:i,onOpenChange:t=>{const{disabled:n=!1}=e;n||b(t)},open:g,ref:t,overlayClassName:x,content:p.createElement(E$,Object.assign({okType:s,icon:l},e,{prefixCls:y,close:e=>{b(!1,e)},onConfirm:t=>{var n;return null===(n=e.onConfirm)||void 0===n?void 0:n.call(void 0,t)},onCancel:t=>{var n;b(!1,t),null===(n=e.onCancel)||void 0===n||n.call(void 0,t)}})),"data-popover-inject":!0}),rc(c,{onKeyDown:e=>{var t,n;p.isValidElement(c)&&(null===(n=null==c?void 0:(t=c.props).onKeyDown)||void 0===n||n.call(t,e)),(e=>{e.keyCode===Is.ESC&&g&&b(!1,e)})(e)}})))}));k$._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,placement:n,className:o,style:r}=e,i=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","placement","className","style"]),{getPrefixCls:a}=p.useContext(He),s=a("popconfirm",t),[l]=S$(s);return l(p.createElement(y$,{placement:n,className:oi()(s,o),style:r,content:p.createElement(E$,Object.assign({prefixCls:s},i))}))};const $$=k$,_$={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"};var O$=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:_$}))};const j$=p.forwardRef(O$);var M$=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"],P$=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}();function I$(e){return function(t){t.root||(t=t.return)&&e(t)}}var N$=function(e,t,n){for(var o=0,r=0;o=r,r=Xn(),38===o&&12===r&&(t[n]=1),!Qn(r);)Gn();return Zn(e,Hn)},T$=new WeakMap,R$=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||T$.get(n))&&!o){T$.set(e,!0);for(var r=[],i=function(e,t){return eo(function(e,t){var n=-1,o=44;do{switch(Qn(o)){case 0:38===o&&12===Xn()&&(t[n]=1),e[n]+=N$(Hn-1,t,n);break;case 2:e[n]+=to(o);break;case 4:if(44===o){e[++n]=58===Xn()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=$n(o)}}while(o=Gn());return e}(Jn(e),t))}(t,r),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=r[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},A$=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function D$(e,t){switch(function(e,t){return 45^In(e,0)?(((t<<2^In(e,0))<<2^In(e,1))<<2^In(e,2))<<2^In(e,3):0}(e,t)){case 5103:return bn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return bn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return bn+e+vn+e+gn+e+e;case 6828:case 4268:return bn+e+gn+e+e;case 6165:return bn+e+gn+"flex-"+e+e;case 5187:return bn+e+Mn(e,/(\w+).+(:[^]+)/,bn+"box-$1$2"+gn+"flex-$1$2")+e;case 5443:return bn+e+gn+"flex-item-"+Mn(e,/flex-|-self/,"")+e;case 4675:return bn+e+gn+"flex-line-pack"+Mn(e,/align-content|flex-|-self/,"")+e;case 5548:return bn+e+gn+Mn(e,"shrink","negative")+e;case 5292:return bn+e+gn+Mn(e,"basis","preferred-size")+e;case 6060:return bn+"box-"+Mn(e,"-grow","")+bn+e+gn+Mn(e,"grow","positive")+e;case 4554:return bn+Mn(e,/([^-])(transform)/g,"$1"+bn+"$2")+e;case 6187:return Mn(Mn(Mn(e,/(zoom-|grab)/,bn+"$1"),/(image-set)/,bn+"$1"),e,"")+e;case 5495:case 3959:return Mn(e,/(image-set\([^]*)/,bn+"$1$`$1");case 4968:return Mn(Mn(e,/(.+:)(flex-)?(.*)/,bn+"box-pack:$3"+gn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+bn+e+e;case 4095:case 3583:case 4068:case 2532:return Mn(e,/(.+)-inline(.+)/,bn+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Tn(e)-1-t>6)switch(In(e,t+1)){case 109:if(45!==In(e,t+4))break;case 102:return Mn(e,/(.+:)(.+)-([^]+)/,"$1"+bn+"$2-$3$1"+vn+(108==In(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Pn(e,"stretch")?D$(Mn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==In(e,t+1))break;case 6444:switch(In(e,Tn(e)-3-(~Pn(e,"!important")&&10))){case 107:return Mn(e,":",":"+bn)+e;case 101:return Mn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+bn+(45===In(e,14)?"inline-":"")+"box$3$1"+bn+"$2$3$1"+gn+"$2box$3")+e}break;case 5936:switch(In(e,t+11)){case 114:return bn+e+gn+Mn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return bn+e+gn+Mn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return bn+e+gn+Mn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return bn+e+gn+e+e}return e}var B$=[function(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case wn:e.return=D$(e.value,e.length);break;case Sn:return Dn([qn(e,{value:Mn(e.value,"@","@"+bn)})],o);case xn:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return Dn([qn(e,{props:[Mn(t,/:(read-\w+)/,":-moz-$1")]})],o);case"::placeholder":return Dn([qn(e,{props:[Mn(t,/:(plac\w+)/,":"+bn+"input-$1")]}),qn(e,{props:[Mn(t,/:(plac\w+)/,":-moz-$1")]}),qn(e,{props:[Mn(t,/:(plac\w+)/,gn+"input-$1")]})],o)}return""}))}}],L$=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o,r,i=e.stylisPlugins||B$,a={},s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var l,c,u,d=[R$,A$],f=[Bn,I$((function(e){l.insert(e)}))],p=(c=d.concat(i,f),u=Rn(c),function(e,t,n,o){for(var r="",i=0;i<u;i++)r+=c[i](e,t,n,o)||"";return r});r=function(e,t,n,o){l=n,Dn(so(e?e+"{"+t.styles+"}":t.styles),p),o&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new P$({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:r};return h.sheet.hydrate(s),h};function z$(e,t,n){var o="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(o+=n+" ")})),o}var F$=function(e,t,n){var o=e.key+"-"+t.name;!1===n&&void 0===e.registered[o]&&(e.registered[o]=t.styles)},H$=function(e,t,n){F$(e,t,n);var o=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var r=t;do{e.insert(t===r?"."+o:"",r,e.sheet,!0),r=r.next}while(void 0!==r)}},V$={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale: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};function W$(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var K$=!1,q$=/[A-Z]|^ms/g,U$=/_EMO_([^_]+?)_([^]*?)_EMO_/g,G$=function(e){return 45===e.charCodeAt(1)},X$=function(e){return null!=e&&"boolean"!=typeof e},Y$=W$((function(e){return G$(e)?e:e.replace(q$,"-$&").toLowerCase()})),Z$=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(U$,(function(e,t,n){return e_={name:t,styles:n,next:e_},t}))}return 1===V$[e]||G$(e)||"number"!=typeof t||0===t?t:t+"px"},Q$="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function J$(e,t,n){if(null==n)return"";var o=n;if(void 0!==o.__emotion_styles)return o;switch(typeof n){case"boolean":return"";case"object":var r=n;if(1===r.anim)return e_={name:r.name,styles:r.styles,next:e_},r.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)e_={name:a.name,styles:a.styles,next:e_},a=a.next;return i.styles+";"}return function(e,t,n){var o="";if(Array.isArray(n))for(var r=0;r<n.length;r++)o+=J$(e,t,n[r])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?o+=i+"{"+t[s]+"}":X$(s)&&(o+=Y$(i)+":"+Z$(i,s)+";")}else{if("NO_COMPONENT_SELECTOR"===i&&K$)throw new Error(Q$);if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=J$(e,t,a);switch(i){case"animation":case"animationName":o+=Y$(i)+":"+l+";";break;default:o+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)X$(a[c])&&(o+=Y$(i)+":"+Z$(i,a[c])+";")}}return o}(e,t,n);case"function":if(void 0!==e){var s=e_,l=n(e);return e_=s,J$(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var e_,t_=/label:\s*([^\s;{]+)\s*(;|$)/g;function n_(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,r="";e_=void 0;var i=e[0];null==i||void 0===i.raw?(o=!1,r+=J$(n,t,i)):r+=i[0];for(var a=1;a<e.length;a++)r+=J$(n,t,e[a]),o&&(r+=i[a]);t_.lastIndex=0;for(var s,l="";null!==(s=t_.exec(r));)l+="-"+s[1];var c=function(e){for(var t,n=0,o=0,r=e.length;r>=4;++o,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(r)+l;return{name:c,styles:r,next:e_}}var o_=!!p.useInsertionEffect&&p.useInsertionEffect,r_=o_||function(e){return e()},i_=(o_||p.useLayoutEffect,p.createContext("undefined"!=typeof HTMLElement?L$({key:"css"}):null)),a_=(i_.Provider,function(e){return(0,p.forwardRef)((function(t,n){var o=(0,p.useContext)(i_);return e(t,o,n)}))}),s_=p.createContext({}),l_={}.hasOwnProperty,c_="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",u_=function(e){var t=e.cache,n=e.serialized,o=e.isStringTag;return F$(t,n,o),r_((function(){return H$(t,n,o)})),null},d_=a_((function(e,t,n){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var r=e[c_],i=[o],a="";"string"==typeof e.className?a=z$(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=n_(i,void 0,p.useContext(s_));a+=t.key+"-"+s.name;var l={};for(var c in e)l_.call(e,c)&&"css"!==c&&c!==c_&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),p.createElement(p.Fragment,null,p.createElement(u_,{cache:t,serialized:s,isStringTag:"string"==typeof r}),p.createElement(r,l))})),f_=(n(146),function(e,t){var n=arguments;if(null==t||!l_.call(t,"css"))return p.createElement.apply(void 0,n);var o=n.length,r=new Array(o);r[0]=d_,r[1]=function(e,t){var n={};for(var o in t)l_.call(t,o)&&(n[o]=t[o]);return n[c_]=e,n}(e,t);for(var i=2;i<o;i++)r[i]=n[i];return p.createElement.apply(null,r)});function p_(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return n_(t)}const h_=Math.min,m_=Math.max,g_=Math.round,v_=Math.floor,b_=e=>({x:e,y:e});function y_(e){return C_(e)?(e.nodeName||"").toLowerCase():"#document"}function x_(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function w_(e){var t;return null==(t=(C_(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function C_(e){return e instanceof Node||e instanceof x_(e).Node}function S_(e){return e instanceof Element||e instanceof x_(e).Element}function E_(e){return e instanceof HTMLElement||e instanceof x_(e).HTMLElement}function k_(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof x_(e).ShadowRoot)}function $_(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=O_(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function O_(e){return x_(e).getComputedStyle(e)}function j_(e){const t=function(e){if("html"===y_(e))return e;const t=e.assignedSlot||e.parentNode||k_(e)&&e.host||w_(e);return k_(t)?t.host:t}(e);return function(e){return["html","body","#document"].includes(y_(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:E_(t)&&$_(t)?t:j_(t)}function M_(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=j_(e),i=r===(null==(o=e.ownerDocument)?void 0:o.body),a=x_(r);return i?t.concat(a,a.visualViewport||[],$_(r)?r:[],a.frameElement&&n?M_(a.frameElement):[]):t.concat(r,M_(r,[],n))}function P_(e){return S_(e)?e:e.contextElement}function I_(e){const t=P_(e);if(!E_(t))return b_(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=function(e){const t=O_(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=E_(e),i=r?e.offsetWidth:n,a=r?e.offsetHeight:o,s=g_(n)!==i||g_(o)!==a;return s&&(n=i,o=a),{width:n,height:o,$:s}}(t);let a=(i?g_(n.width):n.width)/o,s=(i?g_(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const N_=b_(0);function T_(e){const t=x_(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:N_}function R_(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),i=P_(e);let a=b_(1);t&&(o?S_(o)&&(a=I_(o)):a=I_(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==x_(e))&&t}(i,n,o)?T_(i):b_(0);let l=(r.left+s.x)/a.x,c=(r.top+s.y)/a.y,u=r.width/a.x,d=r.height/a.y;if(i){const e=x_(i),t=o&&S_(o)?x_(o):o;let n=e,r=n.frameElement;for(;r&&o&&t!==n;){const e=I_(r),t=r.getBoundingClientRect(),o=O_(r),i=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,a=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=a,n=x_(r),r=n.frameElement}}return f={width:u,height:d,x:l,y:c},{...f,top:f.y,left:f.x,right:f.x+f.width,bottom:f.y+f.height};var f}const A_=p.useLayoutEffect;var D_=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],B_=function(){};function L_(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function z_(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];var i=[].concat(o);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(L_(e,a)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var F_=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===ye(e)&&null!==e?[e]:[];var t},H_=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,$e({},di(e,D_))},V_=function(e,t,n){var o=e.cx,r=e.getStyles,i=e.getClassNames,a=e.className;return{css:r(t,e),className:o(null!=n?n:{},i(t,e),a)}};function W_(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function K_(e){return W_(e)?window.pageYOffset:e.scrollTop}function q_(e,t){W_(e)?window.scrollTo(0,t):e.scrollTop=t}function U_(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:B_,r=K_(e),i=t-r,a=0;!function t(){var s,l=i*((s=(s=a+=10)/n-1)*s*s+1)+r;q_(e,l),a<n?window.requestAnimationFrame(t):o(e)}()}function G_(e,t){var n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),r=t.offsetHeight/3;o.bottom+r>n.bottom?q_(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+r,e.scrollHeight)):o.top-r<n.top&&q_(e,Math.max(t.offsetTop-r,0))}function X_(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var Y_=!1,Z_={get passive(){return Y_=!0}},Q_="undefined"!=typeof window?window:{};Q_.addEventListener&&Q_.removeEventListener&&(Q_.addEventListener("p",B_,Z_),Q_.removeEventListener("p",B_,!1));var J_=Y_;function eO(e){return null!=e}function tO(e,t,n){return e?t:n}var nO=["children","innerProps"],oO=["children","innerProps"];var rO,iO,aO,sO=function(e){return"auto"===e?"bottom":e},lO=(0,p.createContext)(null),cO=function(e){var t=e.children,n=e.minMenuHeight,o=e.maxMenuHeight,r=e.menuPlacement,i=e.menuPosition,a=e.menuShouldScrollIntoView,s=e.theme,l=((0,p.useContext)(lO)||{}).setPortalPlacement,c=(0,p.useRef)(null),u=Ge((0,p.useState)(o),2),d=u[0],f=u[1],h=Ge((0,p.useState)(null),2),m=h[0],g=h[1],v=s.spacing.controlHeight;return A_((function(){var e=c.current;if(e){var t="fixed"===i,s=function(e){var t=e.maxHeight,n=e.menuEl,o=e.minHeight,r=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,o=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var r=e;r=r.parentElement;)if(t=getComputedStyle(r),(!n||"static"!==t.position)&&o.test(t.overflow+t.overflowY+t.overflowX))return r;return document.documentElement}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u,d=l.getBoundingClientRect().height,f=n.getBoundingClientRect(),p=f.bottom,h=f.height,m=f.top,g=n.offsetParent.getBoundingClientRect().top,v=a||W_(u=l)?window.innerHeight:u.clientHeight,b=K_(l),y=parseInt(getComputedStyle(n).marginBottom,10),x=parseInt(getComputedStyle(n).marginTop,10),w=g-x,C=v-m,S=w+b,E=d-b-m,k=p-v+b+y,$=b+m-x,_=160;switch(r){case"auto":case"bottom":if(C>=h)return{placement:"bottom",maxHeight:t};if(E>=h&&!a)return i&&U_(l,k,_),{placement:"bottom",maxHeight:t};if(!a&&E>=o||a&&C>=o)return i&&U_(l,k,_),{placement:"bottom",maxHeight:a?C-y:E-y};if("auto"===r||a){var O=t,j=a?w:S;return j>=o&&(O=Math.min(j-y-s,t)),{placement:"top",maxHeight:O}}if("bottom"===r)return i&&q_(l,k),{placement:"bottom",maxHeight:t};break;case"top":if(w>=h)return{placement:"top",maxHeight:t};if(S>=h&&!a)return i&&U_(l,$,_),{placement:"top",maxHeight:t};if(!a&&S>=o||a&&w>=o){var M=t;return(!a&&S>=o||a&&w>=o)&&(M=a?w-x:S-x),i&&U_(l,$,_),{placement:"top",maxHeight:M}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return c}({maxHeight:o,menuEl:e,minHeight:n,placement:r,shouldScroll:a&&!t,isFixedPosition:t,controlHeight:v});f(s.maxHeight),g(s.placement),null==l||l(s.placement)}}),[o,r,i,a,n,l,v]),t({ref:c,placerProps:$e($e({},e),{},{placement:m||sO(r),maxHeight:d})})},uO=function(e,t){var n=e.theme,o=n.spacing.baseUnit,r=n.colors;return $e({textAlign:"center"},t?{}:{color:r.neutral40,padding:"".concat(2*o,"px ").concat(3*o,"px")})},dO=uO,fO=uO,pO=["size"],hO=["innerProps","isRtl","size"],mO={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},gO=function(e){var t=e.size,n=di(e,pO);return f_("svg",hn({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:mO},n))},vO=function(e){return f_(gO,hn({size:20},e),f_("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},bO=function(e){return f_(gO,hn({size:20},e),f_("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},yO=function(e,t){var n=e.isFocused,o=e.theme,r=o.spacing.baseUnit,i=o.colors;return $e({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*r,":hover":{color:n?i.neutral80:i.neutral40}})},xO=yO,wO=yO,CO=function(){var e=p_.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(rO||(iO=["\n  0%, 80%, 100% { opacity: 0; }\n  40% { opacity: 1; }\n"],aO||(aO=iO.slice(0)),rO=Object.freeze(Object.defineProperties(iO,{raw:{value:Object.freeze(aO)}})))),SO=function(e){var t=e.delay,n=e.offset;return f_("span",{css:p_({animation:"".concat(CO," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},EO=["data"],kO=["innerRef","isDisabled","isHidden","inputClassName"],$O={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},_O={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":$e({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},$O)},OO=function(e){return $e({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},$O)},jO=function(e){var t=e.children,n=e.innerProps;return f_("div",n,t)},MO={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return f_("div",hn({},V_(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||f_(vO,null))},Control:function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,r=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return f_("div",hn({ref:r},V_(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":o,"control--menu-is-open":a}),i,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return f_("div",hn({},V_(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||f_(bO,null))},DownChevron:bO,CrossIcon:vO,Group:function(e){var t=e.children,n=e.cx,o=e.getStyles,r=e.getClassNames,i=e.Heading,a=e.headingProps,s=e.innerProps,l=e.label,c=e.theme,u=e.selectProps;return f_("div",hn({},V_(e,"group",{group:!0}),s),f_(i,hn({},a,{selectProps:u,theme:c,getStyles:o,getClassNames:r,cx:n}),l),f_("div",null,t))},GroupHeading:function(e){var t=H_(e);t.data;var n=di(t,EO);return f_("div",hn({},V_(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return f_("div",hn({},V_(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return f_("span",hn({},t,V_(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,o=H_(e),r=o.innerRef,i=o.isDisabled,a=o.isHidden,s=o.inputClassName,l=di(o,kO);return f_("div",hn({},V_(e,"input",{"input-container":!0}),{"data-value":n||""}),f_("input",hn({className:t({input:!0},s),ref:r,style:OO(a),disabled:i},l)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,o=e.size,r=void 0===o?4:o,i=di(e,hO);return f_("div",hn({},V_($e($e({},i),{},{innerProps:t,isRtl:n,size:r}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),f_(SO,{delay:0,offset:n}),f_(SO,{delay:160,offset:!0}),f_(SO,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,o=e.innerProps;return f_("div",hn({},V_(e,"menu",{menu:!0}),{ref:n},o),t)},MenuList:function(e){var t=e.children,n=e.innerProps,o=e.innerRef,r=e.isMulti;return f_("div",hn({},V_(e,"menuList",{"menu-list":!0,"menu-list--is-multi":r}),{ref:o},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,o=e.controlElement,r=e.innerProps,i=e.menuPlacement,a=e.menuPosition,s=(0,p.useRef)(null),l=(0,p.useRef)(null),c=Ge((0,p.useState)(sO(i)),2),u=c[0],d=c[1],f=(0,p.useMemo)((function(){return{setPortalPlacement:d}}),[]),h=Ge((0,p.useState)(null),2),m=h[0],g=h[1],v=(0,p.useCallback)((function(){if(o){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(o),t="fixed"===a?0:window.pageYOffset,n=e[u]+t;n===(null==m?void 0:m.offset)&&e.left===(null==m?void 0:m.rect.left)&&e.width===(null==m?void 0:m.rect.width)||g({offset:n,rect:e})}}),[o,a,u,null==m?void 0:m.offset,null==m?void 0:m.rect.left,null==m?void 0:m.rect.width]);A_((function(){v()}),[v]);var b=(0,p.useCallback)((function(){"function"==typeof l.current&&(l.current(),l.current=null),o&&s.current&&(l.current=function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=o,c=P_(e),u=r||i?[...c?M_(c):[],...M_(t)]:[];u.forEach((e=>{r&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,o=null;const r=w_(e);function i(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const{left:c,top:u,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const p={rootMargin:-v_(u)+"px "+-v_(r.clientWidth-(c+d))+"px "+-v_(r.clientHeight-(u+f))+"px "+-v_(c)+"px",threshold:m_(0,h_(1,l))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==l){if(!h)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}h=!1}try{o=new IntersectionObserver(m,{...p,root:r.ownerDocument})}catch(e){o=new IntersectionObserver(m,p)}o.observe(e)}(!0),i}(c,n):null;let f,p=-1,h=null;a&&(h=new ResizeObserver((e=>{let[o]=e;o&&o.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),c&&!l&&h.observe(c),h.observe(t));let m=l?R_(e):null;return l&&function t(){const o=R_(e);!m||o.x===m.x&&o.y===m.y&&o.width===m.width&&o.height===m.height||n(),m=o,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{r&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(f)}}(o,s.current,v,{elementResize:"ResizeObserver"in window}))}),[o,v]);A_((function(){b()}),[b]);var y=(0,p.useCallback)((function(e){s.current=e,b()}),[b]);if(!t&&"fixed"!==a||!m)return null;var x=f_("div",hn({ref:y},V_($e($e({},e),{},{offset:m.offset,position:a,rect:m.rect}),"menuPortal",{"menu-portal":!0}),r),n);return f_(lO.Provider,{value:f},t?(0,pe.createPortal)(x,t):x)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,o=e.innerProps,r=di(e,oO);return f_("div",hn({},V_($e($e({},r),{},{children:n,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,o=e.innerProps,r=di(e,nO);return f_("div",hn({},V_($e($e({},r),{},{children:n,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),n)},MultiValue:function(e){var t=e.children,n=e.components,o=e.data,r=e.innerProps,i=e.isDisabled,a=e.removeProps,s=e.selectProps,l=n.Container,c=n.Label,u=n.Remove;return f_(l,{data:o,innerProps:$e($e({},V_(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),r),selectProps:s},f_(c,{data:o,innerProps:$e({},V_(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),f_(u,{data:o,innerProps:$e($e({},V_(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},MultiValueContainer:jO,MultiValueLabel:jO,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return f_("div",hn({role:"button"},n),t||f_(vO,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,r=e.isSelected,i=e.innerRef,a=e.innerProps;return f_("div",hn({},V_(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":o,"option--is-selected":r}),{ref:i,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return f_("div",hn({},V_(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,o=e.isDisabled,r=e.isRtl;return f_("div",hn({},V_(e,"container",{"--is-disabled":o,"--is-rtl":r}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,o=e.innerProps;return f_("div",hn({},V_(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),o),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,o=e.isMulti,r=e.hasValue;return f_("div",hn({},V_(e,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":r}),n),t)}},PO=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function IO(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((o=e[n])===(r=t[n])||PO(o)&&PO(r)))return!1;var o,r;return!0}for(var NO={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},TO=function(e){return f_("span",hn({css:NO},e))},RO={guidance:function(e){var t=e.isSearchable,n=e.isMulti,o=e.tabSelectsValue,r=e.context,i=e.isInitialFocus;switch(r){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,o=void 0===n?"":n,r=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(r.length>1?"s":""," ").concat(r.join(","),", selected.");case"select-option":return"option ".concat(o,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,o=e.options,r=e.label,i=void 0===r?"":r,a=e.selectValue,s=e.isDisabled,l=e.isSelected,c=e.isAppleDevice,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(u(a,n),".");if("menu"===t&&c){var d=s?" disabled":"",f="".concat(l?" selected":"").concat(d);return"".concat(i).concat(f,", ").concat(u(o,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},AO=function(e){var t=e.ariaSelection,n=e.focusedOption,o=e.focusedValue,r=e.focusableOptions,i=e.isFocused,a=e.selectValue,s=e.selectProps,l=e.id,c=e.isAppleDevice,u=s.ariaLiveMessages,d=s.getOptionLabel,f=s.inputValue,h=s.isMulti,m=s.isOptionDisabled,g=s.isSearchable,v=s.menuIsOpen,b=s.options,y=s.screenReaderStatus,x=s.tabSelectsValue,w=s.isLoading,C=s["aria-label"],S=s["aria-live"],E=(0,p.useMemo)((function(){return $e($e({},RO),u||{})}),[u]),k=(0,p.useMemo)((function(){var e,n="";if(t&&E.onChange){var o=t.option,r=t.options,i=t.removedValue,s=t.removedValues,l=t.value,c=i||o||(e=l,Array.isArray(e)?null:e),u=c?d(c):"",f=r||s||void 0,p=f?f.map(d):[],h=$e({isDisabled:c&&m(c,a),label:u,labels:p},t);n=E.onChange(h)}return n}),[t,E,m,a,d]),$=(0,p.useMemo)((function(){var e="",t=n||o,i=!!(n&&a&&a.includes(n));if(t&&E.onFocus){var s={focused:t,label:d(t),isDisabled:m(t,a),isSelected:i,options:r,context:t===n?"menu":"value",selectValue:a,isAppleDevice:c};e=E.onFocus(s)}return e}),[n,o,d,m,E,r,a,c]),_=(0,p.useMemo)((function(){var e="";if(v&&b.length&&!w&&E.onFilter){var t=y({count:r.length});e=E.onFilter({inputValue:f,resultsMessage:t})}return e}),[r,f,v,E,b,y,w]),O="initial-input-focus"===(null==t?void 0:t.action),j=(0,p.useMemo)((function(){var e="";if(E.guidance){var t=o?"value":v?"menu":"input";e=E.guidance({"aria-label":C,context:t,isDisabled:n&&m(n,a),isMulti:h,isSearchable:g,tabSelectsValue:x,isInitialFocus:O})}return e}),[C,n,o,h,m,g,v,E,a,x,O]),M=f_(p.Fragment,null,f_("span",{id:"aria-selection"},k),f_("span",{id:"aria-focused"},$),f_("span",{id:"aria-results"},_),f_("span",{id:"aria-guidance"},j));return f_(p.Fragment,null,f_(TO,{id:l},O&&M),f_(TO,{"aria-live":S,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!O&&M))},DO=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],BO=new RegExp("["+DO.map((function(e){return e.letters})).join("")+"]","g"),LO={},zO=0;zO<DO.length;zO++)for(var FO=DO[zO],HO=0;HO<FO.letters.length;HO++)LO[FO.letters[HO]]=FO.base;var VO=function(e){return e.replace(BO,(function(e){return LO[e]}))},WO=function(e,t){void 0===t&&(t=IO);var n=null;function o(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var i=e.apply(this,o);return n={lastResult:i,lastArgs:o,lastThis:this},i}return o.clear=function(){n=null},o}(VO),KO=function(e){return e.replace(/^\s+|\s+$/g,"")},qO=function(e){return"".concat(e.label," ").concat(e.value)},UO=["innerRef"];function GO(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r=Object.entries(e).filter((function(e){var t=Ge(e,1)[0];return!n.includes(t)}));return r.reduce((function(e,t){var n=Ge(t,2),o=n[0],r=n[1];return e[o]=r,e}),{})}(di(e,UO),"onExited","in","enter","exit","appear");return f_("input",hn({ref:t},n,{css:p_({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var XO=["boxSizing","height","overflow","paddingRight","position"],YO={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function ZO(e){e.preventDefault()}function QO(e){e.stopPropagation()}function JO(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function ej(){return"ontouchstart"in window||navigator.maxTouchPoints}var tj=!("undefined"==typeof window||!window.document||!window.document.createElement),nj=0,oj={capture:!1,passive:!1},rj=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},ij={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function aj(e){var t=e.children,n=e.lockEnabled,o=e.captureEnabled,r=function(e){var t=e.isEnabled,n=e.onBottomArrive,o=e.onBottomLeave,r=e.onTopArrive,i=e.onTopLeave,a=(0,p.useRef)(!1),s=(0,p.useRef)(!1),l=(0,p.useRef)(0),c=(0,p.useRef)(null),u=(0,p.useCallback)((function(e,t){if(null!==c.current){var l=c.current,u=l.scrollTop,d=l.scrollHeight,f=l.clientHeight,p=c.current,h=t>0,m=d-f-u,g=!1;m>t&&a.current&&(o&&o(e),a.current=!1),h&&s.current&&(i&&i(e),s.current=!1),h&&t>m?(n&&!a.current&&n(e),p.scrollTop=d,g=!0,a.current=!0):!h&&-t>u&&(r&&!s.current&&r(e),p.scrollTop=0,g=!0,s.current=!0),g&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[n,o,r,i]),d=(0,p.useCallback)((function(e){u(e,e.deltaY)}),[u]),f=(0,p.useCallback)((function(e){l.current=e.changedTouches[0].clientY}),[]),h=(0,p.useCallback)((function(e){var t=l.current-e.changedTouches[0].clientY;u(e,t)}),[u]),m=(0,p.useCallback)((function(e){if(e){var t=!!J_&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",h,t)}}),[h,f,d]),g=(0,p.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",h,!1))}),[h,f,d]);return(0,p.useEffect)((function(){if(t){var e=c.current;return m(e),function(){g(e)}}}),[t,m,g]),function(e){c.current=e}}({isEnabled:void 0===o||o,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,o=void 0===n||n,r=(0,p.useRef)({}),i=(0,p.useRef)(null),a=(0,p.useCallback)((function(e){if(tj){var t=document.body,n=t&&t.style;if(o&&XO.forEach((function(e){var t=n&&n[e];r.current[e]=t})),o&&nj<1){var i=parseInt(r.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+i||0;Object.keys(YO).forEach((function(e){var t=YO[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&ej()&&(t.addEventListener("touchmove",ZO,oj),e&&(e.addEventListener("touchstart",JO,oj),e.addEventListener("touchmove",QO,oj))),nj+=1}}),[o]),s=(0,p.useCallback)((function(e){if(tj){var t=document.body,n=t&&t.style;nj=Math.max(nj-1,0),o&&nj<1&&XO.forEach((function(e){var t=r.current[e];n&&(n[e]=t)})),t&&ej()&&(t.removeEventListener("touchmove",ZO,oj),e&&(e.removeEventListener("touchstart",JO,oj),e.removeEventListener("touchmove",QO,oj)))}}),[o]);return(0,p.useEffect)((function(){if(t){var e=i.current;return a(e),function(){s(e)}}}),[t,a,s]),function(e){i.current=e}}({isEnabled:n});return f_(p.Fragment,null,n&&f_("div",{onClick:rj,css:ij}),t((function(e){r(e),i(e)})))}var sj={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},lj=function(e){var t=e.name,n=e.onFocus;return f_("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:sj,value:"",onChange:function(){}})};function cj(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function uj(){return cj(/^Mac/i)}var dj={clearIndicator:wO,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,o=e.isFocused,r=e.theme,i=r.colors,a=r.borderRadius;return $e({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:r.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:o?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:o?i.primary:i.neutral30}})},dropdownIndicator:xO,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,o=n.colors,r=n.spacing;return $e({label:"group",cursor:"default",display:"block"},t?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*r.baseUnit,paddingRight:3*r.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,o=e.theme,r=o.spacing.baseUnit,i=o.colors;return $e({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*r,marginTop:2*r})},input:function(e,t){var n=e.isDisabled,o=e.value,r=e.theme,i=r.spacing,a=r.colors;return $e($e({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},_O),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,o=e.size,r=e.theme,i=r.colors,a=r.spacing.baseUnit;return $e({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a})},loadingMessage:fO,menu:function(e,t){var n,o=e.placement,r=e.theme,i=r.borderRadius,a=r.spacing,s=r.colors;return $e((Ee(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(o),"100%"),Ee(n,"position","absolute"),Ee(n,"width","100%"),Ee(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,o=e.theme.spacing.baseUnit;return $e({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:o,paddingTop:o})},menuPortal:function(e){var t=e.rect,n=e.offset,o=e.position;return{left:t.left,position:o,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,o=n.spacing,r=n.borderRadius,i=n.colors;return $e({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:r/2,margin:o.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,o=n.borderRadius,r=n.colors,i=e.cropWithEllipsis;return $e({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:o/2,color:r.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,o=n.spacing,r=n.borderRadius,i=n.colors,a=e.isFocused;return $e({alignItems:"center",display:"flex"},t?{}:{borderRadius:r/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:dO,option:function(e,t){var n=e.isDisabled,o=e.isFocused,r=e.isSelected,i=e.theme,a=i.spacing,s=i.colors;return $e({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:r?s.primary:o?s.primary25:"transparent",color:n?s.neutral20:r?s.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:r?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,o=n.spacing,r=n.colors;return $e({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:r.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,o=e.theme,r=o.spacing,i=o.colors;return $e({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,o=e.isMulti,r=e.hasValue,i=e.selectProps.controlShouldRenderValue;return $e({alignItems:"center",display:o&&r&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},fj={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},pj={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:X_(),captureMenuScroll:!X_(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=$e({ignoreCase:!0,ignoreAccents:!0,stringify:qO,trim:!0,matchFrom:"any"},void 0),o=n.ignoreCase,r=n.ignoreAccents,i=n.stringify,a=n.trim,s=n.matchFrom,l=a?KO(t):t,c=a?KO(i(e)):i(e);return o&&(l=l.toLowerCase(),c=c.toLowerCase()),r&&(l=WO(l),c=VO(c)),"start"===s?c.substr(0,l.length)===l:c.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function hj(e,t,n,o){return{type:"option",data:t,isDisabled:Cj(e,t,n),isSelected:Sj(e,t,n),label:xj(e,t),value:wj(e,t),index:o}}function mj(e,t){return e.options.map((function(n,o){if("options"in n){var r=n.options.map((function(n,o){return hj(e,n,t,o)})).filter((function(t){return bj(e,t)}));return r.length>0?{type:"group",data:n,options:r,index:o}:void 0}var i=hj(e,n,t,o);return bj(e,i)?i:void 0})).filter(eO)}function gj(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,Ye(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function vj(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,Ye(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function bj(e,t){var n=e.inputValue,o=void 0===n?"":n,r=t.data,i=t.isSelected,a=t.label,s=t.value;return(!kj(e)||!i)&&Ej(e,{label:a,value:s,data:r},o)}var yj=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},xj=function(e,t){return e.getOptionLabel(t)},wj=function(e,t){return e.getOptionValue(t)};function Cj(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Sj(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var o=wj(e,t);return n.some((function(t){return wj(e,t)===o}))}function Ej(e,t,n){return!e.filterOption||e.filterOption(t,n)}var kj=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},$j=1,_j=function(e){gi(n,e);var t=wi(n);function n(e){var o;if(xt(this,n),(o=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.isAppleDevice=uj()||cj(/^iPhone/i)||cj(/^iPad/i)||uj()&&navigator.maxTouchPoints>1,o.controlRef=null,o.getControlRef=function(e){o.controlRef=e},o.focusedOptionRef=null,o.getFocusedOptionRef=function(e){o.focusedOptionRef=e},o.menuListRef=null,o.getMenuListRef=function(e){o.menuListRef=e},o.inputRef=null,o.getInputRef=function(e){o.inputRef=e},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(e,t){var n=o.props,r=n.onChange,i=n.name;t.name=i,o.ariaOnChange(e,t),r(e,t)},o.setValue=function(e,t,n){var r=o.props,i=r.closeMenuOnSelect,a=r.isMulti,s=r.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(o.setState({inputIsHiddenAfterUpdate:!a}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(e,{action:t,option:n})},o.selectOption=function(e){var t=o.props,n=t.blurInputOnSelect,r=t.isMulti,i=t.name,a=o.state.selectValue,s=r&&o.isOptionSelected(e,a),l=o.isOptionDisabled(e,a);if(s){var c=o.getOptionValue(e);o.setValue(a.filter((function(e){return o.getOptionValue(e)!==c})),"deselect-option",e)}else{if(l)return void o.ariaOnChange(e,{action:"select-option",option:e,name:i});r?o.setValue([].concat(Ye(a),[e]),"select-option",e):o.setValue(e,"select-option")}n&&o.blurInput()},o.removeValue=function(e){var t=o.props.isMulti,n=o.state.selectValue,r=o.getOptionValue(e),i=n.filter((function(e){return o.getOptionValue(e)!==r})),a=tO(t,i,i[0]||null);o.onChange(a,{action:"remove-value",removedValue:e}),o.focusInput()},o.clearValue=function(){var e=o.state.selectValue;o.onChange(tO(o.props.isMulti,[],null),{action:"clear",removedValues:e})},o.popValue=function(){var e=o.props.isMulti,t=o.state.selectValue,n=t[t.length-1],r=t.slice(0,t.length-1),i=tO(e,r,r[0]||null);o.onChange(i,{action:"pop-value",removedValue:n})},o.getFocusedOptionId=function(e){return yj(o.state.focusableOptionsWithIds,e)},o.getFocusableOptionsWithIds=function(){return vj(mj(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return z_.apply(void 0,[o.props.classNamePrefix].concat(t))},o.getOptionLabel=function(e){return xj(o.props,e)},o.getOptionValue=function(e){return wj(o.props,e)},o.getStyles=function(e,t){var n=o.props.unstyled,r=dj[e](t,n);r.boxSizing="border-box";var i=o.props.styles[e];return i?i(r,t):r},o.getClassNames=function(e,t){var n,r;return null===(n=(r=o.props.classNames)[e])||void 0===n?void 0:n.call(r,t)},o.getElementId=function(e){return"".concat(o.state.instancePrefix,"-").concat(e)},o.getComponents=function(){return e=o.props,$e($e({},MO),e.components);var e},o.buildCategorizedOptions=function(){return mj(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return gj(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(e,t){o.setState({ariaSelection:$e({value:e},t)})},o.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(e){o.blockOptionHover=!1},o.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&o.onMenuClose():t&&o.openMenu("first"):(t&&(o.openAfterFocus=!0),o.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},o.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||o.props.isDisabled)){var t=o.props,n=t.isMulti,r=t.menuIsOpen;o.focusInput(),r?(o.setState({inputIsHiddenAfterUpdate:!n}),o.onMenuClose()):o.openMenu("first"),e.preventDefault()}},o.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(o.clearValue(),e.preventDefault(),o.openAfterFocus=!1,"touchend"===e.type?o.focusInput():setTimeout((function(){return o.focusInput()})))},o.onScroll=function(e){"boolean"==typeof o.props.closeMenuOnScroll?e.target instanceof HTMLElement&&W_(e.target)&&o.props.onMenuClose():"function"==typeof o.props.closeMenuOnScroll&&o.props.closeMenuOnScroll(e)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(o.initialTouchX=n.clientX,o.initialTouchY=n.clientY,o.userIsDragging=!1)},o.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var r=Math.abs(n.clientX-o.initialTouchX),i=Math.abs(n.clientY-o.initialTouchY);o.userIsDragging=r>5||i>5}},o.onTouchEnd=function(e){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(e.target)&&o.menuListRef&&!o.menuListRef.contains(e.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(e){o.userIsDragging||o.onControlMouseDown(e)},o.onClearIndicatorTouchEnd=function(e){o.userIsDragging||o.onClearIndicatorMouseDown(e)},o.onDropdownIndicatorTouchEnd=function(e){o.userIsDragging||o.onDropdownIndicatorMouseDown(e)},o.handleInputChange=function(e){var t=o.props.inputValue,n=e.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(n,{action:"input-change",prevInputValue:t}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(e){o.props.onFocus&&o.props.onFocus(e),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(e){var t=o.props.inputValue;o.menuListRef&&o.menuListRef.contains(document.activeElement)?o.inputRef.focus():(o.props.onBlur&&o.props.onBlur(e),o.onInputChange("",{action:"input-blur",prevInputValue:t}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1}))},o.onOptionHover=function(e){if(!o.blockOptionHover&&o.state.focusedOption!==e){var t=o.getFocusableOptions().indexOf(e);o.setState({focusedOption:e,focusedOptionId:t>-1?o.getFocusedOptionId(e):null})}},o.shouldHideSelectedOptions=function(){return kj(o.props)},o.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),o.focus()},o.onKeyDown=function(e){var t=o.props,n=t.isMulti,r=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,l=t.isDisabled,c=t.menuIsOpen,u=t.onKeyDown,d=t.tabSelectsValue,f=t.openMenuOnFocus,p=o.state,h=p.focusedOption,m=p.focusedValue,g=p.selectValue;if(!(l||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(o.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;o.focusValue("previous");break;case"ArrowRight":if(!n||a)return;o.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)o.removeValue(m);else{if(!r)return;n?o.popValue():s&&o.clearValue()}break;case"Tab":if(o.isComposing)return;if(e.shiftKey||!c||!d||!h||f&&o.isOptionSelected(h,g))return;o.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(c){if(!h)return;if(o.isComposing)return;o.selectOption(h);break}return;case"Escape":c?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:a}),o.onMenuClose()):s&&i&&o.clearValue();break;case" ":if(a)return;if(!c){o.openMenu("first");break}if(!h)return;o.selectOption(h);break;case"ArrowUp":c?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":c?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!c)return;o.focusOption("pageup");break;case"PageDown":if(!c)return;o.focusOption("pagedown");break;case"Home":if(!c)return;o.focusOption("first");break;case"End":if(!c)return;o.focusOption("last");break;default:return}e.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++$j),o.state.selectValue=F_(e.value),e.menuIsOpen&&o.state.selectValue.length){var r=o.getFocusableOptionsWithIds(),i=o.buildFocusableOptions(),a=i.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=r,o.state.focusedOption=i[a],o.state.focusedOptionId=yj(r,i[a])}return o}return Ct(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&G_(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,o=t.menuIsOpen,r=this.state.isFocused;(r&&!n&&e.isDisabled||r&&o&&!e.menuIsOpen)&&this.focusInput(),r&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):r||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(G_(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,o=n.selectValue,r=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(o[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(r&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a],focusedOptionId:this.getFocusedOptionId(i[a])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,o=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var r=n.indexOf(o);o||(r=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===r?0:-1===r?i:r-1;break;case"next":r>-1&&r<i&&(a=r+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,o=this.getFocusableOptions();if(o.length){var r=0,i=o.indexOf(n);n||(i=-1),"up"===e?r=i>0?i-1:o.length-1:"down"===e?r=(i+1)%o.length:"pageup"===e?(r=i-t)<0&&(r=0):"pagedown"===e?(r=i+t)>o.length-1&&(r=o.length-1):"last"===e&&(r=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[r],focusedValue:null,focusedOptionId:this.getFocusedOptionId(o[r])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(fj):$e($e({},fj),this.props.theme):fj}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,o=this.getClassNames,r=this.getValue,i=this.selectOption,a=this.setValue,s=this.props,l=s.isMulti,c=s.isRtl,u=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:o,getValue:r,hasValue:this.hasValue(),isMulti:l,isRtl:c,options:u,selectOption:i,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return Cj(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Sj(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Ej(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,o=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:o})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,o=e.inputId,r=e.inputValue,i=e.tabIndex,a=e.form,s=e.menuIsOpen,l=e.required,c=this.getComponents().Input,u=this.state,d=u.inputIsHidden,f=u.ariaSelection,h=this.commonProps,m=o||this.getElementId("input"),g=$e($e($e({"aria-autocomplete":"list","aria-expanded":s,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":l,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},s&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?p.createElement(c,hn({},h,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:t,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:a,type:"text",value:r},g)):p.createElement(GO,hn({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:B_,onFocus:this.onInputFocus,disabled:t,tabIndex:i,inputMode:"none",form:a,value:""},g))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,o=t.MultiValueContainer,r=t.MultiValueLabel,i=t.MultiValueRemove,a=t.SingleValue,s=t.Placeholder,l=this.commonProps,c=this.props,u=c.controlShouldRenderValue,d=c.isDisabled,f=c.isMulti,h=c.inputValue,m=c.placeholder,g=this.state,v=g.selectValue,b=g.focusedValue,y=g.isFocused;if(!this.hasValue()||!u)return h?null:p.createElement(s,hn({},l,{key:"placeholder",isDisabled:d,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),m);if(f)return v.map((function(t,a){var s=t===b,c="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return p.createElement(n,hn({},l,{components:{Container:o,Label:r,Remove:i},isFocused:s,isDisabled:d,key:c,index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(h)return null;var x=v[0];return p.createElement(a,hn({},l,{data:x,isDisabled:d}),this.formatOptionLabel(x,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,r=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||o||!this.hasValue()||r)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return p.createElement(e,hn({},t,{innerProps:a,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,r=n.isLoading,i=this.state.isFocused;return e&&r?p.createElement(e,hn({},t,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:i})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var o=this.commonProps,r=this.props.isDisabled,i=this.state.isFocused;return p.createElement(n,hn({},o,{isDisabled:r,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,o=this.state.isFocused,r={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return p.createElement(e,hn({},t,{innerProps:r,isDisabled:n,isFocused:o}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,o=t.GroupHeading,r=t.Menu,i=t.MenuList,a=t.MenuPortal,s=t.LoadingMessage,l=t.NoOptionsMessage,c=t.Option,u=this.commonProps,d=this.state.focusedOption,f=this.props,h=f.captureMenuScroll,m=f.inputValue,g=f.isLoading,v=f.loadingMessage,b=f.minMenuHeight,y=f.maxMenuHeight,x=f.menuIsOpen,w=f.menuPlacement,C=f.menuPosition,S=f.menuPortalTarget,E=f.menuShouldBlockScroll,k=f.menuShouldScrollIntoView,$=f.noOptionsMessage,_=f.onMenuScrollToTop,O=f.onMenuScrollToBottom;if(!x)return null;var j,M=function(t,n){var o=t.type,r=t.data,i=t.isDisabled,a=t.isSelected,s=t.label,l=t.value,f=d===r,h=i?void 0:function(){return e.onOptionHover(r)},m=i?void 0:function(){return e.selectOption(r)},g="".concat(e.getElementId("option"),"-").concat(n),v={id:g,onClick:m,onMouseMove:h,onMouseOver:h,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:a};return p.createElement(c,hn({},u,{innerProps:v,data:r,isDisabled:i,isSelected:a,key:g,label:s,type:o,value:l,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())j=this.getCategorizedOptions().map((function(t){if("group"===t.type){var r=t.data,i=t.options,a=t.index,s="".concat(e.getElementId("group"),"-").concat(a),l="".concat(s,"-heading");return p.createElement(n,hn({},u,{key:s,data:r,options:i,Heading:o,headingProps:{id:l,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return M(e,"".concat(a,"-").concat(e.index))})))}if("option"===t.type)return M(t,"".concat(t.index))}));else if(g){var P=v({inputValue:m});if(null===P)return null;j=p.createElement(s,u,P)}else{var I=$({inputValue:m});if(null===I)return null;j=p.createElement(l,u,I)}var N={minMenuHeight:b,maxMenuHeight:y,menuPlacement:w,menuPosition:C,menuShouldScrollIntoView:k},T=p.createElement(cO,hn({},u,N),(function(t){var n=t.ref,o=t.placerProps,a=o.placement,s=o.maxHeight;return p.createElement(r,hn({},u,N,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:g,placement:a}),p.createElement(aj,{captureEnabled:h,onTopArrive:_,onBottomArrive:O,lockEnabled:E},(function(t){return p.createElement(i,hn({},u,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":u.isMulti,id:e.getElementId("listbox")},isLoading:g,maxHeight:s,focusedOption:d}),j)})))}));return S||"fixed"===C?p.createElement(a,hn({},u,{appendTo:S,controlElement:this.controlRef,menuPlacement:w,menuPosition:C}),T):T}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,o=t.isDisabled,r=t.isMulti,i=t.name,a=t.required,s=this.state.selectValue;if(a&&!this.hasValue()&&!o)return p.createElement(lj,{name:i,onFocus:this.onValueInputFocus});if(i&&!o){if(r){if(n){var l=s.map((function(t){return e.getOptionValue(t)})).join(n);return p.createElement("input",{name:i,type:"hidden",value:l})}var c=s.length>0?s.map((function(t,n){return p.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):p.createElement("input",{name:i,type:"hidden",value:""});return p.createElement("div",null,c)}var u=s[0]?this.getOptionValue(s[0]):"";return p.createElement("input",{name:i,type:"hidden",value:u})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,o=t.focusedOption,r=t.focusedValue,i=t.isFocused,a=t.selectValue,s=this.getFocusableOptions();return p.createElement(AO,hn({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:o,focusedValue:r,isFocused:i,selectValue:a,focusableOptions:s,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,o=e.SelectContainer,r=e.ValueContainer,i=this.props,a=i.className,s=i.id,l=i.isDisabled,c=i.menuIsOpen,u=this.state.isFocused,d=this.commonProps=this.getCommonProps();return p.createElement(o,hn({},d,{className:a,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:u}),this.renderLiveRegion(),p.createElement(t,hn({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:u,menuIsOpen:c}),p.createElement(r,hn({},d,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),p.createElement(n,hn({},d,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,o=t.clearFocusValueOnUpdate,r=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,l=t.instancePrefix,c=e.options,u=e.value,d=e.menuIsOpen,f=e.inputValue,p=e.isMulti,h=F_(u),m={};if(n&&(u!==n.value||c!==n.options||d!==n.menuIsOpen||f!==n.inputValue)){var g=d?function(e,t){return gj(mj(e,t))}(e,h):[],v=d?vj(mj(e,h),"".concat(l,"-option")):[],b=o?function(e,t){var n=e.focusedValue,o=e.selectValue.indexOf(n);if(o>-1){if(t.indexOf(n)>-1)return n;if(o<t.length)return t[o]}return null}(t,h):null,y=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,g);m={selectValue:h,focusedOption:y,focusedOptionId:yj(v,y),focusableOptionsWithIds:v,focusedValue:b,clearFocusValueOnUpdate:!1}}var x=null!=r&&e!==n?{inputIsHidden:r,inputIsHiddenAfterUpdate:void 0}:{},w=i,C=a&&s;return a&&!C&&(w={value:tO(p,h,h[0]||null),options:h,action:"initial-input-focus"},C=!s),"initial-input-focus"===(null==i?void 0:i.action)&&(w=null),$e($e($e({},m),x),{},{prevProps:e,ariaSelection:w,prevWasFocused:C})}}]),n}(p.Component);_j.defaultProps=pj;var Oj=(0,p.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,o=e.defaultMenuIsOpen,r=void 0!==o&&o,i=e.defaultValue,a=void 0===i?null:i,s=e.inputValue,l=e.menuIsOpen,c=e.onChange,u=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,h=e.value,m=di(e,M$),g=Ge((0,p.useState)(void 0!==s?s:n),2),v=g[0],b=g[1],y=Ge((0,p.useState)(void 0!==l?l:r),2),x=y[0],w=y[1],C=Ge((0,p.useState)(void 0!==h?h:a),2),S=C[0],E=C[1],k=(0,p.useCallback)((function(e,t){"function"==typeof c&&c(e,t),E(e)}),[c]),$=(0,p.useCallback)((function(e,t){var n;"function"==typeof u&&(n=u(e,t)),b(void 0!==n?n:e)}),[u]),_=(0,p.useCallback)((function(){"function"==typeof f&&f(),w(!0)}),[f]),O=(0,p.useCallback)((function(){"function"==typeof d&&d(),w(!1)}),[d]),j=void 0!==s?s:v,M=void 0!==l?l:x,P=void 0!==h?h:S;return $e($e({},m),{},{inputValue:j,menuIsOpen:M,onChange:k,onInputChange:$,onMenuClose:O,onMenuOpen:_,value:P})}(e);return p.createElement(_j,hn({ref:t},n))})),jj=Oj,Mj=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],Pj=p.forwardRef((function(e,t){var n=e.className,o=e.component,r=e.viewBox,i=e.spin,a=e.rotate,s=e.tabIndex,l=e.onClick,c=e.children,u=di(e,Mj),d=p.useRef(),f=ci(d,t);Qa(Boolean(o||c),"Should have `component` prop or `children`."),is(d);var h=p.useContext(jo),m=h.prefixCls,g=void 0===m?"anticon":m,v=h.rootClassName,b=oi()(v,g,n),y=oi()(Ee({},"".concat(g,"-spin"),!!i)),x=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,w=$e($e({},rs),{},{className:y,style:x,viewBox:r});r||delete w.viewBox;var C=s;return void 0===C&&l&&(C=-1),p.createElement("span",hn({role:"img"},u,{ref:f,tabIndex:C,onClick:l,className:b}),o?p.createElement(o,w,c):c?(Qa(Boolean(r)||1===p.Children.count(c)&&p.isValidElement(c)&&"use"===p.Children.only(c).type,"Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),p.createElement("svg",hn({},w,{viewBox:r}),c)):null)}));Pj.displayName="AntdIcon";const Ij=Pj,Nj=e=>(0,a.jsx)(Ij,{component:()=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"2em",height:"2em",viewBox:"0 0 325 305",children:(0,a.jsxs)("g",{id:"Group_396","data-name":"Group 396",transform:"translate(-1357 -1785)",children:[(0,a.jsx)("text",{id:"_","data-name":"}",transform:"translate(1552 2024)","font-size":"224","font-family":"NotoSans-Medium, Noto Sans","font-weight":"500","letter-spacing":"0.01em",children:(0,a.jsx)("tspan",{x:"0",y:"0",children:"}"})}),(0,a.jsx)("text",{id:"_2","data-name":"}",transform:"translate(1595 2024)","font-size":"224","font-family":"NotoSans-Medium, Noto Sans","font-weight":"500","letter-spacing":"0.01em",children:(0,a.jsx)("tspan",{x:"0",y:"0",children:"}"})}),(0,a.jsx)("text",{id:"_3","data-name":"}",transform:"matrix(-1, 0, 0, 1, 1487, 2024)","font-size":"224","font-family":"NotoSans-Medium, Noto Sans","font-weight":"500","letter-spacing":"0.01em",children:(0,a.jsx)("tspan",{x:"0",y:"0",children:"}"})}),(0,a.jsx)("text",{id:"_4","data-name":"}",transform:"matrix(-1, 0, 0, 1, 1444, 2024)","font-size":"224","font-family":"NotoSans-Medium, Noto Sans","font-weight":"500","letter-spacing":"0.01em",children:(0,a.jsx)("tspan",{x:"0",y:"0",children:"}"})}),(0,a.jsx)("circle",{id:"Ellipse_73","data-name":"Ellipse 73",cx:"7.278",cy:"7.278",r:"7.278",transform:"translate(1512.269 1985)"}),(0,a.jsx)("circle",{id:"Ellipse_75","data-name":"Ellipse 75",cx:"7.278",cy:"7.278",r:"7.278",transform:"translate(1532.324 1985)"}),(0,a.jsx)("circle",{id:"Ellipse_74","data-name":"Ellipse 74",cx:"7.278",cy:"7.278",r:"7.278",transform:"translate(1492.218 1985)"})]})}),...e}),Tj=()=>{const{toggleMergeTags:e}=(0,u.useDispatch)("notification-master/core");return(0,a.jsx)(Nj,{onClick:()=>e(!0)})},Rj=window.wp.apiFetch;var Aj=n.n(Rj);const Dj=({value:e,onChange:t})=>{const[n,o]=(0,s.useState)(""),[r,i]=(0,s.useState)([]),[c,u]=(0,s.useState)(!1);return(0,s.useEffect)((()=>{(async()=>{u(!0);try{const e=await Aj()({path:(0,tE.addQueryArgs)("/wp/v2/users",{per_page:10,search:n})});i(e)}catch(e){console.error(e)}finally{u(!1)}})()}),[n]),(0,a.jsx)(jj,{options:(0,Up.map)(r,(e=>({value:e.id,label:e.name}))),isSearchable:!0,value:e||null,onChange:e=>t(e),onInputChange:e=>o(e),isLoading:c,placeholder:(0,l.__)("Select a user","notification-master"),noOptionsMessage:()=>(0,l.__)("No users found","notification-master"),className:"notification-master__integration--settings__field__list__item__input notification-master-input-custom",styles:{control:e=>({...e,minHeight:"35px",height:"35px"}),valueContainer:e=>({...e,height:"35px",padding:"0 6px"}),input:e=>({...e,margin:"0px"}),indicatorSeparator:()=>({display:"none"}),indicatorsContainer:e=>({...e,height:"35px"})}})},Bj=({value:e,onChange:t})=>{const[n,o]=(0,s.useState)(!1),r="ntfm-email-editor";(0,s.useEffect)((()=>{window.tinymce.get(r)&&(o(window.tinymce.get(r).isHidden()),window.wp.oldEditor.remove(r)),window.wp.oldEditor.initialize(r,{tinymce:{toolbar1:"formatselect | styleselect | bold italic strikethrough | forecolor backcolor | link | alignleft aligncenter alignright alignjustify | numlist bullist outdent indent | insert ast_placeholders | fontsizeselect",toolbar2:"strikethrough,hr,forecolor,pastetext,removeformat,charmap,outdent,indent,undo,redo,wp_help",height:300,setup:function(e){e.on("init",(function(){e.getContainer().style.minHeight="300px"}))},urlconverter_callback:(e,t,n)=>((e.startsWith("http://{{")||e.startsWith("https://{{"))&&(e=e.replace(/^https?:\/\//,"")),e)},quicktags:!0,mediaButtons:!0});const e=window.tinymce.get(r);e?.initialized?i():e&&e.on("init",i)}),[]);const i=()=>{const e=window.tinymce.get(r);n&&window.switchEditors.go(r,"html"),e.on("NodeChange",l((()=>{const n=e.getContent({format:"html"});t(n)}),250))},l=(e,t)=>{let n=null;return function(){const o=this,r=arguments;n&&clearTimeout(n),n=setTimeout((()=>{e.apply(o,r)}),t)}};return(0,a.jsx)("textarea",{className:"wp-editor-area",id:r,value:e,onChange:({target:{value:e}})=>{t(e)}})},Lj=({settings:e,onChange:t})=>{const{properties:n}=DI("email"),{emails:o,excluded_emails:r=[],subject:i="",message:c="<p></p>"}=e,{toggleMergeTags:d,addNotice:f}=(0,u.useDispatch)("notification-master/core"),p=eE.userRoles,{ajaxUrl:h,nonce:m,ntfmSiteUrl:g}=eE,[v,b]=(0,s.useState)(!1),[y,x]=(0,s.useState)("");(0,s.useEffect)((()=>{o?.length&&"string"==typeof o[0]&&t({emails:(0,Up.map)(o,(e=>({type:"custom",value:e})))}),e?.emails||t({emails:[{type:"custom",value:"{{general.admin_email}}"}]})}),[]);const w=(e,n)=>{t({[e]:n})},C=[{label:(0,l.__)("Select Type","notification-master"),value:"",style:{display:"none"}},{label:(0,l.__)("Role","notification-master"),value:"role"},{label:(0,l.__)("User","notification-master"),value:"user"},{label:(0,l.__)("Custom","notification-master"),value:"custom"}],S=(0,Up.map)(p,((e,t)=>({label:e.label,value:t}))),E=e=>C.find((t=>t.value===e))||C[0];return(0,a.jsxs)(Np,{vertical:!0,gap:10,children:[(0,a.jsx)(Yk.Title,{level:5,className:"ntfm-custom-title",children:(0,l.__)("Email Settings","notification-master")}),(0,a.jsxs)(Yk.Text,{type:"secondary",children:[(0,l.__)("Read the documentation to learn more about how to set up email notifications.","notification-master")," ",(0,a.jsx)("a",{href:`${g}/docs/email-notifications/`,target:"_blank",children:(0,l.__)("Find out more","notification-master")})]}),(0,a.jsxs)("div",{className:"notification-master__integration--settings",children:[(0,a.jsxs)("div",{className:oi()("notification-master__integration--settings__field",{required:n.emails.required}),children:[(0,a.jsx)(Yk.Title,{level:5,className:"notification-master__integration--settings__field__title",children:(0,l.__)("Email Addresses","notification-master")}),(0,a.jsx)(Yk.Text,{type:"secondary",style:{fontSize:"12px"},className:"notification-master__integration--settings__field__description",children:(0,l.__)("You can use merge tags. For example, you can use {{general.admin_email}} to send the email to the admin email address.","notification-master")}),(0,a.jsxs)("div",{className:"notification-master__integration--settings__field__list",children:[(0,Up.map)(o,((e,t)=>(0,a.jsxs)("div",{className:"notification-master__integration--settings__field__list__item",children:[(0,a.jsx)(jj,{placeholder:(0,l.__)("Select Type","notification-master"),value:E(e.type),onChange:n=>w("emails",[...o.slice(0,t),{...e,type:n?.value||"",value:""},...o.slice(t+1)]),isSearchable:!1,options:C,className:"notification-master__integration--settings__field__list__item__input notification-master-input-custom",styles:{control:e=>({...e,minHeight:"35px",height:"35px"}),valueContainer:e=>({...e,height:"35px",padding:"0 6px"}),input:e=>({...e,margin:"0px"}),indicatorSeparator:()=>({display:"none"}),indicatorsContainer:e=>({...e,height:"35px"})}}),"role"===e.type&&(0,a.jsx)(jj,{placeholder:(0,l.__)("Select Role","notification-master"),value:e.value,onChange:n=>w("emails",[...o.slice(0,t),{...e,value:n},...o.slice(t+1)]),isSearchable:!1,options:S,className:"notification-master__integration--settings__field__list__item__input notification-master-input-custom",styles:{control:e=>({...e,minHeight:"35px",height:"35px"}),valueContainer:e=>({...e,height:"35px",padding:"0 6px"}),input:e=>({...e,margin:"0px"}),indicatorSeparator:()=>({display:"none"}),indicatorsContainer:e=>({...e,height:"35px"})}}),"user"===e.type&&(0,a.jsx)(Dj,{value:e.value,onChange:n=>w("emails",[...o.slice(0,t),{...e,value:n},...o.slice(t+1)])}),"custom"===e.type&&(0,a.jsx)(p$,{placeholder:(0,l.__)("example@domain.com or {{general.admin_email}}","notification-master"),value:e.value,onChange:n=>w("emails",[...o.slice(0,t),{...e,value:n.target.value},...o.slice(t+1)]),addonAfter:(0,a.jsx)(Tj,{}),className:"notification-master__integration--settings__field__list__item__input"}),(0,a.jsx)(gu,{danger:!0,type:"link",onClick:()=>w("emails",o.filter(((e,n)=>n!==t))),icon:(0,a.jsx)(j$,{})})]},t))),(0,a.jsx)(gu,{onClick:()=>w("emails",[...o,{type:"custom",value:""}]),children:(0,l.__)("Add Email","notification-master")})]})]}),(0,a.jsxs)("div",{className:oi()("notification-master__integration--settings__field",{required:n.excluded_emails.required}),children:[(0,a.jsx)(Yk.Title,{level:5,className:"notification-master__integration--settings__field__title",children:(0,l.__)("Exclude Email Addresses","notification-master")}),(0,a.jsx)(Yk.Text,{type:"secondary",style:{fontSize:"12px"},className:"notification-master__integration--settings__field__description",children:(0,l.__)("You can use merge tags. For example, you can use {{general.admin_email}} to exclude the admin email address.","notification-master")}),(0,a.jsxs)("div",{className:"notification-master__integration--settings__field__list",children:[(0,Up.map)(r,((e,t)=>(0,a.jsxs)("div",{className:"notification-master__integration--settings__field__list__item",children:[(0,a.jsx)(jj,{placeholder:(0,l.__)("Select Type","notification-master"),value:E(e.type),onChange:n=>w("excluded_emails",[...r.slice(0,t),{...e,type:n?.value||"",value:""},...r.slice(t+1)]),options:C,className:"notification-master__integration--settings__field__list__item__input notification-master-input-custom",styles:{control:e=>({...e,minHeight:"35px",height:"35px"}),valueContainer:e=>({...e,height:"35px",padding:"0 6px"}),input:e=>({...e,margin:"0px"}),indicatorSeparator:()=>({display:"none"}),indicatorsContainer:e=>({...e,height:"35px"})}}),"role"===e.type&&(0,a.jsx)(jj,{placeholder:(0,l.__)("Select Role","notification-master"),value:e.value,onChange:n=>w("excluded_emails",[...r.slice(0,t),{...e,value:n},...r.slice(t+1)]),options:S,className:"notification-master__integration--settings__field__list__item__input",styles:{control:e=>({...e,minHeight:"20px"})}}),"user"===e.type&&(0,a.jsx)(Dj,{value:e.value,onChange:n=>w("excluded_emails",[...r.slice(0,t),{...e,value:n},...r.slice(t+1)])}),"custom"===e.type&&(0,a.jsx)(p$,{placeholder:(0,l.__)("example@domain.com or {{general.admin_email}}","notification-master"),value:e.value,onChange:n=>w("excluded_emails",[...r.slice(0,t),{...e,value:n.target.value},...r.slice(t+1)]),addonAfter:(0,a.jsx)(Tj,{}),className:"notification-master__integration--settings__field__list__item__input"}),(0,a.jsx)(gu,{danger:!0,type:"link",onClick:()=>w("excluded_emails",r.filter(((e,n)=>n!==t))),icon:(0,a.jsx)(j$,{})})]},t))),(0,a.jsx)(gu,{onClick:()=>w("excluded_emails",[...r,{type:"custom",value:""}]),children:(0,l.__)("Add Email","notification-master")})]})]}),(0,a.jsxs)("div",{className:oi()("notification-master__integration--settings__field",{required:n.subject.required}),children:[(0,a.jsx)(Yk.Title,{level:5,className:"notification-master__integration--settings__field__title",children:(0,l.__)("Subject","notification-master")}),(0,a.jsx)(p$,{value:i,onChange:e=>w("subject",e.target.value),addonAfter:(0,a.jsx)(Tj,{})})]}),(0,a.jsxs)("div",{className:oi()("notification-master__integration--settings__field",{required:n.message.required}),children:[(0,a.jsx)(Yk.Title,{level:5,className:"notification-master__integration--settings__field__title",children:(0,l.__)("Message","notification-master")}),(0,a.jsx)(Yk.Text,{type:"secondary",style:{fontSize:"12px",display:"block",marginBottom:"10px"},children:(0,l.__)("If your site does not use HTTPS, media files (such as images and videos) may not display properly in the email.","notification-master-pro")}),(0,a.jsxs)("div",{className:"notification-master__integration--settings__field__input",children:[(0,a.jsx)(gu,{onClick:()=>d(!0),style:{margin:"10px 0"},className:"notification-master__integration--settings__field__input__button",children:(0,l.__)("Merge Tags","notification-master")}),(0,a.jsx)(Bj,{value:c,onChange:e=>{w("message",e)}})]})]}),(0,a.jsxs)("div",{className:oi()("notification-master__integration--settings__field"),children:[(0,a.jsx)(Yk.Text,{type:"secondary",style:{fontSize:"12px",display:"block",marginBottom:"10px"},children:(0,l.__)("Send a test notification to check if everything is working as expected. In the real notification, the merge tags will be replaced with the actual values.","notification-master-pro")}),(0,a.jsx)($$,{title:(0,l.__)("Send a test notification to the email address?","notification-master-pro"),description:(0,a.jsx)(p$,{placeholder:(0,l.__)("Enter Email Address","notification-master-pro"),value:y,onChange:e=>x(e.target.value),style:{width:"200px",marginRight:"10px"}}),onConfirm:async()=>{if(!(0,tE.isEmail)(y))return void f({type:"error",message:(0,l.__)("Please enter an email address to send test notification.","notification-master-pro")});if((0,Up.isEmpty)(i)||(0,Up.isEmpty)(c))return void f({type:"error",message:(0,l.__)("Please enter subject and message to send test notification.","notification-master-pro")});b(!0);const e=new FormData;e.append("action","notification_master_send_test_notification"),e.append("nonce",m),e.append("email",y),e.append("subject",i),e.append("body",c);try{const t=await fetch(h,{method:"POST",body:e}),n=await t.json();n.success?f({type:"success",message:n.data.message}):f({type:"error",message:n.data.message})}catch(e){f({type:"error",message:e.data.message})}finally{b(!1)}},okText:(0,l.__)("Send","notification-master-pro"),cancelText:(0,l.__)("No","notification-master-pro"),children:(0,a.jsx)(gu,{type:"default",loading:v,disabled:v||!i||!c,children:(0,l.__)("Send Test Email","notification-master-pro")})})]})]})]})};(0,c.addFilter)("NotificationMaster.Integration","NotificationMaster.EmailIntegration",((e,t)=>"email"===t?{...e,component:Lj,available:!0}:e));const zj=function(e){var t=e.className,n=e.customizeIcon,o=e.customizeIconProps,r=e.children,i=e.onMouseDown,a=e.onClick,s="function"==typeof n?n(o):n;return p.createElement("span",{className:t,onMouseDown:function(e){e.preventDefault(),null==i||i(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},void 0!==s?s:p.createElement("span",{className:oi()(t.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},r))};var Fj=p.createContext(null);function Hj(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=p.useRef(null),n=p.useRef(null);return p.useEffect((function(){return function(){window.clearTimeout(n.current)}}),[]),[function(){return t.current},function(o){(o||null===t.current)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout((function(){t.current=null}),e)}]}var Vj=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Wj=void 0;function Kj(e,t){var n=e.prefixCls,o=e.invalidate,r=e.item,i=e.renderItem,a=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,d=e.style,f=e.children,h=e.display,m=e.order,g=e.component,v=void 0===g?"div":g,b=di(e,Vj),y=a&&!h;function x(e){l(c,e)}p.useEffect((function(){return function(){x(null)}}),[]);var w,C=i&&r!==Wj?i(r):f;o||(w={opacity:y?0:1,height:y?0:Wj,overflowY:y?"hidden":Wj,order:a?m:Wj,pointerEvents:y?"none":Wj,position:y?"absolute":Wj});var S={};y&&(S["aria-hidden"]=!0);var E=p.createElement(v,hn({className:oi()(!o&&n,u),style:$e($e({},w),d)},S,b,{ref:t}),C);return a&&(E=p.createElement(LC,{onResize:function(e){x(e.offsetWidth)},disabled:s},E)),E}var qj=p.forwardRef(Kj);qj.displayName="Item";const Uj=qj;function Gj(e,t){var n=Ge(p.useState(t),2),o=n[0],r=n[1];return[o,nl((function(t){e((function(){r(t)}))}))]}var Xj=h().createContext(null),Yj=["component"],Zj=["className"],Qj=["className"],Jj=function(e,t){var n=p.useContext(Xj);if(!n){var o=e.component,r=void 0===o?"div":o,i=di(e,Yj);return p.createElement(r,hn({},i,{ref:t}))}var a=n.className,s=di(n,Zj),l=e.className,c=di(e,Qj);return p.createElement(Xj.Provider,{value:null},p.createElement(Uj,hn({ref:t,className:oi()(a,l)},s,c)))},eM=p.forwardRef(Jj);eM.displayName="RawItem";const tM=eM;var nM=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],oM="responsive",rM="invalidate";function iM(e){return"+ ".concat(e.length," ...")}function aM(e,t){var n,o=e.prefixCls,r=void 0===o?"rc-overflow":o,i=e.data,a=void 0===i?[]:i,s=e.renderItem,l=e.renderRawItem,c=e.itemKey,u=e.itemWidth,d=void 0===u?10:u,f=e.ssr,h=e.style,m=e.className,g=e.maxCount,v=e.renderRest,b=e.renderRawRest,y=e.suffix,x=e.component,w=void 0===x?"div":x,C=e.itemComponent,S=e.onVisibleChange,E=di(e,nM),k="full"===f,$=(n=p.useRef(null),function(e){n.current||(n.current=[],function(e){if("undefined"==typeof MessageChannel)na(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){(0,pe.unstable_batchedUpdates)((function(){n.current.forEach((function(e){e()})),n.current=null}))}))),n.current.push(e)}),_=Ge(Gj($,null),2),O=_[0],j=_[1],M=O||0,P=Ge(Gj($,new Map),2),I=P[0],N=P[1],T=Ge(Gj($,0),2),R=T[0],A=T[1],D=Ge(Gj($,0),2),B=D[0],L=D[1],z=Ge(Gj($,0),2),F=z[0],H=z[1],V=Ge((0,p.useState)(null),2),W=V[0],K=V[1],q=Ge((0,p.useState)(null),2),U=q[0],G=q[1],X=p.useMemo((function(){return null===U&&k?Number.MAX_SAFE_INTEGER:U||0}),[U,O]),Y=Ge((0,p.useState)(!1),2),Z=Y[0],Q=Y[1],J="".concat(r,"-item"),ee=Math.max(R,B),te=g===oM,ne=a.length&&te,oe=g===rM,re=ne||"number"==typeof g&&a.length>g,ie=(0,p.useMemo)((function(){var e=a;return ne?e=null===O&&k?a:a.slice(0,Math.min(a.length,M/d)):"number"==typeof g&&(e=a.slice(0,g)),e}),[a,d,O,g,ne]),ae=(0,p.useMemo)((function(){return ne?a.slice(X+1):a.slice(ie.length)}),[a,ie,ne,X]),se=(0,p.useCallback)((function(e,t){var n;return"function"==typeof c?c(e):null!==(n=c&&(null==e?void 0:e[c]))&&void 0!==n?n:t}),[c]),le=(0,p.useCallback)(s||function(e){return e},[s]);function ce(e,t,n){(U!==e||void 0!==t&&t!==W)&&(G(e),n||(Q(e<a.length-1),null==S||S(e)),void 0!==t&&K(t))}function ue(e,t){N((function(n){var o=new Map(n);return null===t?o.delete(e):o.set(e,t),o}))}function de(e){return I.get(se(ie[e],e))}en((function(){if(M&&"number"==typeof ee&&ie){var e=F,t=ie.length,n=t-1;if(!t)return void ce(0,null);for(var o=0;o<t;o+=1){var r=de(o);if(k&&(r=r||0),void 0===r){ce(o-1,void 0,!0);break}if(e+=r,0===n&&e<=M||o===n-1&&e+de(n)<=M){ce(n,null);break}if(e+ee>M){ce(o-1,e-r-F+B);break}}y&&de(0)+F>M&&K(null)}}),[M,I,B,F,se,ie]);var fe=Z&&!!ae.length,he={};null!==W&&ne&&(he={position:"absolute",left:W,top:0});var me,ge={prefixCls:J,responsive:ne,component:C,invalidate:oe},ve=l?function(e,t){var n=se(e,t);return p.createElement(Xj.Provider,{key:n,value:$e($e({},ge),{},{order:t,item:e,itemKey:n,registerSize:ue,display:t<=X})},l(e,t))}:function(e,t){var n=se(e,t);return p.createElement(Uj,hn({},ge,{order:t,key:n,item:e,renderItem:le,itemKey:n,registerSize:ue,display:t<=X}))},be={order:fe?X:Number.MAX_SAFE_INTEGER,className:"".concat(J,"-rest"),registerSize:function(e,t){L(t),A(B)},display:fe};if(b)b&&(me=p.createElement(Xj.Provider,{value:$e($e({},ge),be)},b(ae)));else{var ye=v||iM;me=p.createElement(Uj,hn({},ge,be),"function"==typeof ye?ye(ae):ye)}var xe=p.createElement(w,hn({className:oi()(!oe&&r,m),style:h,ref:t},E),ie.map(ve),re?me:null,y&&p.createElement(Uj,hn({},ge,{responsive:te,responsiveDisabled:!ne,order:X,className:"".concat(J,"-suffix"),registerSize:function(e,t){H(t)},display:!0,style:he}),y));return te&&(xe=p.createElement(LC,{onResize:function(e,t){j(t.clientWidth)},disabled:!ne},xe)),xe}var sM=p.forwardRef(aM);sM.displayName="Overflow",sM.Item=tM,sM.RESPONSIVE=oM,sM.INVALIDATE=rM;const lM=sM;var cM=function(e,t){var n,o=e.prefixCls,r=e.id,i=e.inputElement,a=e.disabled,s=e.tabIndex,l=e.autoFocus,c=e.autoComplete,u=e.editable,d=e.activeDescendantId,f=e.value,h=e.maxLength,m=e.onKeyDown,g=e.onMouseDown,v=e.onChange,b=e.onPaste,y=e.onCompositionStart,x=e.onCompositionEnd,w=e.open,C=e.attrs,S=i||p.createElement("input",null),E=S,k=E.ref,$=E.props,_=$.onKeyDown,O=$.onChange,j=$.onMouseDown,M=$.onCompositionStart,P=$.onCompositionEnd,I=$.style;return S.props,p.cloneElement(S,$e($e($e({type:"search"},$),{},{id:r,ref:li(t,k),disabled:a,tabIndex:s,autoComplete:c||"off",autoFocus:l,className:oi()("".concat(o,"-selection-search-input"),null===(n=S)||void 0===n||null===(n=n.props)||void 0===n?void 0:n.className),role:"combobox","aria-expanded":w||!1,"aria-haspopup":"listbox","aria-owns":"".concat(r,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(r,"_list"),"aria-activedescendant":w?d:void 0},C),{},{value:u?f:"",maxLength:h,readOnly:!u,unselectable:u?null:"on",style:$e($e({},I),{},{opacity:u?null:0}),onKeyDown:function(e){m(e),_&&_(e)},onMouseDown:function(e){g(e),j&&j(e)},onChange:function(e){v(e),O&&O(e)},onCompositionStart:function(e){y(e),M&&M(e)},onCompositionEnd:function(e){x(e),P&&P(e)},onPaste:b}))};const uM=p.forwardRef(cM);function dM(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var fM="undefined"!=typeof window&&window.document&&window.document.documentElement;function pM(e){return["string","number"].includes(ye(e))}function hM(e){var t=void 0;return e&&(pM(e.title)?t=e.title.toString():pM(e.label)&&(t=e.label.toString())),t}function mM(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var gM=function(e){e.preventDefault(),e.stopPropagation()};const vM=function(e){var t,n,o=e.id,r=e.prefixCls,i=e.values,a=e.open,s=e.searchValue,l=e.autoClearSearchValue,c=e.inputRef,u=e.placeholder,d=e.disabled,f=e.mode,h=e.showSearch,m=e.autoFocus,g=e.autoComplete,v=e.activeDescendantId,b=e.tabIndex,y=e.removeIcon,x=e.maxTagCount,w=e.maxTagTextLength,C=e.maxTagPlaceholder,S=void 0===C?function(e){return"+ ".concat(e.length," ...")}:C,E=e.tagRender,k=e.onToggleOpen,$=e.onRemove,_=e.onInputChange,O=e.onInputPaste,j=e.onInputKeyDown,M=e.onInputMouseDown,P=e.onInputCompositionStart,I=e.onInputCompositionEnd,N=p.useRef(null),T=Ge((0,p.useState)(0),2),R=T[0],A=T[1],D=Ge((0,p.useState)(!1),2),B=D[0],L=D[1],z="".concat(r,"-selection"),F=a||"multiple"===f&&!1===l||"tags"===f?s:"",H="tags"===f||"multiple"===f&&!1===l||h&&(a||B);t=function(){A(N.current.scrollWidth)},n=[F],fM?p.useLayoutEffect(t,n):p.useEffect(t,n);var V=function(e,t,n,o,r){return p.createElement("span",{title:hM(e),className:oi()("".concat(z,"-item"),Ee({},"".concat(z,"-item-disabled"),n))},p.createElement("span",{className:"".concat(z,"-item-content")},t),o&&p.createElement(zj,{className:"".concat(z,"-item-remove"),onMouseDown:gM,onClick:r,customizeIcon:y},"×"))},W=p.createElement("div",{className:"".concat(z,"-search"),style:{width:R},onFocus:function(){L(!0)},onBlur:function(){L(!1)}},p.createElement(uM,{ref:c,open:a,prefixCls:r,id:o,inputElement:null,disabled:d,autoFocus:m,autoComplete:g,editable:H,activeDescendantId:v,value:F,onKeyDown:j,onMouseDown:M,onChange:_,onPaste:O,onCompositionStart:P,onCompositionEnd:I,tabIndex:b,attrs:Vu(e,!0)}),p.createElement("span",{ref:N,className:"".concat(z,"-search-mirror"),"aria-hidden":!0},F," ")),K=p.createElement(lM,{prefixCls:"".concat(z,"-overflow"),data:i,renderItem:function(e){var t=e.disabled,n=e.label,o=e.value,r=!d&&!t,i=n;if("number"==typeof w&&("string"==typeof n||"number"==typeof n)){var s=String(i);s.length>w&&(i="".concat(s.slice(0,w),"..."))}var l=function(t){t&&t.stopPropagation(),$(e)};return"function"==typeof E?function(e,t,n,o,r){return p.createElement("span",{onMouseDown:function(e){gM(e),k(!a)}},E({label:t,value:e,disabled:n,closable:o,onClose:r}))}(o,i,t,r,l):V(e,i,t,r,l)},renderRest:function(e){var t="function"==typeof S?S(e):S;return V({title:t},t,!1)},suffix:W,itemKey:mM,maxCount:x});return p.createElement(p.Fragment,null,K,!i.length&&!F&&p.createElement("span",{className:"".concat(z,"-placeholder")},u))},bM=function(e){var t=e.inputElement,n=e.prefixCls,o=e.id,r=e.inputRef,i=e.disabled,a=e.autoFocus,s=e.autoComplete,l=e.activeDescendantId,c=e.mode,u=e.open,d=e.values,f=e.placeholder,h=e.tabIndex,m=e.showSearch,g=e.searchValue,v=e.activeValue,b=e.maxLength,y=e.onInputKeyDown,x=e.onInputMouseDown,w=e.onInputChange,C=e.onInputPaste,S=e.onInputCompositionStart,E=e.onInputCompositionEnd,k=e.title,$=Ge(p.useState(!1),2),_=$[0],O=$[1],j="combobox"===c,M=j||m,P=d[0],I=g||"";j&&v&&!_&&(I=v),p.useEffect((function(){j&&O(!1)}),[j,v]);var N=!("combobox"!==c&&!u&&!m||!I),T=void 0===k?hM(P):k,R=p.useMemo((function(){return P?null:p.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:N?{visibility:"hidden"}:void 0},f)}),[P,N,f,n]);return p.createElement(p.Fragment,null,p.createElement("span",{className:"".concat(n,"-selection-search")},p.createElement(uM,{ref:r,prefixCls:n,id:o,open:u,inputElement:t,disabled:i,autoFocus:a,autoComplete:s,editable:M,activeDescendantId:l,value:I,onKeyDown:y,onMouseDown:x,onChange:function(e){O(!0),w(e)},onPaste:C,onCompositionStart:S,onCompositionEnd:E,tabIndex:h,attrs:Vu(e,!0),maxLength:j?b:void 0})),!j&&P?p.createElement("span",{className:"".concat(n,"-selection-item"),title:T,style:N?{visibility:"hidden"}:void 0},P.label):null,R)};var yM=function(e,t){var n=(0,p.useRef)(null),o=(0,p.useRef)(!1),r=e.prefixCls,i=e.open,a=e.mode,s=e.showSearch,l=e.tokenWithEnter,c=e.autoClearSearchValue,u=e.onSearch,d=e.onSearchSubmit,f=e.onToggleOpen,h=e.onInputKeyDown,m=e.domRef;p.useImperativeHandle(t,(function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}}));var g=Ge(Hj(0),2),v=g[0],b=g[1],y=(0,p.useRef)(null),x=function(e){!1!==u(e,!0,o.current)&&f(!0)},w={inputRef:n,onInputKeyDown:function(e){var t,n=e.which;n!==Is.UP&&n!==Is.DOWN||e.preventDefault(),h&&h(e),n!==Is.ENTER||"tags"!==a||o.current||i||null==d||d(e.target.value),t=n,[Is.ESC,Is.SHIFT,Is.BACKSPACE,Is.TAB,Is.WIN_KEY,Is.ALT,Is.META,Is.WIN_KEY_RIGHT,Is.CTRL,Is.SEMICOLON,Is.EQUALS,Is.CAPS_LOCK,Is.CONTEXT_MENU,Is.F1,Is.F2,Is.F3,Is.F4,Is.F5,Is.F6,Is.F7,Is.F8,Is.F9,Is.F10,Is.F11,Is.F12].includes(t)||f(!0)},onInputMouseDown:function(){b(!0)},onInputChange:function(e){var t=e.target.value;if(l&&y.current&&/[\r\n]/.test(y.current)){var n=y.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,y.current)}y.current=null,x(t)},onInputPaste:function(e){var t=e.clipboardData,n=null==t?void 0:t.getData("text");y.current=n||""},onInputCompositionStart:function(){o.current=!0},onInputCompositionEnd:function(e){o.current=!1,"combobox"!==a&&x(e.target.value)}},C="multiple"===a||"tags"===a?p.createElement(vM,hn({},e,w)):p.createElement(bM,hn({},e,w));return p.createElement("div",{ref:m,className:"".concat(r,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){n.current.focus()})):n.current.focus())},onMouseDown:function(e){var t=v();e.target===n.current||t||"combobox"===a||e.preventDefault(),("combobox"===a||s&&t)&&i||(i&&!1!==c&&u("",!0,!1),f())}},C)};const xM=p.forwardRef(yM);var wM=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],CM=function(e,t){var n=e.prefixCls,o=(e.disabled,e.visible),r=e.children,i=e.popupElement,a=e.animation,s=e.transitionName,l=e.dropdownStyle,c=e.dropdownClassName,u=e.direction,d=void 0===u?"ltr":u,f=e.placement,h=e.builtinPlacements,m=e.dropdownMatchSelectWidth,g=e.dropdownRender,v=e.dropdownAlign,b=e.getPopupContainer,y=e.empty,x=e.getTriggerDOMNode,w=e.onPopupVisibleChange,C=e.onPopupMouseEnter,S=di(e,wM),E="".concat(n,"-dropdown"),k=i;g&&(k=g(i));var $=p.useMemo((function(){return h||function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}}(m)}),[h,m]),_=a?"".concat(E,"-").concat(a):s,O="number"==typeof m,j=p.useMemo((function(){return O?null:!1===m?"minWidth":"width"}),[m,O]),M=l;O&&(M=$e($e({},M),{},{width:m}));var P=p.useRef(null);return p.useImperativeHandle(t,(function(){return{getPopupElement:function(){return P.current}}})),p.createElement(uS,hn({},S,{showAction:w?["click"]:[],hideAction:w?["click"]:[],popupPlacement:f||("rtl"===d?"bottomRight":"bottomLeft"),builtinPlacements:$,prefixCls:E,popupTransitionName:_,popup:p.createElement("div",{ref:P,onMouseEnter:C},k),stretch:j,popupAlign:v,popupVisible:o,getPopupContainer:b,popupClassName:oi()(c,Ee({},"".concat(E,"-empty"),y)),popupStyle:M,getTriggerDOMNode:x,onPopupVisibleChange:w}),r)};const SM=p.forwardRef(CM);function EM(e,t){var n,o=e.key;return"value"in e&&(n=e.value),null!=o?o:void 0!==n?n:"rc-index-key-".concat(t)}function kM(e,t){var n=e||{},o=n.label||(t?"children":"label");return{label:o,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||o}}function $M(e){var t=$e({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return bt(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}const _M=p.createContext(null);var OM=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],jM=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],MM=function(e){return"tags"===e||"multiple"===e},PM=p.forwardRef((function(e,t){var n,o,r=e.id,i=e.prefixCls,a=e.className,s=e.showSearch,l=e.tagRender,c=e.direction,u=e.omitDomProps,d=e.displayValues,f=e.onDisplayValuesChange,m=e.emptyOptions,g=e.notFoundContent,v=void 0===g?"Not Found":g,b=e.onClear,y=e.mode,x=e.disabled,w=e.loading,C=e.getInputElement,S=e.getRawInputElement,E=e.open,k=e.defaultOpen,$=e.onDropdownVisibleChange,_=e.activeValue,O=e.onActiveValueChange,j=e.activeDescendantId,M=e.searchValue,P=e.autoClearSearchValue,I=e.onSearch,N=e.onSearchSplit,T=e.tokenSeparators,R=e.allowClear,A=e.suffixIcon,D=e.clearIcon,B=e.OptionList,L=e.animation,z=e.transitionName,F=e.dropdownStyle,H=e.dropdownClassName,V=e.dropdownMatchSelectWidth,W=e.dropdownRender,K=e.dropdownAlign,q=e.placement,U=e.builtinPlacements,G=e.getPopupContainer,X=e.showAction,Y=void 0===X?[]:X,Z=e.onFocus,Q=e.onBlur,J=e.onKeyUp,ee=e.onKeyDown,te=e.onMouseDown,ne=di(e,OM),oe=MM(y),re=(void 0!==s?s:oe)||"combobox"===y,ie=$e({},ne);jM.forEach((function(e){delete ie[e]})),null==u||u.forEach((function(e){delete ie[e]}));var ae=Ge(p.useState(!1),2),se=ae[0],le=ae[1];p.useEffect((function(){le(zC())}),[]);var ce=p.useRef(null),ue=p.useRef(null),de=p.useRef(null),fe=p.useRef(null),pe=p.useRef(null),he=p.useRef(!1),me=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=Ge(p.useState(!1),2),n=t[0],o=t[1],r=p.useRef(null),i=function(){window.clearTimeout(r.current)};return p.useEffect((function(){return i}),[]),[n,function(t,n){i(),r.current=window.setTimeout((function(){o(t),n&&n()}),e)},i]}(),ge=Ge(me,3),ve=ge[0],be=ge[1],xe=ge[2];p.useImperativeHandle(t,(function(){var e,t;return{focus:null===(e=fe.current)||void 0===e?void 0:e.focus,blur:null===(t=fe.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=pe.current)||void 0===t?void 0:t.scrollTo(e)}}}));var we=p.useMemo((function(){var e;if("combobox"!==y)return M;var t=null===(e=d[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""}),[M,y,d]),Ce="combobox"===y&&"function"==typeof C&&C()||null,Se="function"==typeof S&&S(),ke=ci(ue,null==Se||null===(n=Se.props)||void 0===n?void 0:n.ref),_e=Ge(p.useState(!1),2),Oe=_e[0],je=_e[1];en((function(){je(!0)}),[]);var Me=Ge(rl(!1,{defaultValue:k,value:E}),2),Pe=Me[0],Ie=Me[1],Ne=!!Oe&&Pe,Te=!v&&m;(x||Te&&Ne&&"combobox"===y)&&(Ne=!1);var Re=!Te&&Ne,Ae=p.useCallback((function(e){var t=void 0!==e?e:!Ne;x||(Ie(t),Ne!==t&&(null==$||$(t)))}),[x,Ne,Ie,$]),De=p.useMemo((function(){return(T||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[T]),Be=p.useContext(_M)||{},Le=Be.maxCount,ze=Be.rawValues,Fe=function(e,t,n){if(!((null==ze?void 0:ze.size)>=Le)){var o=!0,r=e;null==O||O(null);var i=function(e,t,n){if(!t||!t.length)return null;var o=!1,r=function e(t,n){var r=Mo(n),i=r[0],a=r.slice(1);if(!i)return[t];var s=t.split(i);return o=o||s.length>1,s.reduce((function(t,n){return[].concat(Ye(t),Ye(e(n,a)))}),[]).filter(Boolean)}(e,t);return o?void 0!==n?r.slice(0,n):r:null}(e,T,Le&&Le-ze.size),a=n?null:i;return"combobox"!==y&&a&&(r="",null==N||N(a),Ae(!1),o=!1),I&&we!==r&&I(r,{source:t?"typing":"effect"}),o}};p.useEffect((function(){Ne||oe||"combobox"===y||Fe("",!1,!1)}),[Ne]),p.useEffect((function(){Pe&&x&&Ie(!1),x&&!he.current&&be(!1)}),[x]);var He=Ge(Hj(),2),Ve=He[0],We=He[1],Ke=p.useRef(!1),qe=[];p.useEffect((function(){return function(){qe.forEach((function(e){return clearTimeout(e)})),qe.splice(0,qe.length)}}),[]);var Ue,Xe=Ge(p.useState({}),2)[1];Se&&(Ue=function(e){Ae(e)}),function(e,t,n,o){var r=p.useRef(null);r.current={open:t,triggerOpen:n,customizedTrigger:o},p.useEffect((function(){function e(e){var t,n;if(null===(t=r.current)||void 0===t||!t.customizedTrigger){var o=e.target;o.shadowRoot&&e.composed&&(o=e.composedPath()[0]||o),r.current.open&&[ce.current,null===(n=de.current)||void 0===n?void 0:n.getPopupElement()].filter((function(e){return e})).every((function(e){return!e.contains(o)&&e!==o}))&&r.current.triggerOpen(!1)}}return window.addEventListener("mousedown",e),function(){return window.removeEventListener("mousedown",e)}}),[])}(0,Re,Ae,!!Se);var Ze,Qe=p.useMemo((function(){return $e($e({},e),{},{notFoundContent:v,open:Ne,triggerOpen:Re,id:r,showSearch:re,multiple:oe,toggleOpen:Ae})}),[e,v,Re,Ne,r,re,oe,Ae]),Je=!!A||w;Je&&(Ze=p.createElement(zj,{className:oi()("".concat(i,"-arrow"),Ee({},"".concat(i,"-arrow-loading"),w)),customizeIcon:A,customizeIconProps:{loading:w,searchValue:we,open:Ne,focused:ve,showSearch:re}}));var et,tt=function(e,t,n,o,r){var i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,l=h().useMemo((function(){return"object"===ye(o)?o.clearIcon:r||void 0}),[o,r]);return{allowClear:h().useMemo((function(){return!(i||!o||!n.length&&!a||"combobox"===s&&""===a)}),[o,i,n.length,a,s]),clearIcon:h().createElement(zj,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:l},"×")}}(i,(function(){var e;null==b||b(),null===(e=fe.current)||void 0===e||e.focus(),f([],{type:"clear",values:d}),Fe("",!1,!1)}),d,R,D,x,we,y),nt=tt.allowClear,ot=tt.clearIcon,rt=p.createElement(B,{ref:pe}),it=oi()(i,a,(Ee(o={},"".concat(i,"-focused"),ve),Ee(o,"".concat(i,"-multiple"),oe),Ee(o,"".concat(i,"-single"),!oe),Ee(o,"".concat(i,"-allow-clear"),R),Ee(o,"".concat(i,"-show-arrow"),Je),Ee(o,"".concat(i,"-disabled"),x),Ee(o,"".concat(i,"-loading"),w),Ee(o,"".concat(i,"-open"),Ne),Ee(o,"".concat(i,"-customize-input"),Ce),Ee(o,"".concat(i,"-show-search"),re),o)),at=p.createElement(SM,{ref:de,disabled:x,prefixCls:i,visible:Re,popupElement:rt,animation:L,transitionName:z,dropdownStyle:F,dropdownClassName:H,direction:c,dropdownMatchSelectWidth:V,dropdownRender:W,dropdownAlign:K,placement:q,builtinPlacements:U,getPopupContainer:G,empty:m,getTriggerDOMNode:function(){return ue.current},onPopupVisibleChange:Ue,onPopupMouseEnter:function(){Xe({})}},Se?p.cloneElement(Se,{ref:ke}):p.createElement(xM,hn({},e,{domRef:ue,prefixCls:i,inputElement:Ce,ref:fe,id:r,showSearch:re,autoClearSearchValue:P,mode:y,activeDescendantId:j,tagRender:l,values:d,open:Ne,onToggleOpen:Ae,activeValue:_,searchValue:we,onSearch:Fe,onSearchSubmit:function(e){e&&e.trim()&&I(e,{source:"submit"})},onRemove:function(e){var t=d.filter((function(t){return t!==e}));f(t,{type:"remove",values:[e]})},tokenWithEnter:De})));return et=Se?at:p.createElement("div",hn({className:it},ie,{ref:ce,onMouseDown:function(e){var t,n=e.target,o=null===(t=de.current)||void 0===t?void 0:t.getPopupElement();if(o&&o.contains(n)){var r=setTimeout((function(){var e,t=qe.indexOf(r);-1!==t&&qe.splice(t,1),xe(),se||o.contains(document.activeElement)||null===(e=fe.current)||void 0===e||e.focus()}));qe.push(r)}for(var i=arguments.length,a=new Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];null==te||te.apply(void 0,[e].concat(a))},onKeyDown:function(e){var t,n=Ve(),o=e.which;if(o===Is.ENTER&&("combobox"!==y&&e.preventDefault(),Ne||Ae(!0)),We(!!we),o===Is.BACKSPACE&&!n&&oe&&!we&&d.length){for(var r=Ye(d),i=null,a=r.length-1;a>=0;a-=1){var s=r[a];if(!s.disabled){r.splice(a,1),i=s;break}}i&&f(r,{type:"remove",values:[i]})}for(var l=arguments.length,c=new Array(l>1?l-1:0),u=1;u<l;u++)c[u-1]=arguments[u];Ne&&(null===(t=pe.current)||void 0===t||t.onKeyDown.apply(t,[e].concat(c))),null==ee||ee.apply(void 0,[e].concat(c))},onKeyUp:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r;Ne&&(null===(r=pe.current)||void 0===r||r.onKeyUp.apply(r,[e].concat(n))),null==J||J.apply(void 0,[e].concat(n))},onFocus:function(){be(!0),x||(Z&&!Ke.current&&Z.apply(void 0,arguments),Y.includes("focus")&&Ae(!0)),Ke.current=!0},onBlur:function(){he.current=!0,be(!1,(function(){Ke.current=!1,he.current=!1,Ae(!1)})),x||(we&&("tags"===y?I(we,{source:"submit"}):"multiple"===y&&I("",{source:"blur"})),Q&&Q.apply(void 0,arguments))}}),ve&&!Ne&&p.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(d.map((function(e){var t=e.label,n=e.value;return["number","string"].includes(ye(t))?t:n})).join(", "))),at,Ze,nt&&ot),p.createElement(Fj.Provider,{value:Qe},et)}));const IM=PM;var NM=function(){return null};NM.isSelectOptGroup=!0;const TM=NM;var RM=function(){return null};RM.isSelectOption=!0;const AM=RM;var DM=p.forwardRef((function(e,t){var n=e.height,o=e.offsetY,r=e.offsetX,i=e.children,a=e.prefixCls,s=e.onInnerResize,l=e.innerProps,c=e.rtl,u=e.extra,d={},f={display:"flex",flexDirection:"column"};return void 0!==o&&(d={height:n,position:"relative",overflow:"hidden"},f=$e($e({},f),{},Ee(Ee(Ee(Ee(Ee({transform:"translateY(".concat(o,"px)")},c?"marginRight":"marginLeft",-r),"position","absolute"),"left",0),"right",0),"top",0))),p.createElement("div",{style:d},p.createElement(LC,{onResize:function(e){e.offsetHeight&&s&&s()}},p.createElement("div",hn({style:f,className:oi()(Ee({},"".concat(a,"-holder-inner"),a)),ref:t},l),i,u)))}));DM.displayName="Filler";const BM=DM;function LM(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]}var zM=p.forwardRef((function(e,t){var n=e.prefixCls,o=e.rtl,r=e.scrollOffset,i=e.scrollRange,a=e.onStartMove,s=e.onStopMove,l=e.onScroll,c=e.horizontal,u=e.spinSize,d=e.containerSize,f=e.style,h=e.thumbStyle,m=Ge(p.useState(!1),2),g=m[0],v=m[1],b=Ge(p.useState(null),2),y=b[0],x=b[1],w=Ge(p.useState(null),2),C=w[0],S=w[1],E=!o,k=p.useRef(),$=p.useRef(),_=Ge(p.useState(!1),2),O=_[0],j=_[1],M=p.useRef(),P=function(){clearTimeout(M.current),j(!0),M.current=setTimeout((function(){j(!1)}),3e3)},I=i-d||0,N=d-u||0,T=p.useMemo((function(){return 0===r||0===I?0:r/I*N}),[r,I,N]),R=p.useRef({top:T,dragging:g,pageY:y,startTop:C});R.current={top:T,dragging:g,pageY:y,startTop:C};var A=function(e){v(!0),x(LM(e,c)),S(R.current.top),a(),e.stopPropagation(),e.preventDefault()};p.useEffect((function(){var e=function(e){e.preventDefault()},t=k.current,n=$.current;return t.addEventListener("touchstart",e),n.addEventListener("touchstart",A),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",A)}}),[]);var D=p.useRef();D.current=I;var B=p.useRef();B.current=N,p.useEffect((function(){if(g){var e,t=function(t){var n=R.current,o=n.dragging,r=n.pageY,i=n.startTop;if(na.cancel(e),o){var a=LM(t,c)-r,s=i;!E&&c?s-=a:s+=a;var u=D.current,d=B.current,f=d?s/d:0,p=Math.ceil(f*u);p=Math.max(p,0),p=Math.min(p,u),e=na((function(){l(p,c)}))}},n=function(){v(!1),s()};return window.addEventListener("mousemove",t),window.addEventListener("touchmove",t),window.addEventListener("mouseup",n),window.addEventListener("touchend",n),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),na.cancel(e)}}}),[g]),p.useEffect((function(){P()}),[r]),p.useImperativeHandle(t,(function(){return{delayHidden:P}}));var L="".concat(n,"-scrollbar"),z={position:"absolute",visibility:O?null:"hidden"},F={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return c?(z.height=8,z.left=0,z.right=0,z.bottom=0,F.height="100%",F.width=u,E?F.left=T:F.right=T):(z.width=8,z.top=0,z.bottom=0,E?z.right=0:z.left=0,F.width="100%",F.height=u,F.top=T),p.createElement("div",{ref:k,className:oi()(L,Ee(Ee(Ee({},"".concat(L,"-horizontal"),c),"".concat(L,"-vertical"),!c),"".concat(L,"-visible"),O)),style:$e($e({},z),f),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:P},p.createElement("div",{ref:$,className:oi()("".concat(L,"-thumb"),Ee({},"".concat(L,"-thumb-moving"),g)),style:$e($e({},F),h),onMouseDown:A}))}));const FM=zM;function HM(e){var t=e.children,n=e.setRef,o=p.useCallback((function(e){n(e)}),[]);return p.cloneElement(t,{ref:o})}const VM=function(){function e(){xt(this,e),Ee(this,"maps",void 0),Ee(this,"id",0),this.maps=Object.create(null)}return Ct(e,[{key:"set",value:function(e,t){this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}}]),e}();const WM="object"===("undefined"==typeof navigator?"undefined":ye(navigator))&&/Firefox/i.test(navigator.userAgent),KM=function(e,t){var n=(0,p.useRef)(!1),o=(0,p.useRef)(null),r=(0,p.useRef)({top:e,bottom:t});return r.current.top=e,r.current.bottom=t,function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=e<0&&r.current.top||e>0&&r.current.bottom;return t&&i?(clearTimeout(o.current),n.current=!1):i&&!n.current||(clearTimeout(o.current),n.current=!0,o.current=setTimeout((function(){n.current=!1}),50)),!n.current&&i}};var qM=20;function UM(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*e;return isNaN(t)&&(t=0),t=Math.max(t,qM),Math.floor(t)}var GM=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],XM=[],YM={overflowY:"auto",overflowAnchor:"none"};function ZM(e,t){var n=e.prefixCls,o=void 0===n?"rc-virtual-list":n,r=e.className,i=e.height,a=e.itemHeight,s=e.fullHeight,l=void 0===s||s,c=e.style,u=e.data,d=e.children,f=e.itemKey,h=e.virtual,m=e.direction,g=e.scrollWidth,v=e.component,b=void 0===v?"div":v,y=e.onScroll,x=e.onVirtualScroll,w=e.onVisibleChange,C=e.innerProps,S=e.extraRender,E=e.styles,k=di(e,GM),$=!(!1===h||!i||!a),_=$&&u&&(a*u.length>i||!!g),O="rtl"===m,j=oi()(o,Ee({},"".concat(o,"-rtl"),O),r),M=u||XM,P=(0,p.useRef)(),I=(0,p.useRef)(),N=Ge((0,p.useState)(0),2),T=N[0],R=N[1],A=Ge((0,p.useState)(0),2),D=A[0],B=A[1],L=Ge((0,p.useState)(!1),2),z=L[0],F=L[1],H=function(){F(!0)},V=function(){F(!1)},W=p.useCallback((function(e){return"function"==typeof f?f(e):null==e?void 0:e[f]}),[f]),K={getKey:W};function q(e){R((function(t){var n=function(e){var t=e;return Number.isNaN(ge.current)||(t=Math.min(t,ge.current)),t=Math.max(t,0)}("function"==typeof e?e(t):e);return P.current.scrollTop=n,n}))}var U=(0,p.useRef)({start:0,end:M.length}),G=(0,p.useRef)(),X=Ge(function(e,t,n){var o=Ge(p.useState(e),2),r=o[0],i=o[1],a=Ge(p.useState(null),2),s=a[0],l=a[1];return p.useEffect((function(){var o=function(e,t,n){var o,r,i=e.length,a=t.length;if(0===i&&0===a)return null;i<a?(o=e,r=t):(o=t,r=e);var s={__EMPTY_ITEM__:!0};function l(e){return void 0!==e?n(e):s}for(var c=null,u=1!==Math.abs(i-a),d=0;d<r.length;d+=1){var f=l(o[d]);if(f!==l(r[d])){c=d,u=u||f!==l(r[d+1]);break}}return null===c?null:{index:c,multiple:u}}(r||[],e||[],t);void 0!==(null==o?void 0:o.index)&&(null==n||n(o.index),l(e[o.index])),i(e)}),[e]),[s]}(M,W),1)[0];G.current=X;var Y=function(e,t,n){var o=Ge(p.useState(0),2),r=o[0],i=o[1],a=(0,p.useRef)(new Map),s=(0,p.useRef)(new VM),l=(0,p.useRef)();function c(){na.cancel(l.current)}function u(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];c();var t=function(){a.current.forEach((function(e,t){if(e&&e.offsetParent){var n=ii(e),o=n.offsetHeight;s.current.get(t)!==o&&s.current.set(t,n.offsetHeight)}})),i((function(e){return e+1}))};e?t():l.current=na(t)}return(0,p.useEffect)((function(){return c}),[]),[function(t,n){var o=e(t);a.current.get(o);n?(a.current.set(o,n),u()):a.current.delete(o)},u,s.current,r]}(W),Z=Ge(Y,4),Q=Z[0],J=Z[1],ee=Z[2],te=Z[3],ne=p.useMemo((function(){if(!$)return{scrollHeight:void 0,start:0,end:M.length-1,offset:void 0};var e;if(!_)return{scrollHeight:(null===(e=I.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:M.length-1,offset:void 0};for(var t,n,o,r=0,s=M.length,l=0;l<s;l+=1){var c=M[l],u=W(c),d=ee.get(u),f=r+(void 0===d?a:d);f>=T&&void 0===t&&(t=l,n=r),f>T+i&&void 0===o&&(o=l),r=f}return void 0===t&&(t=0,n=0,o=Math.ceil(i/a)),void 0===o&&(o=M.length-1),{scrollHeight:r,start:t,end:o=Math.min(o+1,M.length-1),offset:n}}),[_,$,T,M,te,i]),oe=ne.scrollHeight,re=ne.start,ie=ne.end,ae=ne.offset;U.current.start=re,U.current.end=ie;var se=Ge(p.useState({width:0,height:i}),2),le=se[0],ce=se[1],ue=(0,p.useRef)(),de=(0,p.useRef)(),fe=p.useMemo((function(){return UM(le.width,g)}),[le.width,g]),he=p.useMemo((function(){return UM(le.height,oe)}),[le.height,oe]),me=oe-i,ge=(0,p.useRef)(me);ge.current=me;var ve=T<=0,be=T>=me,xe=KM(ve,be),we=function(){return{x:O?-D:D,y:T}},Ce=(0,p.useRef)(we()),Se=nl((function(){if(x){var e=we();Ce.current.x===e.x&&Ce.current.y===e.y||(x(e),Ce.current=e)}}));function ke(e,t){var n=e;t?((0,pe.flushSync)((function(){B(n)})),Se()):q(n)}var _e=function(e){var t=e,n=g-le.width;return t=Math.max(t,0),Math.min(t,n)},Oe=nl((function(e,t){t?((0,pe.flushSync)((function(){B((function(t){return _e(t+(O?-e:e))}))})),Se()):q((function(t){return t+e}))})),je=Ge(function(e,t,n,o,r){var i=(0,p.useRef)(0),a=(0,p.useRef)(null),s=(0,p.useRef)(null),l=(0,p.useRef)(!1),c=KM(t,n),u=(0,p.useRef)(null),d=(0,p.useRef)(null);return[function(t){if(e){na.cancel(d.current),d.current=na((function(){u.current=null}),2);var n=t.deltaX,f=t.deltaY,p=t.shiftKey,h=n,m=f;("sx"===u.current||!u.current&&p&&f&&!n)&&(h=f,m=0,u.current="sx");var g=Math.abs(h),v=Math.abs(m);null===u.current&&(u.current=o&&g>v?"x":"y"),"y"===u.current?function(e,t){na.cancel(a.current),i.current+=t,s.current=t,c(t)||(WM||e.preventDefault(),a.current=na((function(){var e=l.current?10:1;r(i.current*e),i.current=0})))}(t,m):function(e,t){r(t,!0),WM||e.preventDefault()}(t,h)}},function(t){e&&(l.current=t.detail===s.current)}]}($,ve,be,!!g,Oe),2),Me=je[0],Pe=je[1];!function(e,t,n){var o,r=(0,p.useRef)(!1),i=(0,p.useRef)(0),a=(0,p.useRef)(null),s=(0,p.useRef)(null),l=function(e){if(r.current){var t=Math.ceil(e.touches[0].pageY),o=i.current-t;i.current=t,n(o)&&e.preventDefault(),clearInterval(s.current),s.current=setInterval((function(){(!n(o*=.9333333333333333,!0)||Math.abs(o)<=.1)&&clearInterval(s.current)}),16)}},c=function(){r.current=!1,o()},u=function(e){o(),1!==e.touches.length||r.current||(r.current=!0,i.current=Math.ceil(e.touches[0].pageY),a.current=e.target,a.current.addEventListener("touchmove",l),a.current.addEventListener("touchend",c))};o=function(){a.current&&(a.current.removeEventListener("touchmove",l),a.current.removeEventListener("touchend",c))},en((function(){return e&&t.current.addEventListener("touchstart",u),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",u),o(),clearInterval(s.current)}}),[e])}($,P,(function(e,t){return!xe(e,t)&&(Me({preventDefault:function(){},deltaY:e}),!0)})),en((function(){function e(e){$&&e.preventDefault()}var t=P.current;return t.addEventListener("wheel",Me),t.addEventListener("DOMMouseScroll",Pe),t.addEventListener("MozMousePixelScroll",e),function(){t.removeEventListener("wheel",Me),t.removeEventListener("DOMMouseScroll",Pe),t.removeEventListener("MozMousePixelScroll",e)}}),[$]),en((function(){g&&B((function(e){return _e(e)}))}),[le.width,g]);var Ie=function(){var e,t;null===(e=ue.current)||void 0===e||e.delayHidden(),null===(t=de.current)||void 0===t||t.delayHidden()},Ne=function(e,t,n,o,r,i,a,s){var l=p.useRef(),c=Ge(p.useState(null),2),u=c[0],d=c[1];return en((function(){if(u&&u.times<10){if(!e.current)return void d((function(e){return $e({},e)}));i();var s=u.targetAlign,l=u.originAlign,c=u.index,f=u.offset,p=e.current.clientHeight,h=!1,m=s,g=null;if(p){for(var v=s||l,b=0,y=0,x=0,w=Math.min(t.length-1,c),C=0;C<=w;C+=1){var S=r(t[C]);y=b;var E=n.get(S);b=x=y+(void 0===E?o:E)}for(var k="top"===v?f:p-f,$=w;$>=0;$-=1){var _=r(t[$]),O=n.get(_);if(void 0===O){h=!0;break}if((k-=O)<=0)break}switch(v){case"top":g=y-f;break;case"bottom":g=x-p+f;break;default:var j=e.current.scrollTop;y<j?m="top":x>j+p&&(m="bottom")}null!==g&&a(g),g!==u.lastTop&&(h=!0)}h&&d($e($e({},u),{},{times:u.times+1,targetAlign:m,lastTop:g}))}}),[u,e.current]),function(e){if(null!=e){if(na.cancel(l.current),"number"==typeof e)a(e);else if(e&&"object"===ye(e)){var n,o=e.align;n="index"in e?e.index:t.findIndex((function(t){return r(t)===e.key}));var i=e.offset;d({times:0,index:n,offset:void 0===i?0:i,originAlign:o})}}else s()}}(P,M,ee,a,W,(function(){return J(!0)}),q,Ie);p.useImperativeHandle(t,(function(){return{getScrollInfo:we,scrollTo:function(e){var t;(t=e)&&"object"===ye(t)&&("left"in t||"top"in t)?(void 0!==e.left&&B(_e(e.left)),Ne(e.top)):Ne(e)}}})),en((function(){if(w){var e=M.slice(re,ie+1);w(e,M)}}),[re,ie,M]);var Te=function(e,t,n,o){var r=Ge(p.useMemo((function(){return[new Map,[]]}),[e,n.id,o]),2),i=r[0],a=r[1];return function(r){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,l=i.get(r),c=i.get(s);if(void 0===l||void 0===c)for(var u=e.length,d=a.length;d<u;d+=1){var f,p=e[d],h=t(p);i.set(h,d);var m=null!==(f=n.get(h))&&void 0!==f?f:o;if(a[d]=(a[d-1]||0)+m,h===r&&(l=d),h===s&&(c=d),void 0!==l&&void 0!==c)break}return{top:a[l-1]||0,bottom:a[c]}}}(M,W,ee,a),Re=null==S?void 0:S({start:re,end:ie,virtual:_,offsetX:D,offsetY:ae,rtl:O,getSize:Te}),Ae=function(e,t,n,o,r,i,a){var s=a.getKey;return e.slice(t,n+1).map((function(e,n){var a=i(e,t+n,{style:{width:o}}),l=s(e);return p.createElement(HM,{key:l,setRef:function(t){return r(e,t)}},a)}))}(M,re,ie,g,Q,d,K),De=null;i&&(De=$e(Ee({},l?"height":"maxHeight",i),YM),$&&(De.overflowY="hidden",g&&(De.overflowX="hidden"),z&&(De.pointerEvents="none")));var Be={};return O&&(Be.dir="rtl"),p.createElement("div",hn({style:$e($e({},c),{},{position:"relative"}),className:j},Be,k),p.createElement(LC,{onResize:function(e){ce({width:e.width||e.offsetWidth,height:e.height||e.offsetHeight})}},p.createElement(b,{className:"".concat(o,"-holder"),style:De,ref:P,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==T&&q(t),null==y||y(e),Se()},onMouseEnter:Ie},p.createElement(BM,{prefixCls:o,height:oe,offsetX:D,offsetY:ae,scrollWidth:g,onInnerResize:J,ref:I,innerProps:C,rtl:O,extra:Re},Ae))),_&&oe>i&&p.createElement(FM,{ref:ue,prefixCls:o,scrollOffset:T,scrollRange:oe,rtl:O,onScroll:ke,onStartMove:H,onStopMove:V,spinSize:he,containerSize:le.height,style:null==E?void 0:E.verticalScrollBar,thumbStyle:null==E?void 0:E.verticalScrollBarThumb}),_&&g>le.width&&p.createElement(FM,{ref:de,prefixCls:o,scrollOffset:D,scrollRange:g,rtl:O,onScroll:ke,onStartMove:H,onStopMove:V,spinSize:fe,containerSize:le.width,horizontal:!0,style:null==E?void 0:E.horizontalScrollBar,thumbStyle:null==E?void 0:E.horizontalScrollBarThumb}))}var QM=p.forwardRef(ZM);QM.displayName="List";const JM=QM;var eP=["disabled","title","children","style","className"];function tP(e){return"string"==typeof e||"number"==typeof e}var nP=function(e,t){var n=p.useContext(Fj),o=n.prefixCls,r=n.id,i=n.open,a=n.multiple,s=n.mode,l=n.searchValue,c=n.toggleOpen,u=n.notFoundContent,d=n.onPopupScroll,f=p.useContext(_M),h=f.maxCount,m=f.flattenOptions,g=f.onActiveValue,v=f.defaultActiveFirstOption,b=f.onSelect,y=f.menuItemSelectedIcon,x=f.rawValues,w=f.fieldNames,C=f.virtual,S=f.direction,E=f.listHeight,k=f.listItemHeight,$=f.optionRender,_="".concat(o,"-item"),O=dt((function(){return m}),[i,m],(function(e,t){return t[0]&&e[1]!==t[1]})),j=p.useRef(null),M=p.useMemo((function(){return a&&void 0!==h&&(null==x?void 0:x.size)>=h}),[a,h,null==x?void 0:x.size]),P=function(e){e.preventDefault()},I=function(e){var t;null===(t=j.current)||void 0===t||t.scrollTo("number"==typeof e?{index:e}:e)},N=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=O.length,o=0;o<n;o+=1){var r=(e+o*t+n)%n,i=O[r]||{},a=i.group,s=i.data;if(!(a||null!=s&&s.disabled||M))return r}return-1},T=Ge(p.useState((function(){return N(0)})),2),R=T[0],A=T[1],D=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];A(e);var n={source:t?"keyboard":"mouse"},o=O[e];o?g(o.value,e,n):g(null,-1,n)};(0,p.useEffect)((function(){D(!1!==v?N(0):-1)}),[O.length,l]);var B=p.useCallback((function(e){return x.has(e)&&"combobox"!==s}),[s,Ye(x).toString(),x.size]);(0,p.useEffect)((function(){var e,t=setTimeout((function(){if(!a&&i&&1===x.size){var e=Array.from(x)[0],t=O.findIndex((function(t){return t.data.value===e}));-1!==t&&(D(t),I(t))}}));return i&&(null===(e=j.current)||void 0===e||e.scrollTo(void 0)),function(){return clearTimeout(t)}}),[i,l]);var L=function(e){void 0!==e&&b(e,{selected:!x.has(e)}),a||c(!1)};if(p.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case Is.N:case Is.P:case Is.UP:case Is.DOWN:var o=0;if(t===Is.UP?o=-1:t===Is.DOWN?o=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===Is.N?o=1:t===Is.P&&(o=-1)),0!==o){var r=N(R+o,o);I(r),D(r,!0)}break;case Is.ENTER:var a,s=O[R];!s||null!=s&&null!==(a=s.data)&&void 0!==a&&a.disabled||M?L(void 0):L(s.value),i&&e.preventDefault();break;case Is.ESC:c(!1),i&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){I(e)}}})),0===O.length)return p.createElement("div",{role:"listbox",id:"".concat(r,"_list"),className:"".concat(_,"-empty"),onMouseDown:P},u);var z=Object.keys(w).map((function(e){return w[e]})),F=function(e){return e.label};function H(e,t){return{role:e.group?"presentation":"option",id:"".concat(r,"_list_").concat(t)}}var V=function(e){var t=O[e];if(!t)return null;var n=t.data||{},o=n.value,r=t.group,i=Vu(n,!0),a=F(t);return t?p.createElement("div",hn({"aria-label":"string"!=typeof a||r?null:a},i,{key:e},H(t,e),{"aria-selected":B(o)}),o):null},W={role:"listbox",id:"".concat(r,"_list")};return p.createElement(p.Fragment,null,C&&p.createElement("div",hn({},W,{style:{height:0,width:0,overflow:"hidden"}}),V(R-1),V(R),V(R+1)),p.createElement(JM,{itemKey:"key",ref:j,data:O,height:E,itemHeight:k,fullHeight:!1,onMouseDown:P,onScroll:d,virtual:C,direction:S,innerProps:C?null:W},(function(e,t){var n,o=e.group,r=e.groupOption,i=e.data,a=e.label,s=e.value,l=i.key;if(o){var c,u=null!==(c=i.title)&&void 0!==c?c:tP(a)?a.toString():void 0;return p.createElement("div",{className:oi()(_,"".concat(_,"-group")),title:u},void 0!==a?a:l)}var d=i.disabled,f=i.title,h=(i.children,i.style),m=i.className,g=Jl(di(i,eP),z),v=B(s),b=d||!v&&M,x="".concat(_,"-option"),w=oi()(_,x,m,(Ee(n={},"".concat(x,"-grouped"),r),Ee(n,"".concat(x,"-active"),R===t&&!b),Ee(n,"".concat(x,"-disabled"),b),Ee(n,"".concat(x,"-selected"),v),n)),S=F(e),E=!y||"function"==typeof y||v,k="number"==typeof S?S:S||s,O=tP(k)?k.toString():void 0;return void 0!==f&&(O=f),p.createElement("div",hn({},Vu(g),C?{}:H(e,t),{"aria-selected":v,className:w,title:O,onMouseMove:function(){R===t||b||D(t)},onClick:function(){b||L(s)},style:h}),p.createElement("div",{className:"".concat(x,"-content")},"function"==typeof $?$(e,{index:t}):k),p.isValidElement(y)||v,E&&p.createElement(zj,{className:"".concat(_,"-option-state"),customizeIcon:y,customizeIconProps:{value:s,disabled:b,isSelected:v}},v?"✓":null))})))};const oP=p.forwardRef(nP);function rP(e,t){return dM(e).join("").toUpperCase().includes(t)}var iP=0,aP=Qe();var sP=["children","value"],lP=["children"];function cP(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return hc(e).map((function(e,n){if(!p.isValidElement(e)||!e.type)return null;var o=e,r=o.type.isSelectOptGroup,i=o.key,a=o.props,s=a.children,l=di(a,lP);return t||!r?function(e){var t=e,n=t.key,o=t.props,r=o.children,i=o.value;return $e({key:n,value:void 0!==i?i:n,children:r},di(o,sP))}(e):$e($e({key:"__RC_SELECT_GRP__".concat(null===i?n:i,"__"),label:i},l),{},{options:cP(s)})})).filter((function(e){return e}))}const uP=function(e,t,n,o,r){return p.useMemo((function(){var i=e;!e&&(i=cP(t));var a=new Map,s=new Map,l=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(t){for(var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=0;c<t.length;c+=1){var u=t[c];!u[n.options]||i?(a.set(u[n.value],u),l(s,u,n.label),l(s,u,o),l(s,u,r)):e(u[n.options],!0)}}(i),{options:i,valueOptions:a,labelOptions:s}}),[e,t,n,o,r])};function dP(e){var t=p.useRef();t.current=e;var n=p.useCallback((function(){return t.current.apply(t,arguments)}),[]);return n}var fP=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange","maxCount"],pP=["inputValue"],hP=p.forwardRef((function(e,t){var n=e.id,o=e.mode,r=e.prefixCls,i=void 0===r?"rc-select":r,a=e.backfill,s=e.fieldNames,l=e.inputValue,c=e.searchValue,u=e.onSearch,d=e.autoClearSearchValue,f=void 0===d||d,h=e.onSelect,m=e.onDeselect,g=e.dropdownMatchSelectWidth,v=void 0===g||g,b=e.filterOption,y=e.filterSort,x=e.optionFilterProp,w=e.optionLabelProp,C=e.options,S=e.optionRender,E=e.children,k=e.defaultActiveFirstOption,$=e.menuItemSelectedIcon,_=e.virtual,O=e.direction,j=e.listHeight,M=void 0===j?200:j,P=e.listItemHeight,I=void 0===P?20:P,N=e.value,T=e.defaultValue,R=e.labelInValue,A=e.onChange,D=e.maxCount,B=di(e,fP),L=function(e){var t=Ge(p.useState(),2),n=t[0],o=t[1];return p.useEffect((function(){var e;o("rc_select_".concat((aP?(e=iP,iP+=1):e="TEST_OR_SSR",e)))}),[]),e||n}(n),z=MM(o),F=!(C||!E),H=p.useMemo((function(){return(void 0!==b||"combobox"!==o)&&b}),[b,o]),V=p.useMemo((function(){return kM(s,F)}),[JSON.stringify(s),F]),W=Ge(rl("",{value:void 0!==c?c:l,postState:function(e){return e||""}}),2),K=W[0],q=W[1],U=uP(C,E,V,x,w),G=U.valueOptions,X=U.labelOptions,Y=U.options,Z=p.useCallback((function(e){return dM(e).map((function(e){var t,n,o,r,i,a;!function(e){return!e||"object"!==ye(e)}(e)?(o=e.key,n=e.label,t=null!==(a=e.value)&&void 0!==a?a:o):t=e;var s,l=G.get(t);return l&&(void 0===n&&(n=null==l?void 0:l[w||V.label]),void 0===o&&(o=null!==(s=null==l?void 0:l.key)&&void 0!==s?s:t),r=null==l?void 0:l.disabled,i=null==l?void 0:l.title),{label:n,value:t,key:o,disabled:r,title:i}}))}),[V,w,G]),Q=Ge(rl(T,{value:N}),2),J=Q[0],ee=Q[1],te=p.useMemo((function(){var e,t=Z(z&&null===J?[]:J);return"combobox"===o&&function(e){return!e&&0!==e}(null===(e=t[0])||void 0===e?void 0:e.value)?[]:t}),[J,Z,o,z]),ne=function(e,t){var n=p.useRef({values:new Map,options:new Map});return[p.useMemo((function(){var o=n.current,r=o.values,i=o.options,a=e.map((function(e){var t;return void 0===e.label?$e($e({},e),{},{label:null===(t=r.get(e.value))||void 0===t?void 0:t.label}):e})),s=new Map,l=new Map;return a.forEach((function(e){s.set(e.value,e),l.set(e.value,t.get(e.value)||i.get(e.value))})),n.current.values=s,n.current.options=l,a}),[e,t]),p.useCallback((function(e){return t.get(e)||n.current.options.get(e)}),[t])]}(te,G),oe=Ge(ne,2),re=oe[0],ie=oe[1],ae=p.useMemo((function(){if(!o&&1===re.length){var e=re[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return re.map((function(e){var t;return $e($e({},e),{},{label:null!==(t=e.label)&&void 0!==t?t:e.value})}))}),[o,re]),se=p.useMemo((function(){return new Set(re.map((function(e){return e.value})))}),[re]);p.useEffect((function(){if("combobox"===o){var e,t=null===(e=re[0])||void 0===e?void 0:e.value;q(function(e){return null!=e}(t)?String(t):"")}}),[re]);var le=dP((function(e,t){var n,o=null!=t?t:e;return Ee(n={},V.value,e),Ee(n,V.label,o),n})),ce=function(e,t,n,o,r){return p.useMemo((function(){if(!n||!1===o)return e;var i=t.options,a=t.label,s=t.value,l=[],c="function"==typeof o,u=n.toUpperCase(),d=c?o:function(e,t){return r?rP(t[r],u):t[i]?rP(t["children"!==a?a:"label"],u):rP(t[s],u)},f=c?function(e){return $M(e)}:function(e){return e};return e.forEach((function(e){if(e[i])if(d(n,f(e)))l.push(e);else{var t=e[i].filter((function(e){return d(n,f(e))}));t.length&&l.push($e($e({},e),{},Ee({},i,t)))}else d(n,f(e))&&l.push(e)})),l}),[e,o,r,n,t])}(p.useMemo((function(){if("tags"!==o)return Y;var e=Ye(Y);return Ye(re).sort((function(e,t){return e.value<t.value?-1:1})).forEach((function(t){var n=t.value;(function(e){return G.has(e)})(n)||e.push(le(n,t.label))})),e}),[le,Y,G,re,o]),V,K,H,x),ue=p.useMemo((function(){return"tags"!==o||!K||ce.some((function(e){return e[x||"value"]===K}))||ce.some((function(e){return e[V.value]===K}))?ce:[le(K)].concat(Ye(ce))}),[le,x,o,ce,K,V]),de=p.useMemo((function(){return y?Ye(ue).sort((function(e,t){return y(e,t)})):ue}),[ue,y]),fe=p.useMemo((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,o=t.childrenAsData,r=[],i=kM(n,!1),a=i.label,s=i.value,l=i.options,c=i.groupLabel;return function e(t,n){Array.isArray(t)&&t.forEach((function(t){if(n||!(l in t)){var i=t[s];r.push({key:EM(t,r.length),groupOption:n,data:t,label:t[a],value:i})}else{var u=t[c];void 0===u&&o&&(u=t.label),r.push({key:EM(t,r.length),group:!0,data:t,label:u}),e(t[l],!0)}}))}(e,!1),r}(de,{fieldNames:V,childrenAsData:F})}),[de,V,F]),pe=function(e){var t=Z(e);if(ee(t),A&&(t.length!==re.length||t.some((function(e,t){var n;return(null===(n=re[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))){var n=R?t:t.map((function(e){return e.value})),o=t.map((function(e){return $M(ie(e.value))}));A(z?n:n[0],z?o:o[0])}},he=Ge(p.useState(null),2),me=he[0],ge=he[1],ve=Ge(p.useState(0),2),be=ve[0],xe=ve[1],we=void 0!==k?k:"combobox"!==o,Ce=p.useCallback((function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,r=void 0===n?"keyboard":n;xe(t),a&&"combobox"===o&&null!==e&&"keyboard"===r&&ge(String(e))}),[a,o]),Se=function(e,t,n){var o=function(){var t,n=ie(e);return[R?{label:null==n?void 0:n[V.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,$M(n)]};if(t&&h){var r=Ge(o(),2),i=r[0],a=r[1];h(i,a)}else if(!t&&m&&"clear"!==n){var s=Ge(o(),2),l=s[0],c=s[1];m(l,c)}},ke=dP((function(e,t){var n,r=!z||t.selected;n=r?z?[].concat(Ye(re),[e]):[e]:re.filter((function(t){return t.value!==e})),pe(n),Se(e,r),"combobox"===o?ge(""):MM&&!f||(q(""),ge(""))})),_e=p.useMemo((function(){var e=!1!==_&&!1!==v;return $e($e({},U),{},{flattenOptions:fe,onActiveValue:Ce,defaultActiveFirstOption:we,onSelect:ke,menuItemSelectedIcon:$,rawValues:se,fieldNames:V,virtual:e,direction:O,listHeight:M,listItemHeight:I,childrenAsData:F,maxCount:D,optionRender:S})}),[D,U,fe,Ce,we,ke,$,se,V,_,v,O,M,I,F,S]);return p.createElement(_M.Provider,{value:_e},p.createElement(IM,hn({},B,{id:L,prefixCls:i,ref:t,omitDomProps:pP,mode:o,displayValues:ae,onDisplayValuesChange:function(e,t){pe(e);var n=t.type,o=t.values;"remove"!==n&&"clear"!==n||o.forEach((function(e){Se(e.value,!1,n)}))},direction:O,searchValue:K,onSearch:function(e,t){if(q(e),ge(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===o&&pe(e),null==u||u(e));else{var n=(e||"").trim();if(n){var r=Array.from(new Set([].concat(Ye(se),[n])));pe(r),Se(n,!0),q("")}}},autoClearSearchValue:f,onSearchSplit:function(e){var t=e;"tags"!==o&&(t=e.map((function(e){var t=X.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat(Ye(se),Ye(t))));pe(n),n.forEach((function(e){Se(e,!0)}))},dropdownMatchSelectWidth:v,OptionList:oP,emptyOptions:!fe.length,activeValue:me,activeDescendantId:"".concat(L,"_list_").concat(be)})))})),mP=hP;mP.Option=AM,mP.OptGroup=TM;const gP=mP,vP=()=>{const[,e]=Oa(),t=new Dr(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return p.createElement("svg",{style:t,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},p.createElement("g",{fill:"none",fillRule:"evenodd"},p.createElement("g",{transform:"translate(24 31.67)"},p.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),p.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),p.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),p.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),p.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),p.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),p.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},p.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),p.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},bP=()=>{const[,e]=Oa(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:o,colorBgContainer:r}=e,{borderColor:i,shadowColor:a,contentColor:s}=(0,p.useMemo)((()=>({borderColor:new Dr(t).onBackground(r).toHexShortString(),shadowColor:new Dr(n).onBackground(r).toHexShortString(),contentColor:new Dr(o).onBackground(r).toHexShortString()})),[t,n,o,r]);return p.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},p.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},p.createElement("ellipse",{fill:a,cx:"32",cy:"33",rx:"32",ry:"7"}),p.createElement("g",{fillRule:"nonzero",stroke:i},p.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),p.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:s}))))},yP=e=>{const{componentCls:t,margin:n,marginXS:o,marginXL:r,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:o,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:o,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:r,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:o,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},xP=hl("Empty",(e=>{const{componentCls:t,controlHeightLG:n,calc:o}=e,r=Js(e,{emptyImgCls:`${t}-img`,emptyImgHeight:o(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:o(n).mul(.875).equal()});return[yP(r)]}));const wP=p.createElement(vP,null),CP=p.createElement(bP,null),SP=e=>{var{className:t,rootClassName:n,prefixCls:o,image:r=wP,description:i,children:a,imageStyle:s,style:l}=e,c=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:u,direction:d,empty:f}=p.useContext(He),h=u("empty",o),[m,g,v]=xP(h),[b]=Ql("Empty"),y=void 0!==i?i:null==b?void 0:b.description,x="string"==typeof y?y:"empty";let w=null;return w="string"==typeof r?p.createElement("img",{alt:x,src:r}):r,m(p.createElement("div",Object.assign({className:oi()(g,v,h,null==f?void 0:f.className,{[`${h}-normal`]:r===CP,[`${h}-rtl`]:"rtl"===d},t,n),style:Object.assign(Object.assign({},null==f?void 0:f.style),l)},c),p.createElement("div",{className:`${h}-image`,style:s},w),y&&p.createElement("div",{className:`${h}-description`},y),a&&p.createElement("div",{className:`${h}-footer`},a)))};SP.PRESENTED_IMAGE_DEFAULT=wP,SP.PRESENTED_IMAGE_SIMPLE=CP;const EP=SP,kP=e=>{const{componentName:t}=e,{getPrefixCls:n}=(0,p.useContext)(He),o=n("empty");switch(t){case"Table":case"List":return h().createElement(EP,{image:EP.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return h().createElement(EP,{image:EP.PRESENTED_IMAGE_SIMPLE,className:`${o}-small`});default:return h().createElement(EP,null)}},$P=function(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}})(t)},_P=new _o("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),OP=new _o("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),jP=new _o("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),MP=new _o("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),PP=new _o("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),IP=new _o("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),NP=new _o("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),TP=new _o("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),RP={"slide-up":{inKeyframes:_P,outKeyframes:OP},"slide-down":{inKeyframes:jP,outKeyframes:MP},"slide-left":{inKeyframes:PP,outKeyframes:IP},"slide-right":{inKeyframes:NP,outKeyframes:TP}},AP=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:i}=RP[t];return[jf(o,r,i,e.motionDurationMid),{[`\n      ${o}-enter,\n      ${o}-appear\n    `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},DP=new _o("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),BP=new _o("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),LP=new _o("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),zP=new _o("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),FP=new _o("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),HP=new _o("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),VP={"move-up":{inKeyframes:new _o("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new _o("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:DP,outKeyframes:BP},"move-left":{inKeyframes:LP,outKeyframes:zP},"move-right":{inKeyframes:FP,outKeyframes:HP}},WP=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:i}=VP[t];return[jf(o,r,i,e.motionDurationMid),{[`\n        ${o}-enter,\n        ${o}-appear\n      `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},KP=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:o,optionPadding:r}=e;return{position:"relative",display:"block",minHeight:t,padding:r,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:o,boxSizing:"border-box"}},qP=e=>{const{antCls:t,componentCls:n}=e,o=`${n}-item`,r=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},Ia(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`\n          ${r}${s}bottomLeft,\n          ${i}${s}bottomLeft\n        `]:{animationName:_P},[`\n          ${r}${s}topLeft,\n          ${i}${s}topLeft,\n          ${r}${s}topRight,\n          ${i}${s}topRight\n        `]:{animationName:jP},[`${a}${s}bottomLeft`]:{animationName:OP},[`\n          ${a}${s}topLeft,\n          ${a}${s}topRight\n        `]:{animationName:MP},"&-hidden":{display:"none"},[`${o}`]:Object.assign(Object.assign({},KP(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Pa),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${o}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${o}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${o}-option-state`]:{color:e.colorPrimary},[`&:has(+ ${o}-option-selected:not(${o}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${o}-option-selected:not(${o}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${o}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},KP(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},AP(e,"slide-up"),AP(e,"slide-down"),WP(e,"move-up"),WP(e,"move-down")]},UP=(e,t)=>{const{componentCls:n,iconCls:o}=e,r=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,a=(e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:o}=e;return e.calc(n).sub(t).div(2).sub(o).equal()})(e);return{[`${n}-multiple${t?`${n}-${t}`:""}`]:{[r]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:e.calc(2).mul(2).equal(),paddingBlock:e.calc(a).sub(2).equal(),borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${qt(2)} 0`,lineHeight:qt(i),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:i,marginTop:2,marginBottom:2,lineHeight:qt(e.calc(i).sub(e.calc(e.lineWidth).mul(2)).equal()),borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,marginInlineEnd:e.calc(2).mul(2).equal(),paddingInlineStart:e.paddingXS,paddingInlineEnd:e.calc(e.paddingXS).div(2).equal(),[`${n}-disabled&`]:{color:e.multipleItemColorDisabled,borderColor:e.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(e.paddingXS).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},{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"}}),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${o}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${r}-item + ${r}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${r}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(a).equal(),"\n          &-input,\n          &-mirror\n        ":{height:i,fontFamily:e.fontFamily,lineHeight:qt(i),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}};function GP(e,t){const{componentCls:n}=e,o={[`${n}-multiple${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`\n        &${n}-show-arrow ${n}-selector,\n        &${n}-allow-clear ${n}-selector\n      `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[UP(e,t),o]}const XP=e=>{const{componentCls:t}=e,n=Js(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),o=Js(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[GP(e),GP(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},GP(o,"lg")]};function YP(e,t){const{componentCls:n,inputPaddingHorizontalBase:o,borderRadius:r}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal();return{[`${n}-single${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},Ia(e,!0)),{display:"flex",borderRadius:r,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:o,insetInlineEnd:o,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[`\n          ${n}-selection-item,\n          ${n}-selection-placeholder\n        `]:{padding:0,lineHeight:qt(i),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n        &${n}-show-arrow ${n}-selection-item,\n        &${n}-show-arrow ${n}-selection-placeholder\n      `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${qt(o)}`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:qt(i)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${qt(o)}`,"&:after":{display:"none"}}}}}}}function ZP(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[YP(e),YP(Js(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${qt(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`\n            &${t}-show-arrow ${t}-selection-item,\n            &${t}-show-arrow ${t}-selection-placeholder\n          `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},YP(Js(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const QP=(e,t)=>{const{componentCls:n,antCls:o,controlOutlineWidth:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${qt(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${o}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${qt(r)} ${t.activeShadowColor}`,outline:0}}}},JP=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},QP(e,t))}),eI=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},QP(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),JP(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),JP(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeShadowColor:e.colorWarningOutline})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${qt(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),tI=(e,t)=>{const{componentCls:n,antCls:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${qt(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${o}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},nI=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},tI(e,t))}),oI=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},tI(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),nI(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),nI(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${qt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),rI=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",borderColor:"transparent"},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${qt(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}),iI=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},eI(e)),oI(e)),rI(e))}),aI=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},sI=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},lI=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:o,iconCls:r}=e;return{[n]:Object.assign(Object.assign({},Ia(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},aI(e)),sI(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Pa),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Pa),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},{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"}}),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[r]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-arrow:not(:last-child)`]:{opacity:0}}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(o).add(e.fontSize).add(e.paddingXS).equal()}}}},cI=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},lI(e),ZP(e),XP(e),qP(e),{[`${t}-rtl`]:{direction:"rtl"}},cu(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},uI=hl("Select",((e,t)=>{let{rootPrefixCls:n}=t;const o=Js(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[cI(o),iI(o)]}),(e=>{const{fontSize:t,lineHeight:n,controlHeight:o,controlPaddingHorizontal:r,zIndexPopupBase:i,colorText:a,fontWeightStrong:s,controlItemBgActive:l,controlItemBgHover:c,colorBgContainer:u,colorFillSecondary:d,controlHeightLG:f,controlHeightSM:p,colorBgContainerDisabled:h,colorTextDisabled:m}=e;return{zIndexPopup:i+50,optionSelectedColor:a,optionSelectedFontWeight:s,optionSelectedBg:l,optionActiveBg:c,optionPadding:`${(o-t*n)/2}px ${r}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:u,clearBg:u,singleItemHeightLG:f,multipleItemBg:d,multipleItemBorderColor:"transparent",multipleItemHeight:p,multipleItemHeightLG:o,multipleSelectorBgDisabled:h,multipleItemColorDisabled:m,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize)}}),{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}}),dI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};var fI=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:dI}))};const pI=p.forwardRef(fI);const hI="SECRET_COMBOBOX_MODE_DO_NOT_USE",mI=(e,t)=>{var n;const{prefixCls:o,bordered:r,className:i,rootClassName:a,getPopupContainer:s,popupClassName:l,dropdownClassName:c,listHeight:u=256,placement:d,listItemHeight:f,size:h,disabled:m,notFoundContent:g,status:v,builtinPlacements:b,dropdownMatchSelectWidth:y,popupMatchSelectWidth:x,direction:w,style:C,allowClear:S,variant:E,dropdownStyle:k,transitionName:$,tagRender:_,maxCount:O}=e,j=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount"]),{getPopupContainer:M,getPrefixCls:P,renderEmpty:I,direction:N,virtual:T,popupMatchSelectWidth:R,popupOverflow:A,select:D}=p.useContext(He),[,B]=Oa(),L=null!=f?f:null==B?void 0:B.controlHeight,z=P("select",o),F=P(),H=null!=w?w:N,{compactSize:V,compactItemClassnames:W}=wc(z,H),[K,q]=vk(E,r),U=Ws(z),[G,X,Y]=uI(z,U),Z=p.useMemo((()=>{const{mode:t}=e;if("combobox"!==t)return t===hI?"combobox":t}),[e.mode]),Q="multiple"===Z||"tags"===Z,J=function(e,t){return void 0!==t?t:null!==e}(e.suffixIcon,e.showArrow),ee=null!==(n=null!=x?x:y)&&void 0!==n?n:R,{status:te,hasFeedback:ne,isFormItemInput:oe,feedbackIcon:re}=p.useContext(bf),ie=zE(te,v);let ae;ae=void 0!==g?g:"combobox"===Z?null:(null==I?void 0:I("Select"))||p.createElement(kP,{componentName:"Select"});const{suffixIcon:se,itemIcon:le,removeIcon:ce,clearIcon:ue}=function(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:o,removeIcon:r,loading:i,multiple:a,hasFeedback:s,prefixCls:l,showSuffixIcon:c,feedbackIcon:u,showArrow:d,componentName:f}=e;const h=null!=n?n:p.createElement(bs,null),m=e=>null!==t||s||d?p.createElement(p.Fragment,null,!1!==c&&e,s&&u):null;let g=null;if(void 0!==t)g=m(t);else if(i)g=m(p.createElement(Ms,{spin:!0}));else{const e=`${l}-suffix`;g=t=>{let{open:n,showSearch:o}=t;return m(n&&o?p.createElement(c$,{className:e}):p.createElement(pI,{className:e}))}}let v=null;v=void 0!==o?o:a?p.createElement(rE,null):null;let b=null;return b=void 0!==r?r:p.createElement(ws,null),{clearIcon:h,suffixIcon:g,itemIcon:v,removeIcon:b}}(Object.assign(Object.assign({},j),{multiple:Q,hasFeedback:ne,feedbackIcon:re,showSuffixIcon:J,prefixCls:z,componentName:"Select"})),de=!0===S?{clearIcon:ue}:S,fe=Jl(j,["suffixIcon","itemIcon"]),pe=oi()(l||c,{[`${z}-dropdown-${H}`]:"rtl"===H},a,Y,U,X),he=pc((e=>{var t;return null!==(t=null!=h?h:V)&&void 0!==t?t:e})),me=p.useContext(Xr),ge=null!=m?m:me,ve=oi()({[`${z}-lg`]:"large"===he,[`${z}-sm`]:"small"===he,[`${z}-rtl`]:"rtl"===H,[`${z}-${K}`]:q,[`${z}-in-form-item`]:oe},LE(z,ie,ne),W,null==D?void 0:D.className,i,a,Y,U,X),be=p.useMemo((()=>void 0!==d?d:"rtl"===H?"bottomRight":"bottomLeft"),[d,H]),[ye]=Ys("SelectLike",null==k?void 0:k.zIndex);return G(p.createElement(gP,Object.assign({ref:t,virtual:T,showSearch:null==D?void 0:D.showSearch},fe,{style:Object.assign(Object.assign({},null==D?void 0:D.style),C),dropdownMatchSelectWidth:ee,transitionName:Yl(F,"slide-up",$),builtinPlacements:$P(b,A),listHeight:u,listItemHeight:L,mode:Z,prefixCls:z,placement:be,direction:H,suffixIcon:se,menuItemSelectedIcon:le,removeIcon:ce,allowClear:de,notFoundContent:ae,className:ve,getPopupContainer:s||M,dropdownClassName:pe,disabled:ge,dropdownStyle:Object.assign(Object.assign({},k),{zIndex:ye}),maxCount:Q?O:void 0,tagRender:Q?_:void 0})))},gI=p.forwardRef(mI),vI=fp(gI);gI.SECRET_COMBOBOX_MODE_DO_NOT_USE=hI,gI.Option=AM,gI.OptGroup=TM,gI._InternalPanelDoNotUseOrYouWillBeFired=vI;const bI=gI;var yI=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],xI=p.forwardRef((function(e,t){var n,o=e.prefixCls,r=void 0===o?"rc-switch":o,i=e.className,a=e.checked,s=e.defaultChecked,l=e.disabled,c=e.loadingIcon,u=e.checkedChildren,d=e.unCheckedChildren,f=e.onClick,h=e.onChange,m=e.onKeyDown,g=di(e,yI),v=Ge(rl(!1,{value:a,defaultValue:s}),2),b=v[0],y=v[1];function x(e,t){var n=b;return l||(y(n=e),null==h||h(n,t)),n}var w=oi()(r,i,(Ee(n={},"".concat(r,"-checked"),b),Ee(n,"".concat(r,"-disabled"),l),n));return p.createElement("button",hn({},g,{type:"button",role:"switch","aria-checked":b,disabled:l,className:w,ref:t,onKeyDown:function(e){e.which===Is.LEFT?x(!1,e):e.which===Is.RIGHT&&x(!0,e),null==m||m(e)},onClick:function(e){var t=x(!b,e);null==f||f(t,e)}}),c,p.createElement("span",{className:"".concat(r,"-inner")},p.createElement("span",{className:"".concat(r,"-inner-checked")},u),p.createElement("span",{className:"".concat(r,"-inner-unchecked")},d)))}));xI.displayName="Switch";const wI=xI,CI=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:o,trackMinWidthSM:r,innerMinMarginSM:i,innerMaxMarginSM:a,handleSizeSM:s,calc:l}=e,c=`${t}-inner`,u=qt(l(s).add(l(o).mul(2)).equal()),d=qt(l(a).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:r,height:n,lineHeight:qt(n),[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${c}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:l(l(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${qt(l(s).add(o).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(e.marginXXS).div(2).equal(),marginInlineEnd:l(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:l(e.marginXXS).div(2).equal()}}}}}}},SI=e=>{const{componentCls:t,handleSize:n,calc:o}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:o(o(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},EI=e=>{const{componentCls:t,trackPadding:n,handleBg:o,handleShadow:r,handleSize:i,calc:a}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:n,insetInlineStart:n,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:o,borderRadius:a(i).div(2).equal(),boxShadow:r,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${qt(a(i).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},kI=e=>{const{componentCls:t,trackHeight:n,trackPadding:o,innerMinMargin:r,innerMaxMargin:i,handleSize:a,calc:s}=e,l=`${t}-inner`,c=qt(s(a).add(s(o).mul(2)).equal()),u=qt(s(i).mul(2).equal());return{[t]:{[l]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:r,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${l}-checked, ${l}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${c} - ${u})`,marginInlineEnd:`calc(100% - ${c} + ${u})`},[`${l}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:r,paddingInlineEnd:i,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${c} + ${u})`,marginInlineEnd:`calc(-100% + ${c} - ${u})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:s(o).mul(2).equal(),marginInlineEnd:s(o).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:s(o).mul(-1).mul(2).equal(),marginInlineEnd:s(o).mul(2).equal()}}}}}},$I=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:o}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ia(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:o,height:n,lineHeight:`${qt(n)}`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),Aa(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},_I=hl("Switch",(e=>{const t=Js(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[$I(t),kI(t),EI(t),SI(t),CI(t)]}),(e=>{const{fontSize:t,lineHeight:n,controlHeight:o,colorWhite:r}=e,i=t*n,a=o/2,s=i-4,l=a-4;return{trackHeight:i,trackHeightSM:a,trackMinWidth:2*s+8,trackMinWidthSM:2*l+4,trackPadding:2,handleBg:r,handleSize:s,handleSizeSM:l,handleShadow:`0 2px 4px 0 ${new Dr("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+2+4,innerMinMarginSM:l/2,innerMaxMarginSM:l+2+4}}));const OI=p.forwardRef(((e,t)=>{const{prefixCls:n,size:o,disabled:r,loading:i,className:a,rootClassName:s,style:l,checked:c,value:u,defaultChecked:d,defaultValue:f,onChange:h}=e,m=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[g,v]=rl(!1,{value:null!=c?c:u,defaultValue:null!=d?d:f}),{getPrefixCls:b,direction:y,switch:x}=p.useContext(He),w=p.useContext(Xr),C=(null!=r?r:w)||i,S=b("switch",n),E=p.createElement("div",{className:`${S}-handle`},i&&p.createElement(Ms,{className:`${S}-loading-icon`})),[k,$,_]=_I(S),O=pc(o),j=oi()(null==x?void 0:x.className,{[`${S}-small`]:"small"===O,[`${S}-loading`]:i,[`${S}-rtl`]:"rtl"===y},a,s,$,_),M=Object.assign(Object.assign({},null==x?void 0:x.style),l);return k(p.createElement(fc,{component:"Switch"},p.createElement(wI,Object.assign({},m,{checked:g,onChange:function(){v(arguments.length<=0?void 0:arguments[0]),null==h||h.apply(void 0,arguments)},prefixCls:S,className:j,style:M,disabled:C,ref:t,loadingIcon:E}))))}));OI.__ANT_SWITCH=!0;const jI=OI,MI=({settings:e,onChange:t})=>{const{url:n="",headers:o=[{}],body:r=[{}],show_empty_fields:i=!1,method:s=null,body_format:c=null}=e,{properties:u}=DI("webhook"),{ntfmSiteUrl:d}=eE,f=(e,n)=>{t({[e]:n})};return(0,a.jsxs)(Np,{vertical:!0,gap:10,children:[(0,a.jsx)(Yk.Title,{level:5,className:"ntfm-custom-title",children:(0,l.__)("Webhook Settings","notification-master")}),(0,a.jsxs)(Yk.Text,{type:"secondary",children:[(0,l.__)("Read the documentation to learn more about how to setup webhooks.","notification-master")," ",(0,a.jsx)("a",{href:`${d}/docs/webhook/`,target:"_blank",children:(0,l.__)("Find out more","notification-master")})]}),(0,a.jsxs)("div",{className:"notification-master__integration--settings",children:[(0,a.jsxs)("div",{className:oi()("notification-master__integration--settings__field",{required:u.url.required}),children:[(0,a.jsx)(Yk.Title,{level:5,className:"notification-master__integration--settings__field__title",children:(0,l.__)("URL","notification-master")}),(0,a.jsx)(Yk.Text,{type:"secondary",style:{fontSize:"12px"},className:"notification-master__integration--settings__field__description",children:(0,l.__)("You can use any URL Merge Tags.")}),(0,a.jsx)(p$,{value:n,onChange:e=>f("url",e.target.value),addonAfter:(0,a.jsx)(Tj,{}),placeholder:"https://example.com/webhook"})]}),(0,a.jsxs)("div",{className:oi()("notification-master__integration--settings__field",{required:u.method.required}),children:[(0,a.jsx)(Yk.Title,{level:5,className:"notification-master__integration--settings__field__title",children:(0,l.__)("Method","notification-master")}),(0,a.jsx)(bI,{value:s,onChange:e=>f("method",e),placeholder:"Select Method",options:[{label:"GET",value:"GET"},{label:"POST",value:"POST"},{label:"PUT",value:"PUT"},{label:"PATCH",value:"PATCH"},{label:"DELETE",value:"DELETE"}],style:{width:"100%"}})]}),(0,a.jsxs)("div",{className:oi()("notification-master__integration--settings__field",{required:u.headers.required}),children:[(0,a.jsx)(Yk.Title,{level:5,className:"notification-master__integration--settings__field__title",children:(0,l.__)("Headers","notification-master")}),(0,a.jsxs)("div",{className:"notification-master__integration--settings__field__list",children:[(0,Up.map)(o,((e,t)=>(0,a.jsxs)("div",{className:"notification-master__integration--settings__field__list__item",children:[(0,a.jsx)(p$,{value:e.key,onChange:e=>f("headers",o.map(((n,o)=>o===t?{...n,key:e.target.value}:n))),placeholder:(0,l.__)("Key","notification-master"),className:"notification-master__integration--settings__field__list__item__input",addonAfter:(0,a.jsx)(Tj,{})}),(0,a.jsx)(p$,{value:e.value,onChange:e=>f("headers",o.map(((n,o)=>o===t?{...n,value:e.target.value}:n))),placeholder:(0,l.__)("Value","notification-master"),className:"notification-master__integration--settings__field__list__item__input",addonAfter:(0,a.jsx)(Tj,{})}),(0,a.jsx)(gu,{type:"link",danger:!0,icon:(0,a.jsx)(j$,{}),onClick:()=>f("headers",o.filter(((e,n)=>n!==t)))})]},t))),(0,a.jsx)(gu,{onClick:()=>f("headers",[...o,{key:"",value:""}]),block:!0,type:"dashed",size:"large",children:(0,l.__)("Add Header","notification-master")})]})]}),(0,a.jsxs)("div",{className:oi()("notification-master__integration--settings__field",{required:u.body.required}),children:[(0,a.jsx)(Yk.Title,{level:5,className:"notification-master__integration--settings__field__title",children:(0,l.__)("Body","notification-master")}),(0,a.jsxs)("div",{className:"notification-master__integration--settings__field__list",children:[(0,Up.map)(r,((e,t)=>(0,a.jsxs)("div",{className:"notification-master__integration--settings__field__list__item",children:[(0,a.jsx)(p$,{value:e.key,onChange:e=>f("body",r.map(((n,o)=>o===t?{...n,key:e.target.value}:n))),placeholder:(0,l.__)("Key","notification-master"),className:"notification-master__integration--settings__field__list__item__input",addonAfter:(0,a.jsx)(Tj,{})}),(0,a.jsx)(p$,{value:e.value,onChange:e=>f("body",r.map(((n,o)=>o===t?{...n,value:e.target.value}:n))),placeholder:(0,l.__)("Value","notification-master"),className:"notification-master__integration--settings__field__list__item__input",addonAfter:(0,a.jsx)(Tj,{})}),(0,a.jsx)(gu,{type:"link",danger:!0,icon:(0,a.jsx)(j$,{}),onClick:()=>f("body",r.filter(((e,n)=>n!==t)))})]},t))),(0,a.jsx)(gu,{onClick:()=>f("body",[...r,{key:"",value:""}]),block:!0,type:"dashed",size:"large",children:(0,l.__)("Add Field","notification-master")})]})]}),["POST","PUT","PATCH"].includes(s)&&(0,a.jsxs)("div",{className:oi()("notification-master__integration--settings__field",{required:u.body_format.required}),children:[(0,a.jsx)(Yk.Title,{level:5,className:"notification-master__integration--settings__field__title",children:(0,l.__)("Format","notification-master")}),(0,a.jsx)(bI,{value:c,onChange:e=>f("body_format",e),placeholder:(0,l.__)("Select Format","notification-master"),options:[{label:"JSON",value:"json"},{label:"Form Data",value:"form-data"}],style:{width:"100%"}})]}),(0,a.jsxs)("div",{className:oi()("notification-master__integration--settings__field",{required:u.show_empty_fields.required,inline:!0}),children:[(0,a.jsx)(Yk.Title,{level:5,className:"notification-master__integration--settings__field__title",children:(0,l.__)("Show Empty Fields","notification-master")}),(0,a.jsx)(jI,{checked:i,onChange:e=>f("show_empty_fields",e)})]})]})]})};(0,c.addFilter)("NotificationMaster.Integration","NotificationMaster.WebhookIntegration",((e,t)=>"webhook"===t?{...e,component:MI,available:!0}:e));const PI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.3 506.3L781.7 405.6a7.23 7.23 0 00-11.7 5.7V476H548V254h64.8c6 0 9.4-7 5.7-11.7L517.7 114.7a7.14 7.14 0 00-11.3 0L405.6 242.3a7.23 7.23 0 005.7 11.7H476v222H254v-64.8c0-6-7-9.4-11.7-5.7L114.7 506.3a7.14 7.14 0 000 11.3l127.5 100.8c4.7 3.7 11.7.4 11.7-5.7V548h222v222h-64.8c-6 0-9.4 7-5.7 11.7l100.8 127.5c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H548V548h222v64.8c0 6 7 9.4 11.7 5.7l127.5-100.8a7.3 7.3 0 00.1-11.4z"}}]},name:"drag",theme:"outlined"};var II=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:PI}))};const NI=p.forwardRef(II);var TI=n(901);const RI=({settings:e,onChange:t})=>{const{url:n="",message:o={title:"",title_link:"",description:"",content:"",author:{name:"",url:"",icon_url:""},fields:[{name:"",value:"",inline:!0}]}}=e,{properties:r}=DI("discord"),{toggleMergeTags:i}=(0,u.useDispatch)("notification-master/core"),{ntfmSiteUrl:s}=eE,c=(e,n)=>{t({message:{...o,[e]:n}})},d=(e,t,n)=>{const r=[...o.fields];r[e]={...r[e],[t]:n},c("fields",r)};return(0,a.jsxs)(Np,{vertical:!0,gap:10,children:[(0,a.jsx)(Yk.Title,{level:5,className:"ntfm-custom-title",children:(0,l.__)("Discord Settings","notification-master")}),(0,a.jsxs)(Yk.Text,{type:"secondary",children:[(0,l.__)("Read the documentation to learn more about how to setup Discord Webhook.","notification-master")," ",(0,a.jsx)("a",{href:`${s}/docs/discord/`,target:"_blank",children:(0,l.__)("Find out more","notification-master")})]}),(0,a.jsxs)("div",{className:"notification-master__integration--settings",children:[(0,a.jsxs)("div",{className:oi()("notification-master__integration--settings__field",{required:r.url.required}),children:[(0,a.jsx)(Yk.Title,{level:5,className:"notification-master__integration--settings__field__title",children:(0,l.__)("URL","notification-master")}),(0,a.jsx)(p$,{value:n,onChange:e=>{return"url",n=e.target.value,void t({url:n});var n},placeholder:"https://example.com/webhook"})]}),(0,a.jsxs)("div",{style:{width:"100%"},children:[(0,a.jsx)(Yk.Title,{level:5,className:"notification-master__integration--settings__field__title required",children:(0,l.__)("Message","notification-master")}),(0,a.jsxs)("div",{style:{padding:"10px 20px"},children:[(0,a.jsxs)("div",{className:"notification-master__integration--settings__field",children:[(0,a.jsx)(Yk.Title,{level:5,className:"notification-master__integration--settings__field__title",children:(0,l.__)("Title","notification-master")}),(0,a.jsx)(p$,{value:o.title,onChange:e=>c("title",e.target.value),placeholder:(0,l.__)("Title","notification-master"),addonAfter:(0,a.jsx)(Tj,{})})]}),(0,a.jsxs)("div",{className:"notification-master__integration--settings__field",children:[(0,a.jsx)(Yk.Title,{level:5,className:"notification-master__integration--settings__field__title",children:(0,l.__)("Title Link","notification-master")}),(0,a.jsx)(p$,{value:o.title_link,onChange:e=>c("title_link",e.target.value),placeholder:(0,l.__)("Title Link","notification-master"),addonAfter:(0,a.jsx)(Tj,{})})]}),(0,a.jsxs)("div",{className:"notification-master__integration--settings__field",children:[(0,a.jsx)(Yk.Title,{level:5,className:"notification-master__integration--settings__field__title",children:(0,l.__)("Description","notification-master")}),(0,a.jsx)(p$,{value:o.description,onChange:e=>c("description",e.target.value),placeholder:(0,l.__)("Description","notification-master"),addonAfter:(0,a.jsx)(Tj,{})})]}),(0,a.jsxs)("div",{className:"notification-master__integration--settings__field",children:[(0,a.jsx)(Yk.Title,{level:5,className:"notification-master__integration--settings__field__title",children:(0,l.__)("Content","notification-master")}),(0,a.jsx)(Yk.Text,{type:"secondary",style:{fontSize:"12px"},children:(0,l.__)("This will be the main content of the message.","notification-master")}),(0,a.jsx)(p$,{value:o.content,onChange:e=>c("content",e.target.value),placeholder:(0,l.__)("Content","notification-master"),addonAfter:(0,a.jsx)(Tj,{})})]}),(0,a.jsxs)("div",{className:"notification-master__integration--settings__field",children:[(0,a.jsx)(Yk.Title,{level:5,className:"notification-master__integration--settings__field__title",children:(0,l.__)("Author","notification-master")}),(0,a.jsxs)("div",{className:"notification-master__integration--settings__field__list",children:[(0,a.jsxs)("div",{className:"notification-master__integration--settings__field__list__item",style:{flexDirection:"column",alignItems:"flex-start",gap:"5px"},children:[(0,a.jsx)(gu,{onClick:()=>i(!0),children:(0,l.__)("Merge Tags","notification-master")}),(0,a.jsx)(Yk.Text,{type:"secondary",style:{fontSize:"12px"},children:(0,l.__)("Allows you to add dynamic content to the author.","notification-master")})]}),(0,a.jsxs)("div",{className:"notification-master__integration--settings__field__list__item",children:[(0,a.jsx)(p$,{value:o.author.name,onChange:e=>c("author",{...o.author,name:e.target.value}),placeholder:(0,l.__)("Name","notification-master")}),(0,a.jsx)(p$,{value:o.author.url,onChange:e=>c("author",{...o.author,url:e.target.value}),placeholder:(0,l.__)("URL","notification-master")}),(0,a.jsx)(p$,{value:o.author.icon_url,onChange:e=>c("author",{...o.author,icon_url:e.target.value}),placeholder:(0,l.__)("Icon URL","notification-master")})]})]}),(0,a.jsxs)("div",{className:"notification-master__integration--settings__field",children:[(0,a.jsx)(Yk.Title,{level:5,className:"notification-master__integration--settings__field__title",children:(0,l.__)("Fields","notification-master")}),(0,a.jsxs)("div",{className:"notification-master__integration--settings__field__list",children:[(0,a.jsx)(gu,{onClick:()=>i(!0),style:{marginBottom:"10px",alignSelf:"flex-end"},children:(0,l.__)("Merge Tags","notification-master")}),(0,a.jsx)(TI.ReactSortable,{list:o.fields,setList:e=>c("fields",e),animation:200,children:(0,Up.map)(o.fields,((e,t)=>(0,a.jsxs)("div",{className:"notification-master__integration--settings__field__list__item",style:{backgroundColor:"#fff",padding:"10px",borderRadius:"5px",marginBottom:"10px"},children:[(0,a.jsx)(NI,{}),(0,a.jsx)(p$,{value:e.name,onChange:e=>d(t,"name",e.target.value),placeholder:(0,l.__)("Label","notification-master"),className:"notification-master__integration--settings__field__list__item__input"}),(0,a.jsx)(p$,{value:e.value,onChange:e=>d(t,"value",e.target.value),placeholder:(0,l.__)("Value","notification-master"),className:"notification-master__integration--settings__field__list__item__input"}),(0,a.jsxs)(Np,{gap:5,className:"notification-master__integration--settings__field__list__item__input",children:[(0,a.jsx)(jI,{checked:e.inline,onChange:e=>d(t,"inline",e)}),(0,a.jsx)(Yk.Text,{children:(0,l.__)("Inline","notification-master")})]}),(0,a.jsx)(gu,{onClick:()=>c("fields",[...o.fields.filter(((e,n)=>n!==t))]),danger:!0,type:"link",icon:(0,a.jsx)(j$,{})})]},t)))}),(0,a.jsx)(gu,{onClick:()=>c("fields",[...o.fields,{type:"text",value:"",inline:!0}]),block:!0,type:"dashed",size:"large",children:(0,l.__)("Add Field","notification-master")})]})]})]})]})]})]})]})};(0,c.addFilter)("NotificationMaster.Integration","NotificationMaster.DiscordIntegration",((e,t)=>"discord"===t?{...e,component:RI,available:!0}:e));const AI=({settings:e,onChange:t})=>{const{title:n,message:o,icon:r,image:i,url:s,urgency:c}=e,{properties:d}=DI("webpush"),{toggleMergeTags:f}=(0,u.useDispatch)("notification-master/core"),{ntfmSiteUrl:p}=eE,h=(e,n)=>{t({[e]:n})};return(0,a.jsxs)(Np,{vertical:!0,gap:10,children:[(0,a.jsx)(Yk.Title,{level:5,className:"ntfm-custom-title",children:(0,l.__)("Notification Settings","notification-master")}),(0,a.jsxs)(Yk.Text,{type:"secondary",children:[(0,l.__)("Read the documentation to learn more about how to setup webpush notifications.","notification-master")," ",(0,a.jsx)("a",{href:`${p}/docs/web-push/`,target:"_blank",children:(0,l.__)("Find out more","notification-master")})]}),(0,a.jsxs)("div",{className:"notification-master__integration--settings",children:[(0,a.jsxs)("div",{className:oi()("notification-master__integration--settings__field",{required:d.title.required}),children:[(0,a.jsx)(Yk.Title,{level:5,className:"notification-master__integration--settings__field__title",children:(0,l.__)("Title","notification-master")}),(0,a.jsx)(p$,{value:n,onChange:e=>h("title",e.target.value),placeholder:(0,l.__)("Enter the title of the notification","notification-master"),addonAfter:(0,a.jsx)(Tj,{})})]}),(0,a.jsxs)("div",{className:oi()("notification-master__integration--settings__field",{required:d.message.required}),children:[(0,a.jsx)(Yk.Title,{level:5,className:"notification-master__integration--settings__field__title",children:(0,l.__)("Message","notification-master")}),(0,a.jsx)(gu,{onClick:()=>f(!0),style:{margin:"10px 0"},className:"notification-master__integration--settings__field__input__button",children:(0,l.__)("Merge Tags","notification-master")}),(0,a.jsx)(p$.TextArea,{value:o,onChange:e=>h("message",e.target.value),placeholder:(0,l.__)("Enter the message of the notification","notification-master"),autoSize:{minRows:4}})]}),(0,a.jsxs)("div",{className:oi()("notification-master__integration--settings__field",{required:d.icon.required}),children:[(0,a.jsx)(Yk.Title,{level:5,className:"notification-master__integration--settings__field__title",children:(0,l.__)("Icon","notification-master")}),(0,a.jsx)(p$,{value:r,onChange:e=>h("icon",e.target.value),placeholder:(0,l.__)("Enter the icon URL of the notification","notification-master"),addonAfter:(0,a.jsx)(Tj,{})})]}),(0,a.jsxs)("div",{className:oi()("notification-master__integration--settings__field",{required:d.image.required}),children:[(0,a.jsx)(Yk.Title,{level:5,className:"notification-master__integration--settings__field__title",children:(0,l.__)("Image","notification-master")}),(0,a.jsx)(p$,{value:i,onChange:e=>h("image",e.target.value),placeholder:(0,l.__)("Enter the image URL of the notification","notification-master"),addonAfter:(0,a.jsx)(Tj,{})})]}),(0,a.jsxs)("div",{className:oi()("notification-master__integration--settings__field",{required:d.url.required}),children:[(0,a.jsx)(Yk.Title,{level:5,className:"notification-master__integration--settings__field__title",children:(0,l.__)("URL","notification-master")}),(0,a.jsx)(p$,{value:s,onChange:e=>h("url",e.target.value),placeholder:(0,l.__)("Enter the URL of the notification","notification-master"),addonAfter:(0,a.jsx)(Tj,{})})]}),(0,a.jsxs)("div",{className:oi()("notification-master__integration--settings__field",{required:d.urgency.required}),children:[(0,a.jsx)(Yk.Title,{level:5,className:"notification-master__integration--settings__field__title",children:(0,l.__)("Urgency","notification-master")}),(0,a.jsx)(bI,{value:c,onChange:e=>h("urgency",e),placeholder:(0,l.__)("Select the urgency of the notification","notification-master"),options:[{value:"very-low",label:(0,l.__)("Very Low","notification-master")},{value:"low",label:(0,l.__)("Low","notification-master")},{value:"normal",label:(0,l.__)("Normal","notification-master")},{value:"high",label:(0,l.__)("High","notification-master")}]})]})]})]})};(0,c.addFilter)("NotificationMaster.Integration","NotificationMaster.WebPushIntegration",((e,t)=>{if("webpush"===t){const{webpushConfigured:t}=window.NotificationsMasterConfig||{};return{...e,component:AI,configured:t,available:!0}}return e}));const DI=e=>window.NotificationMasterIntegrations[e],BI=eE.integrations;var LI;(0,Up.map)((0,Up.keys)(BI),(e=>{var t,n;t=BI[e],n=e,window.NotificationMasterIntegrations=window.NotificationMasterIntegrations||{},window.NotificationMasterIntegrations[n]=(0,c.applyFilters)("NotificationMaster.Integration",{name:t.name,description:t.description,icon:t.icon||null,component:()=>null,properties:t.properties||{},available:eE.isPro,configured:!0},n)})),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(LI||(LI={}));var zI="beforeunload";function FI(e){e.preventDefault(),e.returnValue=""}function HI(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter((function(e){return e!==t}))}},call:function(t){e.forEach((function(e){return e&&e(t)}))}}}var VI=n(373);let WI;function KI(){if(!WI){const e=function(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,o=n.history;function r(){var e=n.location,t=e.pathname,r=e.search,i=e.hash,a=o.state||{};return[a.idx,{pathname:t,search:r,hash:i,state:a.usr||null,key:a.key||"default"}]}var i=null;n.addEventListener("popstate",(function(){if(i)d.call(i),i=null;else{var e=LI.Pop,t=r(),n=t[0],o=t[1];if(d.length){if(null!=n){var a=l-n;a&&(i={action:e,location:o,retry:function(){v(-1*a)}},v(a))}}else g(e)}}));var a=LI.Pop,s=r(),l=s[0],c=s[1],u=HI(),d=HI();function f(e){return"string"==typeof e?e:function(e){var t=e.pathname,n=void 0===t?"/":t,o=e.search,r=void 0===o?"":o,i=e.hash,a=void 0===i?"":i;return r&&"?"!==r&&(n+="?"===r.charAt(0)?r:"?"+r),a&&"#"!==a&&(n+="#"===a.charAt(0)?a:"#"+a),n}(e)}function p(e,t){return void 0===t&&(t=null),hn({pathname:c.pathname,hash:"",search:""},"string"==typeof e?function(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var o=e.indexOf("?");o>=0&&(t.search=e.substr(o),e=e.substr(0,o)),e&&(t.pathname=e)}return t}(e):e,{state:t,key:Math.random().toString(36).substr(2,8)})}function h(e,t){return[{usr:e.state,key:e.key,idx:t},f(e)]}function m(e,t,n){return!d.length||(d.call({action:e,location:t,retry:n}),!1)}function g(e){a=e;var t=r();l=t[0],c=t[1],u.call({action:a,location:c})}function v(e){o.go(e)}null==l&&(l=0,o.replaceState(hn({},o.state,{idx:l}),""));var b={get action(){return a},get location(){return c},createHref:f,push:function e(t,r){var i=LI.Push,a=p(t,r);if(m(i,a,(function(){e(t,r)}))){var s=h(a,l+1),c=s[0],u=s[1];try{o.pushState(c,"",u)}catch(e){n.location.assign(u)}g(i)}},replace:function e(t,n){var r=LI.Replace,i=p(t,n);if(m(r,i,(function(){e(t,n)}))){var a=h(i,l),s=a[0],c=a[1];o.replaceState(s,"",c),g(r)}},go:v,back:function(){v(-1)},forward:function(){v(1)},listen:function(e){return u.push(e)},block:function(e){var t=d.push(e);return 1===d.length&&n.addEventListener(zI,FI),function(){t(),d.length||n.removeEventListener(zI,FI)}}};return b}();WI={get action(){return e.action},get location(){const{location:t}=e,n=(0,VI.parse)(t.search.substring(1));let o;return n&&"string"==typeof n.page?(o=n.page.replace("ntfm-",""),o="home"===o?"/":`/${o}`,"string"==typeof n.id&&(o+="/"+n.id),"string"==typeof n.tab&&(o+="/"+n.tab)):o="/",{...t,pathname:o}},createHref:e.createHref,push:e.push,replace:e.replace,go:e.go,back:e.back,forward:e.forward,block:e.block,listen(t){return e.listen((()=>{t({action:this.action,location:this.location})}))}}}return WI}(0,a.jsxs)("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 286 188",children:[(0,a.jsxs)("defs",{children:[(0,a.jsx)("style",{children:"\n\t\t\t\t\t\t\t.cls-1 {\n\t\t\t\t\t\t\tfill: url(#linear-gradient);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t.cls-1, .cls-2, .cls-3, .cls-4 {\n\t\t\t\t\t\t\tstroke-width: 0px;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t.cls-2 {\n\t\t\t\t\t\t\tfill: url(#linear-gradient-2);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t.cls-3 {\n\t\t\t\t\t\t\tfill: url(#linear-gradient-3);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t.cls-4 {\n\t\t\t\t\t\t\tfill: url(#linear-gradient-4);\n\t\t\t\t\t\t} \n\t\t\t\t\t"}),(0,a.jsxs)("linearGradient",{id:"linear-gradient",x1:"195.66",y1:"95",x2:"286",y2:"95",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{offset:"0","stop-color":"#8f3164"}),(0,a.jsx)("stop",{offset:".23","stop-color":"#923662"}),(0,a.jsx)("stop",{offset:".51","stop-color":"#9e445e"}),(0,a.jsx)("stop",{offset:".81","stop-color":"#b05c57"}),(0,a.jsx)("stop",{offset:"1","stop-color":"#c07052"})]}),(0,a.jsxs)("linearGradient",{id:"linear-gradient-2",x1:"5.28",y1:"142.83",x2:"280.72",y2:"142.83",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{offset:".5","stop-color":"#8f3164"}),(0,a.jsx)("stop",{offset:".62","stop-color":"#923562"}),(0,a.jsx)("stop",{offset:".75","stop-color":"#9c425e"}),(0,a.jsx)("stop",{offset:".89","stop-color":"#ad5858"}),(0,a.jsx)("stop",{offset:"1","stop-color":"#c07052"})]}),(0,a.jsxs)("linearGradient",{id:"linear-gradient-3",x1:"0",y1:"95",x2:"90.34",y2:"95",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{offset:"1","stop-color":"#8f3164"}),(0,a.jsx)("stop",{offset:"1","stop-color":"#963a61"}),(0,a.jsx)("stop",{offset:"1","stop-color":"#ab5559"}),(0,a.jsx)("stop",{offset:"1","stop-color":"#c07052"})]}),(0,a.jsxs)("linearGradient",{id:"linear-gradient-4",x1:"5.29",y1:"66.71",x2:"280.71",y2:"66.71",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{offset:".51","stop-color":"#8f3164"}),(0,a.jsx)("stop",{offset:".75","stop-color":"#903263"}),(0,a.jsx)("stop",{offset:".84","stop-color":"#953961"}),(0,a.jsx)("stop",{offset:".9","stop-color":"#9e455e"}),(0,a.jsx)("stop",{offset:".95","stop-color":"#ab5659"}),(0,a.jsx)("stop",{offset:".99","stop-color":"#bc6b53"}),(0,a.jsx)("stop",{offset:"1","stop-color":"#c07052"})]})]}),(0,a.jsx)("path",{className:"cls-1",d:"m195.66,95l87.17,87.17c1.17,1.17,3.17.34,3.17-1.31V9.14c0-1.66-2-2.49-3.17-1.31l-87.17,87.17Z"}),(0,a.jsx)("path",{className:"cls-2",d:"m280.18,184.83l-87.18-87.18-32.54,32.54c-4.66,4.66-10.86,7.23-17.46,7.23s-12.8-2.57-17.46-7.23l-32.54-32.54L5.83,184.83c-1.17,1.17-.34,3.17,1.31,3.17h271.72c1.66,0,2.49-2,1.31-3.17Z"}),(0,a.jsx)("path",{className:"cls-3",d:"m90.34,94.99L3.17,7.82c-1.17-1.17-3.17-.34-3.17,1.31v171.71c0,1.66,2,2.49,3.17,1.31l87.17-87.17Z"}),(0,a.jsx)("path",{className:"cls-4",d:"m130.93,128.27c2.96,2.96,6.86,4.88,11.04,5.13,4.84.29,9.44-1.46,12.83-4.86L280.17,3.17c1.17-1.17.34-3.17-1.31-3.17H7.15c-1.66,0-2.49,2-1.31,3.17l125.09,125.09Z"})]});const qI=(e=null,t=null,n=null)=>{const o=(()=>{const e=document.location.pathname;return e.substring(0,e.lastIndexOf("/"))})();let r=`${o}/admin.php`;return e&&(r+=`?page=ntfm-${e}`),t&&(r+=`&id=${t}`),n&&(r+=`&tab=${n}`),r},UI=(e,t)=>{let n=!0;for(const o in e){const r=e[o];if(r.required&&(0,Up.isEmpty)(t[o])){n=!1;break}if("object"===r.type&&(n=UI(r.properties,t[o]),!n))break}return n},GI=e=>{const t=eE.triggersGroups;for(const n in t){const o=t[n];if((0,Up.keys)(o.triggers).includes(e))return o.triggers[e].name}return""},XI=e=>{const t=eE.triggersGroups;for(const n in t){const o=t[n];if((0,Up.keys)(o.triggers).includes(e))return!0}return!1},YI=e=>{let t=new Date(e);return isNaN(t.getTime())&&(t=new Date(`${e}Z`)),isNaN(t.getTime())?e:t.toLocaleDateString(void 0,{year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0})},ZI=()=>{const e=Q(),t=(0,p.useCallback)((e=>{const t=document.querySelector(`.wp-submenu-wrap a[href*="ntfm-${e}"]`);if(!t)return;const n=t.parentElement;n?.classList.add("current"),Array.from(n?.parentElement?.children||[]).forEach((e=>{e!==n&&e.classList.remove("current")}))}),[]);return(0,a.jsx)("nav",{className:"notification-master__nav",children:(0,a.jsxs)("div",{className:"notification-master__nav-inner",children:[(0,a.jsx)("div",{className:"notification-master__nav-logo",children:(0,a.jsx)("img",{className:"notification-master__nav-logo-image\r\n\t\t\t\t\t",src:eE.assetsUrl+"logo.png",alt:"Notification Master"})}),(0,a.jsxs)("ul",{className:"notification-master__nav-list",children:[uJ.map(((n,o)=>{if(n.hidden)return null;const r=qI(n.slug),i="/notifications"===n.path||"/integrations"===n.path?Y(`${n.path}/*`):Y(n.path);return(0,a.jsx)("a",{className:oi()("notification-master__nav-item",{"notification-master__nav-item--active":i}),href:r,onClick:o=>{o.preventDefault(),e(r),t(n.slug)},children:n.title},o)})),(0,a.jsxs)("a",{className:"notification-master__nav-item",href:`${eE.ntfmSiteUrl}/docs/getting-started`,target:"_blank",rel:"noreferrer",children:[(0,l.__)("Documentation","notification-master"),(0,a.jsx)("span",{className:"ntfm-icon",children:(0,a.jsx)("svg",{stroke:"currentColor",fill:"currentColor","stroke-width":"0",viewBox:"0 0 24 24",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M18.25 15.5a.75.75 0 0 1-.75-.75V7.56L7.28 17.78a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L16.44 6.5H9.25a.75.75 0 0 1 0-1.5h9a.75.75 0 0 1 .75.75v9a.75.75 0 0 1-.75.75Z"})})})]})]})]})})},QI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"};var JI=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:QI}))};const eN=p.forwardRef(JI),tN=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:o,padding:r,paddingXL:i,paddingXS:a,paddingLG:s,marginXS:l,lineHeight:c}=e;return{[t]:{padding:`${qt(e.calc(s).mul(2).equal())} ${qt(i)}`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:s,textAlign:"center",[`& > ${o}`]:{fontSize:e.iconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.titleFontSize,lineHeight:n,marginBlock:l,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.subtitleFontSize,lineHeight:c,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:s,padding:`${qt(s)} ${qt(e.calc(r).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:a,"&:last-child":{marginInlineEnd:0}}}}},nN=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-success ${t}-icon > ${n}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${n}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${n}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${n}`]:{color:e.resultWarningIconColor}}},oN=e=>(e=>[tN(e),nN(e)])(e),rN=hl("Result",(e=>{const t=Js(e,{resultInfoIconColor:e.colorInfo,resultErrorIconColor:e.colorError,resultSuccessIconColor:e.colorSuccess,resultWarningIconColor:e.colorWarning,imageWidth:250,imageHeight:295});return[oN(t)]}),(e=>({titleFontSize:e.fontSizeHeading3,subtitleFontSize:e.fontSize,iconFontSize:3*e.fontSizeHeading3,extraMargin:`${e.paddingLG}px 0 0 0`}))),iN={success:ms,error:bs,info:Es,warning:eN},aN={404:()=>p.createElement("svg",{width:"252",height:"294"},p.createElement("defs",null,p.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),p.createElement("g",{fill:"none",fillRule:"evenodd"},p.createElement("g",{transform:"translate(0 .012)"},p.createElement("mask",{fill:"#fff"}),p.createElement("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"})),p.createElement("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"}),p.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),p.createElement("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"}),p.createElement("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"}),p.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),p.createElement("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"}),p.createElement("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF",strokeWidth:"2"}),p.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"}),p.createElement("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"}),p.createElement("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1677ff"}),p.createElement("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"}),p.createElement("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"}),p.createElement("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"}),p.createElement("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"}),p.createElement("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"}),p.createElement("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"}),p.createElement("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"}),p.createElement("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"}),p.createElement("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"}),p.createElement("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"}),p.createElement("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"}),p.createElement("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"}),p.createElement("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"}),p.createElement("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"}),p.createElement("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"}),p.createElement("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"}),p.createElement("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"}),p.createElement("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"}),p.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),p.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"}),p.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),p.createElement("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"}),p.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),p.createElement("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"}),p.createElement("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"}),p.createElement("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"}),p.createElement("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"}),p.createElement("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"}),p.createElement("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"}),p.createElement("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"}),p.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),500:()=>p.createElement("svg",{width:"254",height:"294"},p.createElement("defs",null,p.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),p.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),p.createElement("g",{fill:"none",fillRule:"evenodd"},p.createElement("g",{transform:"translate(0 .067)"},p.createElement("mask",{fill:"#fff"}),p.createElement("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"})),p.createElement("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"}),p.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),p.createElement("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"}),p.createElement("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"}),p.createElement("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"}),p.createElement("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"}),p.createElement("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"}),p.createElement("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"}),p.createElement("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"}),p.createElement("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"}),p.createElement("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"}),p.createElement("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"}),p.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),p.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7",strokeWidth:"1.136",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"}),p.createElement("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"}),p.createElement("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"}),p.createElement("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"}),p.createElement("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"}),p.createElement("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"}),p.createElement("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"}),p.createElement("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"}),p.createElement("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"}),p.createElement("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"}),p.createElement("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"}),p.createElement("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"}),p.createElement("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"}),p.createElement("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"}),p.createElement("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"}),p.createElement("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"}),p.createElement("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"}),p.createElement("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"}),p.createElement("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"}),p.createElement("mask",{fill:"#fff"}),p.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),p.createElement("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"}),p.createElement("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),p.createElement("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"}),p.createElement("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),p.createElement("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),p.createElement("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"}),p.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),p.createElement("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"}),p.createElement("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"}),p.createElement("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"}))),403:()=>p.createElement("svg",{width:"251",height:"294"},p.createElement("g",{fill:"none",fillRule:"evenodd"},p.createElement("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"}),p.createElement("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"}),p.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),p.createElement("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"}),p.createElement("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"}),p.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),p.createElement("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"}),p.createElement("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF",strokeWidth:"2"}),p.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"}),p.createElement("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"}),p.createElement("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"}),p.createElement("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"}),p.createElement("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"}),p.createElement("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"}),p.createElement("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"}),p.createElement("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"}),p.createElement("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"}),p.createElement("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"}),p.createElement("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"}),p.createElement("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"}),p.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7",strokeWidth:".932",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"}),p.createElement("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"}),p.createElement("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"}),p.createElement("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"}),p.createElement("path",{stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"}),p.createElement("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"}),p.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"}),p.createElement("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552",strokeWidth:"1.526",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"}),p.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"}),p.createElement("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"}),p.createElement("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"}),p.createElement("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"}),p.createElement("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"}),p.createElement("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"}),p.createElement("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"}),p.createElement("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"}),p.createElement("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"}),p.createElement("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"}),p.createElement("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"})))},sN=Object.keys(aN),lN=e=>{let{prefixCls:t,icon:n,status:o}=e;const r=oi()(`${t}-icon`);if(sN.includes(`${o}`)){const e=aN[o];return p.createElement("div",{className:`${r} ${t}-image`},p.createElement(e,null))}const i=p.createElement(iN[o]);return null===n||!1===n?null:p.createElement("div",{className:r},n||i)},cN=e=>{let{prefixCls:t,extra:n}=e;return n?p.createElement("div",{className:`${t}-extra`},n):null},uN=e=>{let{prefixCls:t,className:n,rootClassName:o,subTitle:r,title:i,style:a,children:s,status:l="info",icon:c,extra:u}=e;const{getPrefixCls:d,direction:f,result:h}=p.useContext(He),m=d("result",t),[g,v,b]=rN(m),y=oi()(m,`${m}-${l}`,n,null==h?void 0:h.className,o,{[`${m}-rtl`]:"rtl"===f},v,b),x=Object.assign(Object.assign({},null==h?void 0:h.style),a);return g(p.createElement("div",{className:y,style:x},p.createElement(lN,{prefixCls:m,status:l,icon:c}),p.createElement("div",{className:`${m}-title`},i),r&&p.createElement("div",{className:`${m}-subtitle`},r),p.createElement(cN,{prefixCls:m,extra:u}),s&&p.createElement("div",{className:`${m}-content`},s)))};uN.PRESENTED_IMAGE_403=aN[403],uN.PRESENTED_IMAGE_404=aN[404],uN.PRESENTED_IMAGE_500=aN[500];const dN=uN,fN=()=>(0,a.jsx)(dN,{icon:(0,a.jsx)("img",{src:`${eE.assetsUrl}/images/logo.gif`,alt:"",style:{width:100}}),title:[(0,a.jsx)(Yk.Title,{level:3,style:{textTransform:"capitalize"},children:(0,l.__)("Unlock Premium Features & Get 99% Off Lifetime Plans 🎉🔥","notification-master")},"title"),(0,a.jsx)(Yk.Text,{children:(0,l.__)("Upgrade to Notification Master Pro and unlock exclusive features, powerful integrations, and enhanced notification capabilities 🚀. Take advantage of our limited-time offer and get 99% off Lifetime plans! 💥 Offer valid until the end of the year 🎁.","notification-master")},"text")],extra:(0,a.jsx)(gu,{type:"primary",style:{backgroundColor:"#E67A18",fontWeight:600,borderRadius:5,textTransform:"uppercase"},size:"large",onClick:()=>{window.open(`${eE.ntfmSiteUrl}/pricing`,"_blank")},children:(0,l.__)("Upgrade to Pro","notification-master")})});function pN(e){return e+.5|0}const hN=(e,t,n)=>Math.max(Math.min(e,n),t);function mN(e){return hN(pN(2.55*e),0,255)}function gN(e){return hN(pN(255*e),0,255)}function vN(e){return hN(pN(e/2.55)/100,0,1)}function bN(e){return hN(pN(100*e),0,100)}const yN={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},xN=[..."0123456789ABCDEF"],wN=e=>xN[15&e],CN=e=>xN[(240&e)>>4]+xN[15&e],SN=e=>(240&e)>>4==(15&e);const EN=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function kN(e,t,n){const o=t*Math.min(n,1-n),r=(t,r=(t+e/30)%12)=>n-o*Math.max(Math.min(r-3,9-r,1),-1);return[r(0),r(8),r(4)]}function $N(e,t,n){const o=(o,r=(o+e/60)%6)=>n-n*t*Math.max(Math.min(r,4-r,1),0);return[o(5),o(3),o(1)]}function _N(e,t,n){const o=kN(e,1,.5);let r;for(t+n>1&&(r=1/(t+n),t*=r,n*=r),r=0;r<3;r++)o[r]*=1-t-n,o[r]+=t;return o}function ON(e){const t=e.r/255,n=e.g/255,o=e.b/255,r=Math.max(t,n,o),i=Math.min(t,n,o),a=(r+i)/2;let s,l,c;return r!==i&&(c=r-i,l=a>.5?c/(2-r-i):c/(r+i),s=function(e,t,n,o,r){return e===r?(t-n)/o+(t<n?6:0):t===r?(n-e)/o+2:(e-t)/o+4}(t,n,o,c,r),s=60*s+.5),[0|s,l||0,a]}function jN(e,t,n,o){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,o)).map(gN)}function MN(e,t,n){return jN(kN,e,t,n)}function PN(e){return(e%360+360)%360}const IN={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},NN={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let TN;const RN=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,AN=e=>e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,DN=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function BN(e,t,n){if(e){let o=ON(e);o[t]=Math.max(0,Math.min(o[t]+o[t]*n,0===t?360:1)),o=MN(o),e.r=o[0],e.g=o[1],e.b=o[2]}}function LN(e,t){return e?Object.assign(t||{},e):e}function zN(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=gN(e[3]))):(t=LN(e,{r:0,g:0,b:0,a:1})).a=gN(t.a),t}function FN(e){return"r"===e.charAt(0)?function(e){const t=RN.exec(e);let n,o,r,i=255;if(t){if(t[7]!==n){const e=+t[7];i=t[8]?mN(e):hN(255*e,0,255)}return n=+t[1],o=+t[3],r=+t[5],n=255&(t[2]?mN(n):hN(n,0,255)),o=255&(t[4]?mN(o):hN(o,0,255)),r=255&(t[6]?mN(r):hN(r,0,255)),{r:n,g:o,b:r,a:i}}}(e):function(e){const t=EN.exec(e);let n,o=255;if(!t)return;t[5]!==n&&(o=t[6]?mN(+t[5]):gN(+t[5]));const r=PN(+t[2]),i=+t[3]/100,a=+t[4]/100;return n="hwb"===t[1]?function(e,t,n){return jN(_N,e,t,n)}(r,i,a):"hsv"===t[1]?function(e,t,n){return jN($N,e,t,n)}(r,i,a):MN(r,i,a),{r:n[0],g:n[1],b:n[2],a:o}}(e)}class HN{constructor(e){if(e instanceof HN)return e;const t=typeof e;let n;var o,r,i;"object"===t?n=zN(e):"string"===t&&(i=(o=e).length,"#"===o[0]&&(4===i||5===i?r={r:255&17*yN[o[1]],g:255&17*yN[o[2]],b:255&17*yN[o[3]],a:5===i?17*yN[o[4]]:255}:7!==i&&9!==i||(r={r:yN[o[1]]<<4|yN[o[2]],g:yN[o[3]]<<4|yN[o[4]],b:yN[o[5]]<<4|yN[o[6]],a:9===i?yN[o[7]]<<4|yN[o[8]]:255})),n=r||function(e){TN||(TN=function(){const e={},t=Object.keys(NN),n=Object.keys(IN);let o,r,i,a,s;for(o=0;o<t.length;o++){for(a=s=t[o],r=0;r<n.length;r++)i=n[r],s=s.replace(i,IN[i]);i=parseInt(NN[a],16),e[s]=[i>>16&255,i>>8&255,255&i]}return e}(),TN.transparent=[0,0,0,0]);const t=TN[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}(e)||FN(e)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var e=LN(this._rgb);return e&&(e.a=vN(e.a)),e}set rgb(e){this._rgb=zN(e)}rgbString(){return this._valid?(e=this._rgb)&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${vN(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`):void 0;var e}hexString(){return this._valid?(e=this._rgb,t=(e=>SN(e.r)&&SN(e.g)&&SN(e.b)&&SN(e.a))(e)?wN:CN,e?"#"+t(e.r)+t(e.g)+t(e.b)+((e,t)=>e<255?t(e):"")(e.a,t):void 0):void 0;var e,t}hslString(){return this._valid?function(e){if(!e)return;const t=ON(e),n=t[0],o=bN(t[1]),r=bN(t[2]);return e.a<255?`hsla(${n}, ${o}%, ${r}%, ${vN(e.a)})`:`hsl(${n}, ${o}%, ${r}%)`}(this._rgb):void 0}mix(e,t){if(e){const n=this.rgb,o=e.rgb;let r;const i=t===r?.5:t,a=2*i-1,s=n.a-o.a,l=((a*s==-1?a:(a+s)/(1+a*s))+1)/2;r=1-l,n.r=255&l*n.r+r*o.r+.5,n.g=255&l*n.g+r*o.g+.5,n.b=255&l*n.b+r*o.b+.5,n.a=i*n.a+(1-i)*o.a,this.rgb=n}return this}interpolate(e,t){return e&&(this._rgb=function(e,t,n){const o=DN(vN(e.r)),r=DN(vN(e.g)),i=DN(vN(e.b));return{r:gN(AN(o+n*(DN(vN(t.r))-o))),g:gN(AN(r+n*(DN(vN(t.g))-r))),b:gN(AN(i+n*(DN(vN(t.b))-i))),a:e.a+n*(t.a-e.a)}}(this._rgb,e._rgb,t)),this}clone(){return new HN(this.rgb)}alpha(e){return this._rgb.a=gN(e),this}clearer(e){return this._rgb.a*=1-e,this}greyscale(){const e=this._rgb,t=pN(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}opaquer(e){return this._rgb.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return BN(this._rgb,2,e),this}darken(e){return BN(this._rgb,2,-e),this}saturate(e){return BN(this._rgb,1,e),this}desaturate(e){return BN(this._rgb,1,-e),this}rotate(e){return function(e,t){var n=ON(e);n[0]=PN(n[0]+t),n=MN(n),e.r=n[0],e.g=n[1],e.b=n[2]}(this._rgb,e),this}}function VN(){}const WN=(()=>{let e=0;return()=>e++})();function KN(e){return null==e}function qN(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return"[object"===t.slice(0,7)&&"Array]"===t.slice(-6)}function UN(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function GN(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)}function XN(e,t){return GN(e)?e:t}function YN(e,t){return void 0===e?t:e}function ZN(e,t,n){if(e&&"function"==typeof e.call)return e.apply(n,t)}function QN(e,t,n,o){let r,i,a;if(qN(e))if(i=e.length,o)for(r=i-1;r>=0;r--)t.call(n,e[r],r);else for(r=0;r<i;r++)t.call(n,e[r],r);else if(UN(e))for(a=Object.keys(e),i=a.length,r=0;r<i;r++)t.call(n,e[a[r]],a[r])}function JN(e,t){let n,o,r,i;if(!e||!t||e.length!==t.length)return!1;for(n=0,o=e.length;n<o;++n)if(r=e[n],i=t[n],r.datasetIndex!==i.datasetIndex||r.index!==i.index)return!1;return!0}function eT(e){if(qN(e))return e.map(eT);if(UN(e)){const t=Object.create(null),n=Object.keys(e),o=n.length;let r=0;for(;r<o;++r)t[n[r]]=eT(e[n[r]]);return t}return e}function tT(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function nT(e,t,n,o){if(!tT(e))return;const r=t[e],i=n[e];UN(r)&&UN(i)?oT(r,i,o):t[e]=eT(i)}function oT(e,t,n){const o=qN(t)?t:[t],r=o.length;if(!UN(e))return e;const i=(n=n||{}).merger||nT;let a;for(let t=0;t<r;++t){if(a=o[t],!UN(a))continue;const r=Object.keys(a);for(let t=0,o=r.length;t<o;++t)i(r[t],e,a,n)}return e}function rT(e,t){return oT(e,t,{merger:iT})}function iT(e,t,n){if(!tT(e))return;const o=t[e],r=n[e];UN(o)&&UN(r)?rT(o,r):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=eT(r))}const aT={"":e=>e,x:e=>e.x,y:e=>e.y};function sT(e,t){const n=aT[t]||(aT[t]=function(e){const t=function(e){const t=e.split("."),n=[];let o="";for(const e of t)o+=e,o.endsWith("\\")?o=o.slice(0,-1)+".":(n.push(o),o="");return n}(e);return e=>{for(const n of t){if(""===n)break;e=e&&e[n]}return e}}(t));return n(e)}function lT(e){return e.charAt(0).toUpperCase()+e.slice(1)}const cT=e=>void 0!==e,uT=e=>"function"==typeof e,dT=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0},fT=Math.PI,pT=2*fT,hT=pT+fT,mT=Number.POSITIVE_INFINITY,gT=fT/180,vT=fT/2,bT=fT/4,yT=2*fT/3,xT=Math.log10,wT=Math.sign;function CT(e,t,n){return Math.abs(e-t)<n}function ST(e){const t=Math.round(e);e=CT(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(xT(e))),o=e/n;return(o<=1?1:o<=2?2:o<=5?5:10)*n}function ET(e){return!isNaN(parseFloat(e))&&isFinite(e)}function kT(e){return e*(fT/180)}function $T(e){if(!GN(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function _T(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function OT(e,t){return(e-t+hT)%pT-fT}function jT(e){return(e%pT+pT)%pT}function MT(e,t,n,o){const r=jT(e),i=jT(t),a=jT(n),s=jT(i-r),l=jT(a-r),c=jT(r-i),u=jT(r-a);return r===i||r===a||o&&i===a||s>l&&c<u}function PT(e,t,n){return Math.max(t,Math.min(n,e))}function IT(e,t,n,o=1e-6){return e>=Math.min(t,n)-o&&e<=Math.max(t,n)+o}function NT(e,t,n){n=n||(n=>e[n]<t);let o,r=e.length-1,i=0;for(;r-i>1;)o=i+r>>1,n(o)?i=o:r=o;return{lo:i,hi:r}}const TT=(e,t,n,o)=>NT(e,n,o?o=>{const r=e[o][t];return r<n||r===n&&e[o+1][t]===n}:o=>e[o][t]<n),RT=(e,t,n)=>NT(e,n,(o=>e[o][t]>=n)),AT=["push","pop","shift","splice","unshift"];function DT(e,t){const n=e._chartjs;if(!n)return;const o=n.listeners,r=o.indexOf(t);-1!==r&&o.splice(r,1),o.length>0||(AT.forEach((t=>{delete e[t]})),delete e._chartjs)}const BT="undefined"==typeof window?function(e){return e()}:window.requestAnimationFrame;function LT(e,t){let n=[],o=!1;return function(...r){n=r,o||(o=!0,BT.call(window,(()=>{o=!1,e.apply(t,n)})))}}const zT=e=>"start"===e?"left":"end"===e?"right":"center",FT=(e,t,n)=>"start"===e?t:"end"===e?n:(t+n)/2;const HT=e=>0===e||1===e,VT=(e,t,n)=>-Math.pow(2,10*(e-=1))*Math.sin((e-t)*pT/n),WT=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*pT/n)+1,KT={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>1-Math.cos(e*vT),easeOutSine:e=>Math.sin(e*vT),easeInOutSine:e=>-.5*(Math.cos(fT*e)-1),easeInExpo:e=>0===e?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>HT(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(2-Math.pow(2,-10*(2*e-1))),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>HT(e)?e:VT(e,.075,.3),easeOutElastic:e=>HT(e)?e:WT(e,.075,.3),easeInOutElastic(e){const t=.1125;return HT(e)?e:e<.5?.5*VT(2*e,t,.45):.5+.5*WT(2*e-1,t,.45)},easeInBack(e){const t=1.70158;return e*e*((t+1)*e-t)},easeOutBack(e){const t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:e=>1-KT.easeOutBounce(1-e),easeOutBounce(e){const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},easeInOutBounce:e=>e<.5?.5*KT.easeInBounce(2*e):.5*KT.easeOutBounce(2*e-1)+.5};function qT(e){if(e&&"object"==typeof e){const t=e.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function UT(e){return qT(e)?e:new HN(e)}function GT(e){return qT(e)?e:new HN(e).saturate(.5).darken(.1).hexString()}const XT=["x","y","borderWidth","radius","tension"],YT=["color","borderColor","backgroundColor"],ZT=new Map;function QT(e,t,n){return function(e,t){t=t||{};const n=e+JSON.stringify(t);let o=ZT.get(n);return o||(o=new Intl.NumberFormat(e,t),ZT.set(n,o)),o}(t,n).format(e)}const JT={values:e=>qN(e)?e:""+e,numeric(e,t,n){if(0===e)return"0";const o=this.chart.options.locale;let r,i=e;if(n.length>1){const t=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(t<1e-4||t>1e15)&&(r="scientific"),i=function(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}(e,n)}const a=xT(Math.abs(i)),s=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:r,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),QT(e,o,l)},logarithmic(e,t,n){if(0===e)return"0";const o=n[t].significand||e/Math.pow(10,Math.floor(xT(e)));return[1,2,3,5,10,15].includes(o)||t>.8*n.length?JT.numeric.call(this,e,t,n):""}};var eR={formatters:JT};const tR=Object.create(null),nR=Object.create(null);function oR(e,t){if(!t)return e;const n=t.split(".");for(let t=0,o=n.length;t<o;++t){const o=n[t];e=e[o]||(e[o]=Object.create(null))}return e}function rR(e,t,n){return"string"==typeof t?oT(oR(e,t),n):oT(oR(e,""),t)}class iR{constructor(e,t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=e=>e.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,t)=>GT(t.backgroundColor),this.hoverBorderColor=(e,t)=>GT(t.borderColor),this.hoverColor=(e,t)=>GT(t.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(t)}set(e,t){return rR(this,e,t)}get(e){return oR(this,e)}describe(e,t){return rR(nR,e,t)}override(e,t){return rR(tR,e,t)}route(e,t,n,o){const r=oR(this,e),i=oR(this,n),a="_"+t;Object.defineProperties(r,{[a]:{value:r[t],writable:!0},[t]:{enumerable:!0,get(){const e=this[a],t=i[o];return UN(e)?Object.assign({},t,e):YN(e,t)},set(e){this[a]=e}}})}apply(e){e.forEach((e=>e(this)))}}var aR=new iR({_scriptable:e=>!e.startsWith("on"),_indexable:e=>"events"!==e,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}),e.set("animations",{colors:{type:"color",properties:YT},numbers:{type:"number",properties:XT}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>0|e}}}})},function(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:eR.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e,_indexable:e=>"borderDash"!==e&&"tickBorderDash"!==e&&"dash"!==e}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:e=>"backdropPadding"!==e&&"callback"!==e,_indexable:e=>"backdropPadding"!==e})}]);function sR(e,t,n,o,r){let i=t[r];return i||(i=t[r]=e.measureText(r).width,n.push(r)),i>o&&(o=i),o}function lR(e,t,n){const o=e.currentDevicePixelRatio,r=0!==n?Math.max(n/2,.5):0;return Math.round((t-r)*o)/o+r}function cR(e,t){(t=t||e.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore()}function uR(e,t,n,o){!function(e,t,n,o,r){let i,a,s,l,c,u,d,f;const p=t.pointStyle,h=t.rotation,m=t.radius;let g=(h||0)*gT;if(p&&"object"==typeof p&&(i=p.toString(),"[object HTMLImageElement]"===i||"[object HTMLCanvasElement]"===i))return e.save(),e.translate(n,o),e.rotate(g),e.drawImage(p,-p.width/2,-p.height/2,p.width,p.height),void e.restore();if(!(isNaN(m)||m<=0)){switch(e.beginPath(),p){default:r?e.ellipse(n,o,r/2,m,0,0,pT):e.arc(n,o,m,0,pT),e.closePath();break;case"triangle":u=r?r/2:m,e.moveTo(n+Math.sin(g)*u,o-Math.cos(g)*m),g+=yT,e.lineTo(n+Math.sin(g)*u,o-Math.cos(g)*m),g+=yT,e.lineTo(n+Math.sin(g)*u,o-Math.cos(g)*m),e.closePath();break;case"rectRounded":c=.516*m,l=m-c,a=Math.cos(g+bT)*l,d=Math.cos(g+bT)*(r?r/2-c:l),s=Math.sin(g+bT)*l,f=Math.sin(g+bT)*(r?r/2-c:l),e.arc(n-d,o-s,c,g-fT,g-vT),e.arc(n+f,o-a,c,g-vT,g),e.arc(n+d,o+s,c,g,g+vT),e.arc(n-f,o+a,c,g+vT,g+fT),e.closePath();break;case"rect":if(!h){l=Math.SQRT1_2*m,u=r?r/2:l,e.rect(n-u,o-l,2*u,2*l);break}g+=bT;case"rectRot":d=Math.cos(g)*(r?r/2:m),a=Math.cos(g)*m,s=Math.sin(g)*m,f=Math.sin(g)*(r?r/2:m),e.moveTo(n-d,o-s),e.lineTo(n+f,o-a),e.lineTo(n+d,o+s),e.lineTo(n-f,o+a),e.closePath();break;case"crossRot":g+=bT;case"cross":d=Math.cos(g)*(r?r/2:m),a=Math.cos(g)*m,s=Math.sin(g)*m,f=Math.sin(g)*(r?r/2:m),e.moveTo(n-d,o-s),e.lineTo(n+d,o+s),e.moveTo(n+f,o-a),e.lineTo(n-f,o+a);break;case"star":d=Math.cos(g)*(r?r/2:m),a=Math.cos(g)*m,s=Math.sin(g)*m,f=Math.sin(g)*(r?r/2:m),e.moveTo(n-d,o-s),e.lineTo(n+d,o+s),e.moveTo(n+f,o-a),e.lineTo(n-f,o+a),g+=bT,d=Math.cos(g)*(r?r/2:m),a=Math.cos(g)*m,s=Math.sin(g)*m,f=Math.sin(g)*(r?r/2:m),e.moveTo(n-d,o-s),e.lineTo(n+d,o+s),e.moveTo(n+f,o-a),e.lineTo(n-f,o+a);break;case"line":a=r?r/2:Math.cos(g)*m,s=Math.sin(g)*m,e.moveTo(n-a,o-s),e.lineTo(n+a,o+s);break;case"dash":e.moveTo(n,o),e.lineTo(n+Math.cos(g)*(r?r/2:m),o+Math.sin(g)*m);break;case!1:e.closePath()}e.fill(),t.borderWidth>0&&e.stroke()}}(e,t,n,o,null)}function dR(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function fR(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function pR(e){e.restore()}function hR(e,t,n,o,r){if(!t)return e.lineTo(n.x,n.y);if("middle"===r){const o=(t.x+n.x)/2;e.lineTo(o,t.y),e.lineTo(o,n.y)}else"after"===r!=!!o?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function mR(e,t,n,o){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(o?t.cp1x:t.cp2x,o?t.cp1y:t.cp2y,o?n.cp2x:n.cp1x,o?n.cp2y:n.cp1y,n.x,n.y)}function gR(e,t,n,o,r){if(r.strikethrough||r.underline){const i=e.measureText(o),a=t-i.actualBoundingBoxLeft,s=t+i.actualBoundingBoxRight,l=n-i.actualBoundingBoxAscent,c=n+i.actualBoundingBoxDescent,u=r.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=r.decorationWidth||2,e.moveTo(a,u),e.lineTo(s,u),e.stroke()}}function vR(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function bR(e,t,n,o,r,i={}){const a=qN(t)?t:[t],s=i.strokeWidth>0&&""!==i.strokeColor;let l,c;for(e.save(),e.font=r.string,function(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),KN(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}(e,i),l=0;l<a.length;++l)c=a[l],i.backdrop&&vR(e,i.backdrop),s&&(i.strokeColor&&(e.strokeStyle=i.strokeColor),KN(i.strokeWidth)||(e.lineWidth=i.strokeWidth),e.strokeText(c,n,o,i.maxWidth)),e.fillText(c,n,o,i.maxWidth),gR(e,n,o,c,i),o+=Number(r.lineHeight);e.restore()}function yR(e,t){const{x:n,y:o,w:r,h:i,radius:a}=t;e.arc(n+a.topLeft,o+a.topLeft,a.topLeft,1.5*fT,fT,!0),e.lineTo(n,o+i-a.bottomLeft),e.arc(n+a.bottomLeft,o+i-a.bottomLeft,a.bottomLeft,fT,vT,!0),e.lineTo(n+r-a.bottomRight,o+i),e.arc(n+r-a.bottomRight,o+i-a.bottomRight,a.bottomRight,vT,0,!0),e.lineTo(n+r,o+a.topRight),e.arc(n+r-a.topRight,o+a.topRight,a.topRight,0,-vT,!0),e.lineTo(n+a.topLeft,o)}const xR=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,wR=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function CR(e,t){const n=(""+e).match(xR);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e}const SR=e=>+e||0;function ER(e,t){const n={},o=UN(t),r=o?Object.keys(t):t,i=UN(e)?o?n=>YN(e[n],e[t[n]]):t=>e[t]:()=>e;for(const e of r)n[e]=SR(i(e));return n}function kR(e){return ER(e,["topLeft","topRight","bottomLeft","bottomRight"])}function $R(e){const t=function(e){return ER(e,{top:"y",right:"x",bottom:"y",left:"x"})}(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function _R(e,t){e=e||{},t=t||aR.font;let n=YN(e.size,t.size);"string"==typeof n&&(n=parseInt(n,10));let o=YN(e.style,t.style);o&&!(""+o).match(wR)&&(console.warn('Invalid font style specified: "'+o+'"'),o=void 0);const r={family:YN(e.family,t.family),lineHeight:CR(YN(e.lineHeight,t.lineHeight),n),size:n,style:o,weight:YN(e.weight,t.weight),string:""};return r.string=function(e){return!e||KN(e.size)||KN(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(r),r}function OR(e,t,n,o){let r,i,a,s=!0;for(r=0,i=e.length;r<i;++r)if(a=e[r],void 0!==a&&(void 0!==t&&"function"==typeof a&&(a=a(t),s=!1),void 0!==n&&qN(a)&&(a=a[n%a.length],s=!1),void 0!==a))return o&&!s&&(o.cacheable=!1),a}function jR(e,t){return Object.assign(Object.create(e),t)}function MR(e,t=[""],n,o,r=(()=>e[0])){const i=n||e;void 0===o&&(o=FR("_fallback",e));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:i,_fallback:o,_getTarget:r,override:n=>MR([n,...e],t,i,o)};return new Proxy(a,{deleteProperty:(t,n)=>(delete t[n],delete t._keys,delete e[0][n],!0),get:(n,o)=>RR(n,o,(()=>function(e,t,n,o){let r;for(const i of t)if(r=FR(NR(i,e),n),void 0!==r)return TR(e,r)?LR(n,o,e,r):r}(o,t,e,n))),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e._scopes[0],t),getPrototypeOf:()=>Reflect.getPrototypeOf(e[0]),has:(e,t)=>HR(e).includes(t),ownKeys:e=>HR(e),set(e,t,n){const o=e._storage||(e._storage=r());return e[t]=o[t]=n,delete e._keys,!0}})}function PR(e,t,n,o){const r={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:IR(e,o),setContext:t=>PR(e,t,n,o),override:r=>PR(e.override(r),t,n,o)};return new Proxy(r,{deleteProperty:(t,n)=>(delete t[n],delete e[n],!0),get:(e,t,n)=>RR(e,t,(()=>function(e,t,n){const{_proxy:o,_context:r,_subProxy:i,_descriptors:a}=e;let s=o[t];return uT(s)&&a.isScriptable(t)&&(s=function(e,t,n,o){const{_proxy:r,_context:i,_subProxy:a,_stack:s}=n;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e);let l=t(i,a||o);return s.delete(e),TR(e,l)&&(l=LR(r._scopes,r,e,l)),l}(t,s,e,n)),qN(s)&&s.length&&(s=function(e,t,n,o){const{_proxy:r,_context:i,_subProxy:a,_descriptors:s}=n;if(void 0!==i.index&&o(e))return t[i.index%t.length];if(UN(t[0])){const n=t,o=r._scopes.filter((e=>e!==n));t=[];for(const l of n){const n=LR(o,r,e,l);t.push(PR(n,i,a&&a[e],s))}}return t}(t,s,e,a.isIndexable)),TR(t,s)&&(s=PR(s,r,i&&i[t],a)),s}(e,t,n))),getOwnPropertyDescriptor:(t,n)=>t._descriptors.allKeys?Reflect.has(e,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,n),getPrototypeOf:()=>Reflect.getPrototypeOf(e),has:(t,n)=>Reflect.has(e,n),ownKeys:()=>Reflect.ownKeys(e),set:(t,n,o)=>(e[n]=o,delete t[n],!0)})}function IR(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:o=t.indexable,_allKeys:r=t.allKeys}=e;return{allKeys:r,scriptable:n,indexable:o,isScriptable:uT(n)?n:()=>n,isIndexable:uT(o)?o:()=>o}}const NR=(e,t)=>e?e+lT(t):t,TR=(e,t)=>UN(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object);function RR(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const o=n();return e[t]=o,o}function AR(e,t,n){return uT(e)?e(t,n):e}const DR=(e,t)=>!0===e?t:"string"==typeof e?sT(t,e):void 0;function BR(e,t,n,o,r){for(const i of t){const t=DR(n,i);if(t){e.add(t);const i=AR(t._fallback,n,r);if(void 0!==i&&i!==n&&i!==o)return i}else if(!1===t&&void 0!==o&&n!==o)return null}return!1}function LR(e,t,n,o){const r=t._rootScopes,i=AR(t._fallback,n,o),a=[...e,...r],s=new Set;s.add(o);let l=zR(s,a,n,i||n,o);return null!==l&&(void 0===i||i===n||(l=zR(s,a,i,l,o),null!==l))&&MR(Array.from(s),[""],r,i,(()=>function(e,t,n){const o=e._getTarget();t in o||(o[t]={});const r=o[t];return qN(r)&&UN(n)?n:r||{}}(t,n,o)))}function zR(e,t,n,o,r){for(;n;)n=BR(e,t,n,o,r);return n}function FR(e,t){for(const n of t){if(!n)continue;const t=n[e];if(void 0!==t)return t}}function HR(e){let t=e._keys;return t||(t=e._keys=function(e){const t=new Set;for(const n of e)for(const e of Object.keys(n).filter((e=>!e.startsWith("_"))))t.add(e);return Array.from(t)}(e._scopes)),t}const VR=Number.EPSILON||1e-14,WR=(e,t)=>t<e.length&&!e[t].skip&&e[t],KR=e=>"x"===e?"y":"x";function qR(e,t,n,o){const r=e.skip?t:e,i=t,a=n.skip?t:n,s=_T(i,r),l=_T(a,i);let c=s/(s+l),u=l/(s+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=o*c,f=o*u;return{previous:{x:i.x-d*(a.x-r.x),y:i.y-d*(a.y-r.y)},next:{x:i.x+f*(a.x-r.x),y:i.y+f*(a.y-r.y)}}}function UR(e,t,n){return Math.max(Math.min(e,n),t)}function GR(e,t,n,o,r){let i,a,s,l;if(t.spanGaps&&(e=e.filter((e=>!e.skip))),"monotone"===t.cubicInterpolationMode)!function(e,t="x"){const n=KR(t),o=e.length,r=Array(o).fill(0),i=Array(o);let a,s,l,c=WR(e,0);for(a=0;a<o;++a)if(s=l,l=c,c=WR(e,a+1),l){if(c){const e=c[t]-l[t];r[a]=0!==e?(c[n]-l[n])/e:0}i[a]=s?c?wT(r[a-1])!==wT(r[a])?0:(r[a-1]+r[a])/2:r[a-1]:r[a]}!function(e,t,n){const o=e.length;let r,i,a,s,l,c=WR(e,0);for(let u=0;u<o-1;++u)l=c,c=WR(e,u+1),l&&c&&(CT(t[u],0,VR)?n[u]=n[u+1]=0:(r=n[u]/t[u],i=n[u+1]/t[u],s=Math.pow(r,2)+Math.pow(i,2),s<=9||(a=3/Math.sqrt(s),n[u]=r*a*t[u],n[u+1]=i*a*t[u])))}(e,r,i),function(e,t,n="x"){const o=KR(n),r=e.length;let i,a,s,l=WR(e,0);for(let c=0;c<r;++c){if(a=s,s=l,l=WR(e,c+1),!s)continue;const r=s[n],u=s[o];a&&(i=(r-a[n])/3,s[`cp1${n}`]=r-i,s[`cp1${o}`]=u-i*t[c]),l&&(i=(l[n]-r)/3,s[`cp2${n}`]=r+i,s[`cp2${o}`]=u+i*t[c])}}(e,i,t)}(e,r);else{let n=o?e[e.length-1]:e[0];for(i=0,a=e.length;i<a;++i)s=e[i],l=qR(n,s,e[Math.min(i+1,a-(o?0:1))%a],t.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,n=s}t.capBezierPoints&&function(e,t){let n,o,r,i,a,s=dR(e[0],t);for(n=0,o=e.length;n<o;++n)a=i,i=s,s=n<o-1&&dR(e[n+1],t),i&&(r=e[n],a&&(r.cp1x=UR(r.cp1x,t.left,t.right),r.cp1y=UR(r.cp1y,t.top,t.bottom)),s&&(r.cp2x=UR(r.cp2x,t.left,t.right),r.cp2y=UR(r.cp2y,t.top,t.bottom)))}(e,n)}function XR(){return"undefined"!=typeof window&&"undefined"!=typeof document}function YR(e){let t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function ZR(e,t,n){let o;return"string"==typeof e?(o=parseInt(e,10),-1!==e.indexOf("%")&&(o=o/100*t.parentNode[n])):o=e,o}const QR=e=>e.ownerDocument.defaultView.getComputedStyle(e,null),JR=["top","right","bottom","left"];function eA(e,t,n){const o={};n=n?"-"+n:"";for(let r=0;r<4;r++){const i=JR[r];o[i]=parseFloat(e[t+"-"+i+n])||0}return o.width=o.left+o.right,o.height=o.top+o.bottom,o}const tA=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function nA(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:o}=t,r=QR(n),i="border-box"===r.boxSizing,a=eA(r,"padding"),s=eA(r,"border","width"),{x:l,y:c,box:u}=function(e,t){const n=e.touches,o=n&&n.length?n[0]:e,{offsetX:r,offsetY:i}=o;let a,s,l=!1;if(tA(r,i,e.target))a=r,s=i;else{const e=t.getBoundingClientRect();a=o.clientX-e.left,s=o.clientY-e.top,l=!0}return{x:a,y:s,box:l}}(e,n),d=a.left+(u&&s.left),f=a.top+(u&&s.top);let{width:p,height:h}=t;return i&&(p-=a.width+s.width,h-=a.height+s.height),{x:Math.round((l-d)/p*n.width/o),y:Math.round((c-f)/h*n.height/o)}}const oA=e=>Math.round(10*e)/10;function rA(e,t,n){const o=t||1,r=Math.floor(e.height*o),i=Math.floor(e.width*o);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${e.height}px`,a.style.width=`${e.width}px`),(e.currentDevicePixelRatio!==o||a.height!==r||a.width!==i)&&(e.currentDevicePixelRatio=o,a.height=r,a.width=i,e.ctx.setTransform(o,0,0,o,0,0),!0)}const iA=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};XR()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch(e){}return e}();function aA(e,t){const n=function(e,t){return QR(e).getPropertyValue(t)}(e,t),o=n&&n.match(/^(\d+)(\.\d+)?px$/);return o?+o[1]:void 0}function sA(e,t,n,o){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function lA(e,t,n,o){return{x:e.x+n*(t.x-e.x),y:"middle"===o?n<.5?e.y:t.y:"after"===o?n<1?e.y:t.y:n>0?t.y:e.y}}function cA(e,t,n,o){const r={x:e.cp2x,y:e.cp2y},i={x:t.cp1x,y:t.cp1y},a=sA(e,r,n),s=sA(r,i,n),l=sA(i,t,n),c=sA(a,s,n),u=sA(s,l,n);return sA(c,u,n)}function uA(e,t,n){return e?function(e,t){return{x:n=>e+e+t-n,setWidth(e){t=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,t)=>e-t,leftForLtr:(e,t)=>e-t}}(t,n):{x:e=>e,setWidth(e){},textAlign:e=>e,xPlus:(e,t)=>e+t,leftForLtr:(e,t)=>e}}function dA(e){return"angle"===e?{between:MT,compare:OT,normalize:jT}:{between:IT,compare:(e,t)=>e-t,normalize:e=>e}}function fA({start:e,end:t,count:n,loop:o,style:r}){return{start:e%n,end:t%n,loop:o&&(t-e+1)%n==0,style:r}}function pA(e,t,n){if(!n)return[e];const{property:o,start:r,end:i}=n,a=t.length,{compare:s,between:l,normalize:c}=dA(o),{start:u,end:d,loop:f,style:p}=function(e,t,n){const{property:o,start:r,end:i}=n,{between:a,normalize:s}=dA(o),l=t.length;let c,u,{start:d,end:f,loop:p}=e;if(p){for(d+=l,f+=l,c=0,u=l;c<u&&a(s(t[d%l][o]),r,i);++c)d--,f--;d%=l,f%=l}return f<d&&(f+=l),{start:d,end:f,loop:p,style:e.style}}(e,t,n),h=[];let m,g,v,b=!1,y=null;for(let e=u,n=u;e<=d;++e)g=t[e%a],g.skip||(m=c(g[o]),m!==v&&(b=l(m,r,i),null===y&&(b||l(r,v,m)&&0!==s(r,v))&&(y=0===s(m,r)?e:n),null!==y&&(!b||0===s(i,m)||l(i,v,m))&&(h.push(fA({start:y,end:e,loop:f,count:a,style:p})),y=null),n=e,v=m));return null!==y&&h.push(fA({start:y,end:d,loop:f,count:a,style:p})),h}function hA(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function mA(e,t){if(!t)return!1;const n=[],o=function(e,t){return qT(t)?(n.includes(t)||n.push(t),n.indexOf(t)):t};return JSON.stringify(e,o)!==JSON.stringify(t,o)}class gA{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,t,n,o){const r=t.listeners[o],i=t.duration;r.forEach((o=>o({chart:e,initial:t.initial,numSteps:i,currentStep:Math.min(n-t.start,i)})))}_refresh(){this._request||(this._running=!0,this._request=BT.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(e=Date.now()){let t=0;this._charts.forEach(((n,o)=>{if(!n.running||!n.items.length)return;const r=n.items;let i,a=r.length-1,s=!1;for(;a>=0;--a)i=r[a],i._active?(i._total>n.duration&&(n.duration=i._total),i.tick(e),s=!0):(r[a]=r[r.length-1],r.pop());s&&(o.draw(),this._notify(o,n,e,"progress")),r.length||(n.running=!1,this._notify(o,n,e,"complete"),n.initial=!1),t+=r.length})),this._lastDate=e,0===t&&(this._running=!1)}_getAnims(e){const t=this._charts;let n=t.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,n)),n}listen(e,t,n){this._getAnims(e).listeners[t].push(n)}add(e,t){t&&t.length&&this._getAnims(e).items.push(...t)}has(e){return this._getAnims(e).items.length>0}start(e){const t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce(((e,t)=>Math.max(e,t._duration)),0),this._refresh())}running(e){if(!this._running)return!1;const t=this._charts.get(e);return!!(t&&t.running&&t.items.length)}stop(e){const t=this._charts.get(e);if(!t||!t.items.length)return;const n=t.items;let o=n.length-1;for(;o>=0;--o)n[o].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var vA=new gA;const bA="transparent",yA={boolean:(e,t,n)=>n>.5?t:e,color(e,t,n){const o=UT(e||bA),r=o.valid&&UT(t||bA);return r&&r.valid?r.mix(o,n).hexString():t},number:(e,t,n)=>e+(t-e)*n};class xA{constructor(e,t,n,o){const r=t[n];o=OR([e.to,o,r,e.from]);const i=OR([e.from,r,o]);this._active=!0,this._fn=e.fn||yA[e.type||typeof i],this._easing=KT[e.easing]||KT.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=t,this._prop=n,this._from=i,this._to=o,this._promises=void 0}active(){return this._active}update(e,t,n){if(this._active){this._notify(!1);const o=this._target[this._prop],r=n-this._start,i=this._duration-r;this._start=n,this._duration=Math.floor(Math.max(i,e.duration)),this._total+=r,this._loop=!!e.loop,this._to=OR([e.to,t,o,e.from]),this._from=OR([e.from,o,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const t=e-this._start,n=this._duration,o=this._prop,r=this._from,i=this._loop,a=this._to;let s;if(this._active=r!==a&&(i||t<n),!this._active)return this._target[o]=a,void this._notify(!0);t<0?this._target[o]=r:(s=t/n%2,s=i&&s>1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[o]=this._fn(r,a,s))}wait(){const e=this._promises||(this._promises=[]);return new Promise(((t,n)=>{e.push({res:t,rej:n})}))}_notify(e){const t=e?"res":"rej",n=this._promises||[];for(let e=0;e<n.length;e++)n[e][t]()}}class wA{constructor(e,t){this._chart=e,this._properties=new Map,this.configure(t)}configure(e){if(!UN(e))return;const t=Object.keys(aR.animation),n=this._properties;Object.getOwnPropertyNames(e).forEach((o=>{const r=e[o];if(!UN(r))return;const i={};for(const e of t)i[e]=r[e];(qN(r.properties)&&r.properties||[o]).forEach((e=>{e!==o&&n.has(e)||n.set(e,i)}))}))}_animateOptions(e,t){const n=t.options,o=function(e,t){if(!t)return;let n=e.options;if(n)return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n;e.options=t}(e,n);if(!o)return[];const r=this._createAnimations(o,n);return n.$shared&&function(e,t){const n=[],o=Object.keys(t);for(let t=0;t<o.length;t++){const r=e[o[t]];r&&r.active()&&n.push(r.wait())}return Promise.all(n)}(e.options.$animations,n).then((()=>{e.options=n}),(()=>{})),r}_createAnimations(e,t){const n=this._properties,o=[],r=e.$animations||(e.$animations={}),i=Object.keys(t),a=Date.now();let s;for(s=i.length-1;s>=0;--s){const l=i[s];if("$"===l.charAt(0))continue;if("options"===l){o.push(...this._animateOptions(e,t));continue}const c=t[l];let u=r[l];const d=n.get(l);if(u){if(d&&u.active()){u.update(d,c,a);continue}u.cancel()}d&&d.duration?(r[l]=u=new xA(d,e,l,c),o.push(u)):e[l]=c}return o}update(e,t){if(0===this._properties.size)return void Object.assign(e,t);const n=this._createAnimations(e,t);return n.length?(vA.add(this._chart,n),!0):void 0}}function CA(e,t){const n=e&&e.options||{},o=n.reverse,r=void 0===n.min?t:0,i=void 0===n.max?t:0;return{start:o?i:r,end:o?r:i}}function SA(e,t){const n=[],o=e._getSortedDatasetMetas(t);let r,i;for(r=0,i=o.length;r<i;++r)n.push(o[r].index);return n}function EA(e,t,n,o={}){const r=e.keys,i="single"===o.mode;let a,s,l,c;if(null!==t){for(a=0,s=r.length;a<s;++a){if(l=+r[a],l===n){if(o.all)continue;break}c=e.values[l],GN(c)&&(i||0===t||wT(t)===wT(c))&&(t+=c)}return t}}function kA(e,t){const n=e&&e.options.stacked;return n||void 0===n&&void 0!==t.stack}function $A(e,t,n){const o=e[t]||(e[t]={});return o[n]||(o[n]={})}function _A(e,t,n,o){for(const r of t.getMatchingVisibleMetas(o).reverse()){const t=e[r.index];if(n&&t>0||!n&&t<0)return r.index}return null}function OA(e,t){const{chart:n,_cachedMeta:o}=e,r=n._stacks||(n._stacks={}),{iScale:i,vScale:a,index:s}=o,l=i.axis,c=a.axis,u=function(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}(i,a,o),d=t.length;let f;for(let e=0;e<d;++e){const n=t[e],{[l]:i,[c]:d}=n;f=(n._stacks||(n._stacks={}))[c]=$A(r,u,i),f[s]=d,f._top=_A(f,a,!0,o.type),f._bottom=_A(f,a,!1,o.type),(f._visualValues||(f._visualValues={}))[s]=d}}function jA(e,t){const n=e.scales;return Object.keys(n).filter((e=>n[e].axis===t)).shift()}function MA(e,t){const n=e.controller.index,o=e.vScale&&e.vScale.axis;if(o){t=t||e._parsed;for(const e of t){const t=e._stacks;if(!t||void 0===t[o]||void 0===t[o][n])return;delete t[o][n],void 0!==t[o]._visualValues&&void 0!==t[o]._visualValues[n]&&delete t[o]._visualValues[n]}}}const PA=e=>"reset"===e||"none"===e,IA=(e,t)=>t?e:Object.assign({},e);class NA{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(e,t){this.chart=e,this._ctx=e.ctx,this.index=t,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=kA(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&MA(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,t=this._cachedMeta,n=this.getDataset(),o=(e,t,n,o)=>"x"===e?t:"r"===e?o:n,r=t.xAxisID=YN(n.xAxisID,jA(e,"x")),i=t.yAxisID=YN(n.yAxisID,jA(e,"y")),a=t.rAxisID=YN(n.rAxisID,jA(e,"r")),s=t.indexAxis,l=t.iAxisID=o(s,r,i,a),c=t.vAxisID=o(s,i,r,a);t.xScale=this.getScaleForId(r),t.yScale=this.getScaleForId(i),t.rScale=this.getScaleForId(a),t.iScale=this.getScaleForId(l),t.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&DT(this._data,this),e._stacked&&MA(e)}_dataCheck(){const e=this.getDataset(),t=e.data||(e.data=[]),n=this._data;if(UN(t))this._data=function(e){const t=Object.keys(e),n=new Array(t.length);let o,r,i;for(o=0,r=t.length;o<r;++o)i=t[o],n[o]={x:i,y:e[i]};return n}(t);else if(n!==t){if(n){DT(n,this);const e=this._cachedMeta;MA(e),e._parsed=[]}t&&Object.isExtensible(t)&&(r=this,(o=t)._chartjs?o._chartjs.listeners.push(r):(Object.defineProperty(o,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[r]}}),AT.forEach((e=>{const t="_onData"+lT(e),n=o[e];Object.defineProperty(o,e,{configurable:!0,enumerable:!1,value(...e){const r=n.apply(this,e);return o._chartjs.listeners.forEach((n=>{"function"==typeof n[t]&&n[t](...e)})),r}})})))),this._syncList=[],this._data=t}var o,r}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const t=this._cachedMeta,n=this.getDataset();let o=!1;this._dataCheck();const r=t._stacked;t._stacked=kA(t.vScale,t),t.stack!==n.stack&&(o=!0,MA(t),t.stack=n.stack),this._resyncElements(e),(o||r!==t._stacked)&&OA(this,t._parsed)}configure(){const e=this.chart.config,t=e.datasetScopeKeys(this._type),n=e.getOptionScopes(this.getDataset(),t,!0);this.options=e.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,t){const{_cachedMeta:n,_data:o}=this,{iScale:r,_stacked:i}=n,a=r.axis;let s,l,c,u=0===e&&t===o.length||n._sorted,d=e>0&&n._parsed[e-1];if(!1===this._parsing)n._parsed=o,n._sorted=!0,c=o;else{c=qN(o[e])?this.parseArrayData(n,o,e,t):UN(o[e])?this.parseObjectData(n,o,e,t):this.parsePrimitiveData(n,o,e,t);const r=()=>null===l[a]||d&&l[a]<d[a];for(s=0;s<t;++s)n._parsed[s+e]=l=c[s],u&&(r()&&(u=!1),d=l);n._sorted=u}i&&OA(this,c)}parsePrimitiveData(e,t,n,o){const{iScale:r,vScale:i}=e,a=r.axis,s=i.axis,l=r.getLabels(),c=r===i,u=new Array(o);let d,f,p;for(d=0,f=o;d<f;++d)p=d+n,u[d]={[a]:c||r.parse(l[p],p),[s]:i.parse(t[p],p)};return u}parseArrayData(e,t,n,o){const{xScale:r,yScale:i}=e,a=new Array(o);let s,l,c,u;for(s=0,l=o;s<l;++s)c=s+n,u=t[c],a[s]={x:r.parse(u[0],c),y:i.parse(u[1],c)};return a}parseObjectData(e,t,n,o){const{xScale:r,yScale:i}=e,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,l=new Array(o);let c,u,d,f;for(c=0,u=o;c<u;++c)d=c+n,f=t[d],l[c]={x:r.parse(sT(f,a),d),y:i.parse(sT(f,s),d)};return l}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,t,n){const o=this.chart,r=this._cachedMeta,i=t[e.axis];return EA({keys:SA(o,!0),values:t._stacks[e.axis]._visualValues},i,r.index,{mode:n})}updateRangeFromParsed(e,t,n,o){const r=n[t.axis];let i=null===r?NaN:r;const a=o&&n._stacks[t.axis];o&&a&&(o.values=a,i=EA(o,r,this._cachedMeta.index)),e.min=Math.min(e.min,i),e.max=Math.max(e.max,i)}getMinMax(e,t){const n=this._cachedMeta,o=n._parsed,r=n._sorted&&e===n.iScale,i=o.length,a=this._getOtherScale(e),s=((e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:SA(n,!0),values:null})(t,n,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:u}=function(e){const{min:t,max:n,minDefined:o,maxDefined:r}=e.getUserBounds();return{min:o?t:Number.NEGATIVE_INFINITY,max:r?n:Number.POSITIVE_INFINITY}}(a);let d,f;function p(){f=o[d];const t=f[a.axis];return!GN(f[e.axis])||c>t||u<t}for(d=0;d<i&&(p()||(this.updateRangeFromParsed(l,e,f,s),!r));++d);if(r)for(d=i-1;d>=0;--d)if(!p()){this.updateRangeFromParsed(l,e,f,s);break}return l}getAllParsedValues(e){const t=this._cachedMeta._parsed,n=[];let o,r,i;for(o=0,r=t.length;o<r;++o)i=t[o][e.axis],GN(i)&&n.push(i);return n}getMaxOverflow(){return!1}getLabelAndValue(e){const t=this._cachedMeta,n=t.iScale,o=t.vScale,r=this.getParsed(e);return{label:n?""+n.getLabelForValue(r[n.axis]):"",value:o?""+o.getLabelForValue(r[o.axis]):""}}_update(e){const t=this._cachedMeta;this.update(e||"default"),t._clip=function(e){let t,n,o,r;return UN(e)?(t=e.top,n=e.right,o=e.bottom,r=e.left):t=n=o=r=e,{top:t,right:n,bottom:o,left:r,disabled:!1===e}}(YN(this.options.clip,function(e,t,n){if(!1===n)return!1;const o=CA(e,n),r=CA(t,n);return{top:r.end,right:o.end,bottom:r.start,left:o.start}}(t.xScale,t.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,t=this.chart,n=this._cachedMeta,o=n.data||[],r=t.chartArea,i=[],a=this._drawStart||0,s=this._drawCount||o.length-a,l=this.options.drawActiveElementsOnTop;let c;for(n.dataset&&n.dataset.draw(e,r,a,s),c=a;c<a+s;++c){const t=o[c];t.hidden||(t.active&&l?i.push(t):t.draw(e,r))}for(c=0;c<i.length;++c)i[c].draw(e,r)}getStyle(e,t){const n=t?"active":"default";return void 0===e&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(e||0,n)}getContext(e,t,n){const o=this.getDataset();let r;if(e>=0&&e<this._cachedMeta.data.length){const t=this._cachedMeta.data[e];r=t.$context||(t.$context=function(e,t,n){return jR(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}(this.getContext(),e,t)),r.parsed=this.getParsed(e),r.raw=o.data[e],r.index=r.dataIndex=e}else r=this.$context||(this.$context=function(e,t){return jR(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),r.dataset=o,r.index=r.datasetIndex=this.index;return r.active=!!t,r.mode=n,r}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,t){return this._resolveElementOptions(this.dataElementType.id,t,e)}_resolveElementOptions(e,t="default",n){const o="active"===t,r=this._cachedDataOpts,i=e+"-"+t,a=r[i],s=this.enableOptionSharing&&cT(n);if(a)return IA(a,s);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,e),u=o?[`${e}Hover`,"hover",e,""]:[e,""],d=l.getOptionScopes(this.getDataset(),c),f=Object.keys(aR.elements[e]),p=l.resolveNamedOptions(d,f,(()=>this.getContext(n,o,t)),u);return p.$shared&&(p.$shared=s,r[i]=Object.freeze(IA(p,s))),p}_resolveAnimations(e,t,n){const o=this.chart,r=this._cachedDataOpts,i=`animation-${t}`,a=r[i];if(a)return a;let s;if(!1!==o.options.animation){const o=this.chart.config,r=o.datasetAnimationScopeKeys(this._type,t),i=o.getOptionScopes(this.getDataset(),r);s=o.createResolver(i,this.getContext(e,n,t))}const l=new wA(o,s&&s.animations);return s&&s._cacheable&&(r[i]=Object.freeze(l)),l}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,t){return!t||PA(e)||this.chart._animationsDisabled}_getSharedOptions(e,t){const n=this.resolveDataElementOptions(e,t),o=this._sharedOptions,r=this.getSharedOptions(n),i=this.includeOptions(t,r)||r!==o;return this.updateSharedOptions(r,t,n),{sharedOptions:r,includeOptions:i}}updateElement(e,t,n,o){PA(o)?Object.assign(e,n):this._resolveAnimations(t,o).update(e,n)}updateSharedOptions(e,t,n){e&&!PA(t)&&this._resolveAnimations(void 0,t).update(e,n)}_setStyle(e,t,n,o){e.active=o;const r=this.getStyle(t,o);this._resolveAnimations(t,n,o).update(e,{options:!o&&this.getSharedOptions(r)||r})}removeHoverStyle(e,t,n){this._setStyle(e,n,"active",!1)}setHoverStyle(e,t,n){this._setStyle(e,n,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const t=this._data,n=this._cachedMeta.data;for(const[e,t,n]of this._syncList)this[e](t,n);this._syncList=[];const o=n.length,r=t.length,i=Math.min(r,o);i&&this.parse(0,i),r>o?this._insertElements(o,r-o,e):r<o&&this._removeElements(r,o-r)}_insertElements(e,t,n=!0){const o=this._cachedMeta,r=o.data,i=e+t;let a;const s=e=>{for(e.length+=t,a=e.length-1;a>=i;a--)e[a]=e[a-t]};for(s(r),a=e;a<i;++a)r[a]=new this.dataElementType;this._parsing&&s(o._parsed),this.parse(e,t),n&&this.updateElements(r,e,t,"reset")}updateElements(e,t,n,o){}_removeElements(e,t){const n=this._cachedMeta;if(this._parsing){const o=n._parsed.splice(e,t);n._stacked&&MA(n,o)}n.data.splice(e,t)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[t,n,o]=e;this[t](n,o)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,t){t&&this._sync(["_removeElements",e,t]);const n=arguments.length-2;n&&this._sync(["_insertElements",e,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function TA(e){const t=e.iScale,n=function(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let o=[];for(let t=0,r=n.length;t<r;t++)o=o.concat(n[t].controller.getAllParsedValues(e));e._cache.$bar=function(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}(o.sort(((e,t)=>e-t)))}return e._cache.$bar}(t,e.type);let o,r,i,a,s=t._length;const l=()=>{32767!==i&&-32768!==i&&(cT(a)&&(s=Math.min(s,Math.abs(i-a)||s)),a=i)};for(o=0,r=n.length;o<r;++o)i=t.getPixelForValue(n[o]),l();for(a=void 0,o=0,r=t.ticks.length;o<r;++o)i=t.getPixelForTick(o),l();return s}function RA(e,t,n,o){return qN(e)?function(e,t,n,o){const r=n.parse(e[0],o),i=n.parse(e[1],o),a=Math.min(r,i),s=Math.max(r,i);let l=a,c=s;Math.abs(a)>Math.abs(s)&&(l=s,c=a),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:r,end:i,min:a,max:s}}(e,t,n,o):t[n.axis]=n.parse(e,o),t}function AA(e,t,n,o){const r=e.iScale,i=e.vScale,a=r.getLabels(),s=r===i,l=[];let c,u,d,f;for(c=n,u=n+o;c<u;++c)f=t[c],d={},d[r.axis]=s||r.parse(a[c],c),l.push(RA(f,d,i,c));return l}function DA(e){return e&&void 0!==e.barStart&&void 0!==e.barEnd}function BA(e,t,n,o){let r=t.borderSkipped;const i={};if(!r)return void(e.borderSkipped=i);if(!0===r)return void(e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:a,end:s,reverse:l,top:c,bottom:u}=function(e){let t,n,o,r,i;return e.horizontal?(t=e.base>e.x,n="left",o="right"):(t=e.base<e.y,n="bottom",o="top"),t?(r="end",i="start"):(r="start",i="end"),{start:n,end:o,reverse:t,top:r,bottom:i}}(e);"middle"===r&&n&&(e.enableBorderRadius=!0,(n._top||0)===o?r=c:(n._bottom||0)===o?r=u:(i[LA(u,a,s,l)]=!0,r=c)),i[LA(r,a,s,l)]=!0,e.borderSkipped=i}function LA(e,t,n,o){var r,i,a;return o?(a=n,e=zA(e=(r=e)===(i=t)?a:r===a?i:r,n,t)):e=zA(e,t,n),e}function zA(e,t,n){return"start"===e?t:"end"===e?n:e}function FA(e,{inflateAmount:t},n){e.inflateAmount="auto"===t?1===n?.33:0:t}class HA extends NA{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(e,t,n,o){return AA(e,t,n,o)}parseArrayData(e,t,n,o){return AA(e,t,n,o)}parseObjectData(e,t,n,o){const{iScale:r,vScale:i}=e,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,l="x"===r.axis?a:s,c="x"===i.axis?a:s,u=[];let d,f,p,h;for(d=n,f=n+o;d<f;++d)h=t[d],p={},p[r.axis]=r.parse(sT(h,l),d),u.push(RA(sT(h,c),p,i,d));return u}updateRangeFromParsed(e,t,n,o){super.updateRangeFromParsed(e,t,n,o);const r=n._custom;r&&t===this._cachedMeta.vScale&&(e.min=Math.min(e.min,r.min),e.max=Math.max(e.max,r.max))}getMaxOverflow(){return 0}getLabelAndValue(e){const t=this._cachedMeta,{iScale:n,vScale:o}=t,r=this.getParsed(e),i=r._custom,a=DA(i)?"["+i.start+", "+i.end+"]":""+o.getLabelForValue(r[o.axis]);return{label:""+n.getLabelForValue(r[n.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize(),this._cachedMeta.stack=this.getDataset().stack}update(e){const t=this._cachedMeta;this.updateElements(t.data,0,t.data.length,e)}updateElements(e,t,n,o){const r="reset"===o,{index:i,_cachedMeta:{vScale:a}}=this,s=a.getBasePixel(),l=a.isHorizontal(),c=this._getRuler(),{sharedOptions:u,includeOptions:d}=this._getSharedOptions(t,o);for(let f=t;f<t+n;f++){const t=this.getParsed(f),n=r||KN(t[a.axis])?{base:s,head:s}:this._calculateBarValuePixels(f),p=this._calculateBarIndexPixels(f,c),h=(t._stacks||{})[a.axis],m={horizontal:l,base:n.base,enableBorderRadius:!h||DA(t._custom)||i===h._top||i===h._bottom,x:l?n.head:p.center,y:l?p.center:n.head,height:l?p.size:Math.abs(n.size),width:l?Math.abs(n.size):p.size};d&&(m.options=u||this.resolveDataElementOptions(f,e[f].active?"active":o));const g=m.options||e[f].options;BA(m,g,h,i),FA(m,g,c.ratio),this.updateElement(e[f],f,m,o)}}_getStacks(e,t){const{iScale:n}=this._cachedMeta,o=n.getMatchingVisibleMetas(this._type).filter((e=>e.controller.options.grouped)),r=n.options.stacked,i=[],a=e=>{const n=e.controller.getParsed(t),o=n&&n[e.vScale.axis];if(KN(o)||isNaN(o))return!0};for(const n of o)if((void 0===t||!a(n))&&((!1===r||-1===i.indexOf(n.stack)||void 0===r&&void 0===n.stack)&&i.push(n.stack),n.index===e))break;return i.length||i.push(void 0),i}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,t,n){const o=this._getStacks(e,n),r=void 0!==t?o.indexOf(t):-1;return-1===r?o.length-1:r}_getRuler(){const e=this.options,t=this._cachedMeta,n=t.iScale,o=[];let r,i;for(r=0,i=t.data.length;r<i;++r)o.push(n.getPixelForValue(this.getParsed(r)[n.axis],r));const a=e.barThickness;return{min:a||TA(t),pixels:o,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:e.grouped,ratio:a?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:t,_stacked:n,index:o},options:{base:r,minBarLength:i}}=this,a=r||0,s=this.getParsed(e),l=s._custom,c=DA(l);let u,d,f=s[t.axis],p=0,h=n?this.applyStack(t,s,n):f;h!==f&&(p=h-f,h=f),c&&(f=l.barStart,h=l.barEnd-l.barStart,0!==f&&wT(f)!==wT(l.barEnd)&&(p=0),p+=f);const m=KN(r)||c?p:r;let g=t.getPixelForValue(m);if(u=this.chart.getDataVisibility(e)?t.getPixelForValue(p+h):g,d=u-g,Math.abs(d)<i){d=function(e,t,n){return 0!==e?wT(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}(d,t,a)*i,f===a&&(g-=d/2);const e=t.getPixelForDecimal(0),r=t.getPixelForDecimal(1),l=Math.min(e,r),p=Math.max(e,r);g=Math.max(Math.min(g,p),l),u=g+d,n&&!c&&(s._stacks[t.axis]._visualValues[o]=t.getValueForPixel(u)-t.getValueForPixel(g))}if(g===t.getPixelForValue(a)){const e=wT(d)*t.getLineWidthForValue(a)/2;g+=e,d-=e}return{size:d,base:g,head:u,center:u+d/2}}_calculateBarIndexPixels(e,t){const n=t.scale,o=this.options,r=o.skipNull,i=YN(o.maxBarThickness,1/0);let a,s;if(t.grouped){const n=r?this._getStackCount(e):t.stackCount,l="flex"===o.barThickness?function(e,t,n,o){const r=t.pixels,i=r[e];let a=e>0?r[e-1]:null,s=e<r.length-1?r[e+1]:null;const l=n.categoryPercentage;null===a&&(a=i-(null===s?t.end-t.start:s-i)),null===s&&(s=i+i-a);const c=i-(i-Math.min(a,s))/2*l;return{chunk:Math.abs(s-a)/2*l/o,ratio:n.barPercentage,start:c}}(e,t,o,n):function(e,t,n,o){const r=n.barThickness;let i,a;return KN(r)?(i=t.min*n.categoryPercentage,a=n.barPercentage):(i=r*o,a=1),{chunk:i/o,ratio:a,start:t.pixels[e]-i/2}}(e,t,o,n),c=this._getStackIndex(this.index,this._cachedMeta.stack,r?e:void 0);a=l.start+l.chunk*c+l.chunk/2,s=Math.min(i,l.chunk*l.ratio)}else a=n.getPixelForValue(this.getParsed(e)[n.axis],e),s=Math.min(i,t.min*t.ratio);return{base:a-s/2,head:a+s/2,center:a,size:s}}draw(){const e=this._cachedMeta,t=e.vScale,n=e.data,o=n.length;let r=0;for(;r<o;++r)null!==this.getParsed(r)[t.axis]&&n[r].draw(this._ctx)}}function VA(e,t,n,o){const{controller:r,data:i,_sorted:a}=e,s=r._cachedMeta.iScale;if(s&&t===s.axis&&"r"!==t&&a&&i.length){const e=s._reversePixels?RT:TT;if(!o)return e(i,t,n);if(r._sharedOptions){const o=i[0],r="function"==typeof o.getRange&&o.getRange(t);if(r){const o=e(i,t,n-r),a=e(i,t,n+r);return{lo:o.lo,hi:a.hi}}}}return{lo:0,hi:i.length-1}}function WA(e,t,n,o,r){const i=e.getSortedVisibleDatasetMetas(),a=n[t];for(let e=0,n=i.length;e<n;++e){const{index:n,data:s}=i[e],{lo:l,hi:c}=VA(i[e],t,a,r);for(let e=l;e<=c;++e){const t=s[e];t.skip||o(t,n,e)}}}function KA(e,t,n,o,r){const i=[];return r||e.isPointInArea(t)?(WA(e,n,t,(function(n,a,s){(r||dR(n,e.chartArea,0))&&n.inRange(t.x,t.y,o)&&i.push({element:n,datasetIndex:a,index:s})}),!0),i):i}function qA(e,t,n,o,r,i){return i||e.isPointInArea(t)?"r"!==n||o?function(e,t,n,o,r,i){let a=[];const s=function(e){const t=-1!==e.indexOf("x"),n=-1!==e.indexOf("y");return function(e,o){const r=t?Math.abs(e.x-o.x):0,i=n?Math.abs(e.y-o.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(i,2))}}(n);let l=Number.POSITIVE_INFINITY;return WA(e,n,t,(function(n,c,u){const d=n.inRange(t.x,t.y,r);if(o&&!d)return;const f=n.getCenterPoint(r);if(!i&&!e.isPointInArea(f)&&!d)return;const p=s(t,f);p<l?(a=[{element:n,datasetIndex:c,index:u}],l=p):p===l&&a.push({element:n,datasetIndex:c,index:u})})),a}(e,t,n,o,r,i):function(e,t,n,o){let r=[];return WA(e,n,t,(function(e,n,i){const{startAngle:a,endAngle:s}=e.getProps(["startAngle","endAngle"],o),{angle:l}=function(e,t){const n=t.x-e.x,o=t.y-e.y,r=Math.sqrt(n*n+o*o);let i=Math.atan2(o,n);return i<-.5*fT&&(i+=pT),{angle:i,distance:r}}(e,{x:t.x,y:t.y});MT(l,a,s)&&r.push({element:e,datasetIndex:n,index:i})})),r}(e,t,n,r):[]}function UA(e,t,n,o,r){const i=[],a="x"===n?"inXRange":"inYRange";let s=!1;return WA(e,n,t,((e,o,l)=>{e[a](t[n],r)&&(i.push({element:e,datasetIndex:o,index:l}),s=s||e.inRange(t.x,t.y,r))})),o&&!s?[]:i}var GA={evaluateInteractionItems:WA,modes:{index(e,t,n,o){const r=nA(t,e),i=n.axis||"x",a=n.includeInvisible||!1,s=n.intersect?KA(e,r,i,o,a):qA(e,r,i,!1,o,a),l=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach((e=>{const t=s[0].index,n=e.data[t];n&&!n.skip&&l.push({element:n,datasetIndex:e.index,index:t})})),l):[]},dataset(e,t,n,o){const r=nA(t,e),i=n.axis||"xy",a=n.includeInvisible||!1;let s=n.intersect?KA(e,r,i,o,a):qA(e,r,i,!1,o,a);if(s.length>0){const t=s[0].datasetIndex,n=e.getDatasetMeta(t).data;s=[];for(let e=0;e<n.length;++e)s.push({element:n[e],datasetIndex:t,index:e})}return s},point:(e,t,n,o)=>KA(e,nA(t,e),n.axis||"xy",o,n.includeInvisible||!1),nearest(e,t,n,o){const r=nA(t,e),i=n.axis||"xy",a=n.includeInvisible||!1;return qA(e,r,i,n.intersect,o,a)},x:(e,t,n,o)=>UA(e,nA(t,e),"x",n.intersect,o),y:(e,t,n,o)=>UA(e,nA(t,e),"y",n.intersect,o)}};const XA=["left","top","right","bottom"];function YA(e,t){return e.filter((e=>e.pos===t))}function ZA(e,t){return e.filter((e=>-1===XA.indexOf(e.pos)&&e.box.axis===t))}function QA(e,t){return e.sort(((e,n)=>{const o=t?n:e,r=t?e:n;return o.weight===r.weight?o.index-r.index:o.weight-r.weight}))}function JA(e,t,n,o){return Math.max(e[n],t[n])+Math.max(e[o],t[o])}function eD(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function tD(e,t,n,o){const{pos:r,box:i}=n,a=e.maxPadding;if(!UN(r)){n.size&&(e[r]-=n.size);const t=o[n.stack]||{size:0,count:1};t.size=Math.max(t.size,n.horizontal?i.height:i.width),n.size=t.size/t.count,e[r]+=n.size}i.getPadding&&eD(a,i.getPadding());const s=Math.max(0,t.outerWidth-JA(a,e,"left","right")),l=Math.max(0,t.outerHeight-JA(a,e,"top","bottom")),c=s!==e.w,u=l!==e.h;return e.w=s,e.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function nD(e,t){const n=t.maxPadding;return function(e){const o={left:0,top:0,right:0,bottom:0};return e.forEach((e=>{o[e]=Math.max(t[e],n[e])})),o}(e?["left","right"]:["top","bottom"])}function oD(e,t,n,o){const r=[];let i,a,s,l,c,u;for(i=0,a=e.length,c=0;i<a;++i){s=e[i],l=s.box,l.update(s.width||t.w,s.height||t.h,nD(s.horizontal,t));const{same:a,other:d}=tD(t,n,s,o);c|=a&&r.length,u=u||d,l.fullSize||r.push(s)}return c&&oD(r,t,n,o)||u}function rD(e,t,n,o,r){e.top=n,e.left=t,e.right=t+o,e.bottom=n+r,e.width=o,e.height=r}function iD(e,t,n,o){const r=n.padding;let{x:i,y:a}=t;for(const s of e){const e=s.box,l=o[s.stack]||{count:1,placed:0,weight:1},c=s.stackWeight/l.weight||1;if(s.horizontal){const o=t.w*c,i=l.size||e.height;cT(l.start)&&(a=l.start),e.fullSize?rD(e,r.left,a,n.outerWidth-r.right-r.left,i):rD(e,t.left+l.placed,a,o,i),l.start=a,l.placed+=o,a=e.bottom}else{const o=t.h*c,a=l.size||e.width;cT(l.start)&&(i=l.start),e.fullSize?rD(e,i,r.top,a,n.outerHeight-r.bottom-r.top):rD(e,i,t.top+l.placed,a,o),l.start=i,l.placed+=o,i=e.right}}t.x=i,t.y=a}var aD={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(e){t.draw(e)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,o){if(!e)return;const r=$R(e.options.layout.padding),i=Math.max(t-r.width,0),a=Math.max(n-r.height,0),s=function(e){const t=function(e){const t=[];let n,o,r,i,a,s;for(n=0,o=(e||[]).length;n<o;++n)r=e[n],({position:i,options:{stack:a,stackWeight:s=1}}=r),t.push({index:n,box:r,pos:i,horizontal:r.isHorizontal(),weight:r.weight,stack:a&&i+a,stackWeight:s});return t}(e),n=QA(t.filter((e=>e.box.fullSize)),!0),o=QA(YA(t,"left"),!0),r=QA(YA(t,"right")),i=QA(YA(t,"top"),!0),a=QA(YA(t,"bottom")),s=ZA(t,"x"),l=ZA(t,"y");return{fullSize:n,leftAndTop:o.concat(i),rightAndBottom:r.concat(l).concat(a).concat(s),chartArea:YA(t,"chartArea"),vertical:o.concat(r).concat(l),horizontal:i.concat(a).concat(s)}}(e.boxes),l=s.vertical,c=s.horizontal;QN(e.boxes,(e=>{"function"==typeof e.beforeLayout&&e.beforeLayout()}));const u=l.reduce(((e,t)=>t.box.options&&!1===t.box.options.display?e:e+1),0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:r,availableWidth:i,availableHeight:a,vBoxMaxWidth:i/2/u,hBoxMaxHeight:a/2}),f=Object.assign({},r);eD(f,$R(o));const p=Object.assign({maxPadding:f,w:i,h:a,x:r.left,y:r.top},r),h=function(e,t){const n=function(e){const t={};for(const n of e){const{stack:e,pos:o,stackWeight:r}=n;if(!e||!XA.includes(o))continue;const i=t[e]||(t[e]={count:0,placed:0,weight:0,size:0});i.count++,i.weight+=r}return t}(e),{vBoxMaxWidth:o,hBoxMaxHeight:r}=t;let i,a,s;for(i=0,a=e.length;i<a;++i){s=e[i];const{fullSize:a}=s.box,l=n[s.stack],c=l&&s.stackWeight/l.weight;s.horizontal?(s.width=c?c*o:a&&t.availableWidth,s.height=r):(s.width=o,s.height=c?c*r:a&&t.availableHeight)}return n}(l.concat(c),d);oD(s.fullSize,p,d,h),oD(l,p,d,h),oD(c,p,d,h)&&oD(l,p,d,h),function(e){const t=e.maxPadding;function n(n){const o=Math.max(t[n]-e[n],0);return e[n]+=o,o}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}(p),iD(s.leftAndTop,p,d,h),p.x+=p.w,p.y+=p.h,iD(s.rightAndBottom,p,d,h),e.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},QN(s.chartArea,(t=>{const n=t.box;Object.assign(n,e.chartArea),n.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})}))}};class sD{acquireContext(e,t){}releaseContext(e){return!1}addEventListener(e,t,n){}removeEventListener(e,t,n){}getDevicePixelRatio(){return 1}getMaximumSize(e,t,n,o){return t=Math.max(0,t||e.width),n=n||e.height,{width:t,height:Math.max(0,o?Math.floor(t/o):n)}}isAttached(e){return!0}updateConfig(e){}}class lD extends sD{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const cD="$chartjs",uD={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},dD=e=>null===e||""===e,fD=!!iA&&{passive:!0};function pD(e,t,n){e.canvas.removeEventListener(t,n,fD)}function hD(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function mD(e,t,n){const o=e.canvas,r=new MutationObserver((e=>{let t=!1;for(const n of e)t=t||hD(n.addedNodes,o),t=t&&!hD(n.removedNodes,o);t&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}function gD(e,t,n){const o=e.canvas,r=new MutationObserver((e=>{let t=!1;for(const n of e)t=t||hD(n.removedNodes,o),t=t&&!hD(n.addedNodes,o);t&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}const vD=new Map;let bD=0;function yD(){const e=window.devicePixelRatio;e!==bD&&(bD=e,vD.forEach(((t,n)=>{n.currentDevicePixelRatio!==e&&t()})))}function xD(e,t,n){const o=e.canvas,r=o&&YR(o);if(!r)return;const i=LT(((e,t)=>{const o=r.clientWidth;n(e,t),o<r.clientWidth&&n()}),window),a=new ResizeObserver((e=>{const t=e[0],n=t.contentRect.width,o=t.contentRect.height;0===n&&0===o||i(n,o)}));return a.observe(r),function(e,t){vD.size||window.addEventListener("resize",yD),vD.set(e,t)}(e,i),a}function wD(e,t,n){n&&n.disconnect(),"resize"===t&&function(e){vD.delete(e),vD.size||window.removeEventListener("resize",yD)}(e)}function CD(e,t,n){const o=e.canvas,r=LT((t=>{null!==e.ctx&&n(function(e,t){const n=uD[e.type]||e.type,{x:o,y:r}=nA(e,t);return{type:n,chart:t,native:e,x:void 0!==o?o:null,y:void 0!==r?r:null}}(t,e))}),e);return function(e,t,n){e.addEventListener(t,n,fD)}(o,t,r),r}class SD extends sD{acquireContext(e,t){const n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(function(e,t){const n=e.style,o=e.getAttribute("height"),r=e.getAttribute("width");if(e[cD]={initial:{height:o,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",dD(r)){const t=aA(e,"width");void 0!==t&&(e.width=t)}if(dD(o))if(""===e.style.height)e.height=e.width/(t||2);else{const t=aA(e,"height");void 0!==t&&(e.height=t)}}(e,t),n):null}releaseContext(e){const t=e.canvas;if(!t[cD])return!1;const n=t[cD].initial;["height","width"].forEach((e=>{const o=n[e];KN(o)?t.removeAttribute(e):t.setAttribute(e,o)}));const o=n.style||{};return Object.keys(o).forEach((e=>{t.style[e]=o[e]})),t.width=t.width,delete t[cD],!0}addEventListener(e,t,n){this.removeEventListener(e,t);const o=e.$proxies||(e.$proxies={}),r={attach:mD,detach:gD,resize:xD}[t]||CD;o[t]=r(e,t,n)}removeEventListener(e,t){const n=e.$proxies||(e.$proxies={}),o=n[t];o&&(({attach:wD,detach:wD,resize:wD}[t]||pD)(e,t,o),n[t]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,n,o){return function(e,t,n,o){const r=QR(e),i=eA(r,"margin"),a=ZR(r.maxWidth,e,"clientWidth")||mT,s=ZR(r.maxHeight,e,"clientHeight")||mT,l=function(e,t,n){let o,r;if(void 0===t||void 0===n){const i=YR(e);if(i){const e=i.getBoundingClientRect(),a=QR(i),s=eA(a,"border","width"),l=eA(a,"padding");t=e.width-l.width-s.width,n=e.height-l.height-s.height,o=ZR(a.maxWidth,i,"clientWidth"),r=ZR(a.maxHeight,i,"clientHeight")}else t=e.clientWidth,n=e.clientHeight}return{width:t,height:n,maxWidth:o||mT,maxHeight:r||mT}}(e,t,n);let{width:c,height:u}=l;if("content-box"===r.boxSizing){const e=eA(r,"border","width"),t=eA(r,"padding");c-=t.width+e.width,u-=t.height+e.height}return c=Math.max(0,c-i.width),u=Math.max(0,o?c/o:u-i.height),c=oA(Math.min(c,a,l.maxWidth)),u=oA(Math.min(u,s,l.maxHeight)),c&&!u&&(u=oA(c/2)),(void 0!==t||void 0!==n)&&o&&l.height&&u>l.height&&(u=l.height,c=oA(Math.floor(u*o))),{width:c,height:u}}(e,t,n,o)}isAttached(e){const t=YR(e);return!(!t||!t.isConnected)}}class ED{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(e){const{x:t,y:n}=this.getProps(["x","y"],e);return{x:t,y:n}}hasValue(){return ET(this.x)&&ET(this.y)}getProps(e,t){const n=this.$animations;if(!t||!n)return this;const o={};return e.forEach((e=>{o[e]=n[e]&&n[e].active()?n[e]._to:this[e]})),o}}function kD(e,t,n,o,r){const i=YN(o,0),a=Math.min(YN(r,e.length),e.length);let s,l,c,u=0;for(n=Math.ceil(n),r&&(s=r-o,n=s/Math.floor(s/n)),c=i;c<0;)u++,c=Math.round(i+u*n);for(l=Math.max(i,0);l<a;l++)l===c&&(t.push(e[l]),u++,c=Math.round(i+u*n))}const $D=(e,t,n)=>"top"===t||"left"===t?e[t]+n:e[t]-n,_D=(e,t)=>Math.min(t||e,e);function OD(e,t){const n=[],o=e.length/t,r=e.length;let i=0;for(;i<r;i+=o)n.push(e[Math.floor(i)]);return n}function jD(e,t,n){const o=e.ticks.length,r=Math.min(t,o-1),i=e._startPixel,a=e._endPixel,s=1e-6;let l,c=e.getPixelForTick(r);if(!(n&&(l=1===o?Math.max(c-i,a-c):0===t?(e.getPixelForTick(1)-c)/2:(c-e.getPixelForTick(r-1))/2,c+=r<t?l:-l,c<i-s||c>a+s)))return c}function MD(e){return e.drawTicks?e.tickLength:0}function PD(e,t){if(!e.display)return 0;const n=_R(e.font,t),o=$R(e.padding);return(qN(e.text)?e.text.length:1)*n.lineHeight+o.height}function ID(e,t,n){let o=zT(e);return(n&&"right"!==t||!n&&"right"===t)&&(o=(e=>"left"===e?"right":"right"===e?"left":e)(o)),o}class ND extends ED{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,t){return e}getUserBounds(){let{_userMin:e,_userMax:t,_suggestedMin:n,_suggestedMax:o}=this;return e=XN(e,Number.POSITIVE_INFINITY),t=XN(t,Number.NEGATIVE_INFINITY),n=XN(n,Number.POSITIVE_INFINITY),o=XN(o,Number.NEGATIVE_INFINITY),{min:XN(e,n),max:XN(t,o),minDefined:GN(e),maxDefined:GN(t)}}getMinMax(e){let t,{min:n,max:o,minDefined:r,maxDefined:i}=this.getUserBounds();if(r&&i)return{min:n,max:o};const a=this.getMatchingVisibleMetas();for(let s=0,l=a.length;s<l;++s)t=a[s].controller.getMinMax(this,e),r||(n=Math.min(n,t.min)),i||(o=Math.max(o,t.max));return n=i&&n>o?o:n,o=r&&n>o?n:o,{min:XN(n,XN(o,n)),max:XN(o,XN(n,o))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){ZN(this.options.beforeUpdate,[this])}update(e,t,n){const{beginAtZero:o,grace:r,ticks:i}=this.options,a=i.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=t,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(e,t,n){const{min:o,max:r}=e,i=(l=(r-o)/2,"string"==typeof(s=t)&&s.endsWith("%")?parseFloat(s)/100*l:+s),a=(e,t)=>n&&0===e?0:e+t;var s,l;return{min:a(o,-Math.abs(i)),max:a(r,i)}}(this,r,o),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const s=a<this.ticks.length;this._convertTicksToLabels(s?OD(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),i.display&&(i.autoSkip||"auto"===i.source)&&(this.ticks=function(e,t){const n=e.options.ticks,o=function(e){const t=e.options.offset,n=e._tickSize(),o=e._length/n+(t?0:1),r=e._maxLength/n;return Math.floor(Math.min(o,r))}(e),r=Math.min(n.maxTicksLimit||o,o),i=n.major.enabled?function(e){const t=[];let n,o;for(n=0,o=e.length;n<o;n++)e[n].major&&t.push(n);return t}(t):[],a=i.length,s=i[0],l=i[a-1],c=[];if(a>r)return function(e,t,n,o){let r,i=0,a=n[0];for(o=Math.ceil(o),r=0;r<e.length;r++)r===a&&(t.push(e[r]),i++,a=n[i*o])}(t,c,i,a/r),c;const u=function(e,t,n){const o=function(e){const t=e.length;let n,o;if(t<2)return!1;for(o=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==o)return!1;return o}(e),r=t.length/n;if(!o)return Math.max(r,1);const i=function(e){const t=[],n=Math.sqrt(e);let o;for(o=1;o<n;o++)e%o==0&&(t.push(o),t.push(e/o));return n===(0|n)&&t.push(n),t.sort(((e,t)=>e-t)).pop(),t}(o);for(let e=0,t=i.length-1;e<t;e++){const t=i[e];if(t>r)return t}return Math.max(r,1)}(i,t,r);if(a>0){let e,n;const o=a>1?Math.round((l-s)/(a-1)):null;for(kD(t,c,u,KN(o)?0:s-o,s),e=0,n=a-1;e<n;e++)kD(t,c,u,i[e],i[e+1]);return kD(t,c,u,l,KN(o)?t.length:l+o),c}return kD(t,c,u),c}(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),s&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e,t,n=this.options.reverse;this.isHorizontal()?(e=this.left,t=this.right):(e=this.top,t=this.bottom,n=!n),this._startPixel=e,this._endPixel=t,this._reversePixels=n,this._length=t-e,this._alignToPixels=this.options.alignToPixels}afterUpdate(){ZN(this.options.afterUpdate,[this])}beforeSetDimensions(){ZN(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){ZN(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),ZN(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){ZN(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const t=this.options.ticks;let n,o,r;for(n=0,o=e.length;n<o;n++)r=e[n],r.label=ZN(t.callback,[r.value,n,e],this)}afterTickToLabelConversion(){ZN(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){ZN(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,t=e.ticks,n=_D(this.ticks.length,e.ticks.maxTicksLimit),o=t.minRotation||0,r=t.maxRotation;let i,a,s,l=o;if(!this._isVisible()||!t.display||o>=r||n<=1||!this.isHorizontal())return void(this.labelRotation=o);const c=this._getLabelSizes(),u=c.widest.width,d=c.highest.height,f=PT(this.chart.width-u,0,this.maxWidth);i=e.offset?this.maxWidth/n:f/(n-1),u+6>i&&(i=f/(n-(e.offset?.5:1)),a=this.maxHeight-MD(e.grid)-t.padding-PD(e.title,this.chart.options.font),s=Math.sqrt(u*u+d*d),l=Math.min(Math.asin(PT((c.highest.height+6)/i,-1,1)),Math.asin(PT(a/s,-1,1))-Math.asin(PT(d/s,-1,1)))*(180/fT),l=Math.max(o,Math.min(r,l))),this.labelRotation=l}afterCalculateLabelRotation(){ZN(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){ZN(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:t,options:{ticks:n,title:o,grid:r}}=this,i=this._isVisible(),a=this.isHorizontal();if(i){const i=PD(o,t.options.font);if(a?(e.width=this.maxWidth,e.height=MD(r)+i):(e.height=this.maxHeight,e.width=MD(r)+i),n.display&&this.ticks.length){const{first:t,last:o,widest:r,highest:i}=this._getLabelSizes(),s=2*n.padding,l=kT(this.labelRotation),c=Math.cos(l),u=Math.sin(l);if(a){const t=n.mirror?0:u*r.width+c*i.height;e.height=Math.min(this.maxHeight,e.height+t+s)}else{const t=n.mirror?0:c*r.width+u*i.height;e.width=Math.min(this.maxWidth,e.width+t+s)}this._calculatePadding(t,o,u,c)}}this._handleMargins(),a?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,t,n,o){const{ticks:{align:r,padding:i},position:a}=this.options,s=0!==this.labelRotation,l="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const a=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let u=0,d=0;s?l?(u=o*e.width,d=n*t.height):(u=n*e.height,d=o*t.width):"start"===r?d=t.width:"end"===r?u=e.width:"inner"!==r&&(u=e.width/2,d=t.width/2),this.paddingLeft=Math.max((u-a+i)*this.width/(this.width-a),0),this.paddingRight=Math.max((d-c+i)*this.width/(this.width-c),0)}else{let n=t.height/2,o=e.height/2;"start"===r?(n=0,o=e.height):"end"===r&&(n=t.height,o=0),this.paddingTop=n+i,this.paddingBottom=o+i}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){ZN(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:t}=this.options;return"top"===t||"bottom"===t||"x"===e}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){let t,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(e),t=0,n=e.length;t<n;t++)KN(e[t].label)&&(e.splice(t,1),n--,t--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const t=this.options.ticks.sampleSize;let n=this.ticks;t<n.length&&(n=OD(n,t)),this._labelSizes=e=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,t,n){const{ctx:o,_longestTextCache:r}=this,i=[],a=[],s=Math.floor(t/_D(t,n));let l,c,u,d,f,p,h,m,g,v,b,y=0,x=0;for(l=0;l<t;l+=s){if(d=e[l].label,f=this._resolveTickFontOptions(l),o.font=p=f.string,h=r[p]=r[p]||{data:{},gc:[]},m=f.lineHeight,g=v=0,KN(d)||qN(d)){if(qN(d))for(c=0,u=d.length;c<u;++c)b=d[c],KN(b)||qN(b)||(g=sR(o,h.data,h.gc,g,b),v+=m)}else g=sR(o,h.data,h.gc,g,d),v=m;i.push(g),a.push(v),y=Math.max(g,y),x=Math.max(v,x)}!function(e,t){QN(e,(e=>{const n=e.gc,o=n.length/2;let r;if(o>t){for(r=0;r<o;++r)delete e.data[n[r]];n.splice(0,o)}}))}(r,t);const w=i.indexOf(y),C=a.indexOf(x),S=e=>({width:i[e]||0,height:a[e]||0});return{first:S(0),last:S(t-1),widest:S(w),highest:S(C),widths:i,heights:a}}getLabelForValue(e){return e}getPixelForValue(e,t){return NaN}getValueForPixel(e){}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const t=this._startPixel+e*this._length;return PT(this._alignToPixels?lR(this.chart,t,0):t,-32768,32767)}getDecimalForPixel(e){const t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:t}=this;return e<0&&t<0?t:e>0&&t>0?e:0}getContext(e){const t=this.ticks||[];if(e>=0&&e<t.length){const n=t[e];return n.$context||(n.$context=function(e,t,n){return jR(e,{tick:n,index:t,type:"tick"})}(this.getContext(),e,n))}return this.$context||(this.$context=function(e,t){return jR(e,{scale:t,type:"scale"})}(this.chart.getContext(),this))}_tickSize(){const e=this.options.ticks,t=kT(this.labelRotation),n=Math.abs(Math.cos(t)),o=Math.abs(Math.sin(t)),r=this._getLabelSizes(),i=e.autoSkipPadding||0,a=r?r.widest.width+i:0,s=r?r.highest.height+i:0;return this.isHorizontal()?s*n>a*o?a/n:s/o:s*o<a*n?s/n:a/o}_isVisible(){const e=this.options.display;return"auto"!==e?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const t=this.axis,n=this.chart,o=this.options,{grid:r,position:i,border:a}=o,s=r.offset,l=this.isHorizontal(),c=this.ticks.length+(s?1:0),u=MD(r),d=[],f=a.setContext(this.getContext()),p=f.display?f.width:0,h=p/2,m=function(e){return lR(n,e,p)};let g,v,b,y,x,w,C,S,E,k,$,_;if("top"===i)g=m(this.bottom),w=this.bottom-u,S=g-h,k=m(e.top)+h,_=e.bottom;else if("bottom"===i)g=m(this.top),k=e.top,_=m(e.bottom)-h,w=g+h,S=this.top+u;else if("left"===i)g=m(this.right),x=this.right-u,C=g-h,E=m(e.left)+h,$=e.right;else if("right"===i)g=m(this.left),E=e.left,$=m(e.right)-h,x=g+h,C=this.left+u;else if("x"===t){if("center"===i)g=m((e.top+e.bottom)/2+.5);else if(UN(i)){const e=Object.keys(i)[0],t=i[e];g=m(this.chart.scales[e].getPixelForValue(t))}k=e.top,_=e.bottom,w=g+h,S=w+u}else if("y"===t){if("center"===i)g=m((e.left+e.right)/2);else if(UN(i)){const e=Object.keys(i)[0],t=i[e];g=m(this.chart.scales[e].getPixelForValue(t))}x=g-h,C=x-u,E=e.left,$=e.right}const O=YN(o.ticks.maxTicksLimit,c),j=Math.max(1,Math.ceil(c/O));for(v=0;v<c;v+=j){const e=this.getContext(v),t=r.setContext(e),o=a.setContext(e),i=t.lineWidth,c=t.color,u=o.dash||[],f=o.dashOffset,p=t.tickWidth,h=t.tickColor,m=t.tickBorderDash||[],g=t.tickBorderDashOffset;b=jD(this,v,s),void 0!==b&&(y=lR(n,b,i),l?x=C=E=$=y:w=S=k=_=y,d.push({tx1:x,ty1:w,tx2:C,ty2:S,x1:E,y1:k,x2:$,y2:_,width:i,color:c,borderDash:u,borderDashOffset:f,tickWidth:p,tickColor:h,tickBorderDash:m,tickBorderDashOffset:g}))}return this._ticksLength=c,this._borderValue=g,d}_computeLabelItems(e){const t=this.axis,n=this.options,{position:o,ticks:r}=n,i=this.isHorizontal(),a=this.ticks,{align:s,crossAlign:l,padding:c,mirror:u}=r,d=MD(n.grid),f=d+c,p=u?-c:f,h=-kT(this.labelRotation),m=[];let g,v,b,y,x,w,C,S,E,k,$,_,O="middle";if("top"===o)w=this.bottom-p,C=this._getXAxisLabelAlignment();else if("bottom"===o)w=this.top+p,C=this._getXAxisLabelAlignment();else if("left"===o){const e=this._getYAxisLabelAlignment(d);C=e.textAlign,x=e.x}else if("right"===o){const e=this._getYAxisLabelAlignment(d);C=e.textAlign,x=e.x}else if("x"===t){if("center"===o)w=(e.top+e.bottom)/2+f;else if(UN(o)){const e=Object.keys(o)[0],t=o[e];w=this.chart.scales[e].getPixelForValue(t)+f}C=this._getXAxisLabelAlignment()}else if("y"===t){if("center"===o)x=(e.left+e.right)/2-f;else if(UN(o)){const e=Object.keys(o)[0],t=o[e];x=this.chart.scales[e].getPixelForValue(t)}C=this._getYAxisLabelAlignment(d).textAlign}"y"===t&&("start"===s?O="top":"end"===s&&(O="bottom"));const j=this._getLabelSizes();for(g=0,v=a.length;g<v;++g){b=a[g],y=b.label;const e=r.setContext(this.getContext(g));S=this.getPixelForTick(g)+r.labelOffset,E=this._resolveTickFontOptions(g),k=E.lineHeight,$=qN(y)?y.length:1;const t=$/2,n=e.color,s=e.textStrokeColor,c=e.textStrokeWidth;let d,f=C;if(i?(x=S,"inner"===C&&(f=g===v-1?this.options.reverse?"left":"right":0===g?this.options.reverse?"right":"left":"center"),_="top"===o?"near"===l||0!==h?-$*k+k/2:"center"===l?-j.highest.height/2-t*k+k:-j.highest.height+k/2:"near"===l||0!==h?k/2:"center"===l?j.highest.height/2-t*k:j.highest.height-$*k,u&&(_*=-1),0===h||e.showLabelBackdrop||(x+=k/2*Math.sin(h))):(w=S,_=(1-$)*k/2),e.showLabelBackdrop){const t=$R(e.backdropPadding),n=j.heights[g],o=j.widths[g];let r=_-t.top,i=0-t.left;switch(O){case"middle":r-=n/2;break;case"bottom":r-=n}switch(C){case"center":i-=o/2;break;case"right":i-=o;break;case"inner":g===v-1?i-=o:g>0&&(i-=o/2)}d={left:i,top:r,width:o+t.width,height:n+t.height,color:e.backdropColor}}m.push({label:y,font:E,textOffset:_,options:{rotation:h,color:n,strokeColor:s,strokeWidth:c,textAlign:f,textBaseline:O,translation:[x,w],backdrop:d}})}return m}_getXAxisLabelAlignment(){const{position:e,ticks:t}=this.options;if(-kT(this.labelRotation))return"top"===e?"left":"right";let n="center";return"start"===t.align?n="left":"end"===t.align?n="right":"inner"===t.align&&(n="inner"),n}_getYAxisLabelAlignment(e){const{position:t,ticks:{crossAlign:n,mirror:o,padding:r}}=this.options,i=e+r,a=this._getLabelSizes().widest.width;let s,l;return"left"===t?o?(l=this.right+r,"near"===n?s="left":"center"===n?(s="center",l+=a/2):(s="right",l+=a)):(l=this.right-i,"near"===n?s="right":"center"===n?(s="center",l-=a/2):(s="left",l=this.left)):"right"===t?o?(l=this.left+r,"near"===n?s="right":"center"===n?(s="center",l-=a/2):(s="left",l-=a)):(l=this.left+i,"near"===n?s="left":"center"===n?(s="center",l+=a/2):(s="right",l=this.right)):s="right",{textAlign:s,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,t=this.options.position;return"left"===t||"right"===t?{top:0,left:this.left,bottom:e.height,right:this.right}:"top"===t||"bottom"===t?{top:this.top,left:0,bottom:this.bottom,right:e.width}:void 0}drawBackground(){const{ctx:e,options:{backgroundColor:t},left:n,top:o,width:r,height:i}=this;t&&(e.save(),e.fillStyle=t,e.fillRect(n,o,r,i),e.restore())}getLineWidthForValue(e){const t=this.options.grid;if(!this._isVisible()||!t.display)return 0;const n=this.ticks.findIndex((t=>t.value===e));return n>=0?t.setContext(this.getContext(n)).lineWidth:0}drawGrid(e){const t=this.options.grid,n=this.ctx,o=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let r,i;const a=(e,t,o)=>{o.width&&o.color&&(n.save(),n.lineWidth=o.width,n.strokeStyle=o.color,n.setLineDash(o.borderDash||[]),n.lineDashOffset=o.borderDashOffset,n.beginPath(),n.moveTo(e.x,e.y),n.lineTo(t.x,t.y),n.stroke(),n.restore())};if(t.display)for(r=0,i=o.length;r<i;++r){const e=o[r];t.drawOnChartArea&&a({x:e.x1,y:e.y1},{x:e.x2,y:e.y2},e),t.drawTicks&&a({x:e.tx1,y:e.ty1},{x:e.tx2,y:e.ty2},{color:e.tickColor,width:e.tickWidth,borderDash:e.tickBorderDash,borderDashOffset:e.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:t,options:{border:n,grid:o}}=this,r=n.setContext(this.getContext()),i=n.display?r.width:0;if(!i)return;const a=o.setContext(this.getContext(0)).lineWidth,s=this._borderValue;let l,c,u,d;this.isHorizontal()?(l=lR(e,this.left,i)-i/2,c=lR(e,this.right,a)+a/2,u=d=s):(u=lR(e,this.top,i)-i/2,d=lR(e,this.bottom,a)+a/2,l=c=s),t.save(),t.lineWidth=r.width,t.strokeStyle=r.color,t.beginPath(),t.moveTo(l,u),t.lineTo(c,d),t.stroke(),t.restore()}drawLabels(e){if(!this.options.ticks.display)return;const t=this.ctx,n=this._computeLabelArea();n&&fR(t,n);const o=this.getLabelItems(e);for(const e of o){const n=e.options,o=e.font;bR(t,e.label,0,e.textOffset,o,n)}n&&pR(t)}drawTitle(){const{ctx:e,options:{position:t,title:n,reverse:o}}=this;if(!n.display)return;const r=_R(n.font),i=$R(n.padding),a=n.align;let s=r.lineHeight/2;"bottom"===t||"center"===t||UN(t)?(s+=i.bottom,qN(n.text)&&(s+=r.lineHeight*(n.text.length-1))):s+=i.top;const{titleX:l,titleY:c,maxWidth:u,rotation:d}=function(e,t,n,o){const{top:r,left:i,bottom:a,right:s,chart:l}=e,{chartArea:c,scales:u}=l;let d,f,p,h=0;const m=a-r,g=s-i;if(e.isHorizontal()){if(f=FT(o,i,s),UN(n)){const e=Object.keys(n)[0],o=n[e];p=u[e].getPixelForValue(o)+m-t}else p="center"===n?(c.bottom+c.top)/2+m-t:$D(e,n,t);d=s-i}else{if(UN(n)){const e=Object.keys(n)[0],o=n[e];f=u[e].getPixelForValue(o)-g+t}else f="center"===n?(c.left+c.right)/2-g+t:$D(e,n,t);p=FT(o,a,r),h="left"===n?-vT:vT}return{titleX:f,titleY:p,maxWidth:d,rotation:h}}(this,s,t,a);bR(e,n.text,0,0,r,{color:n.color,maxWidth:u,rotation:d,textAlign:ID(a,t,o),textBaseline:"middle",translation:[l,c]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,t=e.ticks&&e.ticks.z||0,n=YN(e.grid&&e.grid.z,-1),o=YN(e.border&&e.border.z,0);return this._isVisible()&&this.draw===ND.prototype.draw?[{z:n,draw:e=>{this.drawBackground(),this.drawGrid(e),this.drawTitle()}},{z:o,draw:()=>{this.drawBorder()}},{z:t,draw:e=>{this.drawLabels(e)}}]:[{z:t,draw:e=>{this.draw(e)}}]}getMatchingVisibleMetas(e){const t=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",o=[];let r,i;for(r=0,i=t.length;r<i;++r){const i=t[r];i[n]!==this.id||e&&i.type!==e||o.push(i)}return o}_resolveTickFontOptions(e){return _R(this.options.ticks.setContext(this.getContext(e)).font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class TD{constructor(e,t,n){this.type=e,this.scope=t,this.override=n,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const t=Object.getPrototypeOf(e);let n;(function(e){return"id"in e&&"defaults"in e})(t)&&(n=this.register(t));const o=this.items,r=e.id,i=this.scope+"."+r;if(!r)throw new Error("class does not have id: "+e);return r in o||(o[r]=e,function(e,t,n){const o=oT(Object.create(null),[n?aR.get(n):{},aR.get(t),e.defaults]);aR.set(t,o),e.defaultRoutes&&function(e,t){Object.keys(t).forEach((n=>{const o=n.split("."),r=o.pop(),i=[e].concat(o).join("."),a=t[n].split("."),s=a.pop(),l=a.join(".");aR.route(i,r,l,s)}))}(t,e.defaultRoutes),e.descriptors&&aR.describe(t,e.descriptors)}(e,i,n),this.override&&aR.override(e.id,e.overrides)),i}get(e){return this.items[e]}unregister(e){const t=this.items,n=e.id,o=this.scope;n in t&&delete t[n],o&&n in aR[o]&&(delete aR[o][n],this.override&&delete tR[n])}}class RD{constructor(){this.controllers=new TD(NA,"datasets",!0),this.elements=new TD(ED,"elements"),this.plugins=new TD(Object,"plugins"),this.scales=new TD(ND,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,t,n){[...t].forEach((t=>{const o=n||this._getRegistryForType(t);n||o.isForType(t)||o===this.plugins&&t.id?this._exec(e,o,t):QN(t,(t=>{const o=n||this._getRegistryForType(t);this._exec(e,o,t)}))}))}_exec(e,t,n){const o=lT(e);ZN(n["before"+o],[],n),t[e](n),ZN(n["after"+o],[],n)}_getRegistryForType(e){for(let t=0;t<this._typedRegistries.length;t++){const n=this._typedRegistries[t];if(n.isForType(e))return n}return this.plugins}_get(e,t,n){const o=t.get(e);if(void 0===o)throw new Error('"'+e+'" is not a registered '+n+".");return o}}var AD=new RD;class DD{constructor(){this._init=[]}notify(e,t,n,o){"beforeInit"===t&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));const r=o?this._descriptors(e).filter(o):this._descriptors(e),i=this._notify(r,e,t,n);return"afterDestroy"===t&&(this._notify(r,e,"stop"),this._notify(this._init,e,"uninstall")),i}_notify(e,t,n,o){o=o||{};for(const r of e){const e=r.plugin;if(!1===ZN(e[n],[t,o,r.options],e)&&o.cancelable)return!1}return!0}invalidate(){KN(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const t=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),t}_createDescriptors(e,t){const n=e&&e.config,o=YN(n.options&&n.options.plugins,{}),r=function(e){const t={},n=[],o=Object.keys(AD.plugins.items);for(let e=0;e<o.length;e++)n.push(AD.getPlugin(o[e]));const r=e.plugins||[];for(let e=0;e<r.length;e++){const o=r[e];-1===n.indexOf(o)&&(n.push(o),t[o.id]=!0)}return{plugins:n,localIds:t}}(n);return!1!==o||t?function(e,{plugins:t,localIds:n},o,r){const i=[],a=e.getContext();for(const s of t){const t=s.id,l=BD(o[t],r);null!==l&&i.push({plugin:s,options:LD(e.config,{plugin:s,local:n[t]},l,a)})}return i}(e,r,o,t):[]}_notifyStateChanges(e){const t=this._oldCache||[],n=this._cache,o=(e,t)=>e.filter((e=>!t.some((t=>e.plugin.id===t.plugin.id))));this._notify(o(t,n),e,"stop"),this._notify(o(n,t),e,"start")}}function BD(e,t){return t||!1!==e?!0===e?{}:e:null}function LD(e,{plugin:t,local:n},o,r){const i=e.pluginScopeKeys(t),a=e.getOptionScopes(o,i);return n&&t.defaults&&a.push(t.defaults),e.createResolver(a,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function zD(e,t){const n=aR.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function FD(e){if("x"===e||"y"===e||"r"===e)return e}function HD(e){return"top"===e||"bottom"===e?"x":"left"===e||"right"===e?"y":void 0}function VD(e,...t){if(FD(e))return e;for(const n of t){const t=n.axis||HD(n.position)||e.length>1&&FD(e[0].toLowerCase());if(t)return t}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function WD(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function KD(e){const t=e.options||(e.options={});t.plugins=YN(t.plugins,{}),t.scales=function(e,t){const n=tR[e.type]||{scales:{}},o=t.scales||{},r=zD(e.type,t),i=Object.create(null);return Object.keys(o).forEach((t=>{const a=o[t];if(!UN(a))return console.error(`Invalid scale configuration for scale: ${t}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);const s=VD(t,a,function(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter((t=>t.xAxisID===e||t.yAxisID===e));if(n.length)return WD(e,"x",n[0])||WD(e,"y",n[0])}return{}}(t,e),aR.scales[a.type]),l=function(e,t){return e===t?"_index_":"_value_"}(s,r),c=n.scales||{};i[t]=rT(Object.create(null),[{axis:s},a,c[s],c[l]])})),e.data.datasets.forEach((n=>{const r=n.type||e.type,a=n.indexAxis||zD(r,t),s=(tR[r]||{}).scales||{};Object.keys(s).forEach((e=>{const t=function(e,t){let n=e;return"_index_"===e?n=t:"_value_"===e&&(n="x"===t?"y":"x"),n}(e,a),r=n[t+"AxisID"]||t;i[r]=i[r]||Object.create(null),rT(i[r],[{axis:t},o[r],s[e]])}))})),Object.keys(i).forEach((e=>{const t=i[e];rT(t,[aR.scales[t.type],aR.scale])})),i}(e,t)}function qD(e){return(e=e||{}).datasets=e.datasets||[],e.labels=e.labels||[],e}const UD=new Map,GD=new Set;function XD(e,t){let n=UD.get(e);return n||(n=t(),UD.set(e,n),GD.add(n)),n}const YD=(e,t,n)=>{const o=sT(t,n);void 0!==o&&e.add(o)};class ZD{constructor(e){this._config=function(e){return(e=e||{}).data=qD(e.data),KD(e),e}(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=qD(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),KD(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return XD(e,(()=>[[`datasets.${e}`,""]]))}datasetAnimationScopeKeys(e,t){return XD(`${e}.transition.${t}`,(()=>[[`datasets.${e}.transitions.${t}`,`transitions.${t}`],[`datasets.${e}`,""]]))}datasetElementScopeKeys(e,t){return XD(`${e}-${t}`,(()=>[[`datasets.${e}.elements.${t}`,`datasets.${e}`,`elements.${t}`,""]]))}pluginScopeKeys(e){const t=e.id;return XD(`${this.type}-plugin-${t}`,(()=>[[`plugins.${t}`,...e.additionalOptionScopes||[]]]))}_cachedScopes(e,t){const n=this._scopeCache;let o=n.get(e);return o&&!t||(o=new Map,n.set(e,o)),o}getOptionScopes(e,t,n){const{options:o,type:r}=this,i=this._cachedScopes(e,n),a=i.get(t);if(a)return a;const s=new Set;t.forEach((t=>{e&&(s.add(e),t.forEach((t=>YD(s,e,t)))),t.forEach((e=>YD(s,o,e))),t.forEach((e=>YD(s,tR[r]||{},e))),t.forEach((e=>YD(s,aR,e))),t.forEach((e=>YD(s,nR,e)))}));const l=Array.from(s);return 0===l.length&&l.push(Object.create(null)),GD.has(t)&&i.set(t,l),l}chartOptionScopes(){const{options:e,type:t}=this;return[e,tR[t]||{},aR.datasets[t]||{},{type:t},aR,nR]}resolveNamedOptions(e,t,n,o=[""]){const r={$shared:!0},{resolver:i,subPrefixes:a}=QD(this._resolverCache,e,o);let s=i;(function(e,t){const{isScriptable:n,isIndexable:o}=IR(e);for(const r of t){const t=n(r),i=o(r),a=(i||t)&&e[r];if(t&&(uT(a)||JD(a))||i&&qN(a))return!0}return!1})(i,t)&&(r.$shared=!1,s=PR(i,n=uT(n)?n():n,this.createResolver(e,n,a)));for(const e of t)r[e]=s[e];return r}createResolver(e,t,n=[""],o){const{resolver:r}=QD(this._resolverCache,e,n);return UN(t)?PR(r,t,void 0,o):r}}function QD(e,t,n){let o=e.get(t);o||(o=new Map,e.set(t,o));const r=n.join();let i=o.get(r);return i||(i={resolver:MR(t,n),subPrefixes:n.filter((e=>!e.toLowerCase().includes("hover")))},o.set(r,i)),i}const JD=e=>UN(e)&&Object.getOwnPropertyNames(e).some((t=>uT(e[t]))),eB=["top","bottom","left","right","chartArea"];function tB(e,t){return"top"===e||"bottom"===e||-1===eB.indexOf(e)&&"x"===t}function nB(e,t){return function(n,o){return n[e]===o[e]?n[t]-o[t]:n[e]-o[e]}}function oB(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),ZN(n&&n.onComplete,[e],t)}function rB(e){const t=e.chart,n=t.options.animation;ZN(n&&n.onProgress,[e],t)}function iB(e){return XR()&&"string"==typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const aB={},sB=e=>{const t=iB(e);return Object.values(aB).filter((e=>e.canvas===t)).pop()};function lB(e,t,n){const o=Object.keys(e);for(const r of o){const o=+r;if(o>=t){const i=e[r];delete e[r],(n>0||o>t)&&(e[o+n]=i)}}}function cB(e,t,n){return e.options.clip?e[n]:t[n]}class uB{static defaults=aR;static instances=aB;static overrides=tR;static registry=AD;static version="4.4.1";static getChart=sB;static register(...e){AD.add(...e),dB()}static unregister(...e){AD.remove(...e),dB()}constructor(e,t){const n=this.config=new ZD(t),o=iB(e),r=sB(o);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas with ID '"+r.canvas.id+"' can be reused.");const i=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(e){return!XR()||"undefined"!=typeof OffscreenCanvas&&e instanceof OffscreenCanvas?lD:SD}(o)),this.platform.updateConfig(n);const a=this.platform.acquireContext(o,i.aspectRatio),s=a&&a.canvas,l=s&&s.height,c=s&&s.width;this.id=WN(),this.ctx=a,this.canvas=s,this.width=c,this.height=l,this._options=i,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new DD,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(e,t){let n;return function(...o){return t?(clearTimeout(n),n=setTimeout(e,t,o)):e.apply(this,o),t}}((e=>this.update(e)),i.resizeDelay||0),this._dataChanges=[],aB[this.id]=this,a&&s?(vA.listen(this,"complete",oB),vA.listen(this,"progress",rB),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:t},width:n,height:o,_aspectRatio:r}=this;return KN(e)?t&&r?r:o?n/o:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return AD}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():rA(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return cR(this.canvas,this.ctx),this}stop(){return vA.stop(this),this}resize(e,t){vA.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){const n=this.options,o=this.canvas,r=n.maintainAspectRatio&&this.aspectRatio,i=this.platform.getMaximumSize(o,e,t,r),a=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=i.width,this.height=i.height,this._aspectRatio=this.aspectRatio,rA(this,a,!0)&&(this.notifyPlugins("resize",{size:i}),ZN(n.onResize,[this,i],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){QN(this.options.scales||{},((e,t)=>{e.id=t}))}buildOrUpdateScales(){const e=this.options,t=e.scales,n=this.scales,o=Object.keys(n).reduce(((e,t)=>(e[t]=!1,e)),{});let r=[];t&&(r=r.concat(Object.keys(t).map((e=>{const n=t[e],o=VD(e,n),r="r"===o,i="x"===o;return{options:n,dposition:r?"chartArea":i?"bottom":"left",dtype:r?"radialLinear":i?"category":"linear"}})))),QN(r,(t=>{const r=t.options,i=r.id,a=VD(i,r),s=YN(r.type,t.dtype);void 0!==r.position&&tB(r.position,a)===tB(t.dposition)||(r.position=t.dposition),o[i]=!0;let l=null;i in n&&n[i].type===s?l=n[i]:(l=new(AD.getScale(s))({id:i,type:s,ctx:this.ctx,chart:this}),n[l.id]=l),l.init(r,e)})),QN(o,((e,t)=>{e||delete n[t]})),QN(n,(e=>{aD.configure(this,e,e.options),aD.addBox(this,e)}))}_updateMetasets(){const e=this._metasets,t=this.data.datasets.length,n=e.length;if(e.sort(((e,t)=>e.index-t.index)),n>t){for(let e=t;e<n;++e)this._destroyDatasetMeta(e);e.splice(t,n-t)}this._sortedMetasets=e.slice(0).sort(nB("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:t}}=this;e.length>t.length&&delete this._stacks,e.forEach(((e,n)=>{0===t.filter((t=>t===e._dataset)).length&&this._destroyDatasetMeta(n)}))}buildOrUpdateControllers(){const e=[],t=this.data.datasets;let n,o;for(this._removeUnreferencedMetasets(),n=0,o=t.length;n<o;n++){const o=t[n];let r=this.getDatasetMeta(n);const i=o.type||this.config.type;if(r.type&&r.type!==i&&(this._destroyDatasetMeta(n),r=this.getDatasetMeta(n)),r.type=i,r.indexAxis=o.indexAxis||zD(i,this.options),r.order=o.order||0,r.index=n,r.label=""+o.label,r.visible=this.isDatasetVisible(n),r.controller)r.controller.updateIndex(n),r.controller.linkScales();else{const t=AD.getController(i),{datasetElementType:o,dataElementType:a}=aR.datasets[i];Object.assign(t,{dataElementType:AD.getElement(a),datasetElementType:o&&AD.getElement(o)}),r.controller=new t(this,n),e.push(r.controller)}}return this._updateMetasets(),e}_resetElements(){QN(this.data.datasets,((e,t)=>{this.getDatasetMeta(t).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const t=this.config;t.update();const n=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0}))return;const r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let i=0;for(let e=0,t=this.data.datasets.length;e<t;e++){const{controller:t}=this.getDatasetMeta(e),n=!o&&-1===r.indexOf(t);t.buildOrUpdateElements(n),i=Math.max(+t.getMaxOverflow(),i)}i=this._minPadding=n.layout.autoPadding?i:0,this._updateLayout(i),o||QN(r,(e=>{e.reset()})),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(nB("z","_idx"));const{_active:a,_lastEvent:s}=this;s?this._eventHandler(s,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){QN(this.scales,(e=>{aD.removeBox(this,e)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,t=new Set(Object.keys(this._listeners)),n=new Set(e.events);dT(t,n)&&!!this._responsiveListeners===e.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,t=this._getUniformDataChanges()||[];for(const{method:n,start:o,count:r}of t)lB(e,o,"_removeElements"===n?-r:r)}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const t=this.data.datasets.length,n=t=>new Set(e.filter((e=>e[0]===t)).map(((e,t)=>t+","+e.splice(1).join(",")))),o=n(0);for(let e=1;e<t;e++)if(!dT(o,n(e)))return;return Array.from(o).map((e=>e.split(","))).map((e=>({method:e[1],start:+e[2],count:+e[3]})))}_updateLayout(e){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;aD.update(this,this.width,this.height,e);const t=this.chartArea,n=t.width<=0||t.height<=0;this._layers=[],QN(this.boxes,(e=>{n&&"chartArea"===e.position||(e.configure&&e.configure(),this._layers.push(...e._layers()))}),this),this._layers.forEach(((e,t)=>{e._idx=t})),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})){for(let e=0,t=this.data.datasets.length;e<t;++e)this.getDatasetMeta(e).controller.configure();for(let t=0,n=this.data.datasets.length;t<n;++t)this._updateDataset(t,uT(e)?e({datasetIndex:t}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,t){const n=this.getDatasetMeta(e),o={meta:n,index:e,mode:t,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",o)&&(n.controller._update(t),o.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",o))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(vA.has(this)?this.attached&&!vA.running(this)&&vA.start(this):(this.draw(),oB({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:e,height:t}=this._resizeBeforeDraw;this._resize(e,t),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const t=this._layers;for(e=0;e<t.length&&t[e].z<=0;++e)t[e].draw(this.chartArea);for(this._drawDatasets();e<t.length;++e)t[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const t=this._sortedMetasets,n=[];let o,r;for(o=0,r=t.length;o<r;++o){const r=t[o];e&&!r.visible||n.push(r)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const e=this.getSortedVisibleDatasetMetas();for(let t=e.length-1;t>=0;--t)this._drawDataset(e[t]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const t=this.ctx,n=e._clip,o=!n.disabled,r=function(e,t){const{xScale:n,yScale:o}=e;return n&&o?{left:cB(n,t,"left"),right:cB(n,t,"right"),top:cB(o,t,"top"),bottom:cB(o,t,"bottom")}:t}(e,this.chartArea),i={meta:e,index:e.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",i)&&(o&&fR(t,{left:!1===n.left?0:r.left-n.left,right:!1===n.right?this.width:r.right+n.right,top:!1===n.top?0:r.top-n.top,bottom:!1===n.bottom?this.height:r.bottom+n.bottom}),e.controller.draw(),o&&pR(t),i.cancelable=!1,this.notifyPlugins("afterDatasetDraw",i))}isPointInArea(e){return dR(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,t,n,o){const r=GA.modes[t];return"function"==typeof r?r(this,e,n,o):[]}getDatasetMeta(e){const t=this.data.datasets[e],n=this._metasets;let o=n.filter((e=>e&&e._dataset===t)).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},n.push(o)),o}getContext(){return this.$context||(this.$context=jR(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const t=this.data.datasets[e];if(!t)return!1;const n=this.getDatasetMeta(e);return"boolean"==typeof n.hidden?!n.hidden:!t.hidden}setDatasetVisibility(e,t){this.getDatasetMeta(e).hidden=!t}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,t,n){const o=n?"show":"hide",r=this.getDatasetMeta(e),i=r.controller._resolveAnimations(void 0,o);cT(t)?(r.data[t].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),i.update(r,{visible:n}),this.update((t=>t.datasetIndex===e?o:void 0)))}hide(e,t){this._updateVisibility(e,t,!1)}show(e,t){this._updateVisibility(e,t,!0)}_destroyDatasetMeta(e){const t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}_stop(){let e,t;for(this.stop(),vA.remove(this),e=0,t=this.data.datasets.length;e<t;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:t}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),cR(e,t),this.platform.releaseContext(t),this.canvas=null,this.ctx=null),delete aB[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,t=this.platform,n=(n,o)=>{t.addEventListener(this,n,o),e[n]=o},o=(e,t,n)=>{e.offsetX=t,e.offsetY=n,this._eventHandler(e)};QN(this.options.events,(e=>n(e,o)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,t=this.platform,n=(n,o)=>{t.addEventListener(this,n,o),e[n]=o},o=(n,o)=>{e[n]&&(t.removeEventListener(this,n,o),delete e[n])},r=(e,t)=>{this.canvas&&this.resize(e,t)};let i;const a=()=>{o("attach",a),this.attached=!0,this.resize(),n("resize",r),n("detach",i)};i=()=>{this.attached=!1,o("resize",r),this._stop(),this._resize(0,0),n("attach",a)},t.isAttached(this.canvas)?a():i()}unbindEvents(){QN(this._listeners,((e,t)=>{this.platform.removeEventListener(this,t,e)})),this._listeners={},QN(this._responsiveListeners,((e,t)=>{this.platform.removeEventListener(this,t,e)})),this._responsiveListeners=void 0}updateHoverStyle(e,t,n){const o=n?"set":"remove";let r,i,a,s;for("dataset"===t&&(r=this.getDatasetMeta(e[0].datasetIndex),r.controller["_"+o+"DatasetHoverStyle"]()),a=0,s=e.length;a<s;++a){i=e[a];const t=i&&this.getDatasetMeta(i.datasetIndex).controller;t&&t[o+"HoverStyle"](i.element,i.datasetIndex,i.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const t=this._active||[],n=e.map((({datasetIndex:e,index:t})=>{const n=this.getDatasetMeta(e);if(!n)throw new Error("No dataset found at index "+e);return{datasetIndex:e,element:n.data[t],index:t}}));!JN(n,t)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,t))}notifyPlugins(e,t,n){return this._plugins.notify(this,e,t,n)}isPluginEnabled(e){return 1===this._plugins._cache.filter((t=>t.plugin.id===e)).length}_updateHoverStyles(e,t,n){const o=this.options.hover,r=(e,t)=>e.filter((e=>!t.some((t=>e.datasetIndex===t.datasetIndex&&e.index===t.index)))),i=r(t,e),a=n?e:r(e,t);i.length&&this.updateHoverStyle(i,o.mode,!1),a.length&&o.mode&&this.updateHoverStyle(a,o.mode,!0)}_eventHandler(e,t){const n={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},o=t=>(t.options.events||this.options.events).includes(e.native.type);if(!1===this.notifyPlugins("beforeEvent",n,o))return;const r=this._handleEvent(e,t,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,o),(r||n.changed)&&this.render(),this}_handleEvent(e,t,n){const{_active:o=[],options:r}=this,i=t,a=this._getActiveElements(e,o,n,i),s=function(e){return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type}(e),l=function(e,t,n,o){return n&&"mouseout"!==e.type?o?t:e:null}(e,this._lastEvent,n,s);n&&(this._lastEvent=null,ZN(r.onHover,[e,a,this],this),s&&ZN(r.onClick,[e,a,this],this));const c=!JN(a,o);return(c||t)&&(this._active=a,this._updateHoverStyles(a,o,t)),this._lastEvent=l,c}_getActiveElements(e,t,n,o){if("mouseout"===e.type)return[];if(!n)return t;const r=this.options.hover;return this.getElementsAtEventForMode(e,r.mode,r,o)}}function dB(){return QN(uB.instances,(e=>e._plugins.invalidate()))}function fB(e,t,n=t){e.lineCap=YN(n.borderCapStyle,t.borderCapStyle),e.setLineDash(YN(n.borderDash,t.borderDash)),e.lineDashOffset=YN(n.borderDashOffset,t.borderDashOffset),e.lineJoin=YN(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=YN(n.borderWidth,t.borderWidth),e.strokeStyle=YN(n.borderColor,t.borderColor)}function pB(e,t,n){e.lineTo(n.x,n.y)}function hB(e,t,n={}){const o=e.length,{start:r=0,end:i=o-1}=n,{start:a,end:s}=t,l=Math.max(r,a),c=Math.min(i,s),u=r<a&&i<a||r>s&&i>s;return{count:o,start:l,loop:t.loop,ilen:c<l&&!u?o+c-l:c-l}}function mB(e,t,n,o){const{points:r,options:i}=t,{count:a,start:s,loop:l,ilen:c}=hB(r,n,o),u=function(e){return e.stepped?hR:e.tension||"monotone"===e.cubicInterpolationMode?mR:pB}(i);let d,f,p,{move:h=!0,reverse:m}=o||{};for(d=0;d<=c;++d)f=r[(s+(m?c-d:d))%a],f.skip||(h?(e.moveTo(f.x,f.y),h=!1):u(e,p,f,m,i.stepped),p=f);return l&&(f=r[(s+(m?c:0))%a],u(e,p,f,m,i.stepped)),!!l}function gB(e,t,n,o){const r=t.points,{count:i,start:a,ilen:s}=hB(r,n,o),{move:l=!0,reverse:c}=o||{};let u,d,f,p,h,m,g=0,v=0;const b=e=>(a+(c?s-e:e))%i,y=()=>{p!==h&&(e.lineTo(g,h),e.lineTo(g,p),e.lineTo(g,m))};for(l&&(d=r[b(0)],e.moveTo(d.x,d.y)),u=0;u<=s;++u){if(d=r[b(u)],d.skip)continue;const t=d.x,n=d.y,o=0|t;o===f?(n<p?p=n:n>h&&(h=n),g=(v*g+t)/++v):(y(),e.lineTo(t,n),f=o,v=0,p=h=n),m=n}y()}function vB(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return e._decimated||e._loop||t.tension||"monotone"===t.cubicInterpolationMode||t.stepped||n?mB:gB}const bB="function"==typeof Path2D;function yB(e,t,n,o){const r=e.options,{[n]:i}=e.getProps([n],o);return Math.abs(t-i)<r.radius+r.hitRadius}class xB extends ED{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t){const n=this.options;if(this.left=0,this.top=0,!n.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=e,this.height=this.bottom=t;const o=qN(n.text)?n.text.length:1;this._padding=$R(n.padding);const r=o*_R(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=r:this.width=r}isHorizontal(){const e=this.options.position;return"top"===e||"bottom"===e}_drawArgs(e){const{top:t,left:n,bottom:o,right:r,options:i}=this,a=i.align;let s,l,c,u=0;return this.isHorizontal()?(l=FT(a,n,r),c=t+e,s=r-n):("left"===i.position?(l=n+e,c=FT(a,o,t),u=-.5*fT):(l=r-e,c=FT(a,t,o),u=.5*fT),s=o-t),{titleX:l,titleY:c,maxWidth:s,rotation:u}}draw(){const e=this.ctx,t=this.options;if(!t.display)return;const n=_R(t.font),o=n.lineHeight/2+this._padding.top,{titleX:r,titleY:i,maxWidth:a,rotation:s}=this._drawArgs(o);bR(e,t.text,0,0,n,{color:t.color,maxWidth:a,rotation:s,textAlign:zT(t.align),textBaseline:"middle",translation:[r,i]})}}var wB={id:"title",_element:xB,start(e,t,n){!function(e,t){const n=new xB({ctx:e.ctx,options:t,chart:e});aD.configure(e,n,t),aD.addBox(e,n),e.titleBlock=n}(e,n)},stop(e){const t=e.titleBlock;aD.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const o=e.titleBlock;aD.configure(e,o,n),o.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};new WeakMap;const CB={average(e){if(!e.length)return!1;let t,n,o=0,r=0,i=0;for(t=0,n=e.length;t<n;++t){const n=e[t].element;if(n&&n.hasValue()){const e=n.tooltipPosition();o+=e.x,r+=e.y,++i}}return{x:o/i,y:r/i}},nearest(e,t){if(!e.length)return!1;let n,o,r,i=t.x,a=t.y,s=Number.POSITIVE_INFINITY;for(n=0,o=e.length;n<o;++n){const o=e[n].element;if(o&&o.hasValue()){const e=_T(t,o.getCenterPoint());e<s&&(s=e,r=o)}}if(r){const e=r.tooltipPosition();i=e.x,a=e.y}return{x:i,y:a}}};function SB(e,t){return t&&(qN(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function EB(e){return("string"==typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function kB(e,t){const{element:n,datasetIndex:o,index:r}=t,i=e.getDatasetMeta(o).controller,{label:a,value:s}=i.getLabelAndValue(r);return{chart:e,label:a,parsed:i.getParsed(r),raw:e.data.datasets[o].data[r],formattedValue:s,dataset:i.getDataset(),dataIndex:r,datasetIndex:o,element:n}}function $B(e,t){const n=e.chart.ctx,{body:o,footer:r,title:i}=e,{boxWidth:a,boxHeight:s}=t,l=_R(t.bodyFont),c=_R(t.titleFont),u=_R(t.footerFont),d=i.length,f=r.length,p=o.length,h=$R(t.padding);let m=h.height,g=0,v=o.reduce(((e,t)=>e+t.before.length+t.lines.length+t.after.length),0);v+=e.beforeBody.length+e.afterBody.length,d&&(m+=d*c.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),v&&(m+=p*(t.displayColors?Math.max(s,l.lineHeight):l.lineHeight)+(v-p)*l.lineHeight+(v-1)*t.bodySpacing),f&&(m+=t.footerMarginTop+f*u.lineHeight+(f-1)*t.footerSpacing);let b=0;const y=function(e){g=Math.max(g,n.measureText(e).width+b)};return n.save(),n.font=c.string,QN(e.title,y),n.font=l.string,QN(e.beforeBody.concat(e.afterBody),y),b=t.displayColors?a+2+t.boxPadding:0,QN(o,(e=>{QN(e.before,y),QN(e.lines,y),QN(e.after,y)})),b=0,n.font=u.string,QN(e.footer,y),n.restore(),g+=h.width,{width:g,height:m}}function _B(e,t,n,o){const{x:r,width:i}=n,{width:a,chartArea:{left:s,right:l}}=e;let c="center";return"center"===o?c=r<=(s+l)/2?"left":"right":r<=i/2?c="left":r>=a-i/2&&(c="right"),function(e,t,n,o){const{x:r,width:i}=o,a=n.caretSize+n.caretPadding;return"left"===e&&r+i+a>t.width||"right"===e&&r-i-a<0||void 0}(c,e,t,n)&&(c="center"),c}function OB(e,t,n){const o=n.yAlign||t.yAlign||function(e,t){const{y:n,height:o}=t;return n<o/2?"top":n>e.height-o/2?"bottom":"center"}(e,n);return{xAlign:n.xAlign||t.xAlign||_B(e,t,n,o),yAlign:o}}function jB(e,t,n,o){const{caretSize:r,caretPadding:i,cornerRadius:a}=e,{xAlign:s,yAlign:l}=n,c=r+i,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:p}=kR(a);let h=function(e,t){let{x:n,width:o}=e;return"right"===t?n-=o:"center"===t&&(n-=o/2),n}(t,s);const m=function(e,t,n){let{y:o,height:r}=e;return"top"===t?o+=n:o-="bottom"===t?r+n:r/2,o}(t,l,c);return"center"===l?"left"===s?h+=c:"right"===s&&(h-=c):"left"===s?h-=Math.max(u,f)+r:"right"===s&&(h+=Math.max(d,p)+r),{x:PT(h,0,o.width-t.width),y:PT(m,0,o.height-t.height)}}function MB(e,t,n){const o=$R(n.padding);return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-o.right:e.x+o.left}function PB(e){return SB([],EB(e))}function IB(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const NB={beforeTitle:VN,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,o=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return t.dataset.label||"";if(t.label)return t.label;if(o>0&&t.dataIndex<o)return n[t.dataIndex]}return""},afterTitle:VN,beforeBody:VN,beforeLabel:VN,label(e){if(this&&this.options&&"dataset"===this.options.mode)return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return KN(n)||(t+=n),t},labelColor(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:VN,afterBody:VN,beforeFooter:VN,footer:VN,afterFooter:VN};function TB(e,t,n,o){const r=e[t].call(n,o);return void 0===r?NB[t].call(n,o):r}class RB extends ED{static positioners=CB;constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const t=this.chart,n=this.options.setContext(this.getContext()),o=n.enabled&&t.options.animation&&n.animations,r=new wA(this.chart,o);return o._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=(this,jR(this.chart.getContext(),{tooltip:this,tooltipItems:this._tooltipItems,type:"tooltip"})))}getTitle(e,t){const{callbacks:n}=t,o=TB(n,"beforeTitle",this,e),r=TB(n,"title",this,e),i=TB(n,"afterTitle",this,e);let a=[];return a=SB(a,EB(o)),a=SB(a,EB(r)),a=SB(a,EB(i)),a}getBeforeBody(e,t){return PB(TB(t.callbacks,"beforeBody",this,e))}getBody(e,t){const{callbacks:n}=t,o=[];return QN(e,(e=>{const t={before:[],lines:[],after:[]},r=IB(n,e);SB(t.before,EB(TB(r,"beforeLabel",this,e))),SB(t.lines,TB(r,"label",this,e)),SB(t.after,EB(TB(r,"afterLabel",this,e))),o.push(t)})),o}getAfterBody(e,t){return PB(TB(t.callbacks,"afterBody",this,e))}getFooter(e,t){const{callbacks:n}=t,o=TB(n,"beforeFooter",this,e),r=TB(n,"footer",this,e),i=TB(n,"afterFooter",this,e);let a=[];return a=SB(a,EB(o)),a=SB(a,EB(r)),a=SB(a,EB(i)),a}_createItems(e){const t=this._active,n=this.chart.data,o=[],r=[],i=[];let a,s,l=[];for(a=0,s=t.length;a<s;++a)l.push(kB(this.chart,t[a]));return e.filter&&(l=l.filter(((t,o,r)=>e.filter(t,o,r,n)))),e.itemSort&&(l=l.sort(((t,o)=>e.itemSort(t,o,n)))),QN(l,(t=>{const n=IB(e.callbacks,t);o.push(TB(n,"labelColor",this,t)),r.push(TB(n,"labelPointStyle",this,t)),i.push(TB(n,"labelTextColor",this,t))})),this.labelColors=o,this.labelPointStyles=r,this.labelTextColors=i,this.dataPoints=l,l}update(e,t){const n=this.options.setContext(this.getContext()),o=this._active;let r,i=[];if(o.length){const e=CB[n.position].call(this,o,this._eventPosition);i=this._createItems(n),this.title=this.getTitle(i,n),this.beforeBody=this.getBeforeBody(i,n),this.body=this.getBody(i,n),this.afterBody=this.getAfterBody(i,n),this.footer=this.getFooter(i,n);const t=this._size=$B(this,n),a=Object.assign({},e,t),s=OB(this.chart,n,a),l=jB(n,a,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,r={opacity:1,x:l.x,y:l.y,width:t.width,height:t.height,caretX:e.x,caretY:e.y}}else 0!==this.opacity&&(r={opacity:0});this._tooltipItems=i,this.$context=void 0,r&&this._resolveAnimations().update(this,r),e&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:t})}drawCaret(e,t,n,o){const r=this.getCaretPosition(e,n,o);t.lineTo(r.x1,r.y1),t.lineTo(r.x2,r.y2),t.lineTo(r.x3,r.y3)}getCaretPosition(e,t,n){const{xAlign:o,yAlign:r}=this,{caretSize:i,cornerRadius:a}=n,{topLeft:s,topRight:l,bottomLeft:c,bottomRight:u}=kR(a),{x:d,y:f}=e,{width:p,height:h}=t;let m,g,v,b,y,x;return"center"===r?(y=f+h/2,"left"===o?(m=d,g=m-i,b=y+i,x=y-i):(m=d+p,g=m+i,b=y-i,x=y+i),v=m):(g="left"===o?d+Math.max(s,c)+i:"right"===o?d+p-Math.max(l,u)-i:this.caretX,"top"===r?(b=f,y=b-i,m=g-i,v=g+i):(b=f+h,y=b+i,m=g+i,v=g-i),x=b),{x1:m,x2:g,x3:v,y1:b,y2:y,y3:x}}drawTitle(e,t,n){const o=this.title,r=o.length;let i,a,s;if(r){const l=uA(n.rtl,this.x,this.width);for(e.x=MB(this,n.titleAlign,n),t.textAlign=l.textAlign(n.titleAlign),t.textBaseline="middle",i=_R(n.titleFont),a=n.titleSpacing,t.fillStyle=n.titleColor,t.font=i.string,s=0;s<r;++s)t.fillText(o[s],l.x(e.x),e.y+i.lineHeight/2),e.y+=i.lineHeight+a,s+1===r&&(e.y+=n.titleMarginBottom-a)}}_drawColorBox(e,t,n,o,r){const i=this.labelColors[n],a=this.labelPointStyles[n],{boxHeight:s,boxWidth:l}=r,c=_R(r.bodyFont),u=MB(this,"left",r),d=o.x(u),f=s<c.lineHeight?(c.lineHeight-s)/2:0,p=t.y+f;if(r.usePointStyle){const t={radius:Math.min(l,s)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},n=o.leftForLtr(d,l)+l/2,c=p+s/2;e.strokeStyle=r.multiKeyBackground,e.fillStyle=r.multiKeyBackground,uR(e,t,n,c),e.strokeStyle=i.borderColor,e.fillStyle=i.backgroundColor,uR(e,t,n,c)}else{e.lineWidth=UN(i.borderWidth)?Math.max(...Object.values(i.borderWidth)):i.borderWidth||1,e.strokeStyle=i.borderColor,e.setLineDash(i.borderDash||[]),e.lineDashOffset=i.borderDashOffset||0;const t=o.leftForLtr(d,l),n=o.leftForLtr(o.xPlus(d,1),l-2),a=kR(i.borderRadius);Object.values(a).some((e=>0!==e))?(e.beginPath(),e.fillStyle=r.multiKeyBackground,yR(e,{x:t,y:p,w:l,h:s,radius:a}),e.fill(),e.stroke(),e.fillStyle=i.backgroundColor,e.beginPath(),yR(e,{x:n,y:p+1,w:l-2,h:s-2,radius:a}),e.fill()):(e.fillStyle=r.multiKeyBackground,e.fillRect(t,p,l,s),e.strokeRect(t,p,l,s),e.fillStyle=i.backgroundColor,e.fillRect(n,p+1,l-2,s-2))}e.fillStyle=this.labelTextColors[n]}drawBody(e,t,n){const{body:o}=this,{bodySpacing:r,bodyAlign:i,displayColors:a,boxHeight:s,boxWidth:l,boxPadding:c}=n,u=_R(n.bodyFont);let d=u.lineHeight,f=0;const p=uA(n.rtl,this.x,this.width),h=function(n){t.fillText(n,p.x(e.x+f),e.y+d/2),e.y+=d+r},m=p.textAlign(i);let g,v,b,y,x,w,C;for(t.textAlign=i,t.textBaseline="middle",t.font=u.string,e.x=MB(this,m,n),t.fillStyle=n.bodyColor,QN(this.beforeBody,h),f=a&&"right"!==m?"center"===i?l/2+c:l+2+c:0,y=0,w=o.length;y<w;++y){for(g=o[y],v=this.labelTextColors[y],t.fillStyle=v,QN(g.before,h),b=g.lines,a&&b.length&&(this._drawColorBox(t,e,y,p,n),d=Math.max(u.lineHeight,s)),x=0,C=b.length;x<C;++x)h(b[x]),d=u.lineHeight;QN(g.after,h)}f=0,d=u.lineHeight,QN(this.afterBody,h),e.y-=r}drawFooter(e,t,n){const o=this.footer,r=o.length;let i,a;if(r){const s=uA(n.rtl,this.x,this.width);for(e.x=MB(this,n.footerAlign,n),e.y+=n.footerMarginTop,t.textAlign=s.textAlign(n.footerAlign),t.textBaseline="middle",i=_R(n.footerFont),t.fillStyle=n.footerColor,t.font=i.string,a=0;a<r;++a)t.fillText(o[a],s.x(e.x),e.y+i.lineHeight/2),e.y+=i.lineHeight+n.footerSpacing}}drawBackground(e,t,n,o){const{xAlign:r,yAlign:i}=this,{x:a,y:s}=e,{width:l,height:c}=n,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:p}=kR(o.cornerRadius);t.fillStyle=o.backgroundColor,t.strokeStyle=o.borderColor,t.lineWidth=o.borderWidth,t.beginPath(),t.moveTo(a+u,s),"top"===i&&this.drawCaret(e,t,n,o),t.lineTo(a+l-d,s),t.quadraticCurveTo(a+l,s,a+l,s+d),"center"===i&&"right"===r&&this.drawCaret(e,t,n,o),t.lineTo(a+l,s+c-p),t.quadraticCurveTo(a+l,s+c,a+l-p,s+c),"bottom"===i&&this.drawCaret(e,t,n,o),t.lineTo(a+f,s+c),t.quadraticCurveTo(a,s+c,a,s+c-f),"center"===i&&"left"===r&&this.drawCaret(e,t,n,o),t.lineTo(a,s+u),t.quadraticCurveTo(a,s,a+u,s),t.closePath(),t.fill(),o.borderWidth>0&&t.stroke()}_updateAnimationTarget(e){const t=this.chart,n=this.$animations,o=n&&n.x,r=n&&n.y;if(o||r){const n=CB[e.position].call(this,this._active,this._eventPosition);if(!n)return;const i=this._size=$B(this,e),a=Object.assign({},n,this._size),s=OB(t,e,a),l=jB(e,a,s,t);o._to===l.x&&r._to===l.y||(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=i.width,this.height=i.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(e){const t=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(t);const o={width:this.width,height:this.height},r={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const i=$R(t.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;t.enabled&&a&&(e.save(),e.globalAlpha=n,this.drawBackground(r,e,o,t),function(e,t){let n,o;"ltr"!==t&&"rtl"!==t||(n=e.canvas.style,o=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=o)}(e,t.textDirection),r.y+=i.top,this.drawTitle(r,e,t),this.drawBody(r,e,t),this.drawFooter(r,e,t),function(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}(e,t.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,t){const n=this._active,o=e.map((({datasetIndex:e,index:t})=>{const n=this.chart.getDatasetMeta(e);if(!n)throw new Error("Cannot find a dataset at index "+e);return{datasetIndex:e,element:n.data[t],index:t}})),r=!JN(n,o),i=this._positionChanged(o,t);(r||i)&&(this._active=o,this._eventPosition=t,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,t,n=!0){if(t&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const o=this.options,r=this._active||[],i=this._getActiveElements(e,r,t,n),a=this._positionChanged(i,e),s=t||!JN(i,r)||a;return s&&(this._active=i,(o.enabled||o.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,t))),s}_getActiveElements(e,t,n,o){const r=this.options;if("mouseout"===e.type)return[];if(!o)return t.filter((e=>this.chart.data.datasets[e.datasetIndex]&&void 0!==this.chart.getDatasetMeta(e.datasetIndex).controller.getParsed(e.index)));const i=this.chart.getElementsAtEventForMode(e,r.mode,r,n);return r.reverse&&i.reverse(),i}_positionChanged(e,t){const{caretX:n,caretY:o,options:r}=this,i=CB[r.position].call(this,e,t);return!1!==i&&(n!==i.x||o!==i.y)}}var AB={id:"tooltip",_element:RB,positioners:CB,afterInit(e,t,n){n&&(e.tooltip=new RB({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(!1===e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0}))return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:NB},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>"filter"!==e&&"itemSort"!==e&&"external"!==e,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};function DB(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}function BB(e,t,{horizontal:n,minRotation:o}){const r=kT(o),i=(n?Math.sin(r):Math.cos(r))||.001,a=.75*t*(""+e).length;return Math.min(t/i,a)}class LB extends ND{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,t){return KN(e)||("number"==typeof e||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:o,max:r}=this;const i=e=>o=t?o:e,a=e=>r=n?r:e;if(e){const e=wT(o),t=wT(r);e<0&&t<0?a(0):e>0&&t>0&&i(0)}if(o===r){let t=0===r?1:Math.abs(.05*r);a(r+t),e||i(o-t)}this.min=o,this.max=r}getTickLimit(){const e=this.options.ticks;let t,{maxTicksLimit:n,stepSize:o}=e;return o?(t=Math.ceil(this.max/o)-Math.floor(this.min/o)+1,t>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${o} would result generating up to ${t} ticks. Limiting to 1000.`),t=1e3)):(t=this.computeTickLimit(),n=n||11),n&&(t=Math.min(n,t)),t}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,t=e.ticks;let n=this.getTickLimit();n=Math.max(2,n);const o=function(e,t){const n=[],{bounds:o,step:r,min:i,max:a,precision:s,count:l,maxTicks:c,maxDigits:u,includeBounds:d}=e,f=r||1,p=c-1,{min:h,max:m}=t,g=!KN(i),v=!KN(a),b=!KN(l),y=(m-h)/(u+1);let x,w,C,S,E=ST((m-h)/p/f)*f;if(E<1e-14&&!g&&!v)return[{value:h},{value:m}];S=Math.ceil(m/E)-Math.floor(h/E),S>p&&(E=ST(S*E/p/f)*f),KN(s)||(x=Math.pow(10,s),E=Math.ceil(E*x)/x),"ticks"===o?(w=Math.floor(h/E)*E,C=Math.ceil(m/E)*E):(w=h,C=m),g&&v&&r&&function(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}((a-i)/r,E/1e3)?(S=Math.round(Math.min((a-i)/E,c)),E=(a-i)/S,w=i,C=a):b?(w=g?i:w,C=v?a:C,S=l-1,E=(C-w)/S):(S=(C-w)/E,S=CT(S,Math.round(S),E/1e3)?Math.round(S):Math.ceil(S));const k=Math.max($T(E),$T(w));x=Math.pow(10,KN(s)?k:s),w=Math.round(w*x)/x,C=Math.round(C*x)/x;let $=0;for(g&&(d&&w!==i?(n.push({value:i}),w<i&&$++,CT(Math.round((w+$*E)*x)/x,i,BB(i,y,e))&&$++):w<i&&$++);$<S;++$){const e=Math.round((w+$*E)*x)/x;if(v&&e>a)break;n.push({value:e})}return v&&d&&C!==a?n.length&&CT(n[n.length-1].value,a,BB(a,y,e))?n[n.length-1].value=a:n.push({value:a}):v&&C!==a||n.push({value:C}),n}({maxTicks:n,bounds:e.bounds,min:e.min,max:e.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:!1!==t.includeBounds},this._range||this);return"ticks"===e.bounds&&function(e,t,n){let o,r,i;for(o=0,r=e.length;o<r;o++)i=e[o][n],isNaN(i)||(t.min=Math.min(t.min,i),t.max=Math.max(t.max,i))}(o,this,"value"),e.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const e=this.ticks;let t=this.min,n=this.max;if(super.configure(),this.options.offset&&e.length){const o=(n-t)/Math.max(e.length-1,1)/2;t-=o,n+=o}this._startValue=t,this._endValue=n,this._valueRange=n-t}getLabelForValue(e){return QT(e,this.chart.options.locale,this.options.ticks.format)}}class zB extends LB{static id="linear";static defaults={ticks:{callback:eR.formatters.numeric}};determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=GN(e)?e:0,this.max=GN(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),t=e?this.width:this.height,n=kT(this.options.ticks.minRotation),o=(e?Math.sin(n):Math.cos(n))||.001,r=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,r.lineHeight/o))}getPixelForValue(e){return null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}eR.formatters.logarithmic,eR.formatters.numeric;const FB="label";function HB(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function VB(e,t){e.labels=t}function WB(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:FB;const o=[];e.datasets=t.map((t=>{const r=e.datasets.find((e=>e[n]===t[n]));return r&&t.data&&!o.includes(r)?(o.push(r),Object.assign(r,t),r):{...t}}))}function KB(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:FB;const n={labels:[],datasets:[]};return VB(n,e.labels),WB(n,e.datasets,t),n}function qB(e,t){const{height:n=150,width:o=300,redraw:r=!1,datasetIdKey:i,type:a,data:s,options:l,plugins:c=[],fallbackContent:u,updateMode:d,...f}=e,h=(0,p.useRef)(null),m=(0,p.useRef)(),g=()=>{h.current&&(m.current=new uB(h.current,{type:a,data:KB(s,i),options:l&&{...l},plugins:c}),HB(t,m.current))},v=()=>{HB(t,null),m.current&&(m.current.destroy(),m.current=null)};return(0,p.useEffect)((()=>{!r&&m.current&&l&&function(e,t){const n=e.options;n&&t&&Object.assign(n,t)}(m.current,l)}),[r,l]),(0,p.useEffect)((()=>{!r&&m.current&&VB(m.current.config.data,s.labels)}),[r,s.labels]),(0,p.useEffect)((()=>{!r&&m.current&&s.datasets&&WB(m.current.config.data,s.datasets,i)}),[r,s.datasets]),(0,p.useEffect)((()=>{m.current&&(r?(v(),setTimeout(g)):m.current.update(d))}),[r,l,s.labels,s.datasets,d]),(0,p.useEffect)((()=>{m.current&&(v(),setTimeout(g))}),[a]),(0,p.useEffect)((()=>(g(),()=>v())),[]),p.createElement("canvas",Object.assign({ref:h,role:"img",height:n,width:o},f),u)}const UB=(0,p.forwardRef)(qB);function GB(e,t){return uB.register(t),(0,p.forwardRef)(((t,n)=>p.createElement(UB,Object.assign({},t,{ref:n,type:e}))))}const XB=GB("bar",HA),YB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-600-80h56c4.4 0 8-3.6 8-8V560c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V384c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v320c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V462c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v242c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v400c0 4.4 3.6 8 8 8z"}}]},name:"bar-chart",theme:"outlined"};var ZB=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:YB}))};const QB=p.forwardRef(ZB);var JB={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},eL=0,tL=Qe();var nL=function(e){var t=e.bg,n=e.children;return p.createElement("div",{style:{width:"100%",height:"100%",background:t}},n)};function oL(e,t){return Object.keys(e).map((function(n){var o=parseFloat(n),r="".concat(Math.floor(o*t),"%");return"".concat(e[n]," ").concat(r)}))}var rL=p.forwardRef((function(e,t){var n=e.prefixCls,o=e.color,r=e.gradientId,i=e.radius,a=e.style,s=e.ptg,l=e.strokeLinecap,c=e.strokeWidth,u=e.size,d=e.gapDegree,f=o&&"object"===ye(o),h=f?"#FFF":void 0,m=u/2,g=p.createElement("circle",{className:"".concat(n,"-circle-path"),r:i,cx:m,cy:m,stroke:h,strokeLinecap:l,strokeWidth:c,opacity:0===s?0:1,style:a,ref:t});if(!f)return g;var v="".concat(r,"-conic"),b=d?"".concat(180+d/2,"deg"):"0deg",y=oL(o,(360-d)/360),x=oL(o,1),w="conic-gradient(from ".concat(b,", ").concat(y.join(", "),")"),C="linear-gradient(to ".concat(d?"bottom":"top",", ").concat(x.join(", "),")");return p.createElement(p.Fragment,null,p.createElement("mask",{id:v},g),p.createElement("foreignObject",{x:0,y:0,width:u,height:u,mask:"url(#".concat(v,")")},p.createElement(nL,{bg:C},p.createElement(nL,{bg:w}))))}));const iL=rL;var aL=function(e,t,n,o,r,i,a,s,l,c){var u=arguments.length>10&&void 0!==arguments[10]?arguments[10]:0,d=n/100*360*((360-i)/360),f=0===i?0:{bottom:0,top:180,left:90,right:-90}[a],p=(100-o)/100*t;return"round"===l&&100!==o&&(p+=c/2)>=t&&(p=t-.01),{stroke:"string"==typeof s?s:void 0,strokeDasharray:"".concat(t,"px ").concat(e),strokeDashoffset:p+u,transform:"rotate(".concat(r+d+f,"deg)"),transformOrigin:"".concat(50,"px ").concat(50,"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}},sL=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function lL(e){var t=null!=e?e:[];return Array.isArray(t)?t:[t]}const cL=function(e){var t,n,o,r,i,a=$e($e({},JB),e),s=a.id,l=a.prefixCls,c=a.steps,u=a.strokeWidth,d=a.trailWidth,f=a.gapDegree,h=void 0===f?0:f,m=a.gapPosition,g=a.trailColor,v=a.strokeLinecap,b=a.style,y=a.className,x=a.strokeColor,w=a.percent,C=di(a,sL),S=function(e){var t=Ge(p.useState(),2),n=t[0],o=t[1];return p.useEffect((function(){var e;o("rc_progress_".concat((tL?(e=eL,eL+=1):e="TEST_OR_SSR",e)))}),[]),e||n}(s),E="".concat(S,"-gradient"),k=50-u/2,$=2*Math.PI*k,_=h>0?90+h/2:-90,O=$*((360-h)/360),j="object"===ye(c)?c:{count:c,space:2},M=j.count,P=j.space,I=lL(w),N=lL(x),T=N.find((function(e){return e&&"object"===ye(e)})),R=T&&"object"===ye(T)?"butt":v,A=aL($,O,0,100,_,h,m,g,R,u),D=(r=(0,p.useRef)([]),i=(0,p.useRef)(null),(0,p.useEffect)((function(){var e=Date.now(),t=!1;r.current.forEach((function(n){if(n){t=!0;var o=n.style;o.transitionDuration=".3s, .3s, .3s, .06s",i.current&&e-i.current<100&&(o.transitionDuration="0s, 0s")}})),t&&(i.current=Date.now())})),r.current);return p.createElement("svg",hn({className:oi()("".concat(l,"-circle"),y),viewBox:"0 0 ".concat(100," ").concat(100),style:b,id:s,role:"presentation"},C),!M&&p.createElement("circle",{className:"".concat(l,"-circle-trail"),r:k,cx:50,cy:50,stroke:g,strokeLinecap:R,strokeWidth:d||u,style:A}),M?(t=Math.round(M*(I[0]/100)),n=100/M,o=0,new Array(M).fill(null).map((function(e,r){var i=r<=t-1?N[0]:g,a=i&&"object"===ye(i)?"url(#".concat(E,")"):void 0,s=aL($,O,o,n,_,h,m,i,"butt",u,P);return o+=100*(O-s.strokeDashoffset+P)/O,p.createElement("circle",{key:r,className:"".concat(l,"-circle-path"),r:k,cx:50,cy:50,stroke:a,strokeWidth:u,opacity:1,style:s,ref:function(e){D[r]=e}})}))):function(){var e=0;return I.map((function(t,n){var o=N[n]||N[N.length-1],r=aL($,O,e,t,_,h,m,o,R,u);return e+=t,p.createElement(iL,{key:n,color:o,ptg:t,radius:k,prefixCls:l,gradientId:E,style:r,strokeLinecap:R,strokeWidth:u,gapDegree:h,ref:function(e){D[n]=e},size:100})})).reverse()}())};function uL(e){return!e||e<0?0:e>100?100:e}function dL(e){let{success:t,successPercent:n}=e,o=n;return t&&"progress"in t&&(o=t.progress),t&&"percent"in t&&(o=t.percent),o}const fL=e=>{let{percent:t,success:n,successPercent:o}=e;const r=uL(dL({success:n,successPercent:o}));return[r,uL(uL(t)-r)]},pL=(e,t,n)=>{var o,r,i,a;let s=-1,l=-1;if("step"===t){const t=n.steps,o=n.strokeWidth;"string"==typeof e||void 0===e?(s="small"===e?2:14,l=null!=o?o:8):"number"==typeof e?[s,l]=[e,e]:[s=14,l=8]=e,s*=t}else if("line"===t){const t=null==n?void 0:n.strokeWidth;"string"==typeof e||void 0===e?l=t||("small"===e?6:8):"number"==typeof e?[s,l]=[e,e]:[s=-1,l=8]=e}else"circle"!==t&&"dashboard"!==t||("string"==typeof e||void 0===e?[s,l]="small"===e?[60,60]:[120,120]:"number"==typeof e?[s,l]=[e,e]:(s=null!==(r=null!==(o=e[0])&&void 0!==o?o:e[1])&&void 0!==r?r:120,l=null!==(a=null!==(i=e[0])&&void 0!==i?i:e[1])&&void 0!==a?a:120));return[s,l]},hL=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:o="round",gapPosition:r,gapDegree:i,width:a=120,type:s,children:l,success:c,size:u=a}=e,[d,f]=pL(u,"circle");let{strokeWidth:h}=e;void 0===h&&(h=Math.max((e=>3/e*100)(d),6));const m={width:d,height:f,fontSize:.15*d+6},g=p.useMemo((()=>i||0===i?i:"dashboard"===s?75:void 0),[i,s]),v=r||"dashboard"===s&&"bottom"||void 0,b="[object Object]"===Object.prototype.toString.call(e.strokeColor),y=(e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:o}=t;return[o||Mr.green,n||null]})({success:c,strokeColor:e.strokeColor}),x=oi()(`${t}-inner`,{[`${t}-circle-gradient`]:b}),w=p.createElement(cL,{percent:fL(e),strokeWidth:h,trailWidth:h,strokeColor:y,strokeLinecap:o,trailColor:n,prefixCls:t,gapDegree:g,gapPosition:v});return p.createElement("div",{className:x,style:m},d<=20?p.createElement(NS,{title:l},p.createElement("span",null,w)):p.createElement(p.Fragment,null,w,l))},mL="--progress-line-stroke-color",gL="--progress-percent",vL=e=>{const t=e?"100%":"-100%";return new _o(`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}})},bL=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},Ia(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-block",width:"100%"},[`&${t}-show-info`]:{[`${t}-outer`]:{marginInlineEnd:`calc(-2em - ${qt(e.marginXS)})`,paddingInlineEnd:`calc(2em + ${qt(e.paddingXS)})`}},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",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}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${mL})`]},height:"100%",width:`calc(1 / var(${gL}) * 100%)`,display:"block"}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:vL(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:vL(!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}}})}},yL=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"}}}},xL=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}}}}}},wL=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},CL=hl("Progress",(e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=Js(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[bL(n),yL(n),xL(n),wL(n)]}),(e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:e.fontSize/e.fontSizeSM+"em"})));const SL=(e,t)=>{const{from:n=Mr.blue,to:o=Mr.blue,direction:r=("rtl"===t?"to left":"to right")}=e,i=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["from","to","direction"]);if(0!==Object.keys(i).length){const e=(e=>{let t=[];return Object.keys(e).forEach((n=>{const o=parseFloat(n.replace(/%/g,""));isNaN(o)||t.push({key:o,value:e[n]})})),t=t.sort(((e,t)=>e.key-t.key)),t.map((e=>{let{key:t,value:n}=e;return`${n} ${t}%`})).join(", ")})(i),t=`linear-gradient(${r}, ${e})`;return{background:t,[mL]:t}}const a=`linear-gradient(${r}, ${n}, ${o})`;return{background:a,[mL]:a}},EL=e=>{const{prefixCls:t,direction:n,percent:o,size:r,strokeWidth:i,strokeColor:a,strokeLinecap:s="round",children:l,trailColor:c=null,success:u}=e,d=a&&"string"!=typeof a?SL(a,n):{[mL]:a,background:a},f="square"===s||"butt"===s?0:void 0,h=null!=r?r:[-1,i||("small"===r?6:8)],[m,g]=pL(h,"line",{strokeWidth:i}),v={backgroundColor:c||void 0,borderRadius:f},b=Object.assign(Object.assign({width:`${uL(o)}%`,height:g,borderRadius:f},d),{[gL]:uL(o)/100}),y=dL(e),x={width:`${uL(y)}%`,height:g,borderRadius:f,backgroundColor:null==u?void 0:u.strokeColor},w={width:m<0?"100%":m,height:g};return p.createElement(p.Fragment,null,p.createElement("div",{className:`${t}-outer`,style:w},p.createElement("div",{className:`${t}-inner`,style:v},p.createElement("div",{className:`${t}-bg`,style:b}),void 0!==y?p.createElement("div",{className:`${t}-success-bg`,style:x}):null)),l)},kL=e=>{const{size:t,steps:n,percent:o=0,strokeWidth:r=8,strokeColor:i,trailColor:a=null,prefixCls:s,children:l}=e,c=Math.round(n*(o/100)),u=null!=t?t:["small"===t?2:14,r],[d,f]=pL(u,"step",{steps:n,strokeWidth:r}),h=d/n,m=new Array(n);for(let e=0;e<n;e++){const t=Array.isArray(i)?i[e]:i;m[e]=p.createElement("div",{key:e,className:oi()(`${s}-steps-item`,{[`${s}-steps-item-active`]:e<=c-1}),style:{backgroundColor:e<=c-1?t:a,width:h,height:f}})}return p.createElement("div",{className:`${s}-steps-outer`},m,l)};const $L=["normal","exception","active","success"],_L=p.forwardRef(((e,t)=>{const{prefixCls:n,className:o,rootClassName:r,steps:i,strokeColor:a,percent:s=0,size:l="default",showInfo:c=!0,type:u="line",status:d,format:f,style:h}=e,m=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),g=p.useMemo((()=>{var t,n;const o=dL(e);return parseInt(void 0!==o?null===(t=null!=o?o:0)||void 0===t?void 0:t.toString():null===(n=null!=s?s:0)||void 0===n?void 0:n.toString(),10)}),[s,e.success,e.successPercent]),v=p.useMemo((()=>!$L.includes(d)&&g>=100?"success":d||"normal"),[d,g]),{getPrefixCls:b,direction:y,progress:x}=p.useContext(He),w=b("progress",n),[C,S,E]=CL(w),k=p.useMemo((()=>{if(!c)return null;const t=dL(e);let n;const o="line"===u;return f||"exception"!==v&&"success"!==v?n=(f||(e=>`${e}%`))(uL(s),uL(t)):"exception"===v?n=o?p.createElement(bs,null):p.createElement(ws,null):"success"===v&&(n=o?p.createElement(ms,null):p.createElement(rE,null)),p.createElement("span",{className:`${w}-text`,title:"string"==typeof n?n:void 0},n)}),[c,s,g,v,u,w,f]),$=Array.isArray(a)?a[0]:a,_="string"==typeof a||Array.isArray(a)?a:void 0;let O;"line"===u?O=i?p.createElement(kL,Object.assign({},e,{strokeColor:_,prefixCls:w,steps:i}),k):p.createElement(EL,Object.assign({},e,{strokeColor:$,prefixCls:w,direction:y}),k):"circle"!==u&&"dashboard"!==u||(O=p.createElement(hL,Object.assign({},e,{strokeColor:$,prefixCls:w,progressStatus:v}),k));const j=oi()(w,`${w}-status-${v}`,`${w}-${("dashboard"===u?"circle":i&&"steps")||u}`,{[`${w}-inline-circle`]:"circle"===u&&pL(l,"circle")[0]<=20,[`${w}-show-info`]:c,[`${w}-${l}`]:"string"==typeof l,[`${w}-rtl`]:"rtl"===y},null==x?void 0:x.className,o,r,S,E);return C(p.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},null==x?void 0:x.style),h),className:j,role:"progressbar","aria-valuenow":g},Jl(m,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),O))})),OL=_L;var jL={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function ML(e){var t=function(e){if("number"==typeof e)return{value:e,unit:"px"};var t,n=(e.match(/^[0-9.]*/)||"").toString();t=n.includes(".")?parseFloat(n):parseInt(n,10);var o=(e.match(/[^0-9]*$/)||"").toString();return jL[o]?{value:t,unit:o}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}(e);return"".concat(t.value).concat(t.unit)}var PL=function(){return PL=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},PL.apply(this,arguments)},IL=function(e,t,n){var o="react-spinners-".concat("BeatLoader","-").concat("beat");if("undefined"==typeof window||!window.document)return o;var r=document.createElement("style");document.head.appendChild(r);var i=r.sheet,a="\n    @keyframes ".concat(o," {\n      ").concat("50% {transform: scale(0.75);opacity: 0.2} 100% {transform: scale(1);opacity: 1}","\n    }\n  ");return i&&i.insertRule(a,0),o}();const NL=function(e){var t=e.loading,n=void 0===t||t,o=e.color,r=void 0===o?"#000000":o,i=e.speedMultiplier,a=void 0===i?1:i,s=e.cssOverride,l=void 0===s?{}:s,c=e.size,u=void 0===c?15:c,d=e.margin,f=void 0===d?2:d,h=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["loading","color","speedMultiplier","cssOverride","size","margin"]),m=PL({display:"inherit"},l),g=function(e){return{display:"inline-block",backgroundColor:r,width:ML(u),height:ML(u),margin:ML(f),borderRadius:"100%",animation:"".concat(IL," ").concat(.7/a,"s ").concat(e%2?"0s":"".concat(.35/a,"s")," infinite linear"),animationFillMode:"both"}};return n?p.createElement("span",PL({style:m},h),p.createElement("span",{style:g(1)}),p.createElement("span",{style:g(2)}),p.createElement("span",{style:g(3)})):null};const TL=window.wp.coreData,RL=e=>{(0,p.useEffect)((()=>{document.title=e}),[e])};uB.register(class extends NA{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const t=this._cachedMeta,{dataset:n,data:o=[],_dataset:r}=t,i=this.chart._animationsDisabled;let{start:a,count:s}=function(e,t,n){const o=t.length;let r=0,i=o;if(e._sorted){const{iScale:a,_parsed:s}=e,l=a.axis,{min:c,max:u,minDefined:d,maxDefined:f}=a.getUserBounds();d&&(r=PT(Math.min(TT(s,l,c).lo,n?o:TT(t,l,a.getPixelForValue(c)).lo),0,o-1)),i=f?PT(Math.max(TT(s,a.axis,u,!0).hi+1,n?0:TT(t,l,a.getPixelForValue(u),!0).hi+1),r,o)-r:o-r}return{start:r,count:i}}(t,o,i);this._drawStart=a,this._drawCount=s,function(e){const{xScale:t,yScale:n,_scaleRanges:o}=e,r={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!o)return e._scaleRanges=r,!0;const i=o.xmin!==t.min||o.xmax!==t.max||o.ymin!==n.min||o.ymax!==n.max;return Object.assign(o,r),i}(t)&&(a=0,s=o.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!r._decimated,n.points=o;const l=this.resolveDatasetElementOptions(e);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(n,void 0,{animated:!i,options:l},e),this.updateElements(o,a,s,e)}updateElements(e,t,n,o){const r="reset"===o,{iScale:i,vScale:a,_stacked:s,_dataset:l}=this._cachedMeta,{sharedOptions:c,includeOptions:u}=this._getSharedOptions(t,o),d=i.axis,f=a.axis,{spanGaps:p,segment:h}=this.options,m=ET(p)?p:Number.POSITIVE_INFINITY,g=this.chart._animationsDisabled||r||"none"===o,v=t+n,b=e.length;let y=t>0&&this.getParsed(t-1);for(let n=0;n<b;++n){const p=e[n],b=g?p:{};if(n<t||n>=v){b.skip=!0;continue}const x=this.getParsed(n),w=KN(x[f]),C=b[d]=i.getPixelForValue(x[d],n),S=b[f]=r||w?a.getBasePixel():a.getPixelForValue(s?this.applyStack(a,x,s):x[f],n);b.skip=isNaN(C)||isNaN(S)||w,b.stop=n>0&&Math.abs(x[d]-y[d])>m,h&&(b.parsed=x,b.raw=l.data[n]),u&&(b.options=c||this.resolveDataElementOptions(n,p.active?"active":o)),g||this.updateElement(p,n,b,o),y=x}}getMaxOverflow(){const e=this._cachedMeta,t=e.dataset,n=t.options&&t.options.borderWidth||0,o=e.data||[];if(!o.length)return n;const r=o[0].size(this.resolveDataElementOptions(0)),i=o[o.length-1].size(this.resolveDataElementOptions(o.length-1));return Math.max(n,r,i)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}},class extends ED{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:e=>"borderDash"!==e&&"fill"!==e};constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,t){const n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){const o=n.spanGaps?this._loop:this._fullLoop;GR(this._points,n,e,o,t),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(e,t){const n=e.points,o=e.options.spanGaps,r=n.length;if(!r)return[];const i=!!e._loop,{start:a,end:s}=function(e,t,n,o){let r=0,i=t-1;if(n&&!o)for(;r<t&&!e[r].skip;)r++;for(;r<t&&e[r].skip;)r++;for(r%=t,n&&(i+=r);i>r&&e[i%t].skip;)i--;return i%=t,{start:r,end:i}}(n,r,i,o);return function(e,t,n,o){return o&&o.setContext&&n?function(e,t,n,o){const r=e._chart.getContext(),i=hA(e.options),{_datasetIndex:a,options:{spanGaps:s}}=e,l=n.length,c=[];let u=i,d=t[0].start,f=d;function p(e,t,o,r){const i=s?-1:1;if(e!==t){for(e+=l;n[e%l].skip;)e-=i;for(;n[t%l].skip;)t+=i;e%l!=t%l&&(c.push({start:e%l,end:t%l,loop:o,style:r}),u=r,d=t%l)}}for(const e of t){d=s?d:e.start;let t,i=n[d%l];for(f=d+1;f<=e.end;f++){const s=n[f%l];t=hA(o.setContext(jR(r,{type:"segment",p0:i,p1:s,p0DataIndex:(f-1)%l,p1DataIndex:f%l,datasetIndex:a}))),mA(t,u)&&p(d,f-1,e.loop,u),i=s,u=t}d<f-1&&p(d,f-1,e.loop,u)}return c}(e,t,n,o):t}(e,!0===o?[{start:a,end:s,loop:i}]:function(e,t,n,o){const r=e.length,i=[];let a,s=t,l=e[t];for(a=t+1;a<=n;++a){const n=e[a%r];n.skip||n.stop?l.skip||(o=!1,i.push({start:t%r,end:(a-1)%r,loop:o}),t=s=n.stop?a:null):(s=a,l.skip&&(t=a)),l=n}return null!==s&&i.push({start:t%r,end:s%r,loop:o}),i}(n,a,s<a?s+r:s,!!e._fullLoop&&0===a&&s===r-1),n,t)}(this,this.options.segment))}first(){const e=this.segments,t=this.points;return e.length&&t[e[0].start]}last(){const e=this.segments,t=this.points,n=e.length;return n&&t[e[n-1].end]}interpolate(e,t){const n=this.options,o=e[t],r=this.points,i=function(e,t){const n=[],o=e.segments;for(let r=0;r<o.length;r++){const i=pA(o[r],e.points,t);i.length&&n.push(...i)}return n}(this,{property:t,start:o,end:o});if(!i.length)return;const a=[],s=function(e){return e.stepped?lA:e.tension||"monotone"===e.cubicInterpolationMode?cA:sA}(n);let l,c;for(l=0,c=i.length;l<c;++l){const{start:c,end:u}=i[l],d=r[c],f=r[u];if(d===f){a.push(d);continue}const p=s(d,f,Math.abs((o-d[t])/(f[t]-d[t])),n.stepped);p[t]=e[t],a.push(p)}return 1===a.length?a[0]:a}pathSegment(e,t,n){return vB(this)(e,this,t,n)}path(e,t,n){const o=this.segments,r=vB(this);let i=this._loop;t=t||0,n=n||this.points.length-t;for(const a of o)i&=r(e,this,a,{start:t,end:t+n-1});return!!i}draw(e,t,n,o){const r=this.options||{};(this.points||[]).length&&r.borderWidth&&(e.save(),function(e,t,n,o){bB&&!t.options.segment?function(e,t,n,o){let r=t._path;r||(r=t._path=new Path2D,t.path(r,n,o)&&r.closePath()),fB(e,t.options),e.stroke(r)}(e,t,n,o):function(e,t,n,o){const{segments:r,options:i}=t,a=vB(t);for(const s of r)fB(e,i,s.style),e.beginPath(),a(e,t,s,{start:n,end:n+o-1})&&e.closePath(),e.stroke()}(e,t,n,o)}(e,this,n,o),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}},class extends ED{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,t,n){const o=this.options,{x:r,y:i}=this.getProps(["x","y"],n);return Math.pow(e-r,2)+Math.pow(t-i,2)<Math.pow(o.hitRadius+o.radius,2)}inXRange(e,t){return yB(this,e,"x",t)}inYRange(e,t){return yB(this,e,"y",t)}getCenterPoint(e){const{x:t,y:n}=this.getProps(["x","y"],e);return{x:t,y:n}}size(e){let t=(e=e||this.options||{}).radius||0;return t=Math.max(t,t&&e.hoverRadius||0),2*(t+(t&&e.borderWidth||0))}draw(e,t){const n=this.options;this.skip||n.radius<.1||!dR(this,t,this.size(n)/2)||(e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.fillStyle=n.backgroundColor,uR(e,n,this.x,this.y))}getRange(){const e=this.options||{};return e.radius+e.hitRadius}},zB,wB,class extends ND{static id="category";static defaults={ticks:{callback:DB}};constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const t=this._addedLabels;if(t.length){const e=this.getLabels();for(const{index:n,label:o}of t)e[n]===o&&e.splice(n,1);this._addedLabels=[]}super.init(e)}parse(e,t){if(KN(e))return null;const n=this.getLabels();return((e,t)=>null===e?null:PT(Math.round(e),0,t))(t=isFinite(t)&&n[t]===e?t:function(e,t,n,o){const r=e.indexOf(t);return-1===r?((e,t,n,o)=>("string"==typeof t?(n=e.push(t)-1,o.unshift({index:n,label:t})):isNaN(t)&&(n=null),n))(e,t,n,o):r!==e.lastIndexOf(t)?n:r}(n,e,YN(t,e),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let{min:n,max:o}=this.getMinMax(!0);"ticks"===this.options.bounds&&(e||(n=0),t||(o=this.getLabels().length-1)),this.min=n,this.max=o}buildTicks(){const e=this.min,t=this.max,n=this.options.offset,o=[];let r=this.getLabels();r=0===e&&t===r.length-1?r:r.slice(e,t+1),this._valueRange=Math.max(r.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let n=e;n<=t;n++)o.push({value:n});return o}getLabelForValue(e){return DB.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return"number"!=typeof e&&(e=this.parse(e)),null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}},AB);const AL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"};var DL=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:AL}))};const BL=p.forwardRef(DL),LL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M848 359.3H627.7L825.8 109c4.1-5.3.4-13-6.3-13H436c-2.8 0-5.5 1.5-6.9 4L170 547.5c-3.1 5.3.7 12 6.9 12h174.4l-89.4 357.6c-1.9 7.8 7.5 13.3 13.3 7.7L853.5 373c5.2-4.9 1.7-13.7-5.5-13.7zM378.2 732.5l60.3-241H281.1l189.6-327.4h224.6L487 427.4h211L378.2 732.5z"}}]},name:"thunderbolt",theme:"outlined"};var zL=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:LL}))};const FL=p.forwardRef(zL),HL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M816 768h-24V428c0-141.1-104.3-257.7-240-277.1V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.9c-135.7 19.4-240 136-240 277.1v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48zM304 768V428c0-55.6 21.6-107.8 60.9-147.1S456.4 220 512 220c55.6 0 107.8 21.6 147.1 60.9S720 372.4 720 428v340H304z"}}]},name:"bell",theme:"outlined"};var VL=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:HL}))};const WL=p.forwardRef(VL),KL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"};var qL=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:KL}))};const UL=p.forwardRef(qL),GL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};var XL=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:GL}))};const YL=p.forwardRef(XL),ZL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};var QL=function(e,t){return p.createElement(ps,hn({},e,{ref:t,icon:ZL}))};const JL=p.forwardRef(QL),ez=(0,p.createContext)(null);var tz={width:0,height:0,left:0,top:0};function nz(e,t){var n=p.useRef(e),o=Ge(p.useState({}),2)[1];return[n.current,function(e){var r="function"==typeof e?e(n.current):e;r!==n.current&&t(r,n.current),n.current=r,o({})}]}var oz=Math.pow(.995,20);function rz(e){var t=Ge((0,p.useState)(0),2),n=t[0],o=t[1],r=(0,p.useRef)(0),i=(0,p.useRef)();return i.current=e,Jt((function(){var e;null===(e=i.current)||void 0===e||e.call(i)}),[n]),function(){r.current===n&&(r.current+=1,o(r.current))}}var iz={width:0,height:0,left:0,top:0,right:0};function az(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function sz(e){return String(e).replace(/"/g,"TABS_DQ")}function lz(e,t,n,o){return!(!n||o||!1===e||void 0===e&&(!1===t||null===t))}var cz=p.forwardRef((function(e,t){var n=e.prefixCls,o=e.editable,r=e.locale,i=e.style;return o&&!1!==o.showAdd?p.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(null==r?void 0:r.addAriaLabel)||"Add tab",onClick:function(e){o.onEdit("add",{event:e})}},o.addIcon||"+"):null}));const uz=cz;var dz=p.forwardRef((function(e,t){var n,o=e.position,r=e.prefixCls,i=e.extra;if(!i)return null;var a={};return"object"!==ye(i)||p.isValidElement(i)?a.right=i:a=i,"right"===o&&(n=a.right),"left"===o&&(n=a.left),n?p.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},n):null}));const fz=dz;var pz=Is.ESC,hz=Is.TAB;const mz=(0,p.forwardRef)((function(e,t){var n=e.overlay,o=e.arrow,r=e.prefixCls,i=(0,p.useMemo)((function(){return"function"==typeof n?n():n}),[n]),a=li(t,null==i?void 0:i.ref);return h().createElement(h().Fragment,null,o&&h().createElement("div",{className:"".concat(r,"-arrow")}),h().cloneElement(i,{ref:ui(i)?a:void 0}))}));var gz={adjustX:1,adjustY:1},vz=[0,0];const bz={topLeft:{points:["bl","tl"],overflow:gz,offset:[0,-4],targetOffset:vz},top:{points:["bc","tc"],overflow:gz,offset:[0,-4],targetOffset:vz},topRight:{points:["br","tr"],overflow:gz,offset:[0,-4],targetOffset:vz},bottomLeft:{points:["tl","bl"],overflow:gz,offset:[0,4],targetOffset:vz},bottom:{points:["tc","bc"],overflow:gz,offset:[0,4],targetOffset:vz},bottomRight:{points:["tr","br"],overflow:gz,offset:[0,4],targetOffset:vz}};var yz=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function xz(e,t){var n,o=e.arrow,r=void 0!==o&&o,i=e.prefixCls,a=void 0===i?"rc-dropdown":i,s=e.transitionName,l=e.animation,c=e.align,u=e.placement,d=void 0===u?"bottomLeft":u,f=e.placements,m=void 0===f?bz:f,g=e.getPopupContainer,v=e.showAction,b=e.hideAction,y=e.overlayClassName,x=e.overlayStyle,w=e.visible,C=e.trigger,S=void 0===C?["hover"]:C,E=e.autoFocus,k=e.overlay,$=e.children,_=e.onVisibleChange,O=di(e,yz),j=Ge(h().useState(),2),M=j[0],P=j[1],I="visible"in e?w:M,N=h().useRef(null),T=h().useRef(null),R=h().useRef(null);h().useImperativeHandle(t,(function(){return N.current}));var A=function(e){P(e),null==_||_(e)};!function(e){var t=e.visible,n=e.triggerRef,o=e.onVisibleChange,r=e.autoFocus,i=e.overlayRef,a=p.useRef(!1),s=function(){var e,r;t&&(null===(e=n.current)||void 0===e||null===(r=e.focus)||void 0===r||r.call(e),null==o||o(!1))},l=function(){var e;return!(null===(e=i.current)||void 0===e||!e.focus||(i.current.focus(),a.current=!0,0))},c=function(e){switch(e.keyCode){case pz:s();break;case hz:var t=!1;a.current||(t=l()),t?e.preventDefault():s()}};p.useEffect((function(){return t?(window.addEventListener("keydown",c),r&&na(l,3),function(){window.removeEventListener("keydown",c),a.current=!1}):function(){a.current=!1}}),[t])}({visible:I,triggerRef:R,onVisibleChange:A,autoFocus:E,overlayRef:T});var D,B,L,z=function(){return h().createElement(mz,{ref:T,overlay:k,prefixCls:a,arrow:r})},F=h().cloneElement($,{className:oi()(null===(n=$.props)||void 0===n?void 0:n.className,I&&(D=e.openClassName,void 0!==D?D:"".concat(a,"-open"))),ref:ui($)?li(R,$.ref):void 0}),H=b;return H||-1===S.indexOf("contextMenu")||(H=["click"]),h().createElement(uS,hn({builtinPlacements:m},O,{prefixCls:a,ref:N,popupClassName:oi()(y,Ee({},"".concat(a,"-show-arrow"),r)),popupStyle:x,action:S,showAction:v,hideAction:H,popupPlacement:d,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:I,stretch:(B=e.minOverlayWidthMatchTrigger,L=e.alignPoint,("minOverlayWidthMatchTrigger"in e?B:!L)?"minWidth":""),popup:"function"==typeof k?z:z(),onPopupVisibleChange:A,onPopupClick:function(t){var n=e.onOverlayClick;P(!1),n&&n(t)},getPopupContainer:g}),F)}const wz=h().forwardRef(xz);var Cz=p.createContext(null);function Sz(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function Ez(e){return Sz(p.useContext(Cz),e)}var kz=["children","locked"],$z=p.createContext(null);function _z(e){var t=e.children,n=e.locked,o=di(e,kz),r=p.useContext($z),i=dt((function(){return function(e,t){var n=$e({},e);return Object.keys(t).forEach((function(e){var o=t[e];void 0!==o&&(n[e]=o)})),n}(r,o)}),[r,o],(function(e,t){return!(n||e[0]===t[0]&&yt(e[1],t[1],!0))}));return p.createElement($z.Provider,{value:i},t)}var Oz=[],jz=p.createContext(null);function Mz(){return p.useContext(jz)}var Pz=p.createContext(Oz);function Iz(e){var t=p.useContext(Pz);return p.useMemo((function(){return void 0!==e?[].concat(Ye(t),[e]):t}),[t,e])}var Nz=p.createContext(null);const Tz=p.createContext({});function Rz(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(ec(e)){var n=e.nodeName.toLowerCase(),o=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),r=e.getAttribute("tabindex"),i=Number(r),a=null;return r&&!Number.isNaN(i)?a=i:o&&null===a&&(a=0),o&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}var Az=Is.LEFT,Dz=Is.RIGHT,Bz=Is.UP,Lz=Is.DOWN,zz=Is.ENTER,Fz=Is.ESC,Hz=Is.HOME,Vz=Is.END,Wz=[Bz,Lz,Az,Dz];function Kz(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Ye(e.querySelectorAll("*")).filter((function(e){return Rz(e,t)}));return Rz(e,t)&&n.unshift(e),n}(e,!0).filter((function(e){return t.has(e)}))}function qz(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var r=Kz(e,t),i=r.length,a=r.findIndex((function(e){return n===e}));return o<0?-1===a?a=i-1:a-=1:o>0&&(a+=1),r[a=(a+i)%i]}var Uz=function(e,t){var n=new Set,o=new Map,r=new Map;return e.forEach((function(e){var i=document.querySelector("[data-menu-id='".concat(Sz(t,e),"']"));i&&(n.add(i),r.set(i,e),o.set(e,i))})),{elements:n,key2element:o,element2key:r}};var Gz="__RC_UTIL_PATH_SPLIT__",Xz=function(e){return e.join(Gz)},Yz="rc-menu-more";function Zz(){var e=Ge(p.useState({}),2)[1],t=(0,p.useRef)(new Map),n=(0,p.useRef)(new Map),o=Ge(p.useState([]),2),r=o[0],i=o[1],a=(0,p.useRef)(0),s=(0,p.useRef)(!1),l=(0,p.useCallback)((function(o,r){var i=Xz(r);n.current.set(i,o),t.current.set(o,i),a.current+=1;var l=a.current;Promise.resolve().then((function(){l===a.current&&(s.current||e({}))}))}),[]),c=(0,p.useCallback)((function(e,o){var r=Xz(o);n.current.delete(r),t.current.delete(e)}),[]),u=(0,p.useCallback)((function(e){i(e)}),[]),d=(0,p.useCallback)((function(e,n){var o=(t.current.get(e)||"").split(Gz);return n&&r.includes(o[0])&&o.unshift(Yz),o}),[r]),f=(0,p.useCallback)((function(e,t){return e.some((function(e){return d(e,!0).includes(t)}))}),[d]),h=(0,p.useCallback)((function(e){var o="".concat(t.current.get(e)).concat(Gz),r=new Set;return Ye(n.current.keys()).forEach((function(e){e.startsWith(o)&&r.add(n.current.get(e))})),r}),[]);return p.useEffect((function(){return function(){s.current=!0}}),[]),{registerPath:l,unregisterPath:c,refreshOverflowKeys:u,isSubPathKey:f,getKeyPath:d,getKeys:function(){var e=Ye(t.current.keys());return r.length&&e.push(Yz),e},getSubPathKeys:h}}function Qz(e){var t=p.useRef(e);t.current=e;var n=p.useCallback((function(){for(var e,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(o))}),[]);return e?n:void 0}var Jz=Math.random().toFixed(5).toString().slice(2),eF=0;function tF(e,t,n,o){var r=p.useContext($z),i=r.activeKey,a=r.onActive,s=r.onInactive,l={active:i===e};return t||(l.onMouseEnter=function(t){null==n||n({key:e,domEvent:t}),a(e)},l.onMouseLeave=function(t){null==o||o({key:e,domEvent:t}),s(e)}),l}function nF(e){var t=p.useContext($z),n=t.mode,o=t.rtl,r=t.inlineIndent;return"inline"!==n?null:o?{paddingRight:e*r}:{paddingLeft:e*r}}function oF(e){var t,n=e.icon,o=e.props,r=e.children;return null===n||!1===n?null:("function"==typeof n?t=p.createElement(n,$e({},o)):"boolean"!=typeof n&&(t=n),t||r||null)}var rF=["item"];function iF(e){var t=e.item,n=di(e,rF);return Object.defineProperty(n,"item",{get:function(){return bt(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var aF=["title","attribute","elementRef"],sF=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],lF=["active"],cF=function(e){gi(n,e);var t=wi(n);function n(){return xt(this,n),t.apply(this,arguments)}return Ct(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,o=e.elementRef,r=Jl(di(e,aF),["eventKey","popupClassName","popupOffset","onTitleClick"]);return bt(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),p.createElement(lM.Item,hn({},n,{title:"string"==typeof t?t:void 0},r,{ref:o}))}}]),n}(p.Component),uF=p.forwardRef((function(e,t){var n,o=e.style,r=e.className,i=e.eventKey,a=(e.warnKey,e.disabled),s=e.itemIcon,l=e.children,c=e.role,u=e.onMouseEnter,d=e.onMouseLeave,f=e.onClick,h=e.onKeyDown,m=e.onFocus,g=di(e,sF),v=Ez(i),b=p.useContext($z),y=b.prefixCls,x=b.onItemClick,w=b.disabled,C=b.overflowDisabled,S=b.itemIcon,E=b.selectedKeys,k=b.onActive,$=p.useContext(Tz)._internalRenderMenuItem,_="".concat(y,"-item"),O=p.useRef(),j=p.useRef(),M=w||a,P=ci(t,j),I=Iz(i),N=function(e){return{key:i,keyPath:Ye(I).reverse(),item:O.current,domEvent:e}},T=s||S,R=tF(i,M,u,d),A=R.active,D=di(R,lF),B=E.includes(i),L=nF(I.length),z={};"option"===e.role&&(z["aria-selected"]=B);var F=p.createElement(cF,hn({ref:O,elementRef:P,role:null===c?"none":c||"menuitem",tabIndex:a?null:-1,"data-menu-id":C&&v?null:v},g,D,z,{component:"li","aria-disabled":a,style:$e($e({},L),o),className:oi()(_,(n={},Ee(n,"".concat(_,"-active"),A),Ee(n,"".concat(_,"-selected"),B),Ee(n,"".concat(_,"-disabled"),M),n),r),onClick:function(e){if(!M){var t=N(e);null==f||f(iF(t)),x(t)}},onKeyDown:function(e){if(null==h||h(e),e.which===Is.ENTER){var t=N(e);null==f||f(iF(t)),x(t)}},onFocus:function(e){k(i),null==m||m(e)}}),l,p.createElement(oF,{props:$e($e({},e),{},{isSelected:B}),icon:T}));return $&&(F=$(F,e,{selected:B})),F}));function dF(e,t){var n=e.eventKey,o=Mz(),r=Iz(n);return p.useEffect((function(){if(o)return o.registerPath(n,r),function(){o.unregisterPath(n,r)}}),[r]),o?null:p.createElement(uF,hn({},e,{ref:t}))}const fF=p.forwardRef(dF);var pF=["className","children"],hF=function(e,t){var n=e.className,o=e.children,r=di(e,pF),i=p.useContext($z),a=i.prefixCls,s=i.mode,l=i.rtl;return p.createElement("ul",hn({className:oi()(a,l&&"".concat(a,"-rtl"),"".concat(a,"-sub"),"".concat(a,"-").concat("inline"===s?"inline":"vertical"),n),role:"menu"},r,{"data-menu-list":!0,ref:t}),o)},mF=p.forwardRef(hF);mF.displayName="SubMenuList";const gF=mF;function vF(e,t){return hc(e).map((function(e,n){if(p.isValidElement(e)){var o,r,i=e.key,a=null!==(o=null===(r=e.props)||void 0===r?void 0:r.eventKey)&&void 0!==o?o:i;null==a&&(a="tmp_key-".concat([].concat(Ye(t),[n]).join("-")));var s={key:a,eventKey:a};return p.cloneElement(e,s)}return e}))}var bF={adjustX:1,adjustY:1},yF={topLeft:{points:["bl","tl"],overflow:bF},topRight:{points:["br","tr"],overflow:bF},bottomLeft:{points:["tl","bl"],overflow:bF},bottomRight:{points:["tr","br"],overflow:bF},leftTop:{points:["tr","tl"],overflow:bF},leftBottom:{points:["br","bl"],overflow:bF},rightTop:{points:["tl","tr"],overflow:bF},rightBottom:{points:["bl","br"],overflow:bF}},xF={topLeft:{points:["bl","tl"],overflow:bF},topRight:{points:["br","tr"],overflow:bF},bottomLeft:{points:["tl","bl"],overflow:bF},bottomRight:{points:["tr","br"],overflow:bF},rightTop:{points:["tr","tl"],overflow:bF},rightBottom:{points:["br","bl"],overflow:bF},leftTop:{points:["tl","tr"],overflow:bF},leftBottom:{points:["bl","br"],overflow:bF}};function wF(e,t,n){return t||(n?n[e]||n.other:void 0)}var CF={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function SF(e){var t=e.prefixCls,n=e.visible,o=e.children,r=e.popup,i=e.popupStyle,a=e.popupClassName,s=e.popupOffset,l=e.disabled,c=e.mode,u=e.onVisibleChange,d=p.useContext($z),f=d.getPopupContainer,h=d.rtl,m=d.subMenuOpenDelay,g=d.subMenuCloseDelay,v=d.builtinPlacements,b=d.triggerSubMenuAction,y=d.forceSubMenuRender,x=d.rootClassName,w=d.motion,C=d.defaultMotions,S=Ge(p.useState(!1),2),E=S[0],k=S[1],$=$e($e({},h?xF:yF),v),_=CF[c],O=wF(c,w,C),j=p.useRef(O);"inline"!==c&&(j.current=O);var M=$e($e({},j.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),P=p.useRef();return p.useEffect((function(){return P.current=na((function(){k(n)})),function(){na.cancel(P.current)}}),[n]),p.createElement(uS,{prefixCls:t,popupClassName:oi()("".concat(t,"-popup"),Ee({},"".concat(t,"-rtl"),h),a,x),stretch:"horizontal"===c?"minWidth":null,getPopupContainer:f,builtinPlacements:$,popupPlacement:_,popupVisible:E,popup:r,popupStyle:i,popupAlign:s&&{offset:s},action:l?[]:[b],mouseEnterDelay:m,mouseLeaveDelay:g,onPopupVisibleChange:u,forceRender:y,popupMotion:M,fresh:!0},o)}function EF(e){var t=e.id,n=e.open,o=e.keyPath,r=e.children,i="inline",a=p.useContext($z),s=a.prefixCls,l=a.forceSubMenuRender,c=a.motion,u=a.defaultMotions,d=a.mode,f=p.useRef(!1);f.current=d===i;var h=Ge(p.useState(!f.current),2),m=h[0],g=h[1],v=!!f.current&&n;p.useEffect((function(){f.current&&g(!1)}),[d]);var b=$e({},wF(i,c,u));o.length>1&&(b.motionAppear=!1);var y=b.onVisibleChanged;return b.onVisibleChanged=function(e){return f.current||e||g(!0),null==y?void 0:y(e)},m?null:p.createElement(_z,{mode:i,locked:!f.current},p.createElement(va,hn({visible:v},b,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),(function(e){var n=e.className,o=e.style;return p.createElement(gF,{id:t,className:n,style:o},r)})))}var kF=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],$F=["active"],_F=function(e){var t,n=e.style,o=e.className,r=e.title,i=e.eventKey,a=(e.warnKey,e.disabled),s=e.internalPopupClose,l=e.children,c=e.itemIcon,u=e.expandIcon,d=e.popupClassName,f=e.popupOffset,h=e.popupStyle,m=e.onClick,g=e.onMouseEnter,v=e.onMouseLeave,b=e.onTitleClick,y=e.onTitleMouseEnter,x=e.onTitleMouseLeave,w=di(e,kF),C=Ez(i),S=p.useContext($z),E=S.prefixCls,k=S.mode,$=S.openKeys,_=S.disabled,O=S.overflowDisabled,j=S.activeKey,M=S.selectedKeys,P=S.itemIcon,I=S.expandIcon,N=S.onItemClick,T=S.onOpenChange,R=S.onActive,A=p.useContext(Tz)._internalRenderSubMenuItem,D=p.useContext(Nz).isSubPathKey,B=Iz(),L="".concat(E,"-submenu"),z=_||a,F=p.useRef(),H=p.useRef(),V=null!=c?c:P,W=null!=u?u:I,K=$.includes(i),q=!O&&K,U=D(M,i),G=tF(i,z,y,x),X=G.active,Y=di(G,$F),Z=Ge(p.useState(!1),2),Q=Z[0],J=Z[1],ee=function(e){z||J(e)},te=p.useMemo((function(){return X||"inline"!==k&&(Q||D([j],i))}),[k,X,j,Q,i,D]),ne=nF(B.length),oe=Qz((function(e){null==m||m(iF(e)),N(e)})),re=C&&"".concat(C,"-popup"),ie=p.createElement("div",hn({role:"menuitem",style:ne,className:"".concat(L,"-title"),tabIndex:z?null:-1,ref:F,title:"string"==typeof r?r:null,"data-menu-id":O&&C?null:C,"aria-expanded":q,"aria-haspopup":!0,"aria-controls":re,"aria-disabled":z,onClick:function(e){z||(null==b||b({key:i,domEvent:e}),"inline"===k&&T(i,!K))},onFocus:function(){R(i)}},Y),r,p.createElement(oF,{icon:"horizontal"!==k?W:void 0,props:$e($e({},e),{},{isOpen:q,isSubMenu:!0})},p.createElement("i",{className:"".concat(L,"-arrow")}))),ae=p.useRef(k);if("inline"!==k&&B.length>1?ae.current="vertical":ae.current=k,!O){var se=ae.current;ie=p.createElement(SF,{mode:se,prefixCls:L,visible:!s&&q&&"inline"!==k,popupClassName:d,popupOffset:f,popupStyle:h,popup:p.createElement(_z,{mode:"horizontal"===se?"vertical":se},p.createElement(gF,{id:re,ref:H},l)),disabled:z,onVisibleChange:function(e){"inline"!==k&&T(i,e)}},ie)}var le=p.createElement(lM.Item,hn({role:"none"},w,{component:"li",style:n,className:oi()(L,"".concat(L,"-").concat(k),o,(t={},Ee(t,"".concat(L,"-open"),q),Ee(t,"".concat(L,"-active"),te),Ee(t,"".concat(L,"-selected"),U),Ee(t,"".concat(L,"-disabled"),z),t)),onMouseEnter:function(e){ee(!0),null==g||g({key:i,domEvent:e})},onMouseLeave:function(e){ee(!1),null==v||v({key:i,domEvent:e})}}),ie,!O&&p.createElement(EF,{id:re,open:q,keyPath:B},l));return A&&(le=A(le,e,{selected:U,active:te,open:q,disabled:z})),p.createElement(_z,{onItemClick:oe,mode:"horizontal"===k?"vertical":k,itemIcon:V,expandIcon:W},le)};function OF(e){var t,n=e.eventKey,o=e.children,r=Iz(n),i=vF(o,r),a=Mz();return p.useEffect((function(){if(a)return a.registerPath(n,r),function(){a.unregisterPath(n,r)}}),[r]),t=a?i:p.createElement(_F,e,i),p.createElement(Pz.Provider,{value:r},t)}var jF=["className","title","eventKey","children"],MF=["children"],PF=function(e){var t=e.className,n=e.title,o=(e.eventKey,e.children),r=di(e,jF),i=p.useContext($z).prefixCls,a="".concat(i,"-item-group");return p.createElement("li",hn({role:"presentation"},r,{onClick:function(e){return e.stopPropagation()},className:oi()(a,t)}),p.createElement("div",{role:"presentation",className:"".concat(a,"-title"),title:"string"==typeof n?n:void 0},n),p.createElement("ul",{role:"group",className:"".concat(a,"-list")},o))};function IF(e){var t=e.children,n=di(e,MF),o=vF(t,Iz(n.eventKey));return Mz()?o:p.createElement(PF,Jl(n,["warnKey"]),o)}function NF(e){var t=e.className,n=e.style,o=p.useContext($z).prefixCls;return Mz()?null:p.createElement("li",{role:"separator",className:oi()("".concat(o,"-item-divider"),t),style:n})}var TF=["label","children","key","type"];function RF(e){return(e||[]).map((function(e,t){if(e&&"object"===ye(e)){var n=e,o=n.label,r=n.children,i=n.key,a=n.type,s=di(n,TF),l=null!=i?i:"tmp-".concat(t);return r||"group"===a?"group"===a?p.createElement(IF,hn({key:l},s,{title:o}),RF(r)):p.createElement(OF,hn({key:l},s,{title:o}),RF(r)):"divider"===a?p.createElement(NF,hn({key:l},s)):p.createElement(fF,hn({key:l},s),o)}return null})).filter((function(e){return e}))}function AF(e,t,n){var o=e;return t&&(o=RF(t)),vF(o,n)}var DF=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],BF=[],LF=p.forwardRef((function(e,t){var n,o,r=e,i=r.prefixCls,a=void 0===i?"rc-menu":i,s=r.rootClassName,l=r.style,c=r.className,u=r.tabIndex,d=void 0===u?0:u,f=r.items,h=r.children,m=r.direction,g=r.id,v=r.mode,b=void 0===v?"vertical":v,y=r.inlineCollapsed,x=r.disabled,w=r.disabledOverflow,C=r.subMenuOpenDelay,S=void 0===C?.1:C,E=r.subMenuCloseDelay,k=void 0===E?.1:E,$=r.forceSubMenuRender,_=r.defaultOpenKeys,O=r.openKeys,j=r.activeKey,M=r.defaultActiveFirst,P=r.selectable,I=void 0===P||P,N=r.multiple,T=void 0!==N&&N,R=r.defaultSelectedKeys,A=r.selectedKeys,D=r.onSelect,B=r.onDeselect,L=r.inlineIndent,z=void 0===L?24:L,F=r.motion,H=r.defaultMotions,V=r.triggerSubMenuAction,W=void 0===V?"hover":V,K=r.builtinPlacements,q=r.itemIcon,U=r.expandIcon,G=r.overflowedIndicator,X=void 0===G?"...":G,Y=r.overflowedIndicatorPopupClassName,Z=r.getPopupContainer,Q=r.onClick,J=r.onOpenChange,ee=r.onKeyDown,te=(r.openAnimation,r.openTransitionName,r._internalRenderMenuItem),ne=r._internalRenderSubMenuItem,oe=di(r,DF),re=p.useMemo((function(){return AF(h,f,BF)}),[h,f]),ie=Ge(p.useState(!1),2),ae=ie[0],se=ie[1],le=p.useRef(),ce=function(e){var t=Ge(rl(e,{value:e}),2),n=t[0],o=t[1];return p.useEffect((function(){eF+=1;var e="".concat(Jz,"-").concat(eF);o("rc-menu-uuid-".concat(e))}),[]),n}(g),ue="rtl"===m,de=rl(_,{value:O,postState:function(e){return e||BF}}),fe=Ge(de,2),he=fe[0],me=fe[1],ge=function(e){function t(){me(e),null==J||J(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(0,pe.flushSync)(t):t()},ve=Ge(p.useState(he),2),be=ve[0],ye=ve[1],xe=p.useRef(!1),we=Ge(p.useMemo((function(){return"inline"!==b&&"vertical"!==b||!y?[b,!1]:["vertical",y]}),[b,y]),2),Ce=we[0],Se=we[1],ke="inline"===Ce,_e=Ge(p.useState(Ce),2),Oe=_e[0],je=_e[1],Me=Ge(p.useState(Se),2),Pe=Me[0],Ie=Me[1];p.useEffect((function(){je(Ce),Ie(Se),xe.current&&(ke?me(be):ge(BF))}),[Ce,Se]);var Ne=Ge(p.useState(0),2),Te=Ne[0],Re=Ne[1],Ae=Te>=re.length-1||"horizontal"!==Oe||w;p.useEffect((function(){ke&&ye(he)}),[he]),p.useEffect((function(){return xe.current=!0,function(){xe.current=!1}}),[]);var De=Zz(),Be=De.registerPath,Le=De.unregisterPath,ze=De.refreshOverflowKeys,Fe=De.isSubPathKey,He=De.getKeyPath,Ve=De.getKeys,We=De.getSubPathKeys,Ke=p.useMemo((function(){return{registerPath:Be,unregisterPath:Le}}),[Be,Le]),qe=p.useMemo((function(){return{isSubPathKey:Fe}}),[Fe]);p.useEffect((function(){ze(Ae?BF:re.slice(Te+1).map((function(e){return e.key})))}),[Te,Ae]);var Ue=Ge(rl(j||M&&(null===(n=re[0])||void 0===n?void 0:n.key),{value:j}),2),Xe=Ue[0],Ze=Ue[1],Qe=Qz((function(e){Ze(e)})),Je=Qz((function(){Ze(void 0)}));(0,p.useImperativeHandle)(t,(function(){return{list:le.current,focus:function(e){var t,n,o=Ve(),r=Uz(o,ce),i=r.elements,a=r.key2element,s=r.element2key,l=Kz(le.current,i),c=null!=Xe?Xe:l[0]?s.get(l[0]):null===(t=re.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key,u=a.get(c);c&&u&&(null==u||null===(n=u.focus)||void 0===n||n.call(u,e))}}}));var et=rl(R||[],{value:A,postState:function(e){return Array.isArray(e)?e:null==e?BF:[e]}}),tt=Ge(et,2),nt=tt[0],ot=tt[1],rt=Qz((function(e){null==Q||Q(iF(e)),function(e){if(I){var t,n=e.key,o=nt.includes(n);t=T?o?nt.filter((function(e){return e!==n})):[].concat(Ye(nt),[n]):[n],ot(t);var r=$e($e({},e),{},{selectedKeys:t});o?null==B||B(r):null==D||D(r)}!T&&he.length&&"inline"!==Oe&&ge(BF)}(e)})),it=Qz((function(e,t){var n=he.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==Oe){var o=We(e);n=n.filter((function(e){return!o.has(e)}))}yt(he,n,!0)||ge(n,!0)})),at=function(e,t,n,o,r,i,a,s,l,c){var u=p.useRef(),d=p.useRef();d.current=t;var f=function(){na.cancel(u.current)};return p.useEffect((function(){return function(){f()}}),[]),function(p){var h=p.which;if([].concat(Wz,[zz,Fz,Hz,Vz]).includes(h)){var m=i(),g=Uz(m,o),v=g,b=v.elements,y=v.key2element,x=v.element2key,w=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(y.get(t),b),C=x.get(w),S=function(e,t,n,o){var r,i,a,s,l="prev",c="next",u="children",d="parent";if("inline"===e&&o===zz)return{inlineTrigger:!0};var f=(Ee(r={},Bz,l),Ee(r,Lz,c),r),p=(Ee(i={},Az,n?c:l),Ee(i,Dz,n?l:c),Ee(i,Lz,u),Ee(i,zz,u),i),h=(Ee(a={},Bz,l),Ee(a,Lz,c),Ee(a,zz,u),Ee(a,Fz,d),Ee(a,Az,n?u:d),Ee(a,Dz,n?d:u),a);switch(null===(s={inline:f,horizontal:p,vertical:h,inlineSub:f,horizontalSub:h,verticalSub:h}["".concat(e).concat(t?"":"Sub")])||void 0===s?void 0:s[o]){case l:return{offset:-1,sibling:!0};case c:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}(e,1===a(C,!0).length,n,h);if(!S&&h!==Hz&&h!==Vz)return;(Wz.includes(h)||[Hz,Vz].includes(h))&&p.preventDefault();var E=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var o=x.get(e);s(o),f(),u.current=na((function(){d.current===o&&t.focus()}))}};if([Hz,Vz].includes(h)||S.sibling||!w){var k,$,_=Kz(k=w&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(w):r.current,b);$=h===Hz?_[0]:h===Vz?_[_.length-1]:qz(k,b,w,S.offset),E($)}else if(S.inlineTrigger)l(C);else if(S.offset>0)l(C,!0),f(),u.current=na((function(){g=Uz(m,o);var e=w.getAttribute("aria-controls"),t=qz(document.getElementById(e),g.elements);E(t)}),5);else if(S.offset<0){var O=a(C,!0),j=O[O.length-2],M=y.get(j);l(j,!1),E(M)}}null==c||c(p)}}(Oe,Xe,ue,ce,le,Ve,He,Ze,(function(e,t){var n=null!=t?t:!he.includes(e);it(e,n)}),ee);p.useEffect((function(){se(!0)}),[]);var st=p.useMemo((function(){return{_internalRenderMenuItem:te,_internalRenderSubMenuItem:ne}}),[te,ne]),lt="horizontal"!==Oe||w?re:re.map((function(e,t){return p.createElement(_z,{key:e.key,overflowDisabled:t>Te},e)})),ct=p.createElement(lM,hn({id:g,ref:le,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:fF,className:oi()(a,"".concat(a,"-root"),"".concat(a,"-").concat(Oe),c,(o={},Ee(o,"".concat(a,"-inline-collapsed"),Pe),Ee(o,"".concat(a,"-rtl"),ue),o),s),dir:m,style:l,role:"menu",tabIndex:d,data:lt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?re.slice(-t):null;return p.createElement(OF,{eventKey:Yz,title:X,disabled:Ae,internalPopupClose:0===t,popupClassName:Y},n)},maxCount:"horizontal"!==Oe||w?lM.INVALIDATE:lM.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){Re(e)},onKeyDown:at},oe));return p.createElement(Tz.Provider,{value:st},p.createElement(Cz.Provider,{value:ce},p.createElement(_z,{prefixCls:a,rootClassName:s,mode:Oe,openKeys:he,rtl:ue,disabled:x,motion:ae?F:null,defaultMotions:ae?H:null,activeKey:Xe,onActive:Qe,onInactive:Je,selectedKeys:nt,inlineIndent:z,subMenuOpenDelay:S,subMenuCloseDelay:k,forceSubMenuRender:$,builtinPlacements:K,triggerSubMenuAction:W,getPopupContainer:Z,itemIcon:q,expandIcon:U,onItemClick:rt,onOpenChange:it},p.createElement(Nz.Provider,{value:qe},ct),p.createElement("div",{style:{display:"none"},"aria-hidden":!0},p.createElement(jz.Provider,{value:Ke},re)))))})),zF=LF;zF.Item=fF,zF.SubMenu=OF,zF.ItemGroup=IF,zF.Divider=NF;const FF=zF;var HF=p.forwardRef((function(e,t){var n=e.prefixCls,o=e.id,r=e.tabs,i=e.locale,a=e.mobile,s=e.moreIcon,l=void 0===s?"More":s,c=e.moreTransitionName,u=e.style,d=e.className,f=e.editable,h=e.tabBarGutter,m=e.rtl,g=e.removeAriaLabel,v=e.onTabClick,b=e.getPopupContainer,y=e.popupClassName,x=Ge((0,p.useState)(!1),2),w=x[0],C=x[1],S=Ge((0,p.useState)(null),2),E=S[0],k=S[1],$="".concat(o,"-more-popup"),_="".concat(n,"-dropdown"),O=null!==E?"".concat($,"-").concat(E):null,j=null==i?void 0:i.dropdownAriaLabel,M=p.createElement(FF,{onClick:function(e){var t=e.key,n=e.domEvent;v(t,n),C(!1)},prefixCls:"".concat(_,"-menu"),id:$,tabIndex:-1,role:"listbox","aria-activedescendant":O,selectedKeys:[E],"aria-label":void 0!==j?j:"expanded dropdown"},r.map((function(e){var t=e.closable,n=e.disabled,r=e.closeIcon,i=e.key,a=e.label,s=lz(t,r,f,n);return p.createElement(fF,{key:i,id:"".concat($,"-").concat(i),role:"option","aria-controls":o&&"".concat(o,"-panel-").concat(i),disabled:n},p.createElement("span",null,a),s&&p.createElement("button",{type:"button","aria-label":g||"remove",tabIndex:0,className:"".concat(_,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),f.onEdit("remove",{key:t,event:e})}(e,i)}},r||f.removeIcon||"×"))})));function P(e){for(var t=r.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===E}))||0,o=t.length,i=0;i<o;i+=1){var a=t[n=(n+e+o)%o];if(!a.disabled)return void k(a.key)}}(0,p.useEffect)((function(){var e=document.getElementById(O);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),[E]),(0,p.useEffect)((function(){w||k(null)}),[w]);var I=Ee({},m?"marginRight":"marginLeft",h);r.length||(I.visibility="hidden",I.order=1);var N=oi()(Ee({},"".concat(_,"-rtl"),m)),T=a?null:p.createElement(wz,{prefixCls:_,overlay:M,trigger:["hover"],visible:!!r.length&&w,transitionName:c,onVisibleChange:C,overlayClassName:oi()(N,y),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:b},p.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:I,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":$,id:"".concat(o,"-more"),"aria-expanded":w,onKeyDown:function(e){var t=e.which;if(w)switch(t){case Is.UP:P(-1),e.preventDefault();break;case Is.DOWN:P(1),e.preventDefault();break;case Is.ESC:C(!1);break;case Is.SPACE:case Is.ENTER:null!==E&&v(E,e)}else[Is.DOWN,Is.SPACE,Is.ENTER].includes(t)&&(C(!0),e.preventDefault())}},l));return p.createElement("div",{className:oi()("".concat(n,"-nav-operations"),d),style:u,ref:t},T,p.createElement(uz,{prefixCls:n,locale:i,editable:f}))}));const VF=p.memo(HF,(function(e,t){return t.tabMoving})),WF=function(e){var t=e.prefixCls,n=e.id,o=e.active,r=e.tab,i=r.key,a=r.label,s=r.disabled,l=r.closeIcon,c=r.icon,u=e.closable,d=e.renderWrapper,f=e.removeAriaLabel,h=e.editable,m=e.onClick,g=e.onFocus,v=e.style,b="".concat(t,"-tab"),y=lz(u,l,h,s);function x(e){s||m(e)}var w=p.useMemo((function(){return c&&"string"==typeof a?p.createElement("span",null,a):a}),[a,c]),C=p.createElement("div",{key:i,"data-node-key":sz(i),className:oi()(b,Ee(Ee(Ee({},"".concat(b,"-with-remove"),y),"".concat(b,"-active"),o),"".concat(b,"-disabled"),s)),style:v,onClick:x},p.createElement("div",{role:"tab","aria-selected":o,id:n&&"".concat(n,"-tab-").concat(i),className:"".concat(b,"-btn"),"aria-controls":n&&"".concat(n,"-panel-").concat(i),"aria-disabled":s,tabIndex:s?null:0,onClick:function(e){e.stopPropagation(),x(e)},onKeyDown:function(e){[Is.SPACE,Is.ENTER].includes(e.which)&&(e.preventDefault(),x(e))},onFocus:g},c&&p.createElement("span",{className:"".concat(b,"-icon")},c),a&&w),y&&p.createElement("button",{type:"button","aria-label":f||"remove",tabIndex:0,className:"".concat(b,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),h.onEdit("remove",{key:i,event:t})}},l||h.removeIcon||"×"));return d?d(C):C};var KF=function(e){var t=e.current||{},n=t.offsetWidth,o=void 0===n?0:n,r=t.offsetHeight,i=void 0===r?0:r;if(e.current){var a=e.current.getBoundingClientRect(),s=a.width,l=a.height;if(Math.abs(s-o)<1)return[s,l]}return[o,i]},qF=function(e,t){return e[t?0:1]},UF=p.forwardRef((function(e,t){var n,o,r,i,a,s=e.className,l=e.style,c=e.id,u=e.animated,d=e.activeKey,f=e.rtl,m=e.extra,g=e.editable,v=e.locale,b=e.tabPosition,y=e.tabBarGutter,x=e.children,w=e.onTabClick,C=e.onTabScroll,S=e.indicator,E=p.useContext(ez),k=E.prefixCls,$=E.tabs,_=(0,p.useRef)(null),O=(0,p.useRef)(null),j=(0,p.useRef)(null),M=(0,p.useRef)(null),P=(0,p.useRef)(null),I=(0,p.useRef)(null),N=(0,p.useRef)(null),T="top"===b||"bottom"===b,R=nz(0,(function(e,t){T&&C&&C({direction:e>t?"left":"right"})})),A=Ge(R,2),D=A[0],B=A[1],L=nz(0,(function(e,t){!T&&C&&C({direction:e>t?"top":"bottom"})})),z=Ge(L,2),F=z[0],H=z[1],V=Ge((0,p.useState)([0,0]),2),W=V[0],K=V[1],q=Ge((0,p.useState)([0,0]),2),U=q[0],G=q[1],X=Ge((0,p.useState)([0,0]),2),Y=X[0],Z=X[1],Q=Ge((0,p.useState)([0,0]),2),J=Q[0],ee=Q[1],te=(n=new Map,o=(0,p.useRef)([]),r=Ge((0,p.useState)({}),2)[1],i=(0,p.useRef)("function"==typeof n?n():n),a=rz((function(){var e=i.current;o.current.forEach((function(t){e=t(e)})),o.current=[],i.current=e,r({})})),[i.current,function(e){o.current.push(e),a()}]),ne=Ge(te,2),oe=ne[0],re=ne[1],ie=function(e,t,n){return(0,p.useMemo)((function(){for(var n,o=new Map,r=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||tz,i=r.left+r.width,a=0;a<e.length;a+=1){var s,l=e[a].key,c=t.get(l);c||(c=t.get(null===(s=e[a-1])||void 0===s?void 0:s.key)||tz);var u=o.get(l)||$e({},c);u.right=i-u.left-u.width,o.set(l,u)}return o}),[e.map((function(e){return e.key})).join("_"),t,n])}($,oe,U[0]),ae=qF(W,T),se=qF(U,T),le=qF(Y,T),ce=qF(J,T),ue=ae<se+le,de=ue?ae-ce:ae-le,fe="".concat(k,"-nav-operations-hidden"),pe=0,he=0;function me(e){return e<pe?pe:e>he?he:e}T&&f?(pe=0,he=Math.max(0,se-de)):(pe=Math.min(0,de-se),he=0);var ge=(0,p.useRef)(null),ve=Ge((0,p.useState)(),2),be=ve[0],ye=ve[1];function xe(){ye(Date.now())}function we(){ge.current&&clearTimeout(ge.current)}!function(e,t){var n=Ge((0,p.useState)(),2),o=n[0],r=n[1],i=Ge((0,p.useState)(0),2),a=i[0],s=i[1],l=Ge((0,p.useState)(0),2),c=l[0],u=l[1],d=Ge((0,p.useState)(),2),f=d[0],h=d[1],m=(0,p.useRef)(),g=(0,p.useRef)(),v=(0,p.useRef)(null);v.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,o=t.screenY;r({x:n,y:o}),window.clearInterval(m.current)},onTouchMove:function(e){if(o){e.preventDefault();var n=e.touches[0],i=n.screenX,l=n.screenY;r({x:i,y:l});var c=i-o.x,d=l-o.y;t(c,d);var f=Date.now();s(f),u(f-a),h({x:c,y:d})}},onTouchEnd:function(){if(o&&(r(null),h(null),f)){var e=f.x/c,n=f.y/c,i=Math.abs(e),a=Math.abs(n);if(Math.max(i,a)<.1)return;var s=e,l=n;m.current=window.setInterval((function(){Math.abs(s)<.01&&Math.abs(l)<.01?window.clearInterval(m.current):t(20*(s*=oz),20*(l*=oz))}),20)}},onWheel:function(e){var n=e.deltaX,o=e.deltaY,r=0,i=Math.abs(n),a=Math.abs(o);i===a?r="x"===g.current?n:o:i>a?(r=n,g.current="x"):(r=o,g.current="y"),t(-r,-r)&&e.preventDefault()}},p.useEffect((function(){function t(e){v.current.onTouchMove(e)}function n(e){v.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!1}),e.current.addEventListener("touchstart",(function(e){v.current.onTouchStart(e)}),{passive:!1}),e.current.addEventListener("wheel",(function(e){v.current.onWheel(e)})),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(M,(function(e,t){function n(e,t){e((function(e){return me(e+t)}))}return!!ue&&(T?n(B,e):n(H,t),we(),xe(),!0)})),(0,p.useEffect)((function(){return we(),be&&(ge.current=setTimeout((function(){ye(0)}),100)),we}),[be]);var Ce=function(e,t,n,o,r,i,a){var s,l,c,u=a.tabs,d=a.tabPosition,f=a.rtl;return["top","bottom"].includes(d)?(s="width",l=f?"right":"left",c=Math.abs(n)):(s="height",l="top",c=-n),(0,p.useMemo)((function(){if(!u.length)return[0,0];for(var n=u.length,o=n,r=0;r<n;r+=1){var i=e.get(u[r].key)||iz;if(i[l]+i[s]>c+t){o=r-1;break}}for(var a=0,d=n-1;d>=0;d-=1)if((e.get(u[d].key)||iz)[l]<c){a=d+1;break}return a>=o?[0,0]:[a,o]}),[e,t,o,r,i,c,d,u.map((function(e){return e.key})).join("_"),f])}(ie,de,T?D:F,se,le,ce,$e($e({},e),{},{tabs:$})),Se=Ge(Ce,2),ke=Se[0],_e=Se[1],Oe=nl((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=ie.get(e)||{width:0,height:0,left:0,right:0,top:0};if(T){var n=D;f?t.right<D?n=t.right:t.right+t.width>D+de&&(n=t.right+t.width-de):t.left<-D?n=-t.left:t.left+t.width>-D+de&&(n=-(t.left+t.width-de)),H(0),B(me(n))}else{var o=F;t.top<-F?o=-t.top:t.top+t.height>-F+de&&(o=-(t.top+t.height-de)),B(0),H(me(o))}})),je={};"top"===b||"bottom"===b?je[f?"marginRight":"marginLeft"]=y:je.marginTop=y;var Me=$.map((function(e,t){var n=e.key;return p.createElement(WF,{id:c,prefixCls:k,key:n,tab:e,style:0===t?void 0:je,closable:e.closable,editable:g,active:n===d,renderWrapper:x,removeAriaLabel:null==v?void 0:v.removeAriaLabel,onClick:function(e){w(n,e)},onFocus:function(){Oe(n),xe(),M.current&&(f||(M.current.scrollLeft=0),M.current.scrollTop=0)}})})),Pe=function(){return re((function(){var e,t=new Map,n=null===(e=P.current)||void 0===e?void 0:e.getBoundingClientRect();return $.forEach((function(e){var o,r=e.key,i=null===(o=P.current)||void 0===o?void 0:o.querySelector('[data-node-key="'.concat(sz(r),'"]'));if(i){var a=function(e,t){var n=e.offsetWidth,o=e.offsetHeight,r=e.offsetTop,i=e.offsetLeft,a=e.getBoundingClientRect(),s=a.width,l=a.height,c=a.x,u=a.y;return Math.abs(s-n)<1?[s,l,c-t.x,u-t.y]:[n,o,i,r]}(i,n),s=Ge(a,4),l=s[0],c=s[1],u=s[2],d=s[3];t.set(r,{width:l,height:c,left:u,top:d})}})),t}))};(0,p.useEffect)((function(){Pe()}),[$.map((function(e){return e.key})).join("_")]);var Ie=rz((function(){var e=KF(_),t=KF(O),n=KF(j);K([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var o=KF(N);Z(o);var r=KF(I);ee(r);var i=KF(P);G([i[0]-o[0],i[1]-o[1]]),Pe()})),Ne=$.slice(0,ke),Te=$.slice(_e+1),Re=[].concat(Ye(Ne),Ye(Te)),Ae=ie.get(d),De=function(e){var t=e.activeTabOffset,n=e.horizontal,o=e.rtl,r=e.indicator,i=void 0===r?{}:r,a=i.size,s=i.align,l=void 0===s?"center":s,c=Ge((0,p.useState)(),2),u=c[0],d=c[1],f=(0,p.useRef)(),m=h().useCallback((function(e){return"function"==typeof a?a(e):"number"==typeof a?a:e}),[a]);function g(){na.cancel(f.current)}return(0,p.useEffect)((function(){var e={};if(t)if(n){e.width=m(t.width);var r=o?"right":"left";"start"===l&&(e[r]=t[r]),"center"===l&&(e[r]=t[r]+t.width/2,e.transform=o?"translateX(50%)":"translateX(-50%)"),"end"===l&&(e[r]=t[r]+t.width,e.transform="translateX(-100%)")}else e.height=m(t.height),"start"===l&&(e.top=t.top),"center"===l&&(e.top=t.top+t.height/2,e.transform="translateY(-50%)"),"end"===l&&(e.top=t.top+t.height,e.transform="translateY(-100%)");return g(),f.current=na((function(){d(e)})),g}),[t,n,o,l,m]),{style:u}}({activeTabOffset:Ae,horizontal:T,indicator:S,rtl:f}).style;(0,p.useEffect)((function(){Oe()}),[d,pe,he,az(Ae),az(ie),T]),(0,p.useEffect)((function(){Ie()}),[f]);var Be,Le,ze,Fe,He=!!Re.length,Ve="".concat(k,"-nav-wrap");return T?f?(Le=D>0,Be=D!==he):(Be=D<0,Le=D!==pe):(ze=F<0,Fe=F!==pe),p.createElement(LC,{onResize:Ie},p.createElement("div",{ref:ci(t,_),role:"tablist",className:oi()("".concat(k,"-nav"),s),style:l,onKeyDown:function(){xe()}},p.createElement(fz,{ref:O,position:"left",extra:m,prefixCls:k}),p.createElement(LC,{onResize:Ie},p.createElement("div",{className:oi()(Ve,Ee(Ee(Ee(Ee({},"".concat(Ve,"-ping-left"),Be),"".concat(Ve,"-ping-right"),Le),"".concat(Ve,"-ping-top"),ze),"".concat(Ve,"-ping-bottom"),Fe)),ref:M},p.createElement(LC,{onResize:Ie},p.createElement("div",{ref:P,className:"".concat(k,"-nav-list"),style:{transform:"translate(".concat(D,"px, ").concat(F,"px)"),transition:be?"none":void 0}},Me,p.createElement(uz,{ref:N,prefixCls:k,locale:v,editable:g,style:$e($e({},0===Me.length?void 0:je),{},{visibility:He?"hidden":null})}),p.createElement("div",{className:oi()("".concat(k,"-ink-bar"),Ee({},"".concat(k,"-ink-bar-animated"),u.inkBar)),style:De}))))),p.createElement(VF,hn({},e,{removeAriaLabel:null==v?void 0:v.removeAriaLabel,ref:I,prefixCls:k,tabs:Re,className:!He&&fe,tabMoving:!!be})),p.createElement(fz,{ref:j,position:"right",extra:m,prefixCls:k})))}));const GF=UF;var XF=p.forwardRef((function(e,t){var n=e.prefixCls,o=e.className,r=e.style,i=e.id,a=e.active,s=e.tabKey,l=e.children;return p.createElement("div",{id:i&&"".concat(i,"-panel-").concat(s),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(s),"aria-hidden":!a,style:r,className:oi()(n,a&&"".concat(n,"-active"),o),ref:t},l)}));const YF=XF;var ZF=["renderTabBar"],QF=["label","key"];const JF=function(e){var t=e.renderTabBar,n=di(e,ZF),o=p.useContext(ez).tabs;if(t){var r=$e($e({},n),{},{panes:o.map((function(e){var t=e.label,n=e.key,o=di(e,QF);return p.createElement(YF,hn({tab:t,key:n,tabKey:n},o))}))});return t(r,GF)}return p.createElement(GF,n)};var eH=["key","forceRender","style","className","destroyInactiveTabPane"];const tH=function(e){var t=e.id,n=e.activeKey,o=e.animated,r=e.tabPosition,i=e.destroyInactiveTabPane,a=p.useContext(ez),s=a.prefixCls,l=a.tabs,c=o.tabPane,u="".concat(s,"-tabpane");return p.createElement("div",{className:oi()("".concat(s,"-content-holder"))},p.createElement("div",{className:oi()("".concat(s,"-content"),"".concat(s,"-content-").concat(r),Ee({},"".concat(s,"-content-animated"),c))},l.map((function(e){var r=e.key,a=e.forceRender,s=e.style,l=e.className,d=e.destroyInactiveTabPane,f=di(e,eH),h=r===n;return p.createElement(va,hn({key:r,visible:h,forceRender:a,removeOnLeave:!(!i&&!d),leavedClassName:"".concat(u,"-hidden")},o.tabPaneMotion),(function(e,n){var o=e.style,i=e.className;return p.createElement(YF,hn({},f,{prefixCls:u,id:t,tabKey:r,animated:c,active:h,style:$e($e({},s),o),className:oi()(l,i),ref:n}))}))}))))};var nH=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],oH=0,rH=p.forwardRef((function(e,t){var n=e.id,o=e.prefixCls,r=void 0===o?"rc-tabs":o,i=e.className,a=e.items,s=e.direction,l=e.activeKey,c=e.defaultActiveKey,u=e.editable,d=e.animated,f=e.tabPosition,h=void 0===f?"top":f,m=e.tabBarGutter,g=e.tabBarStyle,v=e.tabBarExtraContent,b=e.locale,y=e.moreIcon,x=e.moreTransitionName,w=e.destroyInactiveTabPane,C=e.renderTabBar,S=e.onChange,E=e.onTabClick,k=e.onTabScroll,$=e.getPopupContainer,_=e.popupClassName,O=e.indicator,j=di(e,nH),M=p.useMemo((function(){return(a||[]).filter((function(e){return e&&"object"===ye(e)&&"key"in e}))}),[a]),P="rtl"===s,I=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:$e({inkBar:!0},"object"===ye(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(d),N=Ge((0,p.useState)(!1),2),T=N[0],R=N[1];(0,p.useEffect)((function(){R(zC())}),[]);var A=Ge(rl((function(){var e;return null===(e=M[0])||void 0===e?void 0:e.key}),{value:l,defaultValue:c}),2),D=A[0],B=A[1],L=Ge((0,p.useState)((function(){return M.findIndex((function(e){return e.key===D}))})),2),z=L[0],F=L[1];(0,p.useEffect)((function(){var e,t=M.findIndex((function(e){return e.key===D}));-1===t&&(t=Math.max(0,Math.min(z,M.length-1)),B(null===(e=M[t])||void 0===e?void 0:e.key)),F(t)}),[M.map((function(e){return e.key})).join("_"),D,z]);var H=Ge(rl(null,{value:n}),2),V=H[0],W=H[1];(0,p.useEffect)((function(){n||(W("rc-tabs-".concat(oH)),oH+=1)}),[]);var K={id:V,activeKey:D,animated:I,tabPosition:h,rtl:P,mobile:T},q=$e($e({},K),{},{editable:u,locale:b,moreIcon:y,moreTransitionName:x,tabBarGutter:m,onTabClick:function(e,t){null==E||E(e,t);var n=e!==D;B(e),n&&(null==S||S(e))},onTabScroll:k,extra:v,style:g,panes:null,getPopupContainer:$,popupClassName:_,indicator:O});return p.createElement(ez.Provider,{value:{tabs:M,prefixCls:r}},p.createElement("div",hn({ref:t,id:n,className:oi()(r,"".concat(r,"-").concat(h),Ee(Ee(Ee({},"".concat(r,"-mobile"),T),"".concat(r,"-editable"),u),"".concat(r,"-rtl"),P),i)},j),p.createElement(JF,hn({},q,{renderTabBar:C})),p.createElement(tH,hn({destroyInactiveTabPane:w},K,{animated:I}))))}));const iH=rH,aH={motionAppear:!1,motionEnter:!0,motionLeave:!0};const sH=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[AP(e,"slide-up"),AP(e,"slide-down")]]},lH=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:o,cardGutter:r,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:o,border:`${qt(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:qt(r)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${qt(e.borderRadiusLG)} ${qt(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${qt(e.borderRadiusLG)} ${qt(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:qt(r)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${qt(e.borderRadiusLG)} 0 0 ${qt(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${qt(e.borderRadiusLG)} ${qt(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},cH=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:o}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Ia(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${qt(o)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Pa),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${qt(e.paddingXXS)} ${qt(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},uH=e=>{const{componentCls:t,margin:n,colorBorderSecondary:o,horizontalMargin:r,verticalItemPadding:i,verticalItemMargin:a,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:r,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${qt(e.lineWidth)} ${e.lineType} ${o}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n            right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n        > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:qt(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${qt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${qt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},dH=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:o,horizontalItemPaddingSM:r,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${qt(e.borderRadius)} ${qt(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${qt(e.borderRadius)} ${qt(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${qt(e.borderRadius)} ${qt(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${qt(e.borderRadius)} 0 0 ${qt(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o}}}}}},fH=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:o,iconCls:r,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:s,itemColor:l}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},Aa(e)),"&-btn":{outline:"none",transition:"all 0.3s",[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:o},[`&${c}-active ${c}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${r}`]:{margin:0},[`${r}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:i}}}},pH=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:o,cardGutter:r,calc:i}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[o]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:qt(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:qt(e.marginXS)},marginLeft:{_skip_check_:!0,value:qt(i(e.marginXXS).mul(-1).equal())},[o]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:r},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},hH=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:o,cardGutter:r,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ia(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:o,minHeight:o,marginLeft:{_skip_check_:!0,value:r},padding:`0 ${qt(e.paddingXS)}`,background:"transparent",border:`${qt(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${qt(e.borderRadiusLG)} ${qt(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},Aa(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),fH(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},mH=hl("Tabs",(e=>{const t=Js(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${qt(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${qt(e.horizontalItemGutter)}`});return[dH(t),pH(t),uH(t),cH(t),lH(t),hH(t),sH(t)]}),(e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${1.5*e.paddingXXS}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${1.5*e.paddingXXS}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}));const gH=e=>{var t,n,o,r,i,a,s;const{type:l,className:c,rootClassName:u,size:d,onEdit:f,hideAdd:h,centered:m,addIcon:g,moreIcon:v,popupClassName:b,children:y,items:x,animated:w,style:C,indicatorSize:S,indicator:E}=e,k=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","moreIcon","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:$}=k,{direction:_,tabs:O,getPrefixCls:j,getPopupContainer:M}=p.useContext(He),P=j("tabs",$),I=Ws(P),[N,T,R]=mH(P,I);let A;"editable-card"===l&&(A={onEdit:(e,t)=>{let{key:n,event:o}=t;null==f||f("add"===e?o:n,e)},removeIcon:p.createElement(ws,null),addIcon:(null!=g?g:null==O?void 0:O.addIcon)||p.createElement(JL,null),showAdd:!0!==h});const D=j(),B=pc(d),L=function(e,t){if(e)return e;const n=hc(t).map((e=>{if(p.isValidElement(e)){const{key:t,props:n}=e,o=n||{},{tab:r}=o,i=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(o,["tab"]);return Object.assign(Object.assign({key:String(t)},i),{label:r})}return null}));return function(e){return e.filter((e=>e))}(n)}(x,y),z=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof n?n:{}),t.tabPane&&(t.tabPaneMotion=Object.assign(Object.assign({},aH),{motionName:Yl(e,"switch")})),t}(P,w),F=Object.assign(Object.assign({},null==O?void 0:O.style),C),H={align:null!==(t=null==E?void 0:E.align)&&void 0!==t?t:null===(n=null==O?void 0:O.indicator)||void 0===n?void 0:n.align,size:null!==(a=null!==(r=null!==(o=null==E?void 0:E.size)&&void 0!==o?o:S)&&void 0!==r?r:null===(i=null==O?void 0:O.indicator)||void 0===i?void 0:i.size)&&void 0!==a?a:null==O?void 0:O.indicatorSize};return N(p.createElement(iH,Object.assign({direction:_,getPopupContainer:M,moreTransitionName:`${D}-slide-up`},k,{items:L,className:oi()({[`${P}-${B}`]:B,[`${P}-card`]:["card","editable-card"].includes(l),[`${P}-editable-card`]:"editable-card"===l,[`${P}-centered`]:m},null==O?void 0:O.className,c,u,T,R,I),popupClassName:oi()(b,T,R,I),style:F,editable:A,moreIcon:null!==(s=null!=v?v:null==O?void 0:O.moreIcon)&&void 0!==s?s:p.createElement(YL,null),prefixCls:P,animated:z,indicator:H})))};gH.TabPane=()=>null;const vH=gH,bH=()=>{const{settings:e}=(0,u.useSelect)((e=>{const{hasFinishedResolution:t,getSettings:n}=e("notification-master/core"),o=n();return{isResolving:!t("getSettings"),settings:o}}),[]),{updateSetting:t,toggleProAlert:n}=(0,u.useDispatch)("notification-master/core"),o=eE.postTypes,r=eE.taxonomies,i=eE.commentTypes;return(0,a.jsxs)(a.Fragment,{children:[!eE.isPro&&(0,a.jsx)(lC.Ribbon,{text:(0,l.__)("Pro","notification-master"),children:(0,a.jsxs)("div",{className:oi()("notification-master__settings--item"),onClick:()=>n(!0),children:[(0,a.jsxs)("div",{className:"notification-master__settings--item--title",children:[(0,a.jsx)(Yk.Title,{level:5,children:(0,l.__)("WooCommerce","notification-master")}),(0,a.jsx)(Yk.Text,{children:(0,l.__)("If enabled, will be able to add notifications when the WooCommerce product, review, or order changes.","notification-master")})]}),(0,a.jsx)("div",{className:"notification-master__settings--item--switch",children:(0,a.jsx)(jI,{title:(0,l.__)("Enable","notification-master"),checkedChildren:(0,l.__)("On","notification-master"),unCheckedChildren:(0,l.__)("Off","notification-master"),checked:!1,onChange:()=>{n(!0)}})})]})}),eE.isPro&&(0,a.jsxs)("div",{className:oi()("notification-master__settings--item"),children:[(0,a.jsxs)("div",{className:"notification-master__settings--item--title",children:[(0,a.jsx)(Yk.Title,{level:5,children:(0,l.__)("WooCommerce","notification-master")}),(0,a.jsx)(Yk.Text,{children:(0,l.__)("If enabled, will be able to add notifications when the WooCommerce product, review, or order changes.","notification-master")})]}),(0,a.jsx)("div",{className:"notification-master__settings--item--switch",children:(0,a.jsx)(jI,{title:(0,l.__)("Enable","notification-master"),checkedChildren:(0,l.__)("On","notification-master"),unCheckedChildren:(0,l.__)("Off","notification-master"),checked:e.woocommerce_change_trigger||!0,onChange:e=>{t("woocommerce_change_trigger",e)}})})]}),(0,a.jsxs)("div",{className:oi()("notification-master__settings--item",{"notification-master__settings--item--has-subitem":e.post_status_change_trigger}),children:[(0,a.jsxs)("div",{className:"notification-master__settings--item--title",children:[(0,a.jsx)(Yk.Title,{level:5,children:(0,l.__)("Post status change","notification-master")}),(0,a.jsx)(Yk.Text,{children:(0,l.__)("If enabled, will be able to add notifications when the post status changes.","notification-master")})]}),(0,a.jsx)("div",{className:"notification-master__settings--item--switch",children:(0,a.jsx)(jI,{title:(0,l.__)("Enable","notification-master"),checkedChildren:(0,l.__)("On","notification-master"),unCheckedChildren:(0,l.__)("Off","notification-master"),checked:e.post_status_change_trigger,onChange:e=>{t("post_status_change_trigger",e)}})})]}),e.post_status_change_trigger&&(0,a.jsxs)("div",{className:"notification-master__settings--item notification-master__settings--item--block",children:[(0,a.jsxs)("div",{className:"notification-master__settings--item--title",children:[(0,a.jsx)(Yk.Title,{level:5,children:(0,l.__)("Post types","notification-master")}),(0,a.jsx)(Yk.Text,{children:(0,l.__)("Select the post types for which you want to send notifications when the post status changes.","notification-master")})]}),(0,a.jsx)("div",{className:"notification-master__settings--item--select",children:(0,a.jsx)(bI,{mode:"multiple",size:"large",placeholder:(0,l.__)("Select post types","notification-master"),options:o,value:e.post_types,onChange:e=>{t("post_types",e)},style:{width:"100%"}})})]}),(0,a.jsxs)("div",{className:oi()("notification-master__settings--item",{"notification-master__settings--item--has-subitem":e.taxonomy_term_change_trigger}),children:[(0,a.jsxs)("div",{className:"notification-master__settings--item--title",children:[(0,a.jsx)(Yk.Title,{level:5,children:(0,l.__)("Taxonomy term change","notification-master")}),(0,a.jsx)(Yk.Text,{children:(0,l.__)("If enabled, will be able to add notifications when the taxonomy term changes.","notification-master")})]}),(0,a.jsx)("div",{className:"notification-master__settings--item--switch",children:(0,a.jsx)(jI,{title:(0,l.__)("Enable","notification-master"),checkedChildren:(0,l.__)("On","notification-master"),unCheckedChildren:(0,l.__)("Off","notification-master"),checked:e.taxonomy_term_change_trigger,onChange:e=>{t("taxonomy_term_change_trigger",e)}})})]}),e.taxonomy_term_change_trigger&&(0,a.jsxs)("div",{className:"notification-master__settings--item notification-master__settings--item--block",children:[(0,a.jsxs)("div",{className:"notification-master__settings--item--title",children:[(0,a.jsx)(Yk.Title,{level:5,children:(0,l.__)("Taxonomies","notification-master")}),(0,a.jsx)(Yk.Text,{children:(0,l.__)("Select the taxonomies for which you want to send notifications when the taxonomy term changes.","notification-master")})]}),(0,a.jsx)("div",{className:"notification-master__settings--item--select",children:(0,a.jsx)(bI,{mode:"multiple",size:"large",placeholder:(0,l.__)("Select taxonomies","notification-master"),options:r,value:e.taxonomies,onChange:e=>{t("taxonomies",e)},style:{width:"100%"}})})]}),(0,a.jsxs)("div",{className:oi()("notification-master__settings--item",{"notification-master__settings--item--has-subitem":e.comment_change_trigger}),children:[(0,a.jsxs)("div",{className:"notification-master__settings--item--title",children:[(0,a.jsx)(Yk.Title,{level:5,children:(0,l.__)("Comment change","notification-master")}),(0,a.jsx)(Yk.Text,{children:(0,l.__)("If enabled, will be able to add notifications when the comment status changes.","notification-master")})]}),(0,a.jsx)("div",{className:"notification-master__settings--item--switch",children:(0,a.jsx)(jI,{title:(0,l.__)("Enable","notification-master"),checkedChildren:(0,l.__)("On","notification-master"),unCheckedChildren:(0,l.__)("Off","notification-master"),checked:e.comment_change_trigger,onChange:e=>{t("comment_change_trigger",e)}})})]}),e.comment_change_trigger&&(0,a.jsxs)("div",{className:"notification-master__settings--item notification-master__settings--item--block",children:[(0,a.jsxs)("div",{className:"notification-master__settings--item--title",children:[(0,a.jsx)(Yk.Title,{level:5,children:(0,l.__)("Comment types","notification-master")}),(0,a.jsx)(Yk.Text,{children:(0,l.__)("Select the comment types for which you want to send notifications when the comment status changes.","notification-master")})]}),(0,a.jsx)("div",{className:"notification-master__settings--item--select",children:(0,a.jsx)(bI,{mode:"multiple",size:"large",placeholder:(0,l.__)("Select comment types","notification-master"),options:i,value:e.comment_types,onChange:e=>{t("comment_types",e)},style:{width:"100%"}})})]}),(0,a.jsxs)("div",{className:oi()("notification-master__settings--item"),children:[(0,a.jsxs)("div",{className:"notification-master__settings--item--title",children:[(0,a.jsx)(Yk.Title,{level:5,children:(0,l.__)("Media change","notification-master")}),(0,a.jsx)(Yk.Text,{children:(0,l.__)("If enabled, will be able to add notifications when the media changes.","notification-master")})]}),(0,a.jsx)("div",{className:"notification-master__settings--item--switch",children:(0,a.jsx)(jI,{title:(0,l.__)("Enable","notification-master"),checkedChildren:(0,l.__)("On","notification-master"),unCheckedChildren:(0,l.__)("Off","notification-master"),checked:e.media_change_trigger,onChange:e=>{t("media_change_trigger",e)}})})]}),(0,a.jsxs)("div",{className:oi()("notification-master__settings--item"),children:[(0,a.jsxs)("div",{className:"notification-master__settings--item--title",children:[(0,a.jsx)(Yk.Title,{level:5,children:(0,l.__)("User change","notification-master")}),(0,a.jsx)(Yk.Text,{children:(0,l.__)("If enabled, will be able to add notifications when the user changes.","notification-master")})]}),(0,a.jsx)("div",{className:"notification-master__settings--item--switch",children:(0,a.jsx)(jI,{title:(0,l.__)("Enable","notification-master"),checkedChildren:(0,l.__)("On","notification-master"),unCheckedChildren:(0,l.__)("Off","notification-master"),checked:e.user_change_trigger,onChange:e=>{t("user_change_trigger",e)}})})]}),(0,a.jsxs)("div",{className:oi()("notification-master__settings--item"),children:[(0,a.jsxs)("div",{className:"notification-master__settings--item--title",children:[(0,a.jsx)(Yk.Title,{level:5,children:(0,l.__)("Theme change","notification-master")}),(0,a.jsx)(Yk.Text,{children:(0,l.__)("If enabled, will be able to add notifications when the theme changes.","notification-master")})]}),(0,a.jsx)("div",{className:"notification-master__settings--item--switch",children:(0,a.jsx)(jI,{title:(0,l.__)("Enable","notification-master"),checkedChildren:(0,l.__)("On","notification-master"),unCheckedChildren:(0,l.__)("Off","notification-master"),checked:e.theme_change_trigger,onChange:e=>{t("theme_change_trigger",e)}})})]}),(0,a.jsxs)("div",{className:oi()("notification-master__settings--item"),children:[(0,a.jsxs)("div",{className:"notification-master__settings--item--title",children:[(0,a.jsx)(Yk.Title,{level:5,children:(0,l.__)("Plugin change","notification-master")}),(0,a.jsx)(Yk.Text,{children:(0,l.__)("If enabled, will be able to add notifications when the plugin changes.","notification-master")})]}),(0,a.jsx)("div",{className:"notification-master__settings--item--switch",children:(0,a.jsx)(jI,{title:(0,l.__)("Enable","notification-master"),checkedChildren:(0,l.__)("On","notification-master"),unCheckedChildren:(0,l.__)("Off","notification-master"),checked:e.plugin_change_trigger,onChange:e=>{t("plugin_change_trigger",e)}})})]}),(0,a.jsxs)("div",{className:oi()("notification-master__settings--item"),children:[(0,a.jsx)("div",{className:"notification-master__settings--item--title",children:(0,a.jsx)(Yk.Title,{level:5,children:(0,l.__)("Privacy","notification-master")})}),(0,a.jsx)("div",{className:"notification-master__settings--item--switch",children:(0,a.jsx)(jI,{title:(0,l.__)("Enable","notification-master"),checkedChildren:(0,l.__)("On","notification-master"),unCheckedChildren:(0,l.__)("Off","notification-master"),checked:e.privacy_trigger,onChange:e=>{t("privacy_trigger",e)}})})]})]})},yH=()=>{const{settings:e}=(0,u.useSelect)((e=>{const{hasFinishedResolution:t,getSettings:n}=e("notification-master/core"),o=n();return{isResolving:!t("getSettings"),settings:o}}),[]),{updateSetting:t}=(0,u.useDispatch)("notification-master/core");return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"notification-master__settings--item",children:[(0,a.jsxs)("div",{className:"notification-master__settings--item--title",children:[(0,a.jsx)(Yk.Title,{level:5,children:(0,l.__)("Process notifications in the background","notification-master")}),(0,a.jsx)(Yk.Text,{children:(0,l.__)("If enabled, notifications will be processed in the background. This will improve the performance of your website.","notification-master")})]}),(0,a.jsx)("div",{className:"notification-master__settings--item--switch",children:(0,a.jsx)(jI,{title:(0,l.__)("Enable","notification-master"),checkedChildren:(0,l.__)("On","notification-master"),unCheckedChildren:(0,l.__)("Off","notification-master"),checked:e.enable_background_processing,onChange:e=>{t("enable_background_processing",e)}})})]}),(0,a.jsxs)("div",{className:oi()("notification-master__settings--item"),children:[(0,a.jsxs)("div",{className:"notification-master__settings--item--title",children:[(0,a.jsx)(Yk.Title,{level:5,children:(0,l.__)("Delete Notification Logs Older Than: ","notification-master")}),(0,a.jsx)(Yk.Text,{children:
    22/* translators: %s: Number of days */
    33/* translators: %s: Number of days */
  • notification-master/trunk/languages/notification-master.pot

    r3198711 r3200984  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Notification Master 1.4.7\n"
     5"Project-Id-Version: Notification Master 1.4.8\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/notification-master\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2024-11-28T10:23:31+01:00\n"
     12"POT-Creation-Date: 2024-12-02T15:14:53+01:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.10.0\n"
  • notification-master/trunk/notifications-master.php

    r3198711 r3200984  
    55 * Description: Enhance user engagement. Trigger notifications for events, support multiple channels like email and Discord, and personalize with dynamic merge tags. Easy setup and customization.
    66 *
    7  * Version: 1.4.7
     7 * Version: 1.4.8
    88 *
    99 * Author: Notification Master
     
    2626
    2727// Define notification-master constants.
    28 define( 'NOTIFICATION_MASTER_VERSION', '1.4.7' );
     28define( 'NOTIFICATION_MASTER_VERSION', '1.4.8' );
    2929define( 'NOTIFICATION_MASTER_FILE', __FILE__ );
    3030define( 'NOTIFICATION_MASTER_DIR', plugin_dir_path( __FILE__ ) );
  • notification-master/trunk/readme.txt

    r3198711 r3200984  
    33Donate link: https://notification-master.com
    44Tags: web push, email, alerts, notifications, push notifications
    5 Stable tag: 1.4.7
     5Stable tag: 1.4.8
    66Requires at least: 4.9
    77Tested up to: 6.7
     
    160160== Changelog ==
    161161
     162= 1.4.8 =
     163* Fixed: Resolved an issue where the email notification content, including HTML formatting, was not saved or displayed correctly.
     164
    162165= 1.4.7 =
    163166* Enhanced: The background processing for notifications. 
  • notification-master/trunk/src/integrations/email/editor.tsx

    r3189998 r3200984  
    1818        window.wp.oldEditor.initialize(editorId, {
    1919            tinymce: {
    20                 wpautop: true,
    2120                toolbar1:
    2221                    "formatselect | styleselect | bold italic strikethrough | forecolor backcolor | link | alignleft aligncenter alignright alignjustify | numlist bullist outdent indent | insert ast_placeholders | fontsizeselect",
     
    5958
    6059        editor.on('NodeChange', debounce(() => {
    61             onChange(window.wp.oldEditor.getContent(editorId));
     60            const content = editor.getContent({ format: 'html' }); // Fetch as HTML
     61            onChange(content); // Pass it back
    6262        }, 250));
    6363    }
Note: See TracChangeset for help on using the changeset viewer.